@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap";:root{--bg: #f7f6ef;--surface: #ffffff;--surface-soft: #f8f7f0;--border: #e6e1d5;--text: #222733;--muted: #6b758a;--primary: #1f7a57;--primary-soft: #e7f1ec;--accent: #cfaa45;--danger: #f24646;--danger-soft: #fdeceb;--shadow: 0 4px 14px rgba(31, 45, 61, .055);--radius-lg: 24px;--radius-md: 18px;--radius-sm: 12px;--select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 5.75L8 10.25L12.5 5.75' stroke='%23808a9e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}*{box-sizing:border-box}svg{display:block;flex-shrink:0}html,body,#app{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,Plus Jakarta Sans,system-ui,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit;letter-spacing:inherit;line-height:1.2}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.shell__overlay{display:none}.shell__main{flex:1;min-width:0}.shell__content{padding:16px 18px 24px;display:flex;justify-content:center}.shell__content>*{width:min(100%,1440px)}.sidebar{width:224px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:14px 12px;transition:width .2s ease,transform .2s ease;z-index:40}.sidebar--collapsed{width:72px}.sidebar__brand,.sidebar__user{display:flex;align-items:center;gap:14px}.sidebar__brand{padding:6px 6px 16px;border-bottom:1px solid var(--border)}.brand-mark,.user-avatar,.metric-card__icon{width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.brand-mark{width:36px;height:36px;border-radius:10px}.brand-text h1,.page-title,.metric-card__value,.card-title,.summary-total strong{font-family:Plus Jakarta Sans,Inter,sans-serif}.brand-text h1{margin:0 0 3px;font-size:16px;font-weight:700;line-height:1.15}.brand-text p{font-size:10px;line-height:1.2}.brand-text p,.page-description,.metric-card__label,.muted-text,.table-title span,.alert-row p,.timeline p,.catalog-item p,.catalog-item small,.info-panel p,.field span,.modal-description{color:var(--muted)}.sidebar__nav{display:grid;gap:6px;padding:18px 2px}.sidebar-link{min-height:40px;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 12px;color:#5d677a;font-size:14px;font-weight:600;line-height:1.15}.sidebar-link--active,.sidebar-link:hover{background:#edf5f2;color:var(--primary)}.sidebar-link--footer{color:#657184}.sidebar__footer{margin-top:auto;border-top:1px solid var(--border);padding-top:14px;display:grid;gap:12px}.user-avatar{width:32px;height:32px;border-radius:999px;font-weight:700;font-size:12px}.sidebar__user strong,.table strong,.strong-text{font-weight:700}.sidebar__user span{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.2}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 16px;border-bottom:1px solid var(--border);background:#ffffffe0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar__left,.topbar__right,.metric-card__head,.page-header,.page-actions,.card-toolbar,.summary-line,.summary-total,.info-panel__row,.catalog-item,.cart-item__top,.cart-item__footer,.split-buttons,.filters-row,.modal-header,.modal-footer,.action-row{display:flex;align-items:center}.topbar__left{gap:10px}.topbar__right{gap:12px}.topbar__date{font-size:12px;font-weight:500;color:#667186;line-height:1}.icon-button{width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#6d778c;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.icon-button--menu{width:34px;height:34px}.icon-button:hover{background:var(--surface-soft)}.icon-button--badge{position:relative}.icon-badge{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;border-radius:999px;background:var(--danger);color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.page-stack{display:grid;gap:16px}.page-title{margin:0;font-size:24px;font-weight:700;letter-spacing:-.03em;line-height:1.15}.page-description{margin:4px 0 0;font-size:14px;line-height:1.35}.page-header{justify-content:space-between;gap:14px;flex-wrap:wrap}.page-actions,.action-row{gap:8px;flex-wrap:wrap}.base-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:18px}.base-card--compact{padding:12px 14px}.card-title{margin-bottom:12px;font-size:16px;font-weight:700;line-height:1.2}.card-title--with-icon{display:inline-flex;gap:8px;align-items:center}.card-toolbar--stack{align-items:flex-start;flex-direction:column}.stats-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.stats-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-grid--categories{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.dashboard-grid--bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-layout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(300px,.9fr);gap:14px}.sales-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(520px,1.55fr) minmax(320px,.88fr);gap:14px;align-items:start}.metric-card__head{justify-content:space-between;align-items:flex-start}.metric-card__head--single{justify-content:flex-start}.metric-card__label{margin:0;font-size:12px;line-height:1.25}.metric-card__value{display:block;margin-top:4px;font-size:24px;font-weight:700;line-height:1.1}.metric-card__value--gold,.metric-card__icon--gold,.badge--gold,.rank-badge--gold{color:var(--accent)}.metric-card__icon{width:40px;height:40px;background:var(--primary-soft);color:var(--primary)}.metric-card__icon--danger{background:var(--danger-soft);color:var(--danger)}.metric-card--plain:after{display:none}.metric-card__trend{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;color:var(--muted)}.category-card{display:flex;align-items:center;gap:10px}.click-card{cursor:pointer;transition:border-color .18s ease,background-color .18s ease,transform .18s ease}.click-card:hover{transform:translateY(-1px)}.click-card--active{border-color:#1f7a5747;background:#f7fbf8}.category-card p,.summary-line span,.timeline__meta,.empty-state p{margin:6px 0 0}.search-box,.select-box,.field input,.field select,.field textarea{width:100%;min-height:36px;border-radius:12px;border:1px solid var(--border);background:var(--surface-soft)}.search-box,.select-box{display:inline-flex;align-items:center;gap:8px;padding:0 12px;color:#6b758a}.search-box input,.select-box select{width:100%;height:100%;border:0;outline:none;background:transparent;color:var(--text);font-size:13px;line-height:1.2;display:block;min-width:0}.select-box select,.field select,.mini-select select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:var(--select-arrow);background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;padding-right:34px}.search-box--grow{flex:1}.search-box--header{width:min(256px,36vw);min-height:36px}.search-box--customers{min-width:224px}.filters-row{gap:10px;flex-wrap:wrap}.btn{height:36px;border-radius:10px;border:1px solid transparent;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:700;cursor:pointer;line-height:1}.btn--primary{background:var(--primary);color:#fff}.btn--outline{background:var(--surface);border-color:var(--border);color:var(--text)}.btn--ghost{background:var(--surface-soft);color:var(--text)}.btn--block{width:100%}.btn--large{height:48px;font-size:15px}.btn--dense{height:32px;padding:0 12px;font-size:12px;border-radius:10px}.badge{min-height:22px;border-radius:999px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;white-space:nowrap;line-height:1}.badge--success{background:var(--primary);color:#fff}.badge--danger{background:var(--danger);color:#fff}.badge--light{background:#f1f0e6;color:var(--text)}.badge--outline{border:1px solid var(--border);background:transparent;color:var(--text)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left;font-size:13px;vertical-align:middle}.table th{color:#6c768a;font-size:12px;font-weight:700}.table-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;color:#6c768a;letter-spacing:-.02em}.align-right{text-align:right!important}.amount-text,.is-up{color:var(--primary)}.is-down,.danger-text{color:var(--danger)}.rank-badge{width:32px;height:32px;border-radius:999px;background:#f0efe9;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.chart-surface{min-height:270px}.chart-svg{width:100%;height:100%}.chart-guide{stroke:var(--border);stroke-dasharray:5 5}.chart-line{stroke:var(--primary);stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-dot{fill:var(--primary);stroke:#fff;stroke-width:3}.chart-label{fill:#6c768a;font-size:12px}.stack-list,.timeline,.catalog-list,.cart-list,.modal-stack{display:grid;gap:12px}.catalog-list--scroll{max-height:700px;overflow:auto;padding-right:4px}.alert-row,.cart-item,.catalog-item,.info-panel{background:var(--surface-soft);border-radius:22px;border:1px solid var(--border)}.alert-row,.catalog-item{justify-content:space-between;padding:12px 14px}.catalog-item{transition:border-color .18s ease,background-color .18s ease,transform .18s ease}.catalog-item:hover{border-color:#1f7a573d;background:#fbfcf8;transform:translateY(-1px)}.alert-row__main{min-width:0}.alert-row__meta{text-align:right}.alert-row__meta small,.table-title span,.timeline p,.catalog-item p,.catalog-item small,.empty-state,.timeline__meta{font-size:12px}.timeline__item{display:grid;grid-template-columns:14px 1fr;gap:10px}.timeline__dot{width:12px;height:12px;border-radius:999px;background:var(--accent);margin-top:5px}.age-chart{display:grid;gap:12px}.age-chart__row{display:grid;gap:8px}.age-chart__bar-wrap{height:12px;border-radius:999px;background:#ece8db;overflow:hidden}.age-chart__bar{height:100%;border-radius:inherit}.age-chart__meta{display:flex;justify-content:space-between;color:#606a7b}.table-title,.empty-state,.modal-root,.modal-panel,.segmented-tabs,.segmented-tabs__item,.payment-grid,.summary-card,.field,.form-grid,.summary-total,.mini-select,.mini-select select{display:flex}.table-title{flex-direction:column;gap:6px}.table-title strong,.table-title span{line-height:1.35}.empty-state{min-height:240px;border:1px dashed var(--border);border-radius:24px;background:var(--surface-soft);color:var(--muted);align-items:center;justify-content:center;flex-direction:column;gap:12px}.catalog-item{width:100%;text-align:left}.catalog-item__price{display:grid;justify-items:end;gap:10px;color:var(--primary)}.cart-item{padding:12px;display:flex;gap:12px}.cart-item__media{width:48px;height:48px;border-radius:12px;background:#eef6f2;color:var(--primary);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.cart-item__main{flex:1;min-width:0;display:grid;gap:8px}.cart-item__top{justify-content:space-between;align-items:flex-start}.cart-item__top p,.summary-card,.field,.modal-panel{flex-direction:column}.cart-item__top p,.info-panel p{margin:6px 0 0}.cart-item__footer{gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:12px}.mini-select{gap:8px;align-items:center}.mini-select select{min-width:76px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--surface);padding:0 10px;font-size:11px}.payment-grid{gap:8px;margin-bottom:12px}.payment-option{flex:1;min-height:64px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:#627082;display:grid;place-items:center;gap:6px;font-weight:700;line-height:1;font-size:12px}.payment-option--active{border-color:var(--primary);background:#eef6f2;color:var(--primary)}.summary-card{gap:12px;border-color:#1f7a572e;box-shadow:0 8px 20px #1f7a5712}.summary-line,.summary-total{justify-content:space-between}.summary-total{border-top:1px solid var(--border);padding-top:12px;font-size:16px}.summary-line strong,.summary-total strong{font-weight:700}.sales-panel{min-height:100%}.sales-panel--payment{gap:4px}.customer-benefits{display:grid;gap:8px;margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-benefits__item{border:1px solid var(--border);background:#ffffffb3;border-radius:12px;padding:10px 12px;display:grid;gap:4px}.customer-benefits__item span{color:var(--muted);font-size:12px}.customer-benefits__item strong{font-size:13px}.split-buttons{gap:8px}.field{gap:6px}.field span{font-size:12px;font-weight:600;line-height:1.2}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.field--ghost{gap:0}.field input,.field select,.field textarea{border:1px solid var(--border);background:var(--surface-soft);outline:none;padding:0 12px;color:var(--text);line-height:1.25;display:block;font-size:13px}.field textarea{min-height:76px;padding-top:10px;resize:vertical}.form-grid{gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.field--full,.form-feedback{grid-column:1 / -1}.form-feedback{margin:0;font-size:12px}.form-feedback--success{color:var(--primary)}.form-feedback--error{color:var(--danger)}.segmented-tabs{width:fit-content;border-radius:16px;background:#eeede2;padding:4px;gap:4px}.segmented-tabs--page{margin-top:-6px}.segmented-tabs__item{min-height:36px;border:0;background:transparent;border-radius:10px;padding:0 12px;gap:6px;font-size:12px;font-weight:700;color:#6a7489;cursor:pointer;line-height:1}.segmented-tabs__item--active{background:#fff;color:var(--text);box-shadow:var(--shadow)}.info-panel{padding:12px}.modal-root{position:fixed;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;z-index:90}.modal-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a47}.modal-panel{position:relative;width:min(92vw,760px);max-height:88vh;background:#fff;border-radius:18px;padding:16px;box-shadow:0 24px 52px #11182729}.modal-panel--md{max-width:680px}.modal-panel--lg{max-width:820px}.modal-header,.modal-footer,.card-toolbar{justify-content:space-between;gap:10px}.modal-title{margin:0;font-size:18px;line-height:1.2}.modal-description{margin:6px 0 0;line-height:1.45}.modal-body{overflow-y:auto;max-height:calc(88vh - 160px);padding-right:2px}.modal-footer{margin-top:14px}.metric-card{position:relative;overflow:hidden}.metric-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,#1f7a579e,#cfaa458c)}.table tbody tr:hover{background:#f8f7f0d9}.table-row--selected{background:#e7f1ece6}.btn>svg,.icon-button>svg,.sidebar-link>svg,.card-title--with-icon>svg,.segmented-tabs__item>svg,.search-box>svg,.select-box>svg,.payment-option>svg,.metric-card__icon>svg,.brand-mark>svg,.cart-item__media>svg,.catalog-item__price>svg{display:block;flex:0 0 auto}.btn>svg,.card-title--with-icon>svg,.segmented-tabs__item>svg,.payment-option>svg{width:14px!important;height:14px!important}.search-box>svg,.select-box>svg,.icon-button>svg,.sidebar-link>svg{width:16px!important;height:16px!important}.metric-card__icon>svg,.brand-mark>svg{width:18px!important;height:18px!important}@media(max-width:1280px){.stats-grid,.stats-grid--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-layout,.inventory-layout,.dashboard-grid,.dashboard-grid--bottom{grid-template-columns:1fr}}@media(max-width:960px){.shell__overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a33;z-index:30}.sidebar{position:fixed;inset:0 auto 0 0;transform:translate(-105%);max-width:300px;height:100vh}.sidebar--mobile-open{transform:translate(0)}.topbar{padding:0 18px}.search-box--header{width:100%}.shell__content{padding:20px}.stats-grid,.stats-grid--three,.stats-grid--categories,.form-grid{grid-template-columns:1fr}.payment-grid,.split-buttons{flex-direction:column}.customer-benefits{grid-template-columns:1fr}}
