.delivery-products{display:grid;gap:12px}.delivery-product{border:1px solid #dce6f4;border-radius:14px;overflow:hidden;background:white}.delivery-choice{display:flex;align-items:center;gap:10px;padding:14px;background:#f1f5fc;color:#183b69}.delivery-choice input{width:22px;height:22px;accent-color:#173fa6}.delivery-choice span{margin-left:auto;font-size:11px;color:#63718a}.delivery-inputs{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px;padding:12px}.delivery-inputs .field{font-size:11px;min-width:0}.delivery-inputs input{width:100%;min-width:0;padding:10px 8px}.delivery-inputs input[readonly]{background:#fff8dc;color:#173fa6}.delivery-inputs input:disabled{background:#f3f5f8;color:#9ca8bb}.delivery-subtotal{padding:0 12px 10px;text-align:right;color:#173fa6;font-weight:700;font-size:13px}.client-delivery-context{display:grid;gap:7px;padding:14px;border-left:4px solid #ffd335;background:#f1f5fc;border-radius:10px;font-size:13px}.client-account-actions{margin:16px 0}.ledger-client{display:flex;align-items:center;gap:12px;margin-bottom:18px}.ledger-client h3{margin:0}.ledger-client p{font-size:12px;color:#63718a;margin:6px 0}.ledger-filter{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ledger-filter input{min-width:0;width:100%}.ledger-filter button{grid-column:1/-1}.ledger-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.ledger-totals>div{display:grid;gap:7px;padding:14px;border-radius:12px;background:#f0f5ff}.ledger-totals>div:last-child{background:#ffdf5d}.ledger-totals small{font-size:11px}.ledger-totals b{font-size:19px;color:#173fa6}.ledger-day{border:1px solid #dce6f4;border-radius:14px;margin:12px 0;overflow:hidden}.ledger-day>summary{padding:16px;background:#173fa6;color:white;cursor:pointer}.ledger-day>summary strong{float:right;color:#ffdf5d}.ledger-equation{font-size:12px;padding:12px;background:#fff8dc;margin:0;line-height:1.8}.ledger-movement{padding:14px;border-top:1px solid #e5ebf4}.ledger-row-head{display:flex;justify-content:space-between;gap:10px;font-size:14px}.ledger-movement small{font-size:11px;color:#63718a}.ledger-movement p{font-size:13px;line-height:1.6;margin:8px 0}.ledger-balance{font-size:12px;color:#63718a;margin-top:9px}.ledger-balance b{color:#173fa6}.frequency-filter{display:flex;align-items:center;gap:12px;font-size:12px;margin:0 0 14px}.frequency-filter select{padding:10px;border-radius:10px;border:1px solid #dce6f4;background:white;color:#183b69}.warehouse-detail{margin-top:24px}.warehouse-detail>summary{padding:16px;background:#fff8dc;border-radius:12px;font-weight:700;cursor:pointer}.warehouse-detail .heading{margin-top:20px}.warehouse-detail .heading h1{font-size:22px}#ledger-status{font-size:13px;color:#63718a}

.delivery-product:has(.delivery-choice input:not(:checked)) .delivery-inputs,.delivery-product:has(.delivery-choice input:not(:checked)) .delivery-subtotal{display:none}

.ledger-date-filter{border:1px solid #dce6f4;border-radius:12px;margin:14px 0}.ledger-date-filter>summary,.ledger-product-summary>summary{padding:12px 14px;font-size:13px;cursor:pointer;color:var(--primary);font-weight:600}.ledger-date-filter .ledger-filter{padding:0 14px 14px}.ledger-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.sj-ui #modal .ledger-filter-actions button{grid-column:auto;min-height:40px;padding:8px 14px;font-size:13px}.ledger-period-label,.ledger-purchase-count{font-size:12px;color:var(--muted);margin:12px 0}.ledger-totals.customer-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.customer-totals>div{min-width:0;padding:12px 10px}.customer-totals b{font-size:18px;overflow-wrap:anywhere}.ledger-product-summary{border:1px solid #dce6f4;border-radius:12px;margin:16px 0}.ledger-product-summary .record-row{padding:12px 14px;gap:12px}.ledger-product-summary .record-row>div{min-width:0}.ledger-product-summary .record-row small{overflow-wrap:anywhere}.ledger-product-summary .record-row strong{white-space:nowrap;font-size:14px}.ledger-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 12px}.sj-ui #modal .ledger-tabs button{min-height:40px;padding:8px;font-size:13px}.sj-ui #modal .ledger-tabs button[aria-pressed="true"]{background:var(--primary);color:#fff;border-color:var(--primary)}.ledger-results-heading{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:12px 0}.sj-ui #modal .ledger-day>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#eef3ff;color:#173fa6;padding:12px;font-size:13px}.ledger-day-balance{display:flex;flex-direction:column;gap:3px;text-align:right;font-size:10px;font-weight:400}.sj-ui #modal .ledger-day>summary strong{float:none;color:#173fa6;font-size:14px}.ledger-movement-extra{margin-top:8px}.ledger-movement-extra>summary{font-size:11px;color:var(--muted);cursor:pointer;padding:4px 0}.ledger-movement-extra .text-btn{margin-top:8px}.ledger-row-head>b{min-width:0;overflow-wrap:anywhere}.ledger-row-head>strong{white-space:nowrap}.ledger-pagination{justify-content:space-between}.ledger-client>div{min-width:0}.ledger-client h3{overflow-wrap:anywhere}.ledger-filter input{max-width:100%}#ledger-status:empty{display:none}#ledger-content[aria-busy="true"]{opacity:.65;pointer-events:none}
@media(max-width:400px){.ledger-totals.customer-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-totals>div:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.ledger-filter{grid-template-columns:1fr}.ledger-filter-actions{grid-column:auto}.ledger-tabs{gap:6px}.ledger-row-head{font-size:13px}}
