/* Account section (billing). One set of building blocks for every Account page:
   .acc page → .acc-head (title + actions) → .acc-kpis (stat cards) → .acc-card (head / toolbar / body / table / foot).
   Documents and forms use .acc-split: main column + .acc-side summary column. */

/* sidebar icons for the Account group */
.sidebar a[href$="/admin/billing.php?type=quotation"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M16 13H8 M16 17H8 M10 9H8'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing.php?type=invoice"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1z M16 8H8 M16 12H8 M13 16H8'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing-receipts.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h20v12H2z M12 10a2 2 0 1 0 0 4a2 2 0 1 0 0-4 M6 12h.01 M18 12h.01'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing-statements.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h18v18H3z M7 8h10 M7 12h10 M7 16h6'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing.php?type=purchase_order"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21a1 1 0 1 0 0-2a1 1 0 1 0 0 2 M20 21a1 1 0 1 0 0-2a1 1 0 1 0 0 2 M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/suppliers.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1z M16 8h4l3 3v5h-7z M5.5 21a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5 M18.5 21a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing-items.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z M7 7h.01'/%3E%3C/svg%3E")}
.sidebar a[href$="/admin/billing-settings.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7 M4 10V3 M12 21v-9 M12 8V3 M20 21v-5 M20 12V3 M1 14h6 M9 8h6 M17 16h6'/%3E%3C/svg%3E")}

.ui-modal[hidden]{display:none}
.acc{--acc-line:#e4ebf2;--acc-soft:#f6f9fc;--acc-ink:#10233f;--acc-muted:#6b7a90;--acc-r:16px;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;color:var(--acc-ink)}
.acc>*{min-width:0}
.main>.acc{width:min(100%,1380px);margin-left:auto;margin-right:auto}
.acc .acc{width:100%}

/* page header */
.acc-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.acc-head .eyebrow{display:inline-flex;gap:6px;align-items:center}
.acc-head .eyebrow a{color:#5f7590}.acc-head .eyebrow a:hover{color:#087fca}
.acc-head h1{margin:6px 0 4px;font-size:26px;line-height:1.15;letter-spacing:-.01em;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.acc-head p{margin:0;color:var(--acc-muted);font-size:13.5px;max-width:70ch}
.acc-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.acc-actions form{display:contents}

/* stat cards: all the same size, label / value / note */
.acc-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.acc-kpi{position:relative;display:grid;gap:6px;align-content:start;min-height:98px;padding:16px 18px;background:#fff;border:1px solid var(--acc-line);border-radius:var(--acc-r);box-shadow:0 6px 18px rgba(17,50,85,.04);overflow:hidden}
.acc-kpi::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone,#087fca)}
.acc-kpi span{font-size:10.5px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#7b8da3}
.acc-kpi strong{font-size:22px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums}
.acc-kpi small{font-size:12px;color:var(--acc-muted)}
.acc-kpi.tone-warn{--tone:#d99016}.acc-kpi.tone-ok{--tone:#159669}.acc-kpi.tone-danger{--tone:#d84c58}.acc-kpi.tone-muted{--tone:#9aa9ba}

/* cards */
.acc-card{background:#fff;border:1px solid var(--acc-line);border-radius:var(--acc-r);box-shadow:0 6px 18px rgba(17,50,85,.04);min-width:0}
.acc-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--acc-line)}
.acc-card-head h2{margin:0;font-size:15.5px;line-height:1.3}
.acc-card-head p{margin:3px 0 0;font-size:12.5px;color:var(--acc-muted)}
.acc-card-head .eyebrow{display:block;margin-bottom:3px}
.acc-card-body{padding:18px 20px}
.acc-card-body>:last-child{margin-bottom:0}
.acc-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid var(--acc-line);font-size:12.5px;color:var(--acc-muted)}
.acc-card-foot .list-footer{display:contents}
.acc-note{font-size:12.5px;color:var(--acc-muted);margin:0 0 12px}

/* toolbar: search + status tabs + dates, filters as you type */
.acc-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--acc-line)}
.acc-search{position:relative;flex:1 1 220px;min-width:0;margin:0}
.acc-search input{padding-left:36px;margin:0}
.acc-search::before{content:"";position:absolute;left:13px;top:50%;width:13px;height:13px;margin-top:-8px;border:2px solid #9aabbd;border-radius:50%}
.acc-search::after{content:"";position:absolute;left:24px;top:50%;width:6px;height:2px;margin-top:4px;background:#9aabbd;transform:rotate(45deg)}
.acc-toolbar>input,.acc-toolbar>select{width:auto;flex:0 1 150px;min-width:0;margin:0}
.acc-toolbar .acc-clear{font-size:12.5px;font-weight:700;color:#5f7590;padding:8px 6px}
.acc-toolbar .acc-clear:hover{color:#087fca}
.acc-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--acc-soft);border:1px solid var(--acc-line);border-radius:12px}
.acc-tabs a,.acc-tabs button{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:0;border-radius:9px;background:none;color:#4b617a;font-family:inherit;font-size:12.5px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
.acc-tabs a:hover,.acc-tabs button:hover{color:#087fca}
.acc-tabs .active{background:#fff;color:var(--acc-ink);box-shadow:0 2px 8px rgba(17,50,85,.1)}
.acc-tabs em{font-style:normal;font-size:11px;font-weight:800;min-width:18px;padding:2px 6px;border-radius:999px;background:#e6eef6;color:#4b617a;text-align:center}
.acc-tabs .active em{background:#e1f1fb;color:#0675b5}
.acc-toolbar .acc-tabs{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;gap:2px;margin:-14px -20px 4px;padding:0 12px;background:none;border:0;border-bottom:1px solid var(--acc-line);border-radius:0;scrollbar-width:none}
.acc-toolbar .acc-tabs::-webkit-scrollbar{display:none}
.acc-toolbar .acc-tabs button{padding:14px 10px 12px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px}
.acc-toolbar .acc-tabs .active{background:none;box-shadow:none;border-bottom-color:#087fca;color:#0b5f93}
.acc-busy [data-auto-region]{opacity:.55;transition:opacity .15s}

/* tables */
.acc-table-wrap{overflow-x:auto}
.acc-table{width:100%;border-collapse:collapse;font-size:13.5px}
.acc-table th{padding:10px 14px;background:var(--acc-soft);border-bottom:1px solid var(--acc-line);text-align:left;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#7b8da3;white-space:nowrap}
.acc-table td{padding:13px 14px;border-bottom:1px solid #eef2f6;vertical-align:middle}
.acc-table th:first-child,.acc-table td:first-child{padding-left:20px}
.acc-table th:last-child,.acc-table td:last-child{padding-right:20px}
.acc-table tbody tr:last-child td{border-bottom:0}
.acc-table tbody tr[data-href]{cursor:pointer}
.acc-table tbody tr:hover{background:#f8fbfe}
.acc-table tfoot td{padding:12px 14px;background:var(--acc-soft);border-top:1px solid var(--acc-line);font-size:12.5px;color:var(--acc-muted)}
.acc-table tfoot b{color:var(--acc-ink);font-size:13.5px}
.acc-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.acc-table .doc-no{font-weight:800;white-space:nowrap}
.acc-table .doc-no a:hover{color:#087fca}
.acc-table .who b{display:block;font-weight:700}
.acc-table .who small,.acc-sub{display:block;margin-top:2px;font-size:12px;color:var(--acc-muted);line-height:1.4}
.acc-table .row-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.acc-table .row-actions form{margin:0}
.acc-table tr.is-hidden td{opacity:.55}
.acc-table .mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}
.acc-table .clamp{max-width:420px;white-space:pre-line}
.btn-sm{padding:7px 11px;border-radius:9px;font-size:12px}
.btn-ghost{background:transparent;color:#355572;border:1px solid var(--acc-line,#e4ebf2)}
.btn-ghost:hover{background:#f3f7fb}
.acc-empty{padding:42px 20px;text-align:center;color:var(--acc-muted)}
.acc-empty b{display:block;color:var(--acc-ink);font-size:15px;margin-bottom:4px}
.acc-empty .btn{margin-top:14px}

/* status badges keep the app's .badge, slightly larger here */
.acc .badge{font-size:11.5px;padding:5px 9px}

/* document / form layout */
.acc-split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.acc-main{display:grid;gap:18px;min-width:0}
.acc-side{display:grid;gap:18px;position:sticky;top:18px;min-width:0}
.acc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.acc-fields .full{grid-column:1/-1}
.acc-fields label{margin-bottom:12px}
.acc-fields-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.acc-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.acc-meta div{padding:11px 13px;background:var(--acc-soft);border-radius:12px;min-width:0}
.acc-meta small{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8795a7}
.acc-meta b{display:block;margin-top:4px;font-size:13.5px;overflow-wrap:anywhere}
.acc-party{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.acc-party small{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8795a7;margin-bottom:6px}
.acc-party b{display:block;font-size:15px;margin-bottom:4px}
.acc-party p{margin:0;color:#4b617a;font-size:13px;line-height:1.55;white-space:pre-line}
.acc-lines td{vertical-align:top}
.acc-lines .mono{white-space:nowrap}
.acc-pay a>b{white-space:nowrap}
.acc-lines .desc{white-space:pre-line;line-height:1.5;min-width:220px}
.acc-lines tr.text-line td{color:var(--acc-muted);font-style:italic}
.acc-sum{display:grid;gap:7px;font-size:13.5px}
.acc-sum>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.acc-sum>div span{color:#5e6f84}
.acc-sum>div b{font-variant-numeric:tabular-nums}
.acc-sum .grand{margin-top:4px;padding-top:10px;border-top:1px solid var(--acc-line);font-size:17px}
.acc-sum .grand span{color:var(--acc-ink);font-weight:800}
.acc-sum input{width:110px;text-align:right;padding:7px 9px;margin:0}
.acc-sum .tax-in{display:flex;align-items:center;gap:6px}
.acc-sum .tax-in input{width:70px}
.acc-words{font-size:12px;color:var(--acc-muted);text-align:right;line-height:1.45}
.acc-words.err{color:var(--danger)}
.acc-doc-totals{display:flex;justify-content:flex-end;padding:16px 20px;border-top:1px solid var(--acc-line)}
.acc-doc-totals .acc-sum{width:min(340px,100%)}
.acc-texts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;padding:16px 20px;border-top:1px solid var(--acc-line);font-size:12.5px;color:#4b617a}
.acc-texts small{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8795a7;margin-bottom:6px}
.acc-texts ul,.acc-texts ol{margin:0;padding-left:18px;line-height:1.55}
.acc-status{display:grid;gap:12px}
.acc-status .amount{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.acc-status .amount small{display:block;margin-bottom:6px;font-size:10.5px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#7b8da3}
.acc-progress{height:8px;border-radius:999px;background:#eaf0f6;overflow:hidden}
.acc-progress i{display:block;height:100%;background:linear-gradient(90deg,#16a4db,#159669);border-radius:inherit}
.acc-side .btn{width:100%}
.acc-side-actions{display:grid;gap:8px}
.acc-side-actions form{display:grid;gap:8px;margin:0}
.acc-side-actions .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acc-side-actions hr{border:0;border-top:1px solid var(--acc-line);margin:4px 0}
.acc-timeline{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.acc-timeline li{position:relative;padding-left:18px;font-size:12.5px;line-height:1.45}
.acc-timeline li::before{content:"";position:absolute;left:0;top:5px;width:8px;height:8px;border-radius:50%;background:#16a4db;box-shadow:0 0 0 3px #e1f1fb}
.acc-timeline li:not(:last-child)::after{content:"";position:absolute;left:3.5px;top:16px;bottom:-12px;width:1px;background:#dbe6ef}
.acc-timeline b{font-weight:700}
.acc-timeline small{display:block;color:var(--acc-muted);font-size:11.5px}
.acc-pay{display:grid;gap:8px}
.acc-pay a{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--acc-line);border-radius:12px;font-size:13px}
.acc-pay a:hover{border-color:#bfe0f2;background:#f8fbfe}
.acc-pay a small{display:block;color:var(--acc-muted);font-size:11.5px}
.acc-pay a.void{opacity:.55;text-decoration:line-through}
.acc-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:14px;font-size:13px}
.acc-banner form{margin:0}
.acc-banner.warn{background:#fff7e6;border:1px solid #f6dfae;color:#7a4b00}
.acc-banner.danger{background:#fff0f1;border:1px solid #ffd6da;color:#a82e3c}
.acc-banner.ok{background:#eaf8f2;border:1px solid #c9efdd;color:#11764f}
.acc-banner.info{background:#edf6fd;border:1px solid #cfe6f6;color:#0b5f93}

/* editor lines */
.acc-lines-edit{width:100%;border-collapse:collapse;font-size:13px;min-width:880px}
.acc-lines-edit th{padding:9px 8px;background:var(--acc-soft);border-bottom:1px solid var(--acc-line);text-align:left;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#7b8da3}
.acc-lines-edit th:first-child,.acc-lines-edit td:first-child{padding-left:16px}
.acc-lines-edit td{padding:8px;border-bottom:1px solid #eef2f6;vertical-align:top}
.acc-lines-edit input,.acc-lines-edit textarea{padding:8px 9px;border-radius:9px;font-size:13px;margin:0}
.acc-lines-edit textarea{min-height:38px;resize:vertical;line-height:1.4}
.acc-lines-edit .code{width:170px}.acc-lines-edit .desc{min-width:240px}
.acc-lines-edit .num{text-align:right}
.acc-lines-edit .num input{text-align:right;width:88px}
.acc-lines-edit .uom input{width:70px}
.acc-lines-edit .amount{padding-top:16px;font-weight:800;width:104px;font-variant-numeric:tabular-nums}
.acc-lines-edit .mv{width:30px;white-space:nowrap;padding-right:0}
.acc-lines-edit tr[data-type=text] .code span{display:inline-block;margin-top:9px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8795a7}
.acc-add-lines{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--acc-line)}
.mini{display:inline-grid;place-items:center;border:0;background:#eef4f9;color:#214260;border-radius:7px;width:24px;height:24px;cursor:pointer;font-weight:800;line-height:1;margin:7px 2px 0 0}
.mini.danger{background:#fff0f1;color:#b53242}
.mini:hover{filter:brightness(.95)}

/* searches */
.lookup{position:relative}
.lookup label{margin-bottom:12px}
.lookup-menu{position:absolute;z-index:40;left:0;right:0;top:calc(100% - 8px);max-height:300px;overflow:auto;background:#fff;border:1px solid #dbe4ef;border-radius:12px;box-shadow:0 16px 40px rgba(17,50,85,.16);padding:4px}
.acc-lines-edit .lookup-menu{top:100%;min-width:380px}
.lookup-row{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13px;color:var(--ink)}
.lookup-row span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lookup-row em{font-style:normal;color:#0675b5;font-weight:700;white-space:nowrap}
.lookup-row.active,.lookup-row:hover{background:#eef6fc}
.lookup-empty{padding:10px;color:var(--muted);font-size:13px}
.acc-picked{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:-4px 0 12px;background:#f2f9fd;border:1px solid #d3eaf7;border-radius:12px;font-size:12.5px;color:#0b5f93}
.acc-picked[hidden]{display:none}

/* receipts: invoice allocation */
.acc-alloc input{width:120px;text-align:right;padding:7px 9px;margin:0}
.acc-alloc-summary{display:grid;gap:7px;font-size:13px}

/* settings */
.acc-preview{display:flex;gap:16px;align-items:center;padding:14px;border:1px dashed #cfdbe6;border-radius:12px;background:#fff}
.acc-preview img{width:70px;height:70px;object-fit:contain}
.acc-preview div{flex:1;text-align:center;font:12px/1.6 Arial,Helvetica,sans-serif;color:#111;min-width:0}
.acc-preview b{display:block;font-size:16px}
.acc-preview span{display:block}
.acc-images{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.acc-images small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#7b8da3;margin-bottom:6px}
.acc-images label small{display:block;text-transform:none;letter-spacing:0;font-weight:400;font-size:11.5px;color:var(--muted);margin:4px 0 0}
.acc-img-box{height:150px;display:grid;place-items:center;border:1px solid var(--acc-line);border-radius:12px;background:#fff;margin-bottom:10px;padding:10px}
.acc-img-box img{max-width:100%;max-height:130px}
.acc-sig-thumb{max-height:46px;max-width:160px;background:#fff}
.acc-numbering input{padding:8px 10px;margin:0}
.acc-numbering td:nth-child(2) input{min-width:170px}
.acc-numbering td:nth-child(3) input{width:76px}
.acc-numbering td:nth-child(4) input{width:120px}
.acc-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.acc-grid-2>*{min-width:0}
.acc-savebar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 20px;background:#fff;border:1px solid var(--acc-line);border-radius:var(--acc-r);box-shadow:0 6px 18px rgba(17,50,85,.04)}
.acc-savebar span{font-size:12.5px;color:var(--acc-muted)}

/* profile signature panel (My Profile) */
.billing-sig-preview{display:flex;align-items:center;justify-content:center;min-height:110px;margin-bottom:14px;padding:12px;border:1px dashed var(--line,#d7e1ea);border-radius:12px;background:#fff}
.billing-sig-preview img{max-height:110px;max-width:100%}

@media(max-width:1180px){.acc-split{grid-template-columns:minmax(0,1fr)}.acc-side{position:static}}
@media(max-width:800px){.acc-grid-2{grid-template-columns:1fr}.main>.acc{padding:14px 12px 0}}
@media(max-width:700px){
  .acc-head h1{font-size:22px}
  .acc-kpis{grid-template-columns:1fr 1fr;gap:10px}.acc-kpi{min-height:0;padding:13px 14px}.acc-kpi strong{font-size:18px}
  .acc-fields,.acc-fields-3,.acc-images,.acc-party{grid-template-columns:1fr}
  .acc-toolbar{padding:12px 14px}.acc-toolbar .acc-tabs{margin:-12px -14px 4px;padding:0 6px}.acc-toolbar>input,.acc-toolbar>select{flex:1 1 130px}
  .acc-tabs{width:100%;overflow-x:auto;flex-wrap:nowrap}
  .acc-card-head,.acc-card-body,.acc-card-foot{padding-left:14px;padding-right:14px}
  .acc-table{min-width:640px}
}
/* B / I / U buttons above remarks and notes */
.acc-richbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0 0 -2px}
.acc-richbar button{width:30px;height:28px;border:1px solid var(--acc-line,#e4ebf2);border-radius:8px;background:#fff;color:#214260;font-size:13px;cursor:pointer;line-height:1}
.acc-richbar button:hover{background:#eef6fc;border-color:#bfe0f2}
.acc-richbar span{margin-left:6px;font-size:11.5px;font-weight:400;color:var(--muted,#6b7a90)}
.acc-texts b{color:var(--acc-ink,#10233f)}
/* 1.0.16 payment vouchers */
.acc-segment{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:4px;border-radius:12px;background:#f1f5f9;width:fit-content;max-width:100%}
.acc-segment label{margin:0;display:block;cursor:pointer}
.acc-segment input{position:absolute;opacity:0;pointer-events:none;width:1px}
.acc-segment span{display:block;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:700;color:#4a5d75}
.acc-segment input:checked+span{background:#fff;color:#0b5f93;box-shadow:0 1px 4px rgba(16,35,63,.12)}
.acc-segment input:focus-visible+span{outline:2px solid #49a7d7;outline-offset:1px}
.acc-pv-lines textarea{min-height:38px;margin:0;resize:none;padding:8px 10px}
.acc-pv-lines input{width:140px;text-align:right;margin:0;padding:8px 10px}
.acc-pv-lines td{vertical-align:top}
.acc-attach{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.acc-attach input[type=file]{flex:1;min-width:200px;margin:0}
.acc-clip{font-size:11px;color:#6b7a90;white-space:nowrap}
[data-payee][hidden],[data-method][hidden]{display:none!important}
@media(max-width:600px){.acc-segment{width:100%}.acc-segment label{flex:1}.acc-segment span{text-align:center;padding:8px 6px}.acc-pv-lines input{width:100px}}
body.mac-embedded .acc-segment{background:#2a2d33}body.mac-embedded .acc-segment span{color:#b9c2cd}body.mac-embedded .acc-segment input:checked+span{background:#3a3f47;color:#7cc4f5}
.sidebar a[href$="/admin/billing-vouchers.php"]::before{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h20v12H2z M16 12H8 M11 9l-3 3l3 3'/%3E%3C/svg%3E")}
