/* Spreadsheet density is limited to screen; receipt and print sizing stay independent. */
@media screen{
.sheet-export-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:7px 0;font-size:11px}.sheet-export-tools button{background:#226342;color:#fff;border:1px solid #1d5639;border-radius:5px;padding:6px 10px;font-size:11px;font-weight:700;white-space:nowrap}.sheet-export-tools small{color:#64748b;font-size:10px;margin-left:5px}
.sheet-grid{border-collapse:collapse!important;width:100%;font-size:12px!important}.sheet-grid th,.sheet-grid td{border:1px solid #d9e0e8!important;padding:5px 8px!important;height:29px;line-height:1.3!important;vertical-align:middle}.sheet-grid th{background:#e9eef4!important;color:#20334a;position:sticky;top:0;z-index:1;text-align:left}.sheet-grid tbody tr:nth-child(even){background:#f5f7fa}.sheet-grid tbody tr:hover{background:#edf6ee}.sheet-grid button{padding:3px 7px!important;min-height:26px!important;border-radius:4px!important;font-size:11px!important}.sheet-grid td:focus-within{outline:2px solid #21834a;outline-offset:-2px}.sheet-grid td small{margin-top:1px!important;font-size:10px}
#inventory-modal .inventory-product .product-category-image{display:none}#inventory-modal .inventory-product{min-width:180px}#inventory-modal .inventory-row-actions{gap:4px}#inventory-modal .inventory-summary #inventory-metrics{gap:0;border:1px solid #d9e0e8;border-radius:5px;overflow:hidden}#inventory-modal .inventory-summary article{border:0;border-right:1px solid #d9e0e8;border-radius:0;padding:7px 12px}#inventory-modal .inventory-summary article strong{font-size:18px;margin-top:2px}#inventory-modal .inventory-advanced{padding:7px 16px;gap:6px 12px}#inventory-modal .inventory-advanced button{min-height:30px;padding:5px 9px}#inventory-modal>div>.p-4.border-b,#inventory-modal>div>.p-4.overflow-y-auto{padding:8px 16px!important}#inventory-modal td{padding:5px 8px!important}#inventory-modal .stock-status{display:inline-block;padding:1px 4px;margin-left:5px}#inventory-modal .inventory-product small{display:inline;margin-left:8px}
.overview-content{padding:14px}.overview-heading{margin-bottom:12px}.overview-card{padding:10px;border-radius:5px;gap:3px}.overview-card strong{font-size:20px}.overview-cards{gap:7px;margin-bottom:12px}.overview-panel{padding:12px;border-radius:5px}.accounts-metrics{gap:0!important;border:1px solid #d9e0e8;border-radius:5px;overflow:hidden}.accounts-metric{border:0!important;border-right:1px solid #d9e0e8!important;border-bottom:1px solid #d9e0e8!important;border-radius:0!important;padding:9px 12px!important;min-height:0!important;box-shadow:none!important}.accounts-metric strong{font-size:20px!important}.accounts-icon{display:none!important}.accounts-metric small{font-size:10px!important}.accounts-task,.finance-task{padding:9px 12px;border-radius:5px;margin:6px 0}.finance-metric{padding:9px!important;border-radius:5px!important}.finance-metric strong{font-size:20px!important}
#khata-customers-list{padding:0!important;overflow:auto}#khata-customers-list>button{padding:6px 8px!important;border-radius:0!important;border:0!important;border-bottom:1px solid #d9e0e8!important;box-shadow:none!important;margin:0!important;min-height:38px}#khata-customers-list>button:nth-child(even){background:#f5f7fa}#khata-details-view>.grid-cols-3{gap:7px!important}#khata-details-view>.grid-cols-3>div{padding:9px!important;border-radius:5px!important}#khata-modal h3{font-size:20px}
@media(min-width:1000px){.accounts-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}.overview-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.product-card{border-radius:9px!important;padding:8px!important}.product-card .product-category-image{height:76px!important;min-height:76px!important}.workspace-sidebar{padding:15px 8px}.workspace-sidebar button{padding:8px 10px}}
@media(max-width:700px){.sheet-export-tools{gap:5px}.sheet-export-tools small{width:100%;margin:0}.sheet-grid{min-width:650px}.sheet-export-tools button{min-height:34px}.accounts-metric strong{font-size:17px!important}.sheet-grid th,.sheet-grid td{padding:6px!important}.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@media print{.sheet-export-tools{display:none!important}}
@media screen and (min-width:1000px){#khata-modal .grid-cols-12{grid-template-columns:minmax(410px,40%) minmax(0,1fr)}#khata-customers-list .customer-sheet{min-width:410px}#khata-customers-list .sheet-export-tools{padding:5px 8px}}
@media screen{.customer-sheet tbody tr{cursor:pointer}.customer-sheet .sheet-selected{background:#e4f2e6!important;outline:2px solid #21834a;outline-offset:-2px}.customer-sheet td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.customer-sheet td{white-space:nowrap}.customer-sheet th{font-size:11px}.customer-sheet{min-width:410px!important}}
@media screen{#inventory-modal .inventory-row-actions{flex-wrap:nowrap;white-space:nowrap}#inventory-modal .inventory-product>img,#inventory-modal .inventory-product>span{display:none!important}#inventory-modal td:last-child{width:1%}#inventory-modal td:nth-child(6)>small:last-child{display:none}#inventory-modal .inventory-product>div>b{font-size:12px}#inventory-modal table{min-width:1100px}}
@media screen{#inventory-modal .inventory-product .product-category-image{display:none!important}#inventory-modal .inventory-row-actions button{min-height:26px;padding:3px 6px;border-radius:4px}}
@media screen{#inventory-modal.sheet-grid td,#inventory-modal .sheet-grid td,#inventory-modal td{padding:2px 7px!important}#inventory-modal .inventory-row-actions button{min-height:22px!important;padding:2px 5px!important}.sheet-grid tbody tr{min-height:29px}}
@media screen and (min-width:1000px){#products-grid>div{padding:8px!important;border-radius:9px!important;min-height:110px!important}#products-grid .product-category-image{height:76px!important;min-height:76px!important}}
