/* A softer light palette: reserve the brightest surface for editable fields. */
html[data-theme="light"],
html[data-bs-theme="light"]{
  background:#dfe6f1 !important;
}

body[data-theme="light"]{
  --bg-main:#dfe6f1 !important;
  --bg-elevated:#eaf0f7 !important;
  --bg-elevated-soft:#e2e9f3 !important;
  --bg-sidebar:#e5ebf4 !important;
  --border-subtle:rgba(47,63,91,.19) !important;
  --text-muted:#47566e !important;
}

html[data-theme="light"] body,
body[data-theme="light"]{
  background:linear-gradient(145deg,#e5eaf4 0%,#dce5f1 100%) !important;
}

body[data-theme="light"] .app-sidebar{
  background:linear-gradient(180deg,#e9eef6,#e1e8f2) !important;
  box-shadow:inset -1px 0 rgba(47,63,91,.16) !important;
}

body[data-theme="light"] .app-topbar{
  background:rgba(228,235,245,.96) !important;
}

body[data-theme="light"] :is(.card,.modal-content,.offcanvas,.spk-source-card,.spk-monitor-card,.entity-card,.client-overview-section,.file-search-card,.file-search-stat,.mobile-list-shell,.table-responsive,.spk-table-wrapper){
  background:#eaf0f7 !important;
  border-color:var(--border-subtle) !important;
}

body[data-theme="light"] .app-content .table-responsive:has(>.ui-list-table){
  background:#eaf0f7 !important;
}

body[data-theme="light"] :is(.card-header,.card-footer,.modal-header,.modal-footer,.data-table-toolbar){
  background:#e2e9f3 !important;
  border-color:var(--border-subtle) !important;
}

body[data-theme="light"] :is(.form-control,.form-select,textarea.form-control,.input-group-text,.spk-search-input){
  background:#f7f9fc !important;
  border-color:rgba(47,63,91,.23) !important;
}

body[data-theme="light"] :is(.btn-outline-secondary,.btn-outline-light,.btn-outline-primary,.spk-btn-secondary,#themeToggle,.sidebar-collapse-btn){
  background:#e2e9f3 !important;
  border-color:rgba(47,63,91,.22) !important;
}

body[data-theme="light"] :is(.table,.spk-table,.spk-dash-table,.spk-employee-table,.ui-list-table) thead th{
  background:#dce5f0 !important;
  color:#35445e !important;
}

body[data-theme="light"] .app-content :is(.table,.spk-table,.spk-dash-table,.spk-employee-table,.ui-list-table) tbody > tr{
  --table-row-bg:#eaf0f7;
  background:#eaf0f7 !important;
  background-color:#eaf0f7 !important;
}
body[data-theme="light"] .app-content :is(.table,.spk-table,.spk-dash-table,.spk-employee-table,.ui-list-table) tbody > tr:nth-child(even){
  --table-row-bg:#e5ecf5;
  background:#e5ecf5 !important;
  background-color:#e5ecf5 !important;
}
body[data-theme="light"] .app-content :is(.table,.spk-table,.spk-dash-table,.spk-employee-table,.ui-list-table) tbody > tr:hover{
  --table-row-bg:#d9e2f5;
  background:#d9e2f5 !important;
  background-color:#d9e2f5 !important;
}

body[data-theme="light"] .file-search-stat .file-search-stat-value{color:#5047a9}
body[data-theme="light"] .file-search-stat:nth-child(1) .file-search-stat-value{color:#a83175}
body[data-theme="light"] .file-search-stat:nth-child(2) .file-search-stat-value{color:#916700}
body[data-theme="light"] .file-search-stat:nth-child(3) .file-search-stat-value{color:#1479a0}
body[data-theme="light"] .file-search-stat:nth-child(4) .file-search-stat-value{color:#5657ac}
