/* Jarvis accounting workspace; namespaced to leave the existing areas unchanged. */
body[data-view="accounting"] .page-head .eyebrow,
body[data-view="accounting"] .content-footer,
body[data-view="accounting"] .side-footer { display: none; }
.accounting-workspace { --acc-line: #e1e7ef; --acc-muted: #607087; --acc-blue: #245dcc; color: #26374b; font-size: 14px; line-height: 1.5; }
.accounting-workspace *, .accounting-workspace *::before, .accounting-workspace *::after { box-sizing: border-box; }
.accounting-workspace button, .accounting-workspace select, .accounting-workspace input { font: inherit; }
.accounting-workspace button, .accounting-workspace a, .accounting-workspace summary { -webkit-tap-highlight-color: transparent; }
.accounting-workspace button:focus-visible, .accounting-workspace a:focus-visible, .accounting-workspace select:focus-visible, .accounting-workspace input:focus-visible, .accounting-workspace summary:focus-visible { outline: 2px solid #245dcc; outline-offset: 3px; }
.accounting-workspace button:disabled, .accounting-workspace select:disabled { opacity: .6; cursor: not-allowed; }
.accounting-workspace [hidden] { display: none !important; }
.accounting-workspace h2, .accounting-workspace h3, .accounting-workspace h4, .accounting-workspace p { margin: 0; }
.accounting-workspace h3 { font-size: 15px; font-weight: 650; }
.accounting-workspace h4 { font-size: 14px; font-weight: 650; }
.acc-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 30px; border: 1px solid #dbe5f1; border-radius: 10px; background: #f6f9fd; }
.acc-eyebrow { display: block; color: var(--acc-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.acc-hero h2 { margin: 8px 0 7px; font-size: 25px; line-height: 1.25; font-weight: 650; letter-spacing: -.035em; }
.acc-hero-copy > p { max-width: 640px; margin-bottom: 15px; color: var(--acc-muted); font-size: 13px; }
.acc-hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; flex-shrink: 0; }
.acc-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; border: 1px solid #cfd9e6; border-radius: 6px; padding: 8px 14px; color: #33465e; background: #fff; cursor: pointer; text-decoration: none; font-size: 12px !important; font-weight: 600 !important; line-height: 1.35; }
.acc-button:hover { color: #174fba; border-color: #97b5e6; background: #f7faff; }
.acc-primary { background: #245dcc; border-color: #245dcc; color: #fff; }
.acc-primary:hover { background: #1d4fad; border-color: #1d4fad; color: #fff; }
.acc-small { min-height: 33px; padding: 6px 10px; }
.acc-action-hint { max-width: 190px; text-align: center; font-size: 10px; color: var(--acc-muted); }
.acc-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 550; line-height: 1.4; background: #edf1f5; color: #526378; }
.acc-badge > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.acc-badge.acc-amber { background: #fff2df; color: #915406; }
.acc-badge.acc-blue { background: #e8f0ff; color: #245dcc; }
.acc-badge.acc-green { background: #e8f5ed; color: #18613e; }
.acc-badge.acc-red { background: #ffeded; color: #a1303d; }
.acc-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0 18px; }
.acc-selectors { display: flex; gap: 12px; flex-wrap: wrap; min-width: 0; }
.acc-selectors label { display: grid; gap: 5px; color: #607087; font-size: 11px; font-weight: 550; }
.accounting-workspace select { width: 100%; max-width: 340px; min-height: 38px; padding: 7px 32px 7px 11px; border: 1px solid var(--acc-line); border-radius: 6px; color: #33465e; background: #fff; font-size: 12px; }
.acc-selectors label:first-child { min-width: 250px; }
.acc-selectors label:last-child { min-width: 180px; }
.acc-toolbar-meta { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; font-size: 11px; color: var(--acc-muted); }
.acc-toolbar-meta strong { font-weight: 550; color: #33465e; }
.acc-tabs { display: flex; gap: 24px; overflow-x: auto; max-width: 100%; border-bottom: 1px solid var(--acc-line); scrollbar-width: thin; }
.acc-tabs button { flex-shrink: 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; padding: 10px 1px; color: #607087; background: transparent; font-size: 12px; cursor: pointer; }
.acc-tabs button.active { border-bottom-color: #245dcc; color: #245dcc; font-weight: 650; }
.acc-tabs button:hover { color: #245dcc; }
.acc-content { padding-top: 22px; outline: none; }
.acc-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.acc-metric { display: flex; flex-direction: column; gap: 9px; width: 100%; border: 1px solid var(--acc-line); border-radius: 8px; padding: 17px 18px; background: #fff; color: #26374b; text-align: left; cursor: pointer; }
.acc-metric:hover { border-color: #96b3e1; background: #fcfdff; }
.acc-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.acc-metric-label svg { color: #8294ac; flex-shrink: 0; }
.acc-metric > strong { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.acc-metric > span:last-child { display: flex; align-items: center; gap: 5px; justify-content: space-between; color: var(--acc-muted); font-size: 10px; }
.acc-overview-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); align-items: start; gap: 20px; }
.acc-stack { display: grid; gap: 20px; min-width: 0; }
.acc-panel { min-width: 0; border: 1px solid var(--acc-line); border-radius: 8px; background: #fff; overflow: hidden; }
.acc-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 19px 20px; border-bottom: 1px solid #edf1f5; }
.acc-panel-head p { margin-top: 5px; font-size: 11px; color: var(--acc-muted); }
.acc-muted { color: var(--acc-muted); font-size: 11px; }
.acc-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 215px; padding: 32px 24px; text-align: center; }
.acc-empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 15px; border: 1px solid #e3eaf3; border-radius: 12px; color: #7794bd; background: #f6f9fd; }
.acc-empty h3 { margin-bottom: 7px; font-size: 13px; }
.acc-empty p { max-width: 375px; color: var(--acc-muted); font-size: 12px; line-height: 1.65; }
.acc-company-row { display: flex; align-items: center; width: 100%; gap: 13px; padding: 18px 20px; border: 0; border-bottom: 1px solid #edf1f5; background: #fff; color: #26374b; text-align: left; cursor: pointer; }
.acc-company-row:last-child { border-bottom: 0; }
.acc-company-row:hover { background: #f8faff; }
.acc-company-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: #eaf0f9; color: #4c6b97; font-size: 11px; font-weight: 650; }
.acc-company-row > span:nth-child(2) { flex: 1; min-width: 0; }
.acc-company-row strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.acc-company-row small { display: block; margin-top: 4px; font-size: 10px; color: var(--acc-muted); }
.acc-company-close { text-align: right; }
.acc-company-close strong { font-size: 11px; }
.acc-steps { display: flex; list-style: none; gap: 12px; padding: 23px 20px; margin: 0; }
.acc-steps li { display: flex; flex: 1; gap: 9px; align-items: flex-start; min-width: 0; }
.acc-step-number { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #d8e2ef; border-radius: 50%; color: #69809f; font-size: 10px; background: #f8fafd; }
.acc-steps strong { display: block; font-size: 11px; font-weight: 600; }
.acc-steps p { margin-top: 5px; font-size: 10px; color: var(--acc-muted); }
.acc-steps .is-recorded .acc-step-number { background: #e8f0ff; color: #245dcc; border-color: #bfd0ee; }
.acc-panel-note { padding: 14px 20px; border-top: 1px solid #edf1f5; color: var(--acc-muted); font-size: 11px; line-height: 1.65; }
.acc-findings article { padding: 18px 20px; border-bottom: 1px solid #edf1f5; }
.acc-findings article:last-child { border-bottom: 0; }
.acc-findings h4 { margin: 6px 0; font-size: 12px; }
.acc-findings p { color: var(--acc-muted); font-size: 11px; line-height: 1.65; }
.acc-link { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; color: #245dcc; background: transparent; text-decoration: none; font-size: 11px !important; font-weight: 550; cursor: pointer; }
.acc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.acc-findings .acc-link { margin-top: 10px; }
.acc-responsibility { padding: 19px 20px; }
.acc-responsibility h3 { font-size: 13px; }
.acc-responsibility dl { margin: 15px 0 0; }
.acc-responsibility dl > div { padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.acc-responsibility dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-responsibility dt { font-size: 11px; font-weight: 600; }
.acc-responsibility dd { margin: 3px 0 0; color: var(--acc-muted); font-size: 11px; }
.acc-inventory { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; padding: 14px 17px; border: 1px solid var(--acc-line); border-radius: 7px; color: var(--acc-muted); font-size: 11px; }
.acc-inventory strong { color: #33465e; }
.acc-inventory p { width: 100%; font-size: 10px; }
.acc-notice { margin-top: 15px; padding: 12px 15px; background: #edf5ff; border: 1px solid #d6e5fc; border-radius: 6px; font-size: 12px; color: #2f568d; }
.acc-notice-error { background: #fff1f1; color: #9a3140; border-color: #f0cbd2; }
.acc-legacy-note { margin-top: 14px !important; padding: 10px 13px; background: #fff8ec; border-left: 3px solid #cf993f; font-size: 11px; color: #805211; }
.acc-doc-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #edf1f5; }
.acc-search { display: flex; align-items: center; flex: 1; gap: 8px; min-width: 100px; border: 1px solid var(--acc-line); border-radius: 6px; padding: 0 11px; color: #8092a9; }
.acc-search input { min-width: 0; width: 100%; height: 37px; border: 0; outline-offset: 0; background: transparent; color: #26374b; font-size: 12px; }
.acc-table-scroll { overflow-x: auto; }
.acc-table { width: 100%; min-width: 660px; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.acc-table th { padding: 11px 18px; background: #f8fafc; color: var(--acc-muted); font-size: 10px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--acc-line); }
.acc-table td { padding: 15px 18px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.acc-table td:first-child { width: 40%; max-width: 540px; }
.acc-table tbody tr:hover { background: #fbfcfe; }
.acc-table td small { display: block; margin-top: 5px; color: var(--acc-muted); font-size: 10px; }
.acc-document-title { border: 0; padding: 0; background: transparent; color: #2d476b; text-align: left; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; overflow-wrap: anywhere; }
.acc-document-title:hover { color: #245dcc; text-decoration: underline; }
.acc-pagination { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 13px 20px; font-size: 11px; color: var(--acc-muted); }
.acc-pagination > div { display: flex; align-items: center; gap: 12px; }
.acc-jobs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 20px; }
.acc-job { border: 1px solid var(--acc-line); border-radius: 6px; padding: 17px; }
.acc-job-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.acc-job-heading h4 { font-size: 13px; }
.acc-job-heading .acc-badge { flex-shrink: 0; }
.acc-job > p { margin-top: 8px; color: var(--acc-muted); font-size: 12px; }
.acc-job-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf1f5; font-size: 11px; }
.acc-section-intro { display: flex; align-items: start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.acc-section-intro h3 { font-size: 18px; }
.acc-section-intro p { margin-top: 6px; color: var(--acc-muted); font-size: 12px; }
.acc-control-note { margin: 16px 0 20px !important; padding: 13px 16px; border-left: 3px solid #c9d7eb; background: #f7f9fc; font-size: 12px; color: var(--acc-muted); }
.acc-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.acc-check-card { padding: 20px; }
.acc-check-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8094b0; margin-bottom: 18px; }
.acc-check-card h4 { margin-bottom: 8px; }
.acc-check-card > p { color: var(--acc-muted); font-size: 12px; line-height: 1.7; }
.acc-check-card > .acc-muted { display: block; padding-top: 22px; font-size: 10px; }
.acc-check-scope { margin-bottom: 10px !important; font-size: 10px !important; }
.acc-check-card dl { margin: 18px 0 14px; padding-top: 10px; border-top: 1px solid #edf1f5; font-size: 10px; }
.acc-check-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.acc-check-card dt { color: var(--acc-muted); }
.acc-check-card dd { margin: 0; text-align: right; }
.acc-report { display: flex; align-items: center; gap: 18px; padding: 22px 20px; border-bottom: 1px solid #edf1f5; }
.acc-report:last-child { border-bottom: 0; }
.acc-pdf-icon { display: grid; place-items: center; width: 42px; height: 50px; flex-shrink: 0; border: 1px solid #dce5f2; border-radius: 6px; background: #f6f9fe; color: #5275a8; font-size: 10px; font-weight: 700; }
.acc-report > div:nth-child(2) { flex: 1; min-width: 0; }
.acc-report h4 { overflow-wrap: anywhere; }
.acc-report p { margin: 5px 0; color: var(--acc-muted); font-size: 11px; }
.acc-report-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.acc-guide { margin-top: 22px; border: 1px solid var(--acc-line); border-radius: 7px; padding: 14px 18px; color: var(--acc-muted); font-size: 12px; }
.acc-guide summary { cursor: pointer; color: #415978; font-weight: 550; }
.acc-guide ol { margin: 12px 0 10px; padding-left: 20px; }
.acc-guide li { padding: 4px 0; }
.acc-guide p { margin-top: 8px; }
.acc-session-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 10px; font-size: 10px; color: #728196; }
.acc-session-footer > span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.acc-print-context { display: none; }
.acc-dialog { max-width: min(650px,calc(100vw - 32px)); width: 650px; max-height: calc(100vh - 40px); border: 1px solid #dbe3ed; border-radius: 10px; padding: 28px; color: #26374b; box-shadow: 0 15px 60px #162b4533; }
.acc-dialog::backdrop { background: #172b4855; }
.acc-dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.acc-dialog-close { width: 32px; height: 32px; border: 1px solid var(--acc-line); border-radius: 6px; background: #fff; color: #52647b; cursor: pointer; font-size: 22px !important; }
.acc-dialog h2 { font-size: 21px; line-height: 1.4; margin-bottom: 13px; overflow-wrap: anywhere; }
.acc-dialog dl { margin: 22px 0; }
.acc-dialog dl > div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.acc-dialog dt { color: var(--acc-muted); }
.acc-dialog dd { margin: 0; overflow-wrap: anywhere; }
.acc-detail-note { margin-top: 10px !important; color: #52647b; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-dialog-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media(max-width:1200px) {
  .acc-overview-grid { grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); }
  .acc-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .acc-company-close { display: none; }
  .acc-steps { flex-direction: column; gap: 18px; }
}
@media(max-width:900px) {
  .acc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .acc-overview-grid { grid-template-columns: minmax(0,1fr); }
  .acc-overview-grid aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .acc-company-close { display: block; }
  .acc-steps { flex-direction: row; }
  .acc-jobs { grid-template-columns: minmax(0,1fr); }
  .acc-doc-toolbar { flex-wrap: wrap; }
  .acc-search { flex-basis: 100%; }
}
@media(max-width:600px) {
  .acc-hero { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px 20px; }
  .acc-hero h2 { font-size: 23px; }
  .acc-hero-actions { align-items: flex-start; }
  .acc-action-hint { max-width: none; text-align: left; }
  .acc-selectors { width: 100%; }
  .acc-selectors label:first-child, .acc-selectors label:last-child { min-width: 0; width: 100%; }
  .acc-selectors select { max-width: 100%; }
  .acc-toolbar { padding-top: 18px; gap: 10px; }
  .acc-toolbar-meta { padding: 0; }
  .acc-tabs { gap: 22px; }
  .acc-metrics { gap: 10px; }
  .acc-metric { padding: 14px; }
  .acc-metric-label { font-size: 10px; }
  .acc-metric-label svg { display: none; }
  .acc-metric > span:last-child { font-size: 9px; }
  .acc-overview-grid aside, .acc-check-grid { grid-template-columns: minmax(0,1fr); }
  .acc-company-close { display: none; }
  .acc-company-row { padding: 16px; }
  .acc-steps { flex-direction: column; gap: 20px; }
  .acc-doc-toolbar { padding: 15px; gap: 10px; }
  .acc-doc-toolbar > label:not(.acc-search) { flex: 1; min-width: 0; }
  .acc-doc-toolbar select { max-width: 100%; }
  .acc-job-heading { flex-direction: column; }
  .acc-report { flex-wrap: wrap; gap: 12px; }
  .acc-report-actions { width: 100%; justify-content: flex-start; }
  .acc-dialog { padding: 20px; }
  .acc-dialog dl > div { grid-template-columns: 105px minmax(0,1fr); }
}
@media print {
  body[data-view="accounting"] { background: white; }
  body[data-view="accounting"] .sidebar, body[data-view="accounting"] .app-topbar, body[data-view="accounting"] .head-actions, body[data-view="accounting"] .sidebar-backdrop,
  .accounting-workspace .acc-hero-actions, .accounting-workspace .acc-tabs, .accounting-workspace .acc-doc-toolbar, .accounting-workspace .acc-guide, .accounting-workspace .acc-session-footer,
  .accounting-workspace .acc-notice, .accounting-workspace .acc-pagination button, .accounting-workspace dialog { display: none !important; }
  body[data-view="accounting"] .app-shell { display: block; }
  body[data-view="accounting"] .main-content { margin: 0; padding: 0; width: 100%; }
  .accounting-workspace { font-size: 11px; }
  .acc-print-context { display: block; margin-top: 15px !important; border-top: 1px solid #ccc; padding-top: 8px; font-size: 10px; }
  .acc-hero { background: white; padding: 14px; }
  .acc-overview-grid { display: block; }
  .acc-stack { gap: 12px; margin-top: 12px; }
  .acc-panel, .acc-check-card, .acc-report, .acc-job { break-inside: avoid; }
  .acc-table-scroll { overflow: visible; }
  .acc-table { min-width: 0; font-size: 10px; }
  .acc-table td, .acc-table th { padding: 8px; overflow-wrap: anywhere; }
  .acc-table thead { display: table-header-group; }
  .acc-table tr { break-inside: avoid; }
  .acc-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .acc-selectors select { border: 0; appearance: none; padding: 0; }
  .acc-button, .acc-badge { color: #222; background: white; }
  .acc-metric { break-inside: avoid; }
}
