.workspace-page { margin: 0; min-width: 320px; color: #262a33; background: #edeef0; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.workspace-page a { color: #243557; text-underline-offset: 3px; }
.workspace-page :focus-visible { outline: 2px solid #334976; outline-offset: 2px; }
.workspace-page button { font-family: inherit; }
.workspace-page [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.workspace-skip { position: fixed; left: 10px; top: -80px; z-index: 100; padding: 8px 12px; background: #fff; border: 1px solid #334976; }
.workspace-skip:focus { top: 5px; }
.workspace-topbar { height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid #cdd0d6; white-space: nowrap; }
.workspace-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; color: #17243d !important; text-decoration: none; }
.workspace-brand strong { font-size: 15px; font-weight: 800; letter-spacing: .09em; background: linear-gradient(100deg, #1A46E8, #0FC0FF 48%, #9A2BF0 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.workspace-brand .header-core { display: block; width: 30px; height: 22px; flex: 0 0 30px; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.header-core .kai-core__body { stroke: #24324e; stroke-width: 2.5; }
.header-core .kai-core__edge, .header-core .kai-core__highlight { stroke-width: .65; }
.header-core .kai-core__pulse { stroke-width: 2; }
.header-core .kai-core__frame, .header-core .kai-core__datum, .header-core .kai-core__guide, .header-core .kai-core__axis { display: none; }
.header-core .kai-core__reticle, .header-core .kai-core__lens-ring, .header-core .kai-core__lens-inner, .header-core .kai-core__crosshair, .header-core .kai-core__alignment, .header-core .kai-core__shutter { stroke-width: .35; }
.workspace-brand-mark { font-size: 27px; line-height: 1; color: #293959; }
.office-name { flex: 0 0 auto; padding-left: 14px; border-left: 1px solid #dbdde1; font-size: 11px; font-weight: 600; color: #343c4b; }
.office-counters { display: flex; align-items: center; justify-content: center; flex: 1 0 auto; gap: 0; margin: 0; }
.office-counters > div { display: flex; align-items: baseline; gap: 5px; padding: 0 11px; border-right: 1px solid #e0e2e5; }
.office-counters > div:last-child { border-right: 0; }
.office-counters dt { color: #646871; font-size: 10px; }
.office-counters dd { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: #252d3e; font-size: 11px; font-weight: 650; }
.office-counters dd[data-status="offline"] { color: #6a6d72; }
.workspace-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }
.core-status { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: #4d5462; font-size: 10px; }
.status-led { width: 6px; height: 6px; flex: 0 0 6px; display: inline-block; border-radius: 50%; background: #646f85; }
.status-led[data-status="working"], [data-state="working"] .status-led { background: #324f8a; box-shadow: 0 0 0 2px #e1e6ef; }
.status-led[data-status="review"], [data-state="review"] .status-led { background: #a8771e; }
.status-led[data-status="error"], [data-state="error"] .status-led { background: #a94941; }
.status-led[data-status="offline"] { background: #8a8d93; }
.quick-actions { position: relative; }
.quick-actions > summary { height: 28px; display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; border: 1px solid #cbcfd6; border-radius: 3px; padding: 0 9px; color: #343c4c; background: #f8f9fa; font-size: 11px; font-weight: 600; }
.quick-actions > summary::-webkit-details-marker { display: none; }
.quick-actions > summary > span { font-size: 12px; color: #646a76; }
.quick-actions[open] > summary, .quick-actions > summary:hover { background: #eaecf0; }
.quick-menu { position: absolute; right: 0; top: 34px; z-index: 40; min-width: 200px; padding: 5px; display: grid; gap: 2px; border: 1px solid #cbcfd6; border-radius: 4px; background: #fff; box-shadow: 0 8px 24px #242c3b26; }
.quick-menu button, .quick-menu a { display: block; min-height: 30px; padding: 6px 9px; border: 0; border-radius: 2px; background: #fff; color: #3a4251; font-size: 11px; line-height: 1.5; text-align: left; text-decoration: none; }
.quick-menu button:hover, .quick-menu a:hover { background: #edeff3; }
.workspace { width: 100%; max-width: none; margin: 0; padding: 10px; }
.workspace-columns { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 10px; height: calc(100dvh - 68px); min-height: 260px; }
.taxpayer-panel { display: flex; flex-direction: column; min-width: 0; height: calc(100dvh - 68px); min-height: 260px; background: #fff; border: 1px solid #ccd0d7; border-radius: 3px; overflow: hidden; }
.workspace-columns .taxpayer-panel { height: 100%; }
.report-attribution { flex: 0 0 22px; display: flex; align-items: center; justify-content: flex-end; margin: 0; padding: 0 10px; color: #717680; background: #fff; border-top: 1px solid #e3e5e9; font-size: 9px; }
.personnel-card { min-width: 0; padding: 12px; border: 1px solid #ccd0d7; border-radius: 3px; background: #fff; }
.personnel-heading h2 { margin: 0; color: #262e3f; font-size: 13px; font-weight: 650; }
.personnel-status { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: #666b74; font-size: 10px; }
.personnel-status:has([data-status="online"]), .personnel-status:has([data-status="working"]) { color: #2d4169; }
.status-led[data-status="online"] { background: #324f8a; box-shadow: 0 0 0 2px #e1e6ef; }
.personnel-core { width: 100%; margin: 12px 0; border-color: #d6d9e0; border-radius: 3px; background: #edeff3; box-shadow: none; --kai-accent: #55637e; --kai-fine: #7c8597; }
.personnel-core .kai-core__body { stroke: #c7ccd6; stroke-width: 10; }
.personnel-core .kai-core__axis, .personnel-core .kai-core__frame, .personnel-core .kai-core__datum { stroke: #9ea4b1; }
.personnel-detail { margin: 0 0 12px; color: #666b74; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.personnel-facts { margin: 0 0 12px; padding: 9px 0; border-top: 1px solid #e2e4e8; border-bottom: 1px solid #e2e4e8; font-size: 10px; }
.personnel-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.personnel-facts dt { color: #717680; }
.personnel-facts dd { margin: 0; color: #434c5d; text-align: right; overflow-wrap: anywhere; }
.document-desk { width: 100%; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border: 1px solid #9fa8bb; border-radius: 3px; background: #edeff4; color: #313e58; font-size: 11px; font-weight: 600; white-space: nowrap; }
.document-desk > span { font-size: 16px; line-height: 1; font-weight: 400; }
.document-desk:hover { border-color: #758097; background: #e2e6ee; }
.matrix-heading { height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; background: #fff; }
.matrix-heading h1 { font-size: 14px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; margin: 0; color: #262e3f; }
.period-range { color: #686d76; font-size: 10px; white-space: nowrap; }
.matrix-toolbar { display: flex; align-items: center; flex: 0 0 36px; height: 36px; min-width: 0; gap: 6px; margin: 0; padding: 3px 9px; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #d1d5dc; background: #f4f5f6; }
.matrix-search, .matrix-filter { position: relative; display: flex; align-items: center; flex: 0 0 auto; margin: 0; }
.matrix-search { flex-basis: 275px; }
.matrix-search input, .matrix-filter select { height: 28px; min-height: 28px; margin: 0; padding: 4px 8px; border: 1px solid #c5c9d2; border-radius: 3px; color: #2b3240; background: #fff; font-size: 11px; line-height: 18px; }
.matrix-search input { padding-right: 29px; }
.matrix-search input::placeholder { color: #767980; opacity: 1; }
.matrix-search kbd { position: absolute; right: 9px; top: 6px; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 16px; border: 1px solid #d7dadf; border-radius: 2px; color: #7b7f87; background: #f7f8f9; font: 10px ui-monospace, monospace; pointer-events: none; }
.matrix-filter select { width: auto; min-width: 132px; padding-right: 22px; }
.matrix-toolbar input:focus, .matrix-toolbar select:focus { outline: 2px solid #acb6cb; outline-offset: 0; border-color: #485b82; }
.matrix-reset { height: 28px; min-height: 28px; padding: 0 9px; border: 1px solid #c8ccd4; border-radius: 3px; background: #fff; color: #4e5666; font-size: 10px; white-space: nowrap; }
.matrix-reset:hover { background: #eaecf1; border-color: #a7afbe; }
.matrix-table-wrap { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-color: #aeb3bd #f1f2f4; scrollbar-width: thin; }
.matrix-table-wrap:focus-visible { outline-offset: -2px; }
.matrix-table { width: 100%; min-width: 1080px; border-collapse: collapse; text-align: left; }
.matrix-table th, .matrix-table td { border-right: 1px solid #eeeff1; white-space: nowrap; }
.matrix-table thead th { position: sticky; top: 0; z-index: 2; height: 30px; padding: 4px 9px; color: #535a67; background: #eaecf0; border-bottom: 1px solid #cbcfd8; font-size: 10px; font-weight: 650; line-height: 20px; text-transform: none; letter-spacing: 0; }
.matrix-table tbody th, .matrix-table tbody td { height: 32px; padding: 3px 9px; color: #525967; background: #fff; border-bottom: 1px solid #e3e5ea; font-size: 11px; font-weight: 400; line-height: 25px; text-transform: none; letter-spacing: 0; }
.matrix-table tbody tr:nth-child(even) > * { background: #f9fafc; }
.matrix-table tbody tr:hover > *, .matrix-table tbody tr:focus-within > * { background: #edeff4; }
.matrix-table tbody tr:last-child > * { border-bottom: 1px solid #dbdee5; }
.matrix-table th:last-child, .matrix-table td:last-child { border-right: 0; }
.company-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 300px; }
.company-identity strong { color: #2d3544; font-size: 11px; font-weight: 600; }
.company-vkn { color: #7a7f88; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 400; }
.period-month { display: inline-flex; align-items: baseline; gap: 4px; }
.period-month strong { font-size: 10px; font-weight: 650; }
.period-year { color: #7b7f88; font-size: 9px; font-weight: 400; }
.matrix-period-cell { width: 103px; }
.matrix-table tbody td.is-filter-period { background: #ebeef5; box-shadow: inset 1px 0 #d1d7e2, inset -1px 0 #d1d7e2; }
.berat-badge { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; min-height: 18px; height: 18px; padding: 0 5px; border: 1px solid transparent; border-radius: 2px; font-size: 9px; font-weight: 600; line-height: 16px; white-space: nowrap; vertical-align: middle; }
.berat-symbol { display: inline-grid; place-items: center; width: 8px; font-size: 9px; font-weight: 700; }
.berat-badge--sent { color: #273a61; background: #e8ecf3; border-color: #c9d0dd; }
.berat-badge--queued, .berat-badge--missing { color: #735419; background: #f8f2df; border-color: #e4d8b4; }
.berat-badge--risk, .berat-badge--not-sent { color: #8b3e36; background: #f8ebe8; border-color: #e7ccc5; }
.document-counts { display: flex; align-items: baseline; gap: 7px; color: #757982; font-size: 9px; white-space: nowrap; }
.document-counts strong { color: #384256; font-size: 11px; font-weight: 550; }
.document-counts small { font-size: 9px; }
.kai-match { display: flex; align-items: center; gap: 7px; min-width: 88px; }
.kai-match strong { color: #3a4760; min-width: 27px; font-size: 10px; font-weight: 600; }
.kai-match-bar { display: block; width: 42px; height: 3px; margin: 0; overflow: hidden; border: 0; border-radius: 1px; background: #dfe2e9; color: #6e7a92; accent-color: #6e7a92; appearance: none; }
.kai-match-bar::-webkit-progress-bar { background: #dfe2e9; }
.kai-match-bar::-webkit-progress-value { background: #6e7a92; }
.kai-match-bar::-moz-progress-bar { background: #6e7a92; }
.matrix-actions { display: flex; align-items: center; gap: 5px; }
.matrix-actions button { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-height: 24px; padding: 0 6px; border: 1px solid #cacfd8; border-radius: 2px; font-size: 9px; line-height: 22px; font-weight: 550; white-space: nowrap; }
.matrix-refresh { color: #616772; background: #fff; }
.matrix-refresh:hover { color: #354159; background: #e8ebf1; border-color: #a7afbe; }
.matrix-refresh[aria-disabled="true"] { cursor: wait; opacity: .65; }
.matrix-inspect { color: #33405b; background: #e8ecf3; }
.matrix-inspect:hover { background: #d8dfed; border-color: #8f9db8; }
.matrix-footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 26px; min-width: 0; height: 26px; gap: 12px; padding: 0 10px; border-top: 1px solid #d3d7de; background: #f3f4f7; }
.matrix-results, #matrix-results { margin: 0; color: #5f6673; font-size: 10px; white-space: nowrap; }
.matrix-legend { display: flex; align-items: center; gap: 13px; margin: 0; }
.legend-item { display: inline-flex; align-items: center; gap: 4px; color: #656b77; font-size: 9px; white-space: nowrap; }
.legend-dot { display: inline-block; width: 5px; height: 5px; border-radius: 1px; background: #6b7891; }
.legend-dot--sent { background: #6b7891; }
.legend-dot--pending { background: #b28a39; }
.legend-dot--risk { background: #ac6458; }
.matrix-feedback, .workspace-feedback { position: fixed; bottom: 39px; right: 20px; z-index: 30; max-width: min(560px, calc(100vw - 40px)); margin: 0; padding: 9px 12px; border: 1px solid #a9b0bd; border-left: 3px solid #53607b; border-radius: 3px; color: #374257; background: #eff2f8; box-shadow: 0 5px 20px #1f26351a; font-size: 11px; line-height: 1.5; }
.matrix-empty td { padding: 35px 20px !important; text-align: center; white-space: normal; }
.matrix-table.is-empty { min-width: 0; }
.matrix-table.is-empty thead { display: none; }
.matrix-empty td > div { max-width: 400px; margin: auto; }
.matrix-empty h3 { margin: 0 0 6px; color: #3a4458; font-size: 14px; font-weight: 600; }
.matrix-empty p { margin: 0 0 12px; color: #6d7380; font-size: 11px; line-height: 1.5; }
.matrix-empty-reset { min-height: 28px; padding: 4px 10px; border: 1px solid #bac1ce; border-radius: 3px; color: #3f4a60; background: #ebeff6; font-size: 11px; }
.workspace-eyebrow { margin: 0 0 4px; color: #6f7581; font-size: 9px; line-height: 1.4; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.has-open-modal { overflow: hidden; }
.undo-dialog, .taxpayer-dialog, .transfer-dialog, .document-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; color: #303848; border: 1px solid #bbc1cd; border-radius: 4px; background: #fff; box-shadow: 0 15px 60px #151b2840; overflow-y: auto; overscroll-behavior: contain; }
.undo-dialog::backdrop, .taxpayer-dialog::backdrop, .transfer-dialog::backdrop, .document-dialog::backdrop { background: #14192266; }
.undo-dialog form { display: block; padding: 20px; }
.undo-heading, .taxpayer-dialog-heading, .dialog-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.undo-heading h2, .taxpayer-dialog-heading h2, .dialog-heading h2 { margin: 0; color: #2c3546; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; }
#undo-title:focus, #taxpayer-detail-title:focus, #transfers-heading:focus { outline: none; }
.undo-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #d5d9e2; border-radius: 3px; color: #59647a; background: #ebeef5; font-size: 23px; }
.undo-close, .matrix-dialog-close { flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 2px; color: #6f7786; background: #f0f2f6; font-size: 22px; line-height: 1; }
.undo-close:hover, .matrix-dialog-close:hover { color: #313d55; background: #dfe4ef; }
#undo-description { margin: 0 0 14px; color: #656d7c; font-size: 11px; }
.undo-record { margin-bottom: 16px; padding: 13px 14px; border: 1px solid #d1d7e2; border-radius: 3px; background: #f4f6fa; }
.undo-company { margin: 0 0 11px; color: #566075; font-size: 11px; font-weight: 600; }
.undo-facts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; margin: 0; }
.undo-facts dt { margin-bottom: 4px; color: #6a7283; font-size: 10px; }
.undo-facts dd { margin: 0; color: #313d54; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.undo-reference { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid #d7dce6; color: #656d7c; font-size: 10px; }
.undo-reference span { float: right; color: #535f77; font-family: ui-monospace, monospace; }
.undo-method h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; }
.undo-method-badge { display: inline-flex; align-items: center; margin-bottom: 12px; padding: 4px 7px; border: 1px solid #bdc7db; border-radius: 2px; color: #3b4b6b; background: #e7ecf5; font-size: 10px; font-weight: 600; }
.undo-method-badge[data-method="storno"] { color: #79642f; background: #f7f2e3; border-color: #e3d7b4; }
.undo-rules { display: grid; gap: 6px; margin-bottom: 12px; }
.undo-rule { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid #dbdfe8; border-radius: 3px; color: #636b7c; }
.undo-rule.is-selected { border-color: #aab6cf; background: #eef1f8; color: #3b4a68; }
.undo-rule-index { padding-top: 1px; font: 9px ui-monospace, monospace; }
.undo-rule p { margin: 0; }
.undo-rule strong { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; }
.undo-rule p span, .undo-verification { display: block; margin: 0; font-size: 11px; line-height: 1.5; }
.undo-service-note { margin: 14px 0 16px; padding: 9px 10px; border: 1px solid #d9dde6; border-radius: 2px; color: #5f697c; background: #f6f8f2; font-size: 10px; line-height: 1.6; }
.undo-actions, .taxpayer-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.undo-actions button, .taxpayer-dialog-actions button { min-height: 32px; padding: 5px 11px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.undo-cancel, .matrix-dialog-cancel { border: 1px solid #bec6d6; color: #485774; background: #fff; }
.undo-cancel:hover, .matrix-dialog-cancel:hover { background: #e9edf5; }
.undo-confirm, .matrix-transfer-check { border: 1px solid #2c3d5e; color: #fff; background: #354668; }
.undo-confirm:hover, .matrix-transfer-check:hover { background: #243352; }
.taxpayer-dialog-content { padding: 20px; }
.taxpayer-dialog-heading { justify-content: space-between; }
.taxpayer-dialog-heading p:not(.workspace-eyebrow) { margin: 4px 0 0; color: #687182; font-size: 10px; }
.taxpayer-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 12px; border: 1px solid #ced5e3; border-radius: 3px; background: #f1f4fa; }
.taxpayer-detail-summary dt { margin-bottom: 5px; color: #667084; font-size: 10px; }
.taxpayer-detail-summary dd { margin: 0; color: #2f4062; font-size: 18px; font-weight: 600; }
.taxpayer-dialog-content h3 { margin: 0 0 9px; color: #3f5073; font-size: 11px; font-weight: 600; }
.taxpayer-detail-periods { margin: 0 0 14px; padding: 0; list-style: none; border: 1px solid #d6dce7; border-radius: 3px; }
.taxpayer-detail-periods li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #525f79; border-bottom: 1px solid #dce1ea; font-size: 11px; }
.taxpayer-detail-periods li:last-child { border-bottom: 0; }
.taxpayer-detail-note { margin: 0 0 16px; color: #667083; font-size: 11px; line-height: 1.6; }
.taxpayer-detail-feedback { margin: 0 0 16px; padding: 9px 11px; border-left: 3px solid #7584a2; background: #e9edf6; color: #3c4c6d; font-size: 11px; line-height: 1.6; }
.transfer-dialog { width: min(760px, calc(100vw - 24px)); }
.transfer-dialog .dialog-heading { align-items: center; margin: 0; padding: 16px 18px; border-bottom: 1px solid #ced5e3; }
.transfer-table-wrap { position: relative; overflow: auto; }
.transfer-table { min-width: 680px; width: 100%; text-align: left; }
.transfer-table th, .transfer-table td { padding: 9px 12px; border-bottom: 1px solid #dce1ea; font-size: 11px; }
.transfer-table thead th { background: #e8ecf5; color: #505e7b; font-size: 10px; font-weight: 600; text-transform: none; }
.transfer-table tbody th { background: #fff; text-transform: none; }
.transfer-table .number-cell { text-align: right; }
.voucher-number { display: block; color: #2b3e63; font-weight: 600; }
.voucher-company { display: block; margin-top: 2px; color: #647088; font-size: 9px; font-weight: 400; }
.sequence-badge { display: inline-flex; padding: 2px 5px; border: 1px solid #c8d1e4; border-radius: 2px; color: #46587d; background: #e9eef7; font-size: 9px; }
.sequence-badge--later { color: #877641; background: #f8f5e8; border-color: #e6dfc3; }
.undo-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 3px 7px; border: 1px solid #c0c9da; border-radius: 3px; color: #46587d; background: #fff; font-size: 10px; }
.undo-trigger:hover { background: #e3e9f5; }
.undo-trigger span { font-size: 15px; line-height: 1; }
.transfer-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 15px; border-top: 1px solid #d9dfea; color: #5c6984; background: #f8faf3; }
.transfer-note > span { font-size: 15px; }
.transfer-note p { margin: 0; font-size: 10px; line-height: 1.6; }
p.transfer-note { display: block; margin: 0; font-size: 10px; line-height: 1.6; }
.document-form { display: block; padding: 18px; }
.document-form .dialog-heading { margin-bottom: 10px; }
#document-title:focus { outline: none; }
.document-note { margin: 0 0 14px; color: #666c78; font-size: 11px; }
.document-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.document-fields label { display: grid; gap: 5px; min-width: 0; color: #525a6b; font-size: 11px; }
.document-field-wide { grid-column: 1 / -1; }
.document-fields input, .document-fields select { width: 100%; min-width: 0; min-height: 32px; padding: 5px 8px; border: 1px solid #c5c9d2; border-radius: 3px; color: #2b3240; background: #fff; font-size: 11px; }
.document-fields input[readonly] { color: #636872; background: #f3f4f6; }
.document-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 108px; margin-top: 14px; padding: 12px; border: 1px dashed #98a1b2; border-radius: 3px; color: #39455d; background: #f5f6f9; text-align: center; cursor: pointer; }
.document-drop:hover, .document-drop:focus-visible, .document-drop.is-dragover, .document-drop[data-dragover="true"] { border-color: #3e5279; background: #eaedf3; }
.document-drop[aria-disabled="true"] { cursor: wait; opacity: .6; }
.document-drop-symbol { color: #66738d; font-size: 24px; line-height: 1; }
.document-drop strong { font-size: 11px; font-weight: 600; }
.document-drop > span:last-child { color: #727884; font-size: 10px; }
.document-file-name { min-height: 16px; margin: 6px 0 14px; color: #656b78; font-size: 10px; overflow-wrap: anywhere; }
.document-field-note { margin: 5px 0 12px; color: #727782; font-size: 10px; }
.document-checks { display: grid; gap: 9px; margin: 14px 0; }
.document-checks label { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; margin: 0; color: #525a6b; font-size: 11px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.document-checks input { flex: 0 0 14px; width: 14px; height: 14px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #354668; }
.document-history-periods { display: block; color: #727782; font-size: 10px; }
.document-history-periods:empty { display: none; }
.document-processing-note { margin: 10px 0; padding: 8px 10px; border-left: 2px solid #b8becb; background: #f1f3f7; color: #5e6778; font-size: 10px; line-height: 1.55; }
.document-feedback { margin: 12px 0 0; color: #686d78; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.document-feedback:empty { display: none; }
.document-feedback[data-state="error"], .document-feedback[data-status="error"], .document-feedback.is-error { color: #913f36; }
.document-result { margin-top: 14px; padding: 12px; border: 1px solid #cad0dd; border-radius: 3px; color: #435069; background: #f1f4f9; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.document-result h3 { margin: 0 0 7px; font-size: 12px; font-weight: 600; }
.document-result p { margin: 6px 0; }
.document-result ul { margin: 7px 0 0; padding-left: 18px; }
.document-result dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.document-result dt { color: #656e7f; }
.document-result dd { margin: 0; font-weight: 600; }
.document-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.document-actions button { min-height: 34px; padding: 6px 12px; border-radius: 3px; font-size: 11px; font-weight: 600; }
@media (max-width: 1160px) {
  .workspace-topbar { gap: 10px; padding: 0 10px; }
  .office-name { padding-left: 10px; font-size: 10px; }
  .office-counters > div { padding: 0 7px; }
  .office-counters dt { font-size: 9px; }
  .workspace-actions { gap: 9px; }
}
@media (max-width: 1000px) {
  .workspace-topbar { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .workspace-topbar::-webkit-scrollbar { display: none; }
  .office-counters { flex: 0 0 auto; }
  .quick-menu { position: fixed; right: 10px; top: 43px; }
  .workspace-columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(260px, 1fr); gap: 8px; }
  .personnel-card { grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 4px; padding: 8px 10px; }
  .personnel-heading { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 3px; }
  .personnel-heading h2 { font-size: 12px; }
  .personnel-status { margin: 0; }
  .personnel-core { display: none; }
  .personnel-detail { grid-column: 1; margin: 0; font-size: 10px; }
  .personnel-facts { grid-column: 1; margin: 0; padding: 0; border: 0; font-size: 9px; }
  .personnel-facts > div { justify-content: flex-start; gap: 6px; }
  .document-desk { grid-column: 2; grid-row: 1 / 4; width: auto; }
}
@media (max-width: 620px) {
  .workspace { padding: 6px; }
  .workspace-columns { height: calc(100dvh - 60px); gap: 6px; }
  .taxpayer-panel { height: calc(100dvh - 60px); }
  .personnel-card { column-gap: 8px; padding: 7px 8px; }
  .document-desk { gap: 3px; padding: 6px 8px; font-size: 10px; }
  .matrix-heading { padding: 0 8px; }
  .matrix-heading h1 { font-size: 12px; }
  .period-range { font-size: 9px; }
  .matrix-toolbar { padding: 3px 7px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .matrix-toolbar::-webkit-scrollbar { display: none; }
  .matrix-search { flex-basis: 200px; }
  .matrix-filter select { min-width: 120px; }
  .matrix-footer { padding: 0 8px; gap: 8px; }
  .matrix-legend { gap: 7px; }
  .legend-item { font-size: 8px; }
  .matrix-results, #matrix-results { font-size: 9px; }
  .undo-dialog form, .taxpayer-dialog-content { padding: 16px; }
  .undo-heading h2, .taxpayer-dialog-heading h2, .dialog-heading h2 { font-size: 16px; }
  .undo-facts { gap: 8px; }
  .undo-facts dd { font-size: 13px; }
  .taxpayer-detail-summary { gap: 8px; padding: 10px; }
  .taxpayer-detail-summary dt { font-size: 9px; }
  .taxpayer-detail-summary dd { font-size: 16px; }
  .document-form { padding: 14px; }
  .document-fields { gap: 9px; }
  .document-actions button { width: 100%; }
}
@media (max-width: 380px) {
  .document-fields { grid-template-columns: minmax(0, 1fr); }
  .personnel-heading { display: block; }
  .personnel-status { margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-page *, .workspace-page *::before, .workspace-page *::after { scroll-behavior: auto !important; }
}

.berat-badge--unknown { color: #656970; background: #f1f2f3; border-color: #dddfe2; }
.login-form label { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: #1c2740; }
.login-form input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid rgba(120, 140, 190, .42); background: rgba(255, 255, 255, .7); border-radius: 10px; font-size: 13.5px; color: #14203a; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-form input:focus { outline: none; border-color: #0B5AE8; background: #fff; box-shadow: 0 0 0 4px rgba(11, 90, 232, .16); }
#login-error { color: #b23a34; min-height: 1.4em; font-size: 12px; }
#login-title:focus { outline: none; }
.login-register-link { text-align: center; margin: 14px 0 0; font-size: 12px; color: #55607a; }
.login-register-link a { color: #0B5AE8; font-weight: 600; text-decoration: none; }
.login-register-link a:hover { text-decoration: underline; }

/* ---- login dialog: glassmorphism over the blurred workspace ---- */
#login-dialog {
  width: min(400px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 26px 74px rgba(18, 46, 150, .30), inset 0 1px 0 rgba(255, 255, 255, .75);
  overflow: hidden;
}
#login-dialog::backdrop { background: rgba(14, 22, 44, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#login-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #1A46E8, #10CFFF 50%, #9A2BF0);
}
#login-dialog .login-form { position: relative; padding: 28px 26px 22px; }
#login-dialog .login-brand { display: flex; flex-direction: column; align-items: center; gap: 11px; margin: 4px 0 16px; }
#login-dialog .login-logo { height: 34px; width: auto; display: block; }
#login-dialog .login-tagline { height: 13px; width: auto; display: block; opacity: .92; }
#login-dialog #login-title { text-align: center; font-size: 15px; font-weight: 600; color: #55607a; letter-spacing: 0; margin: 0 0 16px; }
#login-dialog .matrix-dialog-close { position: absolute; top: 14px; right: 14px; background: rgba(120, 140, 190, .14); border-radius: 8px; color: #55607a; }
#login-dialog .matrix-dialog-close:hover { background: rgba(120, 140, 190, .26); color: #14203a; }
#login-dialog .taxpayer-dialog-actions { margin-top: 6px; }
#login-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1E63F5 0%, #0B4DE8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 26px rgba(13, 70, 224, .38), inset 0 1px 0 rgba(255, 255, 255, .30);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
#login-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 32px rgba(13, 70, 224, .46), inset 0 1px 0 rgba(255, 255, 255, .30); }
#login-submit:active { transform: translateY(1px); }
