.auth-logo{display:block;width:106px;height:106px;object-fit:contain;margin:0 auto 18px;border-radius:50%;background:white}
.password-entry{display:flex;align-items:stretch;gap:8px}.password-entry input{flex:1;min-width:0}.password-entry button{min-width:68px;min-height:48px;border:1px solid #dfe5dc;border-radius:11px;background:#f5f7f2;color:#37533b;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.topbar-logo{width:34px;height:34px;object-fit:contain;border-radius:50%;background:white;margin-inline-end:7px}
.brand-mark{overflow:hidden;background:white!important}.brand-mark img{width:100%;height:100%;object-fit:contain}
#dashboardPage>.page-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:right;gap:16px}
#dashboardPage>.page-heading>div:first-child{width:auto;flex:1;min-width:0}
.dashboard-heading-logo{display:block;width:96px;height:96px;flex:0 0 96px;object-fit:contain;border-radius:50%;background:#fff;border:2px solid #e5e9df;box-shadow:0 6px 18px #263c2b16}
.dashboard-greeting-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:72px;margin:0 0 15px;padding:15px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);color:var(--ink);text-align:right;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.dashboard-greeting-card>span{min-width:0;font-size:18px;line-height:1.6}.dashboard-greeting-card b{font-weight:700}.dashboard-greeting-card small{flex:0 0 auto;color:var(--ink-soft);font-size:12px;font-weight:600}
.dashboard-greeting-card:hover{transform:translateY(-2px);border-color:var(--green);box-shadow:0 7px 18px #263c2b18}.dashboard-greeting-card:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.dashboard-photo-popup{position:fixed;inset:0;z-index:45;display:grid;place-items:center;padding:20px;background:transparent}
.dashboard-photo-card{position:relative;width:min(440px,100%);padding:0;background:transparent}
.dashboard-photo-card img{display:block;width:100%;max-height:72dvh;object-fit:contain}
.dashboard-photo-close{position:absolute;top:10px;left:10px;z-index:1;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:#eff3eb;color:#3a5540;font-size:27px;cursor:pointer}
#dashboardPage>.page-heading .heading-actions{justify-content:center}
.dashboard-reports{margin:0 0 23px}
.dashboard-reports-heading{margin-bottom:18px}
.dashboard-reports-heading h2{margin:0;color:#343a31;font-size:23px;line-height:1.4}
.dashboard-reports-heading p{margin:4px 0 0;color:#7b8177;font-size:12px}
.report-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.report-shortcut{display:flex;flex-direction:column;align-items:flex-start;gap:0;position:relative;min-width:0;min-height:205px;border:1px solid transparent;border-radius:20px;background:#36533c;color:#fff;text-align:right;padding:22px;cursor:pointer;box-shadow:none;transition:transform .15s,box-shadow .15s}
.report-shortcut:nth-child(2){background:#596b50}.report-shortcut:nth-child(3){background:#9f4a40}
.report-shortcut:nth-child(2),.report-shortcut:nth-child(3){background:#36533c}
.report-shortcut-arrow,#dashboardPage .stat-card[data-stat-target="month-sales"] .stat-icon{display:none}
.report-shortcut-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#ffffff25;color:#fff;font-size:21px;line-height:1;margin-bottom:13px}
.report-shortcut b{display:block;color:#fff;font-size:18px;line-height:1.5}
.report-shortcut .report-shortcut-description{display:block;margin-top:7px;color:#ffffffe0;font-size:12px;line-height:1.5}
.report-shortcut-accent{display:block;width:55px;height:4px;border-radius:8px;background:#ffffff85;margin-top:15px}
.report-shortcut-arrow{position:absolute;left:21px;bottom:18px;color:#fff;font-size:22px;line-height:1}
.report-shortcut:hover,.report-shortcut:focus-visible{transform:translateY(-3px);box-shadow:0 9px 24px #273e302e}
.report-shortcut:focus-visible{outline:3px solid #c9a65e;outline-offset:3px}
#dashboardPage .stats-grid{grid-template-columns:minmax(0,1fr);margin-bottom:12px}
#dashboardPage .stats-grid>.stat-card:not([data-stat-target="month-sales"]){display:none}
#dashboardPage .stats-grid>.stat-card[data-stat-target="month-sales"]{min-height:118px}
#dashboardPage .dashboard-grid{grid-template-columns:minmax(0,1fr)}
#dashboardPage .inventory-panel,#dashboardPage .tip-bar{display:none}
.dashboard-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 25px}
.dashboard-quick-action{display:flex;align-items:center;justify-content:center;gap:16px;min-height:104px;padding:18px 22px;border:0;border-radius:18px;color:#fff;text-align:right;cursor:pointer;box-shadow:0 7px 18px #263c2b18;transition:transform .15s,filter .15s}
.dashboard-quick-action.sale{background:#2f704b}.dashboard-quick-action.receiving{background:#ad4941}
.dashboard-quick-action:hover{transform:translateY(-2px);filter:brightness(1.06)}
.dashboard-quick-action:focus-visible{outline:3px solid #c9a65e;outline-offset:3px}
.dashboard-quick-action b,.dashboard-quick-action small{display:block}.dashboard-quick-action b{font-size:19px;line-height:1.4}.dashboard-quick-action small{margin-top:4px;font-size:12px;color:#ffffffd9}
.dashboard-quick-icon{display:block;width:46px;height:46px;flex:0 0 46px;background:currentColor;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.dashboard-quick-action.sale .dashboard-quick-icon{-webkit-mask-image:url('icons/shopping-cart.svg');mask-image:url('icons/shopping-cart.svg')}
.dashboard-quick-action.receiving .dashboard-quick-icon{-webkit-mask-image:url('icons/package-plus.svg');mask-image:url('icons/package-plus.svg')}
.legacy-inventory{display:none}
.stock-history-panel{display:none!important}
#inventoryPage .edit-only{display:none}#inventoryPage.editing .edit-only{display:inline-flex}
#inventoryPage.editing .carton-note{display:block;padding:12px 15px;border-radius:12px;background:#fff5e7;color:#815d30;font-size:13px;line-height:1.7}
.inventory-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:20px 0}
.inventory-card{overflow:hidden;border:1px solid #e7e5dd;border-radius:18px;background:white;box-shadow:0 4px 18px #283d320d}
.inventory-card-header{min-width:0}
.inventory-card-image{display:grid;place-items:center;height:180px;background:#f6f3ec;color:#9c8981;font-weight:700}
.inventory-card-image img{display:block;height:100%;width:100%;object-fit:contain;padding:10px}
.inventory-card-summary{min-width:0;padding:15px 15px 0}.inventory-card-body{padding:0 15px 15px}.inventory-card h2{min-height:51px;margin:10px 0;font-size:15px;line-height:1.7;color:#333b34;overflow-wrap:anywhere}
.stock-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.stock-numbers>div{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border-radius:11px;background:#f6f7f2}
.stock-numbers.carton-only-stock{grid-template-columns:1fr}
.carton-only-choice{display:flex;flex-direction:row;align-items:center;gap:9px}.modal .field.carton-only-choice input{width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:none}
.stock-numbers b{font-size:25px;color:#3d5a40}.stock-numbers span,.inventory-card-meta{font-size:12px;color:#6f786e}
.inventory-card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;line-height:1.6}.inventory-card-meta .out-of-stock{color:#a04b3d}
.inventory-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.inventory-card-actions button{min-height:45px;border:1px solid #cfdbcb;border-radius:10px;background:#eef3e9;color:#375a3c;font:inherit;font-weight:700;cursor:pointer}.inventory-card-actions button:last-child{border-color:#ebd7d3;background:#fff3f0;color:#a33c34}
.inventory-empty{grid-column:1/-1;padding:36px 16px;background:#fff;border-radius:15px}
#reportsPage>:not(#periodReportView){display:none!important}
.report-mode-tabs{display:flex;gap:8px;margin:14px 0}.report-mode-tabs button{min-height:46px;min-width:94px;border:1px solid #e2dfd5;border-radius:12px;background:white;font:inherit;font-weight:700;color:#49564a;cursor:pointer}.report-mode-tabs button.selected{background:#9f2d27;color:white;border-color:#9f2d27}
.report-period-controls{margin:14px 0 18px}.report-period-controls label{display:inline-flex;align-items:center;gap:12px;font-size:14px;font-weight:700;color:#3e4d40}.report-period-controls label[hidden]{display:none}.report-period-controls input,.report-period-controls select{min-height:48px;padding:8px 12px;border:1px solid #d9ddd3;border-radius:10px;background:white;font:inherit;font-size:16px}
.period-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:16px 0}.period-summary article{display:flex;flex-direction:column;gap:9px;padding:20px;border:1px solid #e5e3da;border-radius:16px;background:#fff}.period-summary span{font-size:13px;color:#6e796e}.period-summary b{font-size:25px;color:#365940}.period-summary small{font-size:12px;color:#69746d}
.period-report-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.period-report-lists .panel{min-width:0;overflow:hidden}.period-row{display:flex;justify-content:space-between;gap:12px;padding:15px;border-top:1px solid #edf0ea}.period-row>div{display:flex;flex-direction:column;gap:5px;min-width:0}.period-row b{font-size:13px;line-height:1.6}.period-row small{font-size:11px;color:#778176}.period-row strong{white-space:nowrap;color:#35543b;font-size:13px}.period-report-lists .empty-state{padding:28px 12px}
.mixed-total{padding:14px;margin-top:16px;border-radius:12px;background:#eef4ea;color:#37583c;font-size:16px;font-weight:700}.mixed-total b{font-size:20px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.product-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:100%;max-height:190px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y;padding:5px;border:1px solid #e6e9df;border-radius:12px;background:#fafbf7}
.product-choices button{display:flex;align-items:center;gap:7px;min-width:0;min-height:64px;padding:5px;border:1px solid #e6e9df;border-radius:9px;background:white;color:#38443a;text-align:right;cursor:pointer;font:inherit}
.product-choices button.selected{border-color:#ad3b34;box-shadow:0 0 0 2px #ad3b3422}.product-choices button img,.product-choices button>span:first-child{width:52px;height:52px;flex:0 0 52px;object-fit:contain;border-radius:7px;background:#f5f4ed}
.product-choices button>span:last-child{display:-webkit-box;min-width:0;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:11px;line-height:1.5}.product-choices>p{grid-column:1/-1;text-align:center;color:#788078}
.selected-product{display:flex;align-items:center;gap:12px;min-height:78px;min-width:0;padding:9px;border:2px solid #bb4b43;border-radius:12px;background:#fff9f6}.selected-product img,.selected-product>span:first-child:not(:last-child){width:65px;height:65px;flex:0 0 65px;object-fit:contain;background:white;border-radius:9px}.selected-product>div{display:flex;flex-direction:column;gap:5px;min-width:0}.selected-product b{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.selected-product small{color:#687768;font-size:11px}
.availability-card{display:grid;gap:3px;min-width:0;padding:13px 15px;border:1px solid #bfd8b5;border-radius:12px;background:#edf8e7;color:#213e2a}
.availability-card[hidden]{display:none}.availability-card span{font-size:12px;font-weight:700}.availability-card strong{font-size:19px;line-height:1.5;overflow-wrap:anywhere}.availability-card small{font-size:11px;line-height:1.5}
.modal{overflow-x:hidden}.modal .form-grid,.modal .form-grid>.field{min-width:0}
.fixed-costs{padding:12px;border:1px solid #dbe7d6;border-radius:12px;background:#f3f8f0}.fixed-costs>b{color:#405a41;font-size:14px}.fixed-costs span{font-size:13px}.fixed-costs strong{color:#38633e}.fixed-costs small{color:#6b766c;line-height:1.5}
.period-summary article.inbound{border-right:4px solid #478853}.period-summary article.outbound{border-right:4px solid #b8443c}.period-summary .outbound b{color:#a93631}
.report-product{display:flex;align-items:center;gap:10px;padding:13px;border-top:1px solid #edf0ea;border-right:4px solid #438c52}.report-product.outbound{border-right-color:#ba443b}.report-product-image{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:9px;background:#f7f5ef}.report-product-image img{width:100%;height:100%;object-fit:contain}.report-product-details{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.report-product-details b{font-size:13px;line-height:1.5}.report-product-details small{font-size:11px;color:#778176}.report-product-details strong{font-size:12px;color:#388146}.report-product.outbound strong{color:#b44037}.report-product-total{font-weight:700;font-size:12px;white-space:nowrap;color:#425746}
.modal .field input,.modal .field select,.modal .field textarea,.auth-field input{font-size:16px;min-height:48px}.modal .field{font-size:13px}.button,.backup-button,.close-button{min-height:44px}
@media(max-width:760px){.dashboard-reports-heading h2{font-size:20px}.dashboard-reports-heading p{font-size:11px}.report-shortcuts{grid-template-columns:1fr;gap:9px}.report-shortcut{min-height:144px;padding:15px 17px 16px}.report-shortcut-icon{position:absolute;left:17px;top:15px;width:34px;height:34px;margin:0;font-size:19px}.report-shortcut b{font-size:16px;padding-left:39px}.report-shortcut .report-shortcut-description{font-size:11px;padding-left:39px}.report-shortcut-accent{margin-top:13px}.report-shortcut-arrow{left:18px;bottom:17px}.inventory-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inventory-card-image{height:130px}.inventory-card-body{padding:11px}.inventory-card h2{font-size:12px;min-height:62px}.stock-numbers{gap:5px}.stock-numbers b{font-size:20px}.stock-numbers span,.inventory-card-body>small{font-size:10px}.period-report-lists{grid-template-columns:1fr}.period-summary{gap:8px}.period-summary article{padding:13px}.period-summary b{font-size:18px}.period-summary small{font-size:10px}#dashboardPage>.page-heading .heading-actions{width:100%}.topbar{align-items:center}.top-actions{align-items:center}.backup-button{font-size:11px;min-height:40px;padding:6px 10px}.modal .field{font-size:12px}.modal-actions .button{font-size:14px;min-height:50px}}
@media(max-width:380px){.inventory-cards{grid-template-columns:1fr}.inventory-card-image{height:180px}.inventory-card h2{min-height:0}}
@media(max-width:760px){.product-choices{grid-template-columns:1fr;max-height:165px}.report-product-total{font-size:11px}.report-product-details b{font-size:12px}}
@media(max-width:760px){
  .dashboard-heading-logo{width:82px;height:82px;flex-basis:82px}
  .dashboard-greeting-card{min-height:72px;padding:13px 15px}.dashboard-greeting-card>span{font-size:16px}.dashboard-greeting-card small{font-size:10px}
  .dashboard-quick-actions{gap:10px;margin-bottom:22px}
  .dashboard-quick-action{min-height:104px;gap:10px;padding:13px 12px;border-radius:16px}
  .dashboard-quick-action b{font-size:16px}.dashboard-quick-action small{font-size:10px}
  .dashboard-quick-icon{width:42px;height:42px;flex-basis:42px}
  .inventory-cards{grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0}
  .inventory-card{border-radius:16px}
  .inventory-card-header{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center;padding:12px 12px 0}
  .inventory-card-image{width:104px;height:104px;border-radius:12px;overflow:hidden}
  .inventory-card-image img{padding:6px}
  .inventory-card-summary{padding:0}
  .inventory-card .category-tag{font-size:10px}
  .inventory-card h2{min-height:0;margin:7px 0 0;font-size:14px;line-height:1.55}
  .inventory-card-body{padding:0 12px 12px}
  .stock-numbers{gap:8px;margin:12px 0 6px}
  .stock-numbers>div{min-height:55px;flex-direction:row;gap:7px;padding:7px 8px}
  .stock-numbers b{font-size:20px;line-height:1}
  .stock-numbers span{font-size:11px;line-height:1.3}
  .inventory-card-meta{margin-top:7px;font-size:11px}
  .inventory-card-actions{margin-top:12px}
}
.inventory-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 18px}
.inventory-overview button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:62px;padding:12px 14px;border:1px solid #e2e6de;border-radius:14px;background:#fff;color:#506251;text-align:right;font:inherit;cursor:pointer}
.inventory-overview button.selected{border-color:#4f7854;background:#eff5ec;box-shadow:0 0 0 2px #4f785424}
.inventory-overview button span{font-size:12px;font-weight:700}.inventory-overview button b{font-size:21px;color:#315d3c}
.inventory-result-count{margin:13px 2px 0;color:#69776d;font-size:12px;font-weight:700}
.inventory-card{border-right:4px solid #4c8b58}.inventory-card.low{border-right-color:#c59b44}.inventory-card.out{border-right-color:#c48b84}
.inventory-card-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.inventory-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:20px;background:#eaf4e9;color:#3b7448;font-size:10px;font-weight:700;white-space:nowrap}.inventory-card.low .inventory-status{background:#fff4dc;color:#926822}.inventory-card.out .inventory-status{background:#faefed;color:#a05b52}
.inventory-card .stock-numbers>div{background:#f1f6ef}.inventory-card.out .stock-numbers>div{background:#f7f6f3}.inventory-card.out .stock-numbers b{color:#716f6b}
@media(max-width:760px){
  .inventory-overview{gap:7px;margin:3px 0 14px}
  .inventory-overview button{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:70px;padding:9px;border-radius:12px}
  .inventory-overview button span{font-size:10px;line-height:1.3}.inventory-overview button b{font-size:19px;line-height:1.1}
  .inventory-card-header{grid-template-columns:88px minmax(0,1fr);gap:10px}
  .inventory-card-image{width:88px;height:88px}
  .inventory-card h2{margin-top:5px;font-size:13px;line-height:1.45}
  .inventory-card .stock-numbers{margin:9px 0 5px}
  .inventory-card .stock-numbers>div{min-height:48px}
}
.stat-link{display:block;text-decoration:none;color:inherit;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.stat-link:hover,.stat-link:focus-visible{transform:translateY(-2px);border-color:#b8cbb7;box-shadow:0 9px 25px #284b3218;outline:none}
.stat-link .stat-note{display:flex;justify-content:space-between;gap:6px;align-items:center}
.stat-link .stat-note>span{color:#6b876f;font-size:17px}
.inventory-overview{grid-template-columns:repeat(4,minmax(0,1fr))}
.inventory-toolbar .print-inventory-button,.inventory-toolbar .print-product-button{white-space:nowrap}
.sales-list-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.sales-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.withdrawal-row .purchase-total{color:#637c69}
.sales-list-tools .button{font-size:11px}
.receiving-history{overflow:hidden}
#toggleInventoryEdit{min-height:58px;min-width:190px;padding:13px 22px;border-radius:14px;font-size:16px;font-weight:700;box-shadow:0 6px 16px #284b3226;cursor:pointer}
#receivingPage>.page-heading>.button.primary,#salesPage>.page-heading>.button.primary{min-height:58px;min-width:190px;padding:13px 22px;border-radius:14px;font-size:16px;font-weight:700;box-shadow:0 6px 16px #284b3226;cursor:pointer}
#receivingPage>.page-heading>.button.primary span,#salesPage>.page-heading>.button.primary span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#ffffff2b;font-size:24px;line-height:1}
.receiving-list{padding:8px 18px 18px;display:grid;gap:10px}
.receiving-entry{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid #e5ebe1;border-radius:14px;background:#fbfdf9}
.receiving-entry-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:12px;background:#e8f3e9;color:#46844f;font-size:23px}
.receiving-entry-icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.recent-icon.transaction-thumb{width:44px;height:44px;flex:0 0 44px;overflow:hidden;border:1px solid var(--line);background:#fff;color:var(--ink)}
.transaction-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.receiving-entry-main{flex:1;min-width:0}.receiving-entry-main b{display:block;font-size:13px;color:#35483b;overflow-wrap:anywhere}.receiving-entry-main small{display:block;margin-top:4px;font-size:11px;color:#7a887c}.receiving-entry-main p{margin:7px 0 0;font-size:11px;color:#69796b}
.receiving-entry>strong{font-size:12px;color:#316f41;white-space:nowrap}
.transaction-edit{justify-self:end;border:1px solid #cddfca;background:#eff7ec;color:#326942;border-radius:9px;padding:7px 12px;font:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.transaction-edit:hover,.transaction-edit:focus-visible{background:#e1f0dd;outline-color:#4c8a56}
.transaction-edit-product{margin:0 0 15px;font-size:15px;font-weight:700;color:var(--ink)}
.transaction-edit-stock{margin:14px 0 0;color:var(--muted);font-size:12px}
.delete-transaction{background:#fff0ee;color:#a34038;border:1px solid #e8c7c3}
.delete-transaction:hover{background:#fce1de}
.transaction-edit-actions{display:flex;flex-wrap:wrap}
.transaction-edit-actions .delete-transaction{margin-left:auto}
.purchase-row{grid-template-columns:minmax(180px,1.7fr) minmax(110px,1fr) 105px 110px minmax(80px,1fr) auto}
.inventory-print-sheet{display:none}
@media(max-width:760px){
  #toggleInventoryEdit{width:100%;min-height:62px;font-size:17px}
  #receivingPage>.page-heading>.button.primary,#salesPage>.page-heading>.button.primary{width:100%;min-height:62px;font-size:17px}
  .inventory-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-toolbar{grid-template-columns:1fr 1fr}
  .inventory-toolbar .search-box{grid-column:span 2}
  .inventory-toolbar select{grid-column:span 2}
  .inventory-toolbar .print-inventory-button,.inventory-toolbar .print-product-button{width:100%;font-size:10px;padding:8px;white-space:normal}
  .receiving-list{padding:7px 10px 12px}
  .receiving-entry{flex-wrap:wrap;padding:12px;gap:9px}
  .receiving-entry-main{flex-basis:calc(100% - 50px)}
  .receiving-entry>strong{margin-right:50px}
  .receiving-entry .transaction-edit{margin-right:auto}
  .purchase-row{grid-template-columns:minmax(0,1fr) auto}
  .purchase-row .transaction-edit{grid-column:2;grid-row:3;align-self:center}
  .sales-list-tools{width:100%}.sales-list-tools .search-box{flex:1;min-width:180px}
}
@page{size:A4 portrait;margin:14mm}
@media print{
  body{background:#fff!important;color:#111!important}
  body>*:not(.inventory-print-sheet){display:none!important}
  .inventory-print-sheet{display:block!important;font-family:'IBM Plex Sans Arabic',sans-serif;direction:rtl;color:#111}
  .inventory-print-sheet header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #333;padding-bottom:12px;margin-bottom:15px}
  .inventory-print-sheet h1{font-size:20pt;margin:0 0 4px}.inventory-print-sheet p{margin:0;font-size:10pt}
  .inventory-print-sheet header>div:last-child{display:flex;flex-direction:column;gap:3px;font-size:10pt}
  .inventory-print-sheet table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10pt}
  .inventory-print-sheet th,.inventory-print-sheet td{border:1px solid #888;padding:6px 8px;text-align:right}
  .inventory-print-sheet th{background:#eef2eb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .inventory-print-sheet th:first-child{width:7%}.inventory-print-sheet th:nth-child(3),.inventory-print-sheet th:nth-child(4){width:18%}
  .inventory-print-sheet tr{break-inside:avoid;page-break-inside:avoid}
  .inventory-print-sheet thead{display:table-header-group}
  .inventory-print-sheet footer{display:flex;justify-content:space-between;gap:20px;margin-top:18px;font-size:10pt}
}
.sales-report-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 18px}
.sales-report-toolbar .report-mode-tabs{margin:0}
.sales-report-toolbar label{display:inline-flex;align-items:center;gap:9px;color:#465448;font-size:13px;font-weight:700}
.sales-report-toolbar label[hidden]{display:none}
.sales-report-toolbar input,.sales-report-toolbar select{min-height:46px;padding:8px 11px;border:1px solid #d9ddd3;border-radius:10px;background:#fff;font:inherit;font-size:15px}
.sales-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.sales-report-summary article{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid #e4e8dd;border-radius:15px;background:#fff}
.sales-report-summary span{font-size:12px;color:#738074}.sales-report-summary b{font-size:22px;color:#344f3a}
.sales-report-panel{margin-bottom:20px}.sales-report-columns,.sales-report-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(120px,.85fr) minmax(140px,.9fr) 24px;gap:10px;align-items:center;padding:12px 20px}
.sales-report-columns{background:#f2f5ee;color:#667467;font-size:11px;font-weight:700}.sales-report-columns span:last-child{grid-column:3}
.sales-report-row{width:100%;min-height:56px;border:0;border-top:1px solid #edf0e9;background:#fff;color:#657368;text-align:right;font:inherit;font-size:12px}
button.sales-report-row,summary.sales-report-row{cursor:pointer}button.sales-report-row:hover,summary.sales-report-row:hover{background:#f8faf6}
.sales-report-row strong{color:#355a3f;font-size:13px;white-space:nowrap}.sales-report-period{color:#35473a;font-weight:700}.sales-report-chevron{color:#6a8b70;font-size:18px;text-align:left}
.sales-report-empty-day{color:#9aa59a}.sales-report-empty-day .sales-report-period{color:#718074}.sales-report-empty-day strong{color:#849185}
.sales-report-day summary{list-style:none}.sales-report-day summary::-webkit-details-marker{display:none}.sales-report-day[open] summary{background:#f1f6ef}
.sales-report-day-details{padding:5px 20px 12px 36px;background:#fafcf9}.sales-report-sale{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #e9eee6;font-size:11px}.sales-report-sale:last-child{border-bottom:0}.sales-report-sale b,.sales-report-sale small{display:block}.sales-report-sale b{color:#38513d}.sales-report-sale small{margin-top:3px;color:#7b897d}.sales-report-sale>strong{white-space:nowrap;color:#355a3f}
.sales-report-total{display:flex;justify-content:space-between;gap:15px;padding:17px 20px;background:#eaf1e6;color:#38543c;font-size:14px;font-weight:700}.sales-report-total strong{font-size:17px}
@media(max-width:760px){
  .report-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .report-shortcut{min-height:112px;padding:10px 9px 12px;border-radius:14px}
  .report-shortcut-icon{position:static;width:28px;height:28px;margin:0 0 9px;border-radius:9px;font-size:17px}
  .report-shortcut b{padding:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
  .report-shortcut .report-shortcut-description,.report-shortcut-accent{display:none}
  .report-shortcut-arrow{left:10px;bottom:10px;font-size:16px}
  .sales-report-toolbar{gap:12px}.sales-report-toolbar .report-mode-tabs{width:100%}.sales-report-toolbar .report-mode-tabs button{flex:1}
  .sales-report-summary{gap:7px}.sales-report-summary article{padding:11px;min-height:83px}.sales-report-summary span{font-size:10px}.sales-report-summary b{font-size:14px}
  .sales-report-columns,.sales-report-row{grid-template-columns:minmax(0,1.15fr) minmax(64px,.7fr) minmax(88px,.85fr) 14px;gap:4px;padding:11px 9px;font-size:10px}
  .sales-report-columns{font-size:9px}.sales-report-row strong{font-size:10px}.sales-report-chevron{font-size:14px}
  .sales-report-day-details{padding:4px 10px 10px 16px}.sales-report-sale{font-size:10px}
}
@media(max-width:380px){.report-shortcut b{font-size:11px}.sales-report-summary b{font-size:12px}}
