/*
============================================================
SVS ERP — F15.21.3
CLIENTS PREMIUM UI
Scope intentionally limited to #page-cases.
============================================================
*/

html body:not(.dark) #page-cases{
  --cl-text:#17324a;
  --cl-muted:#71859a;
  --cl-border:#dfe8ee;
  --cl-border-strong:#cfdee6;
  --cl-teal:#14b8a6;
  --cl-teal-dark:#0f766e;
  --cl-green:#16a36a;
  --cl-amber:#d9910b;
  --cl-red:#dc4c59;
  max-width:1600px!important;
  margin:0 auto!important;
  color:var(--cl-text)!important;
}

html body:not(.dark) #page-cases .cases-v2-hero{
  position:relative;
  overflow:hidden;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:14px!important;
  padding:18px 20px!important;
  border:1px solid var(--cl-border)!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(20,184,166,.10),transparent 35%),
    linear-gradient(135deg,#fff 0%,#f6fbfb 100%)!important;
  box-shadow:0 7px 24px rgba(15,34,53,.045)!important;
}

html body:not(.dark) #page-cases .cases-v2-hero::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg,#14b8a6,#38bdf8);
}

html body:not(.dark) #page-cases .cases-v2-hero .eyebrow{
  color:#0f8a7a!important;
  font-size:8px!important;
  font-weight:850!important;
  letter-spacing:.10em!important;
  text-transform:uppercase;
}

html body:not(.dark) #page-cases .cases-v2-hero h2{
  margin:6px 0 0!important;
  color:#143149!important;
  font-size:22px!important;
  font-weight:850!important;
  letter-spacing:-.02em!important;
}

html body:not(.dark) #page-cases .cases-v2-hero p{
  margin:6px 0 0!important;
  color:#758a9d!important;
  font-size:9px!important;
}

html body:not(.dark) #page-cases .cases-v2-hero-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap;
  justify-content:flex-end;
}

html body:not(.dark) #page-cases #casesWorkspaceCount{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px;
  padding:6px 10px!important;
  border:1px solid #d9e5ec!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  color:#5e768a!important;
  font-size:9px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .cases-filter-panel{
  margin-bottom:12px!important;
  padding:15px 16px!important;
  border:1px solid var(--cl-border)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 3px 14px rgba(15,34,53,.028)!important;
}

html body:not(.dark) #page-cases .cases-filter-header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding-bottom:12px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid #edf2f5!important;
}

html body:not(.dark) #page-cases .cases-filter-header h2{
  margin:0!important;
  color:#1b394f!important;
  font-size:13px!important;
  font-weight:850!important;
}

html body:not(.dark) #page-cases .cases-filter-header p{
  margin:4px 0 0!important;
  color:#8295a7!important;
  font-size:8px!important;
}

html body:not(.dark) #page-cases .toolbar-grid{
  display:grid!important;
  grid-template-columns:minmax(180px,1.25fr) repeat(6,minmax(130px,1fr))!important;
  gap:8px!important;
  align-items:end!important;
}

html body:not(.dark) #page-cases .field>span{
  display:block;
  margin-bottom:5px!important;
  color:#71869a!important;
  font-size:8px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .field input,
html body:not(.dark) #page-cases .field select,
html body:not(.dark) #page-cases .client-filter-menu>summary{
  min-height:38px!important;
  border:1px solid #d7e2e9!important;
  border-radius:10px!important;
  background:#f9fbfc!important;
  color:#213d53!important;
  box-shadow:none!important;
  font-size:10px!important;
}

html body:not(.dark) #page-cases .client-filter-menu{
  position:relative!important;
  z-index:5!important;
}

html body:not(.dark) #page-cases .client-filter-menu[open]{
  z-index:40!important;
}

html body:not(.dark) #page-cases .client-filter-checks{
  margin-top:7px!important;
  padding:8px!important;
  border:1px solid #dbe5eb!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(15,34,53,.13)!important;
}

html body:not(.dark) #page-cases .quick-filter-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin-top:11px!important;
  padding-top:10px!important;
  border-top:1px solid #edf2f5!important;
}

html body:not(.dark) #page-cases .quick-filter-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  min-height:28px!important;
  padding:6px 9px!important;
  border:1px solid #dce6ec!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#61798c!important;
  box-shadow:none!important;
  font-size:8px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .quick-filter-chip:hover{
  background:#f3fbfa!important;
  border-color:#bfe4dd!important;
  color:#0f7f73!important;
}

html body:not(.dark) #page-cases .quick-filter-chip.active{
  background:#eafaf7!important;
  border-color:#83d4c7!important;
  color:#0f776d!important;
}

html body:not(.dark) #page-cases .worker-queue-tabs:not(.hidden){
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:10px!important;
  padding:4px!important;
  border:1px solid #dfe8ee!important;
  border-radius:11px!important;
  background:#f5f8fa!important;
}

html body:not(.dark) #page-cases .worker-queue-tab{
  min-height:31px!important;
  padding:6px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#6b8093!important;
  font-size:8px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .worker-queue-tab.active{
  background:#fff!important;
  color:#0f766e!important;
  box-shadow:0 2px 7px rgba(15,34,53,.07)!important;
}

html body:not(.dark) #page-cases .cases-toolbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:12px!important;
  padding-top:11px!important;
  border-top:1px solid #edf2f5!important;
}

html body:not(.dark) #page-cases .view-switcher{
  display:inline-flex!important;
  gap:3px!important;
  padding:3px!important;
  border:1px solid #dce5eb!important;
  border-radius:10px!important;
  background:#f4f7f9!important;
}

html body:not(.dark) #page-cases .view-button{
  min-height:30px!important;
  padding:6px 10px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#72869a!important;
  font-size:8px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .view-button.active{
  background:#fff!important;
  color:#0f766e!important;
  box-shadow:0 2px 7px rgba(15,34,53,.07)!important;
}

html body:not(.dark) #page-cases .case-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0 0 12px!important;
}

html body:not(.dark) #page-cases .case-summary-card{
  min-height:86px!important;
  padding:13px 15px!important;
  border:1px solid #e0e8ee!important;
  border-top:3px solid #14b8a6!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(15,34,53,.028)!important;
}

html body:not(.dark) #page-cases .case-summary-card:nth-child(2){
  border-top-color:#16a36a!important;
}

html body:not(.dark) #page-cases .case-summary-card:nth-child(3){
  border-top-color:#d9910b!important;
}

html body:not(.dark) #page-cases .case-summary-card:nth-child(4){
  border-top-color:#dc4c59!important;
}

html body:not(.dark) #page-cases .case-summary-card span{
  color:#7b8fa2!important;
  font-size:7px!important;
  font-weight:850!important;
  text-transform:uppercase;
}

html body:not(.dark) #page-cases .case-summary-card strong{
  margin-top:6px!important;
  color:#17324a!important;
  font-size:24px!important;
  font-weight:850!important;
}

html body:not(.dark) #page-cases .case-summary-card small{
  display:block;
  margin-top:6px!important;
  color:#8899aa!important;
  font-size:8px!important;
}

html body:not(.dark) #page-cases #casesBulkBar{
  position:sticky!important;
  top:74px!important;
  z-index:18!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 12px!important;
  padding:11px 13px!important;
  border:1px solid #a7ddd5!important;
  border-radius:13px!important;
  background:rgba(239,251,249,.97)!important;
  box-shadow:0 9px 24px rgba(15,34,53,.09)!important;
}

html body:not(.dark) #page-cases #casesBulkBar.hidden{
  display:none!important;
}

html body:not(.dark) #page-cases .cases-bulk-actions{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
}

html body:not(.dark) #page-cases #casesTablePanel{
  overflow:hidden!important;
  padding:0!important;
  border:1px solid #dce6ec!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 4px 16px rgba(15,34,53,.03)!important;
}

html body:not(.dark) #page-cases .cases-v2-table-wrap{
  max-height:calc(100vh - 315px)!important;
  overflow:auto!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
}

html body:not(.dark) #page-cases #casesTablePanel table{
  min-width:1280px!important;
  width:100%!important;
  font-size:9px!important;
  color:#42596d!important;
}

html body:not(.dark) #page-cases #casesTablePanel thead{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
}

html body:not(.dark) #page-cases #casesTablePanel thead th{
  height:40px!important;
  padding:8px 9px!important;
  border-bottom:1px solid #dfe7ed!important;
  background:#f6f9fb!important;
  color:#6f8497!important;
  font-size:7px!important;
  font-weight:850!important;
  text-transform:uppercase;
  white-space:nowrap!important;
}

html body:not(.dark) #page-cases #casesTablePanel tbody td{
  padding:9px!important;
  border-bottom:1px solid #edf2f5!important;
  background:#fff;
  vertical-align:middle!important;
}

html body:not(.dark) #page-cases #casesTablePanel tbody tr:hover td{
  background:#f7fcfb!important;
}

html body:not(.dark) #page-cases #casesTablePanel tbody tr.selected-case-row td{
  background:#eefaf8!important;
}

html body:not(.dark) #page-cases .case-name-button{
  color:#17324a!important;
  font-size:9px!important;
  font-weight:850!important;
}

html body:not(.dark) #page-cases .case-name-button:hover{
  color:#0f766e!important;
}

html body:not(.dark) #page-cases .due-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:21px;
  padding:4px 7px!important;
  border:1px solid #dce5eb!important;
  border-radius:999px!important;
  background:#f4f7f9!important;
  color:#6f8396!important;
  font-size:7px!important;
  font-weight:800!important;
}

html body:not(.dark) #page-cases .due-badge.overdue{
  background:#fff1f3!important;
  border-color:#f0ccd2!important;
  color:#c3404c!important;
}

html body:not(.dark) #page-cases .due-badge.today{
  background:#ecfdf5!important;
  border-color:#c9eadc!important;
  color:#0c8660!important;
}

html body:not(.dark) #page-cases .due-badge.soon{
  background:#fff8e7!important;
  border-color:#f0dfb7!important;
  color:#9a6509!important;
}

html body:not(.dark) #page-cases .table-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:10px 12px!important;
  border-top:1px solid #e8eef2!important;
  background:#fafcfd!important;
}

html body:not(.dark) #page-cases .cases-card-grid:not(.hidden){
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important;
  gap:10px!important;
}

html body:not(.dark) #page-cases .case-card{
  position:relative;
  overflow:hidden;
  padding:14px!important;
  border:1px solid #dfe8ee!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 3px 13px rgba(15,34,53,.03)!important;
}

html body:not(.dark) #page-cases .case-card:hover{
  transform:translateY(-1px);
  border-color:#bee1dc!important;
  box-shadow:0 8px 22px rgba(15,34,53,.06)!important;
}

html body:not(.dark) #page-cases .case-card-meta{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:10px!important;
}

html body:not(.dark) #page-cases .case-card-meta div{
  padding:8px!important;
  border:1px solid #e7edf1!important;
  border-radius:9px!important;
  background:#f8fafc!important;
}

@media(max-width:1400px){
  html body:not(.dark) #page-cases .toolbar-grid{
    grid-template-columns:repeat(4,minmax(140px,1fr))!important;
  }
}

@media(max-width:1050px){
  html body:not(.dark) #page-cases .toolbar-grid{
    grid-template-columns:repeat(2,minmax(150px,1fr))!important;
  }

  html body:not(.dark) #page-cases .case-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  html body:not(.dark) #page-cases .cases-v2-hero,
  html body:not(.dark) #page-cases .cases-filter-header,
  html body:not(.dark) #page-cases .cases-toolbar-actions,
  html body:not(.dark) #page-cases #casesBulkBar,
  html body:not(.dark) #page-cases .table-footer{
    align-items:stretch!important;
    flex-direction:column!important;
  }

  html body:not(.dark) #page-cases .toolbar-grid,
  html body:not(.dark) #page-cases .case-summary-grid{
    grid-template-columns:1fr!important;
  }
}

/*
============================================================
END F15.21.3
============================================================
*/
