/* Hızlı Müşavir — unified workspace design. Local assets only. */
:root {
  --ink:#203832; --navy:#203832; --navy-2:#142923; --muted:#626d68;
  --green:#2e6653; --green-dark:#245240; --blue:#2e6653; --accent:#946535;
  --canvas:#f3f6f5; --surface:#fff; --line:#dce5e1; --danger:#a13d37;
  font:15px/1.55 "Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--canvas);
  font-synthesis:none; color-scheme:light;
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:var(--canvas); }
[hidden] { display:none!important; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { touch-action:manipulation; }
a { color:var(--green); text-underline-offset:4px; }
button { cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="0"]:focus-visible { outline:3px solid #b58950; outline-offset:3px; }
svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
p { color:var(--muted); line-height:1.8; margin:8px 0 18px; }
h1,h2,h3 { margin:0; line-height:1.25; font-weight:600; letter-spacing:-.45px; }
h1 { font-size:32px; } h2 { font-size:23px; } h3 { font-size:18px; }
small { font-size:13px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:20px; top:-80px; padding:12px 20px; background:#fff; z-index:100; }
.skip-link:focus { top:12px; }
.workspace-sidebar { position:fixed; inset:0 auto 0 0; width:256px; padding:30px 18px 22px; display:flex; flex-direction:column; gap:28px; overflow-y:auto; background:#183e35; color:#e6ebe6; border-right:1px solid #182c25; z-index:20; }
.brand { display:flex; align-items:center; gap:11px; color:inherit; text-decoration:none; padding:0 7px; }
.brand-symbol { position:relative; display:inline-grid; place-items:center; flex:none; width:37px; height:43px; border:1px solid #a2b3a5; font:31px Georgia,serif; line-height:1; color:#f5f1e6; }
.brand-symbol>span { position:absolute; right:-5px; bottom:-6px; background:#203832; font:italic 19px Georgia,serif; padding:0 2px; }
.brand-logo { display:block; flex:none; width:43px; height:43px; filter:drop-shadow(0 8px 16px #061a1530); }
.brand-wordmark { font-size:19px; letter-spacing:-.5px; font-weight:600; }
.brand-wordmark small { display:block; margin-top:5px; font-size:8px; letter-spacing:1.15px; color:#a8b8af; white-space:nowrap; }
.workspace-sidebar nav { display:flex; flex:1; flex-direction:column; justify-content:flex-start; gap:4px; min-height:max-content; }
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.workspace-menu-toggle,.mobile-only { display:none; }
.selection-summary { display:flex; flex-direction:column; gap:5px; min-width:0; }
.select-visible { display:flex; align-items:center; gap:8px; cursor:pointer; min-height:34px; font-size:12px; }
.selection-summary>span { font-size:11px; color:#657660; }
.record-select { display:inline-flex; align-items:center; gap:10px; cursor:pointer; padding:8px 0; }
.nav-label { font-size:9px; letter-spacing:1.6px; color:#9daf9f; margin:24px 12px 9px; }
.nav { display:flex; align-items:center; gap:11px; min-height:47px; width:100%; padding:12px; border:0; border-left:2px solid transparent; border-radius:3px; font-size:13px; text-decoration:none; text-align:left; line-height:1.4; color:#cbd7cf; background:transparent; }
.nav svg { width:18px; height:18px; flex:none; }
.nav:hover { background:#2c453b; color:#fff; }
.nav.active { background:#355043; color:#fff; border-left-color:#d3c5a6; }
.nav-account { border-top:1px solid #40574b; padding-top:16px; margin-top:24px; }
.nav-account .nav { min-height:42px; }
.logout-link { justify-content:space-between; }
.local { display:flex; gap:10px; align-items:flex-start; border-top:1px solid #40574b; padding:18px 10px 0; font-size:11px; color:#ced7cc; }
.local i { width:6px; height:6px; border-radius:50%; background:#bdd1aa; flex:none; margin-top:6px; }
.local small { display:block; font-size:10px; color:#9eafa2; margin-top:3px; }
main { margin-left:256px; width:calc(100% - 256px); padding:30px clamp(24px,3vw,56px) 20px; min-width:0; }
.workspace-topbar { position:relative; display:flex; align-items:center; gap:24px; min-height:52px; margin:-13px 0 24px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.topbar-links { display:flex; align-items:center; justify-content:flex-end; gap:26px; margin-left:auto; }
.topbar-links a,.topbar-links button { padding:8px 0; border:0; background:transparent; color:var(--ink); font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }
.topbar-links a:hover,.topbar-links button:hover { color:var(--green); text-decoration:underline; }
.profile-menu { position:relative; flex:none; }
.profile-menu>summary { display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 0 4px 18px; border-left:1px solid var(--line); color:var(--ink); font-size:12px; font-weight:600; cursor:pointer; list-style:none; }
.profile-menu>summary::-webkit-details-marker { display:none; }
.profile-menu>summary svg { width:15px; height:15px; transition:transform .15s ease; }
.profile-menu[open]>summary svg { transform:rotate(180deg); }
.profile-avatar { display:grid; place-items:center; width:32px; height:32px; border:1px solid #b5c5b8; border-radius:50%; background:#e7eee6; color:var(--green-dark); font:600 11px Georgia,serif; }
.profile-menu-content { position:absolute; top:calc(100% + 7px); right:0; z-index:40; width:258px; padding:10px; border:1px solid #d5ded3; border-radius:6px; background:#fff; box-shadow:0 14px 32px #152a221c; }
.profile-menu-heading { display:block; padding:8px 10px; color:#718274; font-size:9px; letter-spacing:1.3px; }
.profile-menu-content a,.profile-menu-content button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:42px; padding:10px; border:0; border-radius:3px; background:#fff; color:var(--ink); font-size:12px; text-decoration:none; text-align:left; }
.profile-menu-content a:hover,.profile-menu-content button:hover { background:#f1f5ef; }
.profile-menu-content #logout { margin-top:5px; border-top:1px solid var(--line); border-radius:0; color:#8b3934; }
.workspace-header { display:flex; align-items:center; justify-content:space-between; gap:30px; min-height:100px; padding-bottom:25px; border-bottom:1px solid var(--line); margin-bottom:28px; }
.workspace-header h1 { margin:8px 0 9px; outline:none; }
.workspace-header p { margin:0; font-size:13px; max-width:760px; }
.workspace-header-end { display:flex; align-items:flex-end; flex-direction:column; gap:12px; flex:none; }
.eyebrow,.section-kicker { font-size:10px; letter-spacing:1.5px; font-weight:600; color:#657a6c; }
.environment-label { display:inline-flex; padding:5px 9px; border:1px solid #ccd5cb; color:#68796b; font-size:9px; letter-spacing:1.3px; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.primary,.secondary,a.button,.text-button,.action-menu>summary { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:11px 18px; border:1px solid transparent; border-radius:5px; font-size:13px; font-weight:600; line-height:1.45; white-space:normal; text-decoration:none; text-align:center; box-shadow:none; flex-shrink:0; }
.primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.primary:hover { background:#132b22; }
.secondary,a.secondary { border-color:#cbd4cb; color:var(--ink); background:#fff; }
.secondary:hover { border-color:#6e8b77; background:#f4f6f1; }
.text-button { background:transparent; color:var(--green); padding-inline:4px; }
.text-button:hover { text-decoration:underline; }
.danger-button { border:1px solid #ddbbb5; background:#fff7f6; color:var(--danger); padding:11px 15px; min-height:44px; border-radius:5px; }
.workspace-intro { margin:42px 0 28px; max-width:750px; }
.workspace-intro h2 { font:600 34px/1.22 "Segoe UI",Arial,sans-serif; margin:12px 0 16px; letter-spacing:-.8px; }
.workspace-intro p { font-size:15px; max-width:690px; }
.workspace-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid #cbd5ca; background:#fff; }
.workspace-choice { display:flex; flex-direction:column; position:relative; padding:30px; min-width:0; min-height:340px; text-align:left; border:0; border-right:1px solid #dce2d8; border-radius:0; color:var(--ink); background:#fff; }
.workspace-choice:last-child { border-right:0; }
.workspace-choice:hover { background:#f1f4ed; }
.workspace-choice:focus-visible { z-index:1; outline-offset:-4px; }
.choice-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:35px; width:100%; }
.choice-top svg { width:26px; height:26px; color:#6b826d; }
.choice-number { font-size:9px; letter-spacing:1.3px; color:#718174; }
.workspace-choice strong { font-size:28px; font-weight:550; line-height:1.15; letter-spacing:-.7px; }
.workspace-choice small { display:block; font-size:13px; color:#657165; line-height:1.85; margin:20px 0 30px; }
.choice-action { display:flex; justify-content:space-between; width:100%; margin-top:auto; border-top:1px solid #dbe2d7; padding-top:18px; font-size:13px; font-weight:600; }
.choice-action>span { font-size:21px; font-weight:400; }
.onboarding-strip { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:30px 0; margin:18px 0 20px; border-bottom:1px solid var(--line); }
.onboarding-strip h3 { margin:9px 0; } .onboarding-strip p { max-width:620px; font-size:13px; margin:0; }
.onboarding-strip .actions { flex:none; }
.panel { background:#fff; border:1px solid var(--line); border-radius:14px; padding:28px; min-width:0; margin:0 0 24px; }
.section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:22px; }
.section-head>div:first-child { min-width:0; }
.section-head h2 { margin:5px 0 8px; }
.section-head p { margin:0; font-size:13px; max-width:760px; }
.section-head .actions { justify-content:flex-end; }
.section-kicker+h2 { margin-top:9px; }
.view-heading { margin:30px 0 24px; align-items:center; }
.view-heading h2 { font-size:20px; }
label { display:block; font-size:12px; font-weight:600; color:#506456; min-width:0; }
input:not([type=checkbox]),select,textarea { display:block; width:100%; min-height:44px; margin-top:7px; border:1px solid #bbc9bc; border-radius:4px; background:#fff; color:#263b2e; padding:10px 12px; font-size:14px; font-weight:400; }
input::placeholder,textarea::placeholder { color:#879085; opacity:1; }
textarea { resize:vertical; }
input[type=checkbox] { accent-color:var(--green); width:17px; height:17px; flex:none; margin:0 5px 0 0; vertical-align:middle; }
.data-toolbar { display:grid; grid-template-columns:minmax(260px,1fr) minmax(170px,.48fr) minmax(150px,.4fr); gap:20px; align-items:end; margin:24px 0 18px; padding:20px; background:#f6f7f3; border:1px solid #e4e8de; }
.data-toolbar .data-summary { grid-column:1/-1; font-size:12px; color:var(--muted); margin-top:-4px; }
.filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:18px 0; }
.primary-filters { grid-template-columns:minmax(260px,1.7fr) repeat(4,minmax(100px,1fr)); }
.filters small { display:block; font-size:11px; color:#70806e; font-weight:400; margin-top:6px; }
.advanced-filters { border-bottom:1px solid var(--line); margin-bottom:0; }
.advanced-filters summary,.context-help>summary { color:var(--green); cursor:pointer; padding:13px 0; font-size:13px; font-weight:600; }
.advanced-filters>.filters { background:#f8f9f5; padding:20px; }
.advanced-filter-action { display:flex; align-items:flex-end; }
.filter-utility { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; color:var(--muted); padding:8px 0 16px; }
.filter-note { font-size:12px; }
.status-tabs { display:flex; gap:0; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:6px 0 8px; }
.status-tabs .secondary { min-height:46px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font-weight:500; color:#637160; padding:12px 16px; }
.status-tabs .secondary[aria-pressed="true"] { border-bottom-color:var(--green); color:var(--green); background:#f1f6ef; font-weight:650; }
.selection-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:64px; margin:0 0 16px; padding:12px 16px; background:#f1f5ee; border:1px solid #dfe6d9; }
.selection-toolbar>span { font-size:12px; color:#546b51; }
.selection-toolbar .primary,.selection-toolbar .secondary { min-height:40px; padding:9px 14px; }
.action-menu { position:relative; flex:none; }
.action-menu>summary { cursor:pointer; list-style:none; border-color:#cbd4cb; background:#fff; color:var(--ink); }
.action-menu>summary::-webkit-details-marker { display:none; }
.action-menu>summary:after { content:"⌄"; font-size:16px; margin-left:9px; }
.action-menu[open]>summary { border-color:var(--green); }
.action-menu-content { position:absolute; z-index:12; right:0; top:calc(100% + 7px); min-width:250px; max-width:calc(100vw - 60px); padding:8px; border:1px solid #cbd4cb; border-radius:5px; background:#fff; box-shadow:0 12px 26px #2038321a; }
.action-menu-content button,.action-menu-content a { display:block; width:100%; min-height:44px; margin:0; padding:11px 13px; border:0; border-radius:3px; background:transparent; color:var(--ink); text-align:left; font-size:13px; font-weight:500; text-decoration:none; white-space:normal; box-shadow:none; }
.action-menu-content button:hover,.action-menu-content a:hover { background:#f1f5ee; }
.action-menu-content .destructive-action { color:var(--danger); border-top:1px solid var(--line); margin-top:5px; }
.table-wrap,.enterprise-grid-scroll { overflow:auto; max-width:100%; max-height:64vh; border:1px solid #d8e0d4; border-radius:4px; overscroll-behavior:contain; }
table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; text-align:left; }
th { position:sticky; top:0; z-index:2; padding:15px 16px; font-size:11px; letter-spacing:.35px; font-weight:650; color:#5a6b57; background:#edf1e8; border-bottom:1px solid #ccd7c5; text-align:left; white-space:nowrap; }
td { padding:17px 16px; border-bottom:1px solid #e5e9e0; vertical-align:middle; color:#42513f; line-height:1.55; }
td strong { display:block; color:var(--ink); font-weight:600; font-size:13px; }
td small { display:block; font-size:11px; color:#778271; margin-top:5px; }
tbody>tr:hover>td { background:#f7f9f3; }
tbody:last-child>tr:last-child>td { border-bottom:0; }
#records tr>td:nth-child(2) { min-width:230px; max-width:340px; }
#records tr>td:nth-child(3) { min-width:130px; }
#records tr>td:nth-child(4) { min-width:155px; }
#records tr>td:nth-child(5) { min-width:130px; }
.table-wrap table { min-width:1040px; }
.enterprise-grid table { min-width:940px; }
.enterprise-grid th:first-child,.enterprise-grid td:first-child { min-width:220px; }
.mono-id { font:12px/1.5 Consolas,"Cascadia Mono",monospace; font-variant-numeric:tabular-nums; white-space:nowrap; }
.badge { display:inline-flex; align-items:center; border-radius:3px; font-size:11px; line-height:1.5; font-weight:600; padding:4px 8px; color:#657260; background:#eff2eb; white-space:nowrap; }
.badge.good { background:#eaf2e5; color:#36623a; }
.badge.warn { background:#fbf0da; color:#8b671e; }
.badge.bad { background:#f8e9e5; color:#a04f43; }
.empty { text-align:center; padding:42px 24px!important; color:#75806f; font-size:14px; line-height:1.8; white-space:normal; }
.empty strong { font-size:17px; color:#4f654b; margin-bottom:8px; }
.grid-pagination,.table-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:17px 0 2px; font-size:12px; color:#6e7b67; }
.grid-pagination .pagination-controls,.table-footer .pagination-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.grid-pagination label { display:flex; gap:10px; align-items:center; }
.grid-pagination select { width:75px; margin:0; min-height:38px; padding:7px; font-size:12px; }
.grid-pagination button,.table-footer button { min-height:38px; padding:8px 13px; font-size:12px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid var(--line); background:#fff; margin:0 0 22px; border-radius:5px; }
.stat { padding:20px 24px; border-right:1px solid var(--line); min-width:0; }
.stat:last-child { border-right:0; }
.stat label { font-size:11px; color:#6b7c64; }
.stat strong { display:block; font-size:30px; font-weight:550; font-variant-numeric:tabular-nums; line-height:1.25; margin:8px 0; }
.stat small { display:block; color:#7b8573; font-size:11px; }
.security-strip,.info { display:flex; align-items:flex-start; gap:16px; padding:16px 18px; border:1px solid #dde5d8; border-left:3px solid #9cad90; background:#f6f8f2; font-size:12px; line-height:1.8; margin:20px 0; color:#61745a; }
.security-strip strong { white-space:nowrap; }
.context-help { border-top:1px solid var(--line); margin-top:24px; }
.context-help p { max-width:900px; font-size:13px; }
.compact-help { border:0; margin:0; }
.compact-help summary { font-size:12px; padding:8px 0; }
.person { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; border-bottom:1px solid var(--line); font-size:14px; }
.person small { display:block; color:var(--muted); margin-top:5px; }
.taxpayer-table { min-width:970px; }
.taxpayer-table .taxpayer-title { min-width:250px; max-width:330px; }
.taxpayer-table .contact-cell { min-width:230px; overflow-wrap:anywhere; }
.taxpayer-table .taxpayer-actions-cell { width:230px; min-width:230px; }
.taxpayer-table .row-actions { display:flex; gap:8px; align-items:center; }
.row-actions button { padding:9px 12px; min-height:40px; }
.taxpayer-obligations>td { padding:0; }
.obligation-body { padding:22px; background:#f6f8f2; }
.obligation-head { display:flex; justify-content:space-between; gap:20px; margin-bottom:18px; }
.obligation-head strong { font-size:14px; }
.obligation-head small { display:block; margin-top:5px; }
.obligation-legend { display:flex; flex-wrap:wrap; gap:13px; font-size:11px; }
.obligation-strip { display:flex; flex-wrap:wrap; gap:9px; max-height:240px; overflow:auto; padding:4px; }
.obligation-chip { border:1px solid #ccd7c5; border-radius:4px; padding:9px 13px; min-height:40px; background:#fff; color:#6b7764; font-size:12px; }
.obligation-chip span { margin-right:7px; }
.obligation-chip.required { background:#e7f2e1; color:#32682f; border-color:#99b88e; }
.obligation-chip.not-required { background:#f6e9e5; color:#a24e42; border-color:#d1aba0; }
.obligation-search { max-width:320px; margin-bottom:16px; }
.grid-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; }
.grid-actions .primary,.grid-actions .secondary { white-space:nowrap; min-height:40px; padding:9px 12px; }
.icon-button,.icon { display:inline-grid; place-items:center; min-width:40px; height:40px; border:1px solid #d2dbcc; border-radius:4px; background:#fff; color:#5c7555; flex:none; }
.icon { border:0; font-size:24px; }
.icon-button svg { width:18px; height:18px; }
.credential-visible td { background:#fff6df!important; }
.credential-user,.credential-pass { font-family:Consolas,monospace; overflow-wrap:anywhere; max-width:200px; }
.e-ledger-overview { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 18px; padding-bottom:16px; border-bottom:1px solid var(--line); font-size:13px; }
.e-ledger-overview strong,.e-ledger-overview small { display:block; }
.e-ledger-overview small { margin-top:5px; color:#7c8773; font-size:11px; }
.e-ledger-panel .enterprise-grid td:last-child { white-space:normal; }
.document-toolbar { margin:24px 0; display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:18px; border:1px solid var(--line); background:#f7f8f3; }
.document-toolbar label { flex:1 1 240px; min-width:0; max-width:440px; }
.doc-selection-bar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; width:100%; border-top:1px solid var(--line); padding-top:14px; margin-top:6px; }
.doc-selection-bar .actions { margin-left:auto; }
.doc-list { display:grid; gap:0; border:1px solid var(--line); border-radius:4px; }
.doc-row { display:flex; align-items:center; gap:16px; padding:20px; border-bottom:1px solid var(--line); flex-wrap:wrap; background:#fff; }
.doc-row:last-child { border-bottom:0; }
.doc-meta { flex:1; min-width:250px; overflow-wrap:anywhere; }
.doc-meta strong { font-size:14px; }
.doc-row small { display:block; margin-top:5px; font-size:12px; color:#74816c; }
.doc-row .document-path { color:#50694c; line-height:1.7; margin-top:8px; }
.document-path code { font-family:Consolas,monospace; font-size:12px; overflow-wrap:anywhere; }
.declaration-document { display:flex; align-items:center; gap:12px; margin:6px 0; }
.declaration-document button { min-height:32px; padding:3px 0; background:transparent; border:0; color:var(--green); font-size:12px; text-align:left; text-decoration:underline; text-underline-offset:4px; font-weight:500; }
.declaration-document a { font-size:11px; padding:4px 8px; min-height:28px; border-color:#e0e5da; }
.document-actions { min-width:180px; }
.document-actions .invalid { font-size:11px; max-width:180px; }
dialog { width:600px; max-width:calc(100vw - 32px); max-height:90dvh; overflow:auto; border:1px solid #c6d1c0; border-radius:8px; padding:30px; color:var(--ink); background:#fff; box-shadow:0 30px 100px #10271c3d; }
dialog::backdrop { background:#162b2299; }
dialog .section-head { margin-bottom:20px; }
dialog h2 { font-size:23px; }
dialog label { font-size:13px; margin-bottom:18px; }
dialog p { font-size:13px; }
dialog form>.actions { border-top:1px solid var(--line); margin-top:24px; padding-top:20px; justify-content:flex-end; }
.wide-dialog { width:1000px; }
.contact-form { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.contact-form label { margin:0; }
.password-field { display:flex; align-items:center; gap:9px; }
.password-field input { flex:1; min-width:0; }
.password-field button { min-height:44px; padding:10px 13px; margin-top:7px; border:1px solid #c7d3c1; background:#f6f8f2; border-radius:4px; }
.import-preview { max-height:45vh; overflow:auto; margin:20px 0; }
.document-preview { width:1280px; max-width:96vw; padding:24px; }
.document-preview iframe { width:100%; height:70vh; border:1px solid var(--line); background:#f3f5ef; }
.draft-card { padding:24px; margin-top:20px; border:1px solid var(--line); border-radius:5px; }
.draft-card h3 { font-size:18px; }
.draft-card .actions { margin-top:20px; }
.draft-card textarea { min-height:150px; }
.review-warning { background:#fcf4e4; border-left:3px solid #bb9757; padding:17px 20px; color:#816227; font-size:13px; line-height:1.8; }
.bulk-message-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; background:#edf4e8; padding:20px; margin:20px 0; }
.bulk-message-toolbar>div { margin-right:auto; }
.bulk-message-toolbar small { display:block; margin-top:5px; color:var(--muted); }
.invalid,#contact-error,#credential-error,#roster-error,#add-error,#import-error { color:var(--danger); }
#notice { border:1px solid #d3bc88; border-left:4px solid #a48243; background:#fff8e9; color:#705828; padding:15px 20px; margin:16px 0 24px; font-size:13px; overflow-wrap:anywhere; }
.operation-details,.history-panel { background:#fff; border:1px solid var(--line); border-radius:5px; margin:0 0 24px; }
.operation-details>summary,.history-panel>summary { padding:16px 20px; font-size:13px; color:#52694a; cursor:pointer; font-weight:600; }
.operation-details>summary>span,.history-panel>summary>span { font-size:11px; color:#8a9482; font-weight:400; margin-left:15px; }
.operation-content,#declaration-jobs-slot { padding:0 20px 20px; }
.connection { display:flex; gap:12px; padding:14px 0; font-size:12px; }
.connection small { display:block; margin-top:5px; font-size:11px; color:#7b8973; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#839d6e; flex:none; margin-top:6px; }
.process-console { border:1px solid #d5e0cc; background:#f5f8f0; border-radius:4px; margin:10px 0 16px; }
.process-console-head { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 16px; border-bottom:1px solid #dbe3d4; font-size:12px; }
.process-console-head>div { display:flex; gap:8px; align-items:center; }
.process-console-head>span { color:#78896d; }
.process-console-light { width:6px; height:6px; border-radius:50%; background:#899a7c; }
.process-console.is-active .process-console-light { background:#477d36; }
.process-console ol { list-style:none; padding:12px 16px; margin:0; max-height:210px; overflow:auto; font:12px/1.7 Consolas,monospace; }
.process-console li { display:grid; grid-template-columns:73px minmax(0,1fr); gap:10px; padding:3px 0; }
.process-console time { color:#8c987f; }
.process-console li span { overflow-wrap:anywhere; }
.process-console .is-error { color:#a14c40; }
.process-console .is-done { color:#41753b; }
.portal-preview-toolbar { display:flex; align-items:center; gap:20px; flex-wrap:wrap; font-size:11px; color:#7b8a71; }
.portal-preview { border:1px solid var(--line); padding:20px; margin-top:18px; border-radius:5px; }
.portal-preview-head { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.portal-preview-head h2 { font-size:19px; margin-top:8px; }
.portal-preview-screen { display:grid; place-items:center; min-height:180px; background:#eef2e8; border:1px solid var(--line); }
.portal-preview-screen img { display:block; width:100%; max-height:65vh; object-fit:contain; pointer-events:none; }
.portal-preview-screen>div { padding:30px; text-align:center; color:#7b8b70; font-size:13px; }
.portal-preview-foot { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:11px; padding-top:12px; }
.portal-preview-help { font-size:11px; margin-bottom:0; }
#gib-challenge-dialog.has-live-preview { width:1100px; max-width:94vw; }
#gib-challenge-dialog .portal-preview-screen img { max-height:42vh; }
#gib-manual-section button { margin:8px 8px 0 0; }
.jobs-toolbar { display:flex; gap:15px; align-items:center; font-size:12px; padding:10px 0; }
.job { margin:12px 0; padding:17px; border:1px solid var(--line); border-radius:4px; font-size:12px; }
.job .secondary { min-height:36px; padding:6px 12px; margin-left:12px; }
.job progress { display:block; width:100%; height:6px; accent-color:var(--green); margin-top:13px; }
.job p { color:var(--danger); overflow-wrap:anywhere; }
.guide-layout { display:grid; grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); gap:60px; padding-top:20px; }
.guide-intro h2 { font:600 32px/1.25 "Segoe UI",Arial,sans-serif; margin:14px 0 20px; }
.guide-intro p { font-size:14px; }
.guide-answers { border-top:1px solid #bdcbbc; }
.guide-answer { border-bottom:1px solid #d8e1d2; }
.guide-answer summary { cursor:pointer; padding:22px 0; font-size:15px; font-weight:600; }
.guide-answer p { font-size:14px; margin:0 0 22px; }
footer { display:flex; justify-content:space-between; gap:20px; padding:24px 0 8px; margin-top:28px; border-top:1px solid var(--line); font-size:11px; color:#8b9583; }
@media(min-width:1800px) { .workspace-choice { min-height:370px; padding:38px; } .workspace-choice strong { font-size:34px; } .panel { padding:34px; } }
@media(max-width:1320px) { .workspace-sidebar { width:230px; padding-inline:13px; } main { margin-left:230px; width:calc(100% - 230px); padding-inline:24px; } .brand-wordmark { font-size:18px; } .workspace-choice { padding:24px; } .workspace-choice strong { font-size:25px; } .choice-number { font-size:8px; } .section-head { flex-wrap:wrap; } .primary-filters { grid-template-columns:repeat(4,minmax(0,1fr)); } .primary-filters .search-filter { grid-column:span 2; } .onboarding-strip { flex-wrap:wrap; } .stats { grid-template-columns:repeat(2,1fr); } .stat:nth-child(2) { border-right:0; } .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); } }
@media(max-width:1050px) { .workspace-choices { grid-template-columns:1fr; } .workspace-choice { display:grid; grid-template-columns:210px 1fr; gap:12px 30px; min-height:190px; border-right:0; border-bottom:1px solid var(--line); } .workspace-choice:last-child { border-bottom:0; } .choice-top { grid-column:1/-1; margin:0; } .workspace-choice strong { grid-column:1; grid-row:2/4; font-size:26px; } .workspace-choice small { margin:0; grid-column:2; } .choice-action { grid-column:2; padding-top:12px; } .data-toolbar { grid-template-columns:1fr 1fr; } .data-toolbar .data-search { grid-column:1/-1; } .selection-toolbar { flex-wrap:wrap; } .guide-layout { grid-template-columns:1fr; gap:25px; } .workspace-header-end { display:none; } .filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .primary-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .workspace-sidebar { position:static; width:100%; padding:20px 16px 12px; gap:16px; } .brand { padding:0; } .workspace-sidebar nav { flex-direction:row; overflow-x:auto; padding-bottom:8px; align-items:center; scrollbar-width:thin; } .nav { min-width:max-content; width:auto; min-height:44px; padding:10px 12px; font-size:12px; border-left:0; border-bottom:2px solid transparent; } .nav.active { border-bottom-color:#d3c5a6; } .nav-label,.local { display:none; } .nav-account { display:contents; } .nav-account .nav { min-height:44px; } main { margin:0; width:100%; padding:24px 16px 16px; } .workspace-header { min-height:auto; padding-bottom:20px; margin-bottom:24px; } h1 { font-size:27px; } .workspace-header p { font-size:12px; } .workspace-intro { margin-top:28px; } .workspace-intro h2 { font-size:31px; } .workspace-intro p { font-size:14px; } .workspace-choice { padding:22px; grid-template-columns:150px 1fr; gap:12px 20px; } .workspace-choice strong { font-size:24px; } .workspace-choice small { font-size:12px; } .panel { padding:20px 16px; } .section-head { flex-direction:column; gap:18px; } .section-head .actions { justify-content:flex-start; } h2 { font-size:21px; } .data-toolbar { padding:16px; gap:15px; } .view-heading { margin-top:0; } .security-strip { flex-direction:column; gap:6px; } .operation-details>summary>span,.history-panel>summary>span { display:block; margin:5px 0 0 15px; } .contact-form { grid-template-columns:1fr; } .filter-utility { align-items:flex-start; } .selection-toolbar .actions { width:100%; } .grid-pagination { align-items:flex-start; } dialog { padding:23px 20px; } .document-preview { padding:18px; } .document-preview iframe { height:62vh; } .stats .stat { padding:18px; } .status-tabs .secondary { font-size:12px; padding:10px 12px; } .doc-meta { min-width:190px; } .e-ledger-overview { align-items:flex-start; } }
@media(max-width:470px) { .workspace-choice { display:flex; min-height:285px; } .choice-top { margin-bottom:12px; } .workspace-choice strong br { display:none; } .workspace-choice strong { font-size:25px; } .workspace-choice small { margin:5px 0 10px; font-size:13px; } .choice-action { padding-top:16px; } .data-toolbar { grid-template-columns:1fr; } .data-toolbar .data-search { grid-column:auto; } .filters,.primary-filters { grid-template-columns:1fr; } .primary-filters .search-filter { grid-column:auto; } .selection-toolbar .actions>* { flex:1; } .action-menu-content { left:0; right:auto; min-width:240px; } .onboarding-strip .actions { width:100%; } .operation-content { padding:0 13px 14px; } footer { flex-direction:column; gap:5px; } .process-console-head { align-items:flex-start; } }
@media(prefers-reduced-motion:no-preference) { .nav,.primary,.secondary,.workspace-choice { transition:background-color .15s ease,border-color .15s ease; } }
@media print { .workspace-sidebar,.workspace-header-end,.actions,.operation-details,.history-panel,.selection-toolbar,.action-menu,footer { display:none!important; } main { width:100%; margin:0; padding:0; } body { background:#fff; } .table-wrap,.enterprise-grid-scroll { max-height:none; overflow:visible; } }


/* Mobile workspace: navigation drawer and one-record cards share desktop data. */
@media (max-width:760px) {
 html { scroll-padding-top:90px; }
 .workspace-sidebar { position:sticky; top:0; z-index:30; display:block; padding:14px 16px; max-height:100dvh; overflow:visible; }
 .sidebar-heading { min-height:44px; }
 .workspace-sidebar .brand-symbol { width:30px; height:35px; font-size:26px; }
 .workspace-sidebar .brand-wordmark { font-size:18px; }
 .workspace-sidebar .brand-wordmark small { font-size:6.5px; letter-spacing:.8px; }
 .workspace-menu-toggle { display:inline-flex; align-items:center; justify-content:center; gap:9px; flex:none; min-height:44px; padding:9px 12px; border:1px solid #617365; border-radius:4px; background:transparent; color:#e9ecdf; font-size:12px; }
 .workspace-menu-toggle svg { width:18px; height:18px; }
 .workspace-sidebar nav { display:none; }
 .workspace-sidebar.is-open nav { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:0; padding:16px 0 8px; margin-top:12px; border-top:1px solid #506248; max-height:calc(100dvh - 110px); max-height:calc(100svh - 110px); overflow-y:auto; overscroll-behavior:contain; }
 .workspace-sidebar .nav { width:100%; min-width:0; justify-content:flex-start; border-bottom:0; border-left:2px solid transparent; min-height:46px; font-size:13px; }
 .workspace-sidebar .nav.active { border-left-color:#d3c5a6; }
 .workspace-sidebar .nav-label { display:block; margin:16px 12px 8px; }
 .workspace-sidebar .nav-account { display:block; margin-top:18px; padding-top:14px; }
 .workspace-sidebar .logout-link { justify-content:space-between; }
 .workspace-sidebar .local { display:none; }
 main { padding:24px 16px max(24px,env(safe-area-inset-bottom)); }
 #page-title { scroll-margin-top:95px; }
 input:not([type=checkbox]),select,textarea { font-size:16px; min-height:48px; }
 button.primary,button.secondary,a.button,.text-button,.action-menu>summary { min-height:46px; }
 input[type=checkbox] { width:22px; height:22px; }
 .section-head { gap:18px; }
 .section-head>.actions,.section-head>details.action-menu,.section-head>#declaration-connection-slot { width:100%; }
 .section-head .actions { display:flex; width:100%; gap:10px; }
 .section-head .actions>* { flex:1 1 180px; }
 #connection-actions { width:100%; }
 #connection-actions>* { flex:1 1 180px; }
 .action-menu>summary { width:100%; }
 .action-menu-content { position:static; width:100%; max-width:none; min-width:0; margin-top:8px; box-shadow:none; background:#f5f7f0; }
 .action-menu-content button,.action-menu-content a { min-height:48px; }
 .selection-toolbar { display:block; padding:14px; }
 .selection-summary { gap:0; margin-bottom:13px; }
 .select-visible { min-height:44px; font-size:13px; }
 .selection-toolbar .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:9px; }
 .selection-toolbar .actions>.primary { grid-column:1/-1; }
 .selection-toolbar .actions>button { min-height:46px; padding:10px; font-size:12px; }
 .status-tabs { gap:0; }
 .status-tabs .secondary { flex:1 1 130px; }
 .filter-utility { flex-wrap:wrap; }
 .table-wrap,.enterprise-grid-scroll { max-height:none; border:0; overflow:visible; border-radius:0; scroll-margin-top:94px; }
 .responsive-table { display:block; min-width:0!important; width:100%; max-width:100%; }
 .responsive-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .responsive-table tbody { display:block; width:100%; }
 .responsive-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 18px; padding:20px 17px; margin:0 0 15px; border:1px solid #d2ddcb; border-radius:6px; background:#fff; }
 .responsive-table tr:last-child { margin-bottom:0; }
 .responsive-table td { display:block; padding:0; border:0!important; min-width:0!important; max-width:none!important; width:auto!important; white-space:normal; overflow-wrap:anywhere; text-align:left; font-size:13px; }
 .responsive-table tbody>tr:hover>td { background:transparent; }
 .responsive-table td:before { content:attr(data-label); display:block; font:500 10px/1.5 "Segoe UI",Arial,sans-serif; color:#849079; letter-spacing:.2px; margin-bottom:6px; }
 .responsive-table td:first-child { grid-column:1/-1; padding-bottom:13px; border-bottom:1px solid #e0e7d9!important; }
 .responsive-table td:first-child:before { display:none; }
 .responsive-table td:first-child strong { font-size:16px; line-height:1.55; }
 .responsive-table td small { font-size:11px; margin-top:5px; }
 .responsive-table td[colspan] { grid-column:1/-1; }
 .responsive-table td.empty { text-align:center; padding:24px 8px!important; border:0!important; }
 .responsive-table td.empty:before { display:none; }
 .responsive-table .badge { white-space:normal; font-size:11px; }
 .responsive-table .mono-id { font-size:13px; white-space:normal; overflow-wrap:anywhere; }
 .responsive-table .grid-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; justify-content:stretch; }
 .responsive-table .grid-actions .primary { grid-column:1/-1; }
 .responsive-table .grid-actions button { min-height:46px; width:100%; font-size:13px; padding:10px 12px; white-space:normal; }
 .digital-table td:last-child { grid-column:1/-1; border-top:1px solid #e0e7d9!important; padding-top:15px; }
 .digital-table td:last-child:before { display:none; }
 .credential-visible { border-color:#c4a66c!important; background:#fffcf1!important; }
 .credential-visible td { background:transparent!important; }
 .ledger-table td:last-child { grid-column:1/-1; }
 .taxpayer-table tbody.taxpayer-card { border:1px solid #d2ddcb; border-radius:6px; margin-bottom:15px; overflow:hidden; }
 .taxpayer-table tr { border:0; border-radius:0; margin:0; background:transparent; }
 .taxpayer-table .contact-cell,.taxpayer-table .taxpayer-actions-cell { grid-column:1/-1; }
 .taxpayer-table .taxpayer-actions-cell { border-top:1px solid #e0e7d9!important; padding-top:13px; }
 .taxpayer-table .taxpayer-actions-cell:before { display:none; }
 .taxpayer-table .row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .taxpayer-table .row-actions button { min-height:46px; font-size:12px; padding:10px 9px; }
 .taxpayer-table .taxpayer-confirm { width:100%; min-height:44px; margin-top:8px; }
 .taxpayer-table tr.taxpayer-obligations { display:block; padding:0; }
 .taxpayer-table .taxpayer-obligations>td { border:0!important; padding:0; }
 .taxpayer-table .taxpayer-obligations>td:before { display:none; }
 .obligation-body { padding:20px 16px; border-top:1px solid #dce5d4; }
 .obligation-head { flex-direction:column; gap:13px; }
 .obligation-strip { max-height:300px; }
 .obligation-chip { min-height:44px; flex:1 1 90px; }
 .obligation-search { max-width:none; }
 .declaration-table tr[data-declaration-id] { gap:16px; }
 .declaration-table tr[data-declaration-id]>td:first-child { order:8; border-bottom:0!important; border-top:1px solid #e0e7d9!important; padding:4px 0 0; }
 .declaration-table tr[data-declaration-id]>td:nth-child(2) { grid-column:1/-1; padding-bottom:13px; border-bottom:1px solid #e0e7d9!important; }
 .declaration-table tr[data-declaration-id]>td:nth-child(2):before { display:none; }
 .declaration-table tr[data-declaration-id]>td:nth-child(2) strong { font-size:16px; line-height:1.55; }
 .declaration-table .document-actions { grid-column:1/-1; }
 .declaration-document { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0; }
 .declaration-document button,.declaration-document a { min-height:44px; font-size:12px; }
 .declaration-document a { padding-inline:15px; }
 .document-actions .invalid { max-width:none; margin-block:4px; }
 .mobile-only { display:inline; }
 .record-select { min-height:44px; width:100%; font-size:13px; padding:6px 0; }
 .record-select:has(input:disabled) { color:#899480; cursor:default; }
 .grid-pagination,.table-footer { padding-top:18px; gap:14px; font-size:12px; }
 .grid-pagination>.pagination-controls { width:100%; display:grid; grid-template-columns:1fr auto 1fr; gap:10px; }
 .grid-pagination>.pagination-controls>label { grid-column:1/-1; display:flex; justify-content:space-between; }
 .grid-pagination select { width:100px; min-height:44px; font-size:16px; }
 .grid-pagination button,.table-footer button { min-height:44px; padding:10px; }
 .table-footer .pagination-controls { width:100%; }
 .table-footer .pagination-controls>button { flex:1; }
 .security-strip { padding:15px; font-size:12px; }
 .person { flex-wrap:wrap; align-items:flex-start; padding-block:17px; font-size:13px; }
 .person>div { min-width:0; overflow-wrap:anywhere; }
 .document-toolbar { padding:14px; }
 .document-toolbar label { flex-basis:100%; max-width:none; }
 .doc-selection-bar { display:block; }
 .doc-selection-bar>span { display:block; font-size:12px; margin-bottom:12px; }
 .doc-selection-bar .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .doc-selection-bar .actions .primary { grid-column:1/-1; }
 .doc-row { padding:16px; gap:12px; }
 .doc-meta { min-width:0; flex-basis:calc(100% - 42px); }
 .doc-row .doc-view,.doc-row>a { flex:1 1 100px; min-height:46px; font-size:12px; }
 .e-ledger-overview { flex-wrap:wrap; }
 dialog { width:calc(100% - 20px); max-width:calc(100% - 20px); max-height:calc(100dvh - 24px); margin:auto; padding:24px 18px; }
 dialog .section-head { flex-direction:row; align-items:flex-start; gap:15px; }
 dialog .section-head h2 { font-size:21px; overflow-wrap:anywhere; }
 dialog form>.actions { display:flex; gap:10px; }
 dialog form>.actions>button { flex:1 1 130px; min-height:46px; }
 .wide-dialog,.document-preview { width:calc(100% - 20px); max-width:calc(100% - 20px); }
 .document-preview iframe { min-height:320px; height:65dvh; }
 .draft-card { padding:18px 14px; }
 .draft-card h3 { font-size:16px; overflow-wrap:anywhere; }
 .draft-card .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .draft-card .actions button { padding:10px; font-size:12px; min-height:46px; }
 .bulk-message-toolbar { display:block; padding:17px; }
 .bulk-message-toolbar button { width:100%; margin-top:12px; min-height:46px; }
 .process-console-head { flex-direction:column; gap:6px; align-items:flex-start; }
 .portal-preview { padding:14px; }
 .portal-preview-head { flex-wrap:wrap; gap:12px; }
 .portal-preview-head>button { min-height:44px; }
 .import-preview { max-height:55dvh; }
 .import-table tr { gap:14px; padding:17px 14px; }
 .import-table td:first-child { font-weight:600; font-size:15px; }
 .import-table td:nth-child(2),.import-table td:nth-child(3) { grid-column:1/-1; }
}
@media(max-width:360px) {
 .workspace-sidebar { padding-inline:12px; }
 .workspace-sidebar .brand { gap:9px; }
 .workspace-sidebar .brand-wordmark { font-size:16px; }
 .workspace-sidebar .brand-wordmark small { font-size:6px; }
 .workspace-menu-toggle { padding:9px; gap:6px; }
 main { padding-inline:12px; }
 .panel { padding-inline:13px; }
 .responsive-table tr { padding-inline:14px; gap:15px 12px; }
 .responsive-table .grid-actions,.taxpayer-table .row-actions { grid-template-columns:1fr; }
 .responsive-table .grid-actions .primary { grid-column:auto; }
 .selection-toolbar .actions { grid-template-columns:1fr; }
 .draft-card .actions { grid-template-columns:1fr; }
}
@media print {
 .workspace-menu-toggle { display:none!important; }
 .workspace-topbar { display:none!important; }
}
@media(max-width:760px) {
 .workspace-topbar { gap:10px; margin:0 0 22px; padding-bottom:12px; }
 .workspace-topbar .environment-label { display:none; }
 .topbar-links { justify-content:flex-start; gap:14px; margin-left:0; min-width:0; }
 .topbar-links a,.topbar-links button { font-size:11px; }
 .profile-menu { margin-left:auto; }
 .profile-menu>summary { padding-left:10px; }
}
@media(max-width:430px) {
 .topbar-links a { display:none; }
 .profile-menu-content { width:min(258px,calc(100vw - 32px)); }
}

/* Refined workspace surfaces and a compact mobile application shell. */
html { -webkit-text-size-adjust:100%; scroll-padding-bottom:100px; }
.workspace-sidebar { gap:24px; padding-top:28px; }
.workspace-sidebar .brand { gap:13px; }
.workspace-sidebar .nav { border-radius:8px; }
.workspace-sidebar .nav.active { background:#31594c; }
.mobile-bottom-nav,.workspace-backdrop,.mobile-account-links { display:none; }
.workspace-topbar { min-height:54px; }
.workspace-header { border-bottom:0; margin-bottom:20px; padding-bottom:0; }
.workspace-header .eyebrow { font-size:10px; }
.workspace-header h1 { font-size:30px; letter-spacing:-.9px; }
.workspace-intro { margin:30px 0 25px; }
.workspace-intro h2 { font-family:"Segoe UI",Arial,sans-serif; font-weight:600; font-size:31px; }
.workspace-intro p { max-width:620px; }
.workspace-choices { gap:18px; border:0; background:transparent; }
.workspace-choice { border:1px solid var(--line)!important; border-radius:16px; min-height:310px; padding:26px; box-shadow:0 3px 12px #183e3504; }
.workspace-choice:hover { border-color:#88a99b!important; background:#fcfefd; }
.choice-top { flex-direction:row-reverse; margin-bottom:25px; }
.choice-top svg { box-sizing:content-box; padding:12px; width:26px; height:26px; border-radius:12px; background:#eaf2ee; color:#316c57; }
.choice-number { font-size:10px; letter-spacing:.8px; }
.workspace-choice strong { max-width:230px; font-size:26px; font-weight:600; line-height:1.25; }
.workspace-choice small { margin:15px 0 22px; font-size:13px; }
.choice-action { font-size:13px; border-color:#e1e9e5; }
.onboarding-strip { padding:25px; background:#eaf1ed; border:1px solid #d9e5dd; border-radius:14px; margin:24px 0; }
.onboarding-strip h3 { font-size:18px; }
.panel,.operation-details,.history-panel,.stats { border-color:#dce5e1; }
.data-toolbar { border-radius:10px; background:#f5f8f6; }
.primary,.secondary,a.button,.action-menu>summary { border-radius:8px; }
input:not([type=checkbox]),select,textarea { border-radius:7px; border-color:#c6d4cd; }
.quick-filters { grid-column:span 4; min-width:0; }
.quick-filters>summary { display:none; cursor:pointer; }
.quick-filter-grid { grid-template-columns:repeat(4,minmax(0,1fr)); padding:0; }
.primary-filters { grid-template-columns:minmax(210px,1.5fr) repeat(4,minmax(0,1fr)); gap:16px; align-items:start; }
.primary-filters .search-filter { grid-column:auto; }
.quick-filters:not([open])>.quick-filter-grid { display:grid; }
.badge { border-radius:6px; }
.status-tabs .secondary { border-radius:0; }
.empty { color:#617369; }
.dialog-open,.workspace-menu-open { overscroll-behavior:none; }
@media(min-width:761px) and (max-width:1200px) {
 .primary-filters { grid-template-columns:1fr; }
 .quick-filters { grid-column:auto; }
 .workspace-choices { grid-template-columns:1fr; gap:14px; }
 .workspace-choice { min-height:175px; display:grid; grid-template-columns:200px 1fr; gap:10px 24px; }
 .choice-top { grid-column:1/-1; flex-direction:row; margin:0; }
 .choice-top svg { padding:8px; width:22px; height:22px; }
 .workspace-choice strong { grid-column:1; grid-row:2/4; max-width:none; }
 .workspace-choice small { grid-column:2; margin:0; }
 .choice-action { grid-column:2; padding-top:10px; }
}
@media(max-width:760px) {
 html { scroll-padding-top:calc(90px + env(safe-area-inset-top)); }
 body { min-width:320px; }
 body.workspace-menu-open { overflow:hidden; }
 .workspace-sidebar { position:sticky; top:0; z-index:50; padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); background:#183e35; border:0; box-shadow:0 1px 0 #ffffff12; max-height:none; }
 .sidebar-heading { min-height:46px; gap:10px; }
 .workspace-sidebar .brand-wordmark { font-size:18px; }
 .workspace-sidebar .brand-wordmark small { color:#b6ccc1; font-size:6.5px; }
 .workspace-menu-toggle { width:44px; height:44px; min-height:44px; padding:0; border-radius:10px; border-color:#ffffff30; background:#ffffff09; }
 .workspace-menu-toggle>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .workspace-menu-toggle svg { width:21px; height:21px; }
 .workspace-sidebar.is-open nav { position:absolute; inset:100% 0 auto; margin:0; padding:12px 16px 24px; background:#183e35; border-top:1px solid #ffffff20; box-shadow:0 15px 30px #10291f33; border-radius:0 0 20px 20px; max-height:calc(100dvh - 88px - env(safe-area-inset-top)); overflow:auto; }
 .workspace-sidebar .nav { min-height:48px; font-size:14px; padding:12px 14px; border-left:0; }
 .workspace-sidebar .nav.active { background:#31594c; }
 .workspace-sidebar .nav-label { margin-top:20px; font-size:10px; color:#adc6b9; }
 .mobile-account-links { display:block; border-top:1px solid #ffffff22; margin-top:18px; }
 .mobile-account-links a,.mobile-account-links button { justify-content:space-between; }
 .mobile-account-links .mobile-logout { color:#ffcabd; }
 .workspace-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:40; border:0; background:#10251c80; padding:0; }
 #workspace-main { width:100%; margin:0; padding:22px max(16px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
 .workspace-topbar { display:none; }
 .workspace-header { min-height:0; padding:0; margin:0 0 24px; }
 .workspace-header .eyebrow { display:none; }
 .workspace-header h1 { font-size:26px; line-height:1.25; margin:0 0 8px; }
 .workspace-header p { font-size:13px; line-height:1.65; }
 #page-title { scroll-margin-top:calc(86px + env(safe-area-inset-top)); }
 .workspace-intro { margin:6px 0 20px; }
 .workspace-intro .section-kicker { font-size:10px; }
 .workspace-intro h2 { font-size:24px; margin:10px 0; letter-spacing:-.6px; }
 .workspace-intro p { font-size:13px; margin-bottom:0; line-height:1.7; }
 .workspace-choices { display:grid; grid-template-columns:1fr; gap:12px; }
 .workspace-choice { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:0 12px; padding:20px; min-height:0; border-radius:14px; }
 .choice-top { display:contents; }
 .choice-number { display:none; }
 .choice-top svg { grid-column:2; grid-row:1/3; width:22px; height:22px; padding:10px; border-radius:11px; align-self:start; }
 .workspace-choice strong { grid-column:1; grid-row:1; max-width:none; font-size:19px; margin:0 0 7px; }
 .workspace-choice small { grid-column:1; grid-row:2; margin:0; font-size:12px; line-height:1.75; }
 .choice-action { grid-column:1/-1; margin:16px 0 0; padding-top:11px; font-size:12px; align-items:center; }
 .choice-action>span { font-size:19px; }
 .onboarding-strip { margin-top:20px; padding:20px; gap:16px; }
 .onboarding-strip .actions { display:flex; width:100%; gap:12px; }
 .onboarding-strip .actions>* { flex:1; }
 .panel { border-radius:14px; padding:20px 16px; margin-bottom:18px; }
 .section-head h2 { font-size:20px; line-height:1.35; }
 .section-head p { font-size:12px; line-height:1.75; }
 .view-heading h2 { font-size:18px; }
 .view-heading .section-kicker { display:none; }
 .actions>* { max-width:100%; }
 .primary,.secondary,a.button,.action-menu>summary { min-height:48px; padding:11px 14px; font-size:13px; }
 .data-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; padding:15px; margin:18px 0; }
 .data-toolbar .data-search { grid-column:1/-1; }
 .data-toolbar label { font-size:12px; }
 .data-toolbar .data-summary { margin:0; }
 .stats { gap:0; border-radius:12px; margin-bottom:18px; }
 .stats .stat { padding:16px; }
 .stat label { font-size:11px; line-height:1.5; }
 .stat strong { font-size:27px; }
 .stat small { font-size:11px; line-height:1.6; }
 .primary-filters { display:block; padding:12px 0 0; }
 .primary-filters>.search-filter { margin-bottom:14px; }
 .quick-filters { border:1px solid var(--line); border-radius:9px; background:#f8faf9; margin-bottom:10px; }
 .quick-filters>summary { display:flex; align-items:center; justify-content:space-between; list-style:none; gap:10px; padding:13px; font-size:13px; font-weight:600; color:var(--ink); min-height:48px; }
 .quick-filters>summary::-webkit-details-marker { display:none; }
 .quick-filters>summary:after { content:'+'; font-size:19px; font-weight:400; }
 .quick-filters[open]>summary:after { content:'−'; }
 .filter-count { font-size:10px; padding:3px 7px; border-radius:5px; background:#e5eee8; margin-left:auto; color:#45644f; }
 .quick-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; padding:0 13px 16px; }
 .quick-filters:not([open])>.quick-filter-grid { display:none; }
 .quick-filter-grid label { grid-column:auto; font-size:12px; }
 .quick-filter-grid label:has(#code) { grid-column:1/-1; }
 .status-tabs { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:0; scrollbar-width:thin; overscroll-behavior-x:contain; padding-bottom:2px; max-width:100%; }
 .status-tabs .secondary { flex:0 0 auto; min-height:48px; padding:11px 13px; white-space:nowrap; font-size:12px; }
 .selection-toolbar { border-radius:10px; padding:13px; }
 .responsive-table tr,.taxpayer-table tbody.taxpayer-card { border-color:#d9e4dd; border-radius:12px; }
 .responsive-table tr { padding:18px 15px; gap:16px 12px; }
 .responsive-table td:before { color:#62796b; font-size:11px; }
 .responsive-table td strong { overflow-wrap:anywhere; }
 .responsive-table .grid-actions button,.taxpayer-table .row-actions button { min-height:48px; }
 .grid-pagination,.table-footer { font-variant-numeric:tabular-nums; }
 .grid-pagination .pagination-controls { align-items:center; }
 .security-strip,.info { border-radius:9px; font-size:12px; }
 .operation-details,.history-panel { border-radius:12px; }
 .guide-intro h2 { font-family:inherit; font-size:27px; }
 footer { margin-top:24px; padding-top:18px; line-height:1.6; }
 .mobile-bottom-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; left:0; right:0; bottom:0; z-index:35; padding:7px max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); background:#fff; border-top:1px solid #dbe5df; box-shadow:0 -4px 20px #173e3509; }
 .mobile-bottom-nav .mobile-nav-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:54px; min-width:0; width:100%; padding:6px 2px; border:0; border-radius:10px; color:#62746a; background:transparent; text-align:center; font-size:10px; font-weight:500; line-height:1.2; }
 .mobile-bottom-nav .mobile-nav-item svg { width:22px; height:22px; stroke-width:1.7; }
 .mobile-bottom-nav .mobile-nav-item.active { color:#1e6049; background:#eaf3ed; font-weight:650; }
 dialog { max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius:18px; overscroll-behavior:contain; padding:24px 18px max(22px,env(safe-area-inset-bottom)); }
 dialog .icon { width:44px; height:44px; }
 .document-preview iframe { height:55dvh; min-height:240px; }
 .contact-form { gap:16px; }
 .doc-row { border-radius:10px; }
}
@media(max-width:360px) {
 #workspace-main { padding-inline:12px; }
 .workspace-sidebar { padding-inline:12px; }
 .workspace-sidebar .brand-wordmark { font-size:16px; }
 .workspace-sidebar .brand-wordmark small { font-size:6px; letter-spacing:.6px; }
 .panel { padding:18px 13px; }
 .data-toolbar { grid-template-columns:1fr; }
 .quick-filter-grid { grid-template-columns:1fr; }
 .quick-filter-grid label:has(#code) { grid-column:auto; }
 .mobile-bottom-nav .mobile-nav-item { font-size:9px; }
}
@media(prefers-reduced-motion:no-preference) { .workspace-choice,.mobile-nav-item { transition:background-color .15s ease,border-color .15s ease; } }
@media print { .mobile-bottom-nav,.workspace-backdrop,.mobile-account-links { display:none!important; } .quick-filter-grid { display:grid!important; } }
@media(max-width:760px) {
 body:has(input:not([type=checkbox]):focus,textarea:focus) .mobile-bottom-nav { display:none; }
}

/* e-Defter portal selection and local ZIP archive. */
.ledger-selection-bar { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:20px 0; padding:17px 18px; border:1px solid #d6e1d1; border-radius:8px; background:#f3f7f0; }
.ledger-selection-bar>span { font-size:13px; font-weight:600; }
.ledger-selection-bar>.actions { margin-left:auto; display:flex; flex-wrap:wrap; gap:10px; }
.ledger-selection-bar>small { width:100%; color:#5b6e58; font-size:12px; line-height:1.7; }
.ledger-selection-bar button { min-height:42px; }
.ledger-record-select,.ledger-archive-select { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0; font-size:12px; cursor:pointer; }
.ledger-record-select input,.ledger-archive-select input { width:18px; height:18px; margin:0; accent-color:var(--green); flex:none; }
.ledger-record-select:has(input:disabled),.ledger-archive-select:has(input:disabled) { color:#788675; cursor:default; }
.ledger-download-reason { display:block; min-width:170px; max-width:290px; margin-top:7px; font-size:12px; line-height:1.65; color:#5e705a; }
.ledger-error { padding:12px 14px; border:1px solid #e5c6b8; border-radius:6px; background:#fff4ef; color:#843b24; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.ledger-error[hidden],.ledger-job[hidden],.ledger-package-contents[hidden] { display:none; }
.ledger-job { margin:22px 0; padding:20px; border:1px solid #ccdaca; border-radius:8px; background:#f7faf4; }
.ledger-job h3 { font-size:16px; margin:0 0 8px; }
.ledger-job .section-head { margin-bottom:14px; }
.ledger-job .section-head p { margin:0; font-size:13px; }
.ledger-job progress { display:block; width:100%; height:10px; accent-color:var(--green); }
.ledger-job ul { padding-left:32px; margin-bottom:0; }
.e-ledger-archive-panel { margin-top:24px; scroll-margin-top:100px; }
.e-ledger-archive-panel>.section-head>div { max-width:790px; }
#edefter-archive-status { font-size:13px; color:#52664d; margin:18px 0; }
.ledger-archive-list { display:grid; gap:18px; }
.ledger-archive-card { min-width:0; border:1px solid #d7e1d0; border-radius:10px; background:#fff; overflow:hidden; }
.ledger-archive-card>header { display:flex; align-items:flex-start; gap:17px; padding:23px 24px 18px; }
.ledger-archive-identity { min-width:0; flex:1; }
.ledger-archive-identity h3 { font:600 17px/1.55 "Segoe UI",Arial,sans-serif; margin:0; overflow-wrap:anywhere; }
.ledger-archive-identity p { margin:5px 0 0; color:#5c7056; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.ledger-archive-card>header>.badge { margin-top:6px; flex:none; }
.ledger-package-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 28px; margin:0; padding:0 24px 20px 86px; }
.ledger-package-meta>div { min-width:0; }
.ledger-package-meta dt { margin-bottom:5px; color:#6a7b61; font-size:11px; font-weight:600; }
.ledger-package-meta dd { margin:0; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.ledger-package-meta code { font-family:Consolas,monospace; font-size:12px; color:#334f31; }
.ledger-archive-actions { display:flex; gap:10px; flex-wrap:wrap; padding:0 24px 22px 86px; }
.ledger-archive-actions>a,.ledger-archive-actions>button { min-height:42px; text-align:center; }
.ledger-package-contents { padding:20px 24px; border-top:1px solid #dfe7da; background:#f8faf5; }
.ledger-package-contents h4 { margin:0 0 14px; font-size:13px; color:#425a3e; }
.ledger-package-contents ul { list-style:none; padding:0; margin:0; }
.ledger-package-document { display:flex; align-items:center; gap:20px; padding:15px 0; border-top:1px solid #e0e8da; }
.ledger-package-document>div { flex:1; min-width:0; }
.ledger-package-document strong { display:block; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.ledger-package-document small { display:block; color:#66785d; font-size:12px; line-height:1.7; margin-top:4px; }
.ledger-package-document button { min-height:44px; flex:none; }
.ledger-document-problem { font-size:12px; line-height:1.7; color:#80522b; margin:6px 0 0; overflow-wrap:anywhere; }
.ledger-file-unavailable { font-size:12px; color:#67755f; line-height:1.6; }
.ledger-preview-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:18px 0; }
.ledger-preview-actions>* { min-height:44px; text-align:center; }
.ledger-preview-note { color:#5b6d55; font-size:13px; line-height:1.8; }
.ledger-document-dialog #edefter-document-context { font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.ledger-document-dialog #edefter-document-status { font-size:12px; color:#5b6d55; }
.ledger-document-dialog iframe { border:1px solid #d4dfcc; border-radius:6px; background:#f7f9f3; }
@media(max-width:1000px) {
 .ledger-selection-bar>.actions { margin-left:0; }
 .ledger-selection-bar>span { width:100%; }
 .ledger-package-meta { padding-left:24px; }
 .ledger-archive-actions { padding-left:24px; }
}
@media(max-width:760px) {
 .ledger-selection-bar { padding:15px; gap:12px; }
 .ledger-selection-bar>.actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:9px; }
 .ledger-selection-bar>.actions>button { min-height:46px; padding:10px; font-size:12px; }
 .ledger-selection-bar>.actions>button:last-child { grid-column:1/-1; }
 .ledger-table tr>td:first-child { order:8; padding:10px 0 0; border-bottom:0!important; border-top:1px solid #e0e7d9!important; }
 .ledger-table tr>td:nth-child(2) { grid-column:1/-1; padding-bottom:13px; border-bottom:1px solid #e0e7d9!important; }
 .ledger-table tr>td:nth-child(2):before { display:none; }
 .ledger-table tr>td:nth-child(2) strong { font-size:16px; }
 .ledger-record-select { min-height:46px; width:100%; }
 .ledger-download-reason { max-width:none; min-width:0; }
 .ledger-archive-card>header { gap:12px; padding:18px 16px 15px; flex-wrap:wrap; }
 .ledger-archive-select { min-height:44px; }
 .ledger-archive-identity { flex-basis:calc(100% - 70px); }
 .ledger-archive-card>header>.badge { margin:0 0 0 62px; }
 .ledger-archive-identity h3 { font-size:16px; }
 .ledger-package-meta { grid-template-columns:1fr; gap:14px; padding:0 16px 18px; }
 .ledger-archive-actions { padding:0 16px 18px; display:grid; grid-template-columns:1fr; }
 .ledger-archive-actions>a,.ledger-archive-actions>button { min-height:46px; font-size:12px; padding:12px; }
 .ledger-package-contents { padding:18px 16px; }
 .ledger-package-document { align-items:stretch; flex-direction:column; gap:12px; }
 .ledger-package-document button { width:100%; }
 .ledger-job { padding:17px 15px; }
 .ledger-job .actions { width:100%; }
 .ledger-job .actions button { flex:1 1 130px; min-height:44px; }
 .ledger-preview-actions { display:grid; grid-template-columns:1fr; }
 .ledger-preview-actions>* { min-height:46px; }
 .e-ledger-overview .text-link { min-height:44px; display:inline-flex; align-items:center; }
}
