:root{--ink:#1b2430;--muted:#4a5565;--line:#d5dae1;--surface:#fff;--canvas:#f4f6f8;--accent:#0b5cad;--accent-ink:#fff;--accent-hover:#084a8c;--danger:#a3261b;--danger-bg:#fdecea;--ok:#1d6b35;--ok-bg:#e8f5ec;--warn:#7a4b00;--warn-bg:#fff4e0;--info-bg:#e8f1fb;--focus:#b35c00;--radius:8px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--canvas);color:var(--ink);font-family:var(--font);margin:0;font-size:1rem;line-height:1.5}.page{flex-direction:column;max-width:72rem;min-height:100vh;margin:0 auto;padding:1.5rem 1rem 2rem;display:flex}main{flex:1;min-width:0}main:focus{outline:none}h1,h2,h3{margin:0 0 .75rem;line-height:1.25}h1{font-size:1.6rem}h2{margin-top:.25rem;font-size:1.2rem}p{margin:0 0 .75rem}a{color:var(--accent);text-underline-offset:2px}a:hover{color:var(--accent-hover)}:focus-visible,input[type=date]:focus-within{outline:3px solid var(--focus);outline-offset:2px;border-radius:2px}.skip-link{background:var(--surface);color:var(--accent);border:2px solid var(--accent);border-radius:var(--radius);z-index:10;padding:.5rem .75rem;position:absolute;top:-3rem;left:.5rem}.skip-link:focus{top:.5rem}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:1.25rem;padding:1.25rem}.narrow{max-width:40rem}.muted{color:var(--muted)}.account-header{flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.company-logo{object-fit:contain;width:auto;max-width:180px;height:auto;max-height:56px}.account-header h1{margin:0}.account-header p{margin:.25rem 0 0}.totals{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1rem;margin:0 0 1.25rem;display:grid}.totals div{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.25rem}.totals dt{color:var(--muted);font-size:.9rem}.totals dd{font-variant-numeric:tabular-nums;margin:.25rem 0 0;font-size:1.35rem;font-weight:600}.totals .overdue dd{color:var(--danger)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}caption{text-align:left;padding-bottom:.5rem;font-size:1.1rem;font-weight:600}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;padding:.6rem .5rem}th{color:var(--muted);white-space:nowrap;font-size:.85rem;font-weight:600}td.num,th.num{text-align:right;white-space:nowrap}td.select{width:2.5rem}td.select input{width:1.5rem;height:1.5rem;margin:.25rem}.aging td{font-weight:600}.row-actions{white-space:nowrap;flex-wrap:wrap;gap:.5rem;display:flex}.row-actions a,.contact a,.site-footer a,.back-link{align-items:center;min-height:2.75rem;display:inline-flex}.row-actions a{padding:0 .4rem}.chips{flex-wrap:wrap;gap:.25rem;margin:0;padding:0;list-style:none;display:flex}.chip{white-space:nowrap;border:1px solid;border-radius:999px;padding:.1rem .5rem;font-size:.8rem;font-weight:600;display:inline-block}.chip-disputed{color:var(--danger);background:var(--danger-bg)}.chip-promised{color:var(--warn);background:var(--warn-bg)}.chip-pending{color:var(--ok);background:var(--ok-bg)}.button,button{font:inherit;border-radius:var(--radius);border:2px solid var(--accent);background:var(--accent);min-height:2.75rem;color:var(--accent-ink);cursor:pointer;justify-content:center;align-items:center;gap:.4rem;padding:.5rem 1rem;font-weight:600;text-decoration:none;display:inline-flex}.button:hover,button:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-ink)}.button.secondary,button.secondary{background:var(--surface);color:var(--accent)}.button.secondary:hover,button.secondary:hover{background:var(--info-bg);color:var(--accent-hover)}button:disabled{opacity:.6;cursor:not-allowed}.toolbar{flex-wrap:wrap;gap:.75rem;margin-bottom:1.25rem;display:flex}.form-actions{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-top:1rem;display:flex}fieldset{border:1px solid var(--line);border-radius:var(--radius);margin:0;padding:.75rem 1rem 1rem}legend{padding:0 .25rem;font-weight:600}label{margin-bottom:.25rem;font-weight:600;display:block}.field{margin-bottom:1rem}.field-row{flex-wrap:wrap;align-items:flex-end;gap:.75rem;display:flex}input[type=date],select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--muted);border-radius:var(--radius);min-height:2.75rem;padding:.5rem .6rem}textarea{resize:vertical;width:100%;min-height:6rem}select{width:100%}.hint{color:var(--muted);margin:.25rem 0 0;font-size:.9rem}.notice{border-radius:var(--radius);border:1px solid;margin-bottom:1.25rem;padding:.75rem 1rem}.notice>p:last-child{margin-bottom:0}.notice-ok{color:var(--ok);background:var(--ok-bg)}.notice-error{color:var(--danger);background:var(--danger-bg)}.notice-info{color:var(--ink);background:var(--info-bg);border-color:var(--accent)}.pay-links{gap:.5rem;margin:.75rem 0 0;padding:0;list-style:none;display:grid}.contact dl{grid-template-columns:max-content 1fr;align-items:center;gap:.25rem 1rem;margin:0;display:grid}.contact dt{color:var(--muted)}.contact dd{margin:0}.site-footer{border-top:1px solid var(--line);color:var(--muted);margin-top:2rem;padding-top:1rem;font-size:.9rem}.site-footer ul{flex-wrap:wrap;gap:0 1.25rem;margin:0 0 .5rem;padding:0;list-style:none;display:flex}.brand-line{margin:0}.prose{max-width:44rem}.prose ul{padding-left:1.25rem}.prose li{margin-bottom:.4rem}@media (max-width:40rem){h1{font-size:1.35rem}.card{padding:1rem}}@media (max-width:48rem){.stack thead{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.stack,.stack caption,.stack tbody,.stack tr,.stack td{width:100%;display:block}.stack tr{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:.75rem;padding:.25rem .75rem}.stack td,.stack td.num{text-align:right;white-space:normal;justify-content:space-between;align-items:center;gap:1rem;padding:.4rem 0;display:flex}.stack td:last-child{border-bottom:0}.stack td:empty{display:none}.stack td[data-label]:before{content:attr(data-label);content:attr(data-label) / "";color:var(--muted);text-align:left;font-weight:600}.stack td.select,.stack td.actions{justify-content:flex-start}.stack .chips{justify-content:flex-end}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}td.nowrap{white-space:nowrap}.header-title{font-size:1.25rem;font-weight:600;line-height:1.25}.tabs{border-bottom:1px solid var(--line);margin:0 0 1.25rem}.tabs ul{flex-wrap:wrap;gap:0 .25rem;margin:0;padding:0;list-style:none;display:flex}.tabs a{min-height:2.75rem;color:var(--accent);border-bottom:3px solid #0000;align-items:center;gap:.4rem;padding:0 .75rem;font-weight:600;text-decoration:none;display:inline-flex}.tabs a:hover{text-decoration:underline}.tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--accent)}.badge{background:var(--accent);min-width:1.4rem;height:1.4rem;color:var(--accent-ink);border-radius:999px;justify-content:center;align-items:center;padding:0 .4rem;font-size:.8rem;font-weight:700;display:inline-flex}.new-items{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.chip-new,.chip-default{color:var(--accent);background:var(--info-bg)}.chip-discount,.chip-status-paid{color:var(--ok);background:var(--ok-bg)}.chip-status-pending{color:var(--warn);background:var(--warn-bg)}.chip-status-failed,.chip-status-returned{color:var(--danger);background:var(--danger-bg)}.chip-status-refunded{color:var(--muted);background:var(--surface)}input[type=text]{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--muted);border-radius:var(--radius);width:100%;max-width:16rem;min-height:2.75rem;padding:.5rem .6rem}input[aria-invalid=true],select[aria-invalid=true]{border:2px solid var(--danger)}.field-error{color:var(--danger);margin:.25rem 0 0;font-weight:600}button.danger{background:var(--danger);border-color:var(--danger);color:var(--accent-ink)}button.danger:hover{background:#861f16;border-color:#861f16}.check{align-items:center;gap:.6rem;min-height:2.75rem;display:flex}.check input,.option input[type=radio]{flex:none;width:1.5rem;height:1.5rem;margin:0}.check label{margin:0}.pay-lines{gap:.75rem;margin:0 0 1rem;padding:0;list-style:none;display:grid}.pay-line{border:1px solid var(--line);border-radius:var(--radius);padding:.75rem 1rem}.pay-line-head{flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;margin-bottom:.5rem;display:flex}.pay-line-label{font-weight:600}.amount-field{margin-bottom:0}.summary{margin-bottom:1rem}.total-row th,.total-row td{color:var(--ink);border-bottom:0;font-weight:700}.options{gap:.5rem;margin:0 0 1rem;display:grid}.option{border:1px solid var(--line);border-radius:var(--radius);grid-template-columns:auto 1fr;align-items:center;column-gap:.6rem;padding:.6rem .75rem;display:grid}.option:has(input:checked){border:2px solid var(--accent);background:var(--info-bg)}.option label{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:0 1rem;min-height:2.75rem;margin:0;display:flex}.option .hint{grid-column:2;margin:0}.option-total{font-variant-numeric:tabular-nums}.disclosure,.consent{border-left:4px solid var(--accent);background:var(--info-bg);border-radius:var(--radius);margin:0 0 1rem;padding:.75rem 1rem}.disclosure h3,.consent h2,.consent h3{margin-bottom:.4rem;font-size:1rem}.disclosure p:last-child,.consent p:last-child{margin-bottom:0}h2[tabindex="-1"]:focus{outline:none}h2[tabindex="-1"]:focus-visible{outline:3px solid var(--focus)}.methods{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.method{border:1px solid var(--line);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.method-main{flex-direction:column;gap:.25rem;display:flex}.method-label{font-weight:600}.method-actions{flex-wrap:wrap;gap:.5rem;display:flex}.method-actions form,.confirm form{margin:0}.confirm{width:100%}.confirm .form-actions{margin-top:.5rem}.details{grid-template-columns:max-content 1fr;gap:.35rem 1.25rem;margin:0 0 1rem;display:grid}.details dt{color:var(--muted)}.details dd{font-variant-numeric:tabular-nums;margin:0}@media (max-width:48rem){.stack caption.visually-hidden{width:1px;height:1px;position:absolute;overflow:hidden}.stack tfoot{width:100%;display:block}.stack tfoot tr{justify-content:space-between;align-items:center;width:100%;display:flex}.stack tfoot th,.stack tfoot td{width:auto;padding:.4rem 0;display:block}}
