.crm-record-body{overscroll-behavior:contain;min-height:0;padding:16px 20px;overflow:auto}.crm-record-body :is(input:not([type=checkbox]):not([type=file]),select,button[aria-expanded]){min-width:0;min-height:36px;font-size:14px}.crm-record-body label{font-size:13px}.crm-record-footer{border-top:1px solid var(--border);background:var(--surface);flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:8px;padding:12px 20px;display:flex}.crm-record-tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:4px;display:flex}.crm-record-tabs button{cursor:pointer;text-transform:uppercase;border:1px solid #0000;border-top-width:3px;border-radius:3px 3px 0 0;padding:8px;font-size:12px;font-weight:650}.crm-record-tabs button[aria-selected=true]{border-color:var(--border);border-top-color:var(--brand-orange);background:var(--muted)}.crm-record-tabs button:focus-visible{outline:2px solid var(--ring)}@media (pointer:coarse){.crm-record-body :is(input:not([type=checkbox]):not([type=file]),select,button[aria-expanded]),.crm-record-tabs button{min-height:44px}}
.document-identity{min-width:0}.identity-panel{border:1px solid var(--border);background:var(--surface);border-radius:.75rem;min-width:0;padding:1.25rem}.identity-control{border:1px solid var(--control);background:var(--surface);width:100%;min-width:0;min-height:2.75rem;color:var(--foreground);border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem}.identity-control:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.identity-control:disabled{opacity:.6}.identity-summary{gap:.75rem;display:grid}.identity-summary dt{color:var(--muted-foreground);font-size:.8125rem}.identity-summary dd{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}.identity-warning{border-left:3px solid var(--warning,#a76b12);background:var(--muted);padding:.75rem 1rem;font-size:.875rem}.issuer-table :is(th,td){overflow-wrap:anywhere}.issuer-table tbody>tr:hover{background:var(--muted)}.issuer-table .issuer-edit{white-space:nowrap}.issuer-status{background:var(--action);color:#474e56;white-space:nowrap;border-radius:1rem;align-items:center;gap:.375rem;padding:.1875rem .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.issuer-status:before{content:"";background:currentColor;border-radius:50%;flex:none;width:.375rem;height:.375rem}.issuer-status[data-active=true]{color:#20613f;background:#e9f6ee}@media (min-width:640px){.identity-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.document-settings{min-width:0}.document-settings-card{background:var(--surface);border:1px solid var(--border);border-radius:12px}.document-settings-header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1.5rem;display:flex}.document-settings-body{padding:0 1.5rem 1.5rem}.document-settings-body>section{padding-top:1.5rem}.document-header-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.document-type-list{gap:1.25rem;display:grid}.document-status-tabs{border-bottom:1px solid var(--border);gap:1.5rem;margin-bottom:1.25rem;display:flex;overflow-x:auto}.document-status-tabs a{white-space:nowrap;color:var(--muted-foreground);border-bottom:2px solid #0000;flex-shrink:0;padding:1rem .25rem .875rem;font-size:.875rem}.document-status-tabs a[aria-current=page]{border-color:var(--primary-fill,var(--primary));color:var(--foreground);font-weight:600}.document-status-tabs a:focus-visible{outline-offset:-2px}.document-list-controls{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.document-page-size{align-items:center;gap:.5rem;font-size:.875rem;display:flex}.document-page-size select{width:5rem}.document-page-search{align-items:center;gap:.75rem;margin-left:auto;display:flex}.document-page-search input{width:14rem}.document-refresh{padding:.75rem}.document-types-table{table-layout:fixed;min-width:680px}.document-types-table th:first-child{width:34%}.document-types-table th:nth-child(2){width:25%}.document-types-table th:nth-child(3){width:20%}.document-types-table th:nth-child(4){width:12%}.document-types-table th:last-child{width:104px}.document-types-table th:not(:last-child),.document-types-table td:not(:last-child){border-right:1px solid var(--border)}.document-types-table tbody th{font-weight:400}.document-types-table tbody th a{color:var(--primary);padding:.25rem 0}.document-types-table tbody tr:last-child>*{border-bottom:0}.document-table tbody tr:hover{background:color-mix(in srgb, var(--muted) 65%, var(--surface))}.document-row-actions{justify-content:end;gap:.25rem;display:flex}.document-row-actions .document-icon-action{width:36px;min-height:36px;color:var(--muted-foreground);background:0 0;border:0;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:.5rem;display:inline-flex}.document-row-actions .document-icon-action:hover{background:var(--muted);color:var(--foreground)}.document-type-status{white-space:nowrap;align-items:center;gap:.5rem;display:inline-flex}.document-type-status:before{content:"";background:var(--muted-foreground);border-radius:50%;width:6px;height:6px}.document-type-status[data-active=true]:before{background:var(--primary-fill,var(--primary))}.document-pagination{color:var(--muted-foreground);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;font-size:.875rem;display:flex}.document-created-notice{border:1px solid var(--border);border-left:3px solid var(--primary-fill,var(--primary));border-radius:6px;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.75rem 1rem;font-size:.875rem;display:flex}.document-create-form{flex-direction:column;min-height:0;display:flex;overflow:hidden}.document-create-body{gap:1rem;padding:1.5rem;display:grid;overflow-y:auto}.document-create-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:end;gap:.75rem;padding:1rem 1.5rem;display:flex}.document-family-field{position:relative}.document-family-trigger{border-color:var(--control);justify-content:space-between;width:100%;font-weight:400}.document-family-popup{z-index:5;background:var(--surface);border:1px solid var(--control);border-radius:6px;margin-top:.5rem;padding:.25rem;position:relative;box-shadow:0 8px 24px #00000012}.document-family-search{align-items:center;gap:.5rem;padding:.25rem;display:flex}.document-family-options{max-height:12rem;overflow-y:auto}@media (min-width:768px) and (min-height:800px){.document-family-options{max-height:20rem}}.document-family-options li{cursor:pointer;border-radius:4px;justify-content:space-between;align-items:center;gap:.75rem;min-height:40px;padding:.5rem .75rem;font-size:.875rem;display:flex}.document-family-options li[aria-selected=true]{font-weight:600}.document-family-options li[data-highlighted=true],.document-family-options li:hover{background:var(--muted)}@media (pointer:coarse){.document-row-actions .document-icon-action{width:44px;min-height:44px}.document-types-table th:last-child{width:120px}}@media (max-width:640px){.document-settings-header{padding:1rem}.document-settings-body{padding:0 1rem 1rem}.document-header-actions{justify-content:space-between;gap:.5rem;width:100%}.document-page-search{flex:75%;gap:.5rem;margin-left:0;display:grid}.document-page-search input{width:100%}.document-page-size{flex-basis:100%}.document-create-body,.document-create-footer{padding:1rem}}.document-settings h1{font-size:1.75rem;font-weight:600}.document-tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.5rem 1.5rem;display:flex}.document-tabs a[aria-current=page]{border-bottom:2px solid var(--primary);font-weight:600}.document-tabs button[aria-pressed=true]{border-color:var(--primary);font-weight:600}.document-editor{gap:1.25rem;max-width:86rem;display:grid}.document-form-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem;display:grid}.document-form-fields>*,.document-design-grid>*{min-width:0}.document-control{border:1px solid var(--control);background:var(--surface);width:100%;min-height:44px;color:var(--foreground);font:inherit;border-radius:6px;padding:.625rem .75rem}.document-control:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.document-control:disabled{opacity:.65;cursor:not-allowed}.document-toolbar,.document-form-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.document-form-actions{border-top:1px solid var(--border);padding-top:1rem}.document-table-scroll{border:1px solid var(--border);border-radius:8px;max-width:100%;position:relative;overflow:auto}.document-table-scroll:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.document-table{border-collapse:collapse;background:var(--surface);font-variant-numeric:tabular-nums;width:100%;font-size:.875rem}.document-table th,.document-table td{text-align:left;vertical-align:middle;border-bottom:1px solid var(--border);overflow-wrap:anywhere;max-width:18rem;padding:.75rem}.document-table th{font-weight:600}.document-table thead,.document-table tbody tr:hover{background:var(--muted)}.document-table tbody tr:nth-child(2n){background:color-mix(in srgb, var(--muted) 30%, var(--surface))}.document-notice{border-left:3px solid var(--primary);background:var(--muted);overflow-wrap:anywhere;padding:.875rem 1rem;font-size:.875rem}.document-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.document-preset{border:1px solid var(--control);background:var(--surface);cursor:pointer;border-radius:8px;flex-direction:column;gap:.75rem;min-width:0;padding:1rem;display:flex}.document-preset[data-selected=true]{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.document-preset:focus-within{outline:2px solid var(--ring);outline-offset:2px}.document-preset-sheet{border:1px solid var(--border);background:#fff;gap:5px;width:64px;height:78px;padding:10px 8px;display:grid}.document-preset-sheet span{background:#ddd;height:5px;display:block}.document-design-grid{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);align-items:start;gap:1.5rem;display:grid}.document-sections details{border-top:1px solid var(--border);padding:1rem 0}.document-sections summary{cursor:pointer;min-height:32px;font-weight:600}.document-sections summary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.document-sections details>div,.document-sections details>p{margin-top:1rem}.document-preview{border:1px solid var(--border);background:var(--muted);border-radius:8px;min-width:0;padding:1rem}.document-preview h2{font-size:1rem;font-weight:600}.document-paper{overflow-wrap:anywhere;background:#fff;border:1px solid #d6d6d6;min-height:440px}.document-paper-header{border-bottom:2px solid;align-items:center;gap:10px;padding-bottom:8px;display:flex}.document-logo-missing{color:#555;border:1px dashed #777;justify-content:center;align-items:center;min-width:40px;min-height:24px;font-size:9px;display:inline-flex}.document-sender-line{margin-top:8px;font-size:9px}.document-example-table{border-collapse:collapse;width:100%;margin-top:18px}.document-example-table th,.document-example-table td{text-align:left;padding:7px}.document-example-table tr{border-bottom:1px solid}.document-example-total{justify-content:space-between;gap:8px;margin-top:12px;padding:8px;display:flex}.document-paper footer{border-top:1px solid;margin-top:28px;padding:10px 5px;font-size:9px}.document-block{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:1rem;padding:1rem;display:grid}@media (max-width:1100px){.document-design-grid{grid-template-columns:minmax(0,1fr)}.document-preview{max-width:36rem}}@media (max-width:640px){.document-settings h1{font-size:1.5rem}.document-form-fields,.document-presets{grid-template-columns:minmax(0,1fr)}.document-preset{grid-template-columns:64px minmax(0,1fr);display:grid}.document-preset-sheet{grid-row:span 2}.document-table{min-width:680px}}.document-classic-sheet{box-sizing:border-box;background:#fff;width:210mm;min-height:297mm;position:relative}.document-classic-sheet footer{padding:4mm;font-size:7pt;position:absolute;bottom:10mm;left:20mm;right:20mm}.document-classic-sheet th,.document-classic-sheet td{text-align:left;padding:2mm}
.document-reference-sheet{background:#fff;flex-direction:column;width:210mm;min-height:297mm;display:flex;position:relative;overflow:hidden}.document-reference-header{flex-shrink:0;position:relative}.document-reference-logo{align-items:flex-start;display:flex;position:relative;top:-1.5mm}.document-reference-logo img{object-fit:contain;object-position:inherit;width:100%;height:100%}.document-reference-photo{right:calc(-1 * var(--pdf-right));clip-path:polygon(24mm 0,100% 0,100% 100%,0 100%);background:var(--pdf-accent);padding-left:7mm;position:absolute}.document-reference-photo>span{object-position:inherit;height:100%;clip-path:inherit;background:#fff;display:block}.document-reference-photo img{object-fit:cover;object-position:inherit;width:100%;height:100%}.document-reference-company{font-size:8pt;display:block}.document-reference-follow{text-align:right;gap:2mm;max-width:60%;display:grid;position:absolute;top:0;right:0}.document-reference-follow strong{font-size:18pt}.document-reference-rule{background:var(--pdf-rule);width:100%;height:.3mm;position:absolute;bottom:0}.document-reference-rule:before{content:"";background:var(--pdf-accent);width:17mm;height:1mm;display:block}.document-reference-body{flex:1;padding:3mm 0 8mm}.document-reference-body p{margin:0 0 4mm}.document-reference-sender{color:#626870;font-size:8pt}.document-reference-body .document-reference-sender{margin-bottom:2mm}.document-reference-demo-photo{object-position:inherit;height:100%;display:block;position:relative}.document-reference-demo-photo>span{color:#262a28;background:#fff;padding:1mm 2mm;font-size:7pt;position:absolute;bottom:2mm;right:2mm}.document-reference-address{margin:0 0 14mm}.document-reference-address p{margin:0}.document-reference-content-row{grid-template-columns:minmax(0,70.5882%) minmax(0,1fr);gap:4.70588%;margin-bottom:3mm;display:grid}.document-reference-content-row>div,.document-reference-content-row dl{overflow-wrap:anywhere;min-width:0}.document-reference-content-row dl>div{min-width:0}.document-reference-sheet .document-reference-subject{overflow-wrap:anywhere;align-content:start;gap:5mm;font-size:14pt;font-weight:700;line-height:1.3;display:grid}.document-reference-sheet .document-reference-subject p{margin:0}.document-reference-content-row dl{padding-top:1mm;font-size:8pt;line-height:1.3}.document-reference-content-row dl>div{grid-template-columns:minmax(0,61%) minmax(0,1fr);gap:2mm;display:grid}.document-reference-content-row dt{font-weight:700}.document-reference-content-row dd{text-align:right;overflow-wrap:anywhere}.document-reference-sheet table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:inherit;margin:4mm 0}.document-reference-sheet th,.document-reference-sheet td{vertical-align:top;text-align:left;border:.2mm solid var(--pdf-rule);overflow-wrap:anywhere;padding:3mm 2mm}.document-reference-sheet [data-numeric=true]{text-align:right;white-space:nowrap}.document-reference-sheet [data-column=quantity]{text-align:center}.document-reference-sheet th{font-size:9pt}.document-reference-sheet [data-structural=true] td{padding-top:2mm;padding-bottom:2mm;font-weight:700}.document-reference-illustration{width:85mm;max-height:40mm;margin:4mm 0}.document-reference-illustration img,.document-reference-illustration svg{object-fit:contain;object-position:left;width:100%;height:40mm}.document-position-illustration{float:left;width:20mm;margin-right:3mm}.document-reference-sheet td p{margin:2mm 0 0}.document-reference-totals{background:#f1f3f1;width:57%;margin:5mm 0 8mm auto}.document-reference-totals>div{border-bottom:.2mm solid #fff;justify-content:space-between;gap:3mm;padding:3mm 4mm;display:flex}.document-reference-terms{grid-template-columns:repeat(3,minmax(0,1fr));gap:5mm;margin:8mm 0;font-size:9pt;display:grid}.document-reference-terms>div+div{border-left:.2mm solid var(--pdf-rule);padding-left:5mm}.document-reference-terms strong:after{content:"";background:var(--pdf-accent);width:8mm;height:1mm;margin:2mm 0;display:block}.document-reference-sheet footer{margin:0 calc(-1 * var(--pdf-right)) 0 calc(-1 * var(--pdf-left));min-height:28mm;padding:7mm var(--pdf-right) 6mm var(--pdf-left);text-align:center;grid-template-columns:24% 60% 16%;align-items:center;gap:2mm;font-size:7pt;display:grid;position:relative}.document-reference-sheet footer:after{content:"";background:var(--pdf-accent);clip-path:polygon(100% 0,100% 100%,0 100%);width:26mm;position:absolute;top:0;bottom:0;right:0}.document-reference-sheet footer>span{z-index:1;overflow-wrap:anywhere}.document-reference-sheet footer>span:first-child{border-right:.3mm solid var(--pdf-accent);text-align:left;padding-right:4mm}.document-photo-gallery{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.document-photo-card{border:1px solid var(--border);border-radius:8px;gap:10px;padding:10px;font-size:12px;display:grid}.document-photo-card[data-selected=true]{outline:2px solid var(--foreground);outline-offset:1px}.document-photo-thumbnail{background:var(--muted);height:100px;display:block;overflow:hidden}.document-photo-image{object-fit:cover;object-position:inherit;width:100%;height:100%}.document-profile-logo{border:1px solid var(--border);border-radius:8px;gap:8px;padding:12px;font-size:12px;display:grid}.document-profile-logo img{object-fit:contain;width:160px;max-height:72px}@font-face{font-family:CRM Liberation Sans;src:url(/fonts/LiberationSans-Regular.ttf)format("truetype");font-weight:400;font-display:swap}@font-face{font-family:CRM Liberation Sans;src:url(/fonts/LiberationSans-Bold.ttf)format("truetype");font-weight:700;font-display:swap}
.document-type-surface>.document-settings-body,.document-type-surface .document-settings-body>section{padding:0}.document-type-workspace{min-width:0;container-type:inline-size}.document-type-header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem 1.5rem;display:flex}.document-type-header h1{font-size:1.5rem}.document-type-header>div>a{color:var(--muted-foreground);align-items:center;gap:.5rem;padding:0 0 .5rem;font-size:.8125rem;display:inline-flex}.document-type-header p{color:var(--muted-foreground);margin-top:.25rem;font-size:.875rem}.document-type-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.document-type-columns{grid-template-columns:164px minmax(280px,1fr) minmax(320px,1.15fr);align-items:stretch;min-width:0;height:calc(100dvh - 244px);min-height:34rem;display:grid}.document-type-navigation{align-content:start;gap:.25rem;padding:1.25rem .75rem;display:grid;overflow-y:auto}.document-type-section-select{display:none}.document-type-navigation>p{color:var(--muted-foreground);padding:0 .75rem .75rem;font-size:.75rem}.document-type-navigation button{text-align:left;background:0 0;border-color:#0000;justify-content:start;padding:.625rem .75rem;font-size:.8125rem;font-weight:400;line-height:1.5}.document-type-navigation button:hover{background:var(--muted)}.document-type-navigation button[aria-current=page]{background:var(--muted);box-shadow:inset 2px 0 var(--primary-fill,var(--primary));font-weight:600}.document-type-fields{border-inline:1px solid var(--border);min-width:0;min-height:0;padding:1.5rem 1.25rem;overflow-y:auto}.document-type-fields>h2{margin-bottom:1.5rem;font-size:1rem}.document-type-fields .document-form-fields{grid-template-columns:minmax(0,1fr)}.document-type-fields input:not([type=checkbox]):not([type=color]),.document-type-fields select{font-size:.875rem}.document-design-context{border-bottom:1px solid var(--border);gap:.75rem;padding-bottom:1.25rem;display:grid}.document-design-context>p{color:var(--muted-foreground);font-size:.8125rem}.document-design-context button{padding-inline:.75rem;font-size:.75rem}.document-type-preview{background:var(--muted);border-radius:0 0 12px;flex-direction:column;gap:.75rem;min-width:0;max-height:100%;padding:1.25rem;display:flex;overflow:hidden}.document-preview-heading{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.document-preview-heading h2{font-size:1rem}.document-preview-heading span{color:var(--muted-foreground);font-size:.75rem}.document-preview-modes,.document-preview-pages{flex-wrap:wrap;gap:.5rem;display:flex}.document-preview-modes button,.document-preview-pages button{min-height:36px;padding:.5rem .625rem;font-size:.75rem;font-weight:400}.document-preview-modes button[aria-pressed=true],.document-preview-pages button[aria-pressed=true]{border-color:var(--control);background:var(--surface);font-weight:600}.document-preview-content{flex-direction:column;gap:.75rem;min-height:0;display:flex;overflow:auto}.document-preview-disclaimer{color:var(--muted-foreground);font-size:.75rem;line-height:1.5}.document-saved-pdf{flex-direction:column;gap:.75rem;min-height:0;display:flex;overflow:auto}.document-embedded-pdf{flex-direction:column;min-height:0;display:flex}.document-embedded-pdf iframe{min-height:24rem}.document-type-workspace [hidden],.document-workspace-feedback:empty{display:none}.document-workspace-feedback:not(:empty){border-bottom:1px solid var(--border);gap:.75rem;padding:1rem 1.5rem;font-size:.875rem;display:grid}.document-design-picker{gap:1.25rem;padding:1.5rem;display:grid;overflow-y:auto}.document-picker-tabs{flex-wrap:wrap;gap:.5rem;display:flex}.document-picker-tabs [aria-pressed=true]{border-color:var(--control)}.document-preset-list{gap:.5rem;display:grid}.document-preset-list button{justify-content:start;gap:.75rem}.document-preset-swatch{border:1px solid var(--border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.document-sheet-viewport{width:100%;min-width:0;max-width:100%;position:relative;overflow:auto}.document-sheet-viewport:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.document-sheet-scale{transform-origin:0 0;width:210mm}.document-a4{flex-direction:column;width:210mm;min-height:297mm;display:flex}.document-a4 .document-a4-header{padding-bottom:3mm;display:block}.document-a4-brand{justify-content:space-between;align-items:center;gap:5mm;display:flex}.document-a4-banner{width:100%;margin-bottom:3mm}.document-a4-body{flex:1;padding-top:5mm}.document-a4 .document-sender-line{margin-top:0;font-size:8pt}.document-a4-recipient{margin-top:10mm}.document-a4 h3{margin:10mm 0 6mm}.document-a4-template p+p{margin-top:3mm}.document-a4 :where(table,thead){font-size:inherit}.document-a4 .document-example-table{table-layout:fixed;margin-top:8mm}.document-a4 th,.document-a4 td{padding:3mm 2mm}.document-a4 th:first-child{width:10%}.document-a4 th:last-child{width:28%}.document-a4 th:last-child,.document-a4 td:last-child{text-align:right}.document-a4 tbody tr{border-style:solid;border-width:0 0 1px}.document-a4 .document-example-total{width:65%;margin:5mm 0 0 auto;padding:3mm}.document-a4-contact{margin-top:10mm}.document-a4 footer{margin-top:10mm;padding:4mm 0 0;font-size:8pt}@container (max-width:900px){.document-type-columns{grid-template-columns:minmax(260px,1fr) minmax(300px,1fr);height:auto;min-height:0}.document-type-navigation{border-bottom:1px solid var(--border);flex-wrap:wrap;grid-column:1/-1;padding:.75rem;display:flex;position:static}.document-type-navigation>p{display:none}.document-type-navigation button{min-height:36px;padding:.5rem .75rem}.document-type-fields{border-left:0;overflow:visible}.document-type-preview{max-height:calc(100dvh - 96px);position:sticky;top:80px}}@container (max-width:640px){.document-type-navigation>button{display:none}.document-type-section-select{gap:.5rem;width:100%;font-size:.875rem;display:grid}.document-type-header{padding:1rem}.document-type-header h1{font-size:1.25rem}.document-type-actions{width:100%}.document-type-actions>button{flex:auto}.document-type-columns{grid-template-columns:minmax(0,1fr)}.document-type-fields{border:0;min-height:0;padding:1.25rem 1rem}.document-type-preview{border-top:1px solid var(--border);border-radius:0 0 12px 12px;max-height:none;padding:1rem;position:static}.document-preview-content{overflow:visible}.document-type-preview .document-sheet-viewport{max-height:36rem}}@media (pointer:coarse){.document-preview-modes button,.document-preview-pages button,.document-type-navigation button{min-height:44px}}
.document-list-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));align-items:end;gap:12px;min-width:0;display:grid}.document-list-filters>label{min-width:0}.document-list-filters :is(input,select){width:100%;min-width:0;height:44px;min-height:44px;font-size:14px;line-height:20px}.document-list-filters>[role=alert]{grid-column:1/-1}
.sales-workspace-type-navigation{min-width:0}.sales-workspace-group-toggle{text-align:left;width:100%;min-height:44px;color:var(--muted-foreground);border-radius:6px;align-items:center;gap:8px;padding:8px 12px;font-size:14px;display:flex}.sales-workspace-group-toggle>:last-child{margin-left:auto;transition:transform .15s}.sales-workspace-group-toggle[aria-expanded=true]>:last-child{transform:rotate(180deg)}.sales-workspace-type-links{border-left:1px solid var(--border);margin:0 0 8px 20px}.sales-workspace-type-links>button{width:100%;min-height:40px;color:var(--muted-foreground);text-align:left;border-left:2px solid #0000;justify-content:space-between;align-items:center;gap:8px;padding:8px 8px 8px 12px;font-size:13px;display:flex}.sales-workspace-type-links>button>:first-child{overflow-wrap:anywhere}.sales-workspace-type-links>button[aria-current=page]{border-left-color:var(--brand-orange);background:var(--muted);color:var(--foreground);font-weight:500}.sales-workspace-type-count{font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}.sales-workspace-type-links>p{color:var(--muted-foreground);padding:8px 12px;font-size:12px}.sales-workspace-type-navigation button:hover{background:var(--muted)}.sales-workspace-type-navigation button:focus-visible,.document-icon-button:focus-visible,.document-actions-popover :focus-visible{outline:2px solid var(--ring);outline-offset:2px}.document-workspace{min-width:0}.document-workspace-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.document-workspace-header h2{overflow-wrap:anywhere;font-size:20px;font-weight:600}.document-workspace-tools{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:20px;display:flex}.document-workspace-search{flex:15rem}.document-workspace-tools .sales-select{width:auto;min-width:9rem}.workspace-document-list{margin:0;padding:0;list-style:none}.workspace-document-row{border-bottom:1px solid var(--border);grid-template-columns:48px minmax(0,1fr) auto;align-items:start;gap:16px;padding:24px 0;display:grid}.workspace-document-icon{border:1px solid var(--border);width:48px;height:64px;color:var(--muted-foreground);background:var(--surface);border-radius:4px;justify-content:center;align-items:center;display:flex}.workspace-document-icon svg{width:32px;height:40px}.workspace-document-title{background:0 0;border:0;border-radius:2px;min-height:0;padding:0;font-size:15px;font-weight:500;display:inline}.workspace-document-number{color:var(--muted-foreground);margin-left:8px;font-size:13px}.workspace-document-status{border:1px solid var(--border);color:var(--muted-foreground);border-radius:4px;margin-top:8px;padding:2px 8px;font-size:12px;display:table}.workspace-document-dates{color:var(--muted-foreground);flex-wrap:wrap;gap:8px 24px;margin-top:16px;font-size:13px;display:flex}.workspace-document-actions{gap:6px;display:flex}.document-icon-button{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;min-height:36px;color:var(--foreground);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.document-note-dot{background:var(--brand-orange);border-radius:50%;width:5px;height:5px;position:absolute;top:5px;right:5px}.document-actions-menu{position:relative}.document-actions-menu summary{list-style:none}.document-actions-menu summary::-webkit-details-marker{display:none}.document-actions-popover{z-index:20;border:1px solid var(--border);background:var(--surface);border-radius:8px;width:176px;padding:4px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 4px 12px #00000014}.document-actions-popover>*{text-align:left;border-radius:4px;align-items:center;gap:10px;min-height:40px;padding:8px 12px;font-size:14px;display:flex}.document-actions-popover>:hover{background:var(--muted)}.document-dialog-form{flex-direction:column;min-height:0;display:flex}.document-dialog-body{overscroll-behavior:contain;overflow-wrap:anywhere;gap:16px;min-height:0;padding:24px;display:grid;overflow-y:auto}.document-note-input{resize:vertical;border:1px solid var(--control);background:var(--surface);border-radius:6px;width:100%;min-height:min(18rem,36dvh);padding:12px;font-size:16px;display:block}.document-note-input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.document-dialog-footer{border-top:1px solid var(--border);flex-shrink:0;justify-content:flex-end;gap:8px;padding:16px 24px;display:flex}.document-delete-button{background:var(--destructive);color:#fff}.document-delete-button:hover{filter:brightness(.9)}.document-workspace-empty{text-align:center;color:var(--muted-foreground);padding:48px 16px;font-size:14px}.document-workspace-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;font-size:13px;display:flex}@media (pointer:coarse){.document-icon-button{width:44px;height:44px;min-height:44px}}@media (max-width:640px){.workspace-document-row{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:20px 0}.workspace-document-icon{width:36px;height:48px}.workspace-document-icon svg{width:24px;height:30px}.workspace-document-actions{grid-column:2;justify-content:flex-end}.workspace-document-dates{flex-direction:column;gap:4px}.document-dialog-body{padding:20px}.document-dialog-footer{padding:16px 20px}}
.document-status-badge{border:1px solid var(--border);background:var(--surface);min-height:26px;color:var(--foreground);white-space:nowrap;border-radius:4px;align-items:center;gap:6px;padding:2px 8px;font-size:12px;font-weight:400;line-height:20px;display:inline-flex}.document-status-badge .document-status-chevron{width:14px;height:14px}.document-status-control{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.document-payment-status{color:var(--muted-foreground);background:var(--muted)}.document-payment-due-tooltip{z-index:90;background:var(--foreground);max-width:calc(100vw - 16px);color:var(--background);pointer-events:none;border-radius:5px;padding:8px 12px;font-size:12px;font-weight:600;line-height:18px;position:fixed}.document-payment-due-tooltip:after{background:inherit;content:"";width:10px;height:10px;position:absolute;left:calc(50% - 5px);transform:rotate(45deg)}.document-payment-due-tooltip[data-side=top]:after{bottom:-4px}.document-payment-due-tooltip[data-side=bottom]:after{top:-4px}.document-status-menu{z-index:80;width:216px;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;right:auto;overflow-y:auto}.document-status-menu>button{background:0 0;border:0;justify-content:space-between;width:100%;min-height:40px;font-weight:400}.document-status-menu>button[aria-checked=true]{background:var(--muted)}.document-status-menu>button:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.document-status-feedback{white-space:normal;max-width:30rem;color:var(--muted-foreground);font-size:12px}.document-status-feedback [role=alert]{color:var(--destructive)}.workspace-document-statuses{flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;display:flex}@media (pointer:coarse){button.document-status-badge,.document-status-menu>button{min-height:44px}}
.document-actions-popover.document-row-menu{z-index:80;width:min(224px,100vw - 16px);max-height:calc(100dvh - 16px);margin:0;position:fixed;right:auto;overflow-y:auto}.document-row-menu.document-export-menu{z-index:81;width:min(144px,100vw - 16px)}.document-row-menu :focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.logbook-item-body:before{background:var(--brand-orange);clip-path:polygon(100% 0,0 50%,100% 100%);content:"";width:.5rem;height:.75rem;position:absolute;top:.95rem;right:100%}.logbook-item-body a{color:#075ab5}
