@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #26342e;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #23332c;
  --ink-soft: #5a6a62;
  --muted: #8b9790;
  --paper: #fff;
  --canvas: #f5f6f2;
  --line: #e7ebe5;
  --green: #244a3d;
  --green-2: #34725b;
  --lime: #d7f068;
  --peach: #f4dfd2;
  --radius: 17px;
  --shadow: 0 14px 36px rgba(31, 55, 43, .055);
}

* { box-sizing: border-box; }
body { min-width: 360px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(66, 133, 103, .22); outline-offset: 2px; }
button:disabled { cursor: not-allowed !important; opacity: .48; }
svg { flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 27px 18px 18px; color: #e6eee8; background: #19372e; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.095); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-mark svg path:first-child { fill: #f4f2e9; }
.brand-mark svg path:nth-child(2) { fill: #d7f068; }
.brand-mark svg circle { fill: #eaa47f; }
.brand-copy { display: flex; flex-direction: column; gap: 0; }
.brand-copy strong { font: 800 20px/1.08 'Manrope', sans-serif; letter-spacing: -1px; }
.brand-copy strong span { color: #d7f068; }
.brand-copy small { margin-top: 5px; color: #9bb2a5; font-size: 8px; font-weight: 700; letter-spacing: 2.3px; }
.sidebar-section-label { margin: 48px 11px 13px; color: #8fa69a; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.primary-nav { display: grid; gap: 6px; }
.nav-item { position: relative; display: flex; min-height: 46px; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 11px; color: #afc0b6; background: transparent; cursor: pointer; text-align: left; transition: background .17s ease, color .17s ease, transform .17s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item:active { transform: scale(.985); }
.nav-item.active { color: #19372e; background: #d7f068; font-weight: 700; }
.nav-item span { flex: 1; font-size: 13px; }
.nav-item small { display: grid; min-width: 23px; height: 22px; place-items: center; padding: 0 5px; border-radius: 7px; color: #c1cec5; background: rgba(255,255,255,.11); font-size: 10px; }
.nav-item.active small { color: #244a3d; background: rgba(25,55,46,.1); }
.sidebar-bottom { margin-top: auto; }
.shift-card { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; padding: 12px 10px; border: 1px solid rgba(233,244,236,.1); border-radius: 12px; background: rgba(255,255,255,.045); }
.shift-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--lime); background: rgba(215,240,104,.1); }
.shift-card div, .profile-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.shift-card strong, .profile-copy strong { color: #f1f5f0; font-size: 11px; font-weight: 600; }
.shift-card small, .profile-copy small { color: #9eb1a5; font-size: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ee1a9; box-shadow: 0 0 0 4px rgba(158,225,169,.1); }
.profile-card { display: flex; align-items: center; gap: 10px; padding: 14px 7px 3px; border-top: 1px solid rgba(233,244,236,.11); }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; color: #29473a; background: #d7f068; font-size: 11px; font-weight: 800; }
.dots-button { border: 0; color: #abc0b2; background: transparent; font-size: 22px; letter-spacing: 2px; cursor: pointer; }

.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; height: 70px; align-items: center; justify-content: space-between; padding: 0 43px; border-bottom: 1px solid #e9ece6; background: rgba(250,251,248,.92); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #9ba49e; font-size: 11px; }
.breadcrumbs strong { color: #3d5047; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.date-chip { display: flex; align-items: center; gap: 8px; color: #717f76; font-size: 11px; }
.date-chip svg { color: #688272; }
.topbar-divider { height: 23px; border-left: 1px solid #e3e8e1; }
.avatar-small { width: 30px; height: 30px; border: 0; font-size: 9px; }
.page-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 35px 43px 42px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { display: flex; align-items: center; gap: 8px; margin: 7px 0 7px; color: #26372f; font: 750 30px/1.15 'Manrope', sans-serif; letter-spacing: -1.2px; }
.page-heading p { margin: 0; color: #89958e; font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #799184; font-size: 9px; font-weight: 800; letter-spacing: 1.65px; }
.eyebrow-line { width: 15px; height: 2px; border-radius: 2px; background: #9eb876; }
.eyebrow-quiet { color: #89958e; font-size: 8px; letter-spacing: 1.35px; }
.heading-spark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #63834f; background: #e9efd8; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .17s ease, background .17s ease, box-shadow .17s ease; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #f4f8f1; background: #28523f; box-shadow: 0 5px 11px rgba(36,74,61,.12); }
.button-primary:hover:not(:disabled) { background: #1e4434; box-shadow: 0 7px 16px rgba(36,74,61,.18); }
.button-primary svg { color: #d7f068; }
.button-quiet { border-color: #e1e8e0; color: #4a5c51; background: #fff; }
.button-quiet:hover:not(:disabled) { border-color: #b5c8ba; background: #fdfefd; }
.button-danger-quiet { border-color: #f0dedd; color: #ad514e; background: #fff; }
.button-danger { color: #fff; background: #b94f4c; }
.heading-actions { display: flex; gap: 9px; }

.metric-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 15px; margin-bottom: 19px; }
.metric-card { position: relative; min-height: 151px; overflow: hidden; padding: 19px 20px 15px; border: 1px solid #e9ece6; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 18px rgba(39,61,49,.025); }
.metric-featured { border-color: #244a3d; color: #fff; background: #244a3d; }
.metric-top, .metric-foot, .panel-heading, .cart-header, .metric-label { display: flex; align-items: center; justify-content: space-between; }
.metric-label { justify-content: flex-start; color: #7d8b82; font-size: 11px; font-weight: 600; }
.metric-featured .metric-label { color: #c5d4ca; }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #315c47; background: #eef3e7; }
.metric-icon-light { color: var(--lime); background: rgba(255,255,255,.095); }
.metric-icon-peach { color: #a7674a; background: #fbede5; }
.metric-icon-green { color: #3a7658; background: #e4f1e5; }
.metric-value { position: relative; z-index: 1; display: block; margin-top: 13px; color: #2d4135; font: 750 25px/1 'Manrope', sans-serif; letter-spacing: -.7px; }
.metric-featured .metric-value { color: #fff; }
.metric-value small { color: #728278; font: 500 11px 'DM Sans', sans-serif; letter-spacing: 0; }
.metric-featured .metric-value small { color: #c3d2c7; }
.metric-foot { position: relative; z-index: 1; justify-content: flex-start; gap: 12px; margin-top: 13px; }
.metric-muted { color: #9aa49e; font-size: 10px; }
.metric-featured .metric-muted { color: #adc2b4; }
.metric-trend { display: inline-flex; align-items: center; gap: 4px; color: #d7f068; font-size: 10px; font-weight: 700; }
.metric-scribble { position: absolute; right: 12px; bottom: 15px; display: flex; height: 41px; align-items: flex-end; gap: 4px; opacity: .24; transform: skewY(-15deg); }
.metric-scribble i { display: block; width: 9px; border-radius: 4px 4px 1px 1px; background: #d7f068; }
.metric-scribble i:nth-child(1) { height: 15px; }.metric-scribble i:nth-child(2) { height: 20px; }.metric-scribble i:nth-child(3) { height: 16px; }.metric-scribble i:nth-child(4) { height: 28px; }.metric-scribble i:nth-child(5) { height: 21px; }.metric-scribble i:nth-child(6) { height: 34px; }.metric-scribble i:nth-child(7) { height: 26px; }.metric-scribble i:nth-child(8) { height: 38px; }.metric-scribble i:nth-child(9) { height: 30px; }.metric-scribble i:nth-child(10) { height: 34px; }.metric-scribble i:nth-child(11) { height: 39px; }.metric-scribble i:nth-child(12) { height: 35px; }
.dashboard-layout { display: grid; grid-template-columns: 1.57fr 1fr; gap: 16px; }
.panel { border: 1px solid #e8ece6; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 18px rgba(39,61,49,.025); }
.recent-panel, .best-panel { min-height: 254px; padding: 19px 19px 16px; }
.panel-heading { align-items: flex-start; }
.panel-heading h2, .cart-header h2 { margin: 5px 0 0; color: #2d4035; font: 700 16px/1.3 'Manrope', sans-serif; letter-spacing: -.3px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 0; border: 0; color: #45765c; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.text-link:hover { color: #244a3d; }
.recent-list { margin-top: 15px; }
.recent-row { display: grid; width: 100%; min-height: 48px; grid-template-columns: 34px minmax(110px, 1fr) 67px 81px 84px 14px; align-items: center; gap: 8px; padding: 5px 2px; border: 0; border-top: 1px solid #f0f2ee; background: transparent; cursor: pointer; text-align: left; }
.recent-row:hover .recent-info strong { color: #357154; }
.recent-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #547963; background: #eef3e9; }
.recent-info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.recent-info strong { overflow: hidden; color: #44534a; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.recent-info small, .recent-info i { color: #9ba69f; font-size: 9px; font-style: normal; }
.recent-method { color: #849188; font-size: 9px; }
.recent-total { color: #3a4c41; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.recent-row > svg { color: #a8b1aa; }
.status-pill { display: inline-flex; min-height: 22px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pill.success { color: #3b7b55; background: #eaf5e9; }
.status-pill.warning { color: #ae7840; background: #fbf0db; }
.status-pill.muted { color: #78847c; background: #eff1ed; }
.soft-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #587349; background: #eff2df; }
.top-products { margin-top: 11px; }
.top-product { display: flex; min-height: 46px; align-items: center; gap: 9px; border-top: 1px solid #f0f2ee; }
.rank { width: 18px; color: #a5afa8; font: 700 10px 'Manrope', sans-serif; }
.rank-1 { color: #68864c; }.rank-2 { color: #9b9f77; }
.top-product-symbol { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: #5c7c65; background: #eef4e9; }
.symbol-2 { color: #aa7255; background: #f8ede6; }.symbol-3 { color: #68719a; background: #eceffa; }
.top-product-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.top-product-name strong { overflow: hidden; color: #46564b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.top-product-name small { color: #9ba69e; font-size: 9px; }
.top-product-total { color: #5c6c61; font-size: 9px; font-weight: 700; white-space: nowrap; }
.subtle-button { display: inline-flex; width: 100%; height: 31px; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; border: 1px solid #edf0ea; border-radius: 8px; color: #5e7667; background: #fafbf8; font-size: 9px; font-weight: 700; cursor: pointer; }
.subtle-button:hover { border-color: #d7e2d6; background: #f6f8f2; }
.quick-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding: 13px 17px; border: 1px solid #e8ece6; border-radius: 14px; background: #eff3e9; }
.quick-copy, .quick-actions { display: flex; align-items: center; gap: 11px; }
.quick-star { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #627c42; background: #e0e9c5; }
.quick-copy div { display: flex; flex-direction: column; gap: 3px; }
.quick-copy strong { color: #415948; font-size: 10px; }
.quick-copy small { color: #849183; font-size: 9px; }
.quick-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; color: #54705d; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.quick-link:hover { color: #214a37; }
.quick-separator { height: 17px; border-left: 1px solid #d4ddcd; }

.pos-heading { margin-bottom: 22px; }
.pos-heading h1 { margin-top: 6px; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; align-items: start; gap: 19px; }
.catalog-area { min-width: 0; }
.catalog-tools { display: flex; gap: 9px; }
.search-field { display: flex; min-width: 0; height: 43px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e4e9e2; border-radius: 10px; color: #8a978e; background: #fff; transition: border .15s, box-shadow .15s; }
.search-field:focus-within { border-color: #a4b9a7; box-shadow: 0 0 0 3px rgba(65,118,85,.08); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #34483b; background: transparent; font-size: 11px; }
.search-field input::placeholder { color: #a8b0aa; }
.search-field kbd { padding: 3px 5px; border: 1px solid #ebeee8; border-radius: 4px; color: #a0aaa2; background: #f9faf7; font-size: 8px; white-space: nowrap; }
.filter-button, .icon-button { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border: 1px solid #e4e9e2; border-radius: 10px; color: #718278; background: #fff; cursor: pointer; }
.filter-button:hover { color: #315a43; background: #f4f7ef; }
.category-tabs { display: flex; overflow-x: auto; gap: 7px; margin: 14px 0 15px; padding-bottom: 2px; scrollbar-width: thin; }
.category-tab { display: inline-flex; min-height: 32px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid #e6ebe4; border-radius: 8px; color: #758278; background: #fff; font-size: 9px; font-weight: 600; cursor: pointer; }
.category-tab:hover { border-color: #bfd0bf; }
.category-tab.selected { border-color: #2f6148; color: #fff; background: #2f6148; }
.category-tab span { color: #acb5ad; font-size: 8px; }
.category-tab.selected span { color: #d9e8d9; }
.catalog-count { display: flex; justify-content: space-between; margin: 0 1px 10px; color: #96a199; font-size: 9px; }
.catalog-count strong { color: #52655a; }
.catalog-count-note { color: #aab3ab; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-card { display: flex; min-width: 0; min-height: 133px; flex-direction: column; align-items: flex-start; padding: 12px 12px 10px; border: 1px solid #e9ede7; border-radius: 13px; background: #fff; box-shadow: 0 4px 13px rgba(39,61,49,.02); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #c8d9c8; box-shadow: 0 9px 18px rgba(39,61,49,.075); }
.product-card:active { transform: translateY(0) scale(.99); }
.product-card-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #4d775a; background: #eef4e8; }
.product-icon-color { color: #9a684e; background: #faeee7; }.product-icon-photo { color: #6c729e; background: #eef0fa; }.product-icon-banner { color: #4a7d82; background: #e8f3f1; }.product-icon-scan { color: #537970; background: #eaf3ef; }.product-icon-layers { color: #68804e; background: #f0f3e6; }.product-icon-book { color: #a36e4d; background: #faf0e7; }.product-icon-copy { color: #72779a; background: #f0eff8; }.product-icon-paper { color: #5778a0; background: #edf2f9; }.product-icon-folder { color: #a18144; background: #f8f3e4; }.product-icon-usb { color: #8d6d9d; background: #f3eef6; }
.product-card-kind { margin-top: 9px; color: #96a29a; font-size: 8px; font-weight: 600; }
.product-card > strong { overflow: hidden; width: 100%; margin-top: 3px; color: #3c4f43; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-card-foot { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 8px; color: #355640; font-size: 10px; font-weight: 700; }
.product-card-foot small { color: #a0aaa2; font-size: 8px; font-weight: 500; }
.add-circle { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #3f6d4d; background: #f0f4e8; transition: color .15s, background .15s; }
.product-card:hover .add-circle { color: #fff; background: #3f6d4d; }
.catalog-manage-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 0; border: 0; color: #67816e; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.catalog-manage-link:hover { color: #315740; }
.cart-panel { position: sticky; top: 86px; overflow: hidden; border: 1px solid #e4e9e2; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(39,61,49,.055); }
.cart-header { min-height: 68px; padding: 14px 16px 12px; border-bottom: 1px solid #edf0eb; }
.cart-header h2 { font-size: 15px; }
.cart-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 3px; padding: 0 4px; border-radius: 6px; color: #557145; background: #edf2de; font: 700 9px 'DM Sans', sans-serif; vertical-align: 2px; }
.clear-cart { border: 0; color: #a27064; background: transparent; font-size: 9px; font-weight: 600; cursor: pointer; }
.cart-customer { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid #f0f2ee; }
.customer-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #638269; background: #edf3e9; }
.cart-customer div { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.cart-customer strong { color: #516257; font-size: 10px; }
.cart-customer small { color: #9ca69f; font-size: 8px; }
.walkin-tag { padding: 4px 6px; border-radius: 5px; color: #77845c; background: #f1f3e7; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.cart-lines { max-height: 330px; overflow-y: auto; padding: 0 15px; }
.cart-empty { display: flex; min-height: 174px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9aa59c; text-align: center; }
.cart-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #749078; background: #f0f4e9; }
.cart-empty strong { color: #627066; font-size: 10px; }
.cart-empty > span:last-child { font-size: 9px; line-height: 1.6; }
.cart-item { padding: 12px 0 10px; border-bottom: 1px solid #eff1ed; }
.cart-item-main, .cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #5f8067; background: #eff4e9; }
.cart-item-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.cart-item-copy strong { overflow: hidden; color: #48594e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-copy small { color: #9aa49d; font-size: 8px; }
.remove-line { display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 6px; color: #b1b7b2; background: transparent; cursor: pointer; }
.remove-line:hover { color: #b1514a; background: #fbefed; }
.cart-item-controls { justify-content: space-between; margin: 8px 0 0 37px; }
.stepper { display: inline-flex; height: 25px; align-items: center; gap: 6px; padding: 0 4px; border: 1px solid #e8ece6; border-radius: 7px; }
.stepper button { display: grid; width: 21px; height: 21px; place-items: center; border: 0; border-radius: 5px; color: #708076; background: transparent; cursor: pointer; }
.stepper button:hover { color: #2f694b; background: #eef4e9; }
.stepper span { min-width: 15px; color: #475a4d; font-size: 9px; font-weight: 700; text-align: center; }
.cart-item-controls > strong { color: #465a4c; font-size: 9px; }
.line-note { width: calc(100% - 37px); height: 25px; margin: 7px 0 0 37px; padding: 0 7px; border: 1px solid #f0f2ed; border-radius: 6px; outline: 0; color: #62756a; background: #fbfcfa; font-size: 8px; }
.line-note::placeholder { color: #b1b9b2; }
.order-note-wrap { padding: 10px 15px 5px; }
.order-note-wrap > label { display: block; margin-bottom: 5px; color: #78867d; font-size: 8px; font-weight: 700; }
.order-note-wrap textarea { width: 100%; height: 48px; resize: vertical; padding: 8px; border: 1px solid #e9ede7; border-radius: 7px; outline: 0; color: #4c6053; background: #fbfcfa; font-size: 9px; }
.order-note-wrap textarea::placeholder { color: #b1b9b3; }
.discount-input-wrap { display: flex; align-items: center; justify-content: space-between; margin: 6px 15px 0; padding: 9px 0; border-bottom: 1px dashed #e6eae4; color: #78867c; font-size: 9px; }
.discount-input-wrap > span { display: flex; align-items: center; gap: 6px; }
.discount-input-wrap > span svg { color: #81945d; }
.discount-field { display: flex; width: 110px; height: 29px; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid #e8ece5; border-radius: 7px; color: #9aa49d; background: #fbfcfa; font-size: 8px; }
.discount-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #506456; background: transparent; font-size: 9px; text-align: right; }
.cart-totals { display: grid; gap: 8px; padding: 12px 15px 13px; }
.cart-totals > div { display: flex; justify-content: space-between; color: #87928a; font-size: 9px; }
.cart-totals .discount-total { color: #a16e59; }
.cart-totals .cart-grand-total { align-items: center; margin-top: 1px; padding-top: 11px; border-top: 1px solid #edf0eb; color: #324a3b; font-size: 11px; }
.cart-grand-total strong:last-child { font: 800 17px 'Manrope', sans-serif; letter-spacing: -.5px; }
.checkout-button { display: flex; width: calc(100% - 30px); min-height: 43px; justify-content: space-between; margin: 0 15px 9px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 0 13px; color: #9ca79f; font-size: 8px; }
.secure-note svg { color: #7c9c6a; }

.history-panel, .inventory-panel { overflow: hidden; }
.history-toolbar, .inventory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 15px 17px; border-bottom: 1px solid #edf0eb; }
.history-search, .inventory-search { width: 310px; height: 38px; }
.history-toolbar .select-wrap, .mini-select { display: flex; height: 36px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e7ebe5; border-radius: 8px; color: #8a978e; background: #fff; font-size: 9px; }
.select-wrap select, .mini-select select, .report-period select { max-width: 155px; border: 0; outline: 0; color: #596a5f; background: transparent; font-size: 9px; }
.date-filter { display: flex; height: 36px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #e7ebe5; border-radius: 8px; color: #95a198; }
.date-filter input { width: 108px; border: 0; outline: 0; color: #69776d; background: transparent; font-size: 8px; }
.date-filter > span { color: #b3bbb5; font-size: 9px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table thead { height: 39px; background: #fafbf9; }
.data-table th { padding: 0 13px; color: #98a39c; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-align: left; }
.data-table td { height: 59px; padding: 6px 13px; border-top: 1px solid #f0f2ef; color: #64736a; font-size: 9px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 19px; }
.invoice-link { padding: 4px 0; border: 0; color: #436c50; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.invoice-link:hover { text-decoration: underline; }
.table-date { display: block; color: #617168; font-size: 9px; }
.table-time, .table-subtext { display: block; margin-top: 3px; color: #9ba69f; font-size: 8px; }
.table-item-name { color: #4a5b50; font-size: 9px; font-weight: 600; }
.method-cell { display: inline-flex; align-items: center; gap: 5px; color: #6d7c72; font-size: 9px; }
.method-cell svg { color: #728b73; }
.table-total { color: #495a4e !important; font-size: 9px !important; font-weight: 700; }
.row-more { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 7px; color: #93a096; background: transparent; cursor: pointer; }
.row-more:hover { color: #426d50; background: #eef3e9; }
.table-footer { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-top: 1px solid #edf0eb; color: #98a39b; font-size: 8px; }
.table-footer strong { color: #68766d; }
.table-footer > span:last-child { display: flex; align-items: center; gap: 4px; }
.table-footer svg { color: #80a172; }
.table-empty { padding: 22px; }
.table-empty .empty-state { min-height: 150px; }
.empty-state { display: flex; min-height: 200px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #98a49c; text-align: center; }
.empty-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; color: #719177; background: #f0f4e9; }
.empty-state strong { color: #596c5e; font-size: 11px; }
.empty-state > span:last-child { max-width: 220px; font-size: 9px; line-height: 1.5; }

.report-period { display: flex; height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e5eae3; border-radius: 9px; color: #68806f; background: #fff; }
.report-period select { min-width: 105px; }
.report-stat-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 13px; }
.report-stat { position: relative; min-height: 136px; overflow: hidden; padding: 17px 17px 14px; border: 1px solid #e8ece6; border-radius: 14px; background: #fff; }
.report-stat-dark { border-color: #244a3d; color: #fff; background: #244a3d; }
.report-stat-heading { display: flex; align-items: center; justify-content: space-between; color: #829087; font-size: 10px; }
.report-stat-dark .report-stat-heading { color: #cad7ce; }
.report-stat-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: #547850; background: #eef3e7; }
.report-stat-dark .report-stat-icon { color: #d7f068; background: rgba(255,255,255,.1); }
.report-stat-peach { color: #a36b4f; background: #f9ede5; }.report-stat-green { color: #467653; background: #e9f2e6; }.report-stat-lilac { color: #77739a; background: #f0eff7; }
.report-stat > strong { position: relative; z-index: 1; display: block; overflow: hidden; margin-top: 14px; color: #3b4e41; font: 800 20px 'Manrope', sans-serif; letter-spacing: -.55px; text-overflow: ellipsis; white-space: nowrap; }
.report-stat-dark > strong { color: #fff; }
.report-stat > small { display: block; margin-top: 7px; color: #99a39c; font-size: 8px; }
.report-stat-dark > small { color: #adc1b4; }
.report-wave { position: absolute; right: -5px; bottom: -26px; width: 105px; height: 63px; border-top: 2px solid rgba(215,240,104,.35); border-radius: 50%; transform: rotate(-26deg); }
.report-wave::before, .report-wave::after { position: absolute; inset: 9px -9px auto 0; height: 41px; border-top: 1px solid rgba(215,240,104,.24); border-radius: 50%; content: ''; }
.report-wave::after { inset: 19px -8px auto 4px; }
.report-content-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 15px; margin-top: 17px; }
.sales-chart-panel, .best-sellers-panel { min-height: 290px; padding: 19px; }
.mini-select { height: 31px; padding: 0 7px; font-size: 8px; }
.mini-select span { color: #9aa49d; font-size: 8px; }
.mini-select select { max-width: 80px; font-size: 8px; }
.chart-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; color: #8f9b92; font-size: 8px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #8da36d; }
.chart-legend strong { color: #536858; font-size: 10px; }
.bar-chart { display: flex; height: 157px; align-items: stretch; gap: 11px; margin-top: 12px; padding: 0 3px; border-bottom: 1px solid #e8ece7; }
.bar-column { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-tooltip { position: absolute; z-index: 2; top: -21px; left: 50%; padding: 4px 6px; border-radius: 5px; color: #fff; background: #355a45; font-size: 7px; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s; white-space: nowrap; }
.bar-column:hover .bar-tooltip { opacity: 1; }
.bar-track { display: flex; width: min(100%, 27px); height: 126px; align-items: flex-end; overflow: hidden; border-radius: 5px 5px 0 0; background: #f5f7f1; }
.bar-value { display: block; width: 100%; min-height: 3px; border-radius: 5px 5px 0 0; background: #aec18d; transition: height .25s; }
.bar-value.bar-current { background: #315e46; }
.bar-label { overflow: hidden; width: 100%; padding: 6px 0 7px; color: #99a49d; font-size: 7px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.seller-list { margin-top: 15px; }
.seller-row { display: flex; min-height: 46px; align-items: center; gap: 8px; border-top: 1px solid #eff1ed; }
.seller-rank { width: 19px; color: #a0aaa2; font: 700 9px 'Manrope', sans-serif; }
.seller-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.seller-copy strong { overflow: hidden; color: #55665b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.seller-copy small { color: #9da8a0; font-size: 8px; }
.seller-progress { overflow: hidden; width: 100%; height: 3px; border-radius: 3px; background: #f0f2ed; }
.seller-progress i { display: block; height: 100%; border-radius: inherit; background: #9bb278; }
.seller-revenue { margin-left: 4px; color: #637469; font-size: 8px; font-weight: 700; white-space: nowrap; }
.report-footnote { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: #929d94; font-size: 8px; }
.report-footnote svg { color: #7d9a70; }
.mini-empty { display: grid; min-height: 136px; place-items: center; color: #a0aaa3; font-size: 9px; text-align: center; }

.inventory-summary { display: flex; align-items: center; gap: 7px; margin: -8px 0 13px 2px; color: #9aa49d; font-size: 9px; }
.inventory-summary strong { color: #53705e; font-weight: 700; }
.inventory-dot { width: 7px; height: 7px; border-radius: 50%; background: #74a86e; }
.inventory-summary-spacer { flex: 1; }
.inventory-note { color: #aab3ac; }
.inventory-toolbar { justify-content: space-between; }
.inventory-search { width: min(340px, 50%); height: 37px; }
.inventory-table td { height: 61px; }
.inventory-product-cell { display: flex; align-items: center; gap: 9px; }
.inventory-product-cell strong { color: #4b5c50; font-size: 9px; }
.inventory-symbol { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.kind-pill { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #71816f; background: #f2f4ec; font-size: 8px; font-weight: 600; }
.category-cell { color: #78867c; font-size: 9px; }
.availability { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 0; border-radius: 6px; font-size: 8px; font-weight: 700; cursor: pointer; }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.availability.available { color: #4f865e; background: #edf5e9; }
.availability.unavailable { color: #949b96; background: #f1f2ef; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: flex; overflow-y: auto; align-items: center; justify-content: center; padding: 20px; background: rgba(22, 39, 31, .46); backdrop-filter: blur(5px); animation: fade-in .18s ease both; }
.modal-card { position: relative; width: min(100%, 450px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 27px; border: 1px solid rgba(235,239,231,.8); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(22,39,31,.25); animation: rise-in .2s ease both; }
.modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 9px; color: #87958b; background: #f5f7f2; cursor: pointer; }
.modal-close:hover { color: #355c43; background: #edf2e7; }
.modal-eyebrow { color: #7b927e; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.modal-card h2 { margin: 7px 38px 5px 0; color: #2c4234; font: 750 22px/1.22 'Manrope', sans-serif; letter-spacing: -.7px; }
.modal-subtitle { margin: 0 0 17px; color: #96a198; font-size: 10px; line-height: 1.55; }
.payment-modal { width: min(100%, 420px); padding: 27px; }
.payment-due { display: flex; flex-direction: column; align-items: center; margin: 20px 0 18px; padding: 17px 10px 15px; border: 1px dashed #ced9c5; border-radius: 13px; background: #f7f9f2; }
.payment-due > span { color: #78867b; font-size: 9px; }
.payment-due > strong { margin: 5px 0; color: #31543d; font: 800 28px 'Manrope', sans-serif; letter-spacing: -1px; }
.payment-due > small { color: #9ba69f; font-size: 8px; }
.field-label { display: block; margin: 14px 0 8px; color: #66766b; font-size: 9px; font-weight: 700; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 15px; }
.payment-method { position: relative; display: flex; min-height: 61px; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e8ece6; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.payment-method:hover { border-color: #b9cdb8; }
.payment-method.chosen { border-color: #6c9672; background: #f5f8f0; box-shadow: inset 0 0 0 1px #6c9672; }
.method-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #628064; background: #edf3e7; }
.method-qris { color: #78729d; background: #f0eff8; }
.payment-method > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.payment-method strong { color: #526256; font-size: 9px; }
.payment-method small { color: #a0aaa2; font-size: 8px; }
.method-check { position: absolute; top: 6px; right: 6px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; background: #628864; font-style: normal; }
.cash-amount-label { margin-top: 9px; }
.currency-entry { display: flex; height: 43px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e4e9e2; border-radius: 9px; color: #829087; background: #fff; }
.currency-entry > span { color: #78877c; font-size: 9px; font-weight: 700; }
.currency-entry input { width: 100%; min-width: 0; border: 0; outline: 0; color: #3c5343; background: transparent; font: 700 14px 'Manrope', sans-serif; }
.currency-entry button { padding: 6px 8px; border: 0; border-radius: 6px; color: #55755d; background: #eef3e8; font-size: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cash-change-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #839087; font-size: 9px; }
.cash-change-row strong { color: #517c57; font-size: 10px; }
.cash-change-row .change-short { color: #ba6256; }
.noncash-confirm-note { display: flex; align-items: center; gap: 7px; margin: 13px 0; padding: 10px; border-radius: 8px; color: #638168; background: #f0f5eb; font-size: 9px; }
.payment-note-field { display: block; margin: 15px 0; color: #6d7b71; font-size: 9px; font-weight: 700; }
.payment-note-field > span { margin-left: 3px; color: #abb3ac; font-size: 8px; font-weight: 400; }
.payment-note-field input { display: block; width: 100%; height: 37px; margin-top: 7px; padding: 0 10px; border: 1px solid #e8ece6; border-radius: 8px; outline: 0; color: #516257; background: #fbfcfa; font-size: 9px; }
.payment-note-field input::placeholder { color: #aab4ac; }
.payment-submit { display: flex; width: 100%; min-height: 44px; justify-content: space-between; margin-top: 16px; }
.payment-cancel { display: block; margin: 11px auto 0; padding: 5px 8px; border: 0; color: #87938b; background: transparent; font-size: 9px; cursor: pointer; }
.payment-cancel:hover { color: #345c44; }

.receipt-card { width: min(100%, 430px); padding: 24px; }
.receipt-success { display: grid; width: 39px; height: 39px; place-items: center; margin-bottom: 11px; border-radius: 13px; color: #fff; background: #58845f; box-shadow: 0 0 0 6px #eef5e9; }
.receipt-heading { margin-bottom: 17px; }
.receipt-heading h2 { margin-top: 7px; font-size: 20px; }
.receipt-heading p { margin: 4px 0 0; color: #92a097; font-size: 9px; }
.receipt-paper { max-height: min(48vh, 440px); overflow-y: auto; padding: 17px 17px 14px; border: 1px solid #e7eae4; border-radius: 11px; background: #fdfdfa; box-shadow: inset 0 0 16px rgba(55,73,53,.022); }
.receipt-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.receipt-brand img { width: 30px; height: 30px; border-radius: 9px; }
.receipt-brand div { display: flex; flex-direction: column; gap: 2px; }
.receipt-brand strong { color: #36513e; font: 800 13px 'Manrope', sans-serif; }
.receipt-brand small { color: #919d93; font-size: 8px; }
.receipt-rule { height: 1px; margin: 11px 0; background: #e9ece6; }
.receipt-rule-dashed { height: 0; margin: 12px 0 9px; border-top: 1px dashed #d9dfd7; background: transparent; }
.receipt-meta { display: grid; grid-template-columns: 1fr auto; gap: 6px; color: #89958b; font-size: 8px; }
.receipt-meta strong { color: #5c6c60; font-size: 8px; text-align: right; }
.receipt-items { display: grid; gap: 9px; }
.receipt-item, .receipt-total-row { display: flex; justify-content: space-between; gap: 10px; color: #68766d; font-size: 8px; }
.receipt-item > span { color: #54675a; font-size: 8px; }
.receipt-item small { display: block; margin-top: 3px; color: #99a49b; font-size: 7px; line-height: 1.5; }
.receipt-item > strong { color: #5b6b5f; font-size: 8px; white-space: nowrap; }
.receipt-order-note { margin-top: 9px; color: #8a968c; font-size: 8px; }
.receipt-total-row { margin-top: 7px; }
.receipt-total-main { margin-top: 9px; color: #34533d; font-size: 10px; }
.receipt-total-main strong:last-child { font: 800 13px 'Manrope', sans-serif; }
.receipt-thanks { margin-top: 14px; color: #7c8c7e; font-size: 8px; line-height: 1.6; text-align: center; }
.receipt-actions { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8px; margin-top: 15px; }
.receipt-actions .button { min-height: 38px; padding: 0 9px; font-size: 9px; }
.receipt-new-sale { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; margin-top: 10px; padding: 5px; border: 0; color: #66806b; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.receipt-new-sale:hover { color: #31573e; }

.transaction-modal { width: min(100%, 475px); }
.detail-dot { margin: 0 4px; color: #c1c9c1; }
.detail-status { display: flex; align-items: center; gap: 8px; margin: 2px 0 13px; }
.adjustment-label { color: #98a39b; font-size: 8px; }
.detail-items { display: grid; gap: 0; padding: 1px 0; border-top: 1px solid #eef1ec; border-bottom: 1px solid #eef1ec; }
.detail-line { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px dashed #eff2ed; }
.detail-line:last-child { border-bottom: 0; }
.detail-line > span { display: flex; flex-direction: column; gap: 4px; }
.detail-line strong { color: #55685a; font-size: 9px; }
.detail-line small { color: #97a299; font-size: 8px; }
.detail-line > strong { white-space: nowrap; }
.detail-order-note { margin-top: 11px; padding: 9px; border-radius: 8px; background: #f6f8f2; }
.detail-order-note span { color: #8e9a8e; font-size: 8px; font-weight: 700; }
.detail-order-note p { margin: 4px 0 0; color: #5d7161; font-size: 9px; }
.detail-totals { display: grid; gap: 8px; padding: 12px 0; color: #859188; font-size: 9px; }
.detail-totals > div { display: flex; justify-content: space-between; }
.detail-total-main { margin: 2px 0; padding: 10px 0; border-top: 1px solid #e9eee7; border-bottom: 1px solid #e9eee7; color: #3b5743; }
.detail-total-main strong:last-child { font: 800 15px 'Manrope', sans-serif; }
.reason-record { margin: 3px 0 10px; padding: 10px 11px; border: 1px solid #f0e5d6; border-radius: 9px; background: #fcf8f0; }
.reason-record strong { color: #8f7146; font-size: 9px; }
.reason-record p { margin: 5px 0 0; color: #827969; font-size: 9px; line-height: 1.45; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.detail-actions .button { min-height: 37px; padding: 0 11px; font-size: 9px; }
.reason-modal { width: min(100%, 425px); }
.reason-modal-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 12px; border-radius: 12px; color: #a37051; background: #f8ede5; }
.required-mark { margin-left: 4px; color: #ad7863; font-size: 8px; font-weight: 500; }
.reason-textarea { width: 100%; min-height: 91px; resize: vertical; padding: 10px; border: 1px solid #e4e9e2; border-radius: 9px; outline: 0; color: #55685c; background: #fcfdfa; font-size: 9px; line-height: 1.5; }
.reason-textarea::placeholder { color: #aab3ac; }
.reason-warning, .category-tip { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px; border-radius: 8px; color: #8c856c; background: #faf8ed; font-size: 8px; line-height: 1.45; }
.reason-warning svg, .category-tip svg { color: #a69763; }

.product-modal, .categories-modal { width: min(100%, 500px); }
.product-modal .modal-subtitle { margin-bottom: 17px; }
.product-modal .field-label { margin: 10px 0 6px; }
.form-input { display: block; width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e4e9e2; border-radius: 8px; outline: 0; color: #4e6254; background: #fff; font-size: 9px; }
.form-input::placeholder { color: #aab3ac; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.form-row label { min-width: 0; }
.form-currency { position: relative; display: flex; height: 38px; align-items: center; gap: 7px; padding-left: 10px; border: 1px solid #e4e9e2; border-radius: 8px; color: #859188; background: #fff; font-size: 9px; }
.form-currency .form-input { height: 36px; padding-left: 0; border: 0; }
.icon-choice-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-choice { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e7ece5; border-radius: 8px; color: #75877a; background: #fff; cursor: pointer; }
.icon-choice.chosen { border-color: #638863; color: #477050; background: #f1f5e9; box-shadow: inset 0 0 0 1px #638863; }
.icon-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-form-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 22px; }
.product-form-actions .button { min-height: 37px; padding: 0 11px; font-size: 9px; }
.category-add-form { display: flex; gap: 8px; margin: 17px 0 12px; }
.category-add-form .form-input { flex: 1; }
.category-add-form .button { min-height: 38px; padding: 0 11px; font-size: 9px; }
.category-manage-list { max-height: 260px; overflow-y: auto; border-top: 1px solid #edf0eb; }
.category-manage-row { display: flex; min-height: 45px; align-items: center; gap: 9px; border-bottom: 1px solid #f0f2ee; }
.category-bullet { width: 7px; height: 7px; border-radius: 50%; background: #91aa74; }
.category-manage-row strong { flex: 1; color: #536459; font-size: 9px; }
.category-usage { color: #9ba69e; font-size: 8px; }
.categories-done { width: 100%; margin-top: 15px; }

.toast-region { position: fixed; z-index: 60; right: 20px; bottom: 20px; pointer-events: none; }
.toast { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #e4ebe0; border-radius: 11px; color: #405849; background: #fff; box-shadow: 0 12px 35px rgba(26,49,34,.16); font-size: 10px; animation: rise-in .18s ease both; }
.toast > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #4c7f57; background: #edf4e8; }
.toast-warning > span { color: #9d7844; background: #f8f1e2; }
.mobile-nav { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
  .page-content { padding-right: 54px; padding-left: 54px; }
  .pos-layout { grid-template-columns: minmax(0, 1fr) 365px; gap: 22px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .cart-lines { max-height: 420px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 218px; padding-right: 14px; padding-left: 14px; }
  .main-area { margin-left: 218px; }
  .topbar { padding-right: 30px; padding-left: 30px; }
  .page-content { padding-right: 30px; padding-left: 30px; }
  .pos-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 13px; }
  .recent-row { grid-template-columns: 31px minmax(100px,1fr) 56px 72px 75px 12px; gap: 6px; }
  .report-stat-grid { gap: 9px; }
  .report-stat { padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 1020px) {
  .sidebar { width: 72px; align-items: center; padding: 19px 9px 14px; }
  .brand { padding: 0; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-copy, .sidebar-section-label, .nav-item span, .nav-item small, .shift-card div, .shift-card .live-dot, .profile-copy, .dots-button { display: none; }
  .primary-nav { width: 100%; margin-top: 35px; }
  .nav-item { width: 50px; height: 49px; justify-content: center; padding: 0; }
  .sidebar-bottom { display: flex; width: 100%; flex-direction: column; align-items: center; }
  .shift-card { display: grid; width: 50px; height: 47px; place-items: center; margin-bottom: 13px; padding: 0; }
  .profile-card { justify-content: center; width: 100%; padding: 13px 0 1px; }
  .main-area { margin-left: 72px; }
  .pos-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .best-panel { min-height: 0; }
  .top-products { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 13px; }
  .top-product { border-bottom: 1px solid #f0f2ee; }
  .subtle-button { max-width: 220px; }
  .report-stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 740px) {
  body { min-width: 360px; padding-bottom: 67px; }
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .topbar { position: relative; height: 58px; padding: 0 17px; }
  .breadcrumbs { gap: 5px; font-size: 9px; }
  .topbar-right { gap: 8px; }
  .date-chip { font-size: 8px; }
  .date-chip svg, .topbar-divider { display: none; }
  .avatar-small { width: 27px; height: 27px; }
  .page-content { padding: 24px 16px 27px; }
  .page-heading { align-items: flex-start; margin-bottom: 19px; }
  .page-heading h1 { margin-top: 7px; font-size: 24px; }
  .page-heading p { max-width: 280px; font-size: 10px; line-height: 1.5; }
  .page-heading > .button, .heading-actions { align-self: flex-end; }
  .page-heading > .button { min-height: 36px; padding: 0 10px; font-size: 9px; }
  .page-heading > .button svg { width: 15px; }
  .dashboard-heading { flex-direction: column; gap: 13px; }
  .dashboard-heading > .button { align-self: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
  .metric-card { min-height: 127px; padding: 13px; }
  .metric-featured { grid-column: 1/-1; min-height: 137px; }
  .metric-icon { width: 30px; height: 30px; }
  .metric-value { font-size: 21px; }
  .metric-label { font-size: 9px; }
  .metric-foot { gap: 8px; }
  .metric-muted, .metric-trend { font-size: 8px; }
  .dashboard-layout { gap: 11px; }
  .recent-panel, .best-panel { padding: 15px 12px 13px; }
  .panel-heading h2 { font-size: 14px; }
  .recent-row { grid-template-columns: 30px minmax(88px,1fr) 58px 13px; gap: 6px; }
  .recent-row .recent-method, .recent-row .status-pill { display: none; }
  .recent-total { font-size: 9px; }
  .recent-info strong { font-size: 9px; }
  .recent-info small { font-size: 8px; }
  .top-products { display: block; }
  .quick-strip { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
  .quick-actions { width: 100%; justify-content: flex-start; gap: 10px; }
  .quick-link { font-size: 8px; }
  .pos-heading { flex-direction: row; }
  .pos-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-area { order: 1; }
  .cart-panel { position: static; order: 2; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { min-height: 126px; padding: 10px; }
  .catalog-count-note { display: none; }
  .catalog-tools .search-field { height: 40px; }
  .filter-button { width: 40px; height: 40px; }
  .cart-lines { max-height: 300px; }
  .history-toolbar { align-items: stretch; padding: 11px; }
  .history-search { width: 100%; }
  .history-toolbar .select-wrap { flex: 1; }
  .date-filter { flex: 1.5; min-width: 0; }
  .date-filter input { width: 100%; min-width: 0; }
  .data-table { min-width: 760px; }
  .history-panel .table-footer { min-height: 40px; padding: 0 11px; }
  .report-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .report-stat { min-height: 121px; padding: 12px; }
  .report-stat > strong { font-size: 17px; }
  .report-stat-heading { font-size: 8px; }
  .report-content-grid { grid-template-columns: 1fr; gap: 11px; }
  .sales-chart-panel, .best-sellers-panel { min-height: 0; padding: 15px 12px; }
  .bar-chart { gap: 7px; }
  .bar-track { width: min(100%, 24px); }
  .report-period { height: 35px; padding: 0 7px; }
  .report-period select { min-width: 88px; font-size: 8px; }
  .reports-heading { align-items: flex-end; }
  .inventory-heading { flex-direction: column; }
  .heading-actions { align-self: flex-start; }
  .inventory-summary { flex-wrap: wrap; font-size: 8px; }
  .inventory-summary-spacer, .inventory-note { display: none; }
  .inventory-toolbar { align-items: stretch; padding: 11px; }
  .inventory-search { width: 100%; }
  .inventory-toolbar .mini-select { align-self: flex-start; }
  .inventory-table { min-width: 720px; }
  .mobile-nav { position: fixed; z-index: 12; right: 0; bottom: 0; left: 0; display: grid; height: 64px; grid-template-columns: repeat(5,1fr); padding: 6px 5px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #e6ebe4; background: rgba(253,254,251,.96); box-shadow: 0 -6px 20px rgba(38,58,46,.045); backdrop-filter: blur(14px); }
  .mobile-nav .nav-item { display: flex; width: auto; min-height: 0; height: 51px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 9px; color: #829087; }
  .mobile-nav .nav-item span { display: block; flex: 0 0 auto; font-size: 7px; font-weight: 600; }
  .mobile-nav .nav-item svg { width: 18px; height: 18px; }
  .mobile-nav .nav-item.active { color: #31593f; background: #eff4e7; }
  .modal-backdrop { align-items: flex-end; padding: 8px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 22px 19px; border-radius: 18px; }
  .payment-modal { padding: 22px 19px; }
  .receipt-card { padding: 18px; }
  .receipt-paper { max-height: min(44vh, 380px); }
  .toast-region { right: 10px; bottom: 75px; left: 10px; }
  .toast { justify-content: center; }
}
@media (max-width: 390px) {
  .page-content { padding-right: 12px; padding-left: 12px; }
  .topbar { padding: 0 12px; }
  .date-chip span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-heading h1 { font-size: 22px; }
  .metric-card { padding: 11px; }
  .metric-value { font-size: 19px; }
  .heading-actions { gap: 5px; }
  .heading-actions .button { min-height: 34px; padding: 0 8px; font-size: 8px; }
  .date-filter { gap: 3px; padding: 0 5px; }
  .date-filter input { font-size: 7px; }
}

@media print {
  @page { margin: 10mm; size: 80mm auto; }
  body, html { min-width: 0 !important; background: #fff !important; }
  body * { visibility: hidden !important; }
  #receipt-print, #receipt-print * { visibility: visible !important; }
  #receipt-print { position: fixed !important; inset: 0 auto auto 0 !important; width: 72mm !important; max-height: none !important; overflow: visible !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; }
  .modal-backdrop, .receipt-card { position: static !important; width: auto !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .receipt-brand { margin-top: 0; }
  .receipt-actions, .receipt-new-sale, .modal-close, .receipt-success, .receipt-heading { display: none !important; }
  .receipt-paper { overflow: visible !important; max-height: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
}
