/* CABINETTE Seller DB P1 — consistent with SETTLEMENT V2.2.13 */
.seller-page{min-width:0}.seller-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin:0 0 16px}.seller-head h3{font-size:21px;margin:5px 0 7px;letter-spacing:-.5px}.seller-head p{font-size:12px;max-width:670px;margin:0}.seller-tools{display:flex;gap:8px;flex-wrap:wrap}.seller-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.seller-metric{background:white;border:1px solid #e5e9f0;border-radius:10px;padding:17px 19px}.seller-metric span{font-size:11px;color:#748293}.seller-metric strong{display:block;margin-top:6px;font-size:24px;color:#192c45;font-weight:750}.seller-filters{background:white;border:1px solid #e5e9f0;border-radius:10px;padding:13px;display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:13px}.seller-filters label{font-size:11px;color:#64748b;font-weight:650;display:flex;flex-direction:column;gap:6px}.seller-filters input,.seller-filters select{font-size:12px;border:1px solid #dbe2eb;border-radius:7px;height:34px;padding:5px 9px;color:#26354a;background:white;min-width:120px}.seller-filters .seller-find{flex:1;min-width:240px}.seller-filters .seller-find input{width:100%}.seller-filters .seller-count{font-size:11px;color:#778597;margin-left:auto;align-self:center}.seller-table-wrap{border:1px solid #e3e8ee;border-radius:10px;overflow:auto;background:white;max-width:100%}.seller-table{border-collapse:collapse;width:100%;min-width:1220px;font-size:12px}.seller-table thead th{position:sticky;top:0;background:#f2f5f9;border-bottom:1px solid #e1e6ee;text-align:left;font-size:11px;font-weight:760;color:#53677a;padding:11px 12px;white-space:nowrap}.seller-table tbody td{padding:11px 12px;border-bottom:1px solid #e9edf2;vertical-align:middle;color:#334254}.seller-table tbody tr:hover{background:#f9fbff}.seller-table tbody tr:last-child td{border-bottom:0}.seller-table .seller-name-btn{background:transparent;border:0;text-align:left;color:#314f91;font-weight:760;padding:0;white-space:nowrap;cursor:pointer}.seller-table .seller-name-btn:hover{text-decoration:underline}.seller-table small{display:block;font-size:10px;color:#8994a5;margin-top:4px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seller-table .seller-num{color:#97a3b4;font-size:10px;width:40px}.seller-tag{display:inline-flex;align-items:center;background:#f1f0fc;color:#5d4ec5;padding:4px 7px;border-radius:5px;font-size:11px;font-weight:700}.seller-tag.grade-s{background:#fff0c9;color:#8e6b00}.seller-tag.grade-a{background:#e8f5ef;color:#23724f}.seller-tag.grade-b{background:#e8f1fa;color:#346495}.seller-tag.grade-c{background:#f4edf9;color:#8257a2}.seller-warning{color:#a3611b!important;background:#fff6de;border-radius:5px;padding:3px 5px;font-weight:700}.seller-link{color:#366bca;text-decoration:none}.seller-link:hover{text-decoration:underline}.seller-muted{color:#95a0ae}.seller-table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 3px;font-size:11px;color:#7a8799}.seller-table-footer .seller-pagination{display:flex;align-items:center;gap:8px}.seller-info-strip{background:#eef3ff;border:1px solid #dfe7fb;border-radius:9px;color:#617492;font-size:11px;line-height:1.6;padding:12px 15px;margin-bottom:15px}.seller-notice{background:#fff8ea;border:1px solid #f0dfbb;border-radius:8px;color:#885d1d;font-size:12px;padding:11px 13px;margin:12px 0}.seller-error{background:#fff0f0;border-color:#f1c7ce;color:#a43b48}.seller-modal{position:fixed;inset:0;background:rgba(10,25,43,.56);display:flex;align-items:center;justify-content:center;padding:22px;z-index:60}.seller-modal[hidden]{display:none}.seller-dialog{width:min(870px,100%);background:#fff;border-radius:15px;box-shadow:0 22px 70px rgba(8,20,40,.2);max-height:calc(100vh - 44px);overflow:auto;padding:26px 29px}.seller-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid #edf0f5;padding-bottom:14px;margin-bottom:18px}.seller-dialog-head h3{margin:3px 0;font-size:20px;color:#162b45}.seller-dialog-head small{color:#8b98a9;font-size:11px}.seller-dialog-x{background:transparent;border:0;color:#738396;font-size:24px;padding:1px 5px}.seller-formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.seller-formgrid .full{grid-column:1/-1}.seller-field{display:flex;flex-direction:column;gap:6px;min-width:0}.seller-field label{font-size:12px;font-weight:700;color:#536477}.seller-field input,.seller-field textarea,.seller-field select{width:100%;border:1px solid #d2dbe6;border-radius:8px;padding:9px 10px;background:white;font-size:13px;min-height:38px;color:#25354c}.seller-field textarea{resize:vertical;min-height:68px;line-height:1.55}.seller-field input:focus,.seller-field textarea:focus,.seller-field select:focus{outline:2px solid #d5ddff;border-color:#8f87ed}.seller-field .seller-field-note{font-size:11px;color:#8a97aa;line-height:1.5}.seller-fieldset{background:#f9fafc;border:1px solid #e7ebf1;padding:15px;border-radius:9px;grid-column:1/-1}.seller-fieldset h4{margin:0 0 12px;color:#475569;font-size:12px}.seller-history{font-size:11px;line-height:1.6;color:#697b90;margin-top:8px}.seller-history div{padding:5px 0;border-bottom:1px solid #e9edf2;word-break:break-all}.seller-formfoot{border-top:1px solid #edf0f5;padding-top:17px;margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.seller-dialog .btn{font-size:12px}.seller-empty{text-align:center;padding:52px 12px;color:#73859b;font-size:13px}.seller-trash-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f5}.seller-trash-item strong{font-size:13px}.seller-trash-item small{font-size:11px;display:block;color:#8291a3;margin-top:5px}.seller-chip{display:inline-block;background:#f2f4f9;border-radius:5px;padding:4px 6px;color:#5c6a7f;font-size:11px;margin-right:4px}.seller-saving{font-size:12px;color:#6157b1;font-weight:700}.seller-duplicated{border-color:#db9e4e!important;background:#fffbef!important}.seller-status-note{font-size:11px;color:#8a99a9;margin-top:10px}
body.font-large .seller-head h3{font-size:24px}body.font-large .seller-head p,body.font-large .seller-info-strip,body.font-large .seller-table,body.font-large .seller-field label{font-size:15px}body.font-large .seller-table thead th,body.font-large .seller-filters label,body.font-large .seller-tag,body.font-large .seller-field .seller-field-note{font-size:14px}body.font-large .seller-field input,body.font-large .seller-field select,body.font-large .seller-field textarea{font-size:16px}body.font-large .seller-table td{padding:13px 12px}
@media(max-width:850px){.seller-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-dialog{padding:18px}.seller-formgrid{grid-template-columns:1fr}.seller-formgrid .full{grid-column:auto}}@media(max-width:540px){.seller-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-metric strong{font-size:19px}.seller-filters .seller-find{min-width:100%}.seller-head h3{font-size:19px}}

/* Keep shared calendar as the final navigation item even when new modules are added. */
#nav > .nav-calendar-final-divider { order: 9998; }
#nav > button[data-page="calendar"] { order: 9999; }

/* Seller bulk import P1.5 */
.seller-import-dialog{width:min(1160px,100%)}.seller-import-note{font-size:12px;line-height:1.7;color:#566984;background:#eff4ff;border:1px solid #dce7fc;border-radius:9px;padding:12px 15px;margin-bottom:15px}.seller-import-picker{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}.seller-import-picker input{font-size:12px;max-width:100%}.seller-import-picker>span{font-size:11px;color:#8896a9}.seller-import-status{font-size:12px;padding:10px 12px;border:1px solid #dce5f1;background:#f5f8fc;border-radius:7px;color:#45617f;margin-bottom:12px}.seller-import-status.seller-error{color:#a43b48;border-color:#f1c7ce;background:#fff0f0}.seller-import-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}.seller-import-stats>div{padding:12px;background:#f8fafc;border:1px solid #e3e9f0;border-radius:8px}.seller-import-stats span{display:block;color:#7c8a9c;font-size:11px}.seller-import-stats b{display:block;margin-top:4px;color:#223956;font-size:21px}.seller-import-meta,.seller-import-footnote{font-size:11px;color:#687b90;line-height:1.6}.seller-import-meta{margin-bottom:9px}.seller-import-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.seller-import-actions label{font-size:11px;color:#667a92}.seller-import-actions select{border:1px solid #d9e2ee;border-radius:6px;background:white;margin-left:5px;padding:6px}.seller-import-tablewrap{max-height:360px;overflow:auto;border:1px solid #e1e8f1;border-radius:8px}.seller-import-table{width:100%;border-collapse:collapse;font-size:11px;min-width:830px}.seller-import-table th{position:sticky;top:0;background:#f2f5f9;color:#61738a;text-align:left;padding:9px;border-bottom:1px solid #e2e9f0}.seller-import-table td{padding:9px;border-bottom:1px solid #eef1f5;vertical-align:top}.seller-import-table td small{display:block;margin-top:5px;font-size:10px;color:#7a8897;max-width:320px;white-space:normal;line-height:1.5}.seller-import-table td:nth-child(6){word-break:break-all}.seller-import-table .import-review{background:#fffaf0}.seller-import-table .import-error{background:#fff4f4}.seller-import-table .import-saved{background:#f1faf5}.import-pill{border-radius:5px;padding:4px 6px;font-weight:700;white-space:nowrap;background:#e9f2fc;color:#26659a}.import-pill.import-review{background:#fff1d7;color:#906126}.import-pill.import-error{background:#ffebeb;color:#b73c4b}.import-pill.import-saved{background:#e5f7ed;color:#237a4b}.seller-import-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:11px 0;color:#7e8da0;font-size:11px}.seller-import-pagination span{margin-right:auto}.seller-import-footnote{max-width:520px}body.font-large .seller-import-table{font-size:14px}body.font-large .seller-import-note,body.font-large .seller-import-status{font-size:15px}@media(max-width:760px){.seller-import-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.seller-import-dialog{padding:16px}.seller-import-pagination{flex-wrap:wrap}}

/* Allrounder is exclusive: secondary selectors become visibly read-only. */
.seller-field select:disabled{background:#f3f5f9;color:#97a3b4;cursor:not-allowed;border-color:#e0e5ed;}


/* Phase 1.5 usability: independent duplicate review, scroll-safe checkbox selection. */
.seller-review-launch{border-color:#ead6a4!important;background:#fffaf0!important;color:#845a18!important;font-weight:700!important}
.seller-duplicates-overlay{position:fixed;inset:0;z-index:70;background:rgba(11,25,44,.67);display:flex;justify-content:center;align-items:center;padding:20px}
.seller-duplicates-overlay[hidden]{display:none}
.seller-duplicates-dialog{width:min(1120px,100%);max-height:calc(100vh - 40px);background:white;border-radius:14px;box-shadow:0 18px 65px rgba(10,20,40,.25);padding:23px 26px;display:flex;flex-direction:column;min-height:0}
.seller-duplicates-head{display:flex;justify-content:space-between;gap:16px;align-items:start;border-bottom:1px solid #edf0f5;padding-bottom:12px;margin-bottom:12px}
.seller-duplicates-head small{font-size:10px;color:#8a98aa}.seller-duplicates-head h3{color:#1e334d;font-size:20px;margin:4px 0}.seller-duplicates-head p{font-size:12px;color:#73859a;margin:0;line-height:1.6}
.seller-duplicates-warning{background:#fff8e9;border:1px solid #f1dfb8;border-radius:8px;color:#795926;font-size:12px;padding:11px 13px;line-height:1.6;margin-bottom:12px}
.seller-duplicates-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap;font-size:12px;color:#64758b}
.seller-duplicates-toolbar label{font-weight:650}.seller-duplicates-toolbar input{flex:1;min-width:190px;border:1px solid #d9e2ed;border-radius:7px;height:36px;padding:6px 10px;font-size:12px}
.seller-duplicates-toolbar span{white-space:nowrap}.seller-duplicates-summary{font-size:11px;color:#657792;margin-bottom:8px}
#sellerDuplicatesList{display:flex;flex-direction:column;min-height:0;flex:1}
.seller-duplicates-tablewrap{overflow:auto;max-height:min(53vh,470px);border:1px solid #dce4ed;border-radius:8px;overscroll-behavior:contain}
.seller-duplicates-table{width:100%;min-width:790px;border-collapse:collapse;font-size:12px}
.seller-duplicates-table thead th{position:sticky;top:0;background:#f3f6fa;color:#61738a;text-align:left;padding:11px;border-bottom:1px solid #dfe6ee;z-index:1}
.seller-duplicates-table td{padding:11px;border-bottom:1px solid #edf1f6;vertical-align:top;color:#35475b;line-height:1.5}
.seller-duplicates-table td:nth-child(4){word-break:break-all;max-width:230px}.seller-duplicates-table td:nth-child(5){min-width:220px}
.seller-duplicates-table small{display:block;color:#8695a7;font-size:10px;margin-top:4px}
.seller-duplicate-reason{margin-bottom:4px;color:#936727;word-break:break-word}
.seller-duplicates-table input[type=checkbox]{width:15px;height:15px;cursor:pointer;accent-color:#6156e8}
.seller-duplicates-empty{font-size:12px;color:#77869b;text-align:center;padding:30px}
.seller-duplicates-pagination{display:flex;gap:9px;align-items:center;justify-content:flex-end;padding:11px 0 4px;font-size:12px;color:#687a8e}
.seller-duplicates-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf0f5;padding-top:14px;margin-top:10px;font-size:11px;color:#7b8b9f;flex-wrap:wrap}
body.font-large .seller-duplicates-table,body.font-large .seller-duplicates-warning{font-size:15px}
@media(max-width:760px){.seller-duplicates-overlay{padding:8px}.seller-duplicates-dialog{padding:14px;max-height:calc(100vh - 16px)}.seller-duplicates-toolbar{align-items:stretch;flex-direction:column}.seller-duplicates-toolbar input{width:100%}}

/* Phase 1.5 duplicate review bulk selection / explicit apply */
.seller-duplicates-selectbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f7f9fd;border:1px solid #e3e9f3;border-radius:8px;padding:9px 12px;margin-bottom:10px;font-size:12px;color:#546982}
.seller-duplicates-selectall{display:inline-flex;align-items:center;gap:8px;font-weight:700;cursor:pointer;color:#283e59}
.seller-duplicates-selectall input,.seller-duplicates-page-head input{width:16px;height:16px;accent-color:#6256e9;cursor:pointer}
.seller-duplicates-selectbar>span{margin-right:auto;color:#748397;font-size:11px}
.seller-duplicates-page-head{min-width:126px}.seller-duplicates-page-head label{display:flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer}.seller-duplicates-page-head small{display:block;font-size:10px;color:#8c99aa;margin-top:5px;font-weight:400}
.seller-duplicates-footbuttons{display:flex;gap:8px;align-items:center}.seller-duplicates-foot>span{flex:1;min-width:210px}
@media(max-width:760px){.seller-duplicates-selectbar{align-items:flex-start}.seller-duplicates-footbuttons{width:100%;justify-content:flex-end}}

/* Phase 1.5 duplicate review progress: pending vs applied, explicit undo. */
.seller-review-applied-count{display:block;font-size:10px;color:#477665;margin-top:3px}
.import-pill.import-review:has(+small){vertical-align:middle}
.seller-duplicates-tabs{display:flex;gap:5px;border-bottom:1px solid #e0e6f0;margin:0 0 12px;padding:0 0 7px}
.seller-duplicates-tab{font:inherit;font-size:12px;font-weight:650;border:1px solid transparent;border-radius:7px;padding:8px 13px;background:#f5f7fb;color:#60728a;cursor:pointer}
.seller-duplicates-tab.active{border-color:#d9d5ff;background:#f0efff;color:#5748d5}
.seller-duplicates-tab:focus-visible,.seller-duplicates-undo:focus-visible{outline:2px solid #6557e8;outline-offset:2px}
.seller-duplicates-notice{background:#eaf7ef;border:1px solid #c8e6d1;border-radius:7px;color:#246044;padding:9px 12px;margin:0 0 11px;font-size:12px}
.seller-duplicates-notice[hidden],.seller-duplicates-selectbar[hidden],#sellerDupConfirm[hidden],#sellerDupDraftLabel[hidden]{display:none!important}
.seller-duplicates-summary b{color:#364d70}
.seller-duplicate-applied-tag{display:block;color:#2e7856;font-weight:700;font-size:11px;white-space:nowrap}
.seller-duplicates-undo{background:none;border:none;cursor:pointer;color:#6655d7;text-decoration:underline;font-size:11px;padding:4px 0;white-space:nowrap}
body.font-large .seller-duplicates-tabs button,body.font-large .seller-duplicates-notice{font-size:15px}

.import-pill.import-applied{background:#e8f7ee;color:#267b56}

/* P1.6 – fixed 12-column alignment, compact contacts and per-address receipts */
.seller-table{table-layout:fixed;min-width:1515px}
.seller-table thead th,.seller-table tbody td{box-sizing:border-box;overflow:hidden}
.seller-table tbody td:not(.seller-contact-cell){text-overflow:ellipsis}
.seller-table tbody td.seller-ellipsis{white-space:nowrap;text-overflow:ellipsis}
.seller-contact-cell{width:220px;max-width:220px}
.seller-contact-content{line-height:1.5;font-size:11px;overflow-wrap:anywhere;max-height:3.1em;overflow:hidden}
.seller-received-email{background:#fff0a8;color:#554209;border-radius:3px;padding:1px 2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.seller-contact-duplicate .seller-contact-content{border-left:2px solid #dca052;padding-left:5px}
.seller-receipt-badge{display:inline-block;padding:4px 6px;border-radius:5px;font-size:10px;line-height:1.3;white-space:nowrap;background:#f0f3f8;color:#718096}
.seller-receipt-badge.received{background:#fff1bf;color:#795815;font-weight:700}
.seller-receipt-badge.partial{background:#fdf0db;color:#9a641a;font-weight:700}
.seller-pagination .seller-page-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#65768d;white-space:nowrap}
.seller-pagination #sellerPageJump{width:57px;height:31px;border:1px solid #d7dfeb;border-radius:6px;padding:4px;text-align:center;font:inherit;color:#273b59;background:white;font-variant-numeric:tabular-nums}
.seller-pagination #sellerPageCounter{font-variant-numeric:tabular-nums;font-weight:650;color:#60758b;white-space:nowrap}
.seller-test-reset{border:1px solid #efd0cd!important;background:#fff6f5!important;color:#9c433e!important}
.seller-test-reset[hidden]{display:none!important}
@media(max-width:740px){.seller-table-footer{align-items:flex-start;flex-direction:column}.seller-pagination{width:100%;justify-content:flex-end;flex-wrap:wrap}}

/* P2.2d — proportional 13-column layout: avoid oversized notes on wide screens.
   The notes column is 15% instead of consuming every unused pixel; the
   remaining 85% is apportioned to the other 12 columns in sellers.js. */
.seller-table{width:100%;min-width:1600px;table-layout:fixed}
.seller-table col.seller-notes-col{width:15%}
.seller-table .seller-notes-head,.seller-table .seller-notes-cell{min-width:0}
.seller-table .seller-notes-cell{white-space:normal;vertical-align:middle}
.seller-table .seller-notes-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.5;white-space:pre-line}

/* P1.9 — keep only operational KPIs: total sellers and receipt-confirmed sellers. */
.seller-metrics{grid-template-columns:repeat(2,minmax(0,1fr));max-width:910px}
.seller-metric small{display:block;margin-top:7px;color:#8793a4;font-size:11px;line-height:1.4}
@media(max-width:540px){.seller-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-metric{padding:14px 13px}}

/* V2.4.2: Ensure expired notices leave no visible banner or spacing. */
.seller-notice[hidden]{display:none!important}

/* V2.5.16 — center seller duplicate / unsaved-change / delete dialogs like proposal alerts. */
.seller-decision-overlay{position:fixed;inset:0;z-index:250;background:rgba(17,29,49,.66);display:flex;align-items:center;justify-content:center;padding:18px}
.seller-decision-card{box-sizing:border-box;width:min(510px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #e3e7f0;border-radius:16px;box-shadow:0 22px 60px #0b162d55;padding:28px}
.seller-decision-card>small{display:block;color:#8d98ad;font-size:10px;letter-spacing:1px;font-weight:750}
.seller-decision-card h3{font-size:21px;line-height:1.4;color:#23334e;margin:12px 0 18px}
.seller-decision-card p{color:#4a5870;font-size:13px;line-height:1.8;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.seller-decision-buttons{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:24px}
.seller-decision-card .btn{font-size:12px;min-height:37px;padding-inline:16px}
.seller-decision-card .btn:focus-visible{outline:2px solid #6150f5;outline-offset:2px}
@media(max-width:560px){.seller-decision-card{padding:22px}.seller-decision-buttons{flex-wrap:wrap}}
