/* Layout follows the supplied develop ledger and receipt screens. */
.p6-ledger,.p6-collection{max-width:1480px;margin:0 auto;color:#244557}.p6-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 28px}.p6-heading h1{font-size:23px;margin:0}.p6-heading .button,.p6-primary{background:#176e76!important;color:#fff!important;border-color:#176e76!important}.p6-ledger button,.p6-ledger .button,.p6-collection button,.p6-collection .button{border-radius:7px;min-height:43px;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px}.p6-ledger svg,.p6-collection svg{width:19px;height:19px}.p6-ledger .office-tabs{margin-bottom:20px;border:0}.p6-filters{display:flex;align-items:end;gap:10px;position:relative;padding:12px 0 28px;border-bottom:1px solid #d9e5eb}.p6-search{position:relative;flex:1;margin:0}.p6-search input{height:52px;padding-inline-end:55px;border:1px solid #cfdee6;background:white;border-radius:7px}.p6-search button{position:absolute;left:5px;bottom:5px;width:42px;min-height:42px;background:#eff6f6;color:#173842;border:0;padding:9px}.p6-filters>button,.p6-filter-more>summary{width:48px;height:52px;background:white;color:#254755;border:1px solid #cbdde6;border-radius:7px;font-size:25px}.p6-filter-more>summary{display:grid;place-items:center;cursor:pointer;list-style:none}.p6-filter-more>div{position:absolute;z-index:9;top:90px;left:240px;background:white;padding:18px;box-shadow:0 10px 30px #16354322;border:1px solid #d5e2e9;border-radius:10px;display:grid;gap:14px;min-width:250px}.p6-state-filter{min-width:190px;margin:0;font-size:12px;color:#6b8597}.p6-state-filter select{height:52px;background:white}.p6-only{display:flex;align-items:center;gap:9px;white-space:nowrap;height:52px;margin:0;border:1px solid #cbdde6;border-radius:7px;padding:0 14px;background:white}.p6-only input{width:18px;height:18px}.p6-list-caption{display:flex;justify-content:space-between;padding:22px 0;color:#567185;font-size:13px}.p6-cards{display:grid;gap:12px}.p6-invoice{border:1px solid #d5e2e9;border-radius:10px;background:white;min-width:0;overflow:visible}.p6-invoice.awaiting_receipts{background:#fff7eb;border-color:#f0d7b7}.p6-invoice.finalized{background:#f4fbf7;border-color:#cce4d7}.p6-invoice.latest-sale{outline:2px solid #e78d26;outline-offset:1px}.p6-card-main{padding:22px 24px 16px;display:grid;grid-template-columns:1fr auto minmax(200px,280px);gap:20px}.p6-customer{display:grid;gap:9px;font-size:13px}.p6-customer strong{font-size:17px}.p6-customer span,.p6-card-dates,.p6-staff{color:#708799}.p6-card-state{display:flex;align-items:center;gap:10px;font-size:12px}.p6-badge{padding:7px 12px;background:#fff0ce;color:#99701c;border-radius:5px}.finalized .p6-badge{background:#e0f3e7;color:#26784b}.draft .p6-badge{background:#eaf0fa;color:#416289}.p6-card-amount{text-align:left;display:grid;gap:5px;align-content:start}.p6-card-amount>span{font-size:12px;color:#708799}.p6-card-amount strong{font-size:25px;color:#235d6d;white-space:nowrap}.p6-card-amount small{font-size:12px;font-weight:400}.p6-card-dates{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:9px 22px;font-size:12px}.p6-card-dates>bdi{color:#2d4a5e;font-size:14px}.p6-pending{grid-column:1/-1;justify-self:start;color:#a5761d;background:#fff1d9;border-radius:5px;padding:7px 10px;font-size:12px}.p6-card-footer{border-top:1px solid #e5e7e3;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}.p6-staff{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:11px;align-items:center}.p6-card-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.p6-card-actions button{padding:8px 12px;border:1px solid #cbdde6}.p6-card-actions button:disabled,.p6-collection-toolbar button:disabled{background:#f0f0ee!important;color:#a9b1b5!important;border-color:#e5e6e5!important;cursor:not-allowed}.p6-more,.p6-time-details{position:relative}.p6-more>summary{list-style:none;cursor:pointer;background:white;border:1px solid #cbdde6;border-radius:7px;min-width:43px;height:43px;display:grid;place-items:center;font-size:18px}.p6-more>div{position:absolute;z-index:15;left:0;top:47px;display:grid;gap:6px;min-width:195px;padding:8px;background:white;box-shadow:0 10px 25px #16354322;border:1px solid #d0dfe7;border-radius:8px}.p6-more button{justify-content:start;background:white;color:#244557}.p6-time-details>summary{cursor:pointer}.p6-time-details>.work-timeline{position:absolute;z-index:12;top:18px;right:0;width:min(600px,80vw);box-shadow:0 10px 25px #16354322}.p6-collection-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:16px;background:#fff;border:1px solid #d9e5eb;border-radius:13px;margin-bottom:14px}.p6-collection-toolbar button,.p6-collection-toolbar a{font-size:12px;padding:8px 14px}.p6-collection .card{border:1px solid #dce6ee;box-shadow:0 2px 8px #23445704;border-radius:14px;padding:20px;margin:0}.p6-collection .card h2{font-size:16px;margin:0 0 16px}.p6-collection .stack{gap:14px}.p6-overview{font-size:12px;margin:0 4px 12px;color:#6c8292}.p6-overview summary{cursor:pointer;padding:8px}.p6-overview .card{margin-top:8px}.p6-compact-clock.work-live-clock{background:none;border:0;padding:0;margin:0;gap:8px;color:#eb8826;font-size:12px}.p6-compact-clock.work-live-clock>bdi{font-size:15px;color:#285c70}.p6-compact-clock>.work-timeline{display:none}.p6-collection-row{margin:12px 0 0!important;padding:18px!important;border:1px solid #cfe0ea!important;border-right:4px solid #e69a26!important;border-radius:9px!important;background:#fffaf0!important;min-width:0}.p6-collection-row.is-received{background:#f0faf5!important;border-right-color:#288a59!important}.p6-collection-row legend{padding:0 6px;font-size:14px}.p6-collection-row .notice.good{background:#eaf3f8;color:#65859a;font-size:11px;border:0;border-radius:6px;padding:7px 12px}.p6-collection-row[data-receive-check]{display:grid;grid-template-columns:110px minmax(145px,.8fr) minmax(180px,1.5fr) auto;align-items:center;gap:12px 20px}.p6-check-identity{display:grid;gap:10px;font-size:13px}.p6-check-identity span{font-size:12px}.p6-check-amount{font-size:20px;color:#183e55}.p6-collection-row[data-receive-check] .sw-grid{display:block!important;margin:0!important}.p6-collection-row[data-receive-check] .sw-grid label{font-size:12px;color:#708799}.p6-collection-row input{background:white;border:1px solid #d4e2ec;border-radius:7px;min-height:42px}.p6-receive-actions{display:flex;gap:9px}.p6-receive-actions [data-receive-one]{background:#1c5cd7}.p6-check-print{background:#1c4e7d!important;color:white!important}.p6-cheque-recipient{grid-column:1/-1;font-size:11px;margin:0;color:#6e8796}.p6-collection-row[data-receive-check]>.notice{grid-column:3}.p6-collection-row .gold-terms{font-size:12px;line-height:1.9}.p6-collection-row[data-receive-payment]{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.p6-collection-row[data-receive-payment]>.sw-grid{flex:1;min-width:220px}.p6-collection-row[data-receive-payment] legend{float:right;max-width:100%;margin:0}.p6-print-dialog{width:min(760px,94vw);max-width:94vw;border:1px solid #c9dce8;border-radius:24px!important;padding:28px!important;box-shadow:0 20px 80px #152f4b30}.p6-print-dialog::backdrop,.p6-view-dialog::backdrop{background:#18354bb3;backdrop-filter:blur(4px)}.p6-print-dialog .dialog-head{border:0;padding:0 0 14px}.p6-print-dialog h2{font-size:23px}.p6-print-dialog p{color:#71899c;font-size:13px;margin:8px 0 22px}.p6-print-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0}.p6-print-options button{min-height:54px;border:1px solid #c9dfe7;background:#f1f7f9;color:#244253;border-radius:10px;font-weight:600}.p6-print-options .p6-print-all{grid-column:1/-1;background:#17656e;color:white;border:0}.p6-print-dialog form>.row>button[type=submit]{width:100%;background:white;color:#294b60;border:1px solid #c9dfe7;border-radius:10px;min-height:54px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.p6-view-dialog{width:min(1080px,94vw)}
@media(max-width:1000px){.p6-card-main{grid-template-columns:1fr 1fr}.p6-card-amount{grid-column:2;grid-row:1}.p6-card-state{grid-column:1/-1}.p6-card-footer{align-items:start;flex-direction:column}.p6-card-actions{align-self:end}.p6-filters{flex-wrap:wrap}.p6-search{flex-basis:70%}.p6-collection-row[data-receive-check]{grid-template-columns:1fr 1fr}.p6-collection-row[data-receive-check]>.notice{grid-column:auto}.p6-filter-more>div{left:10px}.p6-card-amount strong{font-size:21px}}@media(max-width:600px){.p6-heading{margin:8px 0 18px;gap:10px;flex-wrap:wrap}.p6-heading h1{font-size:19px}.p6-card-main{padding:15px;gap:12px}.p6-card-footer{padding:12px}.p6-card-actions{flex-wrap:wrap}.p6-card-amount strong{font-size:18px}.p6-state-filter{min-width:130px;flex:1}.p6-collection-row[data-receive-check]{grid-template-columns:1fr}.p6-collection-row[data-receive-check]>.notice{grid-column:1}.p6-print-options{gap:10px}.p6-print-dialog{padding:20px!important}.p6-staff{gap:10px}.p6-time-details>.work-timeline{right:auto;left:0;width:80vw}}
/* Printable gold stationery: A4, restrained ink, repeatable table headings. */
.p6-paper{font-family:inherit;width:190mm;max-width:100%;margin:0 auto;padding:0;background:#fff;color:#182d35;font-size:10pt;line-height:1.8;direction:rtl}.p6-paper *{box-sizing:border-box}.p6-paper h1,.p6-paper h3,.p6-paper h4,.p6-paper p{margin:0}.p6-paper-header{display:grid;grid-template-columns:90px 1fr 205px;gap:20px;align-items:center;border-top:3px solid #a1884b;border-bottom:1.5px solid #1e4b50;padding:16px 0}.p6-paper-logo img{max-width:90px;max-height:85px;object-fit:contain}.p6-brand-name{border:1px solid #a1884b;color:#786333;padding:5px;font-size:30px;text-align:center;line-height:1.4}.p6-brand-name small{display:block;letter-spacing:3px;font-family:serif;font-size:13px}.p6-paper-title{text-align:center}.p6-paper-title h1{font-size:17pt;line-height:1.6}.p6-paper-title>span{font-size:10pt}.p6-paper-title>small{font-size:9pt}.p6-paper-header dl{margin:0;font-size:8.5pt}.p6-paper-header dl>div{display:flex;justify-content:space-between;gap:8px}.p6-paper-header dd{margin:0;font-weight:600}.p6-store-address{font-size:8pt;color:#53666e;padding:6px 0;border-bottom:1px solid #ccd5d5;min-height:16px}.p6-paper-customer{border:1px solid #a8babb;border-radius:4px;margin:13px 0;padding:0 12px 9px}.p6-paper-customer h3{background:#edf3f2;margin:0 -12px 8px;padding:4px 12px;font-size:10pt;border-bottom:1px solid #ccd5d5}.p6-paper-customer>div{display:flex;flex-wrap:wrap;gap:6px 22px}.p6-paper-customer p{font-size:9pt;margin-top:5px}.p6-paper-section{margin:14px 0}.p6-paper-section h3{font-size:11pt;border-right:3px solid #a1884b;padding:0 8px;margin:0 0 8px;color:#23474b;break-after:avoid}.p6-paper-table{width:100%;border-collapse:collapse;table-layout:auto;margin:0;font-size:9pt}.p6-paper-table th{background:#edf3f2;font-weight:700;padding:7px 6px;border:1px solid #aabbbd;text-align:center;white-space:normal}.p6-paper-table td{border:1px solid #bdc9ca;padding:8px 6px;vertical-align:middle;text-align:center;overflow-wrap:anywhere}.p6-paper-table small{display:block;font-size:8pt;color:#53666e}.p6-paper-totals{display:grid;grid-template-columns:1fr 1fr;border:1px solid #acbfc0;margin:14px 0;break-inside:avoid}.p6-paper-totals>div{display:flex;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid #d4dedf;font-size:9pt}.p6-paper-totals>div:nth-child(odd){border-left:1px solid #d4dedf}.p6-paper-totals>.p6-grand-total{background:#eaf2ed;color:#173e32;font-weight:bold}.p6-exchange-total{text-align:left;padding:7px 0;font-size:9pt}.p6-paper-terms{white-space:pre-line;text-align:justify;line-height:2;font-size:9pt}.p6-paper-note{font-size:8pt;color:#53666e;margin-top:5px!important}.p6-paper-signatures{display:flex;gap:16px;justify-content:space-between;margin-top:24px;break-inside:avoid}.p6-paper-signatures>div{flex:1;text-align:center;border:1px solid #b8c7c8;padding:8px;min-height:85px;font-size:9pt}.p6-paper-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 15px;border-top:1px solid #a1884b;margin-top:16px;padding-top:7px;color:#607579;font-size:7pt}.p6-delivery-fields{display:flex;justify-content:space-between;padding-top:18px;font-size:9pt}.p6-cheque-slip{padding:15mm}
@media print{.p6-paper{break-after:page;page-break-after:always;color:#111;font-size:10pt}.p6-paper:last-child{break-after:auto;page-break-after:auto}.p6-paper-table thead{display:table-header-group}.p6-paper-table tr{break-inside:avoid;page-break-inside:avoid}.p6-paper-header,.p6-paper-customer,.p6-paper-signatures,.p6-paper-footer{break-inside:avoid}.p6-paper-section{break-inside:auto}.p6-paper h3,.p6-paper h4{break-after:avoid}.p6-paper p{orphans:3;widows:3}.p6-paper-header,.p6-paper-table th,.p6-paper-totals>.p6-grand-total{print-color-adjust:exact;-webkit-print-color-adjust:exact}#print-area .p6-paper table{font-size:9pt!important}#print-area .p6-paper td,#print-area .p6-paper th{white-space:normal!important}.p6-paper + .p6-paper{margin-top:0}}

.p6-ledger [hidden],.p6-collection [hidden],.p6-print-dialog [hidden],.p6-view-dialog [hidden]{display:none!important}.p6-ledger .p6-only{flex-direction:row!important}.p6-collection label.check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;justify-content:flex-start}.p6-collection label.check input{width:18px;height:18px;min-height:0;flex:none}.p6-print-dialog>form{display:block!important}.p6-print-dialog p{margin:8px 0 16px!important}.p6-print-dialog form>.row{display:flex!important;margin:0!important}.p6-print-dialog .p6-print-options{margin:25px 0}.p6-card-main time{white-space:nowrap}

.p6-paper-customer>div{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:8px;align-items:start;font-size:9pt}.p6-paper-customer>div>*{min-width:0;overflow-wrap:anywhere}.p6-paper-customer bdi{display:inline-block;unicode-bidi:isolate}.p6-paper[data-paper-type=statement] .p6-paper-header{padding:10px 0}.p6-paper[data-paper-type=statement] .p6-paper-section{margin:10px 0}.p6-paper[data-paper-type=statement] .p6-paper-table td,.p6-paper[data-paper-type=statement] .p6-paper-table th{padding:5px}.p6-paper[data-paper-type=statement] .p6-paper-totals>div{padding:5px 8px;font-size:8.5pt}.p6-paper[data-paper-type=statement] .p6-paper-terms{font-size:8.5pt;line-height:1.8}.p6-paper[data-paper-type=statement] .p6-paper-signatures{margin-top:14px}.p6-paper[data-paper-type=statement] .p6-paper-signatures>div{min-height:65px}.p6-paper[data-paper-type=statement] .p6-paper-footer{margin-top:10px}

.p6-paper-signoff{break-inside:avoid;page-break-inside:avoid}.p6-paper[data-paper-type=statement] .p6-paper-table{line-height:1.45}.p6-paper[data-paper-type=statement] .p6-paper-header{padding:8px 0}.p6-paper[data-paper-type=statement] .p6-paper-footer{margin-top:6px}

/* Receipt controls stay side by side and never inherit vertical form layout. */
.p6-collection label.check[hidden]{display:none!important}
.p6-action-pair,.p6-collection .p6-receive-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;gap:8px;min-width:0}
.p6-action-pair>button,.p6-collection .p6-receive-actions>button{width:auto!important;min-width:88px;margin:0!important;padding:10px 14px;white-space:nowrap;min-height:44px;flex:1}
.p6-collection .p6-receive-actions [data-receive-one]{background:#176e76;color:white;border:1px solid #176e76}
.p6-collection .p6-payment-actions{margin-inline-start:auto}
.p6-collection .exchange-received-items{flex-basis:100%;min-width:0;width:100%;overflow-x:auto}
.exchange-serial{display:inline-block;margin-top:5px;font-weight:600;color:#31596a;letter-spacing:.05em}
.exchange-entry-state{font-size:12px;color:#447265;margin:12px 0 0}
@media(max-width:600px){
 .p6-card-actions{width:100%;display:flex!important;flex-wrap:nowrap!important;gap:6px}
 .p6-card-actions>button{padding:8px;min-width:0}.p6-card-actions .p6-action-pair{flex:1;gap:6px}
 .p6-card-actions .p6-action-pair>button{min-width:0;padding:8px;font-size:12px}
 .p6-card-actions svg{width:15px;height:15px}.p6-card-actions .p6-more>summary{min-width:32px}
 .p6-collection .p6-receive-actions{width:100%;grid-column:1/-1}
 .p6-collection-row[data-receive-payment]>.sw-grid{min-width:0;flex-basis:100%}
 .p6-collection .exchange-received-items table{min-width:0;font-size:11px}.p6-collection .exchange-received-items td,.p6-collection .exchange-received-items th{padding:8px 4px;white-space:normal}
}
