:root{
  --brand:#2563eb;
  --brand-2:#1d4ed8;
  --brand-soft:#eff6ff;
  --brand-ring:rgba(37,99,235,.18);
  --text:#111827;
  --muted:#6b7280;
  --muted-2:#94a3b8;
  --bg:#f5f7fb;
  --panel:#ffffff;
  --panel-2:#f8fafc;
  --line:#e5e7eb;
  --line-strong:#d1d5db;
  --success:#15803d;
  --success-soft:#dcfce7;
  --danger:#b91c1c;
  --danger-soft:#fef2f2;
  --warn:#92400e;
  --shadow:0 18px 55px rgba(15,23,42,.08);
  --shadow-sm:0 10px 28px rgba(15,23,42,.055);
  --radius:18px;
  --radius-sm:12px;
  --sidebar:246px;
  --topbar:76px;
  --focus:0 0 0 4px var(--brand-ring);
}

*{box-sizing:border-box}
html{height:100%;scroll-behavior:smooth}
body{margin:0;min-height:100%;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:none;color:var(--brand-2)}
button,input,textarea,select{font:inherit}
:focus-visible{outline:0;box-shadow:var(--focus)}

.material-symbols-rounded{font-family:'Material Symbols Rounded';font-weight:400;font-style:normal;font-size:20px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased;font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24;vertical-align:-.22em}

.skip-link{position:absolute;left:-999px;top:8px;background:#fff;padding:10px 14px;border-radius:10px;z-index:1000;box-shadow:var(--shadow-sm)}
.skip-link:focus{left:8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}

.auth-shell{display:grid;place-items:center;background:radial-gradient(circle at top left,#dbeafe,transparent 35%),linear-gradient(135deg,#f8fafc,#eef2ff)}
.auth-main{width:min(92vw,440px)}
.login-card{background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.9);box-shadow:var(--shadow);border-radius:28px;padding:34px;backdrop-filter:blur(16px)}
.login-logo,.brand-mark{display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),#0f766e);color:#fff;font-weight:900;letter-spacing:.02em}
.login-logo{width:70px;height:70px;border-radius:22px;margin-bottom:18px;font-size:24px}
.login-card h1{margin:.2rem 0 .3rem;font-size:1.85rem;letter-spacing:-.035em}
.stack{display:grid;gap:18px;margin-top:24px}

.app-shell{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:rgba(255,255,255,.98);color:var(--text);display:flex;flex-direction:column;z-index:30;border-right:1px solid var(--line);box-shadow:10px 0 35px rgba(15,23,42,.035)}
.brand{display:flex;align-items:center;gap:13px;padding:20px 18px 16px;border-bottom:1px solid var(--line)}
.brand-mark{width:44px;height:44px;border-radius:14px;box-shadow:0 12px 26px rgba(37,99,235,.24)}
.brand-copy{min-width:0}
.brand strong{display:block;color:var(--text);font-size:1rem;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand span{display:block;font-size:.76rem;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main-nav{padding:16px 18px 28px;overflow:auto;scrollbar-width:thin}
.nav-section{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;display:grid;gap:4px}
.nav-section-first{border-top:0;margin-top:0;padding-top:0}
.nav-item{position:relative;display:flex;align-items:center;gap:13px;min-height:42px;padding:10px 8px;border-radius:12px;color:#4b5563;font-weight:600;font-size:.94rem;letter-spacing:-.01em;transition:background-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.nav-item:hover{background:#f8fafc;color:var(--text);text-decoration:none;transform:translateX(2px)}
.nav-item.active{background:var(--brand-soft);color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.nav-item.active .nav-icon{font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;color:var(--brand)}
.nav-icon{width:20px;min-width:20px;color:#5f6368;font-size:20px;transition:color .16s ease,font-variation-settings .16s ease}

.page{grid-column:2;min-width:0}
.topbar{height:var(--topbar);position:sticky;top:0;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.9);display:flex;align-items:center;gap:18px;padding:0 30px;z-index:20}
.menu-button{display:none;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:12px;width:42px;height:42px;color:var(--text);cursor:pointer}
.top-search{flex:1;display:flex;align-items:center;max-width:780px;background:#fff;border:1px solid var(--line);border-radius:999px;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.top-search .search-leading{margin-left:15px;color:var(--muted);font-size:21px}
.top-search input{flex:1;border:0;padding:13px 16px;background:transparent;min-width:0;color:var(--text)}
.top-search input::placeholder{color:#9ca3af}
.top-search button{display:inline-flex;align-items:center;gap:8px;border:0;background:var(--brand);color:#fff;padding:0 22px;font-weight:800;height:48px;cursor:pointer}
.top-search button:hover{background:var(--brand-2)}
.user-menu{margin-left:auto;display:flex;align-items:center;gap:11px;min-width:0}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#e0f2fe);color:#1e3a8a;font-weight:900;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}
.user-text{font-size:.86rem;min-width:0}
.user-text strong{display:block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.user-text a{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-weight:700;margin-top:1px}
.user-text a .material-symbols-rounded{font-size:16px}

.content{padding:32px;max-width:1540px;margin:0 auto;width:100%}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}
.page-heading h1{font-size:clamp(1.8rem,2.2vw,2.7rem);line-height:1.05;margin:.1rem 0 .35rem;letter-spacing:-.055em;color:#0f172a}
.eyebrow{margin:0;color:var(--brand);text-transform:uppercase;font-size:.75rem;font-weight:900;letter-spacing:.12em}
.heading-actions,.form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.small-actions{gap:8px}

.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--text);padding:10px 15px;border-radius:12px;font-weight:850;cursor:pointer;text-decoration:none;min-height:42px;box-shadow:0 8px 18px rgba(15,23,42,.035);transition:background-color .16s,border-color .16s,color .16s,transform .16s,box-shadow .16s}
.button:hover{text-decoration:none;border-color:#cbd5e1;color:var(--text);transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.button-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.button-primary:hover{background:var(--brand-2);border-color:var(--brand-2);color:#fff}
.button-danger{background:var(--danger-soft);border-color:#fecdd3;color:var(--danger)}
.button-danger:hover{color:var(--danger);border-color:#fda4af}
.button-ghost{background:transparent;box-shadow:none}
.button-full{width:100%}
.button.disabled{pointer-events:none;opacity:.45}
.button .material-symbols-rounded{font-size:20px}
.button-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.78rem;font-weight:900}
.button-primary .button-badge{background:rgba(255,255,255,.18);color:#fff}

.card,.stat-card,.danger-zone{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.card{padding:22px;margin-bottom:22px}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}
.card-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:1.13rem;letter-spacing:-.02em;color:#0f172a}
.card-head h2 .material-symbols-rounded{color:var(--brand);font-size:22px}
.card-head p{margin:.25rem 0 0}

.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.stat-card{position:relative;padding:20px;color:var(--text);display:flex;flex-direction:column;gap:8px;overflow:hidden;transition:transform .16s,box-shadow .16s,border-color .16s}
.stat-card:hover{text-decoration:none;transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cbd5e1;color:var(--text)}
.stat-card span:not(.stat-icon){color:var(--muted);font-weight:800}
.stat-card strong{font-size:2.05rem;letter-spacing:-.055em;line-height:1;color:#0f172a}
.stat-icon{width:44px;height:44px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid!important;place-items:center;margin-bottom:4px}
.stat-icon .material-symbols-rounded,.stat-icon.material-symbols-rounded{font-size:24px;font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24}

.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.list-cards{display:grid;gap:10px}
.mini-row{display:grid;grid-template-columns:185px 1fr;gap:4px 14px;padding:14px;border:1px solid var(--line);border-radius:14px;color:var(--text);background:var(--panel-2);transition:background-color .16s,border-color .16s,transform .16s}
.mini-row:hover{text-decoration:none;background:#fff;border-color:#cbd5e1;color:var(--text);transform:translateY(-1px)}
.mini-row span:last-child{grid-column:2;color:var(--muted)}
.date-pill{font-weight:850;color:#1e40af;display:inline-flex;align-items:center;gap:6px}
.date-pill .material-symbols-rounded{font-size:18px}

.field{display:grid;gap:7px}
.field label{font-weight:850;font-size:.9rem;color:#374151}
.field input,.field textarea,.field select{border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;color:var(--text);min-width:0;transition:border-color .16s,box-shadow .16s,background-color .16s}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand);box-shadow:var(--focus);outline:0}
.field input:disabled{background:#f3f4f6}
.field input::placeholder,.field textarea::placeholder{color:#a1a1aa}
.field-search{flex:1;min-width:280px}
.input-with-icon{position:relative;display:flex;align-items:center}
.input-with-icon>.material-symbols-rounded{position:absolute;left:12px;color:var(--muted);font-size:20px;pointer-events:none}
.input-with-icon input{width:100%;padding-left:42px}
.filter-card{padding:20px}
.filters-panel{display:grid;gap:14px}
.filter-main-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.advanced-filters{border-top:1px solid var(--line);padding-top:14px}
.advanced-filters summary{display:inline-flex;align-items:center;gap:8px;color:#334155;font-weight:900;cursor:pointer;user-select:none}
.advanced-filters summary::marker{display:none;color:transparent}
.filters-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}
.table-info{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 12px;color:var(--muted)}
.table-info strong{font-size:1.05rem;color:var(--text)}
.active-filters{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.active-filters span{display:inline-flex;align-items:center;gap:4px;background:#f1f5f9;color:#475569;border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:.8rem;font-weight:800}
.active-filters .material-symbols-rounded{font-size:15px;color:var(--success)}

.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}
.table-wrap.compact{border-radius:14px}
.data-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}
.data-table th,.data-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.data-table th{font-size:.76rem;text-transform:uppercase;letter-spacing:.065em;color:#475569;background:#f8fafc;position:sticky;top:0;z-index:1;white-space:nowrap}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr{transition:background-color .14s}
.data-table tbody tr:hover{background:#fbfdff}
.actions-col{width:170px}
.row-actions{white-space:nowrap}
.row-actions a{font-weight:850;margin-right:12px}
.icon-link{display:inline-flex;align-items:center;gap:5px;font-weight:850;color:var(--brand)}
.icon-link .material-symbols-rounded{font-size:18px}
.related-link{font-weight:850;color:#1d4ed8}
.empty{text-align:center;color:var(--muted);padding:28px;display:flex;align-items:center;justify-content:center;gap:8px}
.empty .material-symbols-rounded{font-size:24px;color:var(--muted-2)}
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:18px}

.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.detail-item{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fbfdff}
.detail-item.wide{grid-column:1/-1}
.detail-item dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.065em;color:var(--muted);font-weight:900;margin-bottom:5px}
.detail-item dd{margin:0;word-break:break-word}
.form-card{padding:24px}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.field-wide{grid-column:1/-1}
.check-row{display:flex!important;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;font-weight:750!important}
.check-row input{width:18px;height:18px}
.file-input{margin-top:8px}
.field small{color:var(--muted)}
.danger-zone{padding:20px;border-color:#fecdd3;background:#fff7f7}
.danger-zone h2{color:var(--danger);margin-top:0}

.status{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#f1f5f9;color:#475569;padding:4px 9px;font-weight:850;font-size:.82rem}
.status .material-symbols-rounded{font-size:15px}
.status-ok{background:var(--success-soft);color:var(--success)}
.file-link{font-weight:850;display:inline-flex;align-items:center;gap:4px}
.file-link .material-symbols-rounded{font-size:18px}
.alert{padding:13px 15px;border-radius:14px;margin-bottom:18px;border:1px solid;font-weight:700}
.alert-success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.alert-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.prose{max-width:860px}
.prose code{background:#f1f5f9;border:1px solid var(--line);border-radius:7px;padding:2px 6px}
.backup-card h2{display:flex;align-items:center;gap:8px}
.error-card pre{background:#0f172a;color:#e2e8f0;border-radius:14px;padding:16px;overflow:auto}

.install-body{background:#f6f8fc}
.install-wrap{max-width:980px;margin:40px auto;padding:0 18px}
.install-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;padding:28px}
.install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.requirements{display:grid;gap:9px;margin:18px 0}
.req{display:flex;justify-content:space-between;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid var(--line)}
.req.ok strong{color:#166534}
.req.ko strong{color:#991b1b}

@media (max-width:1180px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
  .detail-grid,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  :root{--sidebar:272px}
  .app-shell{display:block}
  .sidebar{transform:translateX(-100%);transition:.2s}
  .sidebar.open{transform:translateX(0)}
  .page{grid-column:1}
  .menu-button{display:inline-flex}
  .topbar{padding:0 14px}
  .top-search{max-width:none}
  .top-search button span{display:none}
  .top-search button{padding:0 16px}
  .user-text{display:none}
  .content{padding:22px 14px}
  .page-heading{display:block}
  .heading-actions{margin-top:16px}
  .detail-grid,.form-grid,.stats-grid,.install-grid,.filters-grid{grid-template-columns:1fr}
  .filter-main-row{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
  .field-search{grid-column:1/-1;min-width:0}
  .mini-row{grid-template-columns:1fr}
  .mini-row span:last-child{grid-column:1}
  .data-table thead{display:none}
  .data-table,.data-table tbody,.data-table tr,.data-table td{display:block}
  .data-table tr{border-bottom:1px solid var(--line);padding:8px 0}
  .data-table td{border-bottom:0;display:flex;justify-content:space-between;gap:16px;padding:9px 14px}
  .data-table td::before{content:attr(data-label);font-weight:900;color:var(--muted);text-align:left}
  .row-actions{display:flex!important;justify-content:flex-end!important}
}

/* --- UI refinement hotfix: alignment + professional document-style detail --- */
.material-symbols-rounded{
  display:inline-grid;
  place-items:center;
  line-height:1;
  vertical-align:middle;
  transform:translateY(-0.5px);
}

.top-search{
  align-items:stretch;
  min-height:50px;
}
.top-search .search-leading{
  width:44px;
  min-width:44px;
  margin-left:0;
  display:grid;
  place-items:center;
}
.top-search input{
  height:48px;
  padding:0 16px 0 4px;
}
.top-search button{
  height:48px;
  line-height:1;
}

.button,
.icon-link,
.file-link,
.card-head h2,
.advanced-filters summary,
.status,
.nav-item,
.user-text a{
  line-height:1.15;
}

.button .material-symbols-rounded,
.icon-link .material-symbols-rounded,
.file-link .material-symbols-rounded,
.user-text a .material-symbols-rounded,
.advanced-filters summary .material-symbols-rounded,
.status .material-symbols-rounded{
  flex:0 0 auto;
}

.filter-card{
  padding:24px 24px 20px;
}
.filter-main-row{
  display:grid;
  grid-template-columns:minmax(280px,1fr) auto auto;
  gap:10px;
  align-items:end;
}
.input-with-icon>.material-symbols-rounded{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  color:var(--muted);
}
.input-with-icon input{
  min-height:46px;
  padding-left:44px;
}

.table-wrap{
  border-radius:18px;
}
.data-table th,.data-table td{
  padding:13px 14px;
}
.row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}
.icon-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  white-space:nowrap;
}
.icon-link .material-symbols-rounded{
  font-size:18px;
}

.detail-card{
  padding:0;
  overflow:hidden;
}
.record-sheet{
  background:#fff;
}
.sheet-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
}
.sheet-header-main{
  min-width:0;
}
.sheet-kicker{
  margin:0 0 8px;
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.74rem;
  font-weight:900;
}
.sheet-title{
  margin:0;
  font-size:1.7rem;
  line-height:1.1;
  letter-spacing:-.04em;
  color:#0f172a;
}
.sheet-title span{
  color:#64748b;
  font-weight:700;
}
.sheet-subtitle{
  margin:10px 0 0;
  max-width:62ch;
  color:#64748b;
}
.sheet-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(110px,1fr));
  gap:12px;
  align-self:start;
  min-width:min(100%,390px);
}
.sheet-meta-item{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:12px 14px;
  box-shadow:0 8px 18px rgba(15,23,42,.03);
}
.sheet-meta-item span{
  display:block;
  font-size:.72rem;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:900;
  margin-bottom:5px;
}
.sheet-meta-item strong{
  display:block;
  font-size:1rem;
  color:#0f172a;
}
.sheet-section{
  padding:26px 30px;
}
.sheet-section + .sheet-section{
  border-top:1px solid var(--line);
}
.sheet-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.sheet-section-head h3{
  margin:0;
  font-size:1.08rem;
  letter-spacing:-.02em;
  color:#0f172a;
}
.sheet-section-head p{
  margin:0;
  color:#64748b;
  font-size:.95rem;
}
.sheet-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
}
.sheet-list{
  margin:0;
  display:grid;
  gap:0;
}
.sheet-row{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid #edf2f7;
}
.sheet-row:first-child{
  border-top:1px solid #edf2f7;
}
.sheet-label{
  margin:0;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:900;
  align-self:start;
}
.sheet-value{
  margin:0;
  color:#0f172a;
  word-break:break-word;
}
.sheet-list-wide .sheet-row{
  grid-template-columns:220px minmax(0,1fr);
}
.sheet-section-notes{
  background:#fcfdff;
}

@media (max-width:1180px){
  .sheet-header{
    flex-direction:column;
  }
  .sheet-meta{
    grid-template-columns:repeat(3,minmax(0,1fr));
    min-width:0;
  }
}
@media (max-width:860px){
  .filter-main-row{
    grid-template-columns:1fr 1fr;
    align-items:stretch;
  }
  .sheet-header,
  .sheet-section{
    padding:22px 18px;
  }
  .sheet-columns,
  .sheet-meta{
    grid-template-columns:1fr;
  }
  .sheet-row,
  .sheet-list-wide .sheet-row{
    grid-template-columns:1fr;
    gap:6px;
  }
  .sheet-title{
    font-size:1.42rem;
  }
}

/* --- Premium interface pass: dashboard, tables, actions, printable records --- */
.content{
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.055), transparent 25%),
    radial-gradient(circle at 88% 12%, rgba(14,165,233,.045), transparent 28%);
}

.topbar{
  box-shadow:0 10px 35px rgba(15,23,42,.045);
}
.top-search{
  border-color:#dbe3ef;
  box-shadow:0 8px 24px rgba(15,23,42,.055);
}
.top-search:focus-within{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 4px rgba(37,99,235,.12), 0 10px 28px rgba(15,23,42,.06);
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,.72fr);
  gap:22px;
  margin-bottom:22px;
}
.hero-panel,
.quick-panel{
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow-sm);
  background:#fff;
}
.hero-panel{
  padding:32px;
  color:#0f172a;
  background:
    linear-gradient(135deg,rgba(37,99,235,.09),rgba(14,165,233,.025) 42%,rgba(255,255,255,.98) 100%),
    #fff;
  overflow:hidden;
  position:relative;
}
.hero-panel::after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  right:-110px;
  top:-120px;
  border-radius:50%;
  background:rgba(37,99,235,.08);
}
.hero-panel h1{
  margin:.1rem 0 .6rem;
  font-size:clamp(2rem,3vw,3.35rem);
  line-height:1;
  letter-spacing:-.065em;
}
.hero-panel p:not(.eyebrow){
  max-width:72ch;
  margin:0;
  color:#475569;
  font-size:1.04rem;
}
.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:26px;
  position:relative;
  z-index:1;
}
.hero-metrics div{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(226,232,240,.92);
  border-radius:18px;
  padding:16px;
  backdrop-filter:blur(10px);
}
.hero-metrics span,
.quick-panel h2{
  display:block;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#64748b;
  font-weight:900;
}
.hero-metrics strong{
  display:block;
  margin-top:6px;
  font-size:1.6rem;
  letter-spacing:-.045em;
  color:#0f172a;
}
.quick-panel{
  padding:24px;
}
.quick-panel h2{
  margin:0 0 16px;
  color:#334155;
}
.quick-actions{
  display:grid;
  gap:10px;
}
.quick-action{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:12px 13px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fbfdff;
  color:#0f172a;
  font-weight:850;
  transition:transform .16s,box-shadow .16s,border-color .16s,background .16s;
}
.quick-action:hover{
  transform:translateY(-1px);
  color:#0f172a;
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
}
.quick-action .material-symbols-rounded{
  width:34px;
  height:34px;
  border-radius:12px;
  background:var(--brand-soft);
  color:var(--brand);
  font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;
}
.dashboard-stats .stat-card{
  padding:22px;
  min-height:164px;
}
.stat-card small{
  color:#64748b;
  margin-top:auto;
  font-weight:700;
}
.dashboard-panel{
  padding:24px;
}
.timeline-list{
  display:grid;
  gap:10px;
}
.timeline-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfdff;
  color:#0f172a;
  transition:transform .16s,box-shadow .16s,border-color .16s,background .16s;
}
.timeline-row:hover{
  transform:translateY(-1px);
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  color:#0f172a;
}
.timeline-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--brand-soft);
  color:var(--brand);
}
.timeline-icon .material-symbols-rounded,
.timeline-icon.material-symbols-rounded{
  font-size:22px;
  font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;
}
.timeline-body{
  display:grid;
  gap:2px;
  min-width:0;
}
.timeline-body strong,
.timeline-body span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-body span{
  color:#64748b;
  font-size:.92rem;
}
.timeline-date{
  color:#1d4ed8;
  font-weight:900;
  white-space:nowrap;
  font-size:.9rem;
}

.page-heading{
  border:1px solid rgba(226,232,240,.72);
  border-radius:24px;
  padding:22px 24px;
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 30px rgba(15,23,42,.045);
  backdrop-filter:blur(10px);
}
.page-heading + .filter-card,
.page-heading + .card,
.page-heading + .detail-card{
  margin-top:20px;
}

.filter-card{
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 38px rgba(15,23,42,.06);
}
.filters-panel{
  gap:18px;
}
.field label{
  display:flex;
  align-items:center;
  min-height:20px;
}
.field input,.field textarea,.field select{
  min-height:46px;
  border-radius:14px;
  border-color:#d9e1ec;
}
.button{
  border-radius:14px;
  min-height:44px;
}
.button-primary{
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}
.advanced-filters{
  border-top:1px solid #edf2f7;
  padding-top:14px;
}
.advanced-filters summary{
  width:max-content;
  padding:8px 10px;
  border-radius:12px;
}
.advanced-filters summary:hover{
  background:#f8fafc;
}

.table-info{
  padding:10px 2px 4px;
}
.table-wrap{
  border-color:#dce4ee;
  box-shadow:0 12px 28px rgba(15,23,42,.045);
}
.data-table{
  border-collapse:separate;
  border-spacing:0;
}
.data-table th{
  height:48px;
  background:linear-gradient(180deg,#fbfdff,#f4f7fb);
  color:#334155;
  font-size:.73rem;
  letter-spacing:.085em;
  border-bottom:1px solid #dce4ee;
}
.data-table td{
  height:54px;
  color:#172033;
}
.data-table tbody tr:nth-child(even){
  background:#fcfdff;
}
.data-table tbody tr:hover{
  background:#f8fbff;
}
.actions-col{
  text-align:right!important;
  width:190px;
}
.data-table th.actions-col,
.data-table td.row-actions{
  position:sticky;
  right:0;
  z-index:2;
  background:inherit;
  box-shadow:-12px 0 18px rgba(255,255,255,.86);
}
.data-table th.actions-col{
  z-index:3;
}
.row-actions a{
  margin-right:0;
}
.icon-link{
  padding:7px 9px;
  border-radius:11px;
  color:#1d4ed8;
}
.icon-link:hover{
  background:var(--brand-soft);
  color:#1d4ed8;
}
.related-link{
  display:inline-flex;
  max-width:100%;
  color:#1d4ed8;
  font-weight:900;
}

.record-sheet{
  border-radius:22px;
}
.sheet-header{
  background:
    linear-gradient(135deg,rgba(248,250,252,.98),rgba(255,255,255,.96)),
    radial-gradient(circle at 8% 20%, rgba(37,99,235,.08), transparent 28%);
}
.sheet-section-head{
  border-bottom:2px solid #edf2f7;
  padding-bottom:12px;
}
.sheet-row{
  min-height:46px;
  align-items:start;
}
.sheet-label{
  line-height:1.35;
}
.sheet-value{
  line-height:1.45;
}
.sheet-value .status,
.sheet-value .file-link,
.sheet-value .related-link{
  vertical-align:middle;
}

@media print{
  @page{size:A4;margin:13mm 12mm}
  :root{--text:#111827;--line:#d7dee8;--bg:#fff}
  body{background:#fff!important;color:#111827!important;font-size:10.5pt}
  .sidebar,.topbar,.page-heading,.heading-actions,.button,.card:not(.detail-card),script{display:none!important}
  .app-shell,.page,.content{display:block!important;margin:0!important;padding:0!important;max-width:none!important;background:#fff!important}
  .detail-card{border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
  .record-sheet{box-shadow:none!important;border:0!important}
  .sheet-header{padding:0 0 10mm!important;background:#fff!important;border-bottom:2px solid #111827!important}
  .sheet-title{font-size:20pt!important}
  .sheet-subtitle{font-size:9pt!important;color:#4b5563!important}
  .sheet-meta{grid-template-columns:repeat(3,1fr)!important;gap:6mm!important}
  .sheet-meta-item{box-shadow:none!important;border-color:#cbd5e1!important;padding:4mm!important}
  .sheet-section{padding:7mm 0 0!important}
  .sheet-section-head{margin-bottom:4mm!important;padding-bottom:2mm!important}
  .sheet-section-head p{display:none!important}
  .sheet-columns{grid-template-columns:1fr 1fr!important;gap:8mm!important}
  .sheet-row{grid-template-columns:42mm 1fr!important;gap:4mm!important;padding:2.4mm 0!important;break-inside:avoid}
  .sheet-label{font-size:7.8pt!important;color:#4b5563!important}
  .sheet-value{font-size:9.5pt!important}
  a{color:#111827!important;text-decoration:none!important}
}

@media (max-width:1180px){
  .dashboard-hero{grid-template-columns:1fr}
  .hero-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .page-heading{padding:18px;border-radius:20px}
  .hero-panel,.quick-panel{border-radius:22px;padding:22px 18px}
  .hero-metrics{grid-template-columns:1fr}
  .timeline-row{grid-template-columns:38px minmax(0,1fr);align-items:start}
  .timeline-date{grid-column:2;font-size:.85rem}
  .data-table th.actions-col,
  .data-table td.row-actions{position:static;box-shadow:none}
  .row-actions{justify-content:flex-start!important}
  .filter-main-row{grid-template-columns:1fr!important}
}

/* --- Professional polish hotfix: dashboard, lists, buttons and printable document --- */
body.app-shell{
  background:
    radial-gradient(circle at 28% -10%, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(180deg,#f7f9fd 0%,#eef2f7 100%);
}
.content{
  padding:34px 36px 48px;
}
.sidebar{
  box-shadow:14px 0 42px rgba(15,23,42,.045);
}
.nav-section{
  padding-top:16px;
  margin-top:16px;
}
.nav-item{
  min-height:44px;
  padding:10px 10px;
  border-radius:14px;
}
.nav-item span:last-child{
  line-height:1.2;
}
.nav-icon{
  width:22px;
  min-width:22px;
  height:22px;
}
.topbar{
  height:78px;
  padding:0 34px;
  background:rgba(255,255,255,.92);
}
.top-search{
  border-radius:18px;
  min-height:52px;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
}
.top-search .search-leading{
  height:52px;
  color:#334155;
}
.top-search input{
  height:52px;
  font-weight:650;
}
.top-search button{
  height:52px;
  padding:0 24px;
  border-radius:0 16px 16px 0;
}
.avatar{
  border-radius:15px;
}
.page-heading{
  align-items:center;
}
.page-heading h1,
.dashboard-hero h1{
  letter-spacing:-.065em;
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:24px;
  margin-bottom:24px;
  padding:30px;
  border:1px solid rgba(203,213,225,.85);
  border-radius:28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.16), transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 62%,#eef6ff 100%);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.dashboard-hero-copy h1{
  margin:.1rem 0 .45rem;
  font-size:clamp(2rem,3vw,3.35rem);
  line-height:.98;
  color:#0f172a;
}
.dashboard-hero-copy p:not(.eyebrow){
  margin:0;
  max-width:68ch;
  color:#526070;
  font-size:1.04rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.dashboard-hero-panel{
  align-self:stretch;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.dashboard-hero-panel > div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:92px;
  border:1px solid rgba(203,213,225,.82);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  padding:16px 18px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.dashboard-hero-panel > div:first-child{
  grid-column:1/-1;
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.dashboard-hero-panel span{
  display:block;
  color:#64748b;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:900;
  margin-bottom:6px;
}
.dashboard-hero-panel > div:first-child span{
  color:#cbd5e1;
}
.dashboard-hero-panel strong{
  font-size:2rem;
  line-height:1;
  letter-spacing:-.055em;
}
.dashboard-stat-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.stat-card{
  min-height:156px;
  border-radius:22px;
  padding:20px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.stat-card strong{
  margin-top:auto;
}
.stat-card em{
  color:#64748b;
  font-style:normal;
  font-size:.86rem;
  font-weight:650;
}
.dashboard-panel{
  padding:24px;
  border-radius:24px;
}
.timeline-list{
  display:grid;
  gap:10px;
}
.timeline-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 24px;
  gap:13px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--text);
  background:#fbfdff;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.timeline-row:hover{
  color:var(--text);
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 14px 28px rgba(15,23,42,.06);
  transform:translateY(-1px);
}
.timeline-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.timeline-icon .material-symbols-rounded,
.timeline-icon.material-symbols-rounded{
  font-size:22px;
  font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;
}
.timeline-content{
  display:grid;
  gap:2px;
  min-width:0;
}
.timeline-date{
  color:#1d4ed8;
  font-size:.82rem;
  font-weight:900;
}
.timeline-content strong{
  min-width:0;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-content small{
  color:#64748b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-arrow{
  color:#94a3b8;
}
.icon-link-button{
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 11px;
  background:#fff;
}

.module-filter-card,
.list-card{
  border-radius:24px;
  box-shadow:0 14px 40px rgba(15,23,42,.055);
}
.module-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.module-toolbar-summary{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.toolbar-icon{
  width:46px;
  min-width:46px;
  height:46px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:var(--brand);
  background:var(--brand-soft);
}
.toolbar-icon .material-symbols-rounded,
.toolbar-icon.material-symbols-rounded{
  font-size:24px;
  font-variation-settings:'FILL' 1,'wght' 600,'GRAD' 0,'opsz' 24;
}
.module-toolbar-summary strong{
  display:block;
  color:#0f172a;
  font-size:1.05rem;
}
.module-toolbar-summary span:not(.toolbar-icon){
  display:block;
  color:#64748b;
  font-size:.9rem;
}
.module-export-inline{
  white-space:nowrap;
}
.filters-panel{
  gap:18px;
}
.filter-main-row{
  grid-template-columns:minmax(320px,1fr) auto auto;
  align-items:end;
}
.field label{
  color:#334155;
}
.field input,.field textarea,.field select{
  min-height:46px;
  border-radius:14px;
  border-color:#dbe1ea;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.025);
}
.advanced-filters{
  border-top:0;
  padding-top:2px;
}
.advanced-filters summary{
  width:max-content;
  max-width:100%;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdff;
}
.filters-grid{
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
}
.module-active-filters{
  margin-top:16px;
  justify-content:flex-start;
}
.list-card{
  padding:0;
  overflow:hidden;
}
.list-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.list-card-head h2{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:1.14rem;
  letter-spacing:-.02em;
  color:#0f172a;
}
.list-card-head p{
  margin:.25rem 0 0;
}
.list-card-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-weight:800;
  white-space:nowrap;
}
.premium-table-wrap{
  border:0;
  border-radius:0;
  box-shadow:none;
}
.premium-table th{
  background:#f8fafc;
  color:#475569;
  font-size:.72rem;
  letter-spacing:.09em;
  padding:14px 16px;
}
.premium-table td{
  padding:15px 16px;
  color:#1f2937;
  background:#fff;
}
.premium-table tbody tr:nth-child(even) td{
  background:#fcfdff;
}
.premium-table tbody tr:hover td{
  background:#f8fbff;
}
.actions-col{
  width:205px;
  text-align:right!important;
}
.action-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:900;
  white-space:nowrap;
}
.action-pill:hover{
  color:#1e40af;
  background:#dbeafe;
}
.action-pill-primary{
  border-color:#c7d2fe;
  background:#eef2ff;
  color:#3730a3;
}
.action-pill .material-symbols-rounded{
  font-size:17px;
}
.premium-pagination{
  padding:18px 24px 22px;
  margin-top:0;
  border-top:1px solid var(--line);
  background:#fbfdff;
}

.sheet-footer{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px 30px;
  border-top:1px solid var(--line);
  color:#64748b;
  background:#fbfdff;
  font-size:.88rem;
  font-weight:750;
}
.record-sheet{
  border-radius:24px;
}
.sheet-header{
  background:
    radial-gradient(circle at 94% 0%, rgba(37,99,235,.12), transparent 32%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
.sheet-title{
  font-size:1.85rem;
}
.sheet-row{
  align-items:start;
}
.sheet-label{
  line-height:1.35;
}
.sheet-value{
  line-height:1.45;
}

@media (max-width:1180px){
  .dashboard-hero{
    grid-template-columns:1fr;
  }
  .dashboard-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:860px){
  .content{
    padding:22px 14px 36px;
  }
  .topbar{
    height:72px;
    padding:0 12px;
  }
  .dashboard-hero{
    padding:22px 18px;
    border-radius:22px;
  }
  .hero-actions,
  .module-toolbar,
  .list-card-head{
    align-items:stretch;
    flex-direction:column;
  }
  .module-export-inline{
    width:100%;
  }
  .filter-main-row{
    grid-template-columns:1fr 1fr;
  }
  .premium-table td{
    background:#fff!important;
  }
  .premium-table td::before{
    min-width:40%;
  }
  .row-actions{
    justify-content:flex-start!important;
  }
  .action-pill{
    flex:1 1 auto;
  }
}

@media print{
  @page{size:A4;margin:12mm}
  html,body{
    background:#fff!important;
    color:#111827!important;
  }
  body.app-shell{
    display:block!important;
  }
  .sidebar,
  .topbar,
  .skip-link,
  .page-heading,
  .alert,
  .card:not(.detail-card),
  .no-print{
    display:none!important;
  }
  .page,
  .content{
    display:block!important;
    grid-column:auto!important;
    margin:0!important;
    padding:0!important;
    max-width:none!important;
    width:100%!important;
  }
  .detail-card{
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .record-sheet{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .sheet-header{
    padding:0 0 9mm!important;
    border-bottom:2px solid #111827!important;
    background:#fff!important;
  }
  .sheet-title{
    font-size:22pt!important;
  }
  .sheet-subtitle{
    color:#4b5563!important;
  }
  .sheet-meta-item{
    box-shadow:none!important;
    border-color:#d1d5db!important;
  }
  .sheet-section{
    padding:8mm 0!important;
  }
  .sheet-section + .sheet-section{
    border-top:1px solid #d1d5db!important;
  }
  .sheet-section-head p{
    display:none!important;
  }
  .sheet-columns{
    grid-template-columns:1fr 1fr!important;
    gap:9mm!important;
  }
  .sheet-row{
    grid-template-columns:42mm minmax(0,1fr)!important;
    gap:6mm!important;
    padding:3mm 0!important;
    break-inside:avoid;
  }
  .sheet-label{
    color:#4b5563!important;
    font-size:8.5pt!important;
  }
  .sheet-value{
    color:#111827!important;
    font-size:9.5pt!important;
  }
  .sheet-footer{
    padding:6mm 0 0!important;
    background:#fff!important;
    border-top:1px solid #d1d5db!important;
  }
  a{
    color:#111827!important;
    text-decoration:none!important;
  }
}

/* --- Premium dashboard, list table and print/PDF sheet --- */
body{background:linear-gradient(180deg,#f7f9fd 0%,#f3f6fb 44%,#eef3f8 100%)}
.topbar{
  height:78px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(15,23,42,.035);
}
.top-search{
  border-color:#dbe3ee;
  box-shadow:0 10px 24px rgba(15,23,42,.055);
}
.top-search:focus-within{
  border-color:#93b4ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.12),0 12px 28px rgba(15,23,42,.06);
}
.sidebar{
  box-shadow:14px 0 44px rgba(15,23,42,.045);
}
.nav-item{
  padding-left:10px;
  padding-right:10px;
}
.nav-item.active{
  background:linear-gradient(90deg,#eff6ff,#f8fbff);
}

.page-heading-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow-sm);
}
.page-heading-card h1{
  margin-top:.2rem;
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:22px;
  margin-bottom:22px;
}
.dashboard-hero-main,
.dashboard-hero-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow-sm);
}
.dashboard-hero-main{
  position:relative;
  overflow:hidden;
  padding:34px;
  background:
    radial-gradient(circle at 8% 12%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}
.dashboard-hero-main::after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:250px;
  height:250px;
  border-radius:50%;
  background:rgba(37,99,235,.08);
}
.dashboard-hero-main h1{
  position:relative;
  z-index:1;
  margin:.15rem 0 .65rem;
  font-size:clamp(2rem,3vw,3.45rem);
  line-height:1;
  letter-spacing:-.065em;
  color:#0f172a;
}
.dashboard-hero-main p:not(.eyebrow){
  position:relative;
  z-index:1;
  max-width:76ch;
  margin:0;
  color:#5b6472;
  font-size:1.03rem;
}
.hero-actions{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.dashboard-hero-panel{
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
}
.hero-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:#0f172a;
  font-size:1.05rem;
}
.hero-panel-title .material-symbols-rounded{
  color:var(--brand);
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.hero-metrics{
  display:grid;
  gap:10px;
}
.hero-metrics a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f8fafc;
  color:#0f172a;
}
.hero-metrics a:hover{
  background:#fff;
  border-color:#cbd5e1;
  color:#0f172a;
  box-shadow:0 10px 22px rgba(15,23,42,.055);
}
.hero-metrics span{
  color:#64748b;
  font-weight:800;
}
.hero-metrics strong{
  font-size:1.45rem;
  line-height:1;
  letter-spacing:-.04em;
}
.premium-stats-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.premium-stat-card{
  min-height:158px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.premium-stat-card em{
  margin-top:auto;
  color:#94a3b8;
  font-style:normal;
  font-weight:800;
  font-size:.82rem;
}
.premium-dashboard-grid{
  align-items:start;
}
.dashboard-panel-card{
  padding:24px;
}
.timeline-list{
  display:grid;
  gap:10px;
}
.timeline-row{
  display:grid;
  grid-template-columns:38px 170px minmax(120px,.9fr) minmax(0,1.2fr);
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
  color:#0f172a;
  transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s;
}
.timeline-row:hover{
  background:#fff;
  color:#0f172a;
  border-color:#cbd5e1;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
  transform:translateY(-1px);
}
.timeline-marker{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.timeline-marker .material-symbols-rounded{
  font-size:20px;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.timeline-date{
  color:#1e40af;
  font-weight:900;
}
.timeline-note{
  color:#64748b;
}

.refined-filter-card{
  margin-bottom:16px;
}
.advanced-filters{
  border-top:1px solid var(--line);
  padding-top:14px;
}
.advanced-filters[open] summary{
  color:var(--brand);
}
.module-list-card{
  padding:0;
  overflow:hidden;
}
.list-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.list-summary{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.list-summary-icon{
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
  flex:0 0 auto;
}
.list-summary-icon .material-symbols-rounded{
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.list-summary strong{
  display:block;
  color:#0f172a;
  font-size:1rem;
}
.list-summary span:not(.list-summary-icon){
  display:block;
  color:#64748b;
  font-size:.9rem;
}
.list-toolbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.premium-table-wrap{
  border:0;
  border-radius:0;
}
.premium-table{
  border-collapse:separate;
  border-spacing:0;
}
.premium-table th{
  background:#f7f9fc;
  color:#596579;
  font-size:.73rem;
  letter-spacing:.08em;
  padding-top:15px;
  padding-bottom:15px;
  border-bottom:1px solid #dfe7f0;
}
.premium-table td{
  padding-top:15px;
  padding-bottom:15px;
}
.premium-table tbody tr:nth-child(even){
  background:#fcfdff;
}
.premium-table tbody tr:hover{
  background:#f8fbff;
}
.row-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.row-action-button:hover{
  background:var(--brand-soft);
  border-color:#bfdbfe;
  color:var(--brand-2);
}
.row-action-button .material-symbols-rounded{
  font-size:18px;
}

.print-body{
  background:#eef2f7;
  min-height:100vh;
}
.print-toolbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
}
.print-page{
  width:min(1180px,calc(100% - 36px));
  margin:28px auto 46px;
}
.print-sheet{
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(15,23,42,.1);
  overflow:hidden;
}
.print-related-block{
  margin-top:18px;
}
.print-related-block h3{
  margin:0 0 10px;
  font-size:1rem;
  color:#0f172a;
}
.print-table{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

@media print{
  @page{size:A4;margin:12mm}
  html,body{
    background:#fff!important;
  }
  body{
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .print-toolbar,
  .sidebar,
  .topbar,
  .heading-actions,
  .skip-link{
    display:none!important;
  }
  .print-page,
  .content{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    max-width:none!important;
  }
  .record-sheet,
  .print-sheet,
  .card,
  .detail-card{
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .sheet-header{
    padding:0 0 10mm!important;
    border-bottom:1px solid #d0d7e2!important;
  }
  .sheet-section{
    padding:8mm 0!important;
  }
  .sheet-columns{
    grid-template-columns:1fr 1fr!important;
    gap:12mm!important;
  }
  .sheet-row{
    grid-template-columns:42mm minmax(0,1fr)!important;
    padding:2.8mm 0!important;
    break-inside:avoid;
  }
  .sheet-meta-item,
  .data-table th,
  .data-table td{
    box-shadow:none!important;
  }
  .print-related-block,
  .sheet-section,
  .sheet-row{
    page-break-inside:avoid;
  }
  a{color:#111827!important;text-decoration:none!important}
}

@media (max-width:1280px){
  .dashboard-hero{
    grid-template-columns:1fr;
  }
  .timeline-row{
    grid-template-columns:38px 160px minmax(0,1fr);
  }
  .timeline-note{
    grid-column:2/-1;
  }
}
@media (max-width:1180px){
  .premium-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .list-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .list-toolbar-actions{
    justify-content:flex-start;
    width:100%;
  }
}
@media (max-width:860px){
  .dashboard-hero-main,
  .dashboard-hero-panel{
    border-radius:22px;
  }
  .dashboard-hero-main{
    padding:26px 20px;
  }
  .premium-stats-grid{
    grid-template-columns:1fr;
  }
  .timeline-row{
    grid-template-columns:36px 1fr;
  }
  .timeline-date,
  .timeline-note{
    grid-column:2;
  }
  .list-toolbar{
    padding:18px;
  }
  .row-actions{
    justify-content:flex-start!important;
  }
  .print-page{
    width:calc(100% - 20px);
    margin:16px auto 28px;
  }
  .print-toolbar{
    justify-content:center;
    flex-wrap:wrap;
  }
}

/* --- Final professional UI pass: aligned Material icons, premium navigation, lists and invoice-style print --- */
.material-symbols-rounded,
.button .material-symbols-rounded,
.icon-link .material-symbols-rounded,
.nav-icon,
.input-with-icon>.material-symbols-rounded{
  display:inline-grid;
  place-items:center;
  line-height:1;
  flex:0 0 auto;
}

.topbar-context{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:190px;
  padding-right:4px;
}
.topbar-context-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.topbar-context-icon .material-symbols-rounded{
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.topbar-context-copy{
  display:grid;
  gap:1px;
  min-width:0;
}
.topbar-context-copy span{
  color:#94a3b8;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:900;
}
.topbar-context-copy strong{
  color:#0f172a;
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top-search{
  max-width:none;
  height:52px;
  align-items:stretch;
}
.top-search .search-leading{
  width:48px;
  min-width:48px;
  height:52px;
  margin:0;
}
.top-search input{
  height:52px;
  padding:0 16px 0 0;
}
.top-search button{
  height:52px;
  align-items:center;
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,390px);
  gap:22px;
  margin-bottom:22px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.dashboard-hero-copy,
.hero-summary{
  border:1px solid rgba(203,213,225,.86);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.dashboard-hero-copy{
  position:relative;
  overflow:hidden;
  padding:34px;
  background:
    radial-gradient(circle at 88% 8%, rgba(37,99,235,.13), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}
.dashboard-hero-copy::after{
  content:"";
  position:absolute;
  right:-85px;
  bottom:-105px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(37,99,235,.075);
}
.dashboard-hero-copy h1{
  position:relative;
  z-index:1;
  margin:.15rem 0 .65rem;
  font-size:clamp(2.05rem,3vw,3.45rem);
  line-height:.98;
  letter-spacing:-.07em;
}
.dashboard-hero-copy p:not(.eyebrow){
  position:relative;
  z-index:1;
  max-width:74ch;
  margin:0;
  color:#526070;
}
.hero-actions{
  position:relative;
  z-index:1;
}
.hero-summary{
  display:grid;
  gap:12px;
  padding:22px;
  align-content:center;
}
.hero-summary-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
}
.hero-summary-item .material-symbols-rounded{
  width:42px;
  height:42px;
  border-radius:14px;
  background:var(--brand-soft);
  color:var(--brand);
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.hero-summary-item span{
  color:#64748b;
  font-weight:850;
}
.hero-summary-item strong{
  color:#0f172a;
  font-size:1.5rem;
  line-height:1;
  letter-spacing:-.04em;
}

.module-overview{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin-bottom:22px;
}
.module-tile{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:0 12px;
  min-height:118px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  color:#0f172a;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.module-tile:hover{
  color:#0f172a;
  transform:translateY(-2px);
  border-color:#cbd5e1;
  box-shadow:0 18px 36px rgba(15,23,42,.075);
}
.module-tile-icon{
  grid-row:1/3;
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.module-tile-icon .material-symbols-rounded{
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.module-tile-copy{
  min-width:0;
}
.module-tile-copy strong{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.module-tile-copy small{
  display:block;
  margin-top:2px;
  color:#64748b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.module-tile-count{
  align-self:end;
  color:#0f172a;
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:-.045em;
}

.dashboard-grid-premium{
  align-items:start;
}
.timeline-card{
  border-radius:24px;
}
.timeline-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
  color:#0f172a;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease;
}
.timeline-item:hover{
  color:#0f172a;
  transform:translateY(-1px);
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 13px 28px rgba(15,23,42,.06);
}
.timeline-dot{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.timeline-dot .material-symbols-rounded{
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.timeline-content{
  min-width:0;
  display:grid;
  gap:2px;
}
.timeline-content strong,
.timeline-content small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-content small{
  color:#64748b;
}

.filter-card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:16px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.filter-card-heading h2,
.results-card-head h2{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:1.1rem;
  letter-spacing:-.02em;
}
.filter-card-heading h2 .material-symbols-rounded,
.results-card-head h2 .material-symbols-rounded{
  color:var(--brand);
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.filter-card-heading p,
.results-card-head p{
  margin:.25rem 0 0;
  color:#64748b;
}
.results-card{
  padding:0;
  overflow:hidden;
  border-radius:24px;
}
.results-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:22px 24px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.results-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.table-wrap-premium{
  border:0;
  border-radius:0;
  box-shadow:none;
}
.premium-table th{
  padding:15px 16px;
  background:#f7f9fc;
}
.premium-table td{
  padding:15px 16px;
}
.action-pill{
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  padding:7px 10px;
}
.pagination{
  padding:18px 24px 22px;
  margin-top:0;
  border-top:1px solid var(--line);
  background:#fbfdff;
}

.is-print-mode.app-shell{
  display:block;
  background:#eef2f7;
}
.is-print-mode .sidebar,
.is-print-mode .topbar,
.is-print-mode .skip-link{
  display:none!important;
}
.is-print-mode .page{
  display:block;
}
.is-print-mode .content{
  display:block;
  width:min(1180px,calc(100% - 36px));
  max-width:none;
  margin:28px auto 48px;
  padding:0;
  background:transparent;
}
.is-print-mode .print-toolbar{
  border-radius:18px;
  margin-bottom:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.is-print-mode .print-record-sheet{
  border:1px solid var(--line);
  box-shadow:0 18px 55px rgba(15,23,42,.10);
  border-radius:24px;
  overflow:hidden;
}

@media (max-width:1280px){
  .module-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1040px){
  .topbar-context{display:none}
  .dashboard-hero{grid-template-columns:1fr}
}
@media (max-width:860px){
  .content{padding:22px 14px 36px}
  .module-overview{grid-template-columns:1fr}
  .hero-summary-item{grid-template-columns:40px minmax(0,1fr) auto}
  .timeline-item{grid-template-columns:42px minmax(0,1fr)}
  .timeline-date{grid-column:2}
  .filter-card-heading,
  .results-card-head{flex-direction:column;align-items:stretch}
  .results-actions{justify-content:flex-start}
}

/* --- Final professional refinement: aligned icons, premium navigation, lists and printable sheets --- */
body.print-shell{
  display:block;
  min-height:100vh;
  background:#eef2f7;
}
.print-content{
  width:100%;
  min-height:100vh;
}
.topbar-context{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:190px;
  padding-right:2px;
}
.topbar-context-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
  flex:0 0 auto;
}
.topbar-context-icon .material-symbols-rounded,
.topbar-context-icon.material-symbols-rounded{
  font-size:22px;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.topbar-context-copy{
  display:grid;
  gap:1px;
  min-width:0;
}
.topbar-context-copy span{
  color:#94a3b8;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.topbar-context-copy strong{
  color:#0f172a;
  font-size:.95rem;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.module-heading,
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-bottom:20px;
  border:1px solid rgba(226,232,240,.82);
  border-radius:24px;
  padding:22px 24px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 34px rgba(15,23,42,.045);
  backdrop-filter:blur(12px);
}
.module-heading h1{
  font-size:clamp(1.8rem,2.2vw,2.7rem);
  line-height:1.05;
  margin:.1rem 0 .35rem;
  letter-spacing:-.055em;
  color:#0f172a;
}
.module-heading p:last-child{margin-bottom:0}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:24px;
  margin-bottom:24px;
  padding:30px;
  border:1px solid rgba(203,213,225,.85);
  border-radius:28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.15), transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 62%,#eef6ff 100%);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.dashboard-hero-copy h1{
  margin:.1rem 0 .45rem;
  font-size:clamp(2rem,3vw,3.35rem);
  line-height:.98;
  letter-spacing:-.065em;
  color:#0f172a;
}
.dashboard-hero-copy p:not(.eyebrow){
  margin:0;
  max-width:68ch;
  color:#526070;
  font-size:1.04rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:22px;
}
.dashboard-hero-panel{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:12px;
  align-self:stretch;
}
.hero-total,
.hero-mini-grid a{
  border:1px solid rgba(203,213,225,.86);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.hero-total{
  padding:18px 20px;
  background:#0f172a;
  color:#fff;
}
.hero-total span,
.hero-mini-grid span{
  display:block;
  color:#94a3b8;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:900;
  margin-bottom:7px;
}
.hero-total strong{
  display:block;
  font-size:2.2rem;
  line-height:1;
  letter-spacing:-.06em;
}
.hero-mini-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.hero-mini-grid a{
  padding:15px;
  color:#0f172a;
}
.hero-mini-grid a:hover{
  background:#fff;
  color:#0f172a;
  border-color:#cbd5e1;
  transform:translateY(-1px);
}
.hero-mini-grid strong{
  display:block;
  font-size:1.35rem;
  line-height:1;
  letter-spacing:-.04em;
}
.stats-grid-premium{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.premium-stat-card{
  min-height:164px;
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.premium-stat-card .stat-label{
  color:#334155!important;
  font-weight:900!important;
}
.premium-stat-card em{
  margin-top:auto;
  color:#94a3b8;
  font-style:normal;
  font-weight:800;
  font-size:.82rem;
}
.stat-arrow{
  position:absolute;
  right:18px;
  top:18px;
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid!important;
  place-items:center;
  color:#94a3b8!important;
  background:#f8fafc;
  transition:transform .16s,color .16s,background .16s;
}
.premium-stat-card:hover .stat-arrow{
  transform:translateX(2px);
  color:var(--brand)!important;
  background:var(--brand-soft);
}
.dashboard-grid-premium{align-items:start}
.timeline-row{
  display:grid;
  grid-template-columns:42px 175px minmax(120px,.9fr) minmax(0,1.2fr);
  gap:12px;
  align-items:center;
}
.timeline-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--brand-soft);
  color:var(--brand);
}
.timeline-icon .material-symbols-rounded,
.timeline-icon.material-symbols-rounded{
  font-size:22px;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.timeline-date{white-space:nowrap}
.timeline-desc{
  color:#64748b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.refined-filter-card{
  margin-bottom:16px;
  padding:22px;
}
.refined-filter-card .filter-main-row{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto auto;
  gap:10px;
  align-items:end;
}
.refined-filter-card .button{
  height:46px;
}
.filter-pills{
  margin-top:16px;
  justify-content:flex-start;
}
.table-card{
  padding:0;
  overflow:hidden;
  border-radius:24px;
}
.table-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:21px 24px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.table-card-head h2{
  margin:.1rem 0 0;
  color:#0f172a;
  font-size:1.22rem;
  letter-spacing:-.025em;
}
.table-card-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
  color:#64748b;
  font-weight:850;
}
.table-card-meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
}
.table-card-meta .material-symbols-rounded{font-size:18px;color:var(--brand)}
.premium-data-table th{
  background:#f7f9fc;
  color:#596579;
  font-size:.73rem;
  letter-spacing:.08em;
  padding:15px 16px;
  border-bottom:1px solid #dfe7f0;
}
.premium-data-table td{
  padding:15px 16px;
}
.premium-data-table tbody tr:nth-child(even) td{background:#fcfdff}
.premium-data-table tbody tr:hover td{background:#f8fbff}
.row-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.row-action:hover{
  background:var(--brand-soft);
  border-color:#bfdbfe;
  color:var(--brand-2);
}
.row-action-primary{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.row-action .material-symbols-rounded{font-size:18px}

.print-toolbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
}
.print-record-sheet{
  width:min(1180px,calc(100% - 36px));
  margin:28px auto 46px;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(15,23,42,.1);
  overflow:hidden;
}
.print-sheet-header{
  align-items:flex-start;
}
.print-document-meta{
  min-width:min(100%,360px);
  display:grid;
  gap:10px;
}
.print-document-meta div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
}
.print-document-meta span{
  color:#64748b;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:900;
}
.print-document-meta strong{
  color:#0f172a;
  text-align:right;
}
.print-related-block{margin-top:18px}
.print-related-block h3{margin:0 0 10px;font-size:1rem;color:#0f172a}
.print-related-table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.print-related-table th,
.print-related-table td{
  text-align:left;
  border-bottom:1px solid var(--line);
  padding:9px 10px;
  vertical-align:top;
}
.print-related-table th{
  background:#f8fafc;
  color:#475569;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.075em;
}
.print-related-table tr:last-child td{border-bottom:0}

@media (max-width:1280px){
  .dashboard-hero{grid-template-columns:1fr}
  .timeline-row{grid-template-columns:42px 165px minmax(0,1fr)}
  .timeline-desc{grid-column:2/-1}
}
@media (max-width:1180px){
  .stats-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-card-head{align-items:flex-start;flex-direction:column}
  .table-card-meta{justify-content:flex-start}
}
@media (max-width:860px){
  .topbar-context{display:none}
  .module-heading,.page-heading{display:block;padding:18px;border-radius:20px}
  .dashboard-hero{padding:22px 18px;border-radius:22px}
  .hero-mini-grid{grid-template-columns:1fr}
  .stats-grid-premium{grid-template-columns:1fr}
  .refined-filter-card .filter-main-row{grid-template-columns:1fr!important}
  .timeline-row{grid-template-columns:38px 1fr}
  .timeline-date,.timeline-desc{grid-column:2}
  .print-record-sheet{width:calc(100% - 20px);margin:16px auto 28px}
  .print-toolbar{justify-content:center;flex-wrap:wrap}
  .print-document-meta{min-width:0}
}
@media print{
  @page{size:A4;margin:12mm}
  html,body,body.print-shell{background:#fff!important}
  body{display:block!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .no-print,.print-toolbar,.sidebar,.topbar,.skip-link,.heading-actions{display:none!important}
  .print-content,.print-record-sheet,.content,.page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important}
  .record-sheet,.print-record-sheet,.card,.detail-card{border:0!important;box-shadow:none!important;border-radius:0!important}
  .sheet-header{padding:0 0 9mm!important;border-bottom:1.5px solid #111827!important;background:#fff!important}
  .sheet-title{font-size:21pt!important}
  .sheet-subtitle{font-size:9pt!important;color:#4b5563!important}
  .print-document-meta{grid-template-columns:1fr!important;gap:2mm!important}
  .print-document-meta div{border-color:#d1d5db!important;box-shadow:none!important;padding:3mm!important}
  .sheet-section{padding:7mm 0!important}
  .sheet-section-head{margin-bottom:4mm!important;padding-bottom:2mm!important}
  .sheet-section-head p{display:none!important}
  .sheet-columns{grid-template-columns:1fr 1fr!important;gap:10mm!important}
  .sheet-row{grid-template-columns:40mm minmax(0,1fr)!important;gap:5mm!important;padding:2.6mm 0!important;break-inside:avoid}
  .sheet-label{font-size:7.8pt!important;color:#4b5563!important}
  .sheet-value{font-size:9.2pt!important;color:#111827!important}
  .print-related-block,.sheet-section,.sheet-row{page-break-inside:avoid;break-inside:avoid}
  .print-related-table th,.print-related-table td{font-size:8.5pt!important;padding:2mm!important}
  a{color:#111827!important;text-decoration:none!important}
}

/* --- Hotfix premium finale: liste, dashboard, stampa/PDF e allineamenti --- */
:root{
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --ink:#0f172a;
  --ink-soft:#475569;
  --line-soft:#e2e8f0;
}

.topbar{
  min-height:78px;
  height:auto;
  padding-block:12px;
}
.topbar-context{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:178px;
  padding:8px 12px;
  border:1px solid rgba(226,232,240,.85);
  border-radius:16px;
  background:rgba(248,250,252,.92);
}
.topbar-context-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:var(--brand-soft);
  color:var(--brand);
  flex:0 0 auto;
}
.topbar-context-icon .material-symbols-rounded{
  font-size:22px;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.topbar-context-copy{
  min-width:0;
  display:grid;
  gap:1px;
}
.topbar-context-copy span,
.topbar-context-copy small{
  color:#64748b;
  font-size:.7rem;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.topbar-context-copy strong{
  max-width:154px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--ink);
  font-size:.94rem;
  line-height:1.1;
}
.top-search{
  border-radius:18px;
  box-shadow:0 14px 38px rgba(15,23,42,.055);
}
.top-search button{
  border-radius:0 17px 17px 0;
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.82fr);
  gap:22px;
  margin-bottom:22px;
}
.dashboard-hero-main,
.dashboard-hero-panel{
  border:1px solid var(--line-soft);
  border-radius:28px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.dashboard-hero-main{
  position:relative;
  padding:34px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 58%,#eef6ff 100%);
}
.dashboard-hero-main::before{
  content:"";
  position:absolute;
  width:230px;
  height:230px;
  right:-80px;
  top:-90px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(37,99,235,.16),rgba(37,99,235,0) 70%);
  pointer-events:none;
}
.dashboard-hero-main h1{
  position:relative;
  margin:.1rem 0 .8rem;
  font-size:clamp(2rem,3.2vw,3.45rem);
  line-height:.96;
  letter-spacing:-.07em;
  color:var(--ink);
}
.dashboard-hero-main p:not(.eyebrow){
  position:relative;
  max-width:74ch;
  color:#526173;
  font-size:1.02rem;
  margin:0;
}
.hero-actions{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:24px;
}
.dashboard-hero-panel{
  padding:24px;
  background:linear-gradient(180deg,#1e293b 0%,#0f172a 100%);
  color:#fff;
}
.hero-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:#e2e8f0;
  font-weight:900;
  letter-spacing:-.01em;
  margin-bottom:18px;
}
.hero-panel-title .material-symbols-rounded{
  width:40px;
  height:40px;
  border-radius:14px;
  background:rgba(255,255,255,.1);
  color:#bfdbfe;
}
.hero-metrics{
  display:grid;
  gap:12px;
}
.hero-metrics a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 16px;
  border-radius:18px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
}
.hero-metrics a:hover{
  background:rgba(255,255,255,.13);
  color:#fff;
}
.hero-metrics span{
  color:#cbd5e1;
  font-weight:800;
}
.hero-metrics strong{
  font-size:1.65rem;
  line-height:1;
  letter-spacing:-.05em;
}
.premium-stats-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.premium-stat-card{
  padding:22px;
  border-radius:22px;
}
.premium-stat-card em{
  margin-top:3px;
  color:#64748b;
  font-style:normal;
  font-size:.84rem;
  font-weight:800;
}
.dashboard-panel-card{
  padding:24px;
}
.timeline-list{
  display:grid;
  gap:10px;
}
.timeline-row{
  display:grid;
  grid-template-columns:42px 164px minmax(0,1fr);
  gap:8px 14px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:#fff;
  color:var(--ink);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.timeline-row:hover{
  transform:translateY(-1px);
  border-color:#cbd5e1;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
  color:var(--ink);
}
.timeline-marker{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--brand-soft);
  color:var(--brand);
  grid-row:span 2;
}
.timeline-marker .material-symbols-rounded{
  font-size:21px;
}
.timeline-date{
  color:#1d4ed8;
  font-weight:900;
  font-size:.92rem;
}
.timeline-note{
  grid-column:3;
  color:#64748b;
}

.list-heading{
  margin-bottom:18px;
}
.premium-filter-card{
  padding:22px;
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.filter-main-row{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto auto;
  gap:12px;
  align-items:end;
}
.filters-panel .button{
  min-height:46px;
}
.input-with-icon input,
.field input,
.field select,
.field textarea{
  min-height:46px;
}
.advanced-filters{
  padding-top:2px;
}
.advanced-filters summary{
  width:max-content;
  padding:9px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
}
.advanced-filters[open] summary{
  background:var(--brand-soft);
  border-color:#bfdbfe;
}
.table-card{
  padding:0;
  overflow:hidden;
  border-radius:24px;
}
.table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid var(--line-soft);
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.table-summary{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.summary-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--brand-soft);
  color:var(--brand);
  flex:0 0 auto;
}
.summary-icon .material-symbols-rounded{
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.table-summary strong,
.table-summary span:not(.summary-icon){
  display:block;
}
.table-summary strong{
  color:var(--ink);
  font-size:1rem;
}
.table-summary span:not(.summary-icon){
  color:#64748b;
  font-size:.9rem;
}
.premium-table-wrap{
  border:0;
  border-radius:0;
}
.premium-table th{
  padding:0;
  background:#f8fafc;
  border-bottom:1px solid #dbe3ee;
}
.th-sort{
  min-height:48px;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#526173;
  text-transform:uppercase;
  letter-spacing:.075em;
  font-size:.74rem;
  font-weight:950;
}
.th-sort:hover,
.th-sort.active{
  color:var(--brand);
  background:#eff6ff;
}
.th-sort .material-symbols-rounded{
  font-size:18px;
  opacity:.72;
}
.premium-table td{
  padding:14px;
  border-bottom:1px solid #edf2f7;
  vertical-align:middle;
}
.premium-table tbody tr:nth-child(even){
  background:#fcfdff;
}
.premium-table tbody tr:hover{
  background:#f8fbff;
}
.primary-cell{
  font-weight:900;
  color:var(--ink);
}
.related-id{
  display:inline-block;
  margin-left:4px;
  font-size:.86em;
}
.row-actions{
  gap:10px;
}
.row-actions .icon-link{
  min-height:34px;
  padding:7px 10px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.row-actions .icon-link:hover{
  background:var(--brand-soft);
  border-color:#bfdbfe;
  color:var(--brand-2);
}

.print-shell{
  background:#eef2f7;
  display:block;
}
.print-content{
  width:min(1180px,calc(100% - 36px));
  margin:28px auto 46px;
}
.print-shell .detail-card{
  box-shadow:0 18px 55px rgba(15,23,42,.1);
}
.print-shell .card:not(.detail-card){
  display:none;
}
.print-shell .record-sheet::before{
  content:"Versione stampa / PDF";
  display:block;
  padding:12px 30px;
  background:#0f172a;
  color:#e2e8f0;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.72rem;
}

@media print{
  @page{size:A4;margin:11mm}
  html,body,
  .print-shell{
    background:#fff!important;
  }
  body{
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .heading-actions,
  .skip-link,
  .button,
  .alert,
  .card:not(.detail-card){
    display:none!important;
  }
  .app-shell,
  .print-shell,
  .page{
    display:block!important;
  }
  .content,
  .print-content{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  .detail-card,
  .record-sheet{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .print-shell .record-sheet::before{
    display:none!important;
  }
  .sheet-header{
    padding:0 0 9mm!important;
    border-bottom:1px solid #cbd5e1!important;
    background:#fff!important;
  }
  .sheet-section{
    padding:7mm 0!important;
  }
  .sheet-columns{
    grid-template-columns:1fr 1fr!important;
    gap:10mm!important;
  }
  .sheet-row,
  .sheet-list-wide .sheet-row{
    grid-template-columns:40mm minmax(0,1fr)!important;
    gap:5mm!important;
    padding:2.8mm 0!important;
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .sheet-section,
  .sheet-meta-item{
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .sheet-meta{
    grid-template-columns:repeat(3,1fr)!important;
  }
  .sheet-meta-item{
    box-shadow:none!important;
  }
  a{
    color:#111827!important;
    text-decoration:none!important;
  }
}

@media (max-width:1280px){
  .dashboard-hero{
    grid-template-columns:1fr;
  }
  .topbar-context{
    min-width:auto;
  }
  .topbar-context-copy strong{
    max-width:130px;
  }
}
@media (max-width:1180px){
  .premium-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .table-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media (max-width:860px){
  .topbar-context{
    display:none;
  }
  .dashboard-hero-main,
  .dashboard-hero-panel{
    border-radius:22px;
  }
  .dashboard-hero-main{
    padding:26px 20px;
  }
  .premium-stats-grid{
    grid-template-columns:1fr;
  }
  .timeline-row{
    grid-template-columns:38px 1fr;
  }
  .timeline-date,
  .timeline-note,
  .timeline-row strong{
    grid-column:2;
  }
  .filter-main-row{
    grid-template-columns:1fr 1fr;
  }
  .field-search{
    grid-column:1/-1;
  }
  .table-toolbar{
    padding:18px;
  }
  .th-sort{
    min-height:auto;
    padding:10px 14px;
  }
  .premium-table td{
    align-items:flex-start;
  }
  .premium-table td::before{
    flex:0 0 42%;
  }
  .row-actions{
    justify-content:flex-start!important;
  }
  .print-content{
    width:calc(100% - 20px);
    margin:16px auto 28px;
  }
}

/* --- Hotfix liste ordinate: Ordina per persistente + allineamento premium --- */
.refined-filter-card .filters-panel{
  gap:18px;
}
.refined-filter-card .filter-main-row{
  grid-template-columns:minmax(300px,1.35fr) minmax(210px,.55fr) minmax(170px,.45fr) auto auto!important;
  gap:12px;
  align-items:end;
}
.field-sort select,
.field-dir select{
  min-height:46px;
  cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);
  background-position:calc(100% - 18px) 19px,calc(100% - 12px) 19px;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  appearance:none;
  padding-right:36px;
}
.list-toolbar{
  border-bottom:1px solid var(--line-soft,#e2e8f0);
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.sort-status{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin-top:6px;
  color:#334155!important;
  font-weight:850;
}
.sort-status .material-symbols-rounded{
  font-size:18px;
  color:var(--brand);
}
.sort-th{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:38px;
  color:#475569;
  font-weight:950;
  text-decoration:none;
}
.sort-th:hover{
  color:var(--brand);
}
.sort-th.active{
  color:var(--brand);
}
.sort-th .material-symbols-rounded{
  font-size:18px;
  color:currentColor;
  opacity:.85;
}
.premium-table-wrap{
  border-radius:0 0 22px 22px;
  border-left:0;
  border-right:0;
  border-bottom:0;
}
.module-list-card{
  padding:0;
  overflow:hidden;
  border-radius:24px;
}
.module-list-card .pagination{
  padding:18px 22px 22px;
  margin:0;
  background:#fff;
}
.row-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #dbe3ee;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.row-action-button:hover{
  background:var(--brand-soft);
  border-color:#bfdbfe;
  color:var(--brand-2);
}
.row-action-button .material-symbols-rounded{
  font-size:18px;
}
@media (max-width:1180px){
  .refined-filter-card .filter-main-row{
    grid-template-columns:minmax(260px,1fr) minmax(190px,.55fr) minmax(155px,.45fr)!important;
  }
  .refined-filter-card .filter-main-row>.button,
  .refined-filter-card .filter-main-row>.button-ghost{
    grid-column:auto;
  }
}
@media (max-width:860px){
  .refined-filter-card .filter-main-row{
    grid-template-columns:1fr!important;
  }
  .field-sort,
  .field-dir{
    grid-column:1/-1;
  }
  .sort-th{
    min-height:auto;
  }
  .module-list-card .pagination{
    flex-direction:column;
  }
}

/* --- Hotfix: ordinamento persistente liste + rifinitura professionale --- */
.refined-filter-card{
  border:1px solid rgba(203,213,225,.88);
  box-shadow:0 18px 40px rgba(15,23,42,.055);
}
.refined-filter-card .filter-main-row{
  display:grid;
  grid-template-columns:minmax(270px,1.35fr) minmax(180px,.72fr) minmax(180px,.72fr) auto auto;
  gap:14px;
  align-items:end;
}
.field-sort select,
.field-dir select{
  min-height:46px;
  cursor:pointer;
  background:#fff;
}
.field-sort select:hover,
.field-dir select:hover{
  border-color:#cbd5e1;
}
.sort-status{
  display:flex!important;
  align-items:center;
  gap:6px;
  margin-top:6px;
  color:#64748b;
  font-size:.88rem;
}
.sort-status .material-symbols-rounded{
  width:18px;
  font-size:18px;
  color:var(--brand);
}
.sort-status strong{
  color:#0f172a;
  font-size:.9rem;
}
.sort-th{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:inherit;
  min-height:22px;
}
.sort-th:hover{
  color:var(--brand);
  text-decoration:none;
}
.sort-th .material-symbols-rounded{
  width:18px;
  min-width:18px;
  font-size:18px;
  color:#94a3b8;
}
.sort-th.active{
  color:var(--brand);
}
.sort-th.active .material-symbols-rounded{
  color:var(--brand);
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.module-list-card{
  border:1px solid rgba(203,213,225,.9);
  box-shadow:0 20px 55px rgba(15,23,42,.06);
}
.module-list-card .list-toolbar{
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
  margin-bottom:18px;
}
.premium-table-wrap{
  border-color:#dbe3ef;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.premium-table th{
  background:linear-gradient(180deg,#f8fafc,#f1f5f9);
  color:#475569;
  font-weight:900;
}
.premium-table tbody tr{
  transition:background-color .16s ease, box-shadow .16s ease;
}
.premium-table tbody tr:hover td{
  background:#f8fbff;
}
.row-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--brand);
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.row-action-button:hover{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:var(--brand-2);
  text-decoration:none;
}
.row-action-button .material-symbols-rounded{
  font-size:18px;
}
.page-heading-card{
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  border:1px solid rgba(203,213,225,.85);
  border-radius:24px;
  box-shadow:0 18px 44px rgba(15,23,42,.055);
  padding:24px;
}
.topbar-context{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:185px;
}
.topbar-context-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:13px;
  background:#eff6ff;
  color:var(--brand);
}
.topbar-context-icon .material-symbols-rounded,
.topbar-context-icon.material-symbols-rounded{
  font-size:21px;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24;
}
.topbar-context-copy{
  display:grid;
  gap:1px;
  min-width:0;
}
.topbar-context-copy > span{
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.68rem;
  font-weight:900;
}
.topbar-context-copy strong{
  color:#0f172a;
  font-size:.9rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:1180px){
  .refined-filter-card .filter-main-row{
    grid-template-columns:1fr 1fr;
  }
  .refined-filter-card .field-search{
    grid-column:1/-1;
  }
}
@media (max-width:860px){
  .topbar-context{
    display:none;
  }
  .refined-filter-card .filter-main-row{
    grid-template-columns:1fr;
  }
  .refined-filter-card .button,
  .refined-filter-card .button-ghost{
    width:100%;
  }
  .sort-th{
    justify-content:flex-start;
  }
}

/* --- Hotfix liste: colonna azioni stabile, senza sovrapposizioni o wrap errati --- */
.premium-table th.actions-col,
.data-table th.actions-col{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  text-align:right!important;
}
.premium-table td.row-actions,
.data-table td.row-actions{
  display:table-cell!important;
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  padding:10px 14px!important;
  text-align:right!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.row-actions-bar{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  width:auto;
  max-width:100%;
  white-space:nowrap;
}
.row-actions .row-action-button{
  flex:0 0 auto;
  min-width:auto;
  height:34px;
  min-height:34px;
  padding:0 10px;
  margin:0!important;
  border-radius:999px;
  line-height:1;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.row-actions .row-action-button .material-symbols-rounded{
  width:18px;
  min-width:18px;
  height:18px;
  font-size:18px;
}

@media (max-width:860px){
  .premium-table th.actions-col,
  .data-table th.actions-col,
  .premium-table td.row-actions,
  .data-table td.row-actions{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .premium-table td.row-actions,
  .data-table td.row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    text-align:left!important;
  }
  .row-actions-bar{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }
}

/* --- Hotfix liste: colonna Azioni stabile, senza sovrapposizioni --- */
@media (min-width:861px){
  .data-table th.actions-col,
  .premium-table th.actions-col{
    width:232px!important;
    min-width:232px!important;
    max-width:232px!important;
    text-align:right!important;
    padding-right:16px!important;
  }

  .data-table td.row-actions,
  .premium-table td.row-actions{
    display:table-cell!important;
    width:232px!important;
    min-width:232px!important;
    max-width:232px!important;
    padding:10px 16px!important;
    text-align:right!important;
    vertical-align:middle!important;
    white-space:nowrap!important;
    overflow:visible!important;
    line-height:1!important;
  }

  .data-table th.actions-col,
  .data-table td.row-actions,
  .premium-table th.actions-col,
  .premium-table td.row-actions{
    position:sticky!important;
    right:0!important;
    z-index:3!important;
    background:#fff!important;
    box-shadow:-14px 0 22px rgba(255,255,255,.92)!important;
  }

  .premium-table th.actions-col,
  .data-table th.actions-col{
    z-index:4!important;
    background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important;
  }

  .premium-table tbody tr:nth-child(even) td.row-actions,
  .data-table tbody tr:nth-child(even) td.row-actions{
    background:#fcfdff!important;
  }

  .premium-table tbody tr:hover td.row-actions,
  .data-table tbody tr:hover td.row-actions{
    background:#f8fbff!important;
  }

  .row-actions .row-action-button,
  .row-action-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-height:34px!important;
    padding:7px 10px!important;
    margin:0!important;
    border-radius:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
    vertical-align:middle!important;
    flex:0 0 auto!important;
  }

  .row-action-button + .row-action-button{
    margin-left:8px!important;
  }

  .row-action-button .material-symbols-rounded{
    width:18px!important;
    min-width:18px!important;
    font-size:18px!important;
    line-height:1!important;
  }
}

@media (max-width:860px){
  .data-table td.row-actions,
  .premium-table td.row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    position:static!important;
    right:auto!important;
    box-shadow:none!important;
    background:transparent!important;
    padding:10px 14px!important;
    white-space:normal!important;
  }

  .data-table td.row-actions::before,
  .premium-table td.row-actions::before{
    display:none!important;
    content:''!important;
  }

  .row-action-button{
    flex:0 0 auto!important;
  }
}

/* --- Hotfix liste: colonna azioni stabile, senza sovrapposizioni --- */
.data-table th.actions-col,
.data-table td.row-actions,
.premium-table th.actions-col,
.premium-table td.row-actions{
  width:235px!important;
  min-width:235px!important;
  max-width:235px!important;
  position:sticky!important;
  right:0!important;
  z-index:4!important;
  box-shadow:-14px 0 22px rgba(255,255,255,.92)!important;
}
.data-table th.actions-col,
.premium-table th.actions-col{
  text-align:right!important;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important;
}
.data-table td.row-actions,
.premium-table td.row-actions{
  display:table-cell!important;
  vertical-align:middle!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:visible!important;
  padding:10px 16px!important;
  background:#fff!important;
}
.premium-table tbody tr:nth-child(even) td.row-actions,
.data-table tbody tr:nth-child(even) td.row-actions{
  background:#fcfdff!important;
}
.premium-table tbody tr:hover td.row-actions,
.data-table tbody tr:hover td.row-actions{
  background:#f8fbff!important;
}
.row-actions-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  width:100%;
  min-width:0;
  white-space:nowrap;
}
.row-actions-inner .row-action-button{
  flex:0 0 auto;
  margin:0!important;
  min-width:86px;
  height:36px;
  padding:7px 11px;
  line-height:1;
}
.row-actions-inner .row-action-button .material-symbols-rounded{
  width:18px;
  min-width:18px;
  height:18px;
}
@media (max-width:860px){
  .data-table th.actions-col,
  .data-table td.row-actions,
  .premium-table th.actions-col,
  .premium-table td.row-actions{
    position:static!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    box-shadow:none!important;
  }
  .data-table td.row-actions,
  .premium-table td.row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    padding:10px 14px!important;
    white-space:normal!important;
  }
  .row-actions-inner{
    width:auto;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .row-actions-inner .row-action-button{
    min-width:0;
  }
}

/* --- Hotfix azioni liste: corregge sovrapposizione Apri/Modifica nella colonna sticky --- */
.premium-table th.actions-col,
.premium-table td.row-actions,
.data-table th.actions-col,
.data-table td.row-actions{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  text-align:right!important;
  vertical-align:middle!important;
}

.data-table td.row-actions,
.premium-table td.row-actions{
  padding-left:12px!important;
  padding-right:14px!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

.row-actions-inner{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  width:100%;
  min-width:190px;
}

.row-actions .row-action-button{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:auto!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  position:static!important;
}

.row-actions .row-action-button .material-symbols-rounded{
  width:18px;
  min-width:18px;
  height:18px;
  font-size:18px;
}

@media (max-width:860px){
  .premium-table th.actions-col,
  .premium-table td.row-actions,
  .data-table th.actions-col,
  .data-table td.row-actions{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    text-align:left!important;
  }
  .row-actions-inner{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    min-width:0;
  }
  .row-actions .row-action-button{
    flex:0 1 auto!important;
  }
}

/* --- Hotfix definitiva: azioni lista sempre allineate e non sovrapposte --- */
@media (min-width:861px){
  .data-table th.actions-col,
  .premium-table th.actions-col,
  .data-table td.row-actions,
  .premium-table td.row-actions{
    width:252px!important;
    min-width:252px!important;
    max-width:252px!important;
    position:sticky!important;
    right:0!important;
    box-sizing:border-box!important;
  }
  .data-table th.actions-col,
  .premium-table th.actions-col{
    z-index:8!important;
    text-align:right!important;
    padding-right:18px!important;
    background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important;
    box-shadow:-12px 0 18px rgba(255,255,255,.94)!important;
  }
  .data-table td.row-actions,
  .premium-table td.row-actions{
    display:table-cell!important;
    z-index:7!important;
    vertical-align:middle!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:visible!important;
    padding:9px 16px!important;
    line-height:1!important;
    background:#fff!important;
    box-shadow:-12px 0 18px rgba(255,255,255,.94)!important;
  }
  .premium-table tbody tr:nth-child(even) td.row-actions,
  .data-table tbody tr:nth-child(even) td.row-actions{
    background:#fcfdff!important;
  }
  .premium-table tbody tr:hover td.row-actions,
  .data-table tbody tr:hover td.row-actions{
    background:#f8fbff!important;
  }
  .row-actions-bar,
  .row-actions-inner{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:nowrap!important;
    vertical-align:middle!important;
  }
  .row-actions-bar .row-action-button,
  .row-actions-inner .row-action-button,
  .row-actions .row-action-button{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-width:88px!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 11px!important;
    line-height:1!important;
    white-space:nowrap!important;
    position:static!important;
    transform:none!important;
  }
  .row-actions-bar .row-action-button + .row-action-button,
  .row-actions-inner .row-action-button + .row-action-button,
  .row-actions .row-action-button + .row-action-button{
    margin-left:0!important;
  }
  .row-actions-bar .row-action-button .material-symbols-rounded,
  .row-actions-inner .row-action-button .material-symbols-rounded,
  .row-actions .row-action-button .material-symbols-rounded{
    width:18px!important;
    min-width:18px!important;
    height:18px!important;
    font-size:18px!important;
    line-height:1!important;
  }
}
@media (max-width:860px){
  .data-table td.row-actions,
  .premium-table td.row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    position:static!important;
    box-shadow:none!important;
    padding:10px 14px!important;
    white-space:normal!important;
  }
  .row-actions-bar,
  .row-actions-inner{
    display:flex!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    width:auto!important;
    min-width:0!important;
  }
  .row-actions-bar .row-action-button,
  .row-actions-inner .row-action-button,
  .row-actions .row-action-button{
    flex:0 0 auto!important;
    min-width:0!important;
    margin:0!important;
  }
}

/* --- Hotfix header liste: padding, allineamento e ordinamento leggibile --- */
.table-wrap.premium-table-wrap{
  overflow:auto!important;
  border-radius:0 0 22px 22px!important;
  background:#fff!important;
}

.premium-table,
.data-table.premium-table{
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:auto!important;
  min-width:980px!important;
}

.premium-table thead,
.data-table.premium-table thead{
  position:relative!important;
  z-index:6!important;
}

.premium-table thead tr,
.data-table.premium-table thead tr{
  height:54px!important;
}

.premium-table thead th,
.data-table.premium-table thead th{
  height:54px!important;
  min-height:54px!important;
  padding:0!important;
  vertical-align:middle!important;
  background:linear-gradient(180deg,#f9fbfe 0%,#f1f5f9 100%)!important;
  border-bottom:1px solid #dbe3ee!important;
  color:#475569!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

.premium-table thead th:first-child .sort-th,
.data-table.premium-table thead th:first-child .sort-th{
  padding-left:20px!important;
}

.premium-table .sort-th,
.data-table.premium-table .sort-th{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-width:100%!important;
  min-height:54px!important;
  padding:0 16px!important;
  box-sizing:border-box!important;
  color:#475569!important;
  text-transform:uppercase!important;
  letter-spacing:.075em!important;
  font-size:.74rem!important;
  font-weight:950!important;
  line-height:1!important;
  text-decoration:none!important;
}

.premium-table .sort-th span,
.data-table.premium-table .sort-th span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.premium-table .sort-th .material-symbols-rounded,
.data-table.premium-table .sort-th .material-symbols-rounded{
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  margin:0!important;
  opacity:.74!important;
  color:#94a3b8!important;
  font-size:18px!important;
  line-height:1!important;
  transform:none!important;
}

.premium-table .sort-th:hover,
.data-table.premium-table .sort-th:hover,
.premium-table .sort-th.active,
.data-table.premium-table .sort-th.active{
  color:var(--brand)!important;
  background:#eff6ff!important;
}

.premium-table .sort-th.active .material-symbols-rounded,
.data-table.premium-table .sort-th.active .material-symbols-rounded{
  color:var(--brand)!important;
  opacity:1!important;
}

@media (min-width:861px){
  .premium-table th.actions-col,
  .data-table.premium-table th.actions-col,
  .data-table th.actions-col{
    height:54px!important;
    min-height:54px!important;
    padding:0 18px!important;
    vertical-align:middle!important;
    line-height:54px!important;
    text-align:right!important;
    text-transform:uppercase!important;
    letter-spacing:.075em!important;
    font-size:.74rem!important;
    font-weight:950!important;
    color:#475569!important;
    background:linear-gradient(180deg,#f9fbfe 0%,#f1f5f9 100%)!important;
    border-bottom:1px solid #dbe3ee!important;
    box-shadow:-14px 0 22px rgba(255,255,255,.94)!important;
  }
}

@media (max-width:860px){
  .premium-table,
  .data-table.premium-table{
    min-width:0!important;
  }
  .premium-table thead,
  .data-table.premium-table thead{
    display:none!important;
  }
}

/* --- Hotfix header liste: intestazioni allineate, icone vicine alle etichette, nessun taglio laterale --- */
.table-wrap.premium-table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
.data-table.premium-table{
  width:max-content!important;
  min-width:100%!important;
  table-layout:auto!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.data-table.premium-table thead.table-head th{
  height:54px!important;
  min-height:54px!important;
  padding:0!important;
  vertical-align:middle!important;
  background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%)!important;
  border-bottom:1px solid #d6dee9!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.data-table.premium-table thead.table-head th:not(.actions-col){
  min-width:150px!important;
}
.data-table.premium-table thead.table-head th:first-child:not(.actions-col){
  min-width:135px!important;
}
.data-table.premium-table thead.table-head .sort-th{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  height:54px!important;
  padding:0 16px!important;
  box-sizing:border-box!important;
  line-height:1!important;
  color:#475569!important;
  text-transform:uppercase!important;
  letter-spacing:.075em!important;
  font-size:.74rem!important;
  font-weight:950!important;
  text-decoration:none!important;
  overflow:hidden!important;
}
.data-table.premium-table thead.table-head .sort-th:hover{
  color:var(--brand)!important;
  background:#eff6ff!important;
}
.data-table.premium-table thead.table-head .sort-th.active{
  color:var(--brand)!important;
  background:linear-gradient(180deg,#eff6ff 0%,#eaf2ff 100%)!important;
}
.data-table.premium-table thead.table-head .sort-label{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.data-table.premium-table thead.table-head .sort-th .material-symbols-rounded{
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  margin:0!important;
  font-size:18px!important;
  line-height:1!important;
  color:#94a3b8!important;
  opacity:1!important;
  transform:none!important;
}
.data-table.premium-table thead.table-head .sort-th.active .material-symbols-rounded{
  color:var(--brand)!important;
  font-variation-settings:'FILL' 1,'wght' 650,'GRAD' 0,'opsz' 24!important;
}
.data-table.premium-table thead.table-head th.actions-col{
  width:230px!important;
  min-width:230px!important;
  max-width:230px!important;
  padding:0 18px!important;
  text-align:right!important;
  color:#475569!important;
  text-transform:uppercase!important;
  letter-spacing:.075em!important;
  font-size:.74rem!important;
  font-weight:950!important;
  line-height:54px!important;
  background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%)!important;
  z-index:9!important;
}
.data-table.premium-table thead.table-head th.actions-col span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  height:54px!important;
  line-height:1!important;
}
@media (max-width:860px){
  .data-table.premium-table{
    width:100%!important;
    min-width:0!important;
  }
  .data-table.premium-table thead.table-head th,
  .data-table.premium-table thead.table-head th.actions-col{
    position:static!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:0!important;
    box-shadow:none!important;
  }
}


/* --- Hotfix icone: SVG Material inline, nessun font esterno da attendere --- */
.material-symbols-rounded.material-icon-svg{
  display:inline-block!important;
  width:1em!important;
  height:1em!important;
  min-width:1em!important;
  flex:0 0 auto!important;
  fill:currentColor!important;
  color:currentColor;
  font-family:inherit!important;
  font-size:20px;
  line-height:1!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  vertical-align:-.18em!important;
  overflow:visible!important;
  transform:none!important;
}
.material-symbols-rounded.material-icon-svg path{
  fill:currentColor!important;
}
.nav-icon.material-icon-svg{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  font-size:20px!important;
}
.nav-item.active .nav-icon.material-icon-svg{
  color:var(--brand)!important;
}
.top-search .search-leading{
  width:44px;
  min-width:44px;
  height:48px;
  margin-left:0!important;
  display:grid!important;
  place-items:center!important;
  color:var(--muted);
}
.top-search .search-leading .material-icon-svg{
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  font-size:21px!important;
}
.input-with-icon>.material-icon-svg{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
}
.button .material-icon-svg,
.icon-link .material-icon-svg,
.row-action-button .material-icon-svg,
.file-link .material-icon-svg{
  width:1.05em!important;
  height:1.05em!important;
  min-width:1.05em!important;
}
.stat-icon .material-icon-svg,
.stat-icon.material-icon-svg{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  font-size:24px!important;
}
.card-head h2 .material-icon-svg,
.timeline-marker .material-icon-svg,
.topbar-context-icon .material-icon-svg{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  font-size:22px!important;
}
.data-table.premium-table thead.table-head .sort-th .material-icon-svg{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
}
@media (prefers-reduced-motion:no-preference){
  .material-icon-svg{
    transition:color .16s ease, opacity .16s ease, transform .16s ease;
  }
}

/* --- Hotfix dashboard agenda: leggibilità alta e niente sovrapposizioni di stili precedenti --- */
.dashboard-hero .dashboard-agenda-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:24px!important;
  background:linear-gradient(145deg,#ffffff 0%,#f8fbff 58%,#eef6ff 100%)!important;
  color:#0f172a!important;
  border:1px solid #dbe3ee!important;
  box-shadow:0 18px 50px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
}
.dashboard-agenda-card .hero-panel-title{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  min-height:64px!important;
  margin:0!important;
  padding:14px 16px!important;
  border-radius:18px!important;
  background:#0f172a!important;
  color:#ffffff!important;
  border:1px solid rgba(15,23,42,.12)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.13)!important;
}
.dashboard-agenda-card .hero-panel-title span:not(.material-symbols-rounded):not(.material-icon-svg){
  display:inline-block!important;
  margin:0!important;
  color:#ffffff!important;
  opacity:1!important;
  font-weight:950!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  font-size:.82rem!important;
  line-height:1.1!important;
}
.dashboard-agenda-card .hero-panel-title .material-symbols-rounded,
.dashboard-agenda-card .hero-panel-title .material-icon-svg{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  font-size:22px!important;
  border-radius:0!important;
  background:transparent!important;
  color:#ffffff!important;
  opacity:1!important;
}
.dashboard-agenda-card .hero-metrics{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.dashboard-agenda-card .hero-metrics a{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:74px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid #dbe3ee!important;
  box-shadow:0 10px 26px rgba(15,23,42,.06)!important;
  text-decoration:none!important;
}
.dashboard-agenda-card .hero-metrics a:hover{
  background:#f8fbff!important;
  border-color:#bfdbfe!important;
  color:#0f172a!important;
  transform:translateY(-1px)!important;
  box-shadow:0 16px 34px rgba(15,23,42,.09)!important;
}
.dashboard-agenda-card .hero-metrics a:nth-child(1){border-left:5px solid #ef4444!important;}
.dashboard-agenda-card .hero-metrics a:nth-child(2){border-left:5px solid #2563eb!important;}
.dashboard-agenda-card .hero-metrics a:nth-child(3){border-left:5px solid #16a34a!important;}
.dashboard-agenda-card .hero-metrics span{
  display:block!important;
  margin:0!important;
  color:#334155!important;
  opacity:1!important;
  text-transform:uppercase!important;
  letter-spacing:.105em!important;
  font-size:.78rem!important;
  line-height:1.1!important;
  font-weight:950!important;
}
.dashboard-agenda-card .hero-metrics strong{
  display:block!important;
  margin:0!important;
  color:#0f172a!important;
  opacity:1!important;
  font-size:1.78rem!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:-.055em!important;
}
.dashboard-agenda-card .hero-metrics a:nth-child(1) strong{color:#b91c1c!important;}
.dashboard-agenda-card .hero-metrics a:nth-child(2) strong{color:#1d4ed8!important;}
.dashboard-agenda-card .hero-metrics a:nth-child(3) strong{color:#15803d!important;}
@media (max-width:860px){
  .dashboard-hero .dashboard-agenda-card{
    padding:18px!important;
    border-radius:22px!important;
  }
  .dashboard-agenda-card .hero-panel-title{
    min-height:58px!important;
    border-radius:17px!important;
  }
  .dashboard-agenda-card .hero-metrics a{
    min-height:64px!important;
    padding:15px 16px!important;
  }
}
