.pos-modal{background:#f6faf8;width:min(1180px,100%);height:min(760px,94vh);overflow:auto;border-radius:20px;padding:22px;box-shadow:0 24px 70px #0005}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;margin-top:18px}
.pos-search{width:100%;min-height:48px;border:1px solid #b9cdc4;border-radius:12px;padding:12px 15px;margin-bottom:14px;background:#fff}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px}
.product-tile{border:1px solid #d5e3dc;background:#fff;border-radius:16px;padding:10px;cursor:pointer;min-height:175px;display:flex;flex-direction:column;align-items:stretch;text-align:left;box-shadow:0 3px 10px #1232}
.product-tile:active{transform:scale(.97)}
.product-tile img,.product-placeholder{width:100%;height:92px;border-radius:11px;object-fit:cover;background:#e8f1ed}
.product-placeholder{display:grid;place-items:center;font-size:30px;font-weight:900;color:#087455}
.product-tile span{font-weight:900;margin-top:9px}.product-tile small{color:#60736b;min-height:18px}.product-tile b{color:#087455;margin-top:auto;font-size:18px}
.pos-cart{background:#fff;border:1px solid #d5e3dc;border-radius:16px;padding:16px;position:sticky;top:0;min-height:520px;display:flex;flex-direction:column}
.pos-cart h3{margin:0 0 12px}.cart-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e2ebe7;padding:11px 0}.cart-row small{display:block;color:#60736b;margin-top:3px}
.qty-buttons{display:flex;align-items:center;gap:8px}.qty-buttons button{width:34px;height:34px;border:0;border-radius:9px;background:#e8f1ed;font-size:20px;cursor:pointer}.qty-buttons b{min-width:20px;text-align:center}
.pos-empty{padding:28px;color:#6c7d76;text-align:center;grid-column:1/-1}.cart-total{display:flex;justify-content:space-between;border-top:2px solid #173f34;padding:16px 0;margin-top:auto;font-size:20px}.cart-total b{color:#087455}
.pos-pay,.pos-clear{width:100%;margin-top:10px}.table-photo{width:58px;height:48px}.table-photo img,.table-photo .product-placeholder{width:58px;height:48px;border-radius:8px;object-fit:cover;font-size:16px}.list td small{display:block;color:#6c7d76}
@media(max-width:900px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static;min-height:360px}.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.pos-modal{padding:14px;border-radius:12px}.product-grid{grid-template-columns:repeat(2,1fr)}.product-tile{min-height:155px}.product-tile img,.product-placeholder{height:78px}}
.backdate-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:10px 12px;background:#fff5d8;border:1px solid #efd58c;border-radius:12px}
.backdate-controls .field{min-width:170px}.backdate-controls input{min-height:44px;border:1px solid #b9cdc4;border-radius:10px;padding:9px 11px}
.translate-product{margin-top:7px;width:100%;padding:8px 10px;min-height:38px}
.bill-history{margin-top:28px}.bill-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.bill-history-head h2{margin:0 0 4px}.invoice-status{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900}.invoice-status.issued{background:#e4f4ed;color:#087455}.invoice-status.returned{background:#fde8eb;color:#9b1d30}
.closing-summary .closing-profit-percent{background:#fff2c7;border:2px solid #f4c84f}.closing-summary .closing-profit-percent span{color:#6b5310}.closing-summary .closing-profit-percent b{font-size:25px}.profit-percent{font-size:16px;white-space:nowrap}.monthly-sheet th[data-profit-percent]{background:#fff2c7;color:#503d08}
.profit-month-total{margin:18px 0;padding:22px 24px;border-radius:16px;background:#073f32;color:#fff;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.profit-month-total span{font-weight:800}.profit-month-total b{font-size:28px;margin-left:auto}.profit-month-total small{width:100%;opacity:.8}.daily-profit-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px}.daily-profit-card{padding:18px;border:1px solid #d8e4de;border-radius:14px;background:#f8fbf9}.daily-profit-card span{display:block;color:#60736b}.daily-profit-card b{display:block;font-size:21px;margin-top:8px}@media(max-width:800px){.daily-profit-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.daily-profit-grid{grid-template-columns:1fr}.profit-month-total b{margin-left:0}}
