:root{--primary:#5b2eff;--primary-dark:#3e1f9a;--accent:#12b3a8;--bg:#f5f7fb;--surface:#fff;--text:#101828;--muted:#667085;--soft:#98a2b3;--line:#e6e9ef;--line-strong:#d8dde7;--success:#16803b;--danger:#c62828;--shadow:0 18px 55px rgba(26,20,54,.08);--shadow-soft:0 5px 18px rgba(26,20,54,.05);--r-xl:24px;--r-lg:18px;--r-md:13px}*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.page{max-width:1540px;margin:0 auto;padding:34px 42px 54px}.page-auth{max-width:none;padding:0}.app-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-main{height:72px;display:flex;align-items:center;gap:25px;padding:0 28px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.03em}.brandmark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-weight:900;box-shadow:0 8px 20px rgba(91,46,255,.18)}.brandword{font-size:18px}.company-context{display:flex;flex-direction:column;gap:2px;padding-left:24px;border-left:1px solid var(--line);min-width:180px}.context-label{font-size:10px;text-transform:uppercase;letter-spacing:.11em;color:var(--soft);font-weight:800}.company-context strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.header-branch{display:flex;align-items:center;gap:8px;margin:0;padding:7px 10px 7px 12px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.header-branch label,.branch-static span{font-size:10px;color:var(--soft);text-transform:uppercase;letter-spacing:.07em;font-weight:800}.header-branch select{width:auto;min-width:145px;border:0;padding:2px 24px 2px 0;background:transparent;box-shadow:none;font-size:13px;font-weight:750;color:var(--text)}.branch-static{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.branch-static strong{font-size:13px}.user-chip{display:flex;align-items:center;gap:9px;padding:4px 8px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef0ff;color:var(--primary);font-size:13px;font-weight:900}.user-copy{display:flex;flex-direction:column}.user-copy strong{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-copy small{font-size:10px;color:var(--muted);margin-top:2px}.logout-form{margin:0}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff;display:grid;place-items:center;cursor:pointer}.icon-button:hover{background:#f7f7fb;border-color:var(--line-strong)}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.primary-nav{height:48px;display:flex;align-items:stretch;padding:0 28px;gap:8px;border-top:1px solid #f5f6f8}.nav-item{position:relative;display:flex;align-items:center;gap:8px;padding:0 13px;font-size:13px;font-weight:750;color:var(--muted)}.nav-item svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item:hover{color:var(--text)}.nav-item.active{color:var(--text)}.nav-item.active:after{content:"";position:absolute;left:13px;right:13px;bottom:0;height:2px;background:var(--primary);border-radius:2px}.dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}.dashboard-head h1,.section-head h1{font-size:34px;letter-spacing:-.045em;line-height:1.05;margin:0}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:900;color:var(--primary);margin:0 0 9px}.eyebrow.subtle{color:var(--soft);font-size:10px}.lead{color:var(--muted);line-height:1.6;margin:12px 0 0}.head-meta{display:flex;align-items:center;gap:8px;padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:12px}.status-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 4px #dcfce7}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.overview-card{min-height:126px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:21px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow-soft)}.overview-card>div:last-child{display:flex;flex-direction:column;min-width:0}.card-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto}.card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.card-icon.purple{background:#f1edff;color:var(--primary)}.card-icon.teal{background:#e9faf7;color:#087c73}.card-icon.ink{background:#eef2f7;color:#344054}.card-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--soft);font-weight:800}.overview-card strong{font-size:18px;letter-spacing:-.02em;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-card small{font-size:12px;color:var(--muted);margin-top:4px}.dash-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.75fr);gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-soft);padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:19px}.panel-head h2{font-size:18px;letter-spacing:-.025em;margin:0}.panel-head p{font-size:12px;color:var(--muted);margin:6px 0 0}.soft-badge{font-size:11px;font-weight:800;color:#475467;background:#f2f4f7;padding:7px 9px;border-radius:999px}.visual-empty{min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px}.visual-empty h3{font-size:17px;margin:18px 0 7px;letter-spacing:-.02em}.visual-empty p{max-width:540px;color:var(--muted);font-size:13px;line-height:1.6;margin:0}.empty-chart{width:min(460px,90%);height:104px;border-bottom:1px solid #e7eaf0;display:flex;align-items:flex-end;justify-content:center;gap:9px;padding:0 18px}.empty-chart span{display:block;width:34px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#d9d1ff,#eeeafe)}.quick-panel{min-height:100%}.quick-links{display:flex;flex-direction:column}.quick-links a{display:grid;grid-template-columns:38px 1fr 18px;gap:12px;align-items:center;padding:14px 4px;border-top:1px solid #f0f1f4}.quick-links a:first-child{border-top:0}.quick-links a:hover strong{color:var(--primary)}.quick-icon{width:34px;height:34px;border-radius:11px;background:#f4f2ff;color:var(--primary);display:grid;place-items:center;font-size:12px;font-weight:900}.quick-links span:nth-child(2){display:flex;flex-direction:column;gap:3px}.quick-links strong{font-size:13px}.quick-links small{font-size:11px;color:var(--muted);line-height:1.4}.quick-links b{color:var(--soft);font-weight:600}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 15% 10%,#f0edff 0,transparent 28%),var(--bg)}.auth-card{width:min(1100px,100%);display:grid;grid-template-columns:minmax(430px,.92fr) minmax(480px,1.08fr);background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 26px 85px rgba(31,27,55,.12);border:1px solid #eef0f4}.auth-left{padding:58px 60px 45px;display:flex;flex-direction:column}.brand-login{margin-bottom:46px}.brand-login .brandword{font-size:25px}.auth-copy h1{font-size:47px;line-height:1.02;letter-spacing:-.05em;margin:0;max-width:420px}.auth-copy .lead{max-width:440px}.auth-form{display:grid;gap:16px;margin-top:30px}.auth-form label,.stack label{font-weight:750;font-size:12px;display:grid;gap:8px}.auth-form input,.stack input,.stack select{width:100%;padding:13px 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--text);outline:none}.auth-form input:focus,.stack input:focus,.stack select:focus{border-color:#a690ff;box-shadow:0 0 0 3px rgba(91,46,255,.10)}.check{display:flex!important;grid-template-columns:auto 1fr;align-items:center!important;gap:8px!important;font-weight:500!important;color:var(--muted)}.check input{width:auto}.primary{border:0;border-radius:12px;padding:13px 18px;font-weight:850;cursor:pointer;background:linear-gradient(90deg,#5b2eff,#6731ff);color:#fff;box-shadow:0 8px 18px rgba(91,46,255,.16)}.primary:hover{background:var(--primary-dark)}.wide{width:100%}.auth-foot{font-size:10px;color:var(--soft);margin-top:auto;padding-top:25px}.auth-art{position:relative;min-height:690px;background:linear-gradient(155deg,#131025 0%,#291957 52%,#0f716d 100%);overflow:hidden}.art-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(to bottom,black,transparent 80%)}.art-glow{position:absolute;border-radius:50%;filter:blur(2px)}.glow-one{width:430px;height:430px;right:-100px;top:55px;background:radial-gradient(circle at 35% 30%,#a793ff,#6735ff 45%,rgba(63,33,139,.5) 75%,transparent)}.glow-two{width:290px;height:290px;left:-95px;bottom:50px;background:radial-gradient(circle,#19bfb2,rgba(18,179,168,.15) 65%,transparent)}.art-window{position:absolute;left:60px;right:60px;top:130px;background:rgba(14,16,36,.58);border:1px solid rgba(255,255,255,.14);border-radius:22px;box-shadow:0 25px 70px rgba(0,0,0,.28);backdrop-filter:blur(15px);overflow:hidden}.window-top{height:42px;display:flex;align-items:center;gap:7px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.08)}.window-top span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.35)}.window-body{padding:35px;color:white}.window-kicker{font-size:9px;letter-spacing:.18em;color:#b5a7ff;font-weight:850}.window-title{font-size:30px;font-weight:800;letter-spacing:-.04em;margin-top:7px}.window-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}.window-metrics i{height:58px;border-radius:11px;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.055))}.window-lines{display:grid;gap:10px}.window-lines b{display:block;height:8px;background:rgba(255,255,255,.10);border-radius:999px}.window-lines b:nth-child(1){width:88%}.window-lines b:nth-child(2){width:68%}.window-lines b:nth-child(3){width:78%}.window-lines b:nth-child(4){width:52%}.art-caption{position:absolute;left:60px;bottom:55px;display:flex;flex-direction:column;gap:6px;color:#fff}.art-caption strong{font-size:17px}.art-caption span{font-size:12px;color:rgba(255,255,255,.68)}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.settings-shell{display:grid;grid-template-columns:205px minmax(0,1fr);gap:32px}.settings-nav{position:sticky;top:154px;align-self:start;display:flex;flex-direction:column;gap:4px}.settings-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--soft);font-weight:900;padding:0 12px 8px;margin:0}.settings-nav a{padding:10px 12px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:700}.settings-nav a:hover{background:#eef0f5;color:var(--text)}.settings-nav a.active{background:#eeeaff;color:var(--primary)}.settings-content{min-width:0}.two-col{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.65fr);gap:16px}.form-panel{align-self:start}.stack{display:grid;gap:15px;margin-top:12px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid #eef0f3;white-space:nowrap}th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--soft);font-weight:850}.badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850}.badge.success{background:#ebf8ef;color:#16743a}.person{display:flex;align-items:center;gap:9px}.person span{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#f0edff;color:var(--primary);font-size:11px;font-weight:900}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.role-card{min-height:155px}.role-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}.role-mark{width:38px;height:38px;border-radius:12px;background:#f0edff;color:var(--primary);display:grid;place-items:center;font-weight:900}.role-head h2{margin:1px 0 4px;font-size:16px}.role-head p{margin:0;color:var(--muted);font-size:11px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips span{background:#f4f2ff;color:var(--primary-dark);padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800}.chips span.neutral{background:#f2f4f7;color:var(--muted)}.flash{padding:12px 14px;border-radius:11px;margin-bottom:17px;font-size:12px;font-weight:750}.flash.error{background:#fff0f0;color:var(--danger)}.flash.success{background:#edf9f0;color:var(--success)}.empty,.simple-auth{max-width:520px;margin:100px auto}.simple-auth.panel form{display:grid;gap:16px}.ghost{border:1px solid var(--line);border-radius:11px;padding:11px 15px;background:#fff;font-weight:800;cursor:pointer}.linkbtn{display:inline-block}@media(max-width:1050px){.page{padding:28px 24px}.company-context{display:none}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid .overview-card:last-child{grid-column:1/-1}.dash-columns{grid-template-columns:1fr}.settings-shell{grid-template-columns:170px minmax(0,1fr)}.auth-card{grid-template-columns:1fr .9fr}.auth-left{padding:48px 42px}.auth-art{min-height:650px}.art-window{left:35px;right:35px}.art-caption{left:35px}.two-col{grid-template-columns:1fr}.form-panel{max-width:none}}@media(max-width:760px){.app-header{position:static}.header-main{height:auto;min-height:66px;padding:12px 16px;flex-wrap:wrap;gap:12px}.brand{margin-right:auto}.header-actions{width:100%;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.header-branch,.branch-static{min-width:0}.header-branch select{min-width:0;max-width:100%}.user-copy{display:none}.user-chip{padding:0}.primary-nav{padding:0 12px;height:46px}.nav-item{flex:1;justify-content:center}.nav-item.active:after{left:20%;right:20%}.page{padding:22px 16px 42px}.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-head h1,.section-head h1{font-size:29px}.head-meta{width:100%}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .overview-card:last-child{grid-column:auto}.overview-card{min-height:105px}.settings-shell{grid-template-columns:1fr;gap:18px}.settings-nav{position:static;flex-direction:row;overflow:auto;padding-bottom:4px}.settings-label{display:none}.settings-nav a{white-space:nowrap;background:#fff;border:1px solid var(--line)}.settings-nav a.active{border-color:#d8cffc}.cards{grid-template-columns:1fr}.auth-wrap{padding:0}.auth-card{width:100%;min-height:100vh;border:0;border-radius:0;grid-template-columns:1fr}.auth-left{padding:35px 26px 30px}.brand-login{margin-bottom:42px}.auth-copy h1{font-size:39px}.auth-art{display:none}.auth-foot{margin-top:30px}.visual-empty{min-height:260px;padding:12px}.empty-chart{width:100%}}@media(max-width:430px){.brandword{font-size:17px}.header-actions{grid-template-columns:minmax(0,1fr) auto}.user-chip{display:none}.overview-card{padding:17px}.panel{padding:18px}.quick-links a{grid-template-columns:34px 1fr 14px}.auth-copy h1{font-size:35px}.auth-left{padding:30px 20px}.window-title{font-size:25px}}

/* TREVYLIA PHASE 2A — CATALOG */
.module-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 22px}.module-head h1{margin:4px 0 8px;font-size:34px;letter-spacing:-.04em}.module-head .lead{margin:0;max-width:760px}.form-head{align-items:center}.action-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.module-tabs{display:flex;gap:6px;margin:-4px 0 20px;border-bottom:1px solid var(--line,#e7eaf0)}.module-tabs a{padding:12px 16px;color:#697386;text-decoration:none;font-weight:700;border-bottom:2px solid transparent}.module-tabs a.active{color:#111827;border-color:#5b2eff}.filter-panel{padding:18px 20px;margin-bottom:18px}.catalog-filters{display:flex;gap:14px;align-items:end}.catalog-filters label{display:flex;flex-direction:column;gap:7px;min-width:170px}.catalog-filters .field-grow{flex:1}.catalog-filters span,.form-grid label>span,.stack-form label>span,.branch-setting-row label>span,.file-field>span{font-size:12px;font-weight:800;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.catalog-filters input,.catalog-filters select,.form-grid input,.form-grid select,.form-grid textarea,.stack-form input,.stack-form select,.stack-form textarea,.branch-setting-row input,.file-field input{width:100%;border:1px solid #dfe3ea;border-radius:12px;background:#fff;color:#111827;padding:12px 13px;font:inherit;outline:none}.catalog-filters input:focus,.catalog-filters select:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.branch-setting-row input:focus{border-color:#6d4aff;box-shadow:0 0 0 3px rgba(91,46,255,.1)}.catalog-panel{overflow:hidden}.compact-heading{padding:20px 22px;border-bottom:1px solid #edf0f5}.compact-heading h2{margin:4px 0 0;font-size:20px}.product-table-wrap{overflow:auto}.product-table{width:100%;border-collapse:collapse;min-width:1080px}.product-table th{padding:13px 16px;text-align:left;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#8b96a8;background:#fafbfc;border-bottom:1px solid #e8ebf0}.product-table td{padding:14px 16px;border-bottom:1px solid #edf0f5;vertical-align:middle;color:#344054}.product-table tbody tr:hover{background:#fbfbff}.product-cell{display:flex;align-items:center;gap:12px;min-width:220px}.product-cell strong{display:block;color:#101828}.product-cell small,.table-note{display:block;color:#8a94a6;margin-top:3px;font-size:12px}.product-thumb{width:44px;height:44px;border-radius:11px;object-fit:cover;border:1px solid #e5e7eb;background:#f7f7fb}.product-thumb.placeholder{display:grid;place-items:center;font-weight:900;color:#5b2eff;background:#f1edff}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800;white-space:nowrap}.status-pill.success{background:#eaf8ef;color:#16823b}.status-pill.muted-pill{background:#f1f3f6;color:#667085}.muted{color:#98a2b3}.actions-cell{display:flex;gap:8px;align-items:center}.actions-cell form,.simple-list-row form{margin:0}.table-action{border:0;background:none;padding:6px 8px;color:#5536df;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}.table-action:hover{background:#f2efff;border-radius:8px}.danger-soft{color:#b42318}.compact-empty{padding:52px 24px}.compact-empty .empty-icon{width:46px;height:46px;border-radius:13px;background:#f1edff;color:#5b2eff;display:grid;place-items:center;font-weight:900;margin:0 auto 12px}.compact-empty h3{margin:0 0 6px}.compact-empty p{margin:0 auto 18px;max-width:520px;color:#7b8494}.product-form-page{padding-bottom:30px}.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.form-main{display:grid;gap:18px}.form-side{min-width:0}.form-section{padding:24px}.section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:22px}.section-title.simple{margin-bottom:18px}.section-title h2{margin:0;font-size:20px}.section-title p{margin:5px 0 0;color:#7b8494;font-size:14px}.step-chip{width:30px;height:30px;border-radius:9px;background:#f1edff;color:#5b2eff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.form-grid{display:grid;gap:16px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid label,.stack-form label{display:flex;flex-direction:column;gap:7px}.form-grid .span-2{grid-column:1/-1}.form-grid select[multiple]{min-height:116px}.form-grid label small,.stack-form label small{font-size:12px;color:#8a94a6;line-height:1.45}.check-row{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e7eaf0;border-radius:12px}.check-row input{width:auto!important;margin-top:2px}.check-row span{display:block!important;text-transform:none!important;letter-spacing:0!important}.check-row strong{display:block;color:#101828;font-size:14px}.check-row small{display:block;margin-top:3px}.compact-check{padding:10px 12px}.margin-preview{margin-top:18px;background:#f8fafc;border:1px solid #e8ecf2;border-radius:14px;padding:16px;display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:center}.margin-preview span{font-size:13px;font-weight:800;color:#667085}.margin-preview strong{font-size:22px}.margin-preview small{grid-column:1/-1;color:#8a94a6}.branch-settings-list{display:grid;gap:10px}.branch-setting-row{display:grid;grid-template-columns:minmax(180px,1fr) 130px 220px;gap:14px;align-items:center;padding:14px;border:1px solid #e8ebf0;border-radius:14px}.branch-setting-row>div strong{display:block}.branch-setting-row>div small{display:block;color:#8a94a6;margin-top:3px}.inline-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.inline-check input{width:auto!important}.sticky-card{position:sticky;top:120px}.image-preview-box{aspect-ratio:1/1;border:1px dashed #d7dce5;border-radius:16px;overflow:hidden;background:#fafbfc;margin-bottom:16px}.image-preview-box img{width:100%;height:100%;object-fit:cover}.image-empty{height:100%;display:grid;place-items:center;align-content:center;color:#98a2b3}.image-empty span{width:42px;height:42px;border-radius:12px;background:#f1edff;color:#5b2eff;display:grid;place-items:center;font-size:24px}.image-empty p{margin:8px 0 0}.file-field{display:flex;flex-direction:column;gap:7px}.form-save{display:grid;gap:9px;margin-top:18px}.split-admin-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.stack-form{display:grid;gap:14px}.simple-list{display:grid}.simple-list-row{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #edf0f5}.simple-list-row:last-child{border-bottom:0}.category-swatch{width:14px;height:38px;border-radius:8px}.list-main{flex:1;min-width:0}.list-main strong{display:block}.list-main small{display:block;color:#8a94a6;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tax-badge{min-width:64px;padding:9px 10px;border-radius:10px;background:#f1edff;color:#5b2eff;text-align:center;font-weight:900}.narrow-form{max-width:700px}.secondary.wide{width:100%}
@media(max-width:1050px){.form-layout{grid-template-columns:1fr}.sticky-card{position:static}.form-side{max-width:none}.split-admin-layout{grid-template-columns:1fr}.catalog-filters{flex-wrap:wrap}.catalog-filters .field-grow{flex-basis:100%}}
@media(max-width:760px){.module-head{align-items:flex-start;flex-direction:column}.module-head h1{font-size:29px}.module-tabs{overflow:auto;white-space:nowrap}.catalog-filters{display:grid;grid-template-columns:1fr}.catalog-filters label{min-width:0}.form-grid.two{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.branch-setting-row{grid-template-columns:1fr}.simple-list-row{align-items:flex-start;flex-wrap:wrap}.list-main{flex-basis:calc(100% - 40px)}.product-table th:nth-child(4),.product-table td:nth-child(4),.product-table th:nth-child(5),.product-table td:nth-child(5){display:none}.form-section{padding:18px}}

/* TREVYLIA PHASE 2B — VARIANTS AND MODIFIERS */
.options-grid{display:grid;gap:18px}.option-panel{padding:0;overflow:hidden}.option-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #edf0f5}.option-heading h2{margin:4px 0 4px;font-size:21px}.option-heading p{margin:0}.option-list{display:grid}.option-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(130px,.7fr) minmax(145px,.8fr) auto auto;gap:16px;align-items:center;padding:16px 22px;border-bottom:1px solid #edf0f5}.option-row:last-child{border-bottom:0}.option-row:hover{background:#fbfbff}.option-main strong{display:block;color:#101828}.option-main small,.option-row small{display:block;margin-top:3px;color:#8a94a6;font-size:12px}.option-label{display:block;color:#98a2b3;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}.assigned-groups{display:grid}.assigned-card{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(170px,.8fr) auto auto;gap:14px;align-items:center;padding:15px 22px;border-bottom:1px solid #edf0f5}.assigned-card>div:first-child strong{display:block}.assigned-card>div:first-child small{display:block;color:#8a94a6;margin-top:3px}.scope-pill{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:7px 10px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:800}.mini-empty{padding:26px 24px;color:#8a94a6;text-align:center;border-bottom:1px solid #edf0f5}.assign-form{padding:22px 24px;background:#fbfcfe}.form-grid.three{grid-template-columns:1fr 1fr 140px}.assign-form>.check-row{margin:16px 0}.group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}.group-card{border:1px solid #e7eaf0;border-radius:16px;padding:18px;background:#fff;display:grid;gap:16px}.group-card-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.group-card-top strong{display:block;font-size:16px}.group-card-top small{display:block;color:#8a94a6;margin-top:4px;line-height:1.4}.group-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.group-stats span{background:#f8fafc;border:1px solid #edf0f5;border-radius:12px;padding:10px;text-align:center}.group-stats b{display:block;font-size:18px}.group-stats small{display:block;color:#98a2b3;margin-top:2px}.group-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf0f5;padding-top:12px}.group-actions form{margin:0}.modifier-items-panel{margin-top:18px}.modifier-row{grid-template-columns:minmax(220px,1.4fr) minmax(130px,.7fr) minmax(120px,.6fr) auto auto}.inline-actions{display:flex;align-items:center;gap:10px;margin-top:18px}.primary:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1050px){.group-grid{grid-template-columns:1fr 1fr}.option-row{grid-template-columns:minmax(200px,1fr) 130px 150px}.option-row>.status-pill,.option-row>.actions-cell{grid-column:auto}.assigned-card{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:1fr 1fr}.form-grid.three label:last-child{grid-column:1/-1}}
@media(max-width:760px){.option-heading{align-items:flex-start;flex-direction:column}.option-row,.modifier-row{grid-template-columns:1fr;gap:10px}.assigned-card{grid-template-columns:1fr}.group-grid{grid-template-columns:1fr;padding:14px}.form-grid.three{grid-template-columns:1fr}.form-grid.three label:last-child{grid-column:auto}.inline-actions{align-items:stretch;flex-direction:column}.inline-actions .action-link,.inline-actions button{width:100%}}

/* TREVYLIA PHASE 2C — COMBOS */
.combo-groups-panel{margin-top:22px}.combo-item-row{grid-template-columns:minmax(240px,2fr) minmax(130px,.7fr) minmax(110px,.6fr) auto}.combo-item-row .actions-cell{justify-self:end}@media(max-width:900px){.combo-item-row{grid-template-columns:1fr}.combo-item-row .actions-cell{justify-self:start}}


/* ============================================================================================================
   TREVYLIA PHASE 2D — POS
   ============================================================================================================ */

.pos-heading,
.pos-config-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px
}

.pos-heading h1,
.pos-config-heading h1{
  margin:3px 0 5px;
  font-size:34px;
  letter-spacing:-.035em
}

.pos-online{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border:1px solid #dce7e4;
  background:#f4fbf9;
  border-radius:999px;
  color:#176c63;
  font-size:13px;
  font-weight:700
}

.pos-online span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(18,179,168,.12)
}

.pos-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:22px;
  align-items:start
}

.pos-catalog-panel,
.pos-cart-panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-soft)
}

.pos-catalog-panel{
  padding:20px
}

.pos-cart-panel{
  position:sticky;
  top:145px;
  overflow:hidden
}

.pos-search{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-bottom:16px
}

.pos-search input{
  min-width:0;
  height:46px;
  border:1px solid var(--line-strong);
  border-radius:13px;
  padding:0 15px;
  font:inherit;
  color:var(--text);
  background:#fff
}

.pos-search button{
  height:46px;
  border:0;
  border-radius:13px;
  padding:0 20px;
  font:inherit;
  font-weight:750;
  background:#f0ecff;
  color:var(--primary-dark);
  cursor:pointer
}

.pos-categories{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:2px 0 15px;
  scrollbar-width:thin
}

.pos-categories a{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  text-decoration:none;
  color:#475467;
  background:#fff;
  font-size:13px;
  font-weight:700
}

.pos-categories a.active{
  color:#fff;
  background:var(--primary);
  border-color:var(--primary)
}

.pos-categories i{
  width:8px;
  height:8px;
  border-radius:50%
}

.pos-products-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px
}

.pos-product-card{
  min-width:0;
  border:1px solid var(--line);
  border-radius:17px;
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  background:#fff;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease
}

.pos-product-card:hover{
  transform:translateY(-2px);
  border-color:#cfc5ff;
  box-shadow:0 10px 25px rgba(91,46,255,.08)
}

.pos-product-card.disabled{
  opacity:.52;
  pointer-events:none
}

.pos-product-media{
  position:relative;
  height:126px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#f3f0ff,#edf8f7)
}

.pos-product-media img{
  width:100%;
  height:100%;
  object-fit:cover
}

.pos-product-media>span{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:17px;
  color:#fff;
  background:linear-gradient(145deg,var(--primary),var(--accent));
  font-weight:850;
  font-size:22px
}

.pos-product-media.combo{
  background:linear-gradient(145deg,#f1ecff,#eaf9f7)
}

.pos-card-tag{
  position:absolute;
  top:9px;
  right:9px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--primary-dark);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em
}

.pos-product-body{
  padding:13px
}

.pos-product-body>small{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:700
}

.pos-product-body>strong{
  display:block;
  font-size:15px;
  line-height:1.3
}

.pos-product-body>p{
  min-height:18px;
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px
}

.pos-product-price{
  min-height:24px;
  margin-top:10px;
  color:var(--primary-dark);
  font-size:16px;
  font-weight:850
}

.pos-product-price em{
  margin-right:4px;
  color:var(--muted);
  font-size:10px;
  font-style:normal;
  text-transform:uppercase;
  letter-spacing:.04em
}

.pos-product-price span{
  color:#a84444;
  font-size:12px
}

.pos-empty-catalog{
  grid-column:1/-1;
  padding:65px 20px;
  text-align:center;
  color:var(--muted)
}

.pos-empty-catalog strong{
  display:block;
  color:var(--text);
  margin-bottom:5px
}

.pos-cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 18px 14px;
  border-bottom:1px solid var(--line)
}

.pos-cart-head h2{
  margin:2px 0 0;
  font-size:21px
}

.pos-cart-count{
  display:grid;
  place-items:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:#eee9ff;
  color:var(--primary-dark);
  font-weight:850
}

.pos-seller{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 16px 8px;
  padding:11px;
  border-radius:13px;
  background:#f7f8fb
}

.pos-seller>span{
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  flex:0 0 auto;
  border-radius:11px;
  background:var(--primary);
  color:#fff;
  font-weight:850
}

.pos-seller small,
.pos-seller strong{
  display:block
}

.pos-seller small{
  color:var(--muted);
  font-size:10px
}

.pos-seller strong{
  margin-top:1px;
  font-size:12px
}

.pos-meta-form{
  padding:7px 16px 15px;
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:9px
}

.pos-meta-form label{
  color:var(--muted);
  font-size:10px;
  font-weight:750
}

.pos-meta-form input,
.pos-meta-form textarea{
  width:100%;
  margin-top:4px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:8px 9px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:11px;
  box-sizing:border-box
}

.pos-meta-form textarea{
  min-height:58px;
  resize:vertical
}

.pos-secondary-button{
  grid-column:1/-1;
  border:0;
  border-radius:10px;
  padding:8px 12px;
  background:#f1f3f7;
  color:#475467;
  font-weight:750;
  cursor:pointer
}

.pos-cart-lines{
  max-height:42vh;
  overflow:auto;
  border-top:1px solid var(--line)
}

.pos-cart-line{
  padding:14px 16px;
  border-bottom:1px solid var(--line)
}

.pos-line-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px
}

.pos-line-top strong{
  display:block;
  font-size:13px
}

.pos-line-top small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px
}

.pos-line-total{
  flex:0 0 auto;
  color:var(--primary-dark)
}

.pos-line-options{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px
}

.pos-line-options span{
  padding:4px 7px;
  border-radius:7px;
  background:#f4f2fb;
  color:#62587c;
  font-size:10px
}

.pos-line-note{
  margin:7px 0 0;
  color:#667085;
  font-size:10px;
  font-style:italic
}

.pos-line-controls{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:10px
}

.pos-line-controls form{
  margin:0
}

.pos-line-controls button{
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer
}

.pos-line-controls form:not(.pos-remove-form) button{
  width:27px;
  height:27px;
  border-radius:8px;
  font-size:16px
}

.pos-line-controls>strong{
  min-width:19px;
  text-align:center;
  font-size:12px
}

.pos-line-controls>span{
  margin-left:3px;
  color:var(--muted);
  font-size:10px
}

.pos-remove-form{
  margin-left:auto!important
}

.pos-remove{
  border:0!important;
  color:#a33!important;
  background:transparent!important;
  font-size:10px;
  font-weight:700
}

.pos-note-editor{
  margin-top:8px;
  font-size:10px;
  color:var(--muted)
}

.pos-note-editor summary{
  cursor:pointer
}

.pos-note-editor form{
  display:grid;
  gap:5px;
  margin-top:6px
}

.pos-note-editor textarea{
  min-height:55px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px;
  resize:vertical;
  font:inherit
}

.pos-note-editor button{
  justify-self:start;
  border:0;
  border-radius:7px;
  padding:6px 9px;
  background:#eee9ff;
  color:var(--primary-dark);
  font-size:10px;
  font-weight:750;
  cursor:pointer
}

.pos-empty-cart{
  padding:35px 22px;
  text-align:center;
  color:var(--muted)
}

.pos-empty-cart>span{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin:0 auto 11px;
  border-radius:14px;
  background:#f0ecff;
  color:var(--primary);
  font-size:24px
}

.pos-empty-cart strong{
  display:block;
  color:var(--text)
}

.pos-empty-cart p{
  margin:4px 0 0;
  font-size:11px
}

.pos-cart-summary{
  padding:14px 17px;
  border-top:1px solid var(--line);
  background:#fafbfc
}

.pos-cart-summary>div{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:5px 0;
  color:var(--muted);
  font-size:11px
}

.pos-cart-summary strong{
  color:var(--text)
}

.pos-cart-summary .total{
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:15px;
  color:var(--text)
}

.pos-cart-summary .total strong{
  color:var(--primary-dark);
  font-size:21px
}

.pos-cart-actions{
  display:grid;
  gap:8px;
  padding:13px 16px 16px
}

.pos-clear{
  width:100%;
  border:0;
  background:transparent;
  color:#9d3d3d;
  font-weight:700;
  cursor:pointer
}

.pos-checkout{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:0;
  border-radius:12px;
  padding:13px 14px;
  background:#d9dce3;
  color:#777e8d;
  font:inherit;
  font-weight:800;
  cursor:not-allowed
}

.pos-checkout small{
  font-size:9px;
  font-weight:650
}

.pos-config-heading{
  align-items:flex-start;
  flex-direction:column;
  gap:13px
}

.pos-back{
  color:var(--primary-dark);
  text-decoration:none;
  font-size:12px;
  font-weight:750
}

.pos-config-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:20px;
  align-items:start
}

.pos-config-main,
.pos-config-preview{
  border:1px solid var(--line);
  background:#fff;
  border-radius:20px;
  box-shadow:var(--shadow-soft)
}

.pos-config-main{
  overflow:hidden
}

.pos-config-form{
  margin:0
}

.pos-config-section{
  padding:20px;
  border-bottom:1px solid var(--line)
}

.pos-config-title>div{
  display:flex;
  align-items:flex-start;
  gap:10px
}

.pos-config-title>div>span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 auto;
  border-radius:9px;
  background:#eee9ff;
  color:var(--primary-dark);
  font-size:11px;
  font-weight:850
}

.pos-config-title h2{
  margin:0;
  font-size:17px
}

.pos-config-title p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:11px
}

.pos-select-label,
.pos-config-details label{
  display:block;
  margin-top:15px;
  color:var(--muted);
  font-size:11px;
  font-weight:750
}

.pos-select-label select,
.pos-config-details input,
.pos-config-details textarea{
  width:100%;
  margin-top:5px;
  border:1px solid var(--line-strong);
  border-radius:11px;
  padding:10px 11px;
  background:#fff;
  color:var(--text);
  font:inherit;
  box-sizing:border-box
}

.pos-config-details{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:12px
}

.pos-config-details textarea{
  min-height:70px;
  resize:vertical
}

.pos-modifier-group{
  margin:16px 0 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px
}

.pos-modifier-group[hidden]{
  display:none
}

.pos-modifier-group legend{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 5px
}

.pos-modifier-group legend strong{
  font-size:13px
}

.pos-modifier-group legend span{
  color:var(--muted);
  font-size:9px
}

.pos-scope-note,
.pos-group-description{
  display:block;
  margin:0 0 9px;
  color:var(--muted);
  font-size:10px
}

.pos-option-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px
}

.pos-option-card{
  display:flex;
  gap:9px;
  align-items:center;
  min-height:50px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
  cursor:pointer
}

.pos-option-card:has(input:checked){
  border-color:#b9a8ff;
  background:#f8f6ff
}

.pos-option-card.unavailable{
  opacity:.45;
  cursor:not-allowed
}

.pos-option-card input{
  accent-color:var(--primary)
}

.pos-option-card span{
  min-width:0
}

.pos-option-card strong,
.pos-option-card small{
  display:block
}

.pos-option-card strong{
  font-size:12px
}

.pos-option-card small{
  margin-top:2px;
  color:var(--muted);
  font-size:9px
}

.pos-config-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 20px;
  background:#fafbfc
}

.pos-config-footer small,
.pos-config-footer strong{
  display:block
}

.pos-config-footer small{
  color:var(--muted);
  font-size:9px
}

.pos-config-footer strong{
  margin-top:2px;
  color:var(--primary-dark);
  font-size:19px
}

.pos-add-button{
  border:0;
  border-radius:11px;
  padding:12px 17px;
  background:var(--primary);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer
}

.pos-config-preview{
  position:sticky;
  top:145px;
  padding:17px
}

.pos-preview-media{
  height:220px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:15px;
  background:linear-gradient(145deg,#f3f0ff,#edf8f7)
}

.pos-preview-media img{
  width:100%;
  height:100%;
  object-fit:cover
}

.pos-preview-media span{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border-radius:20px;
  background:linear-gradient(145deg,var(--primary),var(--accent));
  color:#fff;
  font-size:28px;
  font-weight:850
}

.pos-config-preview h2{
  margin:14px 0 6px
}

.pos-config-preview>p{
  color:var(--muted);
  font-size:11px;
  line-height:1.5
}

.pos-config-preview dl{
  margin:15px 0 0
}

.pos-config-preview dl div{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:8px 0;
  border-top:1px solid var(--line);
  font-size:10px
}

.pos-config-preview dt{
  color:var(--muted)
}

.pos-config-preview dd{
  margin:0;
  font-weight:750
}

@media(max-width:1100px){
  .pos-layout{
    grid-template-columns:minmax(0,1fr) 340px
  }

  .pos-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:820px){
  .pos-layout,
  .pos-config-layout{
    grid-template-columns:1fr
  }

  .pos-cart-panel,
  .pos-config-preview{
    position:static
  }

  .pos-cart-lines{
    max-height:none
  }

  .pos-config-preview{
    order:-1
  }

  .pos-preview-media{
    height:180px
  }
}

@media(max-width:560px){
  .pos-heading{
    align-items:flex-start;
    flex-direction:column
  }

  .pos-catalog-panel{
    padding:13px
  }

  .pos-search{
    grid-template-columns:1fr
  }

  .pos-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px
  }

  .pos-product-media{
    height:105px
  }

  .pos-product-body{
    padding:10px
  }

  .pos-product-body>strong{
    font-size:13px
  }

  .pos-meta-form{
    grid-template-columns:90px minmax(0,1fr)
  }

  .pos-config-section{
    padding:16px
  }

  .pos-option-grid,
  .pos-config-details{
    grid-template-columns:1fr
  }

  .pos-config-footer{
    position:sticky;
    bottom:0;
    z-index:5
  }

  .pos-add-button{
    flex:1
  }
}

/* ============================================================================================================
   TREVYLIA PHASE 2E — CHECKOUT / SALES
   ============================================================================================================ */

.pos-checkout{
  text-decoration:none
}

.pos-checkout.active{
  background:var(--primary);
  color:#fff;
  cursor:pointer
}

.pos-history-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--primary-dark);
  text-decoration:none;
  font-size:12px;
  font-weight:800
}

.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:20px;
  align-items:start
}

.checkout-main,
.checkout-summary,
.sales-card,
.sale-detail-main,
.sale-total-card{
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow-soft)
}

.checkout-main{
  overflow:hidden
}

.checkout-section{
  padding:21px;
  border-bottom:1px solid var(--line)
}

.checkout-section-title{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom:15px
}

.checkout-section-title>span{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  flex:0 0 auto;
  border-radius:9px;
  background:#eee9ff;
  color:var(--primary-dark);
  font-size:11px;
  font-weight:850
}

.checkout-section-title h2{
  margin:0;
  font-size:17px
}

.checkout-section-title p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:11px
}

.payment-row{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr 1fr;
  gap:9px;
  margin:9px 0;
  padding:11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fafbfc
}

.payment-row label{
  color:var(--muted);
  font-size:10px;
  font-weight:750
}

.payment-row input,
.payment-row select{
  width:100%;
  box-sizing:border-box;
  margin-top:4px;
  padding:9px;
  border:1px solid var(--line-strong);
  border-radius:9px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:11px
}

.checkout-warning{
  padding:13px;
  border:1px solid #e7ddaf;
  border-radius:12px;
  background:#fffbea
}

.checkout-warning p{
  margin:4px 0 0;
  color:#695d35;
  font-size:10px;
  line-height:1.5
}

.checkout-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 20px;
  background:#fafbfc
}

.checkout-submit small,
.checkout-submit strong{
  display:block
}

.checkout-submit small{
  color:var(--muted);
  font-size:10px
}

.checkout-submit strong{
  margin-top:2px;
  color:var(--primary-dark);
  font-size:23px
}

.checkout-summary{
  position:sticky;
  top:145px;
  padding:17px
}

.checkout-summary h2{
  margin:3px 0 14px
}

.checkout-items{
  border-top:1px solid var(--line)
}

.checkout-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  font-size:11px
}

.checkout-item small{
  display:block;
  margin-top:2px;
  color:var(--muted)
}

.checkout-totals{
  padding-top:10px
}

.checkout-totals>div{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:6px 0;
  color:var(--muted);
  font-size:11px
}

.checkout-totals strong{
  color:var(--text)
}

.checkout-totals .total{
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:var(--text);
  font-size:15px
}

.checkout-totals .total strong{
  color:var(--primary-dark);
  font-size:21px
}

.sales-card{
  overflow:hidden
}

.sales-filters{
  display:flex;
  gap:8px;
  padding:15px 17px;
  border-bottom:1px solid var(--line)
}

.sales-filters a{
  padding:7px 11px;
  border-radius:999px;
  background:#f4f5f7;
  color:#667085;
  text-decoration:none;
  font-size:11px;
  font-weight:750
}

.sales-filters a.active{
  background:var(--primary);
  color:#fff
}

.sales-table-wrap{
  overflow:auto
}

.sales-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px
}

.sales-table th,
.sales-table td{
  padding:13px 16px;
  border-bottom:1px solid var(--line);
  text-align:left
}

.sales-table th{
  background:#fafbfc;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase
}

.sales-table .right{
  text-align:right
}

.sales-table a{
  color:var(--primary-dark);
  font-weight:800;
  text-decoration:none
}

.sales-empty{
  padding:45px!important;
  text-align:center!important;
  color:var(--muted)
}

.sale-status{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:800
}

.sale-status.paid{
  background:#eaf8f3;
  color:#19725e
}

.sale-status.voided{
  background:#fff0f0;
  color:#a33
}

.sale-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:20px;
  align-items:start
}

.sale-detail-main{
  overflow:hidden
}

.sale-detail-head{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:17px;
  background:#fafbfc;
  border-bottom:1px solid var(--line)
}

.sale-detail-head small,
.sale-detail-head strong{
  display:block
}

.sale-detail-head small{
  color:var(--muted);
  font-size:9px
}

.sale-detail-head strong{
  margin-top:3px;
  font-size:12px
}

.sale-state-good{
  color:#19725e
}

.sale-state-bad{
  color:#a33
}

.sale-line{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:14px 17px;
  border-bottom:1px solid var(--line);
  font-size:12px
}

.sale-line small{
  display:block;
  color:var(--muted);
  margin-top:2px
}

.sale-line p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:10px
}

.sale-general-note{
  margin:16px;
  padding:12px;
  border-radius:12px;
  background:#f7f8fb
}

.sale-general-note small{
  color:var(--muted);
  font-size:9px
}

.sale-general-note p{
  margin:4px 0 0;
  font-size:11px
}

.sale-payments{
  padding:17px
}

.sale-payments h2{
  margin:0 0 10px;
  font-size:17px
}

.sale-payment-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) repeat(3,auto);
  gap:18px;
  align-items:center;
  padding:11px 0;
  border-top:1px solid var(--line)
}

.sale-payment-row small,
.sale-payment-row span{
  display:block;
  color:var(--muted);
  font-size:9px
}

.sale-payment-row strong{
  font-size:11px
}

.sale-void-box{
  margin:0 17px 17px;
  padding:13px;
  border:1px solid #f1caca;
  border-radius:12px;
  background:#fff4f4
}

.sale-void-box strong{
  color:#a33
}

.sale-void-box p{
  margin:5px 0;
  font-size:11px
}

.sale-total-card{
  position:sticky;
  top:145px;
  padding:17px
}

.sale-total-card>small,
.sale-total-card>strong{
  display:block
}

.sale-total-card>small{
  margin-top:8px;
  color:var(--muted);
  font-size:9px
}

.sale-total-card>strong{
  margin-top:2px;
  font-size:15px
}

.sale-total-card>div{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line)
}

.sale-total-card>div>small,
.sale-total-card>div>strong{
  display:block
}

.sale-total-card>div>small{
  color:var(--muted);
  font-size:10px
}

.sale-total-card>div>strong{
  margin-top:3px;
  color:var(--primary-dark);
  font-size:25px
}

.sale-void-control{
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid var(--line)
}

.sale-void-control summary{
  color:#a33;
  cursor:pointer;
  font-size:11px;
  font-weight:750
}

.sale-void-control form{
  display:grid;
  gap:7px;
  margin-top:9px
}

.sale-void-control textarea{
  min-height:75px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:9px;
  resize:vertical;
  font:inherit;
  font-size:10px
}

.sale-void-control button{
  border:0;
  border-radius:9px;
  padding:9px;
  background:#a33;
  color:#fff;
  font-weight:750;
  cursor:pointer
}

@media(max-width:900px){
  .checkout-layout,
  .sale-detail-layout{
    grid-template-columns:1fr
  }

  .checkout-summary,
  .sale-total-card{
    position:static
  }

  .payment-row{
    grid-template-columns:1fr 1fr
  }

  .sale-detail-head{
    grid-template-columns:1fr 1fr
  }
}

@media(max-width:560px){
  .payment-row{
    grid-template-columns:1fr
  }

  .checkout-submit{
    align-items:stretch;
    flex-direction:column
  }

  .sale-payment-row{
    grid-template-columns:1fr 1fr
  }
}
