.client-dashboard {
  --dash-ink: #14213a;
  --dash-muted: #43556f;
  --dash-line: #e0e7f1;
  display: grid;
  grid-template-columns: clamp(172px, 16vw, 218px) minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f7fc;
  color: var(--dash-ink);
}
.client-dashboard svg { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.client-dashboard .dashboard-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.dashboard-sidebar { padding: 16px 10px; color: #fff; background: linear-gradient(155deg,#121e35,#13243e 70%,#142844); }
.dashboard-brand { display: block; width: min(100%,172px); padding: 5px 8px; background: #fff; border-radius: 7px; }
.dashboard-brand img { display: block; width: 100%; height: auto; }
.dashboard-nav { display: grid; gap: 3px; margin-top: 13px; }
.dashboard-nav a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px; border-radius: 8px; color: #f2f6ff; text-decoration: none; font-size: 13px; font-weight: 580; }
.dashboard-nav svg { width: 19px; height: 19px; }
.dashboard-nav a:hover,.dashboard-nav a[aria-current="page"] { background: #234773; }
.dashboard-nav .dashboard-profile-link { margin-top: 9px; border-top: 1px solid #41536e; border-radius: 0 0 8px 8px; }
.dashboard-nav .dashboard-count { margin-left: auto; }
.dashboard-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; padding: 2px 5px; border-radius: 20px; color: white; background: #ba343e; font-size: 12px; font-weight: 700; }
.dashboard-masthead { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px clamp(12px, 2vw, 24px); background: #f9fbff; border-bottom: 1px solid var(--dash-line); }
.dashboard-title { font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; font-weight: 760; }
.dashboard-masthead p { margin: 2px 0 0; color: var(--dash-muted); font-size: 13px; }
.dashboard-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard-phone { display: inline-flex; align-items: center; min-height: 38px; color: #173651; font-size: 14px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.dashboard-phone:hover { text-decoration: underline; }
.dashboard-notifications,.dashboard-menu summary { display: flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid var(--dash-line); border-radius: 30px; background: white; color: #172641; }
.dashboard-notifications { position: relative; padding: 0 12px; text-decoration: none; }
.dashboard-dot { position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: #ba343e; border: 1px solid #fff; }
.dashboard-menu { position: relative; min-width: 0; }
.dashboard-menu summary { padding: 0 14px; list-style: none; cursor: pointer; font-weight: 650; }
.dashboard-menu summary::-webkit-details-marker { display: none; }
.dashboard-menu summary span { max-width: min(24vw,255px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -4px 0 0 4px; }
.dashboard-menu > div { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 180px; padding: 7px; background: #fff; border: 1px solid var(--dash-line); border-radius: 12px; box-shadow: 0 8px 24px #1726411f; }
.dashboard-menu > div a,.dashboard-menu > div button { padding: 9px 10px; border-radius: 6px; color: var(--dash-ink); background: white; font: inherit; text-align: left; text-decoration: none; }
.dashboard-menu > div a:hover,.dashboard-menu > div button:hover { background: #edf4ff; }
.dashboard-main { width: min(100%, 1550px); margin: auto; padding: clamp(10px, 1.6vw, 20px); }
.dashboard-main h1,.dashboard-main h2 { letter-spacing: -.025em; line-height: 1.2; color: var(--dash-ink); }
.dashboard-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 112px; border-radius: 12px; background: linear-gradient(108deg,#e4edf9 5%,#d8e9fa 63%,#bad8f1 100%); }
.dashboard-welcome { position: relative; width: 77%; padding: 14px clamp(14px, 2vw, 25px); }
.dashboard-welcome h1 { margin: 0 0 5px; font-size: clamp(22px, 2.4vw, 34px); overflow-wrap: anywhere; }
.dashboard-welcome p { margin: 0; font-size: clamp(13px, 1.15vw, 15px); }
.dashboard-skyline { position: absolute; z-index: -1; inset: 17% 0 0 auto; width: 34%; background: linear-gradient(180deg,#99c6ee00 0%,#dfecf8 86%); mask-image: linear-gradient(90deg,transparent,black 16%); }
.dashboard-skyline span { position: absolute; display: block; background: repeating-linear-gradient(90deg,transparent 0 32px,#102e50aa 32px 34px),repeating-linear-gradient(0deg,transparent 0 24px,#102e5099 24px 26px),linear-gradient(150deg,#7db6df,#3176ab 44%,#16324d); }
.dashboard-skyline span:first-child { inset: 2% 10% -12% 0; clip-path: polygon(0 74%,64% 0,100% 45%,100% 100%,0 100%); }
.dashboard-skyline span:last-child { inset: 12% 0 -15% 59%; clip-path: polygon(0 52%,100% 0,100% 100%,0 100%); background-color: #13436d; filter: brightness(.72); }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(7px,1vw,13px); margin: 13px 0 14px; }
.dashboard-shortcuts a { position: relative; display: grid; align-content: start; gap: 4px; min-height: 109px; padding: 10px 11px 21px; border-radius: 11px; text-decoration: none; color: var(--dash-ink); }
.dashboard-shortcuts a:hover { box-shadow: 0 0 0 2px currentColor inset; }
.dashboard-shortcuts svg { width: 26px; height: 26px; margin-bottom: 2px; color: var(--shortcut-accent); }
.dashboard-shortcuts strong { font-size: clamp(14px,1.3vw,17px); line-height: 1.2; }
.dashboard-shortcuts a > span:not(.shortcut-arrow,.dashboard-count) { color: #293b55; line-height: 1.3; font-size: 13px; }
.shortcut-blue { background: #dcecfb; --shortcut-accent: #155aab; }
.shortcut-green { background: #dcf6e9; --shortcut-accent: #19734b; }
.shortcut-purple { background: #ebe6fb; --shortcut-accent: #5537a2; }
.shortcut-gold { background: #fff0d9; --shortcut-accent: #875319; }
.shortcut-arrow,.dashboard-shortcuts .dashboard-count { position: absolute; right: 10px; }
.shortcut-arrow { bottom: 4px; font-size: 18px; line-height: 1; }
.dashboard-shortcuts .dashboard-count { top: 9px; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 13px; }
.dashboard-panel { min-width: 0; padding: clamp(11px, 1.25vw, 16px); border: 1px solid var(--dash-line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px #23385908; }
.dashboard-panel h1,.dashboard-panel h2 { margin: 0 0 9px; }
.dashboard-overview h2 { font-size: clamp(15px,1.45vw,20px); }
.dashboard-panel > h2 { display: flex; align-items: center; gap: 9px; }
.dashboard-panel-head { display: flex; justify-content: space-between; align-items: start; gap: 7px; margin-bottom: 5px; }
.dashboard-panel-head a { font-size: 13px; white-space: nowrap; }
.dashboard-panel-head h2 { margin: 0; }
.dashboard-panel a { color: #164e94; }
.dashboard-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 7px; min-height: 43px; padding: 4px 1px; border-bottom: 1px solid #edf0f6; }
.dashboard-row:last-child { border-bottom: 0; }
.dashboard-row strong,.dashboard-row small,.dashboard-notice small { display: block; overflow-wrap: anywhere; }
.dashboard-row small,.dashboard-notice small,.dashboard-empty { color: var(--dash-muted); }
.dashboard-row > svg { color: #b43647; }
.dashboard-row a { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; border-radius: 7px; }
.dashboard-row a:hover { background: #eaf2ff; }
.dashboard-preview-download { display: inline-grid; min-width: 34px; min-height: 34px; place-items: center; color: #536985; }
.dashboard-status { border-radius: 16px; padding: 3px 9px; background: #e6effd; color: #184980; font-size: 12px; }
.dashboard-notice { display: block; margin: 0 0 5px; padding: 6px 9px; border-radius: 7px; background: #eaf2ff; overflow-wrap: anywhere; text-decoration: none; }
.dashboard-notice strong,.dashboard-notice small { display: block; }
.dashboard-overview .dashboard-notice strong,.dashboard-overview .dashboard-notice small,.dashboard-overview .dashboard-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-request { grid-template-columns: auto minmax(0,1fr) auto; }
.dashboard-details dd { margin: 0 0 16px; overflow-wrap: anywhere; }
.dashboard-details dt { color: var(--dash-muted); font-weight: 650; }
.dashboard-main select { width: min(100%,270px); margin-bottom: 12px; }
.dashboard-error { padding: 10px 14px; border-radius: 8px; background: #fff1f2; color: #9a2e3e; }
.dashboard-side-panels,.studio-docs-tools { display: grid; align-content: start; gap: 12px; }
.dashboard-referents dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 10px; margin: 0; font-size: 13px; }
.dashboard-referents dt { color: var(--dash-muted); }
.dashboard-referents dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.studio-docs-breadcrumb { margin-bottom: 10px; color: var(--dash-muted); font-size: 13px; }
.studio-docs-breadcrumb a { color: #174d85; }
.studio-docs-breadcrumb span { margin: 0 5px; }
.studio-docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, 24%); gap: clamp(11px, 1.5vw, 20px); align-items: start; }
.studio-docs-layout > div { min-width: 0; }
.studio-docs h1 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 34px); }
.studio-docs h1 svg { width: 31px; height: 31px; color: #165082; }
.studio-docs-intro { margin: 0 0 12px; color: var(--dash-muted); }
.studio-docs-workspace { display: grid; grid-template-columns: minmax(120px, 165px) minmax(0, 1fr); gap: 10px; align-items: start; }
.studio-docs-categories { display: grid; gap: 6px; margin-bottom: 8px; }
.studio-docs-category { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 16px 6px 7px; min-height: 38px; border: 1px solid transparent; border-radius: 7px; color: var(--dash-ink); font: inherit; text-align: left; }
.studio-docs-category::after { content: "›"; position: absolute; top: 50%; right: 5px; transform: translateY(-50%); font-size: 17px; }
.studio-docs-category strong { font-size: 13px; line-height: 1.15; }
.studio-docs-category svg { width: 16px; height: 16px; color: var(--shortcut-accent); }
.studio-docs-category:hover,.studio-docs-category[aria-pressed="true"] { border-color: var(--shortcut-accent); }
.studio-docs-subfolders { display: grid; gap: 4px; padding-left: 6px; margin: 0 0 10px; }
.studio-docs-subfolders button { border: 1px solid var(--dash-line); background: #fff; color: #173651; padding: 5px 7px; text-align: left; }
.studio-docs-subfolders button:hover,.studio-docs-subfolders [aria-pressed="true"] { background: #e2effc; border-color: #779abc; }
.studio-docs-period h3 { margin: 10px 0 4px; color: #30557c; font-size: 13px; text-transform: capitalize; }
.studio-docs-art { min-height: clamp(80px, 11vw, 155px); }
.studio-docs-art .dashboard-skyline { inset: 0; width: 100%; mask-image: none; }
.studio-docs-tools h2 { font-size: 17px; }
.studio-docs-note { background: #eaf2fa; }
.studio-docs-note p { margin: 0; font-size: 13px; }
.studio-docs-results h2 { font-size: 19px; }
#staff-open-balances { width: 100%; padding: 7px 9px; background: #eff5fc; }
#staff-open-balances[aria-pressed='true'] { background: #deebfb; }
.studio-docs-balance-blank .studio-docs-results,.staff-balance-blank { background: #fff; min-height: 260px; }
.studio-docs-balance-blank .studio-docs-results > *,.staff-balance-blank > * { display: none; }
.studio-docs-balance-blank .studio-docs-layout { grid-template-columns: minmax(0, 1fr); }
.studio-docs-balance-blank .studio-docs-tools { display: none; }
.staff-balance-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.staff-document-sidebar,.staff-folder-actions { display: grid; gap: 10px; }
.staff-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; margin-bottom: 5px; border-radius: 6px; background: #eff5fc; }
.staff-balance-row .staff-add-file { padding: 4px 10px; font-size: 18px; }
.staff-add-file:disabled { opacity: .5; cursor: default; }
.staff-folder-name { padding: 4px; background: transparent; color: var(--navy); text-align: left; }
.staff-subfolder-row { margin-left: 10px; }
.staff-documents-layout { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.staff-documents-layout > .card { min-width: 0; }
#documents .row { flex-wrap: wrap; overflow-wrap: anywhere; }
.staff-document-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.staff-document-actions select { width: auto; padding: 4px 6px; }
.document-icon { padding: 6px; color: var(--navy); background: #edf3fa; }
.document-icon.document-delete { color: #9d283a; background: #fff0f1; }
.document-icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media(max-width:760px) { .staff-documents-layout { grid-template-columns: minmax(0,1fr); } }
.studio-docs-results .dashboard-panel-head { align-items: center; flex-wrap: wrap; }
.studio-docs-table-scroll { overflow-x: auto; }
.studio-docs-table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 13px; text-align: left; }
.studio-docs-table th,.studio-docs-table td { padding: 6px 8px; border-bottom: 1px solid var(--dash-line); }
.studio-docs-table th { background: #e8f0fa; }
.studio-docs-table td:nth-child(n+2) { white-space: nowrap; }
.studio-docs-filename { display: flex; align-items: center; gap: 6px; min-width: 100px; overflow-wrap: anywhere; }
.studio-docs-filename svg { width: 18px; height: 18px; color: #b43647; }
.studio-docs-file-details { display: grid; gap: 2px; }
.studio-docs-file-details small { color: var(--dash-muted); font-size: 11px; }
.studio-docs-pill { display: inline-block; border-radius: 15px; padding: 2px 7px; font-size: 12px; }
.studio-docs-download { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; border-radius: 5px; }
.studio-docs-download:hover { background: #e8f0fa; }
.client-dashboard[data-active-view="documenti"] .dashboard-masthead { background: #153756; color: #fff; }
.client-dashboard[data-active-view="documenti"] .dashboard-masthead p { color: #e3edf9; }
.client-dashboard[data-active-view="documenti"] .dashboard-phone { color: #fff; }
.client-dashboard[data-active-view="documenti"] .dashboard-sidebar { background: #f7faff; border-right: 1px solid var(--dash-line); }
.client-dashboard[data-active-view="documenti"] .dashboard-nav a { color: var(--dash-ink); }
.client-dashboard[data-active-view="documenti"] .dashboard-nav a:hover,
.client-dashboard[data-active-view="documenti"] .dashboard-nav a[aria-current="page"] { background: #deecfa; }
.client-dashboard[data-active-view="documenti"] .dashboard-profile-link { border-color: var(--dash-line); }
@media(max-width:1050px) {
  .dashboard-overview .dashboard-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .dashboard-overview .dashboard-status { display: none; }
}
@media(max-width:800px) {
  .studio-docs-workspace { grid-template-columns: 115px minmax(0,1fr); gap: 7px; }
  .client-dashboard { grid-template-columns: minmax(0,1fr); }
  .dashboard-sidebar { padding: 7px 10px 8px; }
  .dashboard-brand { width: 134px; padding: 3px 6px; }
  .dashboard-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; margin: 5px 0 0; }
  .dashboard-nav a { min-height: 34px; gap: 6px; padding: 4px 6px; }
  .dashboard-nav svg { width: 17px; height: 17px; }
  .dashboard-nav .dashboard-profile-link { margin-top: 0; border: 0; border-radius: 10px; }
  .dashboard-welcome { width: 100%; background: linear-gradient(90deg,#e4edf9 28%,#e4edf9db 65%,#e4edf999); }
  .dashboard-skyline { width: 47%; }
  .dashboard-row { grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; }
  .dashboard-row:not(.dashboard-request) .dashboard-status { display: none; }
}
@media(max-width:580px) {
  .studio-docs-layout { grid-template-columns: minmax(0,1fr); }
  .studio-docs-tools { display: none; }
  .studio-docs-art,.studio-docs-note { display: none; }
  .dashboard-masthead { flex-wrap: wrap; }
  .dashboard-account { margin-left: auto; }
  .dashboard-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-overview { grid-template-columns: minmax(0,1fr); }
  .dashboard-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-shortcuts a { min-height: 86px; }
  .dashboard-shortcuts svg { width: 22px; height: 22px; }
}
@media(max-width:400px) {
  .dashboard-masthead { gap: 8px; }
  .dashboard-masthead p { display: none; }
  .dashboard-account { gap: 6px; }
  .dashboard-menu summary { padding: 0 8px; }
  .dashboard-menu summary > svg { display: none; }
  .dashboard-shortcuts { gap: 8px; }
}
