:root{
--navy:#172554;--navy2:#1e3a8a;--ink:#18243a;--muted:#667085;--line:#dce4f0;--bg:#eef4fb;--white:#fff;
--accent:#c58b2b;--green:#138a5b;--red:#d44747;--blue:#356ae6;--purple:#4f7df3;--teal:#078b8b;--orange:#e68a2e;
--soft-blue:#e8f1ff;--soft-gold:#fff4dc;--soft-green:#e6f7ef;--soft-purple:#e8f1ff;--soft-teal:#e5f8f7;--soft-orange:#fff0df;
--shadow:0 10px 30px rgba(30,58,138,.09)
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(135deg,#eef4fb 0%,#f8faff 45%,#edf7f6 100%);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}
#app{display:flex;min-height:100vh}.sidebar{width:250px;background:linear-gradient(180deg,#172554 0%,#1e3a8a 55%,#172554 100%);color:#dfe8ff;padding:20px 14px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:5px 10px 26px;color:#fff}.brand-mark{width:38px;height:38px;border:1px solid #7f8795;border-radius:11px;display:grid;place-items:center;color:#d8b76b;font-size:21px}.brand strong{display:block;font-size:15px}.brand small,.profile-mini small{display:block;color:#9da7b7;font-size:11px;margin-top:2px}
nav{display:grid;gap:4px}.nav-item{border:0;background:transparent;color:#aeb8c8;text-align:left;padding:11px 13px;border-radius:9px;display:flex;gap:12px;align-items:center;font-size:13px}.nav-item:hover{background:#1b2535;color:#fff}.nav-item.active{background:linear-gradient(90deg,#3155a6,#28498f);color:#fff;box-shadow:inset 3px 0 var(--accent)}.nav-item span{flex:1}.sidebar-bottom{margin-top:auto}.profile-mini{border-top:1px solid #2c3748;margin-top:14px;padding:15px 8px 3px;display:flex;gap:9px;align-items:center}.avatar{width:34px;height:34px;border-radius:50%;background:#d9b56b;color:#352812;display:grid;place-items:center;font-weight:700}
.main{margin-left:250px;width:calc(100% - 250px)}.topbar{height:68px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.search{width:min(520px,55%);display:flex;align-items:center;background:#f4f6f9;border:1px solid #edf0f4;border-radius:10px;padding:0 12px;gap:8px;color:#7d8798}.search input{border:0;outline:0;background:transparent;width:100%;padding:10px 2px;font-size:13px}.top-actions{display:flex;gap:10px;align-items:center}.icon-btn,.user-chip{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 12px}.user-chip{font-size:12px}.mobile-menu{display:none}
.content{padding:28px;max-width:1500px;margin:auto}.page-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.page-title h1{margin:0;font-size:25px;letter-spacing:-.5px}.page-title p{margin:6px 0 0;color:var(--muted);font-size:13px}.primary{border:0;background:var(--navy);color:#fff;border-radius:9px;padding:11px 16px;font-weight:600;font-size:12px}.primary:hover{background:#243047}.secondary{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 14px;font-size:12px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);border:1px solid var(--line);border-radius:12px;padding:17px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat:nth-child(1){border-top:4px solid var(--blue)}.stat:nth-child(2){border-top:4px solid var(--purple)}.stat:nth-child(3){border-top:4px solid var(--teal)}.stat:nth-child(4){border-top:4px solid var(--orange)}.stat-value{font-size:27px;font-weight:700;margin-top:12px}.stat-foot{font-size:11px;color:var(--green);margin-top:7px}
.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.panel{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:15px 17px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#f4f8ff,#fff,#f4fbfa);display:flex;justify-content:space-between;align-items:center}.panel-head h3{margin:0;font-size:14px}.panel-head span{font-size:11px;color:var(--muted)}.panel-body{padding:0}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 15px;border-bottom:1px solid #eef0f3;font-size:12px}th{color:#7a8494;font-weight:600;background:#fbfcfd}tr:last-child td{border-bottom:0}.case-link{font-weight:650;color:#1e3f7a}.muted{color:var(--muted)}.badge{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:650;background:#eef2f7;color:#5b6575}.badge.green{background:#e7f7ef;color:#13734f}.badge.blue{background:#e9efff;color:#315bc4}.badge.gold{background:#faf2df;color:#8b6929}.badge.red{background:#fdeaea;color:#a83232}
.list{display:grid}.list-row{padding:13px 16px;border-bottom:1px solid #eef0f3;display:flex;gap:12px;align-items:center}.list-row:last-child{border-bottom:0}.date-box{width:43px;height:43px;border:1px solid var(--line);border-radius:9px;text-align:center;padding-top:5px;background:#fafbfc}.date-box b{display:block;font-size:15px}.date-box small{font-size:9px;color:var(--muted)}.list-main{flex:1}.list-main strong{font-size:12px}.list-main small{display:block;color:var(--muted);margin-top:3px;font-size:10px}
.toolbar{display:flex;gap:9px;align-items:center;margin-bottom:15px}.filter{background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-size:12px}.toolbar .filter:first-child{flex:1}
.empty{padding:45px;text-align:center;color:var(--muted);font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:650;color:#475467}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe3ea;border-radius:8px;padding:10px;outline:0;background:#fff;font-size:12px}.field textarea{min-height:90px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:grid;place-items:center;z-index:50;padding:20px}.hidden{display:none}.modal-card{width:min(650px,100%);background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.2);padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h3{margin:0;font-size:17px}.modal-head button{border:0;background:#f1f3f6;border-radius:7px;width:30px;height:30px}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick{border:1px solid #d6dbe4;background:linear-gradient(145deg,#fff,#f7faff);border-radius:10px;padding:13px;text-align:left}.quick strong{display:block;font-size:12px;color:#203d78}.quick small{color:var(--muted);font-size:10px}.notice{background:linear-gradient(90deg,#fff5d9,#fffaf0);border:1px solid #f1dfb1;padding:13px 15px;border-radius:10px;color:#745a22;font-size:12px;margin-bottom:16px}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.mobile-menu{display:block;border:0;background:transparent;font-size:20px}.topbar{padding:0 15px}.search{width:50%}.user-chip span{display:none}.content{padding:18px}.page-title{gap:12px}.page-title h1{font-size:21px}.cards{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}table{min-width:720px}.panel{overflow:auto}.panel-head{min-width:100%}.quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.cards{grid-template-columns:1fr}.search{display:none}.quick-grid{grid-template-columns:1fr}.page-title{display:block}.page-title .primary{margin-top:12px}}

/* Colorful professional UI accents */
.nav-item:nth-child(1).active{box-shadow:inset 4px 0 #60a5fa}
.nav-item:nth-child(2).active{box-shadow:inset 4px 0 #60a5fa}
.nav-item:nth-child(3).active{box-shadow:inset 4px 0 #2dd4bf}
.nav-item:nth-child(4).active{box-shadow:inset 4px 0 #fbbf24}
.nav-item:nth-child(5).active{box-shadow:inset 4px 0 #fb923c}
.nav-item:nth-child(6).active{box-shadow:inset 4px 0 #38bdf8}
.nav-item:nth-child(7).active{box-shadow:inset 4px 0 #4ade80}
.nav-item:nth-child(8).active{box-shadow:inset 4px 0 #f472b6}
.nav-item:nth-child(9).active{box-shadow:inset 4px 0 #60a5fa}
.nav-item:nth-child(10).active{box-shadow:inset 4px 0 #94a3b8}
.nav-item:hover{background:rgba(255,255,255,.11);transform:translateX(2px)}
.nav-item{transition:.18s ease}
.primary{background:linear-gradient(135deg,#172554,#3155a6);box-shadow:0 5px 14px rgba(23,37,84,.18)}
.primary:hover{background:linear-gradient(135deg,#1e3a8a,#3b5fc0);transform:translateY(-1px)}
.search{background:linear-gradient(90deg,#f2f6ff,#f5fbfa)}
.date-box{background:linear-gradient(145deg,#edf4ff,#fff);border-color:#cddbf0}
.case-link{color:#2455ad}
.avatar{background:linear-gradient(135deg,#f4cf7b,#c58b2b)}
.quick:nth-child(1){border-top:3px solid #356ae6}.quick:nth-child(2){border-top:3px solid #4f7df3}.quick:nth-child(3){border-top:3px solid #078b8b}.quick:nth-child(4){border-top:3px solid #e68a2e}

/* ===== Vibrant dashboard card backgrounds inspired by the requested reference ===== */
.stat{
  position:relative;
  overflow:hidden;
  color:#fff;
  border:0;
  min-height:160px;
  padding:20px;
  box-shadow:0 12px 28px rgba(31,41,55,.12);
}
.stat::after{
  content:"";
  position:absolute;
  width:110px;height:110px;
  right:-28px;bottom:-42px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  pointer-events:none;
}
.stat::before{
  content:"";
  position:absolute;
  width:65px;height:65px;
  right:48px;top:-28px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}
.stat:nth-child(1){background:linear-gradient(135deg,#1677f2 0%,#2f8df5 55%,#1767df 100%);border-top:0}
.stat:nth-child(2){background:linear-gradient(135deg,#6d35df 0%,#7c55e8 55%,#5b32c7 100%);border-top:0}
.stat:nth-child(3){background:linear-gradient(135deg,#13b887 0%,#28c99b 55%,#08a77e 100%);border-top:0}
.stat:nth-child(4){background:linear-gradient(135deg,#f58a16 0%,#ff9f22 55%,#eb6f09 100%);border-top:0}
.stat .stat-top,.stat .stat-foot{color:rgba(255,255,255,.92)}
.stat-value{color:#fff;font-size:30px;position:relative;z-index:1}
.stat-top{position:relative;z-index:1;font-weight:600}
.stat-foot{position:relative;z-index:1}

/* Colorful quick-action tiles */
.quick{position:relative;overflow:hidden;min-height:118px;border:0;padding:15px;box-shadow:0 6px 18px rgba(31,41,55,.06)}
.quick::after{content:"";position:absolute;right:-22px;bottom:-30px;width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.45)}
.quick:nth-child(1){background:linear-gradient(145deg,#eaf4ff,#d9ebff);border-top:0}
.quick:nth-child(2){background:linear-gradient(145deg,#ebfbf3,#d9f7e9);border-top:0}
.quick:nth-child(3){background:linear-gradient(145deg,#e8f1ff,#dbeafe);border-top:0}
.quick:nth-child(4){background:linear-gradient(145deg,#fff1e7,#ffe3cf);border-top:0}
.quick strong{position:relative;z-index:1}

/* More visual depth for content panels */
.panel{background:rgba(255,255,255,.98);box-shadow:0 12px 30px rgba(30,58,138,.08)}
.panel-head{background:linear-gradient(90deg,#f5f8ff,#fff,#f3fbfa)}
.list-row:nth-child(odd){background:linear-gradient(90deg,#fbfdff,#fff)}
.list-row:hover{background:#f4f8ff}

/* Colorful date badges and status pills */
.list-row:nth-child(1) .date-box{background:linear-gradient(145deg,#e8f1ff,#fff);border-color:#bfdbfe;color:#2563eb}
.list-row:nth-child(2) .date-box{background:linear-gradient(145deg,#e5f2ff,#fff);border-color:#c8defa;color:#1767bd}
.list-row:nth-child(3) .date-box{background:linear-gradient(145deg,#e4fbf3,#fff);border-color:#bdebdc;color:#07855f}
.list-row:nth-child(4) .date-box{background:linear-gradient(145deg,#fff0df,#fff);border-color:#f7d3ad;color:#c96b10}

/* Colorful table header and filters */
th{background:linear-gradient(90deg,#f1f5ff,#f7fbff);color:#526174}
.filter{background:linear-gradient(145deg,#fff,#f5f8ff)}

/* Keep forms professional while adding subtle color */
.modal-card{background:linear-gradient(145deg,#fff 0%,#fbfcff 100%)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#7aa7f7;box-shadow:0 0 0 3px rgba(53,106,230,.10)}

@media(max-width:720px){
  .stat{min-height:145px}
}

/* ===== Dashboard legal hero banner ===== */
.dashboard-hero{
  position:relative;
  width:100%;
  aspect-ratio:1335/260;
  min-height:0;
  margin:0;
  border-radius:14px;
  background:#0b1735 url("assets/dashboard-legal-banner.png") center center / 100% 100% no-repeat;
  box-shadow:none;
  border:0;
  overflow:hidden;
}
.dashboard-hero:before{display:none !important}
.dashboard-hero:after{display:none !important}
.dashboard-advocate-photo{
  position:absolute !important;
  left:135px !important;
  top:50% !important;
  right:auto !important;
  bottom:auto !important;
  width:158px !important;
  height:158px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:translate(-50%,-50%) !important;
  display:block !important;
  overflow:visible !important;
  z-index:3 !important;
}
.dashboard-advocate-photo img{
  display:block !important;
  width:158px !important;
  height:158px !important;
  min-width:158px !important;
  min-height:158px !important;
  max-width:158px !important;
  max-height:158px !important;
  margin:0 !important;
  padding:4px !important;
  border:4px solid rgba(255,255,255,.98) !important;
  border-radius:50% !important;
  background:#fff !important;
  box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
  object-fit:cover !important;
  object-position:center center !important;
}
.dashboard-advocate-photo:after{display:none !important}
.dashboard-advocate-photo span{display:none !important}

@media(max-width:720px){
  .dashboard-hero:after{display:none}
  .dashboard-hero{
    border-radius:12px;
    background-size:100% 100%;
  }
  .dashboard-hero:before{display:none !important}
  .dashboard-advocate-photo{
    left:72px !important;
    width:100px !important;
    height:100px !important;
  }
  .dashboard-advocate-photo img{
    width:100px !important;
    height:100px !important;
    min-width:100px !important;
    min-height:100px !important;
    max-width:100px !important;
    max-height:100px !important;
    padding:3px !important;
    border-width:3px !important;
  }
}

/* Central administration controls */





.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
.admin-card{position:relative;display:flex;align-items:center;gap:16px;padding:22px;border-radius:18px;color:#fff;box-shadow:0 12px 30px rgba(30,41,59,.12);overflow:hidden}
.admin-card:after{content:"";position:absolute;right:-35px;top:-45px;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.12)}
.admin-card-super{background:linear-gradient(135deg,#172554,#4f46e5,#7c3aed)}
.admin-card-admin{background:linear-gradient(135deg,#064e3b,#0f766e,#14b8a6)}
.admin-card-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.18);font-size:25px;flex:none}
.admin-card h3{margin:0 0 5px;font-size:18px}.admin-card p{margin:0;opacity:.9;font-size:13px;line-height:1.45}
.role-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;letter-spacing:.04em;background:rgba(99,102,241,.12);color:#4338ca;white-space:nowrap}
.admin-card .role-badge{margin-left:auto;background:rgba(255,255,255,.18);color:#fff}
.admin-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.control-tile{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:linear-gradient(135deg,#fff,#f7f8ff);box-shadow:0 6px 18px rgba(15,23,42,.05)}
.control-tile strong{font-size:14px;color:#172554}.control-tile span{font-size:12px;color:#64748b;line-height:1.45}
.status-badge.active{color:#047857;background:#d1fae5}
.central-panel{margin-top:18px}
@media(max-width:850px){.admin-grid,.admin-control-grid{grid-template-columns:1fr}.admin-card{align-items:flex-start}.admin-card .role-badge{position:absolute;right:15px;top:15px}}

/* ===== Secure portal login ===== */
.login-page{min-height:100vh;margin:0;background:radial-gradient(circle at 15% 10%,rgba(99,102,241,.25),transparent 30%),linear-gradient(135deg,#071536,#172554 52%,#312e81);display:flex;align-items:center;justify-content:center;padding:28px;color:#172554}.login-shell{width:min(1050px,100%);text-align:center}.login-brand{display:flex;align-items:center;justify-content:center;gap:12px;color:#fff;margin-bottom:28px}.login-brand .brand-mark{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#f7d36b,#b77a16);font-size:27px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.login-brand strong{display:block;text-align:left;font-size:23px}.login-brand small{display:block;text-align:left;color:#cbd5e1;margin-top:3px}.login-intro h1{color:#fff;font-size:34px;margin:0 0 8px}.login-intro p{color:#cbd5e1;margin:0 0 28px}.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;text-align:left}.portal-card{position:relative;text-decoration:none;color:#fff;padding:30px;border-radius:24px;min-height:255px;overflow:hidden;box-shadow:0 22px 50px rgba(0,0,0,.22);transition:.2s}.portal-card:hover{transform:translateY(-4px)}.portal-card.super{background:linear-gradient(135deg,#1e1b4b,#4f46e5,#7c3aed)}.portal-card.admin{background:linear-gradient(135deg,#064e3b,#0f766e,#14b8a6)}.portal-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-60px;bottom:-75px;background:rgba(255,255,255,.12)}.portal-icon{width:58px;height:58px;display:grid;place-items:center;background:rgba(255,255,255,.18);border-radius:17px;font-size:28px;margin-bottom:20px}.portal-card h2{margin:0 0 9px;font-size:22px}.portal-card p{max-width:440px;line-height:1.6;color:rgba(255,255,255,.88);font-size:13px}.portal-link{display:inline-block;margin-top:18px;font-weight:750;font-size:12px}.login-footer{color:#94a3b8;margin-top:24px;font-size:11px}.portal-login-page{padding:20px}.login-card{width:min(460px,100%);background:rgba(255,255,255,.98);border-radius:24px;padding:30px;box-shadow:0 25px 70px rgba(0,0,0,.3)}.login-card .login-brand{justify-content:flex-start;margin-bottom:25px}.login-card .login-brand strong{color:#172554}.login-card .login-brand small{color:#64748b}.back-login{display:inline-block;color:#64748b;text-decoration:none;font-size:12px;margin-bottom:20px}.login-card h1{font-size:28px;margin:0 0 7px}.login-subtitle{color:#64748b;font-size:13px;margin:0 0 22px}.login-card .field{margin-bottom:15px}.login-submit{width:100%;border:0;border-radius:11px;padding:13px;color:#fff;font-weight:750;cursor:pointer;background:linear-gradient(135deg,#172554,#4f46e5);box-shadow:0 8px 18px rgba(79,70,229,.2)}.admin-login .login-submit{background:linear-gradient(135deg,#065f46,#0f766e)}.login-error{color:#b91c1c;font-size:12px;margin-top:10px;min-height:15px}.demo-credentials{margin-top:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px;color:#64748b;font-size:11px;line-height:1.6}.demo-credentials strong{color:#334155}@media(max-width:700px){.portal-grid{grid-template-columns:1fr}.login-intro h1{font-size:27px}.portal-card{min-height:auto}.login-card{padding:23px}}

/* Super Admin dashboard banner */
.super-admin-hero{background-image:url("assets/super-admin-banner.png");}

/* =========================================================
   MOBILE-FIRST RESPONSIVE PASS
   Keeps every control readable and touch-friendly on phones.
   ========================================================= */
@media (max-width: 720px){
  body{overflow-x:hidden}
  #app{min-width:0}
  .sidebar{width:min(290px,88vw);padding:16px 12px;box-shadow:18px 0 45px rgba(0,0,0,.24)}
  .main{min-width:0}
  .topbar{height:auto;min-height:60px;padding:10px 12px;gap:9px}
  .mobile-menu{width:42px;height:42px;flex:0 0 42px;border-radius:10px;background:#eef3ff;color:#172554;font-size:21px}
  .search{display:flex;width:auto;flex:1;min-width:0;max-width:none;padding:0 9px}
  .search input{font-size:12px;min-width:0}
  .top-actions{gap:6px;flex:0 0 auto}
  .icon-btn{width:40px;height:40px;padding:0;display:grid;place-items:center}
  .user-chip{height:40px;padding:0 10px;white-space:nowrap}
  .content{padding:14px 12px 24px;max-width:none}
  .page-title{align-items:stretch;margin-bottom:15px;gap:10px}
  .page-title h1{font-size:20px;line-height:1.2}
  .page-title p{font-size:11px;line-height:1.45}
  .page-title .primary{white-space:nowrap;padding:11px 13px;min-height:42px}
  .cards{grid-template-columns:1fr;gap:10px}
  .stat{min-height:112px;padding:16px}
  .stat-value{font-size:25px;margin-top:8px}
  .grid-2{grid-template-columns:1fr;gap:12px}
  .quick-grid{grid-template-columns:1fr 1fr;gap:9px}
  .quick{min-height:100px;padding:12px}
  .quick strong{font-size:12px}
  .quick small{font-size:10px;line-height:1.35}
  .toolbar{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:11px}
  .toolbar .filter:first-child{width:100%}
  .filter{min-height:42px;font-size:12px;padding:10px}

  /* Convert data tables into readable mobile cards instead of horizontal scrolling. */
  .panel{overflow:hidden}
  .panel-body{overflow:hidden}
  table, table#caseTable, table#clientTable, table#hearingTable, table#taskTable, table#centralControlTable{
    width:100%;min-width:0;display:block;border-collapse:separate;border-spacing:0
  }
  table thead{display:none}
  table tbody{display:block;width:100%}
  table tbody tr{display:block;width:100%;padding:10px 12px;border-bottom:1px solid #e7ebf2;background:#fff}
  table tbody tr:last-child{border-bottom:0}
  table tbody tr:hover{background:#fff}
  table tbody td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;padding:8px 0;border-bottom:1px dashed #e8ebf0;font-size:12px;line-height:1.4;text-align:right;overflow-wrap:anywhere}
  table tbody td:last-child{border-bottom:0;padding-bottom:2px}
  table tbody td::before{content:attr(data-label);font-size:10px;font-weight:700;color:#7a8494;text-align:left;flex:0 0 34%;max-width:42%}
  table tbody td > *{max-width:66%}
  table tbody td .secondary{min-height:38px;padding:8px 12px}

  #caseTable tbody td:nth-child(1)::before{content:"Case"}
  #caseTable tbody td:nth-child(2)::before{content:"Client"}
  #caseTable tbody td:nth-child(3)::before{content:"Court"}
  #caseTable tbody td:nth-child(4)::before{content:"Next Hearing"}
  #caseTable tbody td:nth-child(5)::before{content:"Status"}
  #caseTable tbody td:nth-child(6)::before{content:"Action"}
  #clientTable tbody td:nth-child(1)::before{content:"Client"}
  #clientTable tbody td:nth-child(2)::before{content:"Phone / WhatsApp"}
  #clientTable tbody td:nth-child(3)::before{content:"Email"}
  #clientTable tbody td:nth-child(4)::before{content:"Cases"}
  #clientTable tbody td:nth-child(5)::before{content:"Status"}
  #clientTable tbody td:nth-child(6)::before{content:"Action"}
  #hearingTable tbody td:nth-child(1)::before{content:"Date"}
  #hearingTable tbody td:nth-child(2)::before{content:"Time"}
  #hearingTable tbody td:nth-child(3)::before{content:"Case"}
  #hearingTable tbody td:nth-child(4)::before{content:"Client"}
  #hearingTable tbody td:nth-child(5)::before{content:"Court"}
  #hearingTable tbody td:nth-child(6)::before{content:"Stage"}
  #hearingTable tbody td:nth-child(7)::before{content:"Actions"}
  #taskTable tbody td:nth-child(1)::before{content:"Task"}
  #taskTable tbody td:nth-child(2)::before{content:"Case"}
  #taskTable tbody td:nth-child(3)::before{content:"Due Date"}
  #taskTable tbody td:nth-child(4)::before{content:"Priority"}
  #taskTable tbody td:nth-child(5)::before{content:"Status"}
  #taskTable tbody td:nth-child(6)::before{content:"Action"}
  #centralControlTable tbody td:nth-child(1)::before{content:"Organization"}
  #centralControlTable tbody td:nth-child(2)::before{content:"Administrator"}
  #centralControlTable tbody td:nth-child(3)::before{content:"Status"}
  #centralControlTable tbody td:nth-child(4)::before{content:"Access"}

  #hearingTable tbody td:last-child>div{display:flex!important;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:66%}
  #hearingTable tbody td:last-child .secondary{flex:1 1 auto}

  .badge{white-space:nowrap}
  .panel-head{padding:12px 13px;gap:8px;align-items:flex-start}
  .panel-head h3{font-size:13px}
  .panel-head span{font-size:10px;line-height:1.35}
  .panel-head .primary,.panel-head .secondary{min-height:40px;white-space:nowrap}
  .list-row{padding:12px 13px;gap:10px}
  .list-main{min-width:0}
  .list-main strong{font-size:11px;line-height:1.35;display:block;overflow-wrap:anywhere}
  .list-main small{font-size:9px;line-height:1.4}

  .dashboard-hero{width:100%;height:auto;aspect-ratio:1335/220;min-height:72px;background-size:100% 100%;border-radius:10px;margin-bottom:12px}
  .notice{font-size:10px;line-height:1.5;padding:10px 11px}

  .modal{padding:10px;align-items:center}
  .modal-card{width:100%;max-height:92vh;overflow:auto;border-radius:14px;padding:15px}
  .modal-head{position:sticky;top:0;background:inherit;z-index:2;padding-bottom:10px;margin-bottom:12px}
  .modal-head h3{font-size:16px}
  .form-grid{grid-template-columns:1fr;gap:11px}
  .field.full{grid-column:auto}
  .field label{font-size:11px}
  .field input,.field select,.field textarea{min-height:42px;font-size:13px;padding:10px}
  .field textarea{min-height:100px}
  .form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
  .form-actions button{width:100%;min-height:44px}

  .admin-grid,.admin-control-grid{grid-template-columns:1fr;gap:10px}
  .admin-card{padding:17px;min-height:130px}
  .admin-card h3{font-size:16px}
  .admin-card p{font-size:11px}
  .control-tile{padding:14px}
}

@media (max-width: 520px){
  .topbar{flex-wrap:wrap}
  .search{order:3;flex-basis:100%;width:100%;height:40px}
  .top-actions{margin-left:auto}
  .user-chip span{display:none}
  .content{padding:12px 10px 22px}
  .page-title{display:flex;flex-direction:column}
  .page-title .primary{align-self:flex-start}
  .quick-grid{grid-template-columns:1fr}
  .quick{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px}
  .quick small{text-align:right}
  .stat{min-height:105px}
  .modal{padding:6px}
  .modal-card{max-height:95vh;padding:13px}
  .form-actions{grid-template-columns:1fr}
}

@media (max-width: 360px){
  .topbar{padding:8px}
  .mobile-menu{width:40px;flex-basis:40px}
  .icon-btn{display:none}
  .content{padding-left:8px;padding-right:8px}
  table tbody tr{padding:9px 10px}
  table tbody td{font-size:11px;gap:8px}
  table tbody td::before{font-size:9px;flex-basis:38%}
  table tbody td > *{max-width:60%}
  .page-title h1{font-size:19px}
}


/* Mobile navigation reliability */
.mobile-overlay{display:none}
@media (max-width:720px){
  body.menu-open{overflow:hidden}
  .sidebar{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .mobile-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(1px);z-index:55;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
  .mobile-overlay.open{opacity:1;visibility:visible;pointer-events:auto}
  .sidebar{z-index:60}
  .topbar{z-index:50}
  .mobile-menu{position:relative;z-index:70;display:grid;place-items:center;appearance:none;-webkit-appearance:none;touch-action:manipulation}
  .sidebar .nav-item{min-height:46px;padding:12px 13px;font-size:13px;touch-action:manipulation}
  .sidebar-bottom{padding-bottom:8px}
  .content{min-height:calc(100vh - 60px);padding-bottom:80px}
  .panel-head{flex-wrap:wrap}
  .panel-head>div{min-width:0;flex:1 1 150px}
  .panel-head>.primary,.panel-head>.secondary{flex:0 0 auto}
  table tbody td:last-child{padding-bottom:8px}
  table tbody td:last-child>button,table tbody td:last-child>div{width:100%;max-width:100%;justify-content:flex-start}
  #hearingTable tbody td:last-child>div{max-width:100%;justify-content:flex-start}
  table tbody td .secondary{min-width:82px;min-height:42px}
}
@media (max-width:520px){
  .page-title .primary{width:100%;align-self:stretch;text-align:center}
  .panel-head>.primary,.panel-head>.secondary{width:100%;text-align:center}
  .panel-head>div + .primary,.panel-head>div + .secondary{margin-top:2px}
  .form-actions{padding-bottom:4px}
}

/* FIX: Keep Client Meeting Save & WhatsApp actions visible and reachable */
.modal{overflow:hidden}
.modal-card{max-height:calc(100vh - 40px);overflow-y:auto;overscroll-behavior:contain}
.modal-head{position:sticky;top:-20px;background:#fff;z-index:10;padding-top:2px}
.form-actions{position:sticky;bottom:-20px;background:#fff;z-index:10;padding:14px 0 2px;margin-top:14px;border-top:1px solid var(--line)}
@media(max-width:720px){
  .modal{padding:10px;align-items:center}
  .modal-card{max-height:92vh;padding:15px}
  .modal-head{top:-15px}
  .form-actions{bottom:-15px;flex-wrap:wrap}
}
@media(max-width:430px){
  .modal{padding:6px}
  .modal-card{max-height:95vh;padding:13px}
  .form-actions{flex-direction:column-reverse}
  .form-actions button{width:100%;min-height:44px}
}

.case360-layout{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,2fr);gap:16px;margin-top:16px}.case360-result{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:13px;margin-bottom:9px;color:var(--ink)}.case360-result:hover{border-color:var(--blue);background:var(--soft-blue)}.case360-result span,.case360-result small{color:var(--muted)}.case360-parties{display:flex;flex-wrap:wrap;gap:10px}.party-card{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:170px;display:flex;flex-direction:column;gap:4px}.party-card span,.party-card small{color:var(--muted);font-size:12px}.case360-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.case360-columns section{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}.case360-columns h4{margin-top:0}@media(max-width:900px){.case360-layout,.case360-columns{grid-template-columns:1fr}}

/* Case 360 video-style workspace */
.c360-workspace{display:flex;flex-direction:column;gap:16px}.c360-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:22px;border-radius:14px;background:linear-gradient(120deg,#162e72,#294fa7);color:#fff}.c360-kicker{font-size:11px;letter-spacing:1.2px;opacity:.8;font-weight:700}.c360-hero h2{margin:6px 0 3px;font-size:26px}.c360-hero p{margin:0 0 6px;font-size:16px}.c360-hero small{opacity:.85}.c360-hero-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.c360-hero-actions .secondary{background:#fff;color:#17316f;border-color:#fff}.c360-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.c360-summary>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px;min-width:0}.c360-summary span,.c360-summary small,.c360-finance span{display:block;color:var(--muted);font-size:12px}.c360-summary strong{display:block;margin-top:6px;font-size:18px}.c360-nav{display:flex;gap:8px;flex-wrap:wrap}.c360-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:0;overflow:hidden}.c360-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;background:#f7f9fe;border-bottom:1px solid var(--line)}.c360-section-head h3{margin:0;font-size:16px}.c360-section-head button{margin-left:5px}.c360-section>.c360-detail-grid,.c360-section>.c360-client-grid,.c360-section>.c360-finance,.c360-section>.empty,.c360-section>.c360-table-wrap{padding:18px}.c360-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.c360-detail-grid label{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.c360-detail-grid strong{font-size:14px}.c360-client-grid{display:flex;gap:12px;flex-wrap:wrap}.c360-client{border:1px solid var(--line);border-radius:10px;padding:13px;min-width:220px;display:flex;flex-direction:column;gap:5px}.c360-client span,.c360-client div{font-size:12px;color:var(--muted)}.c360-table-wrap{overflow:auto}.c360-table-wrap table{width:100%;border-collapse:collapse}.c360-table-wrap th{background:#f7f9fe;color:#53617c;font-size:12px;text-align:left}.c360-table-wrap th,.c360-table-wrap td{padding:11px;border-bottom:1px solid var(--line);vertical-align:top;font-size:13px}.c360-finance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.c360-finance>div{border:1px solid var(--line);border-radius:10px;padding:13px}.c360-finance strong{display:block;font-size:19px;margin-top:6px}@media(max-width:900px){.c360-summary,.c360-finance{grid-template-columns:repeat(2,minmax(0,1fr))}.c360-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.c360-hero{flex-direction:column}.c360-summary,.c360-finance,.c360-detail-grid{grid-template-columns:1fr}.c360-client{min-width:0;width:100%}}

/* Colorful Case 360 theme - preserves existing layout and behavior */
.c360-workspace{gap:18px}
.c360-hero{background:linear-gradient(135deg,#1e40af 0%,#2563eb 52%,#7c3aed 100%);box-shadow:0 10px 24px rgba(37,99,235,.16);border:1px solid rgba(255,255,255,.18)}
.c360-kicker{color:#dbeafe;opacity:1}
.c360-hero h2{font-size:30px;letter-spacing:-.5px}
.c360-hero p{font-weight:600}
.c360-summary>div{position:relative;overflow:hidden;min-height:92px;box-shadow:0 5px 16px rgba(15,23,42,.05);border:1px solid transparent}
.c360-summary>div:nth-child(1){background:linear-gradient(135deg,#dbeafe,#eff6ff);border-color:#bfdbfe}
.c360-summary>div:nth-child(2){background:linear-gradient(135deg,#ccfbf1,#ecfeff);border-color:#99f6e4}
.c360-summary>div:nth-child(3){background:linear-gradient(135deg,#ffe4e6,#fff1f2);border-color:#fecdd3}
.c360-summary>div:nth-child(4){background:linear-gradient(135deg,#ede9fe,#f5f3ff);border-color:#ddd6fe}
.c360-summary>div:before{content:"";position:absolute;right:-24px;top:-28px;width:82px;height:82px;border-radius:50%;background:rgba(255,255,255,.5)}
.c360-summary span{font-weight:600;color:#52627e}
.c360-summary strong{color:#172554;font-size:19px}
.c360-nav{padding:4px;background:#eef2ff;border:1px solid #dbeafe;border-radius:12px}
.c360-nav .secondary{background:#fff;border-color:#c7d2fe;color:#243b7a}
.c360-nav .secondary:hover{background:#dbeafe;border-color:#93c5fd}
.c360-section{box-shadow:0 5px 16px rgba(15,23,42,.045);border-color:#dbe4f5}
.c360-section-head{background:linear-gradient(90deg,#eff6ff,#f8fafc);border-bottom-color:#dbeafe}
.c360-section:nth-of-type(2) .c360-section-head{background:linear-gradient(90deg,#ecfeff,#f0fdfa)}
.c360-section:nth-of-type(3) .c360-section-head{background:linear-gradient(90deg,#fff1f2,#fdf2f8)}
.c360-section:nth-of-type(4) .c360-section-head{background:linear-gradient(90deg,#f5f3ff,#eef2ff)}
.c360-section:nth-of-type(5) .c360-section-head{background:linear-gradient(90deg,#fffbeb,#fff7ed)}
.c360-section:nth-of-type(6) .c360-section-head{background:linear-gradient(90deg,#ecfdf5,#f0fdfa)}
.c360-section:nth-of-type(7) .c360-section-head{background:linear-gradient(90deg,#fff1f2,#fff7ed)}
.c360-section-head h3{color:#1e3a8a}
.c360-client{background:linear-gradient(135deg,#f8fbff,#ffffff);border-color:#bfdbfe;box-shadow:0 3px 10px rgba(59,130,246,.06)}
.c360-client strong{color:#1e3a8a}
.c360-finance>div{box-shadow:0 3px 10px rgba(15,23,42,.04)}
.c360-finance>div:nth-child(1){background:#eff6ff;border-color:#bfdbfe}.c360-finance>div:nth-child(2){background:#ecfdf5;border-color:#bbf7d0}.c360-finance>div:nth-child(3){background:#fff1f2;border-color:#fecdd3}.c360-finance>div:nth-child(4){background:#fffbeb;border-color:#fde68a}
.c360-finance strong{color:#172554}
.c360-table-wrap th{background:#eef2ff;color:#3730a3}
.c360-table-wrap tr:hover td{background:#f8fbff}
.c360-workspace .primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#1d4ed8}
.c360-workspace .secondary{border-color:#c7d2fe}
@media(max-width:560px){.c360-hero h2{font-size:25px}.c360-nav{padding:8px}}
.client-group-row td{background:#eef4ff;color:#173b8f;border-top:2px solid #c9d8f5;font-weight:700}
.client-group-row small{font-weight:500;color:#5b6b85}

/* Professional A4 report presentation */
.report-page{width:100%;max-width:1120px;margin:0 auto;padding:28px 34px 24px;background:#fff;color:#172554;box-sizing:border-box}
.report-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;border-bottom:2px solid #dbe4f0;padding-bottom:20px;margin-bottom:24px}
.report-brand{display:flex;align-items:center;gap:12px}.report-logo{width:48px;height:48px;border:2px solid #c5a15a;border-radius:12px;display:grid;place-items:center;font-size:29px;color:#b18a3c}.report-brand strong{display:block;font-size:23px;letter-spacing:-.5px}.report-brand span{display:block;color:#64748b;font-size:12px;margin-top:3px}.report-heading{text-align:center}.report-heading h1{margin:0;font-size:30px;line-height:1.15;color:#10234d}.report-heading p{margin:7px 0 0;color:#64748b;font-size:14px}.report-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.report-actions button{white-space:nowrap}.report-content{min-width:0}.report-content h2{font-size:21px;margin:0 0 12px;color:#10234d}.report-content h3{font-size:16px;color:#173b8f;margin:24px 0 10px;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.report-content p{line-height:1.55}.report-content table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;background:#fff}.report-content th{background:#eef4fb;color:#173b8f;font-weight:700;text-align:left;border:1px solid #d8e2ef;padding:10px 9px;overflow-wrap:anywhere}.report-content td{border:1px solid #e2e8f0;padding:9px;vertical-align:top;overflow-wrap:anywhere;word-break:normal}.report-content tr:nth-child(even) td{background:#fbfdff}.report-content .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}.report-content .stat{border:1px solid #d8e2ef;border-radius:10px;padding:15px;background:#f8fbff}.report-content .stat-top{color:#64748b;font-size:12px}.report-content .stat-value{font-size:24px;font-weight:800;color:#10234d;margin-top:7px}.report-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #dbe4f0;margin-top:24px;padding-top:12px;color:#64748b;font-size:11px}
@media(max-width:900px){.report-page{padding:20px}.report-header{grid-template-columns:1fr}.report-heading{text-align:left}.report-actions{justify-content:flex-start}.report-content{overflow-x:auto}.report-content table{min-width:760px}}
@media print{ @page{size:A4 portrait;margin:12mm}html,body{background:#fff!important;margin:0!important;padding:0!important}body *{visibility:hidden!important}#content,.report-page,.report-page *{visibility:visible!important}#content{position:static!important;width:100%!important;margin:0!important;padding:0!important}.report-page{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;box-shadow:none!important}.report-header{grid-template-columns:1fr auto 1fr;gap:10px;padding-bottom:12px;margin-bottom:15px}.report-logo{width:36px;height:36px;font-size:22px}.report-brand strong{font-size:18px}.report-heading h1{font-size:23px}.report-heading p{font-size:11px}.report-actions{display:none!important}.report-content table{font-size:9px;table-layout:fixed}.report-content th,.report-content td{padding:5px;line-height:1.25}.report-content h2{font-size:17px}.report-content h3{font-size:13px;margin:15px 0 6px}.report-content .cards{gap:7px}.report-content .stat{padding:8px}.report-content .stat-value{font-size:17px}.report-footer{font-size:9px;margin-top:12px}.report-content tr{break-inside:avoid;page-break-inside:avoid}.report-content h3{break-after:avoid;page-break-after:avoid}}

/* Professional report workspace and A4 print layout */
.report-mode .sidebar,.report-mode .topbar{display:none!important}
.report-mode .main{margin-left:0!important;width:100%!important;min-height:100vh}
.report-mode .content{padding:0!important;background:#f3f6fb!important}
.report-mode .report-page{max-width:1120px;margin:24px auto;padding:34px 38px;background:#fff;border:1px solid #dbe4f0;box-shadow:0 8px 28px rgba(16,35,77,.08);box-sizing:border-box}
.report-mode .report-header{grid-template-columns:1fr auto 1fr;align-items:center}
.report-mode .report-content{overflow:visible!important}
.report-mode .report-content table{min-width:0!important;width:100%!important}
.report-mode .report-content th,.report-mode .report-content td{white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:900px){.report-mode .report-page{margin:0;padding:20px;border:0;box-shadow:none}.report-mode .report-header{grid-template-columns:1fr}.report-mode .report-heading{text-align:left}.report-mode .report-actions{justify-content:flex-start}}
@media print{
  @page{size:A4 portrait;margin:10mm}
  .report-mode .content{background:#fff!important}
  .report-mode .report-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  .report-mode .report-header{grid-template-columns:1fr auto 1fr;gap:10px;padding-bottom:10px;margin-bottom:14px}
  .report-mode .report-brand strong{font-size:18px}
  .report-mode .report-brand span{font-size:10px}
  .report-mode .report-logo{width:38px;height:38px;font-size:22px}
  .report-mode .report-heading h1{font-size:22px}
  .report-mode .report-heading p{font-size:10px}
  .report-mode .report-content h2{font-size:16px;margin:0 0 8px}
  .report-mode .report-content h3{font-size:12px;margin:12px 0 5px;padding-bottom:5px}
  .report-mode .report-content p{font-size:10px;line-height:1.35}
  .report-mode .report-content table{font-size:8.5px!important;table-layout:fixed!important}
  .report-mode .report-content th,.report-mode .report-content td{padding:4px 5px!important;line-height:1.2!important}
  .report-mode .report-content .cards{gap:6px;margin-bottom:10px}
  .report-mode .report-content .stat{padding:7px}
  .report-mode .report-content .stat-value{font-size:15px}
  .report-mode .report-footer{font-size:8px;margin-top:10px;padding-top:7px}
  .report-mode .report-content tr{break-inside:avoid;page-break-inside:avoid}
  .report-mode .report-content h3{break-after:avoid;page-break-after:avoid}
}

/* Final professional A4 report treatment for every report */
.report-mode .main{margin-left:0!important;width:100%!important;min-height:0!important}
.report-mode .content{padding:0!important;background:#eef2f7!important}
.report-mode .report-page{width:210mm;max-width:calc(100% - 32px);min-height:297mm;margin:20px auto;padding:16mm 14mm 12mm;background:#fff;color:#172554;border:1px solid #d8e1ee;box-shadow:0 8px 28px rgba(16,35,77,.10);box-sizing:border-box;overflow:hidden}
.report-mode .report-header{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;border-bottom:2px solid #dbe4f0;padding-bottom:14px;margin-bottom:18px}
.report-mode .report-brand{min-width:0}.report-mode .report-brand strong{font-size:21px}.report-mode .report-brand span{font-size:11px}
.report-mode .report-heading{min-width:0;text-align:center}.report-mode .report-heading h1{font-size:25px;line-height:1.15;white-space:normal}.report-mode .report-heading p{font-size:11px}
.report-mode .report-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.report-mode .report-actions button{font-size:11px;padding:8px 10px}
.report-mode .report-content{width:100%;min-width:0;overflow:visible!important}
.report-mode .report-content h2{font-size:18px;margin:0 0 10px}.report-mode .report-content h3{font-size:13px;margin:16px 0 7px;padding-bottom:5px}
.report-mode .report-content p{font-size:11px;line-height:1.4;margin:7px 0}
.report-mode .report-content table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse;font-size:10px;word-break:normal}
.report-mode .report-content th,.report-mode .report-content td{padding:6px 5px;border:1px solid #d8e2ef;vertical-align:top;overflow-wrap:anywhere;white-space:normal!important;line-height:1.25}
.report-mode .report-content th{background:#edf4fb;color:#173b8f;font-weight:700}
.report-mode .report-content tr{break-inside:avoid;page-break-inside:avoid}
.report-mode .report-content .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.report-mode .report-content .stat{padding:10px;border-radius:8px}.report-mode .report-content .stat-value{font-size:19px}
.report-mode .report-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #dbe4f0;margin-top:18px;padding-top:8px;font-size:9px;color:#64748b}
@media(max-width:900px){.report-mode .report-page{width:auto;max-width:calc(100% - 20px);margin:10px;padding:20px}.report-mode .report-header{grid-template-columns:1fr}.report-mode .report-heading{text-align:left}.report-mode .report-actions{justify-content:flex-start}.report-mode .report-content table{font-size:10px}}
@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  body *{visibility:hidden!important}
  .report-mode #content,.report-mode .report-page,.report-mode .report-page *{visibility:visible!important}
  .report-mode #content{position:static!important;width:100%!important;margin:0!important;padding:0!important}
  .report-mode .content{background:#fff!important}
  .report-mode .report-page{width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}
  .report-mode .report-header{grid-template-columns:1fr auto 1fr;gap:8px;padding-bottom:9px;margin-bottom:12px}
  .report-mode .report-logo{width:34px;height:34px;font-size:20px}.report-mode .report-brand strong{font-size:16px}.report-mode .report-brand span{font-size:9px}
  .report-mode .report-heading h1{font-size:20px}.report-mode .report-heading p{font-size:9px}.report-mode .report-actions{display:none!important}
  .report-mode .report-content h2{font-size:15px;margin-bottom:7px}.report-mode .report-content h3{font-size:11px;margin:10px 0 4px}
  .report-mode .report-content p{font-size:9px;line-height:1.25}.report-mode .report-content table{font-size:8px!important;table-layout:fixed!important}
  .report-mode .report-content th,.report-mode .report-content td{padding:3px 4px!important;line-height:1.15!important}
  .report-mode .report-content .cards{gap:5px;margin-bottom:8px}.report-mode .report-content .stat{padding:6px}.report-mode .report-content .stat-value{font-size:13px}
  .report-mode .report-footer{font-size:8px;margin-top:9px;padding-top:5px}
  .report-mode .report-content h2,.report-mode .report-content h3{break-after:avoid;page-break-after:avoid}
}

/* Client-wise financial report */
.finance-client-groups{display:flex;flex-direction:column;gap:18px}
.finance-client-group{border:1px solid #dce4f0;border-radius:12px;overflow:hidden;background:#fff;break-inside:avoid;page-break-inside:avoid}
.finance-client-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;background:#eef4ff;border-bottom:1px solid #dce4f0}
.finance-client-heading h3{margin:0;color:#172b63;font-size:18px}
.finance-client-heading small{color:#667085}
.finance-client-totals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;font-size:12px;color:#52627b}
.finance-client-totals strong{color:#172b63}
.finance-client-group table{margin:0;border-radius:0;box-shadow:none}
.finance-client-group tfoot th{background:#f7f9fc;color:#172b63;font-weight:700}
@media(max-width:800px){.finance-client-heading{align-items:flex-start;flex-direction:column}.finance-client-totals{justify-content:flex-start}}
@media print{.finance-client-group{break-inside:avoid;page-break-inside:avoid}.finance-client-heading{background:#eef4ff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.finance-client-group table{font-size:10px}}

.report-filter{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:20px;padding:16px;background:#f7faff;border:1px solid #dce6f4;border-radius:12px}.report-filter .field{flex:1;min-width:240px}.report-filter input{width:100%;padding:12px 14px;border:1px solid #cbd7e8;border-radius:8px;background:#fff}.report-empty{padding:28px;text-align:center;border:1px dashed #cbd7e8;border-radius:12px;color:#667085}.report-selection-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0;padding:14px 16px;background:#eef5ff;border-left:4px solid #2d67c7;border-radius:8px;color:#172b63}.report-selection-summary span{font-size:13px;color:#667085}

/* Dashboard calendar */
.dashboard-calendar-wrap{margin-top:16px}
.dashboard-calendar{overflow:hidden}
.dashboard-calendar .panel-head span{display:block;color:#718096;font-size:13px;margin-top:3px}
.dash-cal-weekdays,.dash-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:0 16px}
.dash-cal-weekdays{margin-top:4px;margin-bottom:6px;color:#718096;font-size:12px;text-align:center;font-weight:700}
.dash-cal-day{min-height:58px;border:1px solid #e3eaf4;border-radius:9px;background:#fff;color:#1f2937;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 3px;cursor:pointer;font:inherit}
.dash-cal-day span{font-weight:700;font-size:14px}
.dash-cal-day.muted-day{background:transparent;border-color:transparent;cursor:default}
.dash-cal-day.today{background:#eaf2ff;border:2px solid #3975d5;color:#174ea6}
.dash-cal-day.has-events{background:#f8fbff}
.dash-cal-dots{display:flex;gap:3px;margin-top:8px}
.dash-cal-dots b,.dash-cal-legend b{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64748b}
.dash-cal-dots .hearing,.dash-cal-legend .hearing{background:#e67e22}
.dash-cal-dots .meeting,.dash-cal-legend .meeting{background:#16a085}
.dash-cal-dots .task,.dash-cal-legend .task{background:#7c3aed}
.dash-cal-legend{display:flex;gap:18px;flex-wrap:wrap;padding:14px 16px 16px;color:#64748b;font-size:12px}
.dash-cal-legend span{display:flex;align-items:center;gap:6px}
@media(max-width:700px){.dash-cal-weekdays,.dash-cal-grid{gap:4px;padding:0 10px}.dash-cal-day{min-height:46px;padding:6px 2px}.dash-cal-day span{font-size:12px}.dash-cal-dots{margin-top:5px}.dash-cal-legend{padding:12px 10px}}
/* Mobile menu touch reliability - does not alter desktop design */
@media (max-width:720px){
  #mobileMenu{pointer-events:auto;cursor:pointer;position:relative;z-index:1000;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .topbar{position:sticky;z-index:900}
  .mobile-overlay{z-index:950}
  .sidebar{z-index:1000}
}

/* Mobile navigation alignment polish - layout only */
@media (max-width:720px){
  .sidebar{width:min(300px,86vw);padding:18px 14px 14px;box-sizing:border-box;overflow-x:hidden}
  .brand{padding:4px 8px 20px;gap:10px;align-items:center}
  .brand-mark{width:40px;height:40px;flex:0 0 40px}
  .brand strong{font-size:15px;line-height:1.25}
  .brand small{font-size:10px;line-height:1.3}
  nav{gap:6px;width:100%}
  .nav-item{width:100%;min-height:46px;box-sizing:border-box;padding:12px 12px;gap:11px;border-radius:10px;font-size:13px;line-height:1.25;white-space:normal}
  .nav-item span{min-width:0;overflow-wrap:anywhere}
  .nav-item svg,.nav-item i{flex:0 0 auto}
  .sidebar-bottom{margin-top:18px;padding-bottom:4px}
  .profile-mini{margin-top:12px;padding:14px 6px 4px;gap:10px}
  .profile-mini>div{min-width:0}
  .profile-mini strong,.profile-mini small{overflow-wrap:anywhere}
  .mobile-overlay{touch-action:manipulation}
}
@media (max-width:380px){
  .sidebar{width:88vw;padding-left:12px;padding-right:12px}
  .nav-item{padding-left:10px;padding-right:10px;gap:9px}
}

/* Final mobile alignment and readability fix — layout only */
@media (max-width:720px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  #app,.main,.content{min-width:0;max-width:100%;}
  .sidebar{width:min(320px,88vw);padding:16px 12px 12px;overflow-y:auto;overflow-x:hidden}
  .brand{width:100%;min-width:0}
  nav{width:100%;min-width:0;gap:5px}
  .nav-item{display:flex;align-items:center;width:100%;min-width:0;min-height:48px;padding:12px 13px;gap:12px;text-align:left;white-space:normal;word-break:normal;overflow:visible}
  .nav-item:first-letter{font-size:16px}
  .nav-item span{display:block;flex:1;min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.35}
  .sidebar-bottom,.profile-mini{width:100%;min-width:0}
  .topbar{min-width:0;width:100%;gap:10px}
  .topbar>*{min-width:0}
  .content{padding:16px 12px}
  .page-title{width:100%;min-width:0;align-items:stretch;flex-wrap:wrap}
  .page-title>div{min-width:0;flex:1 1 180px}
  .page-title h1{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
  .page-title p{line-height:1.45;overflow-wrap:anywhere}
  .page-title button,.page-title .primary,.page-title .secondary{max-width:100%;white-space:normal}
  .toolbar{flex-wrap:wrap;align-items:stretch}
  .toolbar>*{min-width:0;max-width:100%}
  .toolbar .filter:first-child{flex:1 1 100%;width:100%}
  .form-grid{grid-template-columns:minmax(0,1fr)!important}
  .field,.field.full{grid-column:auto!important;min-width:0}
  .field input,.field select,.field textarea{width:100%;max-width:100%;min-width:0;font-size:14px;padding:11px}
  .form-actions{flex-wrap:wrap;justify-content:stretch}
  .form-actions button{flex:1 1 120px;min-height:42px}
  .panel{min-width:0;max-width:100%;overflow:hidden}
  .panel-head{gap:10px;flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
  .panel-body{min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:620px}
  .modal{padding:10px;align-items:center}
  .modal-card{width:100%;max-width:100%;max-height:92vh;overflow-y:auto;padding:16px}
  .modal-head{gap:10px;align-items:flex-start}
  .modal-head h3{line-height:1.3;overflow-wrap:anywhere}
}
@media (max-width:380px){
  .sidebar{width:92vw}
  .nav-item{padding:11px 10px;gap:10px;font-size:12px}
  .content{padding:14px 10px}
  .page-title h1{font-size:19px}
}

/* Case 360 live search suggestions */
.case360-search-toolbar{position:relative;align-items:stretch}
.case360-search-wrap{position:relative;flex:1;min-width:0}
.case360-search-wrap .filter{width:100%;height:100%}
.case360-search-suggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:1000;background:#fff;border:1px solid #dbe3f0;border-radius:10px;box-shadow:0 14px 30px rgba(20,40,80,.16);overflow:hidden;max-height:360px;overflow-y:auto}
.case360-suggestion{display:block;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #eef2f7;background:#fff;text-align:left;cursor:pointer}
.case360-suggestion:last-child{border-bottom:0}
.case360-suggestion:hover{background:#f3f7ff}
.case360-suggestion strong{display:block;color:#172033;font-size:13px}
.case360-suggestion span{display:block;margin-top:3px;color:#64748b;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case360-suggestion-empty{padding:12px 14px;color:#64748b;font-size:12px}

/* ===== Final mobile layout pass — alignment only, no functional changes ===== */
@media (max-width:720px){
  html,body{overflow-x:hidden!important}
  #app{width:100%!important;min-width:0!important}
  .main{width:100%!important;min-width:0!important;margin-left:0!important}
  .topbar{width:100%!important;min-width:0!important;padding:9px 10px!important;gap:7px!important}
  .topbar .search{min-width:0!important;flex:1 1 auto!important;width:auto!important}
  .top-actions{min-width:0!important}
  .content{width:100%!important;max-width:100%!important;min-width:0!important;padding:14px 10px 24px!important}
  .page-title{width:100%!important;min-width:0!important}
  .page-title>div{min-width:0!important}
  .cards,.grid-2,.quick-grid,.admin-grid,.admin-control-grid{width:100%!important;min-width:0!important}
  .grid-2{grid-template-columns:minmax(0,1fr)!important}
  .panel{width:100%!important;min-width:0!important;max-width:100%!important}
  .panel-head{width:100%!important;min-width:0!important}
  .panel-head .secondary{flex:0 0 auto!important;width:auto!important;min-width:0!important}
  .panel-body{width:100%!important;min-width:0!important}
  .toolbar{width:100%!important;min-width:0!important}
  .toolbar>*{max-width:100%!important;min-width:0!important}
  .form-grid{width:100%!important;min-width:0!important}
  .field input,.field select,.field textarea{box-sizing:border-box!important}
  .form-actions{width:100%!important}
  .form-actions button{min-width:0!important}
  table{min-width:620px}
  .panel-body{overflow-x:auto!important}
  .calendar-search-bar{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;align-items:stretch!important}
  .calendar-search-bar input{min-width:0!important;width:100%!important;height:42px!important}
  .calendar-search-bar button{min-width:0!important;height:42px!important;padding:9px 11px!important}
  .calendar-toolbar{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px auto!important;gap:6px!important;align-items:center!important}
  .calendar-toolbar h2{min-width:0!important;font-size:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .calendar-toolbar .secondary{min-width:42px!important;padding:9px 8px!important}
  .calendar-main>div[style*="display:flex"]{width:100%!important;min-width:0!important}
  .calendar-main>div[style*="display:flex"] select{min-width:0!important;max-width:100%!important;flex:1 1 auto!important}
  .court-cal-grid,.calendar-weekdays{width:100%!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
  .court-cal-cell{width:100%!important;min-width:0!important}
  .next-cases-card{width:100%!important;min-width:0!important}
  .list-row{min-width:0!important}
  .list-main{min-width:0!important}
  .list-main strong,.list-main small{overflow-wrap:anywhere!important}
  .date-box{flex:0 0 43px!important}
  .modal{width:100%!important}
  .modal-card{width:100%!important;min-width:0!important}
}
@media (max-width:430px){
  .content{padding-left:8px!important;padding-right:8px!important}
  .calendar-search-bar{grid-template-columns:minmax(0,1fr) auto!important}
  .calendar-search-bar #calendarSearchClear{grid-column:1 / -1!important}
  .calendar-toolbar{grid-template-columns:38px minmax(0,1fr) 38px!important}
  .calendar-toolbar #calToday{grid-column:1 / -1!important;width:100%!important}
  .calendar-toolbar .secondary{min-width:38px!important}
  .calendar-toolbar h2{font-size:17px!important}
}

/* Final mobile vertical-spacing correction — removes flex-created blank space only */
@media (max-width:720px){
  .page-title{height:auto!important;min-height:0!important;margin-bottom:12px!important;gap:8px!important}
  .page-title>div{flex:0 1 auto!important;height:auto!important;min-height:0!important}
  .page-title h1{margin-bottom:0!important}
  .page-title p{margin-top:5px!important;margin-bottom:0!important}
  .page-title .primary{margin-top:0!important}
  .dashboard-hero{margin-top:0!important;margin-bottom:10px!important}
  .notice{margin-top:0!important;margin-bottom:12px!important}
  .cards{margin-top:0!important;margin-bottom:14px!important}
  .dashboard-calendar-wrap{margin-top:12px!important}
  .panel{margin-top:12px}
  .panel:first-child{margin-top:0}
  .grid-2{gap:12px!important}
  .quick-grid{gap:8px!important}
}
@media (max-width:430px){
  .content{padding-top:12px!important;padding-bottom:20px!important}
  .page-title{margin-bottom:10px!important}
}

/* Finance mobile table alignment — presentation only */
@media (max-width:720px){
  .finance-main-table tbody td:nth-child(1)::before{content:"Invoice"}
  .finance-main-table tbody td:nth-child(2)::before{content:"Client"}
  .finance-main-table tbody td:nth-child(3)::before{content:"Amount"}
  .finance-main-table tbody td:nth-child(4)::before{content:"Paid"}
  .finance-main-table tbody td:nth-child(5)::before{content:"Status"}
  .finance-main-table tbody td:nth-child(6)::before{content:"Actions"}

  .finance-client-table tbody td:nth-child(1)::before{content:"Invoice"}
  .finance-client-table tbody td:nth-child(2)::before{content:"Invoice Date"}
  .finance-client-table tbody td:nth-child(3)::before{content:"Total Amount"}
  .finance-client-table tbody td:nth-child(4)::before{content:"Paid Amount"}
  .finance-client-table tbody td:nth-child(5)::before{content:"Outstanding"}
  .finance-client-table tbody td:nth-child(6)::before{content:"Status"}

  .finance-payment-table tbody td:nth-child(1)::before{content:"Payment Date"}
  .finance-payment-table tbody td:nth-child(2)::before{content:"Invoice"}
  .finance-payment-table tbody td:nth-child(3)::before{content:"Payment Method"}
  .finance-payment-table tbody td:nth-child(4)::before{content:"Amount Received"}
  .finance-payment-table tbody td:nth-child(5)::before{content:"Client Balance"}
  .finance-payment-table tbody td:nth-child(6)::before{content:"Reference / Notes"}

  .finance-main-table tbody tr,
  .finance-client-table tbody tr,
  .finance-payment-table tbody tr{
    padding:12px 14px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  .finance-main-table tbody td,
  .finance-client-table tbody td,
  .finance-payment-table tbody td{
    align-items:center!important;
    min-height:42px!important;
    box-sizing:border-box!important;
  }
  .finance-main-table tbody td::before,
  .finance-client-table tbody td::before,
  .finance-payment-table tbody td::before{
    flex:0 0 36%!important;
    max-width:36%!important;
    padding-right:8px!important;
    box-sizing:border-box!important;
    line-height:1.3!important;
  }
  .finance-main-table tbody td > *,
  .finance-client-table tbody td > *,
  .finance-payment-table tbody td > *{
    flex:0 1 64%!important;
    width:auto!important;
    max-width:64%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    text-align:right!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .finance-main-table .table-actions{
    display:flex!important;
    flex:0 1 64%!important;
    max-width:64%!important;
    width:auto!important;
    justify-content:flex-end!important;
    gap:6px!important;
    flex-wrap:wrap!important;
  }
  .finance-main-table .table-actions .secondary{
    min-width:72px!important;
    flex:0 1 auto!important;
  }

  /* Group and total rows remain readable while preserving the existing grouping. */
  .finance-client-table .client-group-row td,
  .finance-client-table .client-total-row td,
  .finance-payment-table .client-group-row td,
  .finance-payment-table .client-total-row td{
    display:block!important;
    text-align:left!important;
    padding:10px 0!important;
    min-height:0!important;
  }
  .finance-client-table .client-group-row td::before,
  .finance-client-table .client-total-row td::before,
  .finance-payment-table .client-group-row td::before,
  .finance-payment-table .client-total-row td::before{
    display:none!important;
    content:none!important;
  }
  .finance-client-table .client-group-row td,
  .finance-payment-table .client-group-row td{
    font-size:12px!important;
  }
}
@media (max-width:430px){
  .finance-main-table tbody td,
  .finance-client-table tbody td,
  .finance-payment-table tbody td{
    font-size:12px!important;
    gap:8px!important;
  }
  .finance-main-table tbody td::before,
  .finance-client-table tbody td::before,
  .finance-payment-table tbody td::before{
    flex-basis:38%!important;
    max-width:38%!important;
    font-size:10px!important;
  }
  .finance-main-table tbody td > *,
  .finance-client-table tbody td > *,
  .finance-payment-table tbody td > *{
    flex-basis:62%!important;
    max-width:62%!important;
  }
  .finance-main-table .table-actions{
    flex-basis:62%!important;
    max-width:62%!important;
  }
}


/* Advocate profile settings — keep profile controls aligned and readable */
.advocate-profile-settings{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:22px;
  align-items:center;
  padding:20px;
}
.advocate-profile-preview-wrap{
  width:120px;
  height:120px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  flex:none;
  background:linear-gradient(135deg,#172554,#3155a6);
  color:#fff;
  font-size:34px;
  font-weight:700;
  border:4px solid #fff;
  box-shadow:0 8px 20px rgba(23,37,84,.16);
}
.advocate-profile-preview-wrap img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.advocate-profile-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.advocate-profile-info>strong{
  font-size:16px;
  line-height:1.3;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.advocate-profile-info>small{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.advocate-photo-upload{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-top:6px;
  cursor:pointer;
  overflow:hidden;
}
.advocate-photo-upload input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.profile-photo-help{
  max-width:460px;
}
@media(max-width:720px){
  .advocate-profile-settings{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }
  .advocate-profile-info{
    align-items:center;
    width:100%;
  }
  .advocate-photo-upload{justify-content:center}
  .profile-photo-help{max-width:100%}
}


/* ===== Dashboard/banner color blending =====
   Softly carries the banner's navy, warm gold and charcoal tones into the
   surrounding white dashboard background without changing cards or modules. */
.content:has(.dashboard-hero){
  background:
    radial-gradient(ellipse 42% 26% at 18% 22%,rgba(23,37,84,.10),transparent 72%),
    radial-gradient(ellipse 38% 24% at 58% 20%,rgba(166,108,45,.08),transparent 72%),
    radial-gradient(ellipse 42% 28% at 92% 22%,rgba(48,48,44,.07),transparent 72%),
    linear-gradient(180deg,#f3f6fb 0%,#f8fafc 32%,#eef4f8 100%);
}
.content:has(.dashboard-hero) .dashboard-hero{
  box-shadow:
    0 8px 24px rgba(23,37,84,.10),
    0 0 34px rgba(166,108,45,.06);
}

/* Finance report PDF: keep client lookup controls on-screen only. */
@media print{
  .report-mode .report-filter{display:none!important;}
  .report-mode #financialClientReport{display:block!important;}
}
