.sw-tabs{display:flex;gap:6px;margin:4px 0 18px;border-bottom:1px solid var(--line)}
.sw-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:14px 22px;font:inherit;font-weight:650;color:var(--steel);cursor:pointer}
.sw-tabs button[aria-selected=true]{border-bottom-color:var(--red);color:var(--text)}
.sw-tabs button span{font-size:12px;background:var(--surface-2);border-radius:6px;padding:3px 7px;margin-left:10px}
.sw-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}
.sw-registry td{padding:15px 14px;vertical-align:middle}.sw-registry tbody tr{cursor:pointer}.sw-registry tbody tr:hover{background:var(--surface-2)}
.sw-registry small{display:block;color:var(--steel);font-size:12px;margin-top:5px}.sw-contents{max-width:320px;overflow-wrap:anywhere}.sw-money{white-space:nowrap;font-weight:650;font-variant-numeric:tabular-nums}
.sw-status{display:inline-flex;padding:6px 10px;border-radius:7px;font-size:12px;font-weight:650;white-space:nowrap}.sw-status.waiting{background:#fff2d9;color:#986000}.sw-status.draft{background:var(--surface-2);color:var(--steel)}.sw-status.paid{background:#e6f5ec;color:#198451}
.sw-delete{background:none;border:0;color:var(--steel);font-size:20px;margin-left:10px;cursor:pointer}.sw-empty{text-align:center;color:var(--steel);padding:40px!important}
.sw-new-menu{position:fixed;z-index:30000;width:290px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 12px 40px #0002;animation:sw-appear .15s ease-out}
.sw-new-menu button{width:100%;border:0;background:transparent;border-radius:9px;display:block;text-align:left;padding:12px;font:inherit;color:var(--text);cursor:pointer}.sw-new-menu button:hover,.sw-new-menu button:focus-visible{background:var(--surface-2)}.sw-new-menu small{display:block;font-size:12px;color:var(--steel);margin-top:5px}
#newInvoiceDialog .mhead{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:8px 20px;padding-right:70px;align-items:center}
#newInvoiceDialog .mhead .mnum{grid-column:1;grid-row:1;margin:0;font-size:23px}
#newInvoiceDialog .mhead .mcust{grid-column:1/-1;grid-row:2}
.sw-buyer-switch{grid-column:2;grid-row:1;display:flex;padding:4px;border-radius:10px;background:var(--surface-2);gap:3px}
.sw-buyer-switch button{font:inherit;font-size:13px;font-weight:600;white-space:nowrap;border:0;border-radius:7px;background:transparent;color:var(--steel);padding:9px 12px;cursor:pointer}.sw-buyer-switch button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #0001}
.sw-draft-dialog{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:18px;padding:26px;width:520px;max-width:calc(100% - 40px);box-shadow:0 20px 80px #0003;animation:sw-appear .16s ease-out}
.sw-draft-dialog::backdrop{background:#171a2466}.sw-draft-dialog h3{margin:0 0 12px;font-size:22px}.sw-draft-dialog p{color:var(--steel);line-height:1.6}.sw-draft-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.sw-save-draft{background:#198451!important;border-color:#198451!important}.sw-draft-error{color:var(--red);line-height:1.5}
@keyframes sw-appear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.sw-new-menu,.sw-draft-dialog{animation:none}}

.sw-table-scroll{overflow-x:auto;border-radius:16px}.sw-registry{table-layout:fixed;width:100%;min-width:950px}.sw-registry th{font-size:12px;line-height:1.4;white-space:normal}.sw-registry td{padding:14px 12px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.sw-registry .sw-document strong{font-weight:650}.sw-document small{font-variant-numeric:tabular-nums}.sw-model{display:block;font-weight:600}.sw-registry small.sw-for{margin:0 0 2px}.sw-buyer-type.leasing{color:#6250a8;font-weight:650}.sw-registry .sw-status{white-space:normal;line-height:1.3;padding:6px 8px}.sw-registry .sw-trash-cell{padding:6px;text-align:center}.sw-trash{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--steel);cursor:pointer;transition:background .15s,color .15s}.sw-trash svg{width:19px;height:19px}.sw-trash:hover:not(:disabled),.sw-trash:focus-visible{background:#fce9eb;color:var(--red)}.sw-trash:disabled{opacity:.3;cursor:default}.sw-registry tbody tr:focus-visible{outline:2px solid var(--red);outline-offset:-2px}.sw-tool-actions{display:flex;align-items:center;gap:16px}.sw-removed-toggle{border:0;background:transparent;color:var(--steel);font:inherit;font-size:12px;cursor:pointer}.sw-removed-list{border:1px solid var(--line);border-radius:12px;padding:4px 16px;margin-bottom:16px;background:var(--surface)}.sw-removed-list>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0}.sw-removed-list small{display:block;color:var(--steel);margin-top:3px;font-size:12px}

.sw-registry .sw-status{overflow-wrap:normal}.sw-registry .sw-status.draft,.sw-registry .sw-status.paid{white-space:nowrap}
