:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15304b;
  background: #f3f6fa;
  font-size: 14px;
  --blue: #145b9b;
  --orange: #f28a29;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button, input, select, textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.quiet {
  background: #edf2f7;
  color: #23425e;
}
input, select, textarea {
  display: block;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px;
  width: 100%;
  background: white;
  color: #16324b;
  margin-top: 5px;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 8px;
}
label {
  display: block;
  color: #4b6176;
  font-size: 13px;
  margin-bottom: 16px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
small {
  color: #64788b;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 20px;
}
.brand {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.brand span {
  color: var(--orange);
}
.version {
  color: #99adc0;
  margin: 9px 0 30px;
}
.version b {
  font-size: 10px;
  background: #234762;
  color: #b8dfd3;
  border-radius: 5px;
  padding: 4px;
  margin-left: 9px;
}
aside {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #102b43;
  color: white;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  background: transparent;
  color: #bdcbd8;
  text-align: left;
  font-weight: 500;
  padding: 12px;
}
nav button.active {
  background: #23465f;
  color: white;
  border-left: 3px solid var(--orange);
}
.aside-bottom {
  margin-top: auto;
  display: grid;
  gap: 15px;
  font-size: 12px;
  word-break: break-word;
}
main {
  margin-left: 238px;
  padding: 32px 38px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
header small {
  font-size: 10px;
  letter-spacing: 2px;
}
.local-pill {
  background: #e4f3ec;
  border: 1px solid #c7e3d7;
  color: #257557;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.card {
  background: white;
  border: 1px solid #e1e8f0;
  border-radius: 13px;
  padding: 23px;
}
.metric {
  font-size: 30px;
  font-weight: 700;
  margin: 15px 0 5px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 380px;
  margin: 0;
}
.toolbar .count {
  margin-left: auto;
  font-size: 12px;
  color: #64788b;
}
.panel {
  background: white;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f8fafc;
  color: #61758a;
  font-weight: 600;
  padding: 15px;
  white-space: nowrap;
}
td {
  padding: 14px 15px;
  border-top: 1px solid #eef2f6;
  max-width: 280px;
  overflow-wrap: anywhere;
}
td button {
  font-size: 11px;
  padding: 7px 10px;
}
.empty {
  padding: 45px;
  text-align: center;
  color: #64788b;
}
.badge {
  background: #eef3f8;
  border-radius: 5px;
  padding: 4px 7px;
  display: inline-block;
  font-size: 11px;
}
.login {
  max-width: 420px;
  margin: 10vh auto;
  background: white;
  padding: 35px;
  border: 1px solid #e0e7ef;
  border-radius: 16px;
}
.login h1 {
  margin-top: 35px;
  font-size: 26px;
}
.login form {
  margin: 30px 0;
}
.login button {
  width: 100%;
}
dialog {
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  width: min(800px, 95vw);
  max-height: 90vh;
  padding: 25px;
  color: #15304b;
}
dialog::backdrop {
  background: #0b233a88;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
footer {
  text-align: right;
  margin-top: 20px;
}
#notice {
  background: #e5f0fb;
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 18px;
}
#notice.error, #formError, #loginError {
  color: #b52b32;
}
#notice.error {
  background: #fff0ef;
}
.detail {
  padding: 25px;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.detail .toolbar {
  margin-top: 20px;
}
.line {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) 35px;
  gap: 8px;
  margin-bottom: 8px;
}
.line input {
  min-width: 0;
}
.line-head {
  font-size: 10px;
  color: #64788b;
}
.line button {
  padding: 7px;
  background: #eaeff4;
  color: #324b61;
}
.warning {
  background: #fff4e6;
  border: 1px solid #f0d6af;
  padding: 16px;
  border-radius: 9px;
}
.frame {
  width: 100%;
  height: calc(100vh - 180px);
  border: 0;
  background: white;
  border-radius: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.due {
  color: #b64a2d;
}
.document {
  background: white;
  padding: 35px;
  border-radius: 12px;
}
.print-only {
  display: none;
}
@media (max-width: 900px) {
  aside {
    width: 185px;
    padding: 22px 14px;
  }
  main {
    margin-left: 185px;
    padding: 25px 20px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .local-pill {
    display: none;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .version, .aside-bottom {
    margin: 8px 0;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .brand {
    font-size: 23px;
  }
  main {
    margin: 0;
    padding: 20px 13px;
  }
  h1 {
    font-size: 25px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .metric {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .line {
    grid-template-columns: 2fr 1fr;
    gap: 5px;
  }
  .login {
    margin: 5vh 15px;
  }
  .toolbar .count {
    margin-left: 0;
  }
}
@media print {
  aside, header, .toolbar, #notice, button, .no-print {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  .document {
    padding: 0;
  }
  .print-only {
    display: block;
  }
  body {
    background: white;
  }
}

aside {
  overflow-y: auto;
}
nav {
  flex-shrink: 0;
}
.aside-bottom {
  padding-top: 18px;
}

.language-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 18px;
}
.language-control select {
  width: auto;
  min-width: 105px;
  margin: 0;
  padding: 7px;
}
.sidebar-language {
  margin-top: -12px;
}
.sidebar-language label {
  color: #cbd9e5;
}
.login > .language-control {
  justify-content: flex-end;
}
.language-control span {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .sidebar-language {
    position: absolute;
    right: 18px;
    top: 22px;
  }
  .sidebar-language span {
    display: none;
  }
  .sidebar-language select {
    min-width: 90px;
  }
  .sidebar-language label {
    margin: 0;
  }
  .version {
    margin-bottom: 12px;
  }
}

.dialog-head {
  gap: 12px;
  flex-wrap: wrap;
}
.dialog-language {
  width: auto;
  min-width: 100px;
  margin: 0 0 0 auto;
}
.dialog-head h2 {
  margin-right: auto;
}
/* Completion forms reuse the existing responsive system. */
textarea{font:inherit;width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:10px;resize:vertical}label:has(textarea){grid-column:1/-1}.toolbar label{min-width:130px}#recovery{max-width:620px;width:calc(100% - 40px)}#recovery label{display:block;margin:14px 0}#recovery input{display:block;width:100%;box-sizing:border-box}#pageInfo{white-space:nowrap}#recovery a{color:#125b82}
@media(max-width:700px){.panel>table{min-width:640px}.toolbar{gap:10px}.toolbar label{flex:1 1 130px}}
table button{white-space:nowrap;word-break:normal;min-width:64px}
.kanban-board{display:grid;grid-template-columns:repeat(6,minmax(260px,1fr));gap:16px;overflow-x:auto;padding:4px 0 20px}.kanban-column{background:#eaf0f6;border-radius:14px;padding:12px;min-height:300px}.kanban-column h2{font-size:16px;display:flex;justify-content:space-between;color:#112d4e;border-top:4px solid #f47721;padding-top:12px}.prospect-card{background:white;border:1px solid #d8e2ed;border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 3px 8px #112d4e08}.prospect-card h3,.queue-card h3{margin:0 0 8px;color:#112d4e;overflow-wrap:anywhere}.prospect-card p{font-size:13px}.prospect-card .toolbar{gap:6px;flex-wrap:wrap}.prospect-card button{font-size:12px;padding:7px}.prospect-card select{width:100%}.queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.queue-card{padding:20px}.queue-card button{margin:3px}.calculator{padding:24px;max-width:900px}#marginResult{background:#eaf0f6;padding:16px;margin-top:20px;border-radius:12px}#marginResult p{display:flex;justify-content:space-between}
.sales-summary{margin-top:24px}.stage-meter{display:grid;grid-template-columns:120px minmax(60px,1fr) 30px;gap:10px;align-items:center;margin:12px 0}.stage-meter meter{width:100%;height:18px}

/* Familiar sales navigation from the recovered v4 local reference. */
:root { --blue:#155a94; --orange:#f47721; background:#f6f9fc; }
aside { background:#112d4e; border-right:3px solid var(--orange); }
nav { display:block; }
.nav-group { display:grid; gap:4px; margin:0 0 20px; }
.nav-group h2 { font-size:10px; letter-spacing:1.3px; text-transform:uppercase; color:#a9bdd0; margin:10px 12px 6px; }
nav button { width:100%; border-left:3px solid transparent; border-radius:7px; padding:10px 11px; }
nav button.active { background:#234c71; }
nav button:focus-visible, .nav-toggle:focus-visible { outline:2px solid #ffb877; outline-offset:2px; }
.card { border-top:3px solid var(--orange); }
.nav-toggle { display:none; }
@media (max-width:600px) {
  aside { border-right:0; border-bottom:3px solid var(--orange); }
  .nav-toggle { display:block; width:100%; background:#234c71; text-align:left; margin:8px 0; }
  #nav { display:none; max-height:55vh; overflow-y:auto; }
  #nav.mobile-open { display:block; }
  .nav-group { margin-bottom:14px; }
  .nav-group button { white-space:normal; min-height:44px; }
}

.money-value { white-space:nowrap; font-variant-numeric:tabular-nums; }
.due-time { display:inline-block; min-width:125px; overflow-wrap:normal; }
/* Let dashboard grid items shrink; wide tables scroll inside their panel. */
.dashboard-lists > div { min-width:0; }
@media (max-width:1280px) { .dashboard-lists { grid-template-columns:minmax(0,1fr); } }

.commercial-context { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px; }
.commercial-context div { min-width:0; }
.commercial-context dt { color:#61758a;font-size:12px;margin-bottom:6px; }
.commercial-context dd { margin:0;white-space:pre-wrap;overflow-wrap:anywhere; }

#decisionTotals table, #conflictSummary table, #legacyCounts table, #mappingIssues table { min-width:0; }
#decisionRows table { min-width:900px; }
#conflictRows table { min-width:1000px; }

#migrationPreflightReport table { min-width:0; }
#restoreDecisionFile { max-width:100%; }

/* Keep document identity readable on narrow screens without squeezing totals. */
@media screen and (max-width:600px) {
  .document { padding:24px; }
  .document .detail-header { flex-direction:column; align-items:stretch; gap:16px; }
  .document .detail-header > div { min-width:0; }
  .document .detail-header h2 { overflow-wrap:anywhere; }
}

.document-print-preview { width:1000px; max-width:calc(100vw - 32px); max-height:90vh; padding:24px; border:1px solid #d8e2ed; border-radius:12px; color:#142f4e; background:white; overflow:auto; }
.document-print-preview::backdrop { background:#112d4e88; }
.document-print-preview .document { padding:0; }
.document-print-preview .panel { overflow:auto; }
.document-print-preview .panel > table { min-width:640px; }
.document-print-preview th { white-space:normal; overflow-wrap:anywhere; }
.document-print-preview th, .document-print-preview td { padding:8px 6px; }
.print-preview-controls { border-bottom:1px solid #d8e2ed; margin-bottom:24px; }
@media print {
  body.document-print-preview-open > :not(#documentPrintPreview) { display:none !important; }
  .document-print-preview[open] { display:block; position:static; width:auto; max-width:none; height:auto; max-height:none; margin:0; padding:0; border:0; overflow:visible; }
  .document-print-preview::backdrop { background:transparent; }
  .print-preview-controls { display:none !important; }
  .document .panel { overflow:visible; }
  .document .panel > table { min-width:0; }
  .document th { white-space:normal; overflow-wrap:anywhere; }
  .document thead { display:table-header-group; }
  .document tr { break-inside:avoid; }
}

@media print { .document-print-preview .panel > table { min-width:0; table-layout:fixed; } }

/* Each financial line keeps its labels when the editor wraps on mobile. */
.document-line { padding:12px 0; border-bottom:1px solid #d8e2ed; align-items:end; }
.document-line label { min-width:0; margin:0; }
.document-line button { min-height:44px; }
@media (max-width:600px) {
  .document-line { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
  .document-line .line-description { grid-column:1/-1; }
  .document-line button { justify-self:end; width:44px; }
}

@page { margin:12mm; }
@media print {
  .document .financial-lines th:nth-child(1) { width:8%; }
  .document .financial-lines th:nth-child(2) { width:37%; }
  .document .financial-lines th:nth-child(3) { width:8%; }
  .document .financial-lines th:nth-child(4) { width:12%; }
  .document .financial-lines th:nth-child(5) { width:12%; }
  .document .financial-lines th:nth-child(6) { width:9%; }
  .document .financial-lines th:nth-child(7) { width:14%; }
  .document .financial-lines th, .document .financial-lines td { box-sizing:border-box; }
}

@media print { .document .financial-lines { font-size:10px; } .document .financial-lines th, .document .financial-lines td { padding:8px 3px; } }
@media print {
  .document .financial-lines td { padding:6px 3px; }
  .document-print-preview, .document-print-preview .document { background:white !important; }
}

/* Workspace-shared email masters; message text remains user content. */
.outreach-intro { margin-bottom:24px; }
.template-manager { padding:24px; margin:24px 0; overflow:visible; }
.template-manager header { display:flex; justify-content:space-between; align-items:start; gap:16px; flex-wrap:wrap; }
.template-manager h2 { margin-top:0; }
.template-manager form { margin-top:18px; }
.template-manager textarea { min-height:300px; line-height:1.6; }
.template-manager .toolbar { flex-wrap:wrap; }
.template-confirm { background:#fff7ed; border:1px solid #fed7aa; border-radius:10px; padding:16px; margin-top:16px; }
.template-manager [data-status] { min-height:1.5em; overflow-wrap:anywhere; }
@media(max-width:600px) { .template-manager { padding:16px; } .template-manager .toolbar button { width:100%; } }

/* Visible keyboard focus and comfortable touch targets for record tables. */
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible, .panel:focus-visible {
  outline:3px solid #145b9b; outline-offset:3px;
}
aside button:focus-visible, aside select:focus-visible { outline-color:#ffb877; }
td button { min-height:44px; min-width:44px; }

.application-logo { width:70px;height:70px;object-fit:contain;vertical-align:middle;background:transparent; }
.commercial-header { display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:3px solid #f58220;padding-bottom:18px;margin-bottom:24px;color:#14213d;background:#fff;break-inside:avoid; }
.commercial-header img { width:120px;height:auto;aspect-ratio:1;object-fit:contain;background:transparent;flex-shrink:0; }
.commercial-header p { margin:5px 0;font-size:12px;line-height:1.5; }
.commercial-header strong { font-size:20px;color:#145b9b; }
.commercial-parties { display:flex;justify-content:space-between;gap:24px;margin:20px 0;break-inside:avoid; }
.commercial-parties p,.commercial-terms p { white-space:pre-wrap;line-height:1.5; }
.commercial-totals { max-width:320px;margin:20px 0 20px auto;break-inside:avoid; }
.commercial-totals > div { display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #e1e8f0;gap:20px; }
.commercial-totals dd { margin:0;font-variant-numeric:tabular-nums; }
.commercial-footer { text-align:center;border-top:1px solid #d8e2ed;color:#53647b;padding-top:12px;font-size:10px;overflow-wrap:anywhere; }
.commercial-terms { font-size:12px;break-inside:avoid; }
@media(max-width:600px){.commercial-header{gap:12px}.commercial-header img{width:80px}.commercial-parties{flex-direction:column}}
@media print {.commercial-header{display:flex!important}.commercial-footer{display:block!important}.commercial-header img{width:100px}.commercial-terms{display:block}.commercial-parties{display:flex;margin:12px 0}.commercial-parties p{margin:5px 0}.commercial-header{margin-bottom:14px;padding-bottom:12px}.commercial-totals{margin:12px 0 12px auto}.commercial-terms p{margin:4px 0 9px}.commercial-totals{font-size:11px}.document .panel{border:0}.commercial-header,.commercial-footer{background:white!important}}
@media print { html,body { background:#fff!important; } }
.commercial-header > div,.commercial-parties > div { min-width:0;overflow-wrap:anywhere; }

.product-import-dialog {width:min(960px,94vw);max-width:94vw;max-height:90vh;overflow:auto;}
.product-import-dialog > div:not(.product-import-preview) {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;}
.product-import-preview {max-width:100%;overflow:auto;}
.product-import-dialog button {margin:8px 8px 8px 0;}

.product-import-preview table {min-width:1100px;}
.product-import-preview td {vertical-align:top;min-width:90px;}
.product-import-preview td:first-child {min-width:140px;}

@media print {
 .document .sales-order-lines th:nth-child(1) {width:5%;}
 .document .sales-order-lines th:nth-child(2) {width:29%;}
 .document .sales-order-lines th:nth-child(3) {width:8%;}
 .document .sales-order-lines th:nth-child(4) {width:8%;}
 .document .sales-order-lines th:nth-child(5) {width:9%;}
 .document .sales-order-lines th:nth-child(6) {width:11%;}
 .document .sales-order-lines th:nth-child(7) {width:10%;}
 .document .sales-order-lines th:nth-child(8) {width:8%;}
 .document .sales-order-lines th:nth-child(9) {width:12%;}
}
/* Executive metrics remain readable without widening small screens. */
.executive-dashboard .cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
.executive-dashboard .card { min-width:0; }
.executive-dashboard .metric { font-size:clamp(17px,2vw,25px); white-space:pre-line; overflow-wrap:anywhere; }
.dashboard-chart-row { display:grid; gap:5px; margin:10px 0; }
.dashboard-chart-row meter { width:100%; }
.executive-dashboard .panel { min-width:0; margin:16px 0; }

/* Keep dashboard record text readable inside keyboard-scrollable tables. */
.dashboard-recent-leads table { min-width:900px; }
#followups table { min-width:850px; }

.document-line > .line-identifiers { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.line-identifier { overflow-wrap:anywhere; }

.document-line > .line-identifiers[hidden] { display:none; }

.document-email-message { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; font:inherit; }
[data-private] details summary { overflow-wrap:anywhere; cursor:pointer; padding:10px 0; }

/* Calendar: all seven days remain within the viewport; agenda scrolls independently. */
.activity-calendar {min-width:0;max-width:100%}
.calendar-month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:850px}
.calendar-weekday {text-align:center;overflow:hidden;font-size:.85rem}
.calendar-day {min-width:0;min-height:64px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.calendar-day[aria-pressed="true"] {background:#123c60;color:white;border-color:#123c60}
.calendar-day[aria-current="date"] {box-shadow:inset 0 0 0 2px #f47b20}
.calendar-adjacent {opacity:.6}
.calendar-day-count {border-radius:12px;background:#e9f2fa;color:#143955;padding:1px 7px;font-weight:700}
.calendar-agenda {max-width:100%;overflow:auto}
.calendar-agenda table {min-width:850px}
@media(max-width:480px){.calendar-month-grid{gap:3px}.calendar-day{min-height:56px;padding:4px}.activity-calendar .toolbar label{max-width:100%}.activity-calendar input[type="month"]{min-width:0;max-width:100%}}

.staging-notice{position:sticky;top:0;z-index:20;background:#fff4dc;color:#173955;border-bottom:3px solid #e97918;padding:8px 16px;font-size:.85rem;overflow-wrap:anywhere}
.staging-notice p{margin:2px 0}.staging-notice small{display:block}
@media print{.staging-notice{display:none}}

.staging-dialog-notice{background:#fff4dc;color:#173955;padding:7px;font-weight:700;border-left:3px solid #e97918}
.staging-document-warning{font-weight:700;color:#173955;border:1px solid #e97918;padding:6px}

.incoming-stock-table{max-width:100%;overflow:auto}.incoming-stock-table table{min-width:900px}

.opportunity-change{padding:14px;margin:12px 0}.opportunity-history-table{max-width:100%;overflow:auto}.opportunity-history-table table{min-width:600px}.opportunity-history-table td{white-space:pre-wrap;overflow-wrap:anywhere;max-width:420px}

.sales-comparison{padding:16px;margin:16px 0;min-width:0;max-width:100%}.sales-comparison-table{max-width:100%;overflow:auto}.sales-comparison-table table{min-width:700px}.comparison-currency{margin:12px 0}.comparison-meter{display:block;width:100%;height:18px;max-width:650px}.comparison-current::-webkit-meter-optimum-value{background:#145b9b}.comparison-previous::-webkit-meter-optimum-value{background:#e97918}.comparison-currency details{padding:10px 0}

.comparison-current::-moz-meter-bar{background:#145b9b}.comparison-previous::-moz-meter-bar{background:#e97918}
/* Native disclosures keep role-filtered navigation compact and keyboard accessible. */
details.nav-group{display:block;margin:0 0 10px}.nav-group summary{cursor:pointer;padding:10px 6px;min-height:44px;color:#b6c9db;list-style-position:inside}.nav-group summary::marker{color:var(--orange)}.nav-group summary h2{display:inline;margin:0;font-size:11px;letter-spacing:1px}.nav-group-items{display:grid;gap:4px}.nav-group summary:focus-visible{outline:2px solid #ffb877;outline-offset:2px;border-radius:6px}
.record-link{color:var(--blue);background:transparent;padding:8px 0;text-align:left;white-space:normal;text-decoration:underline;text-underline-offset:3px;min-height:44px;font-weight:600}
.dashboard-intro{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:4px 0 22px}.dashboard-intro h2{font-size:28px;margin:6px 0}.dashboard-intro small{letter-spacing:1.4px;color:var(--blue);font-weight:700}.dashboard-intro p{margin:0;color:#64788b}
.executive-dashboard .dashboard-primary-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-kpi{display:flex;flex-direction:column;text-align:left;color:#15304b;min-height:145px;box-shadow:0 5px 18px #112d4e08;border-top:0;border-left:4px solid var(--blue);transition:box-shadow .15s}.dashboard-kpi:nth-child(even){border-left-color:var(--orange)}.dashboard-kpi:hover{box-shadow:0 7px 24px #112d4e18}.dashboard-kpi-label{display:flex;align-items:center;gap:10px;font-size:13px;color:#536e87}.dashboard-kpi-icon{display:inline-flex;align-items:center;justify-content:center;background:#eaf3fb;color:var(--blue);padding:9px;border-radius:50%}.dashboard-kpi-icon svg{width:22px;height:22px}.dashboard-kpi:nth-child(even) .dashboard-kpi-icon{background:#fff0e5;color:#c9580b}.executive-dashboard .dashboard-kpi .metric{font-size:clamp(16px,1.6vw,25px);line-height:1.3;margin:12px 0 0;overflow-wrap:normal;word-break:normal}.dashboard-kpi:disabled{cursor:default;opacity:.65}.executive-dashboard .dashboard-secondary-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));margin:14px 0}.dashboard-secondary-kpis .dashboard-kpi{min-height:125px}.dashboard-more-metrics>summary,.dashboard-coverage>summary,.dashboard-additional-insights>summary,.dashboard-prospect-insights>summary{cursor:pointer;font-weight:600;padding:12px 0;min-height:44px}.dashboard-coverage{color:#64788b;font-size:12px}.dashboard-coverage p{line-height:1.6}
.dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.executive-dashboard .dashboard-chart-panel{margin:0;padding:22px;border-radius:14px;box-shadow:0 5px 20px #112d4e05}.dashboard-chart-panel h3{margin:0 0 10px;font-size:19px}.dashboard-chart-panel>p{font-size:12px;line-height:1.5;color:#64788b}.dashboard-pipeline{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center}.dashboard-stage-ring{width:120px;max-width:100%}.dashboard-stage-bars{min-width:0}.dashboard-bar-button{display:block;width:100%;background:transparent;color:#15304b;text-align:left;min-height:44px;padding:8px 0}.dashboard-bar-heading{display:flex;justify-content:space-between;gap:10px;font-size:13px}.dashboard-bar-track{display:block;height:9px;border-radius:6px;background:#edf2f7;margin-top:6px;overflow:hidden}.dashboard-bar-track>span{display:block;height:100%;border-radius:6px}.dashboard-sales-line{display:block;width:100%;height:auto;max-height:210px}.dashboard-month-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dashboard-month-buttons button{min-width:0;display:flex;flex-direction:column;gap:4px;font-size:11px;overflow-wrap:anywhere;padding:9px 6px}.dashboard-monthly-plot>p{font-size:11px;color:#64788b}.dashboard-chart-panel details>summary{cursor:pointer;padding:12px 0;min-height:44px}.dashboard-chart-panel .toolbar{gap:6px;margin:8px 0}.dashboard-chart-panel .metric{color:var(--blue);font-size:36px}
.dashboard-drill-table{max-width:100%;overflow:auto}.dashboard-drill-table table{min-width:650px}.dashboard-drill-table td{white-space:normal;overflow-wrap:anywhere}
.dashboard-record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-recent-leads,.dashboard-tasks-panel{min-width:0;background:white;border:1px solid #e1e8f0;border-radius:14px;padding:20px}.dashboard-recent-leads h2,.dashboard-tasks-panel h2{margin-top:0;font-size:20px}.dashboard-recent-leads>p,#followups>p{font-size:12px;color:#64788b;line-height:1.5}.dashboard-recent-leads .panel,#followups .panel{border:0}.dashboard-record-grid table{font-size:12px}.dashboard-record-grid th,.dashboard-record-grid td{padding:9px}.dashboard-prospect-insights{padding:8px 20px;margin:18px 0}
@media(max-width:1100px){.executive-dashboard .dashboard-primary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-record-grid{grid-template-columns:minmax(0,1fr)}.dashboard-pipeline{grid-template-columns:90px minmax(0,1fr)}.dashboard-stage-ring{width:90px}.dashboard-chart-panel{padding:16px}}
@media(max-width:760px){.dashboard-chart-grid{grid-template-columns:minmax(0,1fr)}.dashboard-intro{align-items:flex-start}.dashboard-intro h2{font-size:23px}.dashboard-intro>button{font-size:12px}.dashboard-month-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-dashboard .dashboard-chart-panel{padding:17px}}
@media(max-width:420px){.dashboard-primary-kpis .dashboard-kpi{padding:14px;min-height:135px}.dashboard-kpi-label{align-items:flex-start;flex-direction:column;gap:7px}.dashboard-kpi-icon{padding:7px}.dashboard-intro{flex-direction:column}.dashboard-recent-leads,.dashboard-tasks-panel{padding:14px}}

.department-workspace{min-width:0;max-width:100%;overflow-wrap:anywhere}.department-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}.department-workspace>section{margin-block:20px}.department-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;overflow:auto}.department-dialog label{display:block;margin-block:12px}.department-dialog input:not([type=checkbox]),.department-dialog select,.department-dialog textarea{width:100%;box-sizing:border-box;min-width:0}.department-dialog textarea{min-height:120px}

.production-release-notice{padding:8px 16px;background:#edf3f8;color:#173955;overflow-wrap:anywhere}.production-release-notice p{margin:4px 0;font-size:12px}
