/* Additions for server forms and accessibility; delivered style.css remains unchanged. */
[hidden]{display:none!important}.mobile-shade{border:0}.form-error:empty,[data-document-downloads]:empty{display:none}button.menu-item{width:100%;text-align:left}button:disabled{opacity:.55;cursor:wait}code,pre{overflow-wrap:anywhere;white-space:pre-wrap}.field input[readonly]{background:#f6f8f9;color:#66757b}.production-chart{display:flex;height:235px;margin:20px 20px 0;gap:12px}.chart-y{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#8c969a;width:55px;padding-bottom:26px}.production-chart .chart-bars{display:flex;flex:1;gap:13px;align-items:stretch;border-bottom:1px solid #e6ecec;background:repeating-linear-gradient(to top,transparent 0,transparent 79px,#edf1f1 80px,#edf1f1 81px)}.chart-month{display:flex;flex:1;flex-direction:column;justify-content:flex-end;text-align:center;font-size:10px;color:#78888e;min-width:0}.bar-pair{display:flex;align-items:flex-end;justify-content:center;height:205px;gap:4px}.bar-pair .bar{width:13px;min-height:1px;border-radius:4px 4px 0 0;background:#0a8f85}.bar-pair .bar.paid{background:#b2ddd6}.chart-month>span{padding:8px 0}.mfa-panel{margin-top:24px}.mfa-panel form{margin:18px 0}.mfa-panel img{max-width:100%;height:auto}.job-state{padding:12px;border-radius:8px;background:#edf7f5;margin:12px 0}.backup-row{flex-wrap:wrap}.backup-row .actions{margin-left:auto}.details-json{font:13px monospace;background:#f6f8f8;padding:16px;border-radius:8px}.document-paper p{white-space:pre-wrap}.auth-card .form-error{margin:12px 0}.htmx-request{opacity:.65}.htmx-request button{pointer-events:none}.invoice-highlight .detail-grid dd{overflow-wrap:anywhere}.editor-items-foot{gap:12px}.record-row a{overflow-wrap:anywhere}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #0a8f85;outline-offset:3px}@media(max-width:600px){.production-chart{gap:4px;margin:12px 8px}.production-chart .chart-bars{gap:4px}.bar-pair{gap:2px}.bar-pair .bar{width:6px}.chart-y{font-size:9px;width:42px}.chart-month{font-size:9px}.field{min-width:0}.record-row{flex-wrap:wrap}.breadcrumbs b{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backup-row .actions{margin-left:0}}
/* Version rows sit in a narrow document sidebar at every viewport. */
[data-kind="versions"] .record-row{flex-wrap:wrap;gap:10px;min-width:0}
[data-kind="versions"] .record-row>small{flex-basis:100%;overflow-wrap:anywhere}
.detail-layout>*,.settings-layout>*,.record-row>*{min-width:0}
[data-kind="sessions"] .record-row>span{overflow-wrap:anywhere}
/* Audit actions and identifiers remain complete without painting over neighbours. */
[data-kind="audit"] .record-row>*{overflow-wrap:anywhere}

.document-template-settings{margin-top:24px}.template-editor{border-top:1px solid #edf1f3;padding:18px 0}.template-editor>summary{cursor:pointer;font-weight:600}.template-editor>summary small{font-weight:400;color:#889ba2}.template-editor form{padding-top:20px}.template-editor input[type="file"]{max-width:100%}

.tax-reason{display:block;margin-top:7px;color:#7c8d93;font-size:.7rem;line-height:1.5}.tax-reason input{margin-top:4px;min-width:0;width:100%}

.inline-sort{display:flex;gap:8px;align-items:center;margin-left:auto}.list-summary>span{color:#8c9ca5;font-size:.8rem}@media(max-width:600px){.list-summary{flex-wrap:wrap;gap:12px}.inline-sort{margin-left:0;width:100%}}

.email-preview{display:block;width:100%;height:340px;border:1px solid #e5eeea;border-radius:8px;margin-top:16px;background:#f5f7f7}.attachment-checks{display:flex;flex-direction:column;gap:8px;margin:12px 0}.attachment-checks label{font-size:.8rem;color:#6d8087}

.amount-words{font-size:9px;color:#666;line-height:1.6;margin:12px 0}.paper-signatures small{display:block;margin-top:8px;font-size:9px}.pagination{display:flex;justify-content:flex-end;gap:10px;padding:16px}

.project-assignees{max-height:260px;overflow:auto;padding:4px 0}.project-assignees:focus-visible{outline:3px solid #98d2ca;outline-offset:3px}

.auth-page .auth-brand{justify-content:center}.auth-page .auth-brand img{display:block;width:128px;height:auto}

/* Document-language preview stays in the existing invoice layout. */
.paper-label{font-style:normal}.amount-words{text-align:right;overflow-wrap:anywhere;white-space:normal}.paper-international-bank{font-size:10px;line-height:1.45;margin:14px 0 0 30px;overflow-wrap:anywhere}.paper-international-bank p{font-size:10px;line-height:1.45}.paper[data-document-language="en"] .paper-meta{font-size:14px}.paper[data-document-language="en"] .paper-signatures>span{white-space:normal;min-width:0;flex:1}.paper[data-document-language="en"] .paper-content{padding-top:30px}.paper[data-document-language="en"] .paper-meta{margin-top:35px;margin-bottom:35px}

/* Application confirmation/input dialogs keep focus and actions in the workspace. */
dialog.platform-dialog{position:fixed;inset:0;width:min(440px,calc(100vw - 36px));max-height:calc(100dvh - 36px);margin:auto;padding:28px;border:1px solid var(--border,#dfe8eb);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#26353b);box-shadow:0 24px 80px #142e3d38;overflow:auto}
dialog.platform-dialog::backdrop{background:#162d3c66;backdrop-filter:blur(3px)}
.platform-dialog form{display:flex;flex-direction:column;gap:16px}.platform-dialog h2{font-size:20px;line-height:1.3;margin:0}.platform-dialog p{font-size:14px;line-height:1.6;color:var(--muted,#657b86);margin:0;white-space:pre-wrap}.platform-dialog-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#e4f5f1;color:#078e83;font-size:25px;font-weight:700}.platform-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.platform-dialog textarea{width:100%;resize:vertical;min-height:88px}.platform-dialog button:focus-visible{outline:3px solid #0a8f8550;outline-offset:3px}

/* Company assets and currency-aware financial groups. */
.signature-thumbnail{display:block;max-width:260px;max-height:160px;object-fit:contain;border:1px solid var(--line,#e3e9eb);border-radius:12px;padding:12px;margin:12px 0;background:repeating-conic-gradient(#f1f4f4 0% 25%,#fff 0% 50%) 50%/16px 16px}.currency-heading{margin:22px 0 12px}.currency-total{display:inline-block;margin-right:18px;white-space:nowrap}.paper-international-bank p{margin:0}.paper[data-document-language=en] .paper-footer>div{max-width:62%;font-size:7px}.paper[data-document-language=en] .paper-international-bank{margin:0;border:0;padding:0;font-size:7px}dialog#modal{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px)}

.invoice-print-frame{position:fixed;left:-10000px;top:0;width:800px;height:1100px;border:0}.invoice-export-options{margin:12px 0}.invoice-export-options .muted{font-size:12px;line-height:1.5}
