/* Approved 2026-10-14 V3 business records. Scoped to the records view. */
.records-workspace{--rc-green:#21815b;--rc-dark:#146244;--rc-ink:#203e34;--rc-muted:#677e73;--rc-line:#deebe4;--rc-pale:#eaf7ef;--rc-wash:#f5faf7;color:var(--rc-ink);background:#fff;border:1px solid var(--rc-line);border-radius:18px;padding:18px 24px 8px;min-width:0;font-size:14px}
.records-workspace button,.records-workspace input,.records-workspace select{font:inherit}
.records-workspace button{cursor:pointer;color:var(--rc-dark)}
.records-workspace [hidden]{display:none!important}
.records-workspace .back{font-size:12px;padding-bottom:12px}
.records-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:5px}
.records-heading h1{font-size:25px;line-height:1.3;letter-spacing:.03em;margin:0}
.records-heading p{font-size:12px;color:var(--rc-muted);margin:5px 0 0}
.records-top-actions{display:flex;gap:8px;align-items:center}
.records-export-top,.records-filter-button{border:1px solid var(--rc-line);border-radius:10px;background:#fff;padding:9px 14px;min-height:42px;white-space:nowrap}
.records-export-top{background:var(--rc-pale);border-color:#b9dcc8;font-weight:600}
.records-menu{position:relative}
.records-menu>summary{list-style:none;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--rc-line);border-radius:10px;color:var(--rc-dark);font-size:24px;cursor:pointer}
.records-menu>summary::-webkit-details-marker{display:none}
.records-menu-items{position:absolute;z-index:12;right:0;top:50px;width:238px;padding:7px;background:#fff;border:1px solid var(--rc-line);border-radius:14px;box-shadow:0 14px 40px #244e3025}
.records-menu-items button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:10px 12px;min-height:42px;border-radius:8px;font-size:13px}
.records-menu-items button:hover{background:var(--rc-pale)}
.records-menu-items small{display:block;color:var(--rc-muted);font-size:10px;margin-top:3px;font-weight:400}
.records-type-tabs{display:flex;gap:25px;border-bottom:1px solid var(--rc-line);margin-top:12px;overflow:auto;scrollbar-width:none}
.records-type-tabs button{position:relative;border:0;background:none;min-height:47px;padding:10px 0 13px;color:var(--rc-muted);white-space:nowrap;font-size:14px;font-weight:600}
.records-type-tabs button[aria-pressed=true]{color:var(--rc-dark)}
.records-type-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--rc-green);border-radius:3px}
.records-searchline{display:flex;gap:10px;margin-top:16px}
.records-workspace .records-searchline .input{min-width:0;min-height:44px;height:44px;background:var(--rc-wash);border-radius:11px;font-size:14px;padding:10px 13px;flex:1}
.records-filter-button{font-size:13px!important}
.records-date-store{display:grid;grid-template-columns:.9fr 1.35fr 1fr;gap:8px;align-items:center;margin-top:11px;max-width:720px}
.records-date-store>div{min-width:0}
.records-date-store .field{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.records-workspace .records-date-store .input{width:100%;min-width:0;height:44px;min-height:44px;padding:5px 9px;font-size:12px;border-radius:8px;background:white;text-overflow:ellipsis}
.records-date-inputs{display:flex;align-items:center;gap:10px;margin-top:8px}
.records-date-inputs>.field{font-size:11px;margin:0;color:var(--rc-muted);white-space:nowrap}
.records-workspace .records-date-inputs .input{height:36px;min-height:36px;max-width:180px;padding:5px 9px;font-size:12px;border-radius:8px}
.records-date-inputs .two{width:100%}.records-date-inputs .two>div{min-width:0}.records-date-inputs .two .field{font-size:11px;margin:0 0 4px}.records-date-inputs .two .input{max-width:none}
.records-status-tabs{margin-top:12px}.records-status-tabs .records-quick{display:flex;gap:7px;overflow:auto;scrollbar-width:none;flex-wrap:nowrap;margin:0;padding:0 0 2px}
.records-status-tabs .records-quick-dates{display:none}
.records-workspace .records-filter-chip{border:1px solid transparent;border-radius:8px;min-height:36px;padding:7px 10px;background:transparent;white-space:nowrap;color:var(--rc-muted);font-size:12px;font-weight:400}
.records-workspace .records-filter-chip[aria-pressed=true]{background:var(--rc-pale);color:var(--rc-dark);border-color:#c9e6d4;font-weight:600}
.records-filter-chip b{font-weight:500;margin-left:5px;font-variant-numeric:tabular-nums}
.records-active-filters{display:flex;gap:6px;flex-wrap:wrap}.records-active-filters button{border:0;border-radius:20px;background:var(--rc-pale);padding:4px 9px;font-size:11px;margin-top:8px}
.records-loading{margin:0;font-size:12px;color:var(--rc-muted);min-height:0}.records-loading:not(:empty){padding:8px 0}
.records-list-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0 10px;border-bottom:1px solid var(--rc-line);color:var(--rc-muted);font-size:12px}
.records-link{border:0;background:none;color:var(--rc-green);padding:4px;min-height:30px;font-size:12px!important}
.records-workspace .records-compact-table{min-width:960px;font-size:12px;table-layout:fixed}
.records-workspace .records-compact-table th,.records-workspace .records-compact-table td{padding:13px 9px;vertical-align:middle;white-space:normal;border-bottom:1px solid #eaf0ec}
.records-workspace .records-compact-table thead th{background:#f6faf7;font-size:11px;font-weight:500;color:var(--rc-muted);padding:11px 9px}
.records-compact-table tbody tr:hover{background:#f6fcf8}
.records-workspace .records-product{color:var(--rc-ink);font-size:14px;font-weight:600;line-height:1.55;padding:0;text-align:left;min-height:30px;background:none;border:0}
.records-number{display:block;font-size:11px;color:#7c8d84;margin-top:4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-weight:400}
.records-workspace .records-amount{font-size:15px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap!important;color:var(--rc-ink)}
.records-amount small,.records-muted{display:block;color:var(--rc-muted);font-size:11px;font-weight:400;margin-top:4px;line-height:1.6;white-space:normal}
.records-badge,.records-kind{display:inline-block;border-radius:6px;background:#f0f4f1;color:#63766a;padding:3px 7px;font-size:10px;line-height:1.6;white-space:nowrap}
.records-badge.green{background:var(--rc-pale);color:var(--rc-dark)}.records-badge.amber{background:#fff4e4;color:#95601e}.records-kind{background:#f1f6f3}
.records-workspace .records-pagination{border:0;margin:0;padding:15px 0;display:flex;justify-content:space-between;align-items:center;gap:10px}
.records-workspace .records-pagination .hint{margin:0;font-size:11px;color:var(--rc-muted)}
.records-workspace .records-pagination .two{display:flex;gap:6px;flex:none}
.records-workspace .records-pagination .btn{min-height:36px;width:auto;min-width:64px;margin:0;padding:7px 9px;border:1px solid var(--rc-line);background:#fff;border-radius:8px;font-size:12px;font-weight:500}
.records-footnote{margin:0 0 12px;font-size:11px;line-height:1.7;color:#7b8f82}
.records-empty{text-align:center;padding:48px 16px;color:var(--rc-muted);font-size:12px}.records-empty strong{font-size:15px;color:var(--rc-ink)}
.records-mobile-list{display:none}
.records-shade{position:fixed;inset:0;z-index:40;background:#17382b55;display:flex;justify-content:flex-end}
.records-panel{width:440px;max-width:100%;height:100%;background:#fff;padding:23px;overflow:auto;overscroll-behavior:contain;box-shadow:-10px 0 50px #123a2920}
.records-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.records-panel h2{font-size:20px;margin:0}.records-panel h3{font-size:18px;margin:8px 0}.records-panel h4{font-size:14px;margin-top:25px}
.records-close{width:36px;height:36px;border:1px solid var(--rc-line);border-radius:50%;background:#fff;color:var(--rc-muted)!important;font-size:22px!important}
.records-panel .field{font-size:12px!important;color:var(--rc-muted);font-weight:500;margin:15px 0 6px}
.records-panel .input{min-height:44px!important;height:44px;font-size:14px!important;border-radius:9px;min-width:0}
.records-panel .two>div{min-width:0}.records-panel details>summary{font-size:12px;color:var(--rc-muted);cursor:pointer;line-height:1.7}
.records-panel .records-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.records-panel .records-summary>div{padding:13px;background:var(--rc-wash);border:1px solid var(--rc-line);border-radius:10px;min-width:0}
.records-summary small{display:block;color:var(--rc-muted);font-size:11px;line-height:1.5}.records-summary strong{display:block;margin-top:5px;color:var(--rc-dark);font-size:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.records-detail-line{display:flex;gap:15px;justify-content:space-between;border-bottom:1px solid var(--rc-line);padding:13px 0;font-size:12px;line-height:1.65}.records-detail-line>span{color:var(--rc-muted);flex:none}.records-detail-line strong{text-align:right;overflow-wrap:anywhere;min-width:0;font-weight:600}
@media(min-width:761px){.records-workspace .records-desktop{border:0;border-radius:0;margin:0}.records-workspace .records-compact-table{width:100%}}
@media(max-width:760px){.records-workspace{border:0;border-radius:0;padding:0;background:transparent}.records-heading h1{font-size:24px}.records-heading p{font-size:11px}.records-export-top{font-size:12px!important;padding:8px 10px;min-height:38px}.records-menu>summary{width:38px;height:38px}.records-type-tabs{gap:23px;margin-top:10px}.records-type-tabs button{font-size:13px}.records-searchline{margin-top:13px;gap:8px}.records-workspace .records-searchline .input{font-size:14px;min-width:0}.records-filter-button{padding:8px 12px}.records-date-store>div{max-width:none}.records-list-meta{font-size:11px}.records-desktop{display:none}.records-mobile-list{display:block}.records-mobile-row{width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--rc-line);padding:15px 0;color:var(--rc-ink)!important;display:block;border-radius:0}.records-mobile-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.records-mobile-head strong{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;min-width:0}.records-mobile-head b{font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}.records-mobile-meta{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap;font-size:11px;color:var(--rc-muted)}.records-mobile-meta .records-payment-time{display:flex;gap:5px}.records-mobile-meta .records-payment-time small{font-size:10px;margin:0}.records-mobile-row>.records-muted{font-size:10px;margin-top:6px}.records-workspace .records-pagination{align-items:center;gap:8px}.records-pagination .hint{max-width:180px}.records-panel{width:100%;max-width:440px;padding:21px}.records-footnote{font-size:10px}.records-workspace .records-date-inputs .input{max-width:none;min-width:0}.records-date-inputs>.input{flex:1}.records-panel .btn{font-size:14px!important;min-height:44px!important}}
@media(prefers-reduced-motion:reduce){.records-workspace *{scroll-behavior:auto!important}}

/* One horizontal ledger for phones and desktops, matching the inventory table. */
.records-workspace .records-ledger-wrap{display:block;width:100%;max-width:100%;margin:0;border:1px solid var(--ui-line,var(--rc-line));border-radius:10px}
.records-workspace .records-table-hint{font-size:11px;line-height:1.6;color:var(--rc-muted);margin:9px 0}
.records-workspace .records-ledger-table{min-width:2174px;font-size:12px}
.records-workspace .records-ledger-table th,.records-workspace .records-ledger-table td{padding:10px 12px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--ui-line,var(--rc-line))}
.records-workspace .records-ledger-table thead th{background:var(--ui-soft,var(--rc-pale));color:var(--ui-text,var(--rc-ink));font-size:12px;font-weight:650;padding:11px 12px}
.records-workspace .records-ledger-table .records-product{max-width:none;width:100%;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.55;min-height:44px;padding-right:4px}
.records-workspace .records-ledger-table .records-amount{font-size:15px;color:var(--ui-primary,var(--rc-green));white-space:nowrap;font-variant-numeric:tabular-nums}
.records-ledger-table .records-code{font-variant-numeric:tabular-nums}
.records-workspace .records-ledger-table .records-explanation{font-size:11px;color:var(--rc-muted);line-height:1.6}
.records-workspace .records-ledger-table .records-badge,.records-workspace .records-ledger-table .records-kind{font-size:11px;white-space:normal}
.records-workspace .records-ledger-table .records-payment-time small{font-size:11px}

/* Records v2 selection and a single exact-scope export dialog. */
.records-selection-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 0;font-size:12px}
.records-selection-bar label,.records-row-choice{display:inline-flex;align-items:center;gap:6px}
.records-row-choice{float:left;margin:10px 8px 0 0}
.records-row-choice input,.records-selection-bar input,.records-export-choice input{width:18px;height:18px;accent-color:#397e61}
.records-workspace .records-row-choice+.records-product{width:calc(100% - 30px)}
.records-next{display:block;margin-top:5px;color:#647c70;font-size:11px;line-height:1.5}
.records-workspace .records-ledger-table .records-row-actions{position:relative;right:auto;z-index:0;background:#fff;border-left:1px solid var(--ui-line);padding:6px 8px;overflow-wrap:normal}
.phone .records-workspace .records-ledger-table[data-product-columns] thead th.records-row-actions{position:relative;right:auto;z-index:0;background:var(--ui-soft)}
.records-action-buttons{display:flex;flex-direction:column;gap:4px}
.records-action{min-height:40px;width:100%;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-soft);color:var(--ui-primary);font:inherit;cursor:pointer}
.records-action-danger{color:#a13a32;background:#fff8f7;border-color:#ebd5d2}
.records-action:disabled{color:#87988f;background:#f6f8f6;border-color:#e4eae5;cursor:default}
.records-action:focus-visible,.records-action-reasons summary:focus-visible{outline:2px solid var(--ui-focus);outline-offset:1px}
.records-action-reasons{font-size:11px;line-height:1.5;margin-top:5px;color:var(--ui-muted)}
.records-action-reasons summary{cursor:pointer;padding:6px 0;min-height:28px}
.records-action-reasons p{margin:6px 0;text-align:left}
.records-export-scope{display:flex;gap:6px;flex-wrap:wrap;padding:12px;background:#eef7f1;border-radius:12px;margin:10px 0}
.records-export-scope span{font-size:12px;padding:3px 6px;border:1px solid #d5e7dd;border-radius:5px;background:white}
.records-export-choice{display:flex;align-items:center;gap:9px;padding:12px 0;cursor:pointer}
#recordsExportFacts{border:1px solid #d5e7dd;padding:12px;border-radius:10px;margin:8px 0}
@media(max-width:600px){.records-selection-bar{gap:8px;font-size:11px}.records-date-store select{padding-left:6px;font-size:12px}.records-export-choice{font-size:14px}}
