﻿:root{
  --sidebar:#1f1e2d;
  --sidebar-2:#191827;
  --sidebar-active:#191827;
  --primary:#015FC0;
  --primary-dark:#4558e8;
  --muted:#8a8fb3;
  --text:#33364a;
  --soft:#f4f5fb;
  --line:#e9ebf7;
  --card:#ffffff;
  --success:#00b982;
  --danger:#d32927;
  --yellow:#fdc636;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--soft);color:var(--text);font-family:"Poppins","Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45}
a{color:inherit}
.shell{display:flex;min-height:100vh;background:var(--soft)}
.sidebar{width:270px;background:var(--sidebar);color:#dce9f8;position:fixed;left:0;top:0;bottom:0;z-index:20;box-shadow:0 12px 35px rgba(20,20,35,.18);display:flex;flex-direction:column}
.brand{height:70px;display:flex;align-items:center;padding:0 26px;border-bottom:1px solid rgba(255,255,255,.035);font-weight:800;font-size:23px;letter-spacing:-.5px;color:#fff}
.brand .x{font-size:20px;color:#00B8C0;margin-left:4px}.brand small{display:block;font-size:10px;color:#9fb3ce;font-weight:600;letter-spacing:.8px;margin-top:2px}.collapse-mark{margin-left:auto;color:#686f9f;font-size:26px;font-weight:300}.sidebar nav{padding:26px 0;flex:1}.sidebar nav a{height:52px;display:flex;align-items:center;gap:16px;padding:0 24px;text-decoration:none;color:#d9e7f7;font-weight:600;border-left:4px solid transparent;transition:.15s}.sidebar nav a .ico{width:22px;text-align:center;color:#00B8C0;font-size:18px}.sidebar nav a:hover,.sidebar nav a.active{background:var(--sidebar-active);color:#fff;border-left-color:var(--primary)}.sidebar nav a:hover .ico,.sidebar nav a.active .ico{color:#015FC0}.userbox{padding:18px 24px;border-top:1px solid rgba(255,255,255,.05);font-size:13px;color:#d7e3f2}.userbox small{color:#9fb3ce}.content{margin-left:270px;width:calc(100% - 270px);min-height:100vh;padding:0 0 72px}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:18px;position:sticky;top:0;z-index:10}.bell{font-size:20px;color:var(--primary)}.hello{font-weight:600;color:#7a80a5}.online-dot{display:inline-flex;width:42px;height:42px;border-radius:8px;align-items:center;justify-content:center;background:#e9fff7;margin-left:2px}.online-dot:after{content:"";width:14px;height:14px;border-radius:50%;background:#20c997}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.page-heading{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;box-shadow:0 20px 35px rgba(35,38,70,.05)}.page-heading h1{font-size:20px;font-weight:700;margin:0}.page-heading .divider{height:25px;width:1px;background:#dfe2f3;margin:0 18px}.page-heading .total{font-weight:700;color:#9aa0c2}.page-body{padding:28px 38px}.filter-card{background:transparent;margin:0 0 24px}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:22px;align-items:end}.table-card{background:#fff;border-radius:4px;box-shadow:0 12px 30px rgba(44,49,88,.045);overflow:hidden;border:1px solid #f0f1fa}.table-tools{display:flex;justify-content:flex-end;margin:-10px 0 14px}.card{background:#fff;border-radius:6px;border:1px solid #f0f1fa;box-shadow:0 12px 30px rgba(44,49,88,.045);padding:24px;margin-bottom:24px}.card h2,.card h3{margin:0 0 18px;font-size:18px}.grid{display:grid;gap:18px}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.two{display:grid;grid-template-columns:1fr 1fr;gap:22px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px}.field{display:block;margin:0 0 16px}.field span{display:block;color:#6b70a0;margin-bottom:8px;font-size:14px;font-weight:500}input,select,textarea{width:100%;border:1px solid #dfe3f2;border-radius:5px;background:#fff;color:#4c506f;min-height:43px;padding:10px 13px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#00B8C0;box-shadow:0 0 0 3px rgba(0,184,192,.12)}textarea{min-height:110px;font-family:Consolas,monospace}.btn{border:0;border-radius:4px;background:var(--primary);color:#fff;min-height:42px;padding:11px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:700;box-shadow:0 8px 18px rgba(1,95,192,.12)}.btn:hover{background:var(--primary-dark)}.btn.secondary{background:#eef6fb;color:#015FC0;box-shadow:none}.btn.yellow{background:var(--primary);color:#fff}.btn.red{background:var(--danger);color:white}.btn.small{min-height:30px;padding:6px 10px;border-radius:4px;font-size:12px}.btn.plus:before{content:"+";font-size:26px;line-height:0;margin-right:6px;font-weight:800}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dots{font-size:23px;line-height:1;color:#015FC0;text-decoration:none;font-weight:900;letter-spacing:2px}.actions form{display:inline}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:18px 26px;border-bottom:1px solid var(--line);vertical-align:middle;color:#626987}th{font-weight:700;color:#39405d;background:#fff}td .muted{font-size:13px;display:block;margin-top:3px}.table-card table tr:last-child td{border-bottom:0}.big{font-size:42px;font-weight:800;color:var(--primary);line-height:1}.muted{color:#9298b9}.badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:99px;font-size:12px;font-weight:800}.badge.good{background:#e4fff5;color:#009a6a}.badge.bad{background:#ffe9e8;color:#b82422}.badge.neutral{background:#eef6fb;color:#015FC0}.alert{margin:18px 38px 0;padding:13px 16px;border-radius:7px;font-weight:600}.alert.success{background:#e7fff5;color:#009b6c}.alert.error{background:#fff0ee;color:#b71f1b}.alert.info{background:#eef6fb;color:#015FC0}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1f1e2d,#2d2d44)}.login-wrap{width:100%;max-width:440px;margin:30px}.login-wrap .card{padding:32px;border-radius:10px}.login-logo{font-size:30px;font-weight:900;color:#1f1e2d;margin-bottom:8px}.preview{max-width:76px;max-height:56px;border-radius:8px;border:1px solid #eef0fa;object-fit:cover}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 22px}.tabs a{padding:10px 14px;border-radius:5px;background:#fff;color:#015FC0;border:1px solid var(--line);text-decoration:none;font-weight:700}.tabs a.active{background:var(--primary);color:#fff;border-color:var(--primary)}.code{background:#202133;color:#eff1ff;border-radius:5px;padding:14px;overflow:auto;font-family:Consolas,monospace;font-size:13px}.select-store-bar{display:grid;grid-template-columns:minmax(260px,420px) auto;gap:12px;align-items:end}.footer{position:fixed;left:270px;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);height:48px;display:flex;align-items:center;padding:0 28px;color:#7e84a8;font-size:13px}.hint{font-size:13px;color:#8a90b2;margin-top:-8px}.section-title{font-size:18px;font-weight:700;margin:0 0 18px}@media(max-width:1000px){.sidebar{position:relative;width:100%;height:auto}.shell{display:block}.content{margin-left:0;width:100%}.footer{left:0}.filter-grid,.two,.three,.grid.cols-2,.grid.cols-3{grid-template-columns:1fr}.page-body{padding:20px}.alert{margin:16px 20px 0}}

.brand{overflow:hidden;padding:0 20px}
.brand-mark{display:flex;align-items:center;min-width:0}
.sidebar .brand img{height:34px !important;width:auto !important;max-width:140px !important;object-fit:contain !important;display:block}
.schedule-box{border:1px solid #eceff7;border-radius:12px;padding:18px;margin:20px 0;background:#fbfcff}
.schedule-box h3{margin:0 0 14px}
.schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px 18px}
.mini-stat{background:#fbfcff;border:1px solid #edf0fa;border-radius:10px;padding:18px}
.mini-stat b{display:block;font-size:28px;color:#015FC0;line-height:1}
.mini-stat span{display:block;color:#8b91b4;margin-top:6px;font-weight:700}
.alert.error{background:#fff0f0;color:#cf1717}
@media(max-width:1000px){.schedule-grid{grid-template-columns:1fr}}


.inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.diagnostics-actions{margin-top:8px}
@media(max-width:1000px){.grid.cols-4{grid-template-columns:1fr}}
.listbox{min-height:220px;padding:0}
.listbox option{padding:10px 12px;border-bottom:1px solid #f0f2fb}
.note-row{margin:-4px 0 14px;color:#7d84ac;font-size:13px}
.toggle-line{margin:6px 0 16px;font-weight:600;color:#444b70}
.toggle-line input{width:auto;min-height:0;margin-right:8px}
.field input[type="checkbox"]{width:auto;min-height:0}
.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.card-header h2{margin-bottom:6px}
@media(max-width:1000px){.card-header{display:block}}

/* Simplified Category / Item management */
.store-scope-card{background:#fff;border:1px solid #f0f1fa;box-shadow:0 12px 30px rgba(44,49,88,.045);border-radius:8px;padding:18px 22px;margin-bottom:18px}
.store-scope-form{max-width:520px}.store-scope-form .field{margin-bottom:0}.cloud-tools{align-items:center;gap:12px;margin:0 0 16px}.cloud-tools form{margin-right:auto}.simple-table-card{padding:0;margin-bottom:24px}.table-card-title{padding:22px 26px;margin:0;border-bottom:1px solid var(--line);align-items:center}.table-card-title h2{margin:0}.table-search{max-width:280px;margin-left:auto}.inline-warning{margin:18px 26px 0}.empty-state{padding:28px;color:#8a90b2}.link-action{color:#64bd96;text-decoration:none;font-weight:800}.link-action.blue{color:#2368ff}.item-filter-line{padding:16px 26px 0}.item-filter-line form{display:grid;grid-template-columns:minmax(230px,360px) auto;gap:12px;align-items:end}.item-filter-line .field{margin:0}.modal-shell{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}.modal-shell.open{display:flex}.modal-backdrop{position:fixed;inset:0;background:rgba(30,34,46,.55)}.modal-card{position:relative;background:#fff;border-radius:8px;box-shadow:0 20px 60px rgba(20,24,35,.30);width:min(720px,calc(100vw - 36px));max-height:calc(100vh - 48px);overflow:auto}.wide-modal{width:min(820px,calc(100vw - 36px))}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:20px;color:#596177}.modal-x{font-size:30px;text-decoration:none;color:#687082;line-height:1}.modal-form{padding:22px 24px 0}.modal-actions{display:flex;gap:12px;align-items:center;padding:18px 0 22px}.input-button-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}.translation-state{display:block;color:#7d8496;margin-top:6px}.soft-checkbox{display:inline-flex;align-items:center;gap:8px;margin:4px 18px 16px 0;font-weight:600;color:#454b62}.soft-checkbox input{width:auto;min-height:0}.branch-targets{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:12px 0 18px}.branch-targets-title{font-weight:800;color:#67708a;margin-bottom:10px}.target-select-all,.target-branch{display:flex;align-items:center;gap:10px;padding:8px 0;color:#2d3445;font-weight:600}.target-select-all input,.target-branch input{width:auto;min-height:0}.target-branch.is-fixed{color:#6b7282}.side-drawer{position:absolute;top:0;right:0;width:min(390px,92vw);min-height:100%;background:#fff;border-left:1px solid var(--line);box-shadow:-15px 0 45px rgba(20,24,35,.18);padding:26px 24px;transform:translateX(110%);transition:transform .2s ease;z-index:3}.side-drawer.open{transform:translateX(0)}.drawer-x{position:absolute;right:20px;top:16px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#141927}.side-drawer h3{text-align:center;margin:22px 0 24px;color:#07101f;font-size:20px}.switch-line{display:flex;align-items:center;gap:12px;font-weight:800;margin:0 0 24px}.switch-line input{width:auto;min-height:0}.advanced-json{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:14px 0;background:#fbfcff}.advanced-json summary{cursor:pointer;font-weight:800;color:#56607a}.schedule-box{border-radius:10px}.schedule-box .field{margin-bottom:0}
@media(max-width:900px){.input-button-row,.item-filter-line form{grid-template-columns:1fr}.table-card-title{display:block}.table-search{max-width:none;margin:12px 0 0}.side-drawer{position:fixed;min-height:100vh}.cloud-tools{display:block}.cloud-tools form{margin-bottom:10px}}


/* App Content designer UI restored from Version 3 */
.page-selector{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:20px;align-items:end}
.designer-grid{display:grid;grid-template-columns:420px minmax(0,1fr);gap:22px;align-items:start}
.preview-panel{background:linear-gradient(180deg,#2a2e42,#151826);border-radius:18px;padding:18px;min-height:540px;color:#fff;box-shadow:0 20px 35px rgba(24,28,46,.22)}
.preview-kiosk{background:#0d1020;border-radius:16px;min-height:500px;overflow:hidden;border:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column}
.preview-screen{flex:1;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top,#4b526f 0%,#1a1d2f 52%,#10131f 100%)}
.preview-screensaver{width:100%;text-align:center}
.preview-logo{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;background:rgba(255,255,255,.08);border-radius:14px;margin-bottom:18px}
.preview-logo img{height:28px;opacity:.96}
.preview-title{font-size:20px;font-weight:700;margin-bottom:14px}
.preview-button{display:inline-block;padding:15px 30px;border-radius:999px;font-weight:700;min-width:220px;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.25)}
.preview-subtitle{font-size:14px;opacity:.85;margin-top:16px}
.preview-topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;color:#26241f;border-bottom:1px solid #eceff9}
.preview-topbar .menu-label{font-size:22px;font-weight:800}
.preview-menu-grid{padding:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;background:#f7f8fc;flex:1}
.preview-menu-grid .tile{height:100px;background:#fff;border:1px solid #eceff6;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#697094;font-weight:700}
.preview-payments{padding:30px;display:grid;grid-template-columns:1fr 1fr;gap:20px;flex:1;background:#f7f8fc}
.payment-card-preview{background:#fff;border:1px solid #eceff6;border-radius:18px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#26241f;min-height:180px}
.payment-icon{width:72px;height:72px;border-radius:20px;background:#eef6fb;display:flex;align-items:center;justify-content:center;font-size:28px;color:#015FC0}
.form-section-title{font-size:16px;font-weight:700;margin:0 0 14px;color:#2f3555}
.element-editor{border:1px solid #eceff7;border-radius:14px;padding:16px;background:#fff;margin-bottom:14px}
.element-editor h4{margin:0 0 4px;font-size:15px;color:#2f3555}
.element-editor p{margin:0 0 14px;color:#8b91b4;font-size:12px}
.color-field{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:end}
.color-field .color-picker{width:44px;height:44px;border-radius:50%;padding:0;border:0;background:none;cursor:pointer;appearance:none;-webkit-appearance:none}
.color-field .color-picker::-webkit-color-swatch-wrapper{padding:0}
.color-field .color-picker::-webkit-color-swatch{border:none;border-radius:50%;box-shadow:0 0 0 1px #dde2f1,0 6px 14px rgba(62,71,126,.12)}
.color-field .color-picker::-moz-color-swatch{border:none;border-radius:50%}
.small-note{font-size:12px;color:#8d93b6}
.clean-preview-panel{padding:16px}
.clean-preview-kiosk{min-height:360px;background:#fff;border-radius:14px;overflow:hidden}
.compact-designer-grid{grid-template-columns:360px minmax(0,1fr)}
.preview-screen{position:relative}
.dark-preview{background:linear-gradient(180deg,#23263a,#10131f);min-height:340px}
.light-preview{background:#f7f8fc;min-height:340px}
.preview-video-tag{position:absolute;top:18px;left:18px;font-size:12px;font-weight:700;letter-spacing:1px;background:rgba(255,255,255,.12);padding:7px 10px;border-radius:999px;color:#fff}
.preview-bottom-cta{position:absolute;left:18px;right:18px;bottom:22px;display:flex;justify-content:center}
.preview-button{font-size:18px;font-weight:800;min-width:230px}
.preview-title.dark,.preview-subtitle.dark{color:#26241f}
.summary-box{background:#fff;border:1px solid #eceff6;border-radius:18px;padding:22px;min-width:260px;max-width:310px;box-shadow:0 10px 25px rgba(25,34,68,.06)}
.summary-heading{font-size:20px;font-weight:800;color:#26241f;margin-bottom:12px}
.summary-line{height:6px;border-radius:999px;background:#eff2fb;margin-bottom:16px}
.summary-total{font-size:16px;color:#5c648e;margin-bottom:18px}
.summary-actions{display:flex;gap:8px;flex-wrap:wrap}
.small-chip{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:999px;background:#eef1fb;color:#49527d;font-weight:700}
.small-chip.primary{background:#015FC0;color:#fff}
.footer-preview{display:flex;gap:10px;align-items:flex-end;justify-content:center;padding:26px}
.footer-chip{padding:12px 16px;border-radius:999px;background:#eef1fb;font-weight:700;color:#444d79}
.footer-chip.primary{background:#015FC0;color:#fff}
.preview-caption{padding:12px 4px 0;color:#8a90b2;font-size:12px;line-height:1.5}
@media(max-width:1200px){.designer-grid{grid-template-columns:1fr}.page-selector{grid-template-columns:1fr}.compact-designer-grid{grid-template-columns:1fr}}


/* Live image previews */
.image-preview-box{border:1px dashed #dfe3f2;border-radius:10px;background:#fbfcff;padding:12px 14px;margin:-4px 0 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.image-preview-box .small-note{width:100%;font-weight:700;color:#687094}
.current-image-preview{display:flex;align-items:center;gap:10px;min-height:58px}
.upload-preview{display:none;max-width:140px;max-height:100px;border-radius:10px;border:1px solid #dfe3f2;object-fit:cover;margin-top:6px}
.wide-modal-xl{width:min(980px,calc(100vw - 36px))}
.modifier-modal .modal-form{padding-top:18px}.modifier-item-hero{display:flex;gap:18px;align-items:center;padding:6px 0 18px;border-bottom:1px solid var(--line);margin-bottom:18px}.modifier-item-thumb{width:96px;height:96px;border-radius:18px;background:#f3f5fb;border:1px solid #edf0fa;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#a5abc6;font-weight:800}.modifier-item-thumb img{width:100%;height:100%;object-fit:cover}.modifier-item-hero h3{margin:0 0 6px;font-size:28px;color:#31374f}.modifier-tab-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.mod-tab-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 16px;font-weight:800;color:#6f7898;cursor:pointer}.mod-tab-btn.active{background:#eef6fb;color:var(--primary);border-color:#cfe7f4}.modifier-tab-pane{display:none}.modifier-tab-pane.active{display:block}.modifier-group-card{border:1px solid #eef0fa;border-radius:14px;background:#fbfcff;padding:18px;margin:0 0 18px}.modifier-group-card.compact{background:#fff}.modifier-group-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px}.modifier-group-head h4{margin:0 0 4px;font-size:18px;color:#323955}.modifier-option-list{display:grid;gap:10px}.modifier-option-row{display:grid;grid-template-columns:60px 1fr auto;gap:14px;align-items:center;background:#fff;border:1px solid #edf0fa;border-radius:12px;padding:12px 14px}.modifier-index{width:44px;height:44px;border-radius:12px;background:#f5f6fb;display:flex;align-items:center;justify-content:center;font-weight:900;color:#7b829f}.modifier-option-main{display:flex;align-items:center;gap:12px;min-width:0}.modifier-option-main b{display:block;color:#3b425f;font-size:17px}.modifier-option-thumb{width:58px;height:58px;border-radius:12px;object-fit:cover;border:1px solid #edf0fa;background:#fff}.modifier-option-actions{display:flex;align-items:center;gap:14px}.price-tag{display:inline-flex;align-items:center;justify-content:center;min-width:96px;padding:8px 10px;border-radius:999px;background:#f7fbfd;color:#015FC0;font-weight:800}.toggle-switch{position:relative;display:inline-flex;width:50px;height:30px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-switch span{position:absolute;inset:0;background:#d8deec;border-radius:999px;transition:.15s}.toggle-switch span:before{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.12);transition:.15s}.toggle-switch input:checked + span{background:#6fc79a}.toggle-switch input:checked + span:before{transform:translateX(20px)}.modifier-pill-wrap{display:flex;flex-wrap:wrap;gap:10px}.modifier-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#eef6f1;color:#2f6d50;font-weight:800}.modifier-pill small{color:#015FC0;font-weight:800}.reports-tabs{margin-bottom:18px}.mini-report{padding:20px}.mini-report .big{font-size:34px}@media(max-width:900px){.modifier-option-row{grid-template-columns:1fr}.modifier-index{display:none}.modifier-option-actions{justify-content:space-between}}
.mod-tab-btn[disabled]{opacity:.55;cursor:default}.modifier-picker-panel{border:1px solid #eef0fa;border-radius:14px;background:#fbfcff;padding:16px}.modifier-picker-list{max-height:460px;overflow:auto;border:1px solid #eef0fa;border-radius:12px;background:#fff}.modifier-picker-item{display:block;padding:14px 16px;border-bottom:1px solid #f0f2fb;text-decoration:none}.modifier-picker-item:last-child{border-bottom:0}.modifier-picker-item:hover{background:#f7fbfd}.modifier-picker-title{display:block;color:#55607f;font-size:16px}.modifier-picker-sub{display:block;color:#97a0ba;font-size:13px;margin-top:3px}.modifier-picker-modal .modal-card,.modifier-picker-modal.modal-card{max-height:calc(100vh - 48px)}
.btn.success{background:#73c69b;color:#fff;box-shadow:none}.btn.success:hover{background:#64b88d}.btn.wide{width:100%;justify-content:center}.modifier-editor-surface{border:1px solid #eef0fa;border-radius:16px;background:#fbfcff;padding:16px}.compact-hero{padding:4px 0 16px;border-bottom:0;margin:0 0 12px}.modifier-item-hero.centered{flex-direction:column;text-align:center;justify-content:center}.modifier-item-thumb.large{width:170px;height:170px;border-radius:24px}.modifier-item-hero.centered h3{font-size:20px;margin-top:6px}.modifier-group-card.flat{background:transparent;border:0;border-top:1px solid #eef0fa;border-radius:0;padding:16px 0;margin:0}.modifier-group-head.slim{margin-bottom:10px}.modifier-option-list.clean{display:grid;gap:10px}.modifier-option-row.polished{background:#fff;border:1px solid #edf0fa;border-radius:12px;padding:12px 14px;grid-template-columns:64px 1fr auto}.modifier-option-main.centered-name{justify-content:flex-start}.modifier-option-actions.with-grip{gap:12px}.grip-mark{font-size:22px;line-height:1;color:#8e96b1;font-weight:900;display:inline-flex;width:24px;justify-content:center}.modifier-picker-modal .modal-form{padding-top:18px}.modifier-picker-panel .field{margin-bottom:12px}.modifier-picker-list{padding:6px 0}.modifier-picker-item{padding:11px 14px}.modifier-picker-item:hover .modifier-picker-title{color:#015FC0}.modifier-modal .modal-head,.modifier-picker-modal .modal-head{padding:18px 22px}.modifier-modal .modal-card,.modifier-picker-modal .modal-card{border-radius:10px}.modifier-modal .mod-tab-btn.active,.modifier-picker-modal .mod-tab-btn.active{background:#f1f8f3;color:#64bd96;border-color:#e1f1e7}.modifier-modal .mod-tab-btn,.modifier-picker-modal .mod-tab-btn{border-radius:6px;padding:12px 16px}.modifier-modal .field span,.modifier-picker-modal .field span{display:none}.modifier-modal .field input[type='search'],.modifier-picker-modal .field input[type='search']{min-height:42px;border-radius:10px}.modifier-modal .modal-form{padding:18px 20px 20px}.modifier-modal .modal-card{width:min(900px,calc(100vw - 36px))}.modifier-picker-modal .modal-card{width:min(760px,calc(100vw - 36px))}

/* API modifier management polish */
.modifier-api-card .card-header h2{font-size:20px;letter-spacing:.2px;color:#111827;text-transform:uppercase}
.table-filter-row th{padding-top:7px;padding-bottom:7px;color:#a2a8ba;font-weight:500;font-size:12px;background:#fff;border-top:1px solid #eef0f5}
.modifier-edit-link{display:inline-flex;align-items:center;gap:5px;color:#64bd96;font-weight:800;text-decoration:none;background:transparent;border:0;cursor:pointer;padding:0;font:inherit}
.modifier-edit-link:hover{color:#43a77a;text-decoration:none}.link-button{border:0;background:transparent}
.source-toggle-row .modifier-option-main b{font-size:16px;color:#657086}.source-toggle-row .modifier-option-actions{min-width:160px;justify-content:flex-end}.source-toggle-row .price-tag{min-width:84px;color:#657086;background:#f5f7fb}.modifier-api-card table td,.modifier-api-card table th{padding-top:12px;padding-bottom:12px}


/* Modifiers page refinements */
#modifierApiTable thead .table-filter-row{display:none}
.modifier-picker-modal .modal-card,.modifier-modal .modal-card{border-radius:12px}
.modifier-picker-modal .modal-head h2,.modifier-modal .modal-head h2{font-size:18px;font-weight:800;color:#56607a}
.modifier-picker-modal .modal-x,.modifier-modal .modal-x{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #98a1b7;border-radius:2px;font-size:26px;color:#5e667d;background:#fff}
.modifier-tab-buttons{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid #eceff6}
.mod-tab-btn{border:0;background:transparent;border-radius:10px;padding:11px 16px;color:#6d7591;font-weight:800;box-shadow:none}
.mod-tab-btn.active{background:#eef7f1;border:1px solid #dcefe4;color:#69c095}
.mod-tab-btn[disabled]{opacity:1;color:#8f97af;background:transparent;border:1px solid #eceff6}
.modifier-picker-panel{background:#f8f9fd;border:1px solid #eef1f8;border-radius:14px;padding:14px}
.modifier-search-label{font-size:27px;font-weight:800;color:#2f3650;margin:0 0 12px;display:none}
.modifier-picker-search-field{margin:0}
.modifier-picker-search-field input[type='search']{min-height:44px;border-radius:10px}
.modifier-picker-empty{padding:18px 20px;border-radius:10px;background:#eaf2ff;color:#2d58bb;text-align:center;font-size:16px;margin-top:16px}
.modifier-picker-list{display:none;max-height:360px;overflow:auto;border:1px solid #e8ebf5;border-radius:12px;background:#fff;padding:6px 0;margin-top:14px}
.modifier-picker-panel.show-results .modifier-picker-list{display:block}
.modifier-picker-panel.show-results .modifier-picker-empty{display:none}
.modifier-picker-item{display:block;padding:16px 18px;border-bottom:1px solid #f0f2fb;text-decoration:none;background:#fff}
.modifier-picker-item:last-child{border-bottom:0}
.modifier-picker-item:hover{background:#f7fbfd}
.modifier-picker-title{display:block;color:#4e5877;font-size:16px;font-weight:600}
.modifier-picker-sub{display:block;color:#98a0b8;font-size:13px;margin-top:4px}
.picker-list-message{margin:0;padding:16px 18px}
.modifier-modal .mod-tab-btn.active,.modifier-picker-modal .mod-tab-btn.active{background:#eef7f1;color:#69c095;border-color:#dcefe4}
.modifier-modal .mod-tab-btn,.modifier-picker-modal .mod-tab-btn{border-radius:8px;padding:12px 16px}
.modifier-editor-surface{background:#f8f9fd;border-color:#eef1f8}
.modifier-item-hero.centered h3{font-size:18px}
.modifier-group-card.flat{padding-top:18px}
.modifier-option-row.polished{border-radius:14px}
@media(max-width:900px){
  .modifier-picker-modal .modal-card,.modifier-modal .modal-card{width:min(100vw - 20px,900px)}
}


.modifier-table-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.modifier-configure-link{display:inline-flex;align-items:center;color:#015FC0;font-weight:800;text-decoration:none}
.modifier-configure-link:hover{text-decoration:none;color:#4053de}
.modifier-master-modal{width:min(680px,calc(100vw - 36px));border-radius:10px}
.modifier-master-modal .modal-head{padding:24px 20px 18px}
.modifier-master-modal .modal-head h2{font-size:18px;color:#5a627c;font-weight:800}
.modifier-master-modal .modal-form{padding:20px 20px 0}
.modifier-master-form .field{margin:0 0 22px}
.modifier-master-form .field span{display:block;color:#20283a;margin-bottom:10px;font-size:15px;font-weight:700}
.modifier-name-row{grid-template-columns:1fr auto;gap:10px}
.modifier-name-row .btn{min-width:96px}
.modifier-master-form select,.modifier-master-form input[type='text']{min-height:42px;border-color:#cfd5e4;border-radius:10px;background:#fff;color:#4f566f}
.modifier-master-form select{appearance:auto}
.modifier-master-switch{display:flex;align-items:center;gap:12px;color:#2b3345;font-weight:700;margin:4px 0 0}
.modifier-master-switch input[type='checkbox']{appearance:none;-webkit-appearance:none;width:44px;height:24px;border-radius:999px;background:#d7dbe6;position:relative;cursor:pointer;min-height:0}
.modifier-master-switch input[type='checkbox']:before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.14);transition:.16s}
.modifier-master-switch input[type='checkbox']:checked{background:#73c69b}
.modifier-master-switch input[type='checkbox']:checked:before{transform:translateX(20px)}
.modifier-master-actions{border-top:1px solid #e8ebf3;padding-top:18px;margin-top:20px}
.modifier-master-actions .btn.success{background:#73c69b}
.modifier-master-actions .btn.secondary{background:#fff;border:1px solid #dfe4f1;color:#2c3550}
.modifier-picker-combo{position:relative}
.modifier-picker-panel{position:relative}
.modifier-picker-search-field{position:relative}
.modifier-picker-search-field:after{content:'▾';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:14px;color:#8d96ad;pointer-events:none}
.modifier-picker-search-field input[type='search']{padding-right:38px}

/* AVX unified restaurant theme refresh - V9 */
:root{
  --restaurant-green:#73c69b;
  --restaurant-green-dark:#4fae7d;
  --restaurant-ink:#263047;
  --restaurant-soft:#f7f8fc;
  --restaurant-warm:#fff9e8;
  --restaurant-shadow:0 18px 42px rgba(38,48,71,.08);
}
body{background:linear-gradient(180deg,#f7f8fc 0%,#f4f5fb 100%);-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
.sidebar nav{padding:18px 12px;display:flex;flex-direction:column;gap:4px}
.sidebar nav a{height:50px;margin:0;border-left:0;border-radius:15px;padding:0 14px;color:#cdd2f4;gap:13px;letter-spacing:.1px}
.sidebar nav a:hover,.sidebar nav a.active{border-left-color:transparent;background:rgba(255,255,255,.065);box-shadow:inset 0 0 0 1px rgba(255,255,255,.065);color:#fff}
.sidebar nav a.active{background:linear-gradient(135deg,rgba(1,95,192,.12),rgba(115,198,155,.13))}
.sidebar nav a .ico{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(255,255,255,.055);color:#8c96ff;flex:0 0 34px;font-size:0;transition:.15s}
.sidebar nav a .ico svg{width:21px;height:21px;display:block}
.sidebar nav a:hover .ico,.sidebar nav a.active .ico{color:var(--restaurant-green);background:rgba(115,198,155,.13)}
.sidebar nav a .nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar,.page-heading{box-shadow:0 18px 38px rgba(38,48,71,.045)}
.table-card,.card,.store-scope-card{border-radius:16px;border-color:#edf0f7;box-shadow:var(--restaurant-shadow)}
.table-card{overflow:hidden}
.table-card-title{background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);padding:20px 24px}
.table-card-title h2{color:var(--restaurant-ink);letter-spacing:.15px}
.table-search,input[type='search']{border-radius:12px;border-color:#dfe4f1;background:#fff}
.table-search:focus,input[type='search']:focus{border-color:#bfc7ff;box-shadow:0 0 0 4px rgba(0,184,192,.10)}
th{background:#fbfcff;color:#39425f;font-size:13px;text-transform:none;letter-spacing:.2px}
th,td{border-bottom:1px solid #eef1f7}
tbody tr{transition:background .14s ease}
tbody tr:hover{background:#fbfcff}
.tabs{gap:10px;margin:-4px 0 24px}
.tabs a{display:inline-flex;align-items:center;gap:9px;border-radius:999px;padding:10px 16px;border-color:#e6eaf4;background:#fff;color:#65708d;box-shadow:0 10px 24px rgba(38,48,71,.04)}
.tabs a.active{background:linear-gradient(135deg,var(--primary),#6f7fff);border-color:transparent;color:#fff;box-shadow:0 12px 28px rgba(1,95,192,.22)}
.tabs .tab-ico{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;color:currentColor;flex:0 0 22px}
.tabs .tab-ico svg{width:19px;height:19px;display:block}
.btn{border-radius:12px;box-shadow:0 12px 24px rgba(1,95,192,.10);transition:.15s ease}
.btn:hover{transform:translateY(-1px)}
.btn.secondary{background:#f1f4ff;color:#5665da;border:1px solid #e3e7ff}
.btn.success{background:var(--restaurant-green);box-shadow:0 12px 24px rgba(115,198,155,.20)}
.btn.success:hover{background:var(--restaurant-green-dark)}
.table-card td.actions .btn.small,.table-card td .btn.small,.table-card td .link-action,.modifier-edit-link,.modifier-configure-link,.icon-action{background:transparent!important;border:0!important;box-shadow:none!important;min-height:auto;padding:4px 0;border-radius:0;text-decoration:none;display:inline-flex;align-items:center;gap:6px;font-weight:850;line-height:1.2;transition:.14s ease;color:#015FC0}
.table-card td.actions .btn.small:hover,.table-card td .btn.small:hover,.table-card td .link-action:hover,.modifier-edit-link:hover,.modifier-configure-link:hover,.icon-action:hover{background:transparent!important;text-decoration:none;transform:translateY(-1px)}
.table-card td .btn.red.small,.table-card td.actions .btn.red.small{color:var(--danger)!important}
.table-card td .btn.red.small:hover,.table-card td.actions .btn.red.small:hover{color:#b81817!important}
.table-card td .btn.secondary.small{color:#015FC0!important}
.table-card td .btn.small:focus-visible,.modifier-edit-link:focus-visible,.modifier-configure-link:focus-visible{outline:3px solid rgba(1,95,192,.12);outline-offset:3px;border-radius:8px}
.modifier-table-actions{gap:18px;align-items:center;white-space:nowrap}
.icon-action .mini-ico{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:currentColor;font-size:15px;line-height:1;background:transparent;border:0}
.modifier-edit-link{color:var(--restaurant-green)!important}
.modifier-edit-link:hover{color:var(--restaurant-green-dark)!important}
.modifier-configure-link{color:#015FC0!important}
.modifier-configure-link:hover{color:#4053de!important}
.modifier-api-card .card-header h2{font-size:21px;letter-spacing:.6px;color:var(--restaurant-ink)}
.modifier-api-card table td,.modifier-api-card table th{padding-top:15px;padding-bottom:15px}
.modifier-api-card td b{color:#303952}
.modifier-api-card tbody tr:hover{background:#fbfff9}
.modal-card{border-radius:18px!important;box-shadow:0 26px 80px rgba(24,32,52,.28)}
.modal-head{background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);border-bottom:1px solid #edf0f7}
.modal-head h2{color:var(--restaurant-ink)!important;letter-spacing:.1px}
.modal-x,.modifier-picker-modal .modal-x,.modifier-modal .modal-x{border:0!important;border-radius:999px!important;background:transparent!important;color:#7a839b!important;width:38px!important;height:38px!important;box-shadow:none!important}
.modal-x:hover,.modifier-picker-modal .modal-x:hover,.modifier-modal .modal-x:hover{background:#f3f5fb!important;color:#2f3650!important;text-decoration:none}
.modifier-tab-buttons{border-bottom:1px solid #edf0f7;gap:6px;padding-bottom:10px}
.mod-tab-btn,.modifier-modal .mod-tab-btn,.modifier-picker-modal .mod-tab-btn{border:0!important;background:transparent!important;border-radius:0!important;color:#737c96;position:relative;box-shadow:none;padding:10px 12px!important}
.mod-tab-btn:after{content:'';position:absolute;left:12px;right:12px;bottom:-11px;height:3px;border-radius:999px;background:transparent;transition:.15s}
.mod-tab-btn.active,.modifier-modal .mod-tab-btn.active,.modifier-picker-modal .mod-tab-btn.active{color:var(--restaurant-green-dark)!important;background:transparent!important}
.mod-tab-btn.active:after{background:var(--restaurant-green)}
.mod-tab-btn[disabled]{color:#a0a7ba!important;opacity:.75!important;border:0!important;background:transparent!important}
.modifier-picker-panel,.modifier-editor-surface{background:linear-gradient(180deg,#fbfcff 0%,#f8fafc 100%);border:1px solid #edf1f7;border-radius:18px}
.modifier-picker-search-field input[type='search'],.modifier-modal .field input[type='search'],.modifier-picker-modal .field input[type='search']{border-radius:14px;min-height:46px}
.modifier-picker-empty{background:#f0f6ff;color:#365fc4;border:1px solid #dfeaff;border-radius:14px}
.modifier-picker-list{border-radius:16px;border-color:#e6ebf4;box-shadow:0 16px 36px rgba(38,48,71,.08)}
.modifier-picker-item{padding:14px 18px}
.modifier-picker-item:hover{background:#f8fff9}
.modifier-picker-item:hover .modifier-picker-title{color:var(--restaurant-green-dark)}
.modifier-item-thumb,.modifier-item-thumb.large{background:#fff;border:1px solid #e9edf5;box-shadow:0 12px 28px rgba(38,48,71,.07)}
.modifier-group-card.flat{border-top-color:#e8edf5}
.modifier-group-head h4{color:var(--restaurant-ink)}
.modifier-option-row.polished,.modifier-option-row{border-color:#e8edf5;box-shadow:0 10px 24px rgba(38,48,71,.04);transition:.14s ease}
.modifier-option-row.polished:hover,.modifier-option-row:hover{border-color:#dceee5;transform:translateY(-1px)}
.modifier-index{background:#f3f6fb;color:#74809a;border-radius:14px}
.price-tag{background:#f7fbfd;color:#015FC0;border:1px solid #e3f0f7}
.toggle-switch input:checked + span{background:var(--restaurant-green)}
.modifier-master-form select,.modifier-master-form input[type='text'],input,select,textarea{border-radius:12px}
.modifier-master-actions .btn.secondary{background:transparent;border:0;color:#5d6680;box-shadow:none}
.modifier-master-actions .btn.secondary:hover{background:#f3f5fb;transform:translateY(-1px)}
.badge.good{background:#e9fff4;color:#16815c}.badge.neutral{background:#eef6fb;color:#015FC0}.badge.bad{background:#ffeceb;color:#be2422}
@media(max-width:900px){.modifier-table-actions{gap:12px}.tabs a{padding:9px 12px}.sidebar nav a{height:48px}}



/* ===== Theme fix pack V8 ===== */
.table-inline-actions{display:inline-flex;align-items:center;gap:14px;flex-wrap:nowrap;white-space:nowrap}
.table-card td.actions{white-space:nowrap}
.table-card td.actions form{display:inline-flex;align-items:center;margin:0}
.table-card td.actions .btn.small,
.table-card td .link-action,
.modifier-edit-link,
.modifier-configure-link,
.icon-action{display:inline-flex;align-items:center;gap:6px}
.table-card td.actions .mini-ico,
.table-card td .link-action .mini-ico,
.icon-action .mini-ico{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;flex:0 0 16px}
.table-card td.actions .edit-action,
.table-card td.actions .btn.small.edit-action,
.table-card td .link-action.edit-action{color:var(--success)!important}
.table-card td.actions .edit-action:hover,
.table-card td .link-action.edit-action:hover{color:#009a6c!important}
.table-card td.actions .delete-action,
.table-card td.actions .btn.red.small.delete-action,
.table-card td .delete-action{color:var(--danger)!important}
.table-card td.actions .delete-action:hover,
.table-card td .delete-action:hover{color:#b81817!important}
.table-card td.actions .secondary,
.table-card td .link-action.blue,
.table-card td .item-action,
.table-card td .inspect-action,
.table-card td .open-action,
.table-card td .stores-action,
.table-card td .schedule-action{color:#015FC0!important}
.table-card td.actions .secondary:hover,
.table-card td .link-action.blue:hover,
.table-card td .item-action:hover,
.table-card td .inspect-action:hover,
.table-card td .open-action:hover,
.table-card td .stores-action:hover,
.table-card td .schedule-action:hover{color:#152586!important}

/* keep App Content icon as pencil and remove slider arrows */
.tabs,
.modifier-tab-buttons{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}
.tabs::-webkit-scrollbar,
.modifier-tab-buttons::-webkit-scrollbar{height:0;width:0;background:transparent}
.tabs::-webkit-scrollbar-button,
.modifier-tab-buttons::-webkit-scrollbar-button{display:none;width:0;height:0}

/* Kiosk/action cell alignment */
#kiosksTable td.actions,
#itemsTable td.actions{min-width:145px}
#kiosksTable td.actions .table-inline-actions,
#itemsTable td.actions .table-inline-actions{justify-content:flex-start}

/* Modifier page color normalization */
.modifier-api-card .card-header h2,
.modifier-item-hero h3,
.modifier-group-head h4{color:#2f3555}
.modifier-api-card .btn.success,
.modifier-modal .btn.success,
.modifier-picker-modal .btn.success,
.modifier-master-actions .btn.success{background:var(--primary)!important;color:#fff!important;box-shadow:0 8px 18px rgba(1,95,192,.12)!important}
.modifier-api-card .btn.success:hover,
.modifier-modal .btn.success:hover,
.modifier-picker-modal .btn.success:hover,
.modifier-master-actions .btn.success:hover{background:var(--primary-dark)!important}
.modifier-modal .mod-tab-btn.active,
.modifier-picker-modal .mod-tab-btn.active,
.mod-tab-btn.active{background:#eef6fb!important;color:var(--primary)!important;border-color:#cfe7f4!important}
.mod-tab-btn.active:after{background:var(--primary)!important}
.toggle-switch input:checked + span,
.modifier-master-switch input[type='checkbox']:checked{background:var(--primary)!important}
.modifier-pill{background:#eef6fb;color:#152586}
.modifier-pill small{color:#152586}
.modifier-picker-item:hover .modifier-picker-title{color:var(--primary)}
.modifier-modal .modal-x,.modifier-picker-modal .modal-x{border-radius:10px}
.modifier-edit-link{color:var(--success)!important}
.modifier-edit-link:hover{color:#009a6c!important}
.modifier-configure-link,.item-action{color:#015FC0!important}
.modifier-configure-link:hover,.item-action:hover{color:#152586!important}



/* ===== Theme fix pack V9 ===== */
.collapse-mark{display:none!important}
.brand{justify-content:flex-start}
.table-card table thead th:last-child{text-align:center}
.table-card table td.actions{justify-content:center}
#modifierApiTable td:last-child,#modifierApiTable th:last-child{text-align:center}
#modifierApiTable .modifier-table-actions{justify-content:center}
.item-api-picker-panel{padding:12px 14px}
.item-api-picker-panel .field{margin:0}
.item-api-picker-panel .modifier-picker-search-field input[type='search']{min-height:44px;border-radius:14px}
.item-api-picker-panel .modifier-picker-list{display:none;max-height:260px;overflow:auto;margin-top:12px;border:1px solid #e6ebf4;border-radius:16px;background:#fff;box-shadow:0 16px 36px rgba(38,48,71,.08)}
.item-api-picker-panel.show-results .modifier-picker-list{display:block}
.item-api-picker-panel.show-results .modifier-picker-empty{display:none}
.item-api-picker-panel .modifier-picker-empty{margin-top:0}
.item-picker-item{cursor:pointer}
.item-picker-item .modifier-picker-title{font-weight:700}
.item-picker-item:hover{background:#f8fff9}
.item-picker-item:hover .modifier-picker-title{color:var(--primary)}

/* ===== Theme fix pack V10 ===== */
/* Center all table column headers across every page */
table thead th,
.table-card table thead th,
.simple-table-card table thead th{
  text-align:center!important;
  vertical-align:middle!important;
}
.table-card table td.actions,
.simple-table-card table td.actions{
  justify-content:center!important;
  text-align:center!important;
}

/* Modern unified file upload button for all pages */
input[type="file"]{
  min-height:46px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d9deef!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#2f3555!important;
  font-weight:700!important;
  line-height:46px!important;
  box-shadow:0 8px 18px rgba(38,48,71,.035)!important;
  cursor:pointer!important;
}
input[type="file"]::file-selector-button{
  height:46px!important;
  margin:0 14px 0 0!important;
  padding:0 18px!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.22)!important;
  border-radius:12px 0 0 12px!important;
  background:linear-gradient(135deg,var(--primary),#6f7fff)!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:900!important;
  cursor:pointer!important;
  transition:.15s ease!important;
}
input[type="file"]::-webkit-file-upload-button{
  height:46px!important;
  margin:0 14px 0 0!important;
  padding:0 18px!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.22)!important;
  border-radius:12px 0 0 12px!important;
  background:linear-gradient(135deg,var(--primary),#6f7fff)!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:900!important;
  cursor:pointer!important;
  transition:.15s ease!important;
}
input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button{
  background:linear-gradient(135deg,var(--primary-dark),var(--primary))!important;
}
input[type="file"]:focus{
  border-color:#bfc7ff!important;
  box-shadow:0 0 0 4px rgba(0,184,192,.12)!important;
}

/* ===== Theme fix pack V11 ===== */
/* Center all table content, not only the headers */
table th,
table td,
.table-card table th,
.table-card table td,
.simple-table-card table th,
.simple-table-card table td{
  text-align:center!important;
  vertical-align:middle!important;
}
.table-card td.actions,
.simple-table-card td.actions,
td.actions{
  display:table-cell!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
td.actions .table-inline-actions,
.table-card td.actions .table-inline-actions,
.simple-table-card td.actions .table-inline-actions,
.modifier-table-actions{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
  margin:0 auto!important;
  width:auto!important;
}
td.actions form,
.table-card td.actions form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
}
td b,
td .muted,
td code{
  text-align:center!important;
}
td .preview,
.table-card td img.preview{
  display:block!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.table-card td .badge,
td .badge{
  margin-left:auto!important;
  margin-right:auto!important;
}


/* ===== Modifier item activation + ordering V12 ===== */
.modifier-sort-group{padding-top:18px!important;padding-bottom:18px!important}
.sortable-modifier-list{gap:10px!important}
.option-toggle-row{
  grid-template-columns:64px minmax(0,1fr) auto!important;
  background:#f7f7f8!important;
  border:1px solid #f0f1f6!important;
  border-radius:10px!important;
  box-shadow:none!important;
  transition:background .15s ease, box-shadow .15s ease, transform .15s ease, opacity .15s ease!important;
}
.option-toggle-row:hover{background:#fff!important;box-shadow:0 8px 20px rgba(38,48,71,.045)!important}
.option-toggle-row.dragging{opacity:.58!important;transform:scale(.995)!important}
.option-toggle-row .modifier-index{
  width:34px!important;height:34px!important;border-radius:9px!important;background:#fff!important;color:#5f687f!important;font-size:14px!important;
}
.option-toggle-row .modifier-option-main{justify-content:center!important;text-align:center!important}
.option-toggle-row .modifier-option-main b{color:#5f687f!important;font-size:15px!important;font-weight:900!important;text-align:center!important}
.option-toggle-row .modifier-option-main .muted{text-align:center!important;font-size:12px!important;margin-top:4px!important}
.option-toggle-row .modifier-option-actions{min-width:220px!important;justify-content:flex-end!important}
.option-toggle-row .price-tag{background:#fff!important;color:#5f687f!important;min-width:100px!important}
.option-toggle-row .grip-mark{cursor:grab!important;color:#6f768d!important;font-size:20px!important;user-select:none!important}
.option-toggle-row .grip-mark:active{cursor:grabbing!important}


/* ===== Modifier option-level activation + ordering V13 ===== */
.modifier-source-list{display:grid;gap:10px!important}
.modifier-source-details{display:block;border:0;margin:0!important}
.modifier-source-details > summary{list-style:none;cursor:pointer;user-select:none}
.modifier-source-details > summary::-webkit-details-marker{display:none}
.source-accordion-row{grid-template-columns:64px minmax(0,1fr) auto!important;background:#fff!important;border-color:#edf0fa!important}
.source-title-cell{justify-content:flex-start!important;text-align:left!important}
.accordion-arrow{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:#eef6fb;color:var(--primary);font-size:24px;font-weight:900;line-height:1;transition:transform .15s ease}
.modifier-source-details[open] .accordion-arrow{transform:rotate(90deg)}
.source-summary-actions{min-width:250px!important;justify-content:flex-end!important}
.modifier-child-list-wrap{padding:10px 0 4px 78px!important}
.modifier-child-list{display:grid;gap:8px!important}
.modifier-child-row{grid-template-columns:58px minmax(0,1fr) auto!important;background:#f9faff!important;border-color:#eef0fa!important}
.modifier-child-row .modifier-option-main b{color:#3b425f!important}
.modifier-child-row .modifier-option-actions{min-width:260px!important;justify-content:flex-end!important}
.modifier-child-row.dragging{opacity:.58!important;transform:scale(.995)!important}
.modifier-child-row .grip-mark{cursor:grab!important;color:#6f768d!important;font-size:20px!important;user-select:none!important}
.modifier-child-row .grip-mark:active{cursor:grabbing!important}
.modifier-modal .btn.success.wide{margin:0 0 8px!important;background:var(--primary)!important}
.modifier-modal .btn.success.wide:hover{background:var(--primary-dark)!important}
@media(max-width:900px){.source-accordion-row,.modifier-child-row{grid-template-columns:1fr!important}.modifier-child-list-wrap{padding-left:0!important}.source-summary-actions,.modifier-child-row .modifier-option-actions{min-width:0!important;justify-content:space-between!important}}

/* ===== Secure login polish V12 ===== */
.login-page{background:linear-gradient(135deg,#171923,#2b2d42)!important}
.secure-login-wrap{max-width:430px!important}
.secure-login-card{padding:34px!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 22px 60px rgba(0,0,0,.22)!important}
.secure-login-card .login-logo{font-size:24px!important;color:var(--primary)!important;margin-bottom:8px!important;text-align:center!important}
.secure-login-card h2{text-align:center!important;color:#24283f!important;margin-bottom:22px!important}
.secure-login-card .field span{font-weight:800!important;color:#5f687f!important}
.secure-login-card input{border-radius:10px!important;min-height:48px!important;background:#fbfcff!important}
.secure-login-card .login-btn{width:100%!important;min-height:48px!important;border-radius:10px!important;margin-top:4px!important}
.menu-template-intro{border-left:5px solid var(--yellow);}.menu-template-form textarea{min-height:90px}.menu-template-actions{min-width:260px;gap:10px;align-items:flex-start}.menu-template-actions details{display:block;margin-bottom:10px}.apply-menu-details summary{list-style:none;cursor:pointer;display:inline-flex}.apply-menu-details summary::-webkit-details-marker{display:none}.menu-template-apply-form{margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fbfcff;min-width:340px}.menu-template-targets{max-height:280px;overflow:auto;margin:0 0 12px;padding:12px 0}.menu-template-targets .target-branch,.menu-template-targets .target-select-all{padding:7px 0}.menu-template-actions form{margin:0}.menu-template-actions .btn.small{white-space:nowrap}

/* ===== Compo items inside Items tab ===== */
.item-subtabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
.item-subtabs a{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#66708c;text-decoration:none;font-weight:900;box-shadow:0 8px 18px rgba(35,38,70,.04)}
.item-subtabs a:before{content:"›";display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:#eef6fb;color:var(--primary);font-size:22px;font-weight:900;line-height:1;transition:transform .15s ease}
.item-subtabs a.active{background:linear-gradient(135deg,var(--primary),#6f7fff);border-color:transparent;color:#fff;box-shadow:0 12px 28px rgba(1,95,192,.20)}
.item-subtabs a.active:before{background:rgba(255,255,255,.18);color:#fff;transform:rotate(90deg)}
.combo-builder{padding:0 0 4px}.combo-builder textarea{min-height:100px;font-family:inherit}.combo-search-field span{display:none}.combo-search-field input{border-radius:10px;min-height:48px;background:#fbfcff;padding-left:44px;background-image:linear-gradient(transparent,transparent);position:relative}.combo-builder .input-button-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.combo-builder .input-button-row .btn{min-width:98px;border-radius:8px}.combo-builder .btn.success.wide{width:100%;min-height:44px;margin:-4px 0 14px;background:var(--restaurant-green, #73c69b);box-shadow:none}.combo-main-switch{margin:4px 0 18px;color:#1f2937;font-weight:800}.combo-image-row{gap:32px}.combo-image-row .field input[type=file]{padding:0;min-height:42px;border-radius:8px;background:#f8fafc}.combo-preview-label{color:#6f778b;font-weight:700;margin:10px 0 8px}.current-image-preview{min-height:44px;display:flex;align-items:center;justify-content:flex-start;color:#7b849d}.combo-level-title{font-size:16px;font-weight:800;color:#6f778b;margin:10px 0 14px}.combo-level-card{border-top:1px solid #e8ebf4;padding:18px 0;margin:0}.combo-level-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.combo-level-head .switch-line{margin:0;color:#334155}.combo-level-arrow{border:0;background:transparent;color:#1f2937;width:34px;height:34px;border-radius:10px;font-size:24px;font-weight:900;line-height:1;cursor:pointer;transition:transform .15s ease,background .15s ease}.combo-level-arrow:hover{background:#f3f6fb}.combo-level-card:not(.open) .combo-level-body{display:none}.combo-level-card.open .combo-level-arrow{transform:rotate(180deg)}.combo-level-body{padding:20px 0 0 50px}.combo-level-body .two{gap:18px}.combo-level-body .soft-checkbox{display:flex;margin:0 0 18px;color:#334155}.combo-level-switch .toggle-switch input:checked + span,.combo-main-switch .toggle-switch input:checked + span{background:var(--restaurant-green,#73c69b)!important}.combo-builder .upload-preview[src=""]{display:none}.combo-builder .preview.upload-preview{margin-top:8px;max-width:110px;max-height:82px}.table-card .badge.combo-badge{background:#f1f8f3;color:#2f7a56}
@media(max-width:900px){.combo-builder .input-button-row,.combo-image-row,.combo-level-body .two{grid-template-columns:1fr}.combo-level-body{padding-left:0}.item-subtabs a{width:100%;justify-content:center}}

/* Compo Item V11 polish: no animation controls, no green UI, restaurant theme colors */
.combo-meal-builder{display:grid;gap:18px;padding:0 0 8px}
.combo-info-note{border:1px solid rgba(211,41,39,.18);border-left:5px solid var(--danger);border-radius:12px;background:#fff9f2;color:#4a4a4a;padding:14px 16px;font-size:14px;line-height:1.45}
.combo-info-note strong{color:var(--danger)}
.combo-section-card{border:1px solid #eceff7;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(38,48,71,.045);padding:18px 18px 4px;margin:0 0 4px}
#comboManualGroupsBuilder[hidden],#comboGroupNotice[hidden]{display:none!important}
.combo-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px;border-bottom:1px solid #f0f1f6;padding-bottom:14px}
.combo-section-head h3{margin:0;color:#26241f;font-size:18px;font-weight:900}
.combo-section-head p{margin:6px 0 0;color:#737b8e;font-size:13px;font-weight:600}
.combo-main-grid{align-items:start}
.combo-builder .combo-theme-btn{background:var(--danger)!important;color:#fff!important;box-shadow:0 10px 22px rgba(211,41,39,.16)!important;border-radius:8px!important}
.combo-builder .combo-theme-btn:hover{background:#b81817!important}
.combo-builder .combo-theme-btn.wide{width:100%;min-height:44px;margin:-4px 0 14px}
.combo-submit-btn{background:var(--yellow)!important;color:#26241f!important;box-shadow:0 10px 22px rgba(253,198,54,.24)!important}
.combo-submit-btn:hover{background:#eeb500!important;color:#26241f!important}
.combo-builder .input-button-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
.combo-builder .input-button-row .btn{min-width:104px}
.combo-builder textarea{min-height:96px;font-family:inherit}
.combo-image-row{gap:24px}
.combo-image-row .field input[type=file]{padding:0;min-height:42px;border-radius:8px;background:#f8fafc}
.combo-preview-label{color:#6f778b;font-weight:800;margin:10px 0 8px}
.current-image-preview{min-height:44px;display:flex;align-items:center;justify-content:flex-start;color:#7b849d}
.combo-sizes-card{padding-bottom:6px}
.combo-level-card{border:1px solid #edf0fa;border-radius:14px;background:#fbfcff;padding:0;margin:0 0 12px;overflow:hidden}
.combo-level-card.open{background:#fff;border-color:rgba(211,41,39,.22);box-shadow:0 12px 28px rgba(38,48,71,.045)}
.combo-level-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px}
.combo-level-head .switch-line{margin:0;color:#334155;display:flex;align-items:center;gap:12px}
.combo-level-label{display:flex;flex-direction:column;gap:2px;line-height:1.1}
.combo-level-label strong{color:#26241f;font-size:15px}
.combo-level-label small{color:#7b849d;font-size:12px;font-weight:700}
.combo-level-arrow{border:0;background:#fff3cb;color:#26241f;width:34px;height:34px;border-radius:10px;font-size:22px;font-weight:900;line-height:1;cursor:pointer;transition:transform .15s ease,background .15s ease}
.combo-level-arrow:hover{background:var(--yellow)}
.combo-level-card:not(.open) .combo-level-body{display:none}
.combo-level-card.open .combo-level-arrow{transform:rotate(180deg)}
.combo-level-body{padding:4px 16px 16px;border-top:1px solid #f0f1f6}
.combo-level-body .two{gap:18px;align-items:start}
.combo-wizard-checkbox{display:flex;margin:28px 0 16px;color:#334155;min-height:43px;align-items:center}
.combo-level-switch .toggle-switch input:checked + span{background:var(--danger)!important}
.combo-builder .toggle-switch input:checked + span{background:var(--danger)!important}
.combo-builder .upload-preview[src=""]{display:none}
.combo-builder .preview.upload-preview{margin-top:8px;max-width:110px;max-height:82px}
.table-card .badge.combo-badge{background:#fff3cb;color:#7a4b00;border:1px solid #ffe08b}
@media(max-width:900px){.combo-main-grid,.combo-builder .input-button-row,.combo-image-row,.combo-level-body .two{grid-template-columns:1fr}.combo-level-body{padding-left:16px}.combo-wizard-checkbox{margin-top:0}.item-subtabs a{width:100%;justify-content:center}}


/* ===== Compo Item V12 polish =====
   - Use the same primary blue as the styled Choose File button.
   - Remove old red/yellow/green visual treatment from Compo UI.
   - Image 2 is now shown as Header Image in the form. */
.combo-info-note{
  border-color:rgba(1,95,192,.20)!important;
  border-left-color:var(--primary)!important;
  background:#f8f9ff!important;
}
.combo-info-note strong{color:var(--primary)!important}
.combo-builder .combo-theme-btn,
.combo-builder .combo-theme-btn.wide,
.combo-size-drawer .combo-theme-btn,
.combo-submit-btn{
  background:linear-gradient(135deg,var(--primary),#6f7fff)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(1,95,192,.12)!important;
  border-radius:8px!important;
}
.combo-builder .combo-theme-btn:hover,
.combo-builder .combo-theme-btn.wide:hover,
.combo-size-drawer .combo-theme-btn:hover,
.combo-submit-btn:hover{
  background:linear-gradient(135deg,var(--primary-dark),var(--primary))!important;
  color:#fff!important;
}
.combo-level-card.open{
  border-color:rgba(1,95,192,.22)!important;
  box-shadow:0 12px 28px rgba(1,95,192,.08)!important;
}
.combo-level-arrow{background:#eef6fb!important;color:var(--primary)!important}
.combo-level-arrow:hover{background:#dfe4ff!important;color:var(--primary-dark)!important}
.combo-level-switch .toggle-switch input:checked + span,
.combo-builder .toggle-switch input:checked + span,
.combo-main-switch .toggle-switch input:checked + span{
  background:var(--primary)!important;
}
.table-card .badge.combo-badge{
  background:#eef6fb!important;
  color:var(--primary)!important;
  border:1px solid #cfe7f4!important;
}
.combo-wizard-checkbox{margin:4px 0 18px!important}
.combo-size-drawer .small-note{margin:0 0 18px;color:#737b8e;font-weight:600}
.combo-size-drawer .modal-actions{padding-top:10px}
.combo-builder .input-button-row .combo-theme-btn{min-width:104px}

/* ===== Compo Item V13 polish =====
   - Searchable API dropdown for the Compo meal name.
   - Size item name is generated as: Meal Name + Size Name.
   - Translation panels open centered on the screen so no scrolling to top is needed. */
.combo-api-field{margin-bottom:16px!important}
.combo-api-picker-panel{max-width:none!important}
.generated-size-field input[readonly]{
  background:#f8f9ff!important;
  border-color:#cfe7f4!important;
  color:#2f3555!important;
  font-weight:900!important;
}
.combo-level-body .generated-size-field{margin-top:-4px;margin-bottom:14px}
.modal-card .side-drawer{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  width:min(460px,calc(100vw - 36px))!important;
  min-height:auto!important;
  max-height:calc(100vh - 60px)!important;
  overflow:auto!important;
  border:1px solid #e2e7f4!important;
  border-radius:18px!important;
  box-shadow:0 28px 80px rgba(20,24,35,.28)!important;
  padding:28px 24px 20px!important;
  transform:translate(-50%,-46%) scale(.96)!important;
  opacity:0!important;
  pointer-events:none!important;
  z-index:500!important;
  transition:transform .18s ease,opacity .18s ease!important;
}
.modal-card .side-drawer.open{
  transform:translate(-50%,-50%) scale(1)!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.modal-card .side-drawer h3{margin-top:12px!important;color:#26241f!important}
.combo-size-drawer .modal-actions,.modal-card #itemTranslationDrawer .modal-actions{padding-bottom:0!important}
@media(max-width:900px){
  .modal-card .side-drawer{width:calc(100vw - 28px)!important;max-height:calc(100vh - 40px)!important}
}

/* ==========================================================
   AVX Advanced Modern Responsive Shell - V18
   Central UI refresh + animated navigation/tabs collapse.
   ========================================================== */
:root{
  --avx-bg:#f4f6fb;
  --avx-bg-2:#eef2f8;
  --avx-panel:rgba(255,255,255,.88);
  --avx-panel-solid:#ffffff;
  --avx-ink:#222838;
  --avx-ink-soft:#657087;
  --avx-border:rgba(148,163,184,.22);
  --avx-shadow:0 20px 55px rgba(15,23,42,.08);
  --avx-shadow-soft:0 12px 30px rgba(15,23,42,.055);
  --avx-radius:22px;
  --avx-sidebar-w:286px;
  --avx-sidebar-mini:0px;
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 12% -8%, rgba(1,95,192,.12), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(115,198,155,.16), transparent 28%),
    linear-gradient(180deg,var(--avx-bg) 0%,var(--avx-bg-2) 100%)!important;
  color:var(--avx-ink)!important;
}
.shell{position:relative;min-height:100vh;background:transparent!important;isolation:isolate}
.sidebar{
  width:var(--avx-sidebar-w)!important;
  background:linear-gradient(180deg,#171827 0%,#1f1e2d 48%,#181827 100%)!important;
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:20px 0 60px rgba(15,23,42,.18)!important;
  transition:transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease!important;
  will-change:transform;
  overflow:hidden;
}
.sidebar:before{
  content:"";
  position:absolute;
  inset:-90px -80px auto auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(1,95,192,.18), transparent 70%);
  pointer-events:none;
}
.sidebar:after{
  content:"";
  position:absolute;
  inset:auto auto -120px -90px;
  width:240px;
  height:240px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(115,198,155,.16), transparent 70%);
  pointer-events:none;
}
.sidebar > *{position:relative;z-index:1}
.brand{height:78px!important;padding:0 22px!important;border-bottom:1px solid rgba(255,255,255,.075)!important}
.sidebar .brand img{height:40px!important;max-width:160px!important;filter:drop-shadow(0 10px 20px rgba(0,0,0,.22))}
.sidebar nav{padding:18px 14px 10px!important;gap:7px!important;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
.sidebar nav a{
  height:52px!important;
  border-radius:18px!important;
  padding:0 14px!important;
  color:#d7dbf6!important;
  position:relative;
  overflow:hidden;
}
.sidebar nav a:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.02));
  opacity:0;
  transition:opacity .18s ease;
}
.sidebar nav a:hover:before,.sidebar nav a.active:before{opacity:1}
.sidebar nav a.active{
  background:linear-gradient(135deg,rgba(1,95,192,.22),rgba(115,198,155,.17))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 14px 32px rgba(5,10,25,.18)!important;
}
.sidebar nav a .ico{
  background:rgba(255,255,255,.08)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.sidebar nav a.active .ico,.sidebar nav a:hover .ico{
  background:rgba(255,255,255,.14)!important;
  color:#fdc636!important;
}
.userbox{
  margin:10px 14px 16px;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  color:#ffffff!important;
}
.userbox small{color:#aeb6d8!important}
.content{
  margin-left:var(--avx-sidebar-w)!important;
  width:calc(100% - var(--avx-sidebar-w))!important;
  transition:margin-left .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1)!important;
  padding-bottom:72px!important;
}
.shell.sidebar-collapsed .sidebar{transform:translateX(calc(-1 * var(--avx-sidebar-w) - 8px))!important;box-shadow:none!important}
.shell.sidebar-collapsed .content{margin-left:0!important;width:100%!important}
.shell.sidebar-collapsed .footer{left:0!important}
.sidebar-toggle{
  position:fixed;
  top:92px;
  left:calc(var(--avx-sidebar-w) - 18px);
  z-index:45;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#ffffff,#f7fbfd);
  color:var(--primary);
  box-shadow:0 14px 36px rgba(15,23,42,.18);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:left .38s cubic-bezier(.2,.8,.2,1), transform .18s ease, background .18s ease;
}
.sidebar-toggle:hover{transform:translateY(-1px) scale(1.03);background:#fff}
.sidebar-toggle .toggle-arrow:before{content:"‹";font-size:32px;line-height:1;font-weight:900;display:block;margin-top:-3px}
.shell.sidebar-collapsed .sidebar-toggle{left:14px}
.shell.sidebar-collapsed .sidebar-toggle .toggle-arrow:before{content:"›"}
.mobile-sidebar-btn{display:none;border:0;background:#eef6fb;color:var(--primary);width:42px;height:42px;border-radius:14px;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;box-shadow:none;flex:0 0 auto}
.mobile-sidebar-btn span{width:18px;height:2px;border-radius:99px;background:currentColor;display:block}
.topbar{
  height:78px!important;
  background:rgba(255,255,255,.76)!important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(148,163,184,.18)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.05)!important;
}
.bell{
  display:inline-flex;
  width:40px;
  height:40px;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  background:#fff7d7;
  color:#e4a600!important;
  font-size:16px!important;
  box-shadow:inset 0 0 0 1px rgba(253,198,54,.28);
}
.hello{font-weight:900!important;color:#364057!important;letter-spacing:.1px}
.online-dot{border-radius:14px!important;background:#e9fff6!important;box-shadow:inset 0 0 0 1px rgba(32,201,151,.15)}
.page-heading{
  height:auto!important;
  min-height:82px;
  background:rgba(255,255,255,.74)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(148,163,184,.16)!important;
  padding:18px clamp(18px,3vw,38px)!important;
  box-shadow:none!important;
  flex-wrap:wrap;
  gap:10px 0;
}
.page-heading h1{font-size:clamp(22px,2vw,32px)!important;font-weight:950!important;letter-spacing:-.03em;color:var(--avx-ink)!important}
.page-heading .total{background:#eef6fb;color:var(--primary)!important;border:1px solid rgba(1,95,192,.10);border-radius:999px;padding:7px 12px;font-weight:900!important}
.page-body{padding:clamp(18px,3vw,38px)!important;max-width:1760px;margin:0 auto;width:100%}
.card,.table-card,.store-scope-card,.mini-stat,.schedule-box{
  background:var(--avx-panel)!important;
  border:1px solid var(--avx-border)!important;
  border-radius:var(--avx-radius)!important;
  box-shadow:var(--avx-shadow-soft)!important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.card:hover,.table-card:hover,.store-scope-card:hover{box-shadow:var(--avx-shadow)!important}
.table-card{overflow:auto!important;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.table-card table{min-width:760px}
th{background:rgba(248,250,252,.86)!important;color:#273247!important;font-weight:950!important;text-align:center!important;position:relative}
td{color:#536077!important;text-align:center!important}
tbody tr:hover{background:rgba(1,95,192,.035)!important}
input,select,textarea{
  border-radius:14px!important;
  border-color:#dfe5f0!important;
  background:rgba(255,255,255,.92)!important;
  min-height:46px!important;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(0,184,192,.70)!important;
  box-shadow:0 0 0 5px rgba(0,184,192,.12)!important;
}
.field span{font-weight:850!important;color:#4c5670!important}
.btn{
  border-radius:14px!important;
  min-height:44px!important;
  font-weight:950!important;
  letter-spacing:.01em;
  background:linear-gradient(135deg,var(--primary),#7685ff)!important;
  box-shadow:0 14px 28px rgba(1,95,192,.12)!important;
}
.btn:hover{transform:translateY(-2px)!important;filter:saturate(1.03)}
.btn.secondary{background:#f5fafc!important;color:#015FC0!important;border:1px solid #e1e7ff!important;box-shadow:none!important}
.btn.red{background:linear-gradient(135deg,#d32927,#b91c1c)!important;color:#fff!important;box-shadow:0 12px 24px rgba(211,41,39,.18)!important}
.btn.success{background:linear-gradient(135deg,#35c88a,#73c69b)!important;color:#fff!important;box-shadow:0 12px 24px rgba(53,200,138,.18)!important}
.badge{border-radius:999px!important;padding:6px 11px!important}
.alert{border-radius:16px!important;border:1px solid rgba(148,163,184,.18);box-shadow:0 12px 24px rgba(15,23,42,.055)}
.footer{
  left:var(--avx-sidebar-w)!important;
  height:54px!important;
  background:rgba(255,255,255,.76)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-top:1px solid rgba(148,163,184,.17)!important;
  transition:left .38s cubic-bezier(.2,.8,.2,1)!important;
}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.grid.cols-2,.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.modal-shell{padding:clamp(12px,2.5vw,28px)!important}
.modal-card{width:min(980px,calc(100vw - 28px))!important;max-height:calc(100vh - 32px);overflow:auto}

/* Animated horizontal page tabs rail */
.tab-rail-shell{
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:100%;
  margin:0 0 22px;
  overflow:hidden;
}
.tab-rail-shell > .tabs,.tab-rail-shell > .item-subtabs{
  flex:1 1 auto;
  margin:0!important;
  transition:transform .34s cubic-bezier(.2,.8,.2,1), opacity .22s ease, max-width .34s cubic-bezier(.2,.8,.2,1), padding .22s ease;
  transform-origin:left center;
  will-change:transform,opacity,max-width;
}
.tab-rail-toggle{
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#fff,#f7fbfd);
  color:var(--primary);
  box-shadow:0 12px 28px rgba(15,23,42,.10);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .16s ease, box-shadow .16s ease;
}
.tab-rail-toggle:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.14)}
.tab-rail-toggle span:before{content:"‹";display:block;font-size:30px;font-weight:950;line-height:1;margin-top:-3px}
.tab-rail-shell.tabs-hidden > .tabs,.tab-rail-shell.tabs-hidden > .item-subtabs{
  transform:translateX(-115%);
  opacity:0;
  max-width:0;
  pointer-events:none;
  overflow:hidden;
}
.tab-rail-shell.tabs-hidden .tab-rail-toggle span:before{content:"›"}
.tabs,.item-subtabs{overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:2px}
.tabs::-webkit-scrollbar,.item-subtabs::-webkit-scrollbar{display:none}
.tabs a,.item-subtabs a{
  white-space:nowrap;
  border-radius:999px!important;
  min-height:44px;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tabs a:hover,.item-subtabs a:hover{transform:translateY(-1px)}

/* Responsive behavior */
@media(max-width:1280px){
  .grid.cols-3,.three,.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .page-body{padding:24px!important}
}
@media(max-width:1000px){
  .shell{display:block!important}
  .sidebar{
    position:fixed!important;
    left:0!important;top:0!important;bottom:0!important;
    width:min(326px,86vw)!important;
    transform:translateX(-110%)!important;
    z-index:50!important;
  }
  .shell.sidebar-open .sidebar{transform:translateX(0)!important}
  .shell.sidebar-open:after{
    content:"";
    position:fixed;
    inset:0;
    z-index:42;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }
  .content,.shell.sidebar-collapsed .content{margin-left:0!important;width:100%!important}
  .footer,.shell.sidebar-collapsed .footer{left:0!important}
  .sidebar-toggle{display:none!important}
  .mobile-sidebar-btn{display:inline-flex!important}
  .topbar{height:70px!important;padding:0 16px!important;gap:12px!important}
  .page-heading{min-height:auto!important;padding:16px 20px!important}
  .page-body{padding:20px!important}
  .grid.cols-2,.grid.cols-3,.two,.three,.filter-grid,.schedule-grid,.combo-main-grid,.combo-image-row{grid-template-columns:1fr!important}
  .select-store-bar,.item-filter-line form{grid-template-columns:1fr!important}
  .tab-rail-shell{gap:8px;margin-bottom:18px}
  .tab-rail-toggle{width:40px;height:40px;flex-basis:40px}
}
@media(max-width:720px){
  body{font-size:13px!important}
  .topbar .hello{max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .page-heading h1{font-size:22px!important}
  .page-heading .divider{display:none!important}
  .page-heading .total{margin-left:0!important}
  .card,.store-scope-card{padding:18px!important;border-radius:18px!important}
  .table-card table{min-width:680px}
  th,td{padding:14px 16px!important}
  .actions,.inline-actions,.cloud-tools{justify-content:center!important}
  .btn{width:auto;max-width:100%}
  .modal-card{width:calc(100vw - 18px)!important;border-radius:18px!important}
}
@media(max-width:480px){
  .page-body{padding:14px!important}
  .topbar{padding:0 12px!important}
  .bell,.online-dot,.mobile-sidebar-btn{width:38px!important;height:38px!important;border-radius:12px!important}
  .tabs a,.item-subtabs a{width:auto!important;justify-content:center}
  .tab-rail-shell.tabs-hidden{max-width:64px}
  .table-card table{min-width:620px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* ==========================================================
   AVX Advanced Modern Responsive Shell - V19
   Navy-focused palette + refined compact arrows.
   ========================================================== */
:root{
  --primary:#152586 !important;
  --primary-dark:#0f1c68 !important;
  --success:#00B8C0 !important;
  --yellow:#00B8C0 !important;
  --sidebar:#152586 !important;
  --sidebar-2:#0e174d !important;
  --sidebar-active:#102063 !important;
  --avx-bg:#f7f9fd !important;
  --avx-bg-2:#eef4fb !important;
  --avx-panel:rgba(255,255,255,.92) !important;
  --avx-panel-solid:#ffffff !important;
  --avx-ink:#2C2116 !important;
  --avx-ink-soft:#5e6578 !important;
  --avx-border:rgba(21,37,134,.10) !important;
  --avx-shadow:0 20px 55px rgba(21,37,134,.10) !important;
  --avx-shadow-soft:0 12px 30px rgba(21,37,134,.07) !important;
}
body{
  background:
    radial-gradient(circle at 12% -8%, rgba(0,184,192,.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(1,95,192,.10), transparent 26%),
    linear-gradient(180deg,var(--avx-bg) 0%,var(--avx-bg-2) 100%) !important;
}
.sidebar{
  background:linear-gradient(180deg,#0c1443 0%, #152586 42%, #0e1b5f 100%) !important;
  border-right:1px solid rgba(255,255,255,.09) !important;
  box-shadow:18px 0 50px rgba(10,24,76,.22) !important;
}
.sidebar:before{
  background:radial-gradient(circle, rgba(1,95,192,.28), transparent 70%) !important;
}
.sidebar:after{
  background:radial-gradient(circle, rgba(0,184,192,.18), transparent 70%) !important;
}
.sidebar nav a{
  color:#e7ecff !important;
}
.sidebar nav a .ico{
  color:#dbe5ff !important;
  background:rgba(255,255,255,.08) !important;
}
.sidebar nav a:hover,
.sidebar nav a.active{
  border-left-color:transparent !important;
}
.sidebar nav a.active{
  background:linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,184,192,.12)) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px rgba(5,10,25,.16) !important;
}
.sidebar nav a.active .ico,
.sidebar nav a:hover .ico{
  background:rgba(255,255,255,.16) !important;
  color:#00B8C0 !important;
}
.userbox{
  background:rgba(255,255,255,.06) !important;
}
.bell{
  background:rgba(0,184,192,.12) !important;
  color:#015FC0 !important;
  box-shadow:inset 0 0 0 1px rgba(0,184,192,.24) !important;
}
.online-dot{
  background:rgba(0,184,192,.10) !important;
  box-shadow:inset 0 0 0 1px rgba(0,184,192,.18) !important;
}
.online-dot:after{background:#00B8C0 !important;}
.page-heading .total,
.badge.neutral{
  background:rgba(21,37,134,.08) !important;
  color:#152586 !important;
  border-color:rgba(21,37,134,.10) !important;
}
.btn,
.btn.yellow{
  background:linear-gradient(135deg, #152586, #015FC0) !important;
  box-shadow:0 14px 28px rgba(21,37,134,.18) !important;
}
.btn.secondary{
  background:rgba(21,37,134,.06) !important;
  color:#152586 !important;
  border:1px solid rgba(21,37,134,.12) !important;
}
.btn.success{
  background:linear-gradient(135deg,#00B8C0,#015FC0) !important;
  box-shadow:0 12px 24px rgba(1,95,192,.16) !important;
}
.link-action,.link-action.blue{color:#015FC0 !important;}
.tabs a.active,
.item-subtabs a.active{
  background:linear-gradient(135deg,#152586,#015FC0) !important;
  border-color:#152586 !important;
  color:#fff !important;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(21,37,134,.68) !important;
  box-shadow:0 0 0 5px rgba(21,37,134,.09) !important;
}
.sidebar-toggle{
  top:28px !important;
  left:calc(var(--avx-sidebar-w) - 26px) !important;
  width:14px !important;
  height:24px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#cfe0ff !important;
  transition:left .34s cubic-bezier(.2,.8,.2,1), color .16s ease, transform .16s ease !important;
}
.sidebar-toggle:hover{
  background:transparent !important;
  transform:translateX(1px) !important;
  color:#ffffff !important;
}
.sidebar-toggle .toggle-arrow:before{
  content:"‹";
  font-size:26px !important;
  font-weight:900 !important;
  line-height:1 !important;
  margin-top:-2px !important;
}
.shell.sidebar-collapsed .sidebar-toggle{
  left:10px !important;
}
.shell.sidebar-collapsed .sidebar-toggle .toggle-arrow:before{content:"›";}

/* refined inner tabs collapse so hidden tabs do not break layout */
.tab-rail-shell{
  position:relative !important;
  display:grid !important;
  grid-template-columns:14px minmax(0,1fr) !important;
  align-items:start !important;
  gap:8px !important;
  width:100% !important;
  margin:0 0 18px !important;
}
.tab-rail-shell > .tabs,
.tab-rail-shell > .item-subtabs{
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  transform-origin:left center !important;
  transition:transform .26s ease, opacity .18s ease, max-height .24s ease !important;
}
.tab-rail-toggle{
  width:14px !important;
  height:24px !important;
  min-height:24px !important;
  margin-top:10px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#152586 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.tab-rail-toggle:hover{
  transform:translateX(1px) !important;
  box-shadow:none !important;
  color:#015FC0 !important;
}
.tab-rail-toggle span:before{
  content:"‹" !important;
  display:block !important;
  font-size:24px !important;
  font-weight:900 !important;
  line-height:1 !important;
  margin-top:-2px !important;
}
.tab-rail-shell.tabs-hidden{
  grid-template-columns:14px 0fr !important;
}
.tab-rail-shell.tabs-hidden > .tabs,
.tab-rail-shell.tabs-hidden > .item-subtabs{
  opacity:0 !important;
  transform:translateX(-18px) !important;
  max-height:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}
.tab-rail-shell.tabs-hidden .tab-rail-toggle span:before{content:"›" !important;}
.tabs,
.item-subtabs{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.tabs::-webkit-scrollbar,
.item-subtabs::-webkit-scrollbar{display:none;}
@media(max-width:1000px){
  .sidebar-toggle{display:none !important;}
  .tab-rail-shell{grid-template-columns:14px minmax(0,1fr) !important;}
}


/* ==========================================================
   AVX Theme cleanup V20
   Remove remaining purple traces + app-content preview color fidelity.
   ========================================================== */
.badge.neutral,
.price-tag,
.modifier-pill,
.modifier-pill small,
.table-card td.actions .secondary,
.table-card td .link-action.blue,
.table-card td .item-action,
.table-card td .inspect-action,
.table-card td .open-action,
.table-card td .stores-action,
.table-card td .schedule-action,
.modifier-configure-link,
.item-action,
.link-action.blue,
.dots,
.modifier-picker-item:hover .modifier-picker-title{
  color:#015FC0 !important;
}
.table-card td.actions .secondary:hover,
.table-card td .link-action.blue:hover,
.table-card td .item-action:hover,
.table-card td .inspect-action:hover,
.table-card td .open-action:hover,
.table-card td .stores-action:hover,
.table-card td .schedule-action:hover,
.modifier-configure-link:hover,
.item-action:hover,
.link-action.blue:hover,
.dots:hover{
  color:#152586 !important;
}
.price-tag,
.badge.neutral,
.modifier-pill{background:rgba(1,95,192,.08) !important;border-color:rgba(1,95,192,.10) !important;}
.payment-icon{
  background:rgba(0,184,192,.10) !important;
  color:#015FC0 !important;
}
.small-chip.primary,
.footer-chip.primary{
  background:#152586 !important;
  color:#ffffff !important;
}
.small-chip,
.footer-chip{
  background:#eef4fb !important;
  color:#2C2116 !important;
}
.preview-panel{
  background:linear-gradient(180deg,#152586,#0d174d) !important;
}
.preview-kiosk{background:#0c1443 !important;}
.preview-screen{
  background:radial-gradient(circle at top, #4f648f 0%, #162151 52%, #0c1443 100%) !important;
}
.dark-preview{
  background:linear-gradient(180deg,#24366d,#0c1443) !important;
}
.preview-caption{color:#d7e3ff !important;opacity:.92;}
.table-inline-actions .mini-ico,
.icon-action .mini-ico{color:inherit !important;}


/* ==========================================================
   AVX UI V21 - live preview, theme switch, translation, cleanup
   ========================================================== */
.top-actions{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
.theme-switch{display:inline-flex;align-items:center;gap:6px;background:rgba(21,37,134,.06);border:1px solid rgba(21,37,134,.10);border-radius:999px;padding:4px}
.theme-btn{border:0;background:transparent;color:#152586;min-height:34px;padding:8px 12px;border-radius:999px;font-weight:800;cursor:pointer}
.theme-btn.active{background:#152586;color:#fff;box-shadow:0 8px 18px rgba(21,37,134,.16)}
.lang-switch-wrap{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid rgba(21,37,134,.10);background:#fff;border-radius:14px}
.lang-switch-label{font-size:12px;font-weight:800;color:#152586}
.lang-switch{min-height:34px!important;border:0!important;background:transparent!important;padding:4px 8px!important;color:#2C2116!important;min-width:120px;width:auto!important;box-shadow:none!important}

/* hard cleanup for old purple traces */
.element-editor h4{color:#2C2116!important}
.element-editor p,.small-note,.hint,.muted{color:#6f7689!important}
.page-heading .total{color:#152586!important}
.preview-button,.small-chip.primary,.footer-chip.primary{background:#FDC636!important;color:#26241F!important}
.preview-screen .small-chip,.preview-screen .footer-chip{border:1px solid rgba(21,37,134,.08)}
.link-action,.link-action.blue,.modifier-configure-link,.item-action,.dots,.table-card td .item-action,.table-card td .open-action,.table-card td .inspect-action,.table-card td .schedule-action,.table-card td .stores-action,.table-card td .link-action.blue{color:#015FC0!important}
.link-action:hover,.link-action.blue:hover,.modifier-configure-link:hover,.item-action:hover,.dots:hover,.table-card td .item-action:hover,.table-card td .open-action:hover,.table-card td .inspect-action:hover,.table-card td .schedule-action:hover,.table-card td .stores-action:hover,.table-card td .link-action.blue:hover{color:#152586!important}
.color-field input[data-role='hex'], .element-editor input, .element-editor select, .element-editor textarea{border-color:rgba(21,37,134,.14)!important;color:#2C2116!important}
.color-field input[data-role='hex']::placeholder, .element-editor input::placeholder{color:#8f95a8!important}
.preview-caption{color:#dfe7ff!important}
.preview-panel{background:linear-gradient(180deg,#0c1443,#152586)!important}
.preview-kiosk{background:#10193f!important}
.dark-preview{background:linear-gradient(180deg,#1d2d68,#0f173f)!important}
.light-preview{background:#f7f9fd!important}
.summary-box,.payment-card-preview,.preview-topbar,.preview-menu-grid .tile{box-shadow:0 10px 24px rgba(21,37,134,.05)!important}

/* dark mode */
body.ui-dark{background:linear-gradient(180deg,#0b122d 0%,#0f1739 100%)!important;color:#e9eefc!important}
body.ui-dark .content,body.ui-dark .shell{background:transparent!important}
body.ui-dark .topbar,body.ui-dark .page-heading,body.ui-dark .card,body.ui-dark .table-card,body.ui-dark .store-scope-card,body.ui-dark .modal-card,body.ui-dark .lang-switch-wrap{background:rgba(14,22,51,.92)!important;color:#e9eefc!important;border-color:rgba(255,255,255,.08)!important;box-shadow:0 18px 40px rgba(0,0,0,.22)!important}
body.ui-dark th,body.ui-dark td,body.ui-dark .card h2,body.ui-dark .card h3,body.ui-dark .card h4,body.ui-dark .page-heading h1,body.ui-dark .hello,body.ui-dark .field span,body.ui-dark .theme-btn{color:#e9eefc!important}
body.ui-dark .small-note,body.ui-dark .muted,body.ui-dark .element-editor p,body.ui-dark .hint{color:#aeb8d7!important}
body.ui-dark input,body.ui-dark select,body.ui-dark textarea{background:#0f183d!important;color:#f4f7ff!important;border-color:rgba(255,255,255,.10)!important}
body.ui-dark .table-card table,body.ui-dark table,body.ui-dark th{background:transparent!important}
body.ui-dark .footer{background:rgba(14,22,51,.95)!important;color:#cfd9f6!important;border-top-color:rgba(255,255,255,.08)!important}
body.ui-dark .theme-switch{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important}
body.ui-dark .theme-btn{color:#dce5ff!important}
body.ui-dark .theme-btn.active{background:#00B8C0!important;color:#0b122d!important}
body.ui-dark .lang-switch{color:#e9eefc!important}
body.ui-dark .preview-panel{background:linear-gradient(180deg,#08112e,#0d1844)!important}
body.ui-dark .clean-preview-kiosk{background:#0a132f!important}
body.ui-dark .light-preview{background:#142049!important}
body.ui-dark .summary-box,body.ui-dark .payment-card-preview,body.ui-dark .preview-topbar,body.ui-dark .preview-menu-grid .tile{background:#0f183d!important;color:#eaf0ff!important;border-color:rgba(255,255,255,.08)!important}
body.ui-dark .summary-heading,body.ui-dark .summary-total,body.ui-dark .preview-title.dark,body.ui-dark .preview-subtitle.dark{color:#f3f7ff!important}
body.ui-dark .small-chip,body.ui-dark .footer-chip{background:rgba(255,255,255,.08)!important;color:#eef3ff!important;border-color:rgba(255,255,255,.10)!important}
body.ui-dark .small-chip.primary,body.ui-dark .footer-chip.primary,body.ui-dark .preview-button{background:#FDC636!important;color:#26241F!important}

@media(max-width:1000px){
  .top-actions{width:100%;justify-content:flex-start}
  .lang-switch-wrap{width:auto}
}


/* ==========================================================
   AVX UI V22 - refined dark mode + translation live polish
   ========================================================== */
body.ui-dark{
  background:
    radial-gradient(circle at 16% -10%, rgba(0,184,192,.12), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(1,95,192,.14), transparent 28%),
    linear-gradient(180deg,#071226 0%,#0b1730 55%,#0d1934 100%)!important;
  color:#edf4ff!important;
}
body.ui-dark .sidebar{
  background:linear-gradient(180deg,#091536 0%,#10245c 48%,#091536 100%)!important;
  border-right-color:rgba(255,255,255,.08)!important;
}
body.ui-dark .topbar,
body.ui-dark .page-heading,
body.ui-dark .footer{
  background:rgba(12,25,52,.86)!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.12)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.20)!important;
}
body.ui-dark .card,
body.ui-dark .table-card,
body.ui-dark .store-scope-card,
body.ui-dark .mini-stat,
body.ui-dark .schedule-box,
body.ui-dark .element-editor,
body.ui-dark .modal-card{
  background:rgba(17,33,66,.92)!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.14)!important;
  box-shadow:0 20px 45px rgba(0,0,0,.20)!important;
}
body.ui-dark .table-card table,
body.ui-dark table{
  background:transparent!important;
}
body.ui-dark th{
  background:rgba(19,39,78,.95)!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.12)!important;
}
body.ui-dark td{
  color:#d6e0f6!important;
  border-color:rgba(158,181,230,.10)!important;
}
body.ui-dark tbody tr:hover{background:rgba(0,184,192,.055)!important}
body.ui-dark h1,
body.ui-dark h2,
body.ui-dark h3,
body.ui-dark h4,
body.ui-dark .page-heading h1,
body.ui-dark .summary-heading,
body.ui-dark .field span,
body.ui-dark .hello{
  color:#f7fbff!important;
}
body.ui-dark .small-note,
body.ui-dark .muted,
body.ui-dark .hint,
body.ui-dark .element-editor p,
body.ui-dark .preview-caption{
  color:#aebce0!important;
}
body.ui-dark input,
body.ui-dark select,
body.ui-dark textarea,
body.ui-dark .lang-switch-wrap{
  background:#0b1730!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.20)!important;
}
body.ui-dark input:focus,
body.ui-dark select:focus,
body.ui-dark textarea:focus{
  border-color:#00B8C0!important;
  box-shadow:0 0 0 5px rgba(0,184,192,.12)!important;
}
body.ui-dark .theme-switch{
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.10)!important;
}
body.ui-dark .theme-btn{color:#dbe6ff!important}
body.ui-dark .theme-btn.active{
  background:#00B8C0!important;
  color:#071226!important;
}
body.ui-dark .lang-switch{color:#edf4ff!important}
body.ui-dark .bell,
body.ui-dark .online-dot{
  background:rgba(0,184,192,.12)!important;
  box-shadow:inset 0 0 0 1px rgba(0,184,192,.20)!important;
}
body.ui-dark .preview-panel{
  background:linear-gradient(180deg,#071226,#10245c)!important;
  box-shadow:0 22px 50px rgba(0,0,0,.25)!important;
}
body.ui-dark .clean-preview-kiosk{background:#091536!important}
body.ui-dark .light-preview{
  background:linear-gradient(180deg,#f7f9fd,#eef4fb)!important;
}
body.ui-dark .dark-preview{
  background:linear-gradient(180deg,#10245c,#071226)!important;
}
body.ui-dark .summary-box,
body.ui-dark .payment-card-preview,
body.ui-dark .preview-topbar,
body.ui-dark .preview-menu-grid .tile{
  background:#ffffff!important;
  color:#2C2116!important;
  border-color:#e9eef8!important;
}
body.ui-dark .summary-heading{color:#2C2116!important}
body.ui-dark .summary-total,
body.ui-dark .preview-title.dark,
body.ui-dark .preview-subtitle.dark{color:#485472!important}
body.ui-dark .small-chip,
body.ui-dark .footer-chip{
  background:#eef4fb!important;
  color:#2C2116!important;
}
body.ui-dark .small-chip.primary,
body.ui-dark .footer-chip.primary,
body.ui-dark .preview-button{
  background:#FDC636!important;
  color:#26241F!important;
}
body.ui-dark .btn.secondary{
  background:rgba(0,184,192,.10)!important;
  color:#9ff8ff!important;
  border-color:rgba(0,184,192,.18)!important;
}
body.ui-dark .badge.neutral,
body.ui-dark .price-tag,
body.ui-dark .modifier-pill{
  background:rgba(0,184,192,.10)!important;
  color:#9ff8ff!important;
}
body.ui-dark .link-action,
body.ui-dark .link-action.blue,
body.ui-dark .modifier-configure-link,
body.ui-dark .item-action,
body.ui-dark .dots,
body.ui-dark .table-card td .item-action,
body.ui-dark .table-card td .open-action,
body.ui-dark .table-card td .inspect-action,
body.ui-dark .table-card td .schedule-action,
body.ui-dark .table-card td .stores-action,
body.ui-dark .table-card td .link-action.blue{
  color:#76eff7!important;
}
body.ui-dark .delete-action{color:#ff8e8b!important}
body.ui-dark .edit-action{color:#72e4ad!important}

body.ui-rtl{direction:rtl}
body.ui-rtl .sidebar{left:auto!important;right:0!important;border-right:0!important;border-left:1px solid rgba(255,255,255,.09)}
body.ui-rtl .content{margin-left:0!important;margin-right:var(--avx-sidebar-w)!important}
body.ui-rtl .footer{left:0!important;right:var(--avx-sidebar-w)!important}
body.ui-rtl .shell.sidebar-collapsed .content{margin-right:0!important}
body.ui-rtl .shell.sidebar-collapsed .footer{right:0!important}
body.ui-rtl .sidebar-toggle{left:auto!important;right:calc(var(--avx-sidebar-w) - 26px)!important}
body.ui-rtl .shell.sidebar-collapsed .sidebar-toggle{right:10px!important}
body.ui-rtl .sidebar nav a{flex-direction:row-reverse;text-align:right}
body.ui-rtl .topbar{direction:rtl}
body.ui-rtl .top-actions{margin-left:0!important;margin-right:auto!important}
body.ui-rtl th,
body.ui-rtl td{text-align:center!important}
@media(max-width:1000px){
  body.ui-rtl .sidebar{right:0!important;left:auto!important;transform:translateX(110%)!important}
  body.ui-rtl .shell.sidebar-open .sidebar{transform:translateX(0)!important}
  body.ui-rtl .content{margin-right:0!important}
  body.ui-rtl .footer{right:0!important}
}


/* ==========================================================
   AVX UI V23 - final legacy purple cleanup
   Force every action/link/icon to Navy/Cyan only.
   ========================================================== */
:root{
  --legacy-purple-clean:#015FC0;
  --legacy-purple-clean-hover:#152586;
  --avx-cyan:#00B8C0;
}
a:not(.btn):not(.sidebar nav a),
.table-card a:not(.btn),
.table-inline-actions a:not(.btn),
.icon-action,
.item-action,
.modifier-configure-link,
.inspect-action,
.open-action,
.schedule-action,
.schedules-action,
.stores-action,
.link-action,
.link-action.blue,
.dots,
summary.btn.secondary,
.apply-menu-details summary,
.modifier-picker-item:hover .modifier-picker-title{
  color:#015FC0!important;
}
a:not(.btn):not(.sidebar nav a):hover,
.table-card a:not(.btn):hover,
.table-inline-actions a:not(.btn):hover,
.icon-action:hover,
.item-action:hover,
.modifier-configure-link:hover,
.inspect-action:hover,
.open-action:hover,
.schedule-action:hover,
.schedules-action:hover,
.stores-action:hover,
.link-action:hover,
.link-action.blue:hover,
.dots:hover,
summary.btn.secondary:hover,
.apply-menu-details summary:hover{
  color:#152586!important;
}
.table-inline-actions .mini-ico,
.icon-action .mini-ico,
.item-action .mini-ico,
.modifier-configure-link .mini-ico,
.open-action .mini-ico,
.inspect-action .mini-ico,
.schedule-action .mini-ico,
.schedules-action .mini-ico{
  color:#00B8C0!important;
}
.btn.secondary,
summary.btn.secondary,
.apply-menu-details summary.btn{
  background:#eef8fb!important;
  color:#015FC0!important;
  border:1px solid rgba(0,184,192,.18)!important;
  box-shadow:none!important;
}
.btn.secondary:hover,
summary.btn.secondary:hover,
.apply-menu-details summary.btn:hover{
  background:#e4f5f8!important;
  color:#152586!important;
}
.badge.neutral,
.price-tag,
.modifier-pill,
.payment-icon,
.mod-tab-btn.active,
.tabs a:not(.active),
.item-subtabs a:not(.active){
  background:#eef8fb!important;
  color:#015FC0!important;
  border-color:rgba(0,184,192,.16)!important;
}
.tabs a.active,
.item-subtabs a.active,
.mod-tab-btn.active:after{
  background:linear-gradient(135deg,#152586,#015FC0)!important;
  color:#fff!important;
}
.alert.info{
  background:#eef8fb!important;
  color:#015FC0!important;
}
input:focus,
select:focus,
textarea:focus{
  border-color:#00B8C0!important;
  box-shadow:0 0 0 5px rgba(0,184,192,.12)!important;
}
.sidebar nav a .ico,
.sidebar nav a.active .ico,
.sidebar nav a:hover .ico{
  color:#00B8C0!important;
}
body.ui-dark a:not(.btn):not(.sidebar nav a),
body.ui-dark .table-card a:not(.btn),
body.ui-dark .table-inline-actions a:not(.btn),
body.ui-dark .icon-action,
body.ui-dark .item-action,
body.ui-dark .modifier-configure-link,
body.ui-dark .inspect-action,
body.ui-dark .open-action,
body.ui-dark .schedule-action,
body.ui-dark .schedules-action,
body.ui-dark .stores-action,
body.ui-dark .link-action,
body.ui-dark .link-action.blue,
body.ui-dark .dots{
  color:#76eff7!important;
}
body.ui-dark a:not(.btn):not(.sidebar nav a):hover,
body.ui-dark .table-card a:not(.btn):hover,
body.ui-dark .table-inline-actions a:not(.btn):hover,
body.ui-dark .icon-action:hover,
body.ui-dark .item-action:hover,
body.ui-dark .modifier-configure-link:hover,
body.ui-dark .inspect-action:hover,
body.ui-dark .open-action:hover,
body.ui-dark .schedule-action:hover,
body.ui-dark .schedules-action:hover,
body.ui-dark .stores-action:hover,
body.ui-dark .link-action:hover,
body.ui-dark .link-action.blue:hover,
body.ui-dark .dots:hover{
  color:#b8fbff!important;
}
body.ui-dark .btn.secondary,
body.ui-dark summary.btn.secondary,
body.ui-dark .apply-menu-details summary.btn{
  background:rgba(0,184,192,.10)!important;
  color:#9ff8ff!important;
  border-color:rgba(0,184,192,.22)!important;
}


/* ==========================================================
   AVX UI V24 - professional polish, no translation UI,
   refined tabs, profile topbar, animated online status.
   ========================================================== */

/* Remove unused old language UI safely */
.lang-switch-wrap,
.lang-switch,
.lang-switch-label{display:none!important}

/* Topbar profile: remove old notification dot and use one clean online indicator */
.bell{display:none!important}
.topbar{
  min-height:78px!important;
  padding:0 clamp(18px,2.4vw,34px)!important;
  gap:18px!important;
}
.topbar-profile{
  display:inline-flex;
  align-items:center;
  gap:14px;
  min-height:44px;
  padding:6px 8px 6px 0;
}
.hello{
  font-weight:900!important;
  color:#2C2116!important;
  letter-spacing:.01em;
}
.online-dot{
  position:relative!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(0,184,192,.13),rgba(1,95,192,.08))!important;
  box-shadow:inset 0 0 0 1px rgba(0,184,192,.28),0 10px 22px rgba(0,184,192,.10)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.online-dot:before{
  content:"";
  position:absolute;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(0,184,192,.18);
  animation:avx-online-pulse 1.8s ease-out infinite;
}
.online-dot:after{
  content:""!important;
  position:relative!important;
  width:12px!important;
  height:12px!important;
  border-radius:999px!important;
  background:#00B8C0!important;
  box-shadow:0 0 0 4px rgba(0,184,192,.14),0 0 18px rgba(0,184,192,.55)!important;
}
@keyframes avx-online-pulse{
  0%{transform:scale(.55);opacity:.85}
  75%{transform:scale(1.35);opacity:0}
  100%{transform:scale(1.35);opacity:0}
}

/* Cleaner theme switch */
.theme-switch{
  background:#f5fbfd!important;
  border:1px solid rgba(0,184,192,.20)!important;
  border-radius:999px!important;
  padding:5px!important;
  box-shadow:0 12px 28px rgba(21,37,134,.06)!important;
}
.theme-btn{
  color:#152586!important;
  background:transparent!important;
  border:0!important;
  min-height:36px!important;
  padding:8px 16px!important;
  border-radius:999px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
.theme-btn.active{
  color:#fff!important;
  background:linear-gradient(135deg,#152586,#015FC0)!important;
  box-shadow:0 10px 24px rgba(21,37,134,.20)!important;
}

/* Branch/internal tabs: modern pill navigation */
.tab-rail-shell{
  padding:10px 0 4px!important;
  margin:0 0 20px!important;
  overflow:visible!important;
}
.tabs,
.item-subtabs,
.reports-tabs{
  gap:12px!important;
  align-items:center!important;
  padding:0 2px 4px!important;
}
.tabs a,
.item-subtabs a,
.reports-tabs a{
  min-height:46px!important;
  padding:12px 22px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  color:#015FC0!important;
  border:1px solid rgba(0,184,192,.24)!important;
  box-shadow:0 10px 24px rgba(21,37,134,.045)!important;
  font-weight:950!important;
  letter-spacing:.01em;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.tabs a .mini-ico,
.item-subtabs a .mini-ico,
.reports-tabs a .mini-ico{
  color:#00B8C0!important;
}
.tabs a:hover,
.item-subtabs a:hover,
.reports-tabs a:hover{
  background:#f2fbfd!important;
  color:#152586!important;
  border-color:rgba(1,95,192,.22)!important;
  transform:translateY(-1px)!important;
}
.tabs a.active,
.item-subtabs a.active,
.reports-tabs a.active{
  background:linear-gradient(135deg,#152586,#015FC0)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 16px 34px rgba(21,37,134,.18)!important;
}
.tabs a.active .mini-ico,
.item-subtabs a.active .mini-ico,
.reports-tabs a.active .mini-ico{
  color:#9ff8ff!important;
}
.tab-rail-toggle{
  color:#015FC0!important;
  opacity:.9;
}
.tab-rail-toggle:hover{color:#152586!important}

/* More premium surface/spacing */
.card,
.table-card,
.store-scope-card,
.schedule-box,
.mini-stat{
  border-color:rgba(21,37,134,.08)!important;
  box-shadow:0 18px 46px rgba(21,37,134,.075)!important;
}
.card:hover,
.table-card:hover,
.store-scope-card:hover{
  box-shadow:0 22px 55px rgba(21,37,134,.10)!important;
}
.page-heading{
  background:rgba(255,255,255,.80)!important;
  border-bottom:1px solid rgba(21,37,134,.08)!important;
}
.page-heading h1{color:#2C2116!important}
body{
  background:
    radial-gradient(circle at 10% -8%, rgba(0,184,192,.10), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(1,95,192,.10), transparent 26%),
    linear-gradient(180deg,#f7fbfd 0%,#eef4fb 100%)!important;
}

/* Force action colors once more after all old CSS */
.table-card a:not(.btn),
.table-inline-actions a:not(.btn),
.icon-action,
.item-action,
.modifier-configure-link,
.inspect-action,
.open-action,
.schedule-action,
.schedules-action,
.stores-action,
.link-action,
.link-action.blue,
.dots{
  color:#015FC0!important;
}
.table-card a:not(.btn):hover,
.table-inline-actions a:not(.btn):hover,
.icon-action:hover,
.item-action:hover,
.modifier-configure-link:hover,
.inspect-action:hover,
.open-action:hover,
.schedule-action:hover,
.schedules-action:hover,
.stores-action:hover,
.link-action:hover,
.link-action.blue:hover,
.dots:hover{
  color:#152586!important;
}
.table-inline-actions .mini-ico,
.icon-action .mini-ico,
.item-action .mini-ico,
.modifier-configure-link .mini-ico,
.open-action .mini-ico,
.inspect-action .mini-ico,
.schedule-action .mini-ico,
.schedules-action .mini-ico{
  color:#00B8C0!important;
}

/* Improved dark mode: navy glass, but preview stays readable */
body.ui-dark{
  background:
    radial-gradient(circle at 16% -10%, rgba(0,184,192,.14), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(1,95,192,.18), transparent 28%),
    linear-gradient(180deg,#071226 0%,#0b1730 58%,#0d1934 100%)!important;
  color:#edf4ff!important;
}
body.ui-dark .topbar,
body.ui-dark .page-heading,
body.ui-dark .footer{
  background:rgba(10,23,50,.88)!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.12)!important;
}
body.ui-dark .hello,
body.ui-dark .page-heading h1,
body.ui-dark h1,
body.ui-dark h2,
body.ui-dark h3,
body.ui-dark h4,
body.ui-dark .field span{
  color:#f7fbff!important;
}
body.ui-dark .theme-switch{
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(0,184,192,.20)!important;
}
body.ui-dark .theme-btn{color:#dce7ff!important}
body.ui-dark .theme-btn.active{
  background:linear-gradient(135deg,#00B8C0,#015FC0)!important;
  color:#06122a!important;
}
body.ui-dark .online-dot{
  background:rgba(0,184,192,.10)!important;
  box-shadow:inset 0 0 0 1px rgba(0,184,192,.24),0 10px 26px rgba(0,184,192,.12)!important;
}
body.ui-dark .card,
body.ui-dark .table-card,
body.ui-dark .store-scope-card,
body.ui-dark .schedule-box,
body.ui-dark .mini-stat,
body.ui-dark .modal-card,
body.ui-dark .element-editor{
  background:rgba(16,32,66,.94)!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.14)!important;
  box-shadow:0 20px 45px rgba(0,0,0,.22)!important;
}
body.ui-dark th{
  background:rgba(20,42,84,.96)!important;
  color:#f4f8ff!important;
}
body.ui-dark td{color:#d6e0f6!important}
body.ui-dark input,
body.ui-dark select,
body.ui-dark textarea{
  background:#0b1730!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.20)!important;
}
body.ui-dark .tabs a,
body.ui-dark .item-subtabs a,
body.ui-dark .reports-tabs a{
  background:rgba(12,26,58,.86)!important;
  color:#76eff7!important;
  border-color:rgba(0,184,192,.20)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
body.ui-dark .tabs a:hover,
body.ui-dark .item-subtabs a:hover,
body.ui-dark .reports-tabs a:hover{
  background:rgba(0,184,192,.11)!important;
  color:#b8fbff!important;
}
body.ui-dark .tabs a.active,
body.ui-dark .item-subtabs a.active,
body.ui-dark .reports-tabs a.active{
  background:linear-gradient(135deg,#00B8C0,#015FC0)!important;
  color:#06122a!important;
  box-shadow:0 16px 34px rgba(0,184,192,.14)!important;
}
body.ui-dark .tabs a.active .mini-ico,
body.ui-dark .item-subtabs a.active .mini-ico,
body.ui-dark .reports-tabs a.active .mini-ico{
  color:#06122a!important;
}
body.ui-dark .table-card a:not(.btn),
body.ui-dark .table-inline-actions a:not(.btn),
body.ui-dark .icon-action,
body.ui-dark .item-action,
body.ui-dark .modifier-configure-link,
body.ui-dark .inspect-action,
body.ui-dark .open-action,
body.ui-dark .schedule-action,
body.ui-dark .schedules-action,
body.ui-dark .stores-action,
body.ui-dark .link-action,
body.ui-dark .link-action.blue,
body.ui-dark .dots{
  color:#76eff7!important;
}
body.ui-dark .table-card a:not(.btn):hover,
body.ui-dark .table-inline-actions a:not(.btn):hover,
body.ui-dark .icon-action:hover,
body.ui-dark .item-action:hover,
body.ui-dark .modifier-configure-link:hover,
body.ui-dark .inspect-action:hover,
body.ui-dark .open-action:hover,
body.ui-dark .schedule-action:hover,
body.ui-dark .schedules-action:hover,
body.ui-dark .stores-action:hover,
body.ui-dark .link-action:hover,
body.ui-dark .link-action.blue:hover,
body.ui-dark .dots:hover{
  color:#b8fbff!important;
}

/* Disable old RTL rules since translation feature was removed */
body.ui-rtl{direction:ltr!important}
body.ui-rtl .sidebar{left:0!important;right:auto!important;border-right:1px solid rgba(255,255,255,.09)!important;border-left:0!important}
body.ui-rtl .content{margin-left:var(--avx-sidebar-w)!important;margin-right:0!important}
body.ui-rtl .footer{left:var(--avx-sidebar-w)!important;right:0!important}
body.ui-rtl .topbar{direction:ltr!important}
body.ui-rtl .top-actions{margin-left:auto!important;margin-right:0!important}

@media(max-width:1000px){
  .topbar{align-items:center!important}
  .top-actions{margin-left:auto!important;width:auto!important}
  .theme-btn{padding:8px 12px!important}
}


/* ==========================================================
   AVX UI V25 - Light mode internal tabs readability fix
   Keep active tab text clear and readable.
   ========================================================== */

/* Inner tabs - light mode final override */
body:not(.ui-dark) .tabs a.active,
body:not(.ui-dark) .item-subtabs a.active,
body:not(.ui-dark) .reports-tabs a.active,
body:not(.ui-dark) .tab-rail-shell .tabs a.active,
body:not(.ui-dark) .tab-rail-shell .item-subtabs a.active{
  background:linear-gradient(135deg,#152586 0%,#015FC0 100%)!important;
  color:#ffffff!important;
  border-color:transparent!important;
  box-shadow:0 16px 34px rgba(21,37,134,.22)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
}

body:not(.ui-dark) .tabs a.active span,
body:not(.ui-dark) .item-subtabs a.active span,
body:not(.ui-dark) .reports-tabs a.active span,
body:not(.ui-dark) .tab-rail-shell .tabs a.active span,
body:not(.ui-dark) .tab-rail-shell .item-subtabs a.active span{
  color:#ffffff!important;
}

body:not(.ui-dark) .tabs a.active .mini-ico,
body:not(.ui-dark) .item-subtabs a.active .mini-ico,
body:not(.ui-dark) .reports-tabs a.active .mini-ico,
body:not(.ui-dark) .tab-rail-shell .tabs a.active .mini-ico,
body:not(.ui-dark) .tab-rail-shell .item-subtabs a.active .mini-ico{
  color:#9FF8FF!important;
  text-shadow:none!important;
}

/* Inner tabs - inactive light mode more readable */
body:not(.ui-dark) .tabs a:not(.active),
body:not(.ui-dark) .item-subtabs a:not(.active),
body:not(.ui-dark) .reports-tabs a:not(.active),
body:not(.ui-dark) .tab-rail-shell .tabs a:not(.active),
body:not(.ui-dark) .tab-rail-shell .item-subtabs a:not(.active){
  background:rgba(255,255,255,.90)!important;
  color:#015FC0!important;
  border-color:rgba(0,184,192,.24)!important;
}

body:not(.ui-dark) .tabs a:not(.active):hover,
body:not(.ui-dark) .item-subtabs a:not(.active):hover,
body:not(.ui-dark) .reports-tabs a:not(.active):hover,
body:not(.ui-dark) .tab-rail-shell .tabs a:not(.active):hover,
body:not(.ui-dark) .tab-rail-shell .item-subtabs a:not(.active):hover{
  color:#152586!important;
  background:#f3fcff!important;
  border-color:rgba(1,95,192,.30)!important;
}



/* ==========================================================
   AVX UI V26 - Dark mode list/table title fix
   Fix white/invisible list titles across all pages.
   ========================================================== */

/* Main table/list card header in dark mode */
body.ui-dark .table-card-title,
body.ui-dark .card-header.table-card-title,
body.ui-dark .simple-table-card > .card-header,
body.ui-dark .table-card > .card-header,
body.ui-dark .table-card > .table-card-title,
body.ui-dark .modifier-api-card > .card-header,
body.ui-dark .card-header:has(.table-search){
  background:rgba(17,33,66,.96)!important;
  color:#f7fbff!important;
  border-bottom:1px solid rgba(158,181,230,.14)!important;
  box-shadow:none!important;
}

/* Titles inside list/table headers */
body.ui-dark .table-card-title h1,
body.ui-dark .table-card-title h2,
body.ui-dark .table-card-title h3,
body.ui-dark .simple-table-card > .card-header h1,
body.ui-dark .simple-table-card > .card-header h2,
body.ui-dark .simple-table-card > .card-header h3,
body.ui-dark .table-card > .card-header h1,
body.ui-dark .table-card > .card-header h2,
body.ui-dark .table-card > .card-header h3,
body.ui-dark .modifier-api-card > .card-header h1,
body.ui-dark .modifier-api-card > .card-header h2,
body.ui-dark .modifier-api-card > .card-header h3{
  color:#f7fbff!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:none!important;
}

/* Any direct section/list title that appears above tables */
body.ui-dark .section-title,
body.ui-dark .table-card .section-title,
body.ui-dark .card .section-title,
body.ui-dark .card-header > h2,
body.ui-dark .card-header > h3{
  color:#f7fbff!important;
  opacity:1!important;
}

/* Search field inside dark list headers */
body.ui-dark .table-card-title .table-search,
body.ui-dark .card-header .table-search,
body.ui-dark .simple-table-card .table-search{
  background:#0b1730!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.22)!important;
}

/* Keep light mode list headers clean and readable */
body:not(.ui-dark) .table-card-title,
body:not(.ui-dark) .card-header.table-card-title,
body:not(.ui-dark) .simple-table-card > .card-header,
body:not(.ui-dark) .table-card > .card-header{
  background:#ffffff!important;
  color:#2C2116!important;
  border-bottom:1px solid rgba(21,37,134,.08)!important;
}

body:not(.ui-dark) .table-card-title h1,
body:not(.ui-dark) .table-card-title h2,
body:not(.ui-dark) .table-card-title h3,
body:not(.ui-dark) .simple-table-card > .card-header h1,
body:not(.ui-dark) .simple-table-card > .card-header h2,
body:not(.ui-dark) .simple-table-card > .card-header h3,
body:not(.ui-dark) .table-card > .card-header h1,
body:not(.ui-dark) .table-card > .card-header h2,
body:not(.ui-dark) .table-card > .card-header h3{
  color:#2C2116!important;
  opacity:1!important;
}

/* Fallback for any hidden title caused by old color rules */
body.ui-dark .table-card h2,
body.ui-dark .table-card h3,
body.ui-dark .simple-table-card h2,
body.ui-dark .simple-table-card h3{
  color:#f7fbff!important;
  opacity:1!important;
}



/* ==========================================================
   AVX UI V27 - action icon color consistency
   Icons inherit the exact color of their action text.
   ========================================================== */

.mini-ico{
  color:currentColor!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  line-height:1!important;
}
.mini-ico svg{
  width:16px!important;
  height:16px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* every action icon follows the parent action color */
.table-inline-actions .mini-ico,
.actions .mini-ico,
.icon-action .mini-ico,
.link-action .mini-ico,
.item-action .mini-ico,
.modifier-configure-link .mini-ico,
.edit-action .mini-ico,
.delete-action .mini-ico,
.open-action .mini-ico,
.inspect-action .mini-ico,
.schedule-action .mini-ico,
.schedules-action .mini-ico,
.stores-action .mini-ico{
  color:currentColor!important;
}

/* action text colors */
.table-inline-actions .edit-action,
.actions .edit-action,
.link-action.edit-action,
.btn.small.edit-action{
  color:#00B8C0!important;
}
.table-inline-actions .edit-action:hover,
.actions .edit-action:hover,
.link-action.edit-action:hover,
.btn.small.edit-action:hover{
  color:#015FC0!important;
}

.table-inline-actions .delete-action,
.actions .delete-action,
.link-action.delete-action,
.btn.red.small.delete-action,
button.delete-action{
  color:#D32927!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.table-inline-actions .delete-action:hover,
.actions .delete-action:hover,
.link-action.delete-action:hover,
.btn.red.small.delete-action:hover,
button.delete-action:hover{
  color:#B91C1C!important;
  background:rgba(211,41,39,.06)!important;
}

.table-inline-actions .open-action,
.table-inline-actions .inspect-action,
.table-inline-actions .schedule-action,
.table-inline-actions .schedules-action,
.table-inline-actions .stores-action,
.table-inline-actions .item-action,
.actions .open-action,
.actions .inspect-action,
.actions .schedule-action,
.actions .schedules-action,
.actions .stores-action,
.actions .item-action,
.link-action.blue,
.icon-action,
.modifier-configure-link,
.item-action{
  color:#015FC0!important;
}
.table-inline-actions .open-action:hover,
.table-inline-actions .inspect-action:hover,
.table-inline-actions .schedule-action:hover,
.table-inline-actions .schedules-action:hover,
.table-inline-actions .stores-action:hover,
.table-inline-actions .item-action:hover,
.actions .open-action:hover,
.actions .inspect-action:hover,
.actions .schedule-action:hover,
.actions .schedules-action:hover,
.actions .stores-action:hover,
.actions .item-action:hover,
.link-action.blue:hover,
.icon-action:hover,
.modifier-configure-link:hover,
.item-action:hover{
  color:#152586!important;
}

/* Buttons used as text actions should keep icon/text aligned */
.table-inline-actions .btn.small,
.actions .btn.small{
  gap:7px!important;
}
.table-inline-actions .btn.small:not(.delete-action):not(.edit-action),
.actions .btn.small:not(.delete-action):not(.edit-action){
  color:inherit!important;
}

/* Dark mode action icon/text colors */
body.ui-dark .table-inline-actions .edit-action,
body.ui-dark .actions .edit-action,
body.ui-dark .link-action.edit-action,
body.ui-dark .btn.small.edit-action{
  color:#76EFF7!important;
}
body.ui-dark .table-inline-actions .edit-action:hover,
body.ui-dark .actions .edit-action:hover,
body.ui-dark .link-action.edit-action:hover,
body.ui-dark .btn.small.edit-action:hover{
  color:#B8FBFF!important;
}
body.ui-dark .table-inline-actions .delete-action,
body.ui-dark .actions .delete-action,
body.ui-dark .link-action.delete-action,
body.ui-dark .btn.red.small.delete-action,
body.ui-dark button.delete-action{
  color:#FF6B67!important;
  background:transparent!important;
}
body.ui-dark .table-inline-actions .delete-action:hover,
body.ui-dark .actions .delete-action:hover,
body.ui-dark .link-action.delete-action:hover,
body.ui-dark .btn.red.small.delete-action:hover,
body.ui-dark button.delete-action:hover{
  color:#FF9A96!important;
  background:rgba(255,107,103,.08)!important;
}
body.ui-dark .table-inline-actions .open-action,
body.ui-dark .table-inline-actions .inspect-action,
body.ui-dark .table-inline-actions .schedule-action,
body.ui-dark .table-inline-actions .schedules-action,
body.ui-dark .table-inline-actions .stores-action,
body.ui-dark .table-inline-actions .item-action,
body.ui-dark .actions .open-action,
body.ui-dark .actions .inspect-action,
body.ui-dark .actions .schedule-action,
body.ui-dark .actions .schedules-action,
body.ui-dark .actions .stores-action,
body.ui-dark .actions .item-action,
body.ui-dark .link-action.blue,
body.ui-dark .icon-action,
body.ui-dark .modifier-configure-link,
body.ui-dark .item-action{
  color:#76EFF7!important;
}
body.ui-dark .table-inline-actions .open-action:hover,
body.ui-dark .table-inline-actions .inspect-action:hover,
body.ui-dark .table-inline-actions .schedule-action:hover,
body.ui-dark .table-inline-actions .schedules-action:hover,
body.ui-dark .table-inline-actions .stores-action:hover,
body.ui-dark .table-inline-actions .item-action:hover,
body.ui-dark .actions .open-action:hover,
body.ui-dark .actions .inspect-action:hover,
body.ui-dark .actions .schedule-action:hover,
body.ui-dark .actions .schedules-action:hover,
body.ui-dark .actions .stores-action:hover,
body.ui-dark .actions .item-action:hover,
body.ui-dark .link-action.blue:hover,
body.ui-dark .icon-action:hover,
body.ui-dark .modifier-configure-link:hover,
body.ui-dark .item-action:hover{
  color:#B8FBFF!important;
}



/* ==========================================================
   AVX UI V28 - popup/modal deep cleanup
   Fix Available Items and all popup fields in dark/light modes.
   ========================================================== */

/* Modal base: consistent professional shell */
.modal-shell.open{
  background:rgba(3,10,25,.58)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
.modal-shell .modal-card{
  border-radius:24px!important;
  border:1px solid rgba(21,37,134,.10)!important;
  overflow:auto!important;
}
.modal-head{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(21,37,134,.08)!important;
}
.modal-head h2{
  color:#2C2116!important;
  font-weight:950!important;
}
.modal-x,
.drawer-x{
  color:#015FC0!important;
  border-radius:14px!important;
}
.modal-x:hover,
.drawer-x:hover{
  color:#152586!important;
  background:#eef8fb!important;
}

/* Picker panels inside popups */
.modifier-picker-panel,
.item-api-picker-panel,
.combo-api-picker-panel{
  background:#ffffff!important;
  border:1px solid rgba(21,37,134,.10)!important;
  border-radius:18px!important;
  padding:16px!important;
  box-shadow:0 14px 32px rgba(21,37,134,.055)!important;
}
.modifier-picker-search-field input[type='search'],
.item-api-picker-panel input[type='search'],
.combo-api-picker-panel input[type='search']{
  background:#f8fbfd!important;
  color:#2C2116!important;
  border:1px solid rgba(21,37,134,.12)!important;
  border-radius:16px!important;
  min-height:52px!important;
  font-weight:700!important;
}
.modifier-picker-search-field input[type='search']::placeholder,
.item-api-picker-panel input[type='search']::placeholder{
  color:#7f8aa0!important;
  opacity:1!important;
}
.modifier-picker-list,
.item-api-picker-panel .modifier-picker-list,
.combo-api-picker-panel .modifier-picker-list{
  background:#ffffff!important;
  border:1px solid rgba(21,37,134,.10)!important;
  border-radius:18px!important;
  box-shadow:0 18px 38px rgba(21,37,134,.08)!important;
  overflow:auto!important;
}
.modifier-picker-item,
.item-picker-item{
  background:#ffffff!important;
  color:#2C2116!important;
  border-bottom:1px solid rgba(21,37,134,.08)!important;
  padding:16px 18px!important;
  transition:background .16s ease,color .16s ease,transform .16s ease,border-color .16s ease!important;
}
.modifier-picker-item:last-child,
.item-picker-item:last-child{
  border-bottom:0!important;
}
.modifier-picker-title,
.item-picker-item .modifier-picker-title{
  color:#015FC0!important;
  font-weight:950!important;
  opacity:1!important;
}
.modifier-picker-sub,
.item-picker-item .modifier-picker-sub{
  color:#6f7689!important;
  opacity:1!important;
  font-weight:700!important;
}
.modifier-picker-item:hover,
.item-picker-item:hover,
.modifier-picker-item.is-selected,
.item-picker-item.is-selected{
  background:#eefbf6!important;
  border-color:rgba(0,184,192,.20)!important;
  transform:translateY(-1px)!important;
}
.modifier-picker-item:hover .modifier-picker-title,
.item-picker-item:hover .modifier-picker-title,
.modifier-picker-item.is-selected .modifier-picker-title,
.item-picker-item.is-selected .modifier-picker-title{
  color:#152586!important;
}
.modifier-picker-empty,
.picker-list-message{
  background:#eef8fb!important;
  color:#015FC0!important;
  border:1px solid rgba(0,184,192,.18)!important;
  border-radius:14px!important;
  font-weight:800!important;
}

/* Fields and file controls in popups */
.modal-card .field span,
.side-drawer .field span{
  color:#2C2116!important;
  font-weight:950!important;
}
.modal-card .muted,
.modal-card small,
.side-drawer .muted,
.side-drawer small{
  color:#68758c!important;
  opacity:1!important;
}
.modal-card input,
.modal-card select,
.modal-card textarea,
.side-drawer input,
.side-drawer select,
.side-drawer textarea{
  background:#ffffff!important;
  color:#2C2116!important;
  border:1px solid rgba(21,37,134,.14)!important;
}
.modal-card input::placeholder,
.modal-card textarea::placeholder,
.side-drawer input::placeholder,
.side-drawer textarea::placeholder{
  color:#7f8aa0!important;
  opacity:1!important;
}
.image-preview-box,
.current-image-preview{
  background:#ffffff!important;
  border-color:rgba(21,37,134,.12)!important;
  color:#2C2116!important;
}
.image-preview-box .small-note{
  color:#015FC0!important;
}
.upload-preview{
  background:#ffffff!important;
  border-color:rgba(21,37,134,.12)!important;
}

/* Side drawers inside modal */
.side-drawer{
  background:#ffffff!important;
  border-left:1px solid rgba(21,37,134,.10)!important;
  box-shadow:-18px 0 44px rgba(21,37,134,.16)!important;
}
.side-drawer h3{
  color:#2C2116!important;
}

/* Dark mode modal cleanup */
body.ui-dark .modal-shell.open{
  background:rgba(3,10,25,.72)!important;
}
body.ui-dark .modal-card{
  background:#102042!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.16)!important;
  box-shadow:0 26px 65px rgba(0,0,0,.42)!important;
}
body.ui-dark .modal-head{
  background:#0b1730!important;
  border-bottom:1px solid rgba(158,181,230,.14)!important;
}
body.ui-dark .modal-head h2{
  color:#f7fbff!important;
}
body.ui-dark .modal-x,
body.ui-dark .drawer-x{
  color:#76EFF7!important;
}
body.ui-dark .modal-x:hover,
body.ui-dark .drawer-x:hover{
  background:rgba(0,184,192,.10)!important;
  color:#B8FBFF!important;
}

/* Dark picker panels/lists */
body.ui-dark .modifier-picker-panel,
body.ui-dark .item-api-picker-panel,
body.ui-dark .combo-api-picker-panel{
  background:#0b1730!important;
  border-color:rgba(158,181,230,.18)!important;
  box-shadow:0 16px 36px rgba(0,0,0,.25)!important;
}
body.ui-dark .modifier-picker-search-field input[type='search'],
body.ui-dark .item-api-picker-panel input[type='search'],
body.ui-dark .combo-api-picker-panel input[type='search']{
  background:#081229!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.22)!important;
}
body.ui-dark .modifier-picker-search-field input[type='search']::placeholder,
body.ui-dark .item-api-picker-panel input[type='search']::placeholder{
  color:#9aabc8!important;
  opacity:1!important;
}
body.ui-dark .modifier-picker-list,
body.ui-dark .item-api-picker-panel .modifier-picker-list,
body.ui-dark .combo-api-picker-panel .modifier-picker-list{
  background:#09152f!important;
  border-color:rgba(158,181,230,.20)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.28)!important;
}
body.ui-dark .modifier-picker-item,
body.ui-dark .item-picker-item{
  background:#09152f!important;
  color:#edf4ff!important;
  border-bottom:1px solid rgba(158,181,230,.10)!important;
}
body.ui-dark .modifier-picker-title,
body.ui-dark .item-picker-item .modifier-picker-title{
  color:#76EFF7!important;
  opacity:1!important;
}
body.ui-dark .modifier-picker-sub,
body.ui-dark .item-picker-item .modifier-picker-sub{
  color:#aebce0!important;
  opacity:1!important;
}
body.ui-dark .modifier-picker-item:hover,
body.ui-dark .item-picker-item:hover,
body.ui-dark .modifier-picker-item.is-selected,
body.ui-dark .item-picker-item.is-selected{
  background:rgba(0,184,192,.13)!important;
  border-color:rgba(0,184,192,.28)!important;
}
body.ui-dark .modifier-picker-item:hover .modifier-picker-title,
body.ui-dark .item-picker-item:hover .modifier-picker-title,
body.ui-dark .modifier-picker-item.is-selected .modifier-picker-title,
body.ui-dark .item-picker-item.is-selected .modifier-picker-title{
  color:#B8FBFF!important;
}
body.ui-dark .modifier-picker-empty,
body.ui-dark .picker-list-message{
  background:rgba(0,184,192,.10)!important;
  color:#B8FBFF!important;
  border-color:rgba(0,184,192,.22)!important;
}

/* Dark form fields inside modal */
body.ui-dark .modal-card .field span,
body.ui-dark .side-drawer .field span{
  color:#f7fbff!important;
}
body.ui-dark .modal-card .muted,
body.ui-dark .modal-card small,
body.ui-dark .side-drawer .muted,
body.ui-dark .side-drawer small{
  color:#aebce0!important;
}
body.ui-dark .modal-card input,
body.ui-dark .modal-card select,
body.ui-dark .modal-card textarea,
body.ui-dark .side-drawer input,
body.ui-dark .side-drawer select,
body.ui-dark .side-drawer textarea{
  background:#081229!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.22)!important;
}
body.ui-dark .modal-card input::placeholder,
body.ui-dark .modal-card textarea::placeholder,
body.ui-dark .side-drawer input::placeholder,
body.ui-dark .side-drawer textarea::placeholder{
  color:#9aabc8!important;
  opacity:1!important;
}
body.ui-dark .image-preview-box,
body.ui-dark .current-image-preview{
  background:#0b1730!important;
  border-color:rgba(158,181,230,.18)!important;
  color:#edf4ff!important;
}
body.ui-dark .image-preview-box .small-note{
  color:#B8FBFF!important;
}
body.ui-dark .upload-preview{
  background:#09152f!important;
  border-color:rgba(158,181,230,.18)!important;
}
body.ui-dark .side-drawer{
  background:#0b1730!important;
  border-left:1px solid rgba(158,181,230,.16)!important;
  box-shadow:-18px 0 44px rgba(0,0,0,.36)!important;
}
body.ui-dark .side-drawer h3{
  color:#f7fbff!important;
}

/* Native file upload button readability */
body.ui-dark input[type="file"]{
  color:#f4f8ff!important;
}
body.ui-dark input[type="file"]::file-selector-button{
  background:linear-gradient(135deg,#00B8C0,#015FC0)!important;
  color:#06122a!important;
  border:0!important;
}



/* ==========================================================
   AVX UI V29 - dark mode popup text whitening
   Make all popup/modal/drawer text white and readable.
   ========================================================== */
body.ui-dark .modal-card,
body.ui-dark .modal-card *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .side-drawer,
body.ui-dark .side-drawer *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .modal-form,
body.ui-dark .modal-form *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .modal-body,
body.ui-dark .modal-body *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .combo-section-body,
body.ui-dark .combo-section-body *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .target-branches,
body.ui-dark .target-branches *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path),
body.ui-dark .target-checks,
body.ui-dark .target-checks *:not(input):not(textarea):not(select):not(option):not(button):not(svg):not(path){
  color:#f7fbff !important;
}

/* lighter secondary text inside popups */
body.ui-dark .modal-card .muted,
body.ui-dark .modal-card small,
body.ui-dark .modal-card .small-note,
body.ui-dark .modal-card .modifier-picker-sub,
body.ui-dark .modal-card .picker-list-message,
body.ui-dark .side-drawer .muted,
body.ui-dark .side-drawer small,
body.ui-dark .side-drawer .small-note,
body.ui-dark .target-branches .muted,
body.ui-dark .target-checks .muted,
body.ui-dark .combo-section-body .muted{
  color:#d7e3ff !important;
  opacity:1 !important;
}

/* labels and checkbox text */
body.ui-dark .modal-card label,
body.ui-dark .modal-card .field span,
body.ui-dark .modal-card .check-row,
body.ui-dark .modal-card .checkbox-row,
body.ui-dark .modal-card .target-branch,
body.ui-dark .modal-card .target-select-all,
body.ui-dark .side-drawer label,
body.ui-dark .side-drawer .field span,
body.ui-dark .side-drawer .check-row,
body.ui-dark .side-drawer .checkbox-row,
body.ui-dark .side-drawer .target-branch,
body.ui-dark .side-drawer .target-select-all,
body.ui-dark .target-branches label,
body.ui-dark .target-checks label{
  color:#f7fbff !important;
  opacity:1 !important;
}

/* keep interactive action colors intact inside popups */
body.ui-dark .modal-card .edit-action,
body.ui-dark .modal-card .open-action,
body.ui-dark .modal-card .inspect-action,
body.ui-dark .modal-card .schedule-action,
body.ui-dark .modal-card .stores-action,
body.ui-dark .modal-card .item-action,
body.ui-dark .modal-card .link-action,
body.ui-dark .modal-card .link-action.blue,
body.ui-dark .side-drawer .edit-action,
body.ui-dark .side-drawer .open-action,
body.ui-dark .side-drawer .inspect-action,
body.ui-dark .side-drawer .schedule-action,
body.ui-dark .side-drawer .stores-action,
body.ui-dark .side-drawer .item-action,
body.ui-dark .side-drawer .link-action,
body.ui-dark .side-drawer .link-action.blue{
  color:#76EFF7 !important;
}
body.ui-dark .modal-card .delete-action,
body.ui-dark .side-drawer .delete-action{
  color:#FF6B67 !important;
}

/* search/list text in popup pickers */
body.ui-dark .modifier-picker-title,
body.ui-dark .item-picker-item .modifier-picker-title,
body.ui-dark .modifier-picker-item .modifier-picker-title,
body.ui-dark .modifier-picker-empty,
body.ui-dark .picker-list-message,
body.ui-dark .current-image-preview,
body.ui-dark .image-preview-box,
body.ui-dark .upload-preview,
body.ui-dark .upload-preview *{
  color:#f7fbff !important;
}

/* Kiosk Receipt designer inside Reports */
.receipt-designer-grid{
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin-top:18px;
}
.receipt-preview-card{position:sticky;top:18px}
.receipt-paper-preview{width:100%;max-width:360px;margin:10px auto 16px;background:#fff;color:#111;border-radius:18px;padding:26px 24px;box-shadow:0 20px 60px rgba(9,24,54,.18);font-family:Tahoma,Arial,sans-serif;border:1px dashed #d8dce8}
.receipt-order-number{text-align:center;font-size:34px;font-weight:900;letter-spacing:.5px;margin-bottom:8px}
.receipt-logo-preview{display:flex;justify-content:center;align-items:center;min-height:70px;margin:4px 0}
.receipt-logo-preview img{max-width:210px;max-height:78px;object-fit:contain}
.receipt-logo-fallback{text-align:center;font-size:24px;font-weight:900}
.receipt-branch-preview{text-align:center;font-size:14px;margin:4px 0 14px}
.receipt-meta,.receipt-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.receipt-meta,.receipt-line{font-size:13px;line-height:1.55}
.receipt-sep{border-top:1px dashed #111;margin:12px 0}
.receipt-row{font-size:14px;line-height:1.45}
.receipt-sub{font-size:12px;padding-left:14px;color:#333}
.receipt-total{font-size:17px;font-weight:900}
.receipt-status{font-weight:900;font-size:18px;margin-top:5px}
.receipt-center{text-align:center;margin:8px 0;font-size:13px}
.receipt-footer-lines{text-align:center;font-size:13px;line-height:1.45;margin-top:12px}
.receipt-editor-card{min-width:0;overflow:visible}
.receipt-editor-form{min-width:0}
.receipt-editor-sections{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));
  gap:18px;
  align-items:start;
}
.receipt-setting{
  min-width:0;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  padding:16px;
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  height:auto;
  display:block;
}
.receipt-setting.receipt-footer-section,
.receipt-setting.receipt-header-section,
.receipt-setting.receipt-detail-section{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  height:auto!important;
  width:auto!important;
  display:block!important;
  padding:16px!important;
  margin:0!important;
}
.receipt-setting.receipt-header-section{border-color:#dceef8;background:linear-gradient(180deg,#f7fbff,#fff)}
.receipt-setting.receipt-footer-section{border-color:#ebe6d2;background:linear-gradient(180deg,#fffdf4,#fff)}
.receipt-setting .field{margin-bottom:14px}
.receipt-setting .field:last-child{margin-bottom:0}
.receipt-setting-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.receipt-setting-title b{color:#28304b;line-height:1.25}
.receipt-setting-title small{color:#8a91a9;font-weight:800;font-size:11px;text-align:right;line-height:1.25;word-break:break-word;max-width:48%}
.receipt-current-logo{max-width:180px;max-height:90px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px}
.receipt-style-row.three{
  display:grid!important;
  grid-template-columns:minmax(95px,.8fr) minmax(180px,1.25fr) minmax(140px,1fr)!important;
  gap:14px!important;
  align-items:end;
}
.receipt-setting .color-field{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.receipt-setting .color-picker{width:48px;min-width:48px;height:46px;padding:0;border-radius:14px}
.receipt-setting .color-field input[data-role="hex"]{min-width:0}
.receipt-actions{
  position:static;
  clear:both;
  display:flex;
  justify-content:flex-start;
  background:transparent;
  padding:18px 0 0;
  margin-top:18px;
  border-top:1px solid var(--line);
}
.receipt-actions .btn{min-width:208px;border-radius:12px}
body.ui-dark .receipt-setting{background:linear-gradient(180deg,#24293a,#1d2231);border-color:#343b52}
body.ui-dark .receipt-setting.receipt-header-section{background:linear-gradient(180deg,#203046,#1d2231)}
body.ui-dark .receipt-setting.receipt-footer-section{background:linear-gradient(180deg,#343124,#1d2231)}
body.ui-dark .receipt-setting-title b{color:#fff}
body.ui-dark .receipt-setting-title small{color:#c2c9dd}
body.ui-dark .receipt-actions{background:transparent;border-top-color:#343b52}
@media(max-width:1300px){.receipt-style-row.three{grid-template-columns:1fr!important}}
@media(max-width:1100px){.receipt-designer-grid{grid-template-columns:1fr}.receipt-preview-card{position:static}.receipt-editor-sections{grid-template-columns:1fr}.receipt-style-row.three{grid-template-columns:1fr!important}}

/* Kiosk API professional layout */
.kapi-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px;padding:10px;background:rgba(255,255,255,.78);border:1px solid #edf0f7;border-radius:18px;box-shadow:0 16px 34px rgba(31,41,55,.05)}
.kapi-tabs a{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#334155;background:#fff;border:1px solid #e5eaf3;border-radius:999px;padding:11px 16px;font-weight:900;box-shadow:0 8px 18px rgba(15,23,42,.04);transition:.15s ease}
.kapi-tabs a:hover{transform:translateY(-1px);border-color:#015FC0;color:#015FC0}
.kapi-master-form{display:block}.kapi-hero-card{border:1px solid #dce7f3;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);color:#172033;box-shadow:0 18px 42px rgba(31,41,55,.08);overflow:hidden;position:relative}.kapi-hero-card:after{display:none}
.kapi-hero-card h2{color:#172033!important;font-size:24px;margin:4px 0 8px}.kapi-hero-card p{margin:0;color:#475569;font-weight:650}.kapi-hero-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.kapi-eyebrow{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:950;color:#00B8C0;margin-bottom:5px}.kapi-live-status{min-width:210px;background:#eef4fb;border:1px solid #d7e4f4;border-radius:18px;padding:16px 18px;backdrop-filter:blur(12px)}.kapi-live-status span{display:block;color:#64748b;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.8px}.kapi-live-status b{display:block;color:#172033;font-size:17px;margin-top:4px}.kapi-method-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.kapi-method-card{display:grid;grid-template-columns:auto 1fr;align-items:flex-start;gap:12px;border:1px solid #e4ebf5;background:rgba(255,255,255,.92);border-radius:20px;padding:20px;cursor:pointer;transition:.18s ease;min-height:142px;position:relative;box-shadow:0 14px 30px rgba(15,23,42,.08);color:#172033;overflow:hidden}
.kapi-method-card:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:#cbd5e1}
.kapi-method-card:nth-child(2):before{background:#93c5fd}
.kapi-method-card.recommended:before{background:#86efac}
.kapi-method-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(15,23,42,.12)}
.kapi-method-card.selected{background:#fff;border-color:#b8d7ff;transform:translateY(-3px);box-shadow:0 20px 44px rgba(1,95,192,.16),0 0 0 3px rgba(1,95,192,.08)}
.kapi-method-card.recommended.selected{border-color:#b8ecd2;box-shadow:0 20px 44px rgba(15,138,98,.14),0 0 0 3px rgba(15,138,98,.08)}
.kapi-method-card.is-inactive{background:rgba(255,255,255,.72);border:1px dashed #d8e2ef;color:#52637b;box-shadow:none;opacity:1}
.kapi-method-card.is-inactive:hover{background:rgba(255,255,255,.82);border-color:#cad7e8}
.kapi-method-card input{position:absolute;opacity:0;pointer-events:none}
.kapi-method-card b{grid-column:2;color:inherit;font-size:16px;line-height:1.25;font-weight:900}
.kapi-method-card.is-inactive b{color:#60728b}
.kapi-method-card small{grid-column:2;color:#64748b;font-weight:650;line-height:1.45}
.kapi-method-card.is-inactive small{color:#7d8ea5}
.kapi-method-icon{grid-row:1/4;width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#eef6ff;color:#015FC0;font-weight:950;box-shadow:inset 0 0 0 1px rgba(1,95,192,.08)}
.kapi-method-card.is-inactive .kapi-method-icon{background:#f0f4f9;color:#8ea0b7;box-shadow:inset 0 0 0 1px rgba(142,160,183,.12)}
.kapi-method-card.recommended .kapi-method-icon{background:#e9fbf2;color:#0f8a62;box-shadow:inset 0 0 0 1px rgba(15,138,98,.08)}
.kapi-method-state{grid-column:2;display:inline-flex;align-items:center;gap:8px;width:max-content;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:950;letter-spacing:.5px;text-transform:uppercase}
.kapi-method-state.active{background:#e6fff6;color:#0f8a62}
.kapi-method-state.inactive{background:#f4f7fb;color:#7b8da6;border:1px solid #dbe4ef}
.kapi-method-card.selected .kapi-method-state.active{box-shadow:0 8px 18px rgba(15,138,98,.12)}
.kapi-status-strip{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.kapi-section-card{border-radius:20px;border:1px solid #e9edf5;box-shadow:0 18px 40px rgba(31,41,55,.06)}.kapi-section-header{border-bottom:1px solid #edf0f7;margin:-4px -4px 22px;padding:0 0 18px}.kapi-section-header h2{margin:2px 0 0!important;font-size:22px!important;color:#172033!important}.kapi-chip{display:inline-flex;align-items:center;border-radius:999px;padding:8px 13px;background:#eef2f7;color:#64748b;font-weight:950;font-size:12px;text-transform:uppercase;letter-spacing:.6px}.kapi-chip.on{background:#e4fff5;color:#009a6a}.kapi-subsection-title{display:flex;align-items:center;gap:10px;margin:22px 0 16px;color:#172033;font-size:15px;font-weight:950;text-transform:uppercase;letter-spacing:.7px}.kapi-subsection-title:before{content:"";width:8px;height:22px;border-radius:999px;background:#015FC0}.kapi-ncr-card{border-top:4px solid #015FC0}.kapi-site-summary{display:grid;grid-template-columns:1.2fr 1.5fr .65fr .65fr;gap:12px;margin:0 0 22px;padding:14px;border-radius:18px;background:#f8fbff;border:1px solid #e7eef9}.kapi-site-summary div{background:#fff;border:1px solid #edf2f8;border-radius:14px;padding:12px 14px;min-width:0}.kapi-site-summary span{display:block;color:#718096;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.kapi-site-summary b,.kapi-site-summary code{color:#172033;font-size:14px;font-weight:950;word-break:break-all}.kapi-site-summary code{font-family:Consolas,monospace}.kapi-toggle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 2px}.kapi-toggle-grid.single{grid-template-columns:1fr 1fr;align-content:start;margin-top:0}.toggle-row{display:flex;align-items:center;gap:10px;padding:13px 14px;border:1px solid #e5eaf3;border-radius:14px;background:#fff;font-weight:900;color:#334155;box-shadow:0 8px 18px rgba(15,23,42,.03)}.toggle-row input{width:auto;min-height:0;accent-color:#015FC0}.toggle-row span{font-weight:900!important;color:#334155!important}.kapi-save-bar{position:sticky;bottom:56px;z-index:7;display:flex;gap:12px;justify-content:flex-end;align-items:center;padding:14px 16px;margin:-8px 0 22px;background:rgba(255,255,255,.88);border:1px solid #e5eaf3;border-radius:18px;box-shadow:0 20px 44px rgba(15,23,42,.10);backdrop-filter:blur(12px)}
body.ui-dark .kapi-tabs,body.ui-dark .kapi-save-bar{background:rgba(21,26,41,.86);border-color:#26324d}body.ui-dark .kapi-tabs a,body.ui-dark .kapi-section-card,body.ui-dark .toggle-row,body.ui-dark .kapi-site-summary div{background:#171e30;border-color:#26324d}body.ui-dark .kapi-site-summary{background:#111827;border-color:#26324d}body.ui-dark .kapi-section-header h2,body.ui-dark .kapi-subsection-title,body.ui-dark .kapi-site-summary b,body.ui-dark .kapi-site-summary code{color:#e9eefc!important}body.ui-dark .toggle-row span{color:#e9eefc!important}body.ui-dark .kapi-hero-card{background:linear-gradient(135deg,#0f2348 0%,#102a58 45%,#0d2146 100%);border-color:#27406f;color:#fff;box-shadow:0 24px 55px rgba(1,18,45,.35)}body.ui-dark .kapi-hero-card:after{display:none}body.ui-dark .kapi-hero-card h2{color:#f8fbff!important}body.ui-dark .kapi-hero-card p{color:rgba(237,244,255,.82)}body.ui-dark .kapi-live-status{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.16)}body.ui-dark .kapi-live-status span{color:rgba(237,244,255,.72)}body.ui-dark .kapi-live-status b{color:#ffffff}body.ui-dark .kapi-method-card{background:rgba(255,255,255,.94)}body.ui-dark .kapi-method-card.selected{background:#ffffff}body.ui-dark .kapi-method-card.is-inactive{background:rgba(255,255,255,.70);border-color:rgba(187,205,229,.45)}body.ui-dark .kapi-method-card.is-inactive b{color:#5d6f88}body.ui-dark .kapi-method-card.is-inactive small{color:#71849d}
@media(max-width:1100px){.kapi-method-grid,.kapi-toggle-grid,.kapi-site-summary{grid-template-columns:1fr}.kapi-hero-top{display:block}.kapi-live-status{margin-top:16px}.kapi-toggle-grid.single{grid-template-columns:1fr}.kapi-save-bar{position:static;justify-content:flex-start;flex-wrap:wrap}}


/* Sales Reports workspace */
.sales-report-shell{padding:22px}
.sales-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.sales-report-header h2{margin:0 0 6px!important;color:#172033!important}
.sales-report-head-badges{display:flex;gap:8px;flex-wrap:wrap}
.sales-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:10px}
.sales-quick-ranges{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin:8px 0 18px}
.sales-quick-ranges label{display:flex;align-items:center;gap:10px;color:#334155;font-weight:800}
.sales-quick-ranges input{accent-color:#6fc79a}
.sales-actions-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 18px}
.sales-soft-btn{min-width:160px;justify-content:center}
.sales-search-wrap{margin-left:auto;min-width:260px}
.sales-search-wrap input{width:100%;min-height:46px;border:1px solid #d9e4ef;border-radius:14px;padding:0 14px;background:#fff;color:#172033}
.sales-report-note{padding:10px 14px;border-radius:14px;background:#f6fbff;border:1px solid #e0edf8;color:#5a6b82;font-weight:700;margin-bottom:14px}
.sales-table-wrap{overflow:auto;border:1px solid #e6edf5;border-radius:18px;background:#fff}
.sales-report-table{width:100%;border-collapse:separate;border-spacing:0}
.sales-report-table th,.sales-report-table td{padding:14px 12px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:middle}
.sales-report-table th{font-size:13px;text-transform:none;color:#172033;background:#f8fbff;font-weight:900;position:sticky;top:0;z-index:1}
.sales-report-table tr:hover td{background:#fbfdff}
.sales-order-code{font-weight:850;color:#172033;line-height:1.5}
.sales-money{font-weight:900;color:#015FC0}
.sales-options-btn{background:#79c89f;color:#fff;border-color:#79c89f}
.sales-view-btn{background:#79c89f;color:#fff;border-color:#79c89f}
.sales-view-btn:hover,.sales-options-btn:hover{filter:brightness(.96)}
.sales-order-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}
.sales-order-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(3px)}
.sales-order-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;border:1px solid #e3ebf4;box-shadow:0 28px 70px rgba(15,23,42,.25);padding:22px 22px 18px}
.sales-order-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border-radius:12px;border:1px solid #d7e3f0;background:#f7fbff;color:#64748b;font-size:24px;line-height:1;cursor:pointer}
.sales-order-head{padding-right:38px;margin-bottom:12px}
.sales-order-head h3{margin:0 0 10px!important;color:#172033!important}
.sales-order-number{font-size:28px;font-weight:950;color:#015FC0}
.sales-order-meta,.sales-order-summary,.sales-order-footer-meta{display:grid;gap:8px;padding:14px 0;border-top:1px solid #eef2f6}
.sales-order-meta div,.sales-order-summary div,.sales-order-footer-meta div{color:#5e6c84;font-weight:700}
.sales-order-meta b,.sales-order-summary b,.sales-order-footer-meta b{color:#334155}
.sales-order-items{padding:14px 0;border-top:1px solid #eef2f6}
.sales-order-items-head,.sales-order-item-row{display:grid;grid-template-columns:1fr 70px 90px;gap:10px;align-items:center}
.sales-order-items-head{font-weight:900;color:#334155;margin-bottom:8px}
.sales-order-item-row{padding:7px 0;color:#5e6c84;font-weight:700;border-bottom:1px dashed #edf2f7}
.sales-order-item-row:last-child{border-bottom:0}
.sales-order-summary .total-row{font-size:18px}
body.ui-dark .sales-report-shell{background:transparent}
body.ui-dark .sales-report-header h2{color:#ecf2ff!important}
body.ui-dark .sales-quick-ranges label{color:#dce6fb}
body.ui-dark .sales-search-wrap input{background:#0f1728;border-color:#2a3958;color:#eef4ff}
body.ui-dark .sales-report-note{background:#111b2f;border-color:#22324d;color:#c5d3ef}
body.ui-dark .sales-table-wrap{background:#111827;border-color:#26324d}
body.ui-dark .sales-report-table th{background:#15233c;color:#ecf2ff}
body.ui-dark .sales-report-table td{border-bottom-color:#22304a;color:#d6def2}
body.ui-dark .sales-report-table tr:hover td{background:#12203a}
body.ui-dark .sales-order-code{color:#f3f7ff}
body.ui-dark .sales-money{color:#7bd5ff}
body.ui-dark .sales-order-dialog{background:#0f1728;border-color:#2b3953}
body.ui-dark .sales-order-close{background:#162238;border-color:#2a3958;color:#dbe6fb}
body.ui-dark .sales-order-head h3{color:#f5f8ff!important}
body.ui-dark .sales-order-number{color:#79d9ff}
body.ui-dark .sales-order-meta,body.ui-dark .sales-order-summary,body.ui-dark .sales-order-footer-meta,body.ui-dark .sales-order-items{border-top-color:#22304a}
body.ui-dark .sales-order-meta div,body.ui-dark .sales-order-summary div,body.ui-dark .sales-order-footer-meta div,body.ui-dark .sales-order-item-row{color:#ced8ee}
body.ui-dark .sales-order-meta b,body.ui-dark .sales-order-summary b,body.ui-dark .sales-order-footer-meta b,body.ui-dark .sales-order-items-head{color:#f5f8ff}
body.ui-dark .sales-order-item-row{border-bottom-color:#22304a}
@media(max-width:1100px){.sales-filter-grid{grid-template-columns:1fr}.sales-actions-row{align-items:stretch}.sales-search-wrap{margin-left:0;min-width:0;flex:1 1 100%}.sales-report-header{display:block}.sales-report-head-badges{margin-top:10px}.sales-report-table th,.sales-report-table td{white-space:nowrap}.sales-order-dialog{padding:18px}}


/* Sales Reports final actions */
.sales-order-modal[hidden], .sales-options-dropdown[hidden]{display:none!important}
.sales-options-menu{position:relative;display:inline-flex}
.sales-options-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:170px;background:#fff;border:1px solid #dce7f3;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:8px}
.sales-options-dropdown button{display:block;width:100%;border:0;background:transparent;color:#26354c;text-align:left;border-radius:10px;padding:10px 12px;font-weight:850;cursor:pointer}
.sales-options-dropdown button:hover{background:#f3f8fd;color:#015FC0}
.sales-actions-row a.btn{text-decoration:none}
.sales-report-table .sales-options-menu .btn{min-width:90px}
@media print{
  .sidebar,.topbar,.tabs,.reports-tabs,.sales-filter-grid,.sales-quick-ranges,.sales-actions-row,.sales-options-btn,.sales-order-modal{display:none!important}
  .sales-report-shell{box-shadow:none!important;border:0!important}
  .sales-table-wrap{border:0!important}
}
body.ui-dark .sales-options-dropdown{background:#111827;border-color:#2a3958;box-shadow:0 18px 40px rgba(0,0,0,.3)}
body.ui-dark .sales-options-dropdown button{color:#dbe6fb}
body.ui-dark .sales-options-dropdown button:hover{background:#182640;color:#79d9ff}

/* Sales Reports v3 filter UX */
.sales-report-header{align-items:center}
.sales-report-header > div:first-child h2{margin-bottom:0!important}
.sales-filter-grid{align-items:end}
.sales-quick-ranges{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;margin:18px 0!important}
.sales-range-card{position:relative;display:flex!important;align-items:center!important;gap:12px!important;min-height:58px;padding:13px 16px 13px 48px;border:1px solid #dce7f3;border-radius:18px;background:#fff;color:#334155;font-weight:950;cursor:pointer;transition:.15s ease;box-shadow:0 8px 18px rgba(15,23,42,.04);overflow:hidden}
.sales-range-card:hover{border-color:#00B8C0;transform:translateY(-1px);box-shadow:0 12px 24px rgba(0,184,192,.10)}
.sales-range-card input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;pointer-events:none!important}
.sales-range-card:before{content:"";position:absolute;left:17px;top:50%;transform:translateY(-50%);width:18px;height:18px;border-radius:50%;border:2px solid #9fb1c7;background:#fff;box-shadow:inset 0 0 0 4px #fff;transition:.15s ease}
.sales-range-card span{line-height:1.25;position:relative;z-index:1}
.sales-range-card.selected{background:linear-gradient(135deg,#eef8ff,#e8fff7);border-color:#00B8C0;color:#015FC0;box-shadow:0 12px 28px rgba(1,95,192,.12)}
.sales-range-card.selected:before{border-color:#015FC0;background:#6fc79a;box-shadow:inset 0 0 0 4px #e8fff7}
.sales-range-card.selected:after{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#015FC0}
.sales-actions-row .sales-soft-btn{min-height:50px;border-radius:14px;box-shadow:0 12px 25px rgba(1,95,192,.16)}
#salesExportExcelLink{background:#015FC0;border-color:#015FC0;color:#fff}
#salesExportExcelLink:hover{background:#004ea0;border-color:#004ea0}
.sales-report-note{display:flex;align-items:center;gap:6px}
.sales-report-note b{color:#015FC0;font-size:18px}
body.ui-dark .sales-range-card{background:#111b2f;border-color:#2a3958;color:#dbe6fb;box-shadow:none}
body.ui-dark .sales-range-card:before{border-color:#5f718e;background:#0f1728;box-shadow:inset 0 0 0 4px #0f1728}
body.ui-dark .sales-range-card:hover{border-color:#00B8C0}
body.ui-dark .sales-range-card.selected{background:linear-gradient(135deg,rgba(1,95,192,.22),rgba(0,184,192,.14));border-color:#00B8C0;color:#e7fbff}
body.ui-dark .sales-range-card.selected:before{border-color:#00B8C0;background:#6fc79a;box-shadow:inset 0 0 0 4px #10213a}
body.ui-dark #salesExportExcelLink{background:#015FC0;border-color:#015FC0;color:#fff}
body.ui-dark .sales-report-note b{color:#79d9ff}
@media(max-width:900px){.sales-quick-ranges{grid-template-columns:1fr 1fr!important}.sales-range-card{min-height:52px}}


/* Portal Activity Report */
.activity-report-shell .sales-report-header h2{display:flex;align-items:center;gap:10px}
.activity-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.activity-quick-ranges{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;flex-direction:unset!important;margin:12px 0 18px!important}
.activity-report-table th,.activity-report-table td{white-space:nowrap}
.activity-report-table td:nth-child(7){white-space:normal;min-width:260px}
.activity-action-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950;background:#eef6ff;color:#015FC0}
.activity-action-pill.action-create{background:#e6fff6;color:#0f8a62}
.activity-action-pill.action-update,.activity-action-pill.action-settings,.activity-action-pill.action-modifiers,.activity-action-pill.action-schedule{background:#eef6ff;color:#015FC0}
.activity-action-pill.action-delete{background:#fff0f0;color:#c92b2b}
.activity-action-pill.action-refresh{background:#fff7e5;color:#996c00}
body.ui-dark .activity-action-pill{background:#132540;color:#79d9ff}
body.ui-dark .activity-action-pill.action-create{background:#0d3328;color:#74efbd}
body.ui-dark .activity-action-pill.action-delete{background:#3a1720;color:#ff9aa9}
body.ui-dark .activity-action-pill.action-refresh{background:#33280d;color:#ffd36b}
@media(max-width:1100px){.activity-filter-grid{grid-template-columns:1fr}.activity-quick-ranges{grid-template-columns:1fr!important}.activity-report-table th,.activity-report-table td{white-space:nowrap}}


/* Screen saver image playlist - draft drag/drop gallery */
.modern-playlist-editor{
  position:relative;
  border:1px solid rgba(1,95,192,.14);
  border-radius:24px;
  padding:18px;
  background:linear-gradient(180deg,rgba(1,95,192,.055),rgba(255,255,255,.88));
  box-shadow:0 18px 44px rgba(15,23,42,.07);
  margin-top:10px;
}
.playlist-toolbar{
  display:grid;
  grid-template-columns:minmax(220px,320px) 1fr;
  gap:14px;
  align-items:stretch;
}
.playlist-duration-field{margin:0!important}
.playlist-duration-field input{
  min-height:54px;
  border-radius:16px!important;
  font-weight:1000;
  font-size:16px;
}
.playlist-upload-box{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:80px;
  padding:16px 20px;
  border:1.5px dashed rgba(1,95,192,.38);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  cursor:pointer;
  transition:.18s ease;
}
.playlist-upload-box:hover{
  transform:translateY(-1px);
  border-color:#015FC0;
  box-shadow:0 14px 28px rgba(1,95,192,.12);
}
.playlist-upload-box input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.playlist-upload-box b{
  font-size:15px;
  color:#015FC0;
  font-weight:1000;
}
.playlist-upload-box span{
  color:#64748b;
  font-size:12px;
  font-weight:800;
  margin-top:3px;
}
.modern-playlist-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px;
  margin-top:16px;
  transition:box-shadow .2s ease;
}
.modern-playlist-grid.draft-changed{
  box-shadow:0 0 0 4px rgba(253,198,54,.22);
  border-radius:24px;
}
.modern-playlist-tile{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.24);
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease, opacity .16s ease;
  cursor:grab;
}
.modern-playlist-tile:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 42px rgba(15,23,42,.14);
}
.modern-playlist-tile.dragging{
  opacity:.42;
  transform:scale(.985);
  cursor:grabbing;
}
.modern-playlist-tile.removing{
  opacity:0;
  transform:scale(.92);
}
.playlist-thumb{
  position:relative;
  aspect-ratio:9/12;
  min-height:210px;
  background:linear-gradient(135deg,#0b1220,#111827);
  overflow:hidden;
}
.playlist-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#0f172a;
  transition:transform .28s ease, filter .18s ease;
}
.modern-playlist-tile:hover .playlist-thumb img{
  transform:scale(1.035);
  filter:brightness(.82);
}
.playlist-order-badge{
  position:absolute;
  top:10px;
  left:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(1,95,192,.94);
  color:#fff;
  font-weight:1000;
  font-size:13px;
  box-shadow:0 8px 20px rgba(1,95,192,.28);
  z-index:3;
}
.playlist-drag-handle{
  position:absolute;
  bottom:10px;
  left:10px;
  width:38px;
  height:38px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:rgba(15,23,42,.66);
  backdrop-filter:blur(8px);
  opacity:0;
  transform:translateY(8px);
  transition:.18s ease;
  z-index:3;
}
.playlist-drag-handle svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
}
.playlist-trash-btn{
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:rgba(220,38,38,.94);
  box-shadow:0 12px 26px rgba(220,38,38,.28);
  backdrop-filter:blur(8px);
  cursor:pointer;
  opacity:0;
  transform:translateY(-8px) scale(.92);
  transition:.18s ease;
  z-index:4;
}
.playlist-trash-btn svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.modern-playlist-tile:hover .playlist-trash-btn,
.modern-playlist-tile:hover .playlist-drag-handle{
  opacity:1;
  transform:translateY(0) scale(1);
}
.playlist-trash-btn:hover{
  background:#b91c1c;
  transform:translateY(0) scale(1.06)!important;
}
.playlist-file-name{
  padding:12px 13px 14px;
  min-height:50px;
  font-size:13px;
  line-height:1.35;
  font-weight:950;
  color:#24324a;
  word-break:break-word;
  background:#fff;
}
.modern-playlist-tile.image-error .playlist-thumb:after{
  content:"Preview not available";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#cbd5e1;
  font-weight:900;
  font-size:12px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
}
.playlist-new-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
  margin-top:14px;
}
.playlist-new-card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(1,95,192,.16);
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.playlist-new-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
  background:#0f172a;
}
.playlist-new-card b{
  position:absolute;
  top:8px;
  left:8px;
  padding:5px 9px;
  border-radius:999px;
  color:#fff;
  background:rgba(15,23,42,.78);
  font-size:11px;
  font-weight:1000;
}
.playlist-new-card span{
  display:block;
  padding:8px 10px;
  font-size:12px;
  font-weight:900;
  color:#24324a;
  word-break:break-word;
}
.playlist-draft-note{
  margin-top:14px;
  border-radius:16px;
  padding:12px 14px;
  font-weight:950;
  color:#7a4d00;
  background:#fff7db;
  border:1px solid rgba(253,198,54,.55);
}
.playlist-toast{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:99999;
  padding:13px 16px;
  border-radius:16px;
  color:#fff;
  font-weight:950;
  background:#16a34a;
  box-shadow:0 18px 38px rgba(15,23,42,.20);
  transform:translateY(12px);
  opacity:0;
  transition:.2s ease;
}
.playlist-toast.bad{background:#dc2626}
.playlist-toast.show{transform:translateY(0);opacity:1}
.playlist-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(5px);
  opacity:0;
  transition:.18s ease;
}
.playlist-confirm-overlay.open{opacity:1}
.playlist-confirm-card{
  width:min(420px,calc(100% - 32px));
  border-radius:24px;
  padding:24px;
  background:#fff;
  box-shadow:0 28px 70px rgba(15,23,42,.28);
  transform:translateY(10px) scale(.98);
  transition:.18s ease;
  text-align:center;
}
.playlist-confirm-overlay.open .playlist-confirm-card{
  transform:translateY(0) scale(1);
}
.playlist-confirm-icon{
  width:64px;
  height:64px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
  background:#fff0f0;
  font-size:30px;
}
.playlist-confirm-card h3{
  margin:0 0 8px;
  font-size:22px;
}
.playlist-confirm-card p{
  margin:0;
  color:#64748b;
  font-weight:800;
}
.playlist-confirm-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:22px;
}
body.ui-dark .modern-playlist-editor{
  background:linear-gradient(180deg,rgba(1,95,192,.12),rgba(15,23,42,.82));
  border-color:#24344f;
}
body.ui-dark .playlist-upload-box,
body.ui-dark .modern-playlist-tile,
body.ui-dark .playlist-new-card,
body.ui-dark .playlist-file-name,
body.ui-dark .playlist-confirm-card{
  background:#111827;
  border-color:#26344d;
}
body.ui-dark .playlist-file-name,
body.ui-dark .playlist-new-card span,
body.ui-dark .playlist-confirm-card h3{
  color:#e5edf8;
}
body.ui-dark .playlist-draft-note{
  background:#33280d;
  color:#ffd36b;
  border-color:#5b4612;
}
@media(max-width:900px){
  .playlist-toolbar{grid-template-columns:1fr}
  .modern-playlist-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .playlist-thumb{min-height:185px}
}


/* Portal image preview reliability */
.upload-preview:not(.has-image),
.upload-preview[src=""],
.upload-preview:not([src]) {
  display: none !important;
}
.preview.portal-image-preview,
.upload-preview.has-image {
  display: block;
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 14px;
  padding: 8px;
}
body.ui-dark .preview.portal-image-preview,
body.ui-dark .upload-preview.has-image {
  background: #111827;
  border-color: #26344d;
}


/* Menu ZIP content overlay */
.menu-import-card{
  border:1px solid rgba(21,37,134,.11)!important;
  background:linear-gradient(135deg,rgba(1,95,192,.045),rgba(255,255,255,.98) 52%,rgba(21,37,134,.035))!important;
}
.menu-import-card-head{
  align-items:center;
  gap:18px;
}
.menu-import-card-head>div:first-child{
  min-width:0;
}
.menu-import-card-head .btn{
  margin-left:auto;
  flex:0 0 auto;
}
.menu-import-safety-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.menu-import-safety-grid span{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px 10px 38px;
  position:relative;
  border:1px solid rgba(21,37,134,.09);
  border-radius:13px;
  background:rgba(255,255,255,.76);
  color:#43506a;
  font-size:12px;
  font-weight:850;
}
.menu-import-safety-grid span:before{
  content:"✓";
  position:absolute;
  left:13px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e7f8ef;
  color:#23875a;
  font-size:12px;
  font-weight:950;
}
.menu-import-modal{
  width:min(1120px,calc(100vw - 30px))!important;
}
.menu-import-upload-form,
.menu-import-preview{
  padding-bottom:24px!important;
}
.menu-import-target{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 17px;
  margin-bottom:16px;
  border:1px solid rgba(21,37,134,.10);
  border-radius:15px;
  background:#f8fbff;
}
.menu-import-target span,
.menu-import-file-summary span{
  color:#718096;
  font-size:12px;
  font-weight:800;
}
.menu-import-target b{
  color:#22304a;
  text-align:right;
}
.menu-import-file-info{
  margin:-2px 0 14px;
  min-height:44px;
  display:flex;
  align-items:center;
  padding:10px 14px;
  border:1px dashed rgba(1,95,192,.25);
  border-radius:12px;
  background:#f8fbff;
  color:#64748b;
  font-size:13px;
  font-weight:750;
}
.menu-import-file-info.has-file{
  border-style:solid;
  border-color:rgba(35,135,90,.28);
  background:#f1fbf6;
  color:#267657;
}
.menu-import-rule-note{
  margin:12px 0 10px!important;
}
.menu-import-protected-list{
  margin:10px 0 2px;
  padding-left:22px;
  color:#536178;
  line-height:1.75;
  font-size:13px;
  font-weight:700;
}
.menu-import-preview-banner{
  margin:0 0 16px!important;
}
.menu-import-file-summary{
  display:grid;
  grid-template-columns:2fr .7fr .7fr 1fr;
  gap:10px;
  margin-bottom:14px;
}
.menu-import-file-summary>div{
  min-width:0;
  padding:12px 14px;
  border:1px solid rgba(21,37,134,.09);
  border-radius:13px;
  background:#f8fbff;
}
.menu-import-file-summary b{
  display:block;
  overflow:hidden;
  margin-top:4px;
  color:#25324a;
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.menu-import-stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:0 0 15px;
}
.menu-import-table-wrap{
  overflow:auto;
  max-height:420px;
  border:1px solid rgba(21,37,134,.10);
  border-radius:15px;
  background:#fff;
}
.menu-import-preview-table{
  min-width:940px;
  margin:0!important;
}
.menu-import-preview-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f4f7fc!important;
}
.menu-import-preview-table td{
  vertical-align:top;
  font-size:12px;
}
.menu-import-preview-table .badge{
  white-space:nowrap;
}
.menu-import-table-note{
  padding:10px 14px;
}
.menu-import-preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.menu-import-preview-actions form{
  margin:0;
}
.menu-import-force-sync-note{
  margin:10px 0 0;
  text-align:right;
}
body.ui-dark .menu-import-card{
  background:linear-gradient(135deg,rgba(1,95,192,.16),rgba(14,22,51,.95) 55%,rgba(21,37,134,.14))!important;
}
body.ui-dark .menu-import-safety-grid span,
body.ui-dark .menu-import-target,
body.ui-dark .menu-import-file-info,
body.ui-dark .menu-import-file-summary>div,
body.ui-dark .menu-import-table-wrap{
  background:#111b2f!important;
  border-color:#2b3b58!important;
  color:#dbe7f7!important;
}
body.ui-dark .menu-import-safety-grid span:before{
  background:#153c32;
  color:#8ee0b9;
}
body.ui-dark .menu-import-target span,
body.ui-dark .menu-import-target b,
body.ui-dark .menu-import-file-summary span,
body.ui-dark .menu-import-file-summary b,
body.ui-dark .menu-import-protected-list{
  color:#dbe7f7!important;
}
body.ui-dark .menu-import-file-info.has-file{
  background:#123328!important;
  border-color:#2c6e57!important;
  color:#9ce2bf!important;
}
body.ui-dark .menu-import-preview-table thead th{
  background:#17233a!important;
}
@media(max-width:980px){
  .menu-import-safety-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .menu-import-file-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .menu-import-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .menu-import-card-head{align-items:flex-start;flex-direction:column}
  .menu-import-card-head .btn{width:100%;margin-left:0}
  .menu-import-safety-grid,
  .menu-import-file-summary,
  .menu-import-stats{grid-template-columns:1fr}
  .menu-import-target{align-items:flex-start;flex-direction:column}
  .menu-import-target b{text-align:left}
  .menu-import-preview-actions,
  .menu-import-preview-actions form,
  .menu-import-preview-actions .btn{width:100%}
}

/* NCR menu-items that act as nested item lists */
.api-item-list-builder{
  margin:4px 0 20px;
  padding:18px;
  border:1px solid #e7ebf3;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfcff 0%,#f7f9fc 100%);
}
.api-list-badge{
  margin-left:7px;
  padding:3px 8px;
  font-size:10px;
  letter-spacing:.55px;
  vertical-align:2px;
}
.api-item-list-builder.is-available{
  border-color:rgba(1,95,192,.24);
  box-shadow:0 10px 28px rgba(38,48,71,.06);
}
.api-item-list-builder-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.api-item-list-builder-head strong{
  display:block;
  color:#364057;
  font-size:17px;
}
.api-item-list-builder-head p{
  margin:6px 0 0;
  max-width:520px;
  color:#778198;
  line-height:1.45;
}
.api-item-list-switch{
  flex:0 0 auto;
  margin:0;
  color:#3b455c;
}
.api-item-list-switch:has(input:disabled){
  opacity:.5;
}
.api-item-list-body{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e8ecf3;
}
.api-item-list-body[hidden]{
  display:none!important;
}
.item-list-mode-only{
  display:none;
}
#itemForm.item-list-mode .item-list-mode-only{
  display:flex;
}
#itemForm.item-list-mode .item-standard-only{
  display:none!important;
}
#itemForm.item-list-mode .item-main-options-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#itemForm.item-list-mode .api-item-list-builder{
  border-color:rgba(1,95,192,.36);
  box-shadow:0 12px 30px rgba(1,95,192,.08);
}
.api-item-list-appearance-note{
  align-items:flex-start;
  gap:12px;
  margin:0 0 14px;
  padding:13px 14px;
  border:1px solid rgba(1,95,192,.18);
  border-radius:12px;
  background:#eef6ff;
  color:#40516f;
  line-height:1.45;
}
.api-item-list-appearance-note strong{
  flex:0 0 auto;
  color:#015fc0;
}
.api-item-list-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.api-item-list-toolbar input[type='search']{
  min-height:44px;
  border-radius:12px;
}
.api-item-list-count{
  margin:12px 0 10px;
  color:#52617d;
  font-weight:800;
}
.api-item-list-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-height:620px;
  overflow:auto;
  padding:2px;
}
.api-item-list-option{
  display:block;
  border:1px solid #e6eaf2;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  transition:border-color .16s ease,box-shadow .16s ease,opacity .16s ease;
}
.api-item-list-option:hover{
  border-color:rgba(1,95,192,.3);
}
.api-item-list-option.is-open{
  grid-column:1/-1;
  border-color:rgba(1,95,192,.42);
  box-shadow:0 10px 24px rgba(1,95,192,.08);
}
.api-item-list-option.is-inactive{
  opacity:.62;
}
.api-item-list-option.is-inactive.is-open{
  opacity:1;
}
.api-item-list-option-head{
  display:grid;
  grid-template-columns:auto 48px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding:11px;
  background:#fff;
}
.api-item-list-option-head>input[type='checkbox'],
.api-child-translate-switch input{
  width:auto;
  min-height:0;
}
.api-item-list-edit{
  white-space:nowrap;
}
.api-item-list-thumb{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:10px;
  background:#eef3f8;
  color:#8090a7;
  font-size:11px;
  font-weight:900;
}
.api-item-list-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.api-item-list-copy{
  min-width:0;
}
.api-item-list-copy strong,
.api-item-list-copy small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.api-item-list-copy strong{
  color:#38435c;
  white-space:nowrap;
}
.api-item-list-copy small{
  margin-top:3px;
  color:#8b95a9;
  font-size:11px;
  white-space:nowrap;
}
.api-item-list-editor{
  padding:16px;
  border-top:1px solid #e6eaf2;
  background:#f8fbff;
}
.api-item-list-editor[hidden]{
  display:none!important;
}
.api-item-list-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
.api-child-translate-switch{
  grid-column:1/-1;
  margin:0;
  padding:10px 12px;
  border:1px solid rgba(1,95,192,.18);
  border-radius:10px;
  background:#eef6ff;
  color:#304663;
  font-weight:800;
}
.api-child-image-preview{
  min-height:98px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:10px;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  background:#fff;
}
.api-child-image-preview img{
  width:86px;
  height:78px;
  object-fit:contain;
  border-radius:9px;
  background:#f5f7fb;
}
.api-item-list-empty{
  grid-column:1/-1;
  padding:18px;
  border-radius:12px;
  background:#f0f6ff;
  color:#365fc4;
  text-align:center;
}
body.ui-dark .api-item-list-builder,
body.ui-dark .api-item-list-option{
  background:#111827;
  border-color:#26344d;
}
body.ui-dark .api-item-list-option-head,
body.ui-dark .api-child-image-preview{
  background:#111827;
}
body.ui-dark .api-item-list-editor{
  background:#101b2d;
  border-color:#26344d;
}
body.ui-dark .api-child-translate-switch{
  background:#10233b;
  border-color:#24466d;
  color:#d8e6f8;
}
body.ui-dark .api-item-list-builder-head strong,
body.ui-dark .api-item-list-switch,
body.ui-dark .api-item-list-copy strong{
  color:#e5edf8;
}
body.ui-dark .api-item-list-body{
  border-color:#26344d;
}
body.ui-dark .api-item-list-appearance-note{
  background:#10233b;
  border-color:#24466d;
  color:#c9d7ea;
}
body.ui-dark .api-item-list-appearance-note strong{
  color:#73b7ff;
}
@media(max-width:760px){
  .api-item-list-builder-head{display:block}
  .api-item-list-switch{margin-top:14px}
  #itemForm.item-list-mode .item-main-options-grid{grid-template-columns:1fr}
  .api-item-list-appearance-note{display:block}
  .api-item-list-appearance-note strong{display:block;margin-bottom:4px}
  .api-item-list-toolbar{grid-template-columns:1fr 1fr}
  .api-item-list-toolbar input{grid-column:1/-1}
  .api-item-list-options{grid-template-columns:1fr}
  .api-item-list-option-head{grid-template-columns:auto 44px minmax(0,1fr)}
  .api-item-list-edit{grid-column:2/-1}
  .api-item-list-editor-grid{grid-template-columns:1fr}
  .api-child-translate-switch{grid-column:auto}
}

/* V31: exact modifier/component content editor */
.modifier-child-row{align-items:stretch!important}
.modifier-content-editor{display:grid!important;grid-template-columns:126px minmax(280px,1fr);gap:14px;align-items:start!important;text-align:left!important}
.modifier-content-image{display:grid;gap:7px;justify-items:center}
.modifier-option-thumb.editable-thumb{width:112px;height:92px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#9aa3b7;font-weight:900}
.modifier-option-thumb.editable-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.modifier-image-upload{position:relative;overflow:hidden;width:112px;min-height:32px;padding:7px 8px!important;font-size:12px!important;justify-content:center}
.modifier-image-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.modifier-clear-image{font-size:11px;color:#778098;display:flex;align-items:center;gap:5px;white-space:nowrap}
.modifier-content-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;align-content:start}
.modifier-content-fields label{display:grid;gap:5px}
.modifier-content-fields label span{display:block!important;font-size:11px;font-weight:800;color:#788198;text-transform:uppercase;letter-spacing:.03em}
.modifier-content-fields input[type=text]{width:100%;min-height:40px;border:1px solid #dfe5ee;border-radius:9px;padding:9px 11px;background:#fff;color:#30384f;font-weight:750}
.modifier-content-fields input[type=text]:focus{outline:0;border-color:#73bda0;box-shadow:0 0 0 3px rgba(115,189,160,.14)}
.modifier-content-identity{grid-column:1/-1;font-size:11px;text-align:left!important}
body.ui-dark .modifier-content-fields input[type=text],body.ui-dark .modifier-option-thumb.editable-thumb{background:#111827;border-color:#2b3951;color:#e5edf8}
@media(max-width:1100px){.modifier-content-editor{grid-template-columns:108px minmax(240px,1fr)}.modifier-option-thumb.editable-thumb,.modifier-image-upload{width:98px}.modifier-child-row .modifier-option-actions{min-width:210px!important}}
@media(max-width:760px){.modifier-content-editor{grid-template-columns:1fr}.modifier-content-image{justify-items:start;grid-template-columns:98px minmax(100px,1fr);align-items:center}.modifier-clear-image{grid-column:1/-1}.modifier-content-fields{grid-template-columns:1fr}.modifier-content-identity{grid-column:auto}.modifier-child-row .modifier-option-actions{flex-wrap:wrap}}

.option-toggle-row .modifier-content-editor{text-align:left!important;justify-content:stretch!important}

/* V35 timeout-safe Import Menu progress */
.menu-import-progress{
  margin:14px 0 4px;
  padding:14px 16px;
  border:1px solid #dce4ef;
  border-radius:12px;
  background:#f8fafc;
}
.menu-import-progress[hidden]{display:none!important}
.menu-import-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.menu-import-progress-head b{font-size:14px;color:#293247}
.menu-import-progress-head span{font-weight:800;color:#63708a;font-variant-numeric:tabular-nums}
.menu-import-progress-track{height:10px;border-radius:999px;background:#e4e9f1;overflow:hidden}
.menu-import-progress-track>span{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#fdc636,#e8a900);transition:width .22s ease}
.menu-import-progress .small-note{display:block;margin-top:9px;line-height:1.45}
body.ui-dark .menu-import-progress{background:#121b31;border-color:rgba(255,255,255,.12)}
body.ui-dark .menu-import-progress-head b,body.ui-dark .menu-import-progress-head span{color:#eef3ff}
body.ui-dark .menu-import-progress-track{background:#2a344b}

/* Global Dynamic Modifier manager */
.btn.danger{background:var(--danger);color:#fff;box-shadow:0 8px 18px rgba(211,41,39,.14)}
.btn.danger:hover{background:#b81817}
.btn.compact{min-height:32px;padding:7px 10px;border-radius:8px;font-size:12px;white-space:nowrap}
.global-dynamic-card{margin-bottom:24px;overflow:visible}
.global-dynamic-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 24px;border-bottom:1px solid var(--line)}
.global-dynamic-head h2{margin:0 0 6px}
.global-dynamic-toolbar{display:flex;align-items:end;gap:10px;padding:18px 24px 10px;flex-wrap:wrap}
.global-dynamic-search{flex:1;min-width:280px;margin:0}
.global-dynamic-note{margin:8px 24px 14px;padding:12px 14px;border-radius:10px;background:#f7fbfd;border:1px solid #dceef7;color:#65708e;font-size:13px;line-height:1.5}
.global-dynamic-bulkbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 24px 16px}
.global-dynamic-table-wrap{overflow:auto;border-top:1px solid var(--line)}
.global-dynamic-table{min-width:1200px}
.global-dynamic-table th,.global-dynamic-table td{padding:14px 16px}
.global-check-col{width:46px}
.global-dynamic-table input[type='checkbox']{width:18px;height:18px;min-height:0;padding:0}
.global-row-disabled td{background:#fafbfe}
.global-dynamic-actions{min-width:230px}
.global-dynamic-actions form{display:flex;margin:0 0 6px}
.global-chip-wrap{display:flex;gap:5px;flex-wrap:wrap;max-width:260px}
.global-chip{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef6fb;color:#015FC0;font-size:11px;font-weight:800}
.modifier-picker-all{background:#f7fbfd;border:1px solid #dceef7;border-radius:10px;margin:4px 8px 10px}
.disabled-toggle{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.global-dynamic-head{flex-direction:column}.global-dynamic-toolbar{align-items:stretch}.global-dynamic-search{min-width:100%}}

/* Global Menu Manager 2026-08-10 */
.global-manager-shell{margin:18px 0 28px;background:#f7f9fc;border:1px solid #e3e8f0;border-radius:20px;overflow:hidden;box-shadow:0 12px 32px rgba(34,49,82,.08)}
.global-manager-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 28px;background:linear-gradient(135deg,#fff 0%,#f4f8fb 100%);border-bottom:1px solid #e3e8f0}
.global-manager-kicker{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.14em;color:#0f6d94;margin-bottom:7px}
.global-manager-hero h2{margin:0 0 7px;font-size:27px;color:#233252}
.global-manager-hero p{margin:0;max-width:760px;color:#6b7590;line-height:1.55}
.global-manager-sync-note{min-width:210px;padding:13px 16px;border-radius:13px;background:#eef8fb;border:1px solid #cfe9f2;color:#587189;font-size:12px;line-height:1.55}
.global-manager-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 22px 10px}
.global-stat{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:16px 18px;background:#fff;border:1px solid #e2e7ef;border-radius:14px;text-decoration:none;color:#293653;transition:.15s ease}
.global-stat:hover{transform:translateY(-1px);border-color:#bfd8e3;box-shadow:0 6px 16px rgba(35,52,82,.08)}
.global-stat.active{border-color:#64bfdc;background:#f0fbff;box-shadow:0 0 0 2px rgba(74,178,211,.08)}
.global-stat span{font-size:13px;font-weight:800}.global-stat b{grid-row:1/3;grid-column:2;font-size:30px;line-height:1;color:#0d76a0;align-self:center}.global-stat small{color:#8290a6;font-size:11px}
.global-manager-tabs{display:flex;gap:7px;padding:10px 22px 0}
.global-manager-tabs a{padding:10px 18px;border-radius:11px 11px 0 0;text-decoration:none;color:#64718a;font-weight:800;background:#edf1f6;border:1px solid transparent;border-bottom:0}
.global-manager-tabs a.active{background:#fff;color:#223253;border-color:#dfe5ed}
.global-manager-toolbar{display:flex;align-items:flex-end;gap:10px;padding:18px 22px;background:#fff;border-top:1px solid #dfe5ed}
.global-manager-search{display:flex;flex-direction:column;gap:7px;flex:1;min-width:280px;font-weight:700;color:#596782;font-size:12px}
.global-manager-search input{height:43px;border-radius:11px;border:1px solid #d7dee8;background:#fbfcfe;padding:0 14px}
.global-manager-tip{margin:0 22px 14px;padding:12px 15px;border-radius:12px;background:#fff8e9;border:1px solid #f0dfb7;color:#6b6047;font-size:12px;line-height:1.55}
.global-manager-bulkbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:0 22px 15px}
.global-manager-list{padding:0 22px 22px;display:flex;flex-direction:column;gap:10px}
.global-manager-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:14px;align-items:start;padding:16px 17px;background:#fff;border:1px solid #e1e7ee;border-radius:15px;box-shadow:0 2px 7px rgba(31,49,79,.035)}
.global-manager-row.disabled{background:#fbfbfc;opacity:.9}.global-manager-row:hover{border-color:#c8d6e3}
.global-manager-check{padding-top:4px}.global-manager-check input{width:18px;height:18px;min-height:0;padding:0}
.global-manager-main{min-width:0}.global-manager-titleline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.global-manager-titleline h3{margin:0;color:#263550;font-size:16px}
.status-pill{display:inline-flex;align-items:center;height:25px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.status-pill.on{background:#e8f7ef;color:#208354}.status-pill.off{background:#f8eaea;color:#a64b4b}.status-pill.partial{background:#fff3d9;color:#9a7117}
.global-manager-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}.global-chip,.global-id-chip,.global-usage-count{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:8px;font-size:10px;font-weight:700}.global-chip{background:#edf7fb;color:#247a9a}.global-id-chip{background:#f0f2f6;color:#68738a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.global-usage-count{background:#f7f4ff;color:#7157a7}
.global-manager-parent-preview{margin-top:8px;font-size:11px;color:#7b879b;white-space:normal;line-height:1.45}
.global-manager-actions{display:flex;align-items:flex-start;gap:7px;min-width:145px;justify-content:flex-end}.global-manager-actions.two-actions{min-width:230px;flex-direction:column}.global-manager-actions form{margin:0;display:flex;justify-content:flex-end;width:100%}
.global-usage-details{margin-top:12px;border-top:1px dashed #dce3eb;padding-top:10px}.global-usage-details summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-weight:800;color:#33445e;list-style:none}.global-usage-details summary::-webkit-details-marker{display:none}.global-usage-details summary:before{content:'+';display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#eef5f8;color:#327f9d;font-size:16px}.global-usage-details[open] summary:before{content:'−'}.global-usage-details summary span{font-weight:500;color:#8994a7;font-size:11px}
.global-usage-form{padding-top:11px}.global-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:350px;overflow:auto;padding-right:4px}.global-usage-choice{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 11px;border:1px solid #e2e7ee;border-radius:10px;background:#fafcff;cursor:pointer}.global-usage-choice.disabled{background:#f8eeee;border-color:#ecd8d8}.global-usage-choice input{width:17px;height:17px;min-height:0;padding:0}.global-usage-choice span{display:flex;flex-direction:column;min-width:0}.global-usage-choice b{font-size:11px;color:#34435b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-usage-choice small{font-size:9px;color:#8994a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-usage-choice em{font-size:9px;font-style:normal;color:#758198}.global-usage-choice.disabled em{color:#a45757}
.global-usage-actions{display:flex;gap:8px;margin-top:10px}.global-inline-warning{margin-bottom:9px;padding:9px 11px;border-radius:9px;background:#fff4e4;border:1px solid #efd3a6;color:#866535;font-size:10px}
@media(max-width:1050px){.global-manager-stats{grid-template-columns:1fr}.global-manager-row{grid-template-columns:28px 1fr}.global-manager-actions{grid-column:2;justify-content:flex-start;min-width:0}.global-manager-actions.two-actions{min-width:0;flex-direction:row}.global-manager-actions form{width:auto}.global-usage-grid{grid-template-columns:1fr}}
@media(max-width:760px){.global-manager-hero{flex-direction:column;align-items:stretch}.global-manager-sync-note{min-width:0}.global-manager-toolbar{align-items:stretch;flex-direction:column}.global-manager-search{min-width:0;width:100%}.global-manager-tabs{overflow:auto}.global-manager-row{padding:13px}.global-manager-list,.global-manager-stats,.global-manager-toolbar{padding-left:14px;padding-right:14px}.global-manager-tip,.global-manager-bulkbar{margin-left:14px;margin-right:14px;padding-left:0;padding-right:0}}
.global-manager-filterchips{display:flex;gap:7px;flex-wrap:wrap;padding:0 22px 14px}.global-manager-filterchips a{padding:7px 11px;border-radius:999px;background:#edf1f6;color:#68748a;text-decoration:none;font-size:10px;font-weight:800;border:1px solid #e1e6ed}.global-manager-filterchips a.active{background:#263957;color:#fff;border-color:#263957}

/* ==========================================================
   AVX Global Menu Manager V2 - unified portal theme + dark mode
   ========================================================== */
.global-manager-shell{
  margin:18px 0 28px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  box-shadow:none!important;
  color:var(--avx-ink)!important;
  font-family:inherit!important;
}
.global-manager-hero{
  display:flex;justify-content:space-between;gap:24px;align-items:center;
  padding:22px 24px!important;
  background:var(--avx-panel-solid)!important;
  border:1px solid var(--avx-border)!important;
  border-radius:18px!important;
  box-shadow:var(--avx-shadow-soft)!important;
  margin-bottom:14px!important;
}
.global-manager-kicker{color:var(--primary)!important;font-size:11px!important;font-weight:900!important;letter-spacing:.12em!important}
.global-manager-hero h2{color:var(--avx-ink)!important;font-size:24px!important;margin:0 0 6px!important}
.global-manager-hero p{color:var(--avx-ink-soft)!important;margin:0!important}
.global-manager-sync-note{
  min-width:230px!important;padding:12px 15px!important;border-radius:12px!important;
  background:rgba(1,95,192,.06)!important;border:1px solid rgba(1,95,192,.14)!important;
  color:var(--avx-ink-soft)!important;font-size:12px!important
}
.global-manager-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;padding:0!important;margin:0 0 14px!important}
.global-stat{
  display:grid!important;grid-template-columns:1fr auto!important;gap:5px 12px!important;
  padding:16px 18px!important;background:var(--avx-panel-solid)!important;border:1px solid var(--avx-border)!important;
  border-radius:16px!important;text-decoration:none!important;color:var(--avx-ink)!important;box-shadow:var(--avx-shadow-soft)!important
}
.global-stat:hover{transform:translateY(-1px)!important;border-color:rgba(1,95,192,.28)!important;box-shadow:var(--avx-shadow)!important}
.global-stat.active{border-color:rgba(1,95,192,.38)!important;background:rgba(1,95,192,.055)!important;box-shadow:0 0 0 2px rgba(1,95,192,.06),var(--avx-shadow-soft)!important}
.global-stat span{font-size:13px!important;font-weight:900!important;color:var(--avx-ink)!important}
.global-stat b{font-size:29px!important;color:var(--primary)!important}
.global-stat small{color:var(--avx-ink-soft)!important;font-size:11px!important}
.global-manager-tabs{
  display:flex!important;gap:8px!important;padding:10px 10px 0!important;
  background:var(--avx-panel-solid)!important;border:1px solid var(--avx-border)!important;border-bottom:0!important;
  border-radius:16px 16px 0 0!important
}
.global-manager-tabs a{
  padding:10px 16px!important;border-radius:10px!important;background:transparent!important;
  color:var(--avx-ink-soft)!important;border:1px solid transparent!important;font-weight:900!important
}
.global-manager-tabs a:hover{background:rgba(1,95,192,.05)!important;color:var(--primary)!important}
.global-manager-tabs a.active{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important;box-shadow:0 8px 18px rgba(1,95,192,.14)!important}
.global-manager-toolbar{
  display:flex!important;align-items:flex-end!important;gap:10px!important;padding:16px 18px!important;
  background:var(--avx-panel-solid)!important;border:1px solid var(--avx-border)!important;border-top:0!important
}
.global-manager-search{color:var(--avx-ink-soft)!important;font-weight:800!important}
.global-manager-search input{background:var(--avx-panel-solid)!important;color:var(--avx-ink)!important;border:1px solid var(--avx-border)!important;box-shadow:none!important}
.global-manager-tip{
  margin:0!important;padding:12px 16px!important;border:1px solid rgba(1,95,192,.12)!important;border-top:0!important;
  border-radius:0!important;background:rgba(1,95,192,.035)!important;color:var(--avx-ink-soft)!important;font-size:12px!important
}
.global-manager-filterchips{padding:12px 16px!important;margin:0!important;background:var(--avx-panel-solid)!important;border-left:1px solid var(--avx-border)!important;border-right:1px solid var(--avx-border)!important}
.global-manager-filterchips a{background:var(--avx-bg-2)!important;color:var(--avx-ink-soft)!important;border-color:var(--avx-border)!important}
.global-manager-filterchips a.active{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
.global-manager-bulkbar{
  margin:0!important;padding:12px 16px 14px!important;background:var(--avx-panel-solid)!important;
  border-left:1px solid var(--avx-border)!important;border-right:1px solid var(--avx-border)!important
}
.global-manager-list{
  padding:0 16px 18px!important;background:var(--avx-panel-solid)!important;
  border:1px solid var(--avx-border)!important;border-top:0!important;border-radius:0 0 16px 16px!important;box-shadow:var(--avx-shadow-soft)!important
}
.global-manager-row{
  padding:15px 16px!important;background:var(--avx-panel-solid)!important;border:1px solid var(--avx-border)!important;
  border-radius:14px!important;box-shadow:none!important;color:var(--avx-ink)!important
}
.global-manager-row:hover{border-color:rgba(1,95,192,.24)!important;background:rgba(1,95,192,.018)!important}
.global-manager-row.disabled{background:var(--avx-bg-2)!important;opacity:.88!important}
.global-manager-titleline h3{color:var(--avx-ink)!important;font-size:16px!important}
.global-manager-parent-preview{color:var(--avx-ink-soft)!important}
.global-chip{background:rgba(1,95,192,.065)!important;color:var(--primary)!important}
.global-id-chip{background:var(--avx-bg-2)!important;color:var(--avx-ink-soft)!important}
.global-usage-count{background:rgba(115,198,155,.12)!important;color:#3b7d5c!important}
.global-usage-details{margin-top:12px!important;border:1px solid var(--avx-border)!important;border-radius:12px!important;background:var(--avx-bg)!important;overflow:hidden!important}
.global-usage-details summary{padding:12px 14px!important;cursor:pointer!important;color:var(--avx-ink)!important;font-weight:900!important;background:var(--avx-bg-2)!important}
.global-usage-details summary span{font-weight:700!important;color:var(--avx-ink-soft)!important;margin-left:7px!important}
.global-usage-form{padding:14px!important}
.global-usage-selectbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--avx-border)}
.global-usage-selectbar .muted{margin-left:auto!important;font-weight:800!important}
.global-usage-choice{background:var(--avx-panel-solid)!important;border:1px solid var(--avx-border)!important;color:var(--avx-ink)!important}
.global-usage-choice:hover{border-color:rgba(1,95,192,.25)!important}
.global-usage-choice small{color:var(--avx-ink-soft)!important}
.global-usage-choice em{color:var(--avx-ink-soft)!important}
.global-inline-warning{background:rgba(253,198,54,.12)!important;border:1px solid rgba(253,198,54,.32)!important;color:var(--avx-ink)!important;border-radius:10px!important}

/* Dark mode: keep the manager identical to the rest of the portal. */
body.ui-dark .global-manager-shell{color:#edf4ff!important}
body.ui-dark .global-manager-hero,
body.ui-dark .global-stat,
body.ui-dark .global-manager-tabs,
body.ui-dark .global-manager-toolbar,
body.ui-dark .global-manager-filterchips,
body.ui-dark .global-manager-bulkbar,
body.ui-dark .global-manager-list,
body.ui-dark .global-manager-row,
body.ui-dark .global-usage-choice{
  background:rgba(17,33,66,.92)!important;color:#edf4ff!important;border-color:rgba(158,181,230,.14)!important
}
body.ui-dark .global-manager-hero h2,
body.ui-dark .global-stat span,
body.ui-dark .global-manager-titleline h3,
body.ui-dark .global-usage-details summary{color:#f7fbff!important}
body.ui-dark .global-manager-hero p,
body.ui-dark .global-manager-sync-note,
body.ui-dark .global-stat small,
body.ui-dark .global-manager-search,
body.ui-dark .global-manager-parent-preview,
body.ui-dark .global-usage-details summary span,
body.ui-dark .global-usage-choice small,
body.ui-dark .global-usage-choice em{color:#aebce0!important}
body.ui-dark .global-manager-sync-note{background:rgba(0,184,192,.07)!important;border-color:rgba(0,184,192,.20)!important}
body.ui-dark .global-stat.active{background:rgba(0,184,192,.08)!important;border-color:rgba(0,184,192,.34)!important}
body.ui-dark .global-stat b{color:#61d9df!important}
body.ui-dark .global-manager-tabs a{color:#aebce0!important}
body.ui-dark .global-manager-tabs a:hover{background:rgba(0,184,192,.07)!important;color:#61d9df!important}
body.ui-dark .global-manager-tabs a.active{background:#00B8C0!important;color:#071226!important;border-color:#00B8C0!important}
body.ui-dark .global-manager-tip{background:rgba(0,184,192,.045)!important;color:#aebce0!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .global-manager-search input{background:#0b1730!important;color:#f4f8ff!important;border-color:rgba(158,181,230,.20)!important}
body.ui-dark .global-manager-filterchips a{background:#0b1730!important;color:#b9c7e5!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .global-manager-filterchips a.active{background:#00B8C0!important;color:#071226!important;border-color:#00B8C0!important}
body.ui-dark .global-manager-row:hover{background:rgba(0,184,192,.04)!important;border-color:rgba(0,184,192,.24)!important}
body.ui-dark .global-manager-row.disabled{background:rgba(9,21,54,.72)!important}
body.ui-dark .global-chip{background:rgba(0,184,192,.10)!important;color:#7fe8ec!important}
body.ui-dark .global-id-chip{background:#0b1730!important;color:#b9c7e5!important}
body.ui-dark .global-usage-count{background:rgba(115,198,155,.10)!important;color:#9de0bf!important}
body.ui-dark .global-usage-details{background:#0b1730!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .global-usage-details summary{background:rgba(20,42,81,.78)!important}
body.ui-dark .global-usage-selectbar{border-bottom-color:rgba(158,181,230,.14)!important}
body.ui-dark .global-inline-warning{background:rgba(253,198,54,.08)!important;color:#f6dda0!important;border-color:rgba(253,198,54,.25)!important}

@media(max-width:1050px){.global-manager-stats{grid-template-columns:1fr!important}}
@media(max-width:760px){
  .global-manager-hero{flex-direction:column!important;align-items:stretch!important}
  .global-manager-sync-note{min-width:0!important}
  .global-manager-toolbar{align-items:stretch!important;flex-direction:column!important}
  .global-manager-tabs{overflow:auto!important}
  .global-usage-selectbar .muted{margin-left:0!important;width:100%!important}
}

/* ==========================================================
   AVX Global Menu Manager V3 - same visual language as portal tables
   ========================================================== */
.global-manager-shell{margin:18px 0 28px!important;font-family:inherit!important}
.global-manager-kicker{display:none!important}
.global-manager-hero{
  padding:20px 24px!important;margin:0 0 16px!important;
  background:var(--avx-panel-solid,#fff)!important;
  border:1px solid var(--avx-border,#edf0f7)!important;
  border-radius:16px!important;
  box-shadow:var(--restaurant-shadow,0 18px 42px rgba(38,48,71,.08))!important
}
.global-manager-hero h2{font-size:21px!important;color:var(--restaurant-ink,#263047)!important;margin:0 0 5px!important;letter-spacing:.1px!important}
.global-manager-hero p{font-size:13px!important;color:var(--avx-ink-soft,#7a839b)!important;line-height:1.45!important}
.global-manager-sync-note{background:var(--avx-bg-2,#f7f8fc)!important;border-color:var(--avx-border,#e6eaf4)!important;color:var(--avx-ink-soft,#65708d)!important;border-radius:12px!important}
/* Counts were visually noisy and unlike the rest of the portal. The tabs already
   provide the navigation; keep the page compact and familiar. */
.global-manager-stats{display:none!important}
.global-manager-tabs{
  display:flex!important;gap:10px!important;flex-wrap:wrap!important;
  padding:0!important;margin:-2px 0 16px!important;
  background:transparent!important;border:0!important;border-radius:0!important
}
.global-manager-tabs a{
  display:inline-flex!important;align-items:center!important;gap:8px!important;
  padding:10px 16px!important;border-radius:999px!important;
  background:var(--avx-panel-solid,#fff)!important;
  color:#65708d!important;border:1px solid var(--avx-border,#e6eaf4)!important;
  box-shadow:0 10px 24px rgba(38,48,71,.04)!important;
  text-decoration:none!important;font-weight:800!important
}
.global-manager-tabs a:hover{background:var(--avx-panel-solid,#fff)!important;color:var(--primary)!important;border-color:rgba(1,95,192,.24)!important}
.global-manager-tabs a.active{background:linear-gradient(135deg,var(--primary),#6f7fff)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 12px 28px rgba(1,95,192,.22)!important}
.global-manager-toolbar{
  margin:0 0 14px!important;padding:16px 18px!important;
  background:var(--avx-panel-solid,#fff)!important;
  border:1px solid var(--avx-border,#edf0f7)!important;border-radius:16px!important;
  box-shadow:var(--restaurant-shadow,0 18px 42px rgba(38,48,71,.08))!important
}
.global-manager-search span{color:var(--avx-ink-soft,#6b70a0)!important;font-size:13px!important;font-weight:700!important}
.global-manager-search input{border-radius:12px!important;background:var(--avx-panel-solid,#fff)!important}
.global-manager-tip{
  margin:0 0 12px!important;padding:13px 16px!important;
  border:1px solid var(--avx-border,#edf0f7)!important;border-radius:14px!important;
  background:var(--avx-panel-solid,#fff)!important;color:var(--avx-ink-soft,#65708d)!important;
  box-shadow:0 10px 24px rgba(38,48,71,.035)!important
}
.global-manager-filterchips{
  padding:0!important;margin:0 0 12px!important;background:transparent!important;border:0!important
}
.global-manager-filterchips a{
  padding:9px 13px!important;border-radius:999px!important;
  background:var(--avx-panel-solid,#fff)!important;color:#65708d!important;
  border:1px solid var(--avx-border,#e6eaf4)!important;box-shadow:0 8px 18px rgba(38,48,71,.03)!important
}
.global-manager-filterchips a.active{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
.global-manager-bulkbar{
  margin:0 0 12px!important;padding:14px 16px!important;
  background:var(--avx-panel-solid,#fff)!important;border:1px solid var(--avx-border,#edf0f7)!important;
  border-radius:14px!important;box-shadow:0 10px 24px rgba(38,48,71,.035)!important
}
/* Render results like the normal portal tables instead of a separate card system. */
.global-manager-list{
  padding:0!important;margin:0!important;display:block!important;
  background:var(--avx-panel-solid,#fff)!important;border:1px solid var(--avx-border,#edf0f7)!important;
  border-radius:16px!important;overflow:hidden!important;
  box-shadow:var(--restaurant-shadow,0 18px 42px rgba(38,48,71,.08))!important
}
.global-manager-row{
  display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;
  gap:14px!important;align-items:center!important;
  padding:16px 20px!important;margin:0!important;
  background:var(--avx-panel-solid,#fff)!important;border:0!important;border-bottom:1px solid var(--avx-border,#eef1f7)!important;
  border-radius:0!important;box-shadow:none!important
}
.global-manager-row:last-of-type{border-bottom:0!important}
.global-manager-row:hover{background:var(--avx-bg-2,#fbfcff)!important}
.global-manager-row.disabled{background:var(--avx-bg-2,#f7f8fc)!important;opacity:.92!important}
.global-manager-titleline h3{font-size:15px!important;color:var(--restaurant-ink,#303952)!important}
.global-manager-meta{margin-top:7px!important}
.global-manager-parent-preview{margin-top:6px!important;font-size:11px!important;color:var(--avx-ink-soft,#7b879b)!important}
.global-chip,.global-id-chip,.global-usage-count{border-radius:999px!important;min-height:24px!important;padding:4px 9px!important}
.global-manager-actions{align-self:center!important}
.global-manager-actions .btn.compact,.global-usage-actions .btn.compact,.global-usage-selectbar .btn.compact{min-height:34px!important;padding:7px 11px!important;font-size:11px!important}
.global-usage-details{margin-top:11px!important;border:1px solid var(--avx-border,#e6eaf4)!important;border-radius:12px!important;background:var(--avx-panel-solid,#fff)!important}
.global-usage-details summary{background:var(--avx-bg-2,#fbfcff)!important;color:var(--restaurant-ink,#303952)!important;padding:10px 12px!important}
.global-usage-grid{gap:8px!important}
.global-usage-choice{background:var(--avx-panel-solid,#fff)!important;border-color:var(--avx-border,#e6eaf4)!important;border-radius:10px!important}
.global-usage-choice:hover{background:var(--avx-bg-2,#fbfcff)!important}
.global-usage-choice b{color:var(--restaurant-ink,#303952)!important}
.global-usage-selectbar{margin-bottom:10px!important}
.global-inline-warning{border-radius:10px!important}

body.ui-dark .global-manager-hero,
body.ui-dark .global-manager-toolbar,
body.ui-dark .global-manager-tip,
body.ui-dark .global-manager-bulkbar,
body.ui-dark .global-manager-list,
body.ui-dark .global-manager-row,
body.ui-dark .global-manager-filterchips a,
body.ui-dark .global-manager-tabs a,
body.ui-dark .global-usage-details,
body.ui-dark .global-usage-choice{background:#101d38!important;border-color:rgba(158,181,230,.14)!important;color:#edf4ff!important}
body.ui-dark .global-manager-row:hover,
body.ui-dark .global-usage-choice:hover,
body.ui-dark .global-usage-details summary{background:#14264a!important}
body.ui-dark .global-manager-tabs a{color:#b8c5e2!important}
body.ui-dark .global-manager-tabs a.active{background:linear-gradient(135deg,#00B8C0,#556de8)!important;color:#fff!important;border-color:transparent!important}
body.ui-dark .global-manager-hero h2,
body.ui-dark .global-manager-titleline h3,
body.ui-dark .global-usage-choice b{color:#f5f8ff!important}
body.ui-dark .global-manager-hero p,
body.ui-dark .global-manager-search span,
body.ui-dark .global-manager-parent-preview,
body.ui-dark .global-usage-choice small,
body.ui-dark .global-usage-choice em{color:#aebce0!important}
body.ui-dark .global-manager-search input{background:#0b1730!important;color:#f4f8ff!important;border-color:rgba(158,181,230,.20)!important}
body.ui-dark .global-manager-row.disabled{background:#0c1830!important}

@media(max-width:1050px){
  .global-manager-row{grid-template-columns:30px minmax(0,1fr)!important}
  .global-manager-actions{grid-column:2!important;justify-content:flex-start!important}
}
@media(max-width:760px){
  .global-manager-hero{padding:17px!important}
  .global-manager-toolbar{padding:14px!important}
  .global-manager-row{padding:14px!important}
}


/* 2026-08-11 exact per-meal sandwich recipe controls */
.recipe-ingredient-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.recipe-toggle-block{display:flex;align-items:center;gap:8px;min-height:34px}
.recipe-ingredient-actions .badge{white-space:nowrap}
@media (max-width:900px){.recipe-ingredient-actions{justify-content:flex-start}.recipe-toggle-block{width:100%;justify-content:space-between}}

/* 2026-08-11 Sandwich Recipe compact + fast UI */
/* Always constrain modifier thumbnails. The old rule allowed natural-size images to overflow. */
.modifier-option-thumb{overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;color:#9aa4b8;font-weight:900}
.modifier-option-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}

.recipe-editor-surface{padding:0!important;background:#f8fafc!important;border:0!important;overflow:visible}
.recipe-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px 20px;margin-bottom:12px;background:#fff;border:1px solid #e7edf5;border-radius:16px;box-shadow:0 8px 24px rgba(28,39,61,.04)}
.recipe-kicker{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;margin-bottom:7px;border-radius:999px;background:#eef8f4;color:#14845c;font-size:11px;font-weight:900;letter-spacing:.02em;text-transform:uppercase}
.recipe-hero h4{margin:0 0 6px!important;font-size:20px!important;color:#27324a!important}
.recipe-hero .muted{max-width:650px;font-size:13px!important;line-height:1.55!important}
.recipe-behavior-guide{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;justify-content:flex-end}
.recipe-behavior-guide>span{display:flex;flex-direction:column;justify-content:center;min-width:142px;padding:10px 12px;border:1px solid #e4ebf3;border-radius:12px;background:#f9fbfd}
.recipe-behavior-guide b{font-size:12px;color:#334155}
.recipe-behavior-guide small{margin-top:3px;color:#6c7a91;font-size:11px;white-space:nowrap}
.recipe-search{display:block;margin:0 0 12px}
.recipe-search>span{display:none!important}
.recipe-search input{width:100%;min-height:44px!important;padding:0 14px!important;border:1px solid #dfe7f1!important;border-radius:12px!important;background:#fff!important;color:#27324a!important;box-shadow:none!important}
.recipe-search input:focus{border-color:#94d7c2!important;box-shadow:0 0 0 3px rgba(111,199,154,.12)!important;outline:none!important}
.recipe-groups{display:grid;gap:12px}
.recipe-group-card{content-visibility:auto;contain-intrinsic-size:190px;background:#fff;border:1px solid #e7edf5;border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(28,39,61,.035)}
.recipe-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid #edf2f7;background:#fbfcfe}
.recipe-group-head h4{margin:0 0 2px!important;font-size:15px!important;color:#2d3850!important}
.recipe-group-head .muted{font-size:11px!important}
.recipe-count{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;padding:0 9px;border-radius:999px;background:#eef6fb;color:#015fc0;font-size:12px;font-weight:900}
.recipe-ingredient-list{display:block}
.recipe-ingredient-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,auto);align-items:center;gap:16px;min-height:76px;padding:11px 16px;border-bottom:1px solid #edf2f7;background:#fff;contain:layout style paint}
.recipe-ingredient-row:last-child{border-bottom:0}
.recipe-ingredient-row:hover{background:#fcfefd}
.recipe-ingredient-info{display:flex;align-items:center;gap:12px;min-width:0}
.recipe-ingredient-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#f0f6fa;border:1px solid #e3ebf3;color:#52627a;font-size:16px;font-weight:950}
.recipe-ingredient-copy{min-width:0;text-align:left!important}
.recipe-ingredient-copy>b{display:block;color:#344057!important;font-size:14px!important;font-weight:900!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recipe-ingredient-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:4px;color:#7a879a;font-size:11px;line-height:1.35}
.recipe-ingredient-meta span+span:before{content:"•";margin-right:7px;color:#b1bac7}
.recipe-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.recipe-control{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:150px;padding:7px 9px;border:1px solid #e8eef5;border-radius:11px;background:#f9fbfd}
.recipe-control-copy{display:flex;flex-direction:column;min-width:0}
.recipe-control-copy>b{color:#42506a;font-size:11px;font-weight:900;line-height:1.1}
.recipe-state{margin-top:2px;color:#98a3b3;font-size:10px;font-weight:800;line-height:1.1}
.recipe-state.is-on{color:#16845d}
.recipe-switch{width:42px!important;height:25px!important;flex:0 0 42px}
.recipe-switch span:before{width:19px!important;height:19px!important;left:3px!important;top:3px!important}
.recipe-switch input:checked+span:before{transform:translateX(17px)!important}
.recipe-switch input:checked+span{background:#6fc79a!important}
.recipe-switch input:disabled+span{opacity:.48;cursor:not-allowed}
.recipe-global-off{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 8px;border-radius:9px;background:#fff4e8;color:#a45b14;font-size:10px;font-weight:900;white-space:nowrap}
.recipe-save-bar{position:sticky;bottom:-1px;z-index:5;margin-top:12px;padding:10px 0 2px;background:linear-gradient(180deg,rgba(248,250,252,0),#f8fafc 32%)}
.recipe-save-bar .btn{min-height:44px!important;border-radius:12px!important}

body.ui-dark .recipe-editor-surface{background:#0e1728!important}
body.ui-dark .recipe-hero,body.ui-dark .recipe-group-card,body.ui-dark .recipe-ingredient-row{background:#111c30!important;border-color:#263650!important}
body.ui-dark .recipe-group-head,body.ui-dark .recipe-control,body.ui-dark .recipe-behavior-guide>span{background:#142139!important;border-color:#2a3a55!important}
body.ui-dark .recipe-hero h4,body.ui-dark .recipe-group-head h4,body.ui-dark .recipe-ingredient-copy>b,body.ui-dark .recipe-control-copy>b{color:#edf4ff!important}
body.ui-dark .recipe-ingredient-row,body.ui-dark .recipe-group-head{border-bottom-color:#263650!important}
body.ui-dark .recipe-ingredient-icon{background:#16243d;border-color:#2d3d58;color:#d7e3f8}
body.ui-dark .recipe-search input{background:#111c30!important;border-color:#2a3a55!important;color:#edf4ff!important}
body.ui-dark .recipe-save-bar{background:linear-gradient(180deg,rgba(14,23,40,0),#0e1728 32%)}

@media(max-width:900px){
  .recipe-hero{grid-template-columns:1fr}
  .recipe-behavior-guide{justify-content:flex-start}
  .recipe-ingredient-row{grid-template-columns:1fr;gap:10px}
  .recipe-controls{justify-content:flex-start;flex-wrap:wrap}
  .recipe-control{flex:1 1 145px}
}
@media(max-width:560px){
  .recipe-hero{padding:15px}
  .recipe-ingredient-row{padding:11px 12px}
  .recipe-controls{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .recipe-control{min-width:0}
  .recipe-global-off{grid-column:1/-1}
}

/* Sandwich Recipe V3: fast collapsed groups + exact WPF auxiliary rows */
.recipe-section-label{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 2px 8px;color:#334155}
.recipe-section-label>b{font-size:13px;font-weight:950}.recipe-section-label>span{font-size:11px;color:#7b879a;text-align:right}
.recipe-section-secondary{margin-top:18px}
details.recipe-group-card{content-visibility:visible;contain:layout style paint}
details.recipe-group-card>summary{list-style:none;cursor:pointer;user-select:none}
details.recipe-group-card>summary::-webkit-details-marker{display:none}
details.recipe-group-card>summary:after{content:'›';display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-left:8px;border-radius:50%;background:#eef3f8;color:#516176;font-size:20px;font-weight:900;transform:rotate(90deg);transition:transform .12s ease;flex:0 0 25px}
details.recipe-group-card[open]>summary:after{transform:rotate(-90deg)}
details.recipe-group-card:not([open]) .recipe-ingredient-list,details.recipe-group-card:not([open]) .recipe-aux-option-list{display:none}
.recipe-group-head>div:first-child{min-width:0;flex:1}
.recipe-group-head .recipe-count{margin-left:auto}
.recipe-aux-title-line{display:flex;align-items:center;gap:8px;min-width:0}.recipe-aux-title-line h4{margin:0!important}
.recipe-type-badge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.03em;background:#eef6fb;color:#1768a5}
.recipe-type-badge.required{background:#fff5df;color:#9a6500}.recipe-type-badge.special{background:#f3edff;color:#6945a5}
.recipe-aux-option-list{display:block}.recipe-aux-option{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:10px 16px;border-bottom:1px solid #edf2f7;background:#fff;contain:layout style paint}.recipe-aux-option:last-child{border-bottom:0}.recipe-aux-option>b,.recipe-aux-option>div>b{font-size:13px;color:#344057}
.recipe-active-pill{display:inline-flex;align-items:center;justify-content:center;min-width:66px;min-height:26px;padding:4px 9px;border-radius:999px;background:#f0f2f5;color:#8b96a7;font-size:10px;font-weight:900}.recipe-active-pill.is-on{background:#e8f7f0;color:#17845e}
.recipe-aux-card{border-style:dashed}
body.ui-dark .recipe-aux-option{background:#111c30;border-bottom-color:#263650}body.ui-dark .recipe-aux-option>div>b{color:#edf4ff}body.ui-dark details.recipe-group-card>summary:after{background:#1b2a43;color:#d8e4f5}
@media(max-width:760px){.recipe-section-label{align-items:flex-start;flex-direction:column}.recipe-section-label>span{text-align:left}.recipe-aux-option{align-items:flex-start;flex-direction:column}.recipe-active-pill{align-self:flex-start}}

.modifier-local-bulkbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:1px solid #e5ebf3;border-radius:13px;background:#fff}
.modifier-source-details[hidden],.modifier-child-row[hidden]{display:none!important}
.modifier-local-bulkbar>div{display:flex;flex-direction:column;gap:2px;min-width:240px;margin-right:auto}.modifier-local-bulkbar>div>b{color:#334155;font-size:13px;font-weight:950}.modifier-local-bulkbar>div>span{color:#7b879a;font-size:11px;line-height:1.35}.recipe-local-bulkbar{margin-bottom:12px}.recipe-aux-visibility{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.modifier-group-bulkbar{margin:0;padding:9px 12px;border-width:0 0 1px;border-radius:0;background:#fbfcfe}
.modifier-group-bulkbar>div{min-width:180px}.modifier-group-bulkbar .btn{min-height:30px!important;padding:5px 10px!important}.modifier-group-bulkbar .muted{font-size:11px}
.recipe-group-bulkbar{border-top:1px solid #edf2f7}
body.ui-dark .modifier-local-bulkbar{background:#0f203e!important;border-color:rgba(158,181,230,.16)!important}body.ui-dark .modifier-local-bulkbar>div>b{color:#f3f8ff!important}body.ui-dark .modifier-local-bulkbar>div>span{color:#9fb0cf!important}
body.ui-dark .modifier-group-bulkbar{background:#122746!important;border-color:rgba(158,181,230,.16)!important}
@media(max-width:760px){.modifier-local-bulkbar{align-items:stretch}.modifier-local-bulkbar>div{width:100%;min-width:0}.modifier-local-bulkbar .btn{flex:1 1 auto}.recipe-aux-visibility{width:100%;justify-content:space-between}}

/* ==========================================================
   AVX UI V31 - FINAL DARK MODE NORMALIZATION (2026-08-12)
   Authoritative final layer. Keep this block at the END of app.css.
   Purpose: all portal pages + all modal/drawer surfaces, especially
   Modifiers, Recipe, Dynamic Modifiers, Status/Price and API pickers.
   ========================================================== */
html.ui-dark,
body.ui-dark{
  color-scheme:dark;
}
body.ui-dark{
  --avx-bg:#071226!important;
  --avx-bg-2:#0a1831!important;
  --avx-panel:rgba(13,29,57,.94)!important;
  --avx-panel-solid:#0d1d39!important;
  --avx-ink:#f5f9ff!important;
  --avx-ink-soft:#aebce0!important;
  --avx-border:rgba(158,181,230,.17)!important;
  --avx-shadow:0 22px 58px rgba(0,0,0,.28)!important;
  --avx-shadow-soft:0 12px 34px rgba(0,0,0,.20)!important;
  --soft:#071226!important;
  --card:#0d1d39!important;
  --text:#edf4ff!important;
  --muted:#aebce0!important;
  --line:rgba(158,181,230,.14)!important;
  background:
    radial-gradient(circle at 14% -8%,rgba(0,184,192,.12),transparent 29%),
    radial-gradient(circle at 90% 4%,rgba(1,95,192,.16),transparent 28%),
    linear-gradient(180deg,#071226 0%,#09172f 55%,#0b1933 100%)!important;
  color:#edf4ff!important;
}

/* Global page surfaces */
body.ui-dark .topbar,
body.ui-dark .page-heading,
body.ui-dark .footer,
body.ui-dark .card,
body.ui-dark .table-card,
body.ui-dark .store-scope-card,
body.ui-dark .mini-stat,
body.ui-dark .schedule-box,
body.ui-dark .element-editor,
body.ui-dark .simple-table-card,
body.ui-dark .table-card-title,
body.ui-dark .filter-card,
body.ui-dark .menu-force-sync-card,
body.ui-dark .menu-import-card,
body.ui-dark .kapi-hero-card,
body.ui-dark .kapi-ncr-card,
body.ui-dark .kapi-method-card,
body.ui-dark .kapi-section-card,
body.ui-dark .sales-range-card,
body.ui-dark .receipt-editor-card,
body.ui-dark .playlist-editor,
body.ui-dark .modern-playlist-editor,
body.ui-dark .playlist-confirm-card{
  background:var(--avx-panel)!important;
  color:var(--avx-ink)!important;
  border-color:var(--avx-border)!important;
  box-shadow:var(--avx-shadow-soft)!important;
}
body.ui-dark .table-card-title,
body.ui-dark .menu-import-card-head,
body.ui-dark .kapi-section-header{
  background:#102342!important;
  border-color:var(--avx-border)!important;
}
body.ui-dark .page-heading .divider{background:rgba(158,181,230,.22)!important}
body.ui-dark .page-heading .total{background:rgba(0,184,192,.11)!important;color:#b8fbff!important;border-color:rgba(0,184,192,.22)!important}

/* Global text hierarchy */
body.ui-dark h1,
body.ui-dark h2,
body.ui-dark h3,
body.ui-dark h4,
body.ui-dark h5,
body.ui-dark h6,
body.ui-dark .page-heading h1,
body.ui-dark .table-card-title h2,
body.ui-dark .card-header h2,
body.ui-dark .section-title,
body.ui-dark .hello,
body.ui-dark .field>span,
body.ui-dark label>span,
body.ui-dark .toggle-line,
body.ui-dark .switch-line{
  color:#f7fbff!important;
}
body.ui-dark .muted,
body.ui-dark .small-note,
body.ui-dark .hint,
body.ui-dark .note-row,
body.ui-dark .empty-state,
body.ui-dark .field small,
body.ui-dark .card small{
  color:#aebce0!important;
  opacity:1!important;
}

/* Native/browser form controls - fixes dropdown/options/form mismatches */
body.ui-dark input,
body.ui-dark select,
body.ui-dark textarea{
  color-scheme:dark;
  background:#08162e!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.22)!important;
  box-shadow:none;
}
body.ui-dark input:hover,
body.ui-dark select:hover,
body.ui-dark textarea:hover{border-color:rgba(158,181,230,.34)!important}
body.ui-dark input:focus,
body.ui-dark select:focus,
body.ui-dark textarea:focus{
  background:#0a1933!important;
  color:#fff!important;
  border-color:#00b8c0!important;
  box-shadow:0 0 0 4px rgba(0,184,192,.13)!important;
}
body.ui-dark input::placeholder,
body.ui-dark textarea::placeholder{color:#8295b8!important;opacity:1!important}
body.ui-dark select option,
body.ui-dark select optgroup{
  background:#0b1933!important;
  color:#f4f8ff!important;
}
body.ui-dark input:disabled,
body.ui-dark select:disabled,
body.ui-dark textarea:disabled,
body.ui-dark input[readonly],
body.ui-dark textarea[readonly]{
  background:#101d35!important;
  color:#8798b7!important;
  border-color:rgba(158,181,230,.12)!important;
  opacity:1!important;
}
body.ui-dark input[type='checkbox'],
body.ui-dark input[type='radio']{accent-color:#00b8c0}
body.ui-dark input[type='file']{background:#08162e!important;color:#eaf2ff!important}
body.ui-dark input[type='file']::file-selector-button{
  background:#15305b!important;color:#dffcff!important;border:1px solid rgba(0,184,192,.28)!important;border-radius:10px!important
}

/* Tables */
body.ui-dark table,
body.ui-dark .table-card table{background:transparent!important}
body.ui-dark th,
body.ui-dark .table-filter-row th{
  background:#102342!important;
  color:#f5f9ff!important;
  border-color:rgba(158,181,230,.14)!important;
}
body.ui-dark td{
  background:transparent!important;
  color:#d8e4f7!important;
  border-color:rgba(158,181,230,.11)!important;
}
body.ui-dark tbody tr:hover{background:rgba(0,184,192,.055)!important}
body.ui-dark .table-filter-row input,
body.ui-dark .table-filter-row select{background:#08162e!important;color:#f4f8ff!important}

/* Generic secondary controls/tabs */
body.ui-dark .btn.secondary{
  background:#132746!important;
  color:#b8fbff!important;
  border-color:rgba(0,184,192,.22)!important;
}
body.ui-dark .btn.secondary:hover{background:#173052!important;color:#e6feff!important}
body.ui-dark .tabs a,
body.ui-dark .item-subtabs a{
  background:#102342!important;
  color:#cbd8ef!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .tabs a.active,
body.ui-dark .item-subtabs a.active{
  background:linear-gradient(135deg,#00b8c0,#015fc0)!important;
  color:#06122a!important;
  border-color:transparent!important;
}

/* ==========================================================
   ALL POPUPS / MODALS / DRAWERS
   ========================================================== */
body.ui-dark .modal-backdrop{background:rgba(1,7,18,.78)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
body.ui-dark .modal-card,
body.ui-dark .side-drawer,
body.ui-dark .menu-import-modal .modal-card,
body.ui-dark .sales-order-modal,
body.ui-dark .modifier-master-modal,
body.ui-dark .modifier-picker-modal,
body.ui-dark .modifier-modal{
  background:#0d1d39!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.18)!important;
  box-shadow:0 30px 80px rgba(0,0,0,.46)!important;
}
body.ui-dark .modal-head,
body.ui-dark .side-drawer .drawer-head{
  background:#0a1831!important;
  color:#f7fbff!important;
  border-color:rgba(158,181,230,.15)!important;
}
body.ui-dark .modal-head h1,
body.ui-dark .modal-head h2,
body.ui-dark .modal-head h3,
body.ui-dark .side-drawer h1,
body.ui-dark .side-drawer h2,
body.ui-dark .side-drawer h3{color:#f7fbff!important}
body.ui-dark .modal-form,
body.ui-dark .modal-body{background:transparent!important;color:#edf4ff!important}
body.ui-dark .modal-x,
body.ui-dark .drawer-x{
  background:#122847!important;
  color:#b8fbff!important;
  border-color:rgba(0,184,192,.25)!important;
}
body.ui-dark .modal-x:hover,
body.ui-dark .drawer-x:hover{background:#183455!important;color:#fff!important}
body.ui-dark .modal-actions{
  border-color:rgba(158,181,230,.14)!important;
  background:transparent!important;
}
body.ui-dark .modal-card label,
body.ui-dark .side-drawer label,
body.ui-dark .modal-card .field span,
body.ui-dark .side-drawer .field span{color:#edf4ff!important}
body.ui-dark .modal-card .muted,
body.ui-dark .side-drawer .muted,
body.ui-dark .modal-card small,
body.ui-dark .side-drawer small{color:#aebce0!important;opacity:1!important}

/* Modifier Settings popup - every tab and nested surface */
body.ui-dark .modifier-editor-surface,
body.ui-dark .modifier-group-card,
body.ui-dark .modifier-option-row,
body.ui-dark .modifier-child-row,
body.ui-dark .source-accordion-row,
body.ui-dark .modifier-content-editor,
body.ui-dark .modifier-picker-panel,
body.ui-dark .modifier-picker-list,
body.ui-dark .modifier-picker-item{
  background:#0f203e!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .modifier-group-head,
body.ui-dark .source-accordion-row,
body.ui-dark .modifier-child-row:nth-child(even){background:#112645!important}
body.ui-dark .modifier-source-details,
body.ui-dark .modifier-child-list-wrap,
body.ui-dark .modifier-option-list{background:transparent!important}
body.ui-dark .modifier-source-details[open]>.source-accordion-row{background:#142b4d!important}
body.ui-dark .modifier-option-row:hover,
body.ui-dark .modifier-child-row:hover,
body.ui-dark .source-accordion-row:hover{background:#142b4d!important;border-color:rgba(0,184,192,.22)!important}
body.ui-dark .modifier-item-hero,
body.ui-dark .compact-hero{background:#102342!important;border-color:rgba(158,181,230,.16)!important}
body.ui-dark .modifier-item-hero h3,
body.ui-dark .modifier-group-head h4,
body.ui-dark .modifier-option-main b,
body.ui-dark .source-title-cell b,
body.ui-dark .modifier-content-fields label span,
body.ui-dark .modifier-master-form .field span,
body.ui-dark .modifier-master-switch,
body.ui-dark .soft-checkbox{color:#f3f8ff!important}
body.ui-dark .modifier-content-identity,
body.ui-dark .modifier-option-main .muted,
body.ui-dark .modifier-group-head .muted{color:#9fb0cf!important}
body.ui-dark .modifier-index,
body.ui-dark .grip-mark,
body.ui-dark .accordion-arrow{color:#92a8cc!important}
body.ui-dark .modifier-option-thumb,
body.ui-dark .editable-thumb,
body.ui-dark .modifier-content-image{
  background:#0a1831!important;
  color:#91a6c9!important;
  border-color:rgba(158,181,230,.17)!important;
}
body.ui-dark .modifier-clear-image{color:#b8c7e2!important}
body.ui-dark .price-tag,
body.ui-dark .badge.neutral,
body.ui-dark .modifier-pill{
  background:#142b4d!important;
  color:#d9e6fa!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .badge.good,
body.ui-dark .status-pill.on{background:rgba(52,211,153,.13)!important;color:#7ce4b8!important;border-color:rgba(52,211,153,.20)!important}
body.ui-dark .badge.bad,
body.ui-dark .status-pill.off{background:rgba(255,107,103,.12)!important;color:#ff9c99!important;border-color:rgba(255,107,103,.20)!important}
body.ui-dark .status-pill.partial{background:rgba(253,198,54,.13)!important;color:#ffe08a!important;border-color:rgba(253,198,54,.22)!important}
body.ui-dark .modifier-tab-buttons{border-bottom-color:rgba(158,181,230,.14)!important}
body.ui-dark .mod-tab-btn{
  background:#0e1d38!important;
  color:#b4c2de!important;
  border:1px solid rgba(158,181,230,.12)!important;
}
body.ui-dark .mod-tab-btn:hover{background:#142947!important;color:#eef7ff!important}
body.ui-dark .mod-tab-btn.active{
  background:rgba(0,184,192,.14)!important;
  color:#b8fbff!important;
  border-color:rgba(0,184,192,.32)!important;
}
body.ui-dark .mod-tab-btn[disabled]{background:#0b1931!important;color:#667996!important;border-color:rgba(158,181,230,.08)!important}
body.ui-dark .modifier-master-form select,
body.ui-dark .modifier-master-form input[type='text']{background:#08162e!important;color:#f4f8ff!important;border-color:rgba(158,181,230,.22)!important}
body.ui-dark .modifier-master-switch input[type='checkbox']{background:#263650!important}
body.ui-dark .modifier-master-switch input[type='checkbox']:checked{background:#00b8c0!important}
body.ui-dark .modifier-master-actions{border-top-color:rgba(158,181,230,.14)!important}

/* API pickers used in Modifiers/Items/Combos */
body.ui-dark .modifier-picker-panel,
body.ui-dark .item-api-picker-panel,
body.ui-dark .combo-api-picker-panel,
body.ui-dark .category-api-picker-panel,
body.ui-dark .combo-size-picker-panel{
  background:#0b1933!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.17)!important;
}
body.ui-dark .modifier-picker-list,
body.ui-dark .item-api-picker-panel .modifier-picker-list,
body.ui-dark .combo-api-picker-panel .modifier-picker-list{
  background:#09162e!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .modifier-picker-item,
body.ui-dark .item-picker-item{
  background:#09162e!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.11)!important;
}
body.ui-dark .modifier-picker-item:hover,
body.ui-dark .item-picker-item:hover,
body.ui-dark .modifier-picker-item.is-selected,
body.ui-dark .item-picker-item.is-selected{background:#123052!important;border-color:rgba(0,184,192,.28)!important}
body.ui-dark .modifier-picker-title,
body.ui-dark .item-picker-item .modifier-picker-title{color:#9ff8ff!important}
body.ui-dark .modifier-picker-sub,
body.ui-dark .item-picker-item .modifier-picker-sub{color:#9fb0cf!important}
body.ui-dark .modifier-picker-empty,
body.ui-dark .picker-list-message{background:#102b49!important;color:#b8fbff!important;border-color:rgba(0,184,192,.22)!important}

/* Sandwich Recipe tab */
body.ui-dark .recipe-editor-surface{background:#09162d!important;color:#edf4ff!important}
body.ui-dark .recipe-hero,
body.ui-dark .recipe-group-card,
body.ui-dark .recipe-ingredient-row,
body.ui-dark .recipe-aux-option{background:#0f203e!important;border-color:rgba(158,181,230,.16)!important}
body.ui-dark .recipe-group-head,
body.ui-dark .recipe-control,
body.ui-dark .recipe-behavior-guide>span{background:#122746!important;border-color:rgba(158,181,230,.16)!important}
body.ui-dark .recipe-hero h4,
body.ui-dark .recipe-group-head h4,
body.ui-dark .recipe-ingredient-copy>b,
body.ui-dark .recipe-control-copy>b,
body.ui-dark .recipe-aux-option>b,
body.ui-dark .recipe-aux-option>div>b,
body.ui-dark .recipe-section-label,
body.ui-dark .recipe-section-label>b,
body.ui-dark .recipe-behavior-guide b{color:#f3f8ff!important}
body.ui-dark .recipe-hero .muted,
body.ui-dark .recipe-group-head .muted,
body.ui-dark .recipe-ingredient-meta,
body.ui-dark .recipe-section-label>span,
body.ui-dark .recipe-behavior-guide small,
body.ui-dark .recipe-state{color:#9fb0cf!important}
body.ui-dark .recipe-state.is-on{color:#7ce4b8!important}
body.ui-dark .recipe-ingredient-icon{background:#142b4d!important;border-color:rgba(158,181,230,.16)!important;color:#d7e4f8!important}
body.ui-dark .recipe-count{background:#153354!important;color:#a5f7ff!important}
body.ui-dark .recipe-search input{background:#08162e!important;color:#f4f8ff!important;border-color:rgba(158,181,230,.20)!important}
body.ui-dark .recipe-kicker{background:rgba(52,211,153,.12)!important;color:#7ce4b8!important}
body.ui-dark .recipe-type-badge{background:#153354!important;color:#9ff8ff!important}
body.ui-dark .recipe-type-badge.required{background:rgba(253,198,54,.12)!important;color:#ffe08a!important}
body.ui-dark .recipe-type-badge.special{background:rgba(168,120,255,.14)!important;color:#d7bfff!important}
body.ui-dark .recipe-active-pill{background:#14243d!important;color:#9fb0cf!important}
body.ui-dark .recipe-active-pill.is-on{background:rgba(52,211,153,.13)!important;color:#7ce4b8!important}
body.ui-dark .recipe-global-off{background:rgba(253,198,54,.12)!important;color:#ffe08a!important}
body.ui-dark details.recipe-group-card>summary:after{background:#183253!important;color:#d9e6f8!important}
body.ui-dark .recipe-save-bar{background:linear-gradient(180deg,rgba(9,22,45,0),#09162d 34%)!important}

/* Combo/item/category editor popup internals */
body.ui-dark .combo-section-card,
body.ui-dark .combo-level-card,
body.ui-dark .combo-sandwich-card,
body.ui-dark .combo-sizes-card,
body.ui-dark .combo-section-body,
body.ui-dark .combo-size-drawer,
body.ui-dark .target-branches,
body.ui-dark .target-checks,
body.ui-dark .image-preview-box,
body.ui-dark .current-image-preview,
body.ui-dark .upload-preview,
body.ui-dark .playlist-upload-box{
  background:#0f203e!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .combo-section-head,
body.ui-dark .combo-level-head{background:#112645!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .combo-level-title,
body.ui-dark .combo-preview-label,
body.ui-dark .combo-main-switch,
body.ui-dark .combo-level-head .switch-line,
body.ui-dark .target-branches label,
body.ui-dark .target-checks label{color:#edf4ff!important}
body.ui-dark .combo-level-arrow{color:#b8c8e3!important}
body.ui-dark .combo-level-arrow:hover{background:#183253!important}

/* Global Menu Manager + usage drawers: inherit one dark token system */
body.ui-dark .global-manager-shell{color:var(--avx-ink)!important}
body.ui-dark .global-manager-hero,
body.ui-dark .global-stat,
body.ui-dark .global-manager-tabs,
body.ui-dark .global-manager-toolbar,
body.ui-dark .global-manager-filterchips,
body.ui-dark .global-manager-bulkbar,
body.ui-dark .global-manager-list,
body.ui-dark .global-manager-row,
body.ui-dark .global-usage-choice,
body.ui-dark .global-usage-details,
body.ui-dark .global-usage-details summary{
  background:var(--avx-panel-solid)!important;
  color:var(--avx-ink)!important;
  border-color:var(--avx-border)!important;
}
body.ui-dark .global-manager-row.disabled{background:#101d35!important}
body.ui-dark .global-manager-hero h2,
body.ui-dark .global-stat span,
body.ui-dark .global-manager-titleline h3,
body.ui-dark .global-usage-choice b,
body.ui-dark .global-usage-details summary{color:#f3f8ff!important}
body.ui-dark .global-manager-hero p,
body.ui-dark .global-manager-sync-note,
body.ui-dark .global-manager-search,
body.ui-dark .global-manager-parent-preview,
body.ui-dark .global-stat small,
body.ui-dark .global-usage-choice small,
body.ui-dark .global-usage-choice em,
body.ui-dark .global-usage-details summary span{color:#aebce0!important}
body.ui-dark .global-manager-search input{background:#08162e!important;color:#f4f8ff!important;border-color:rgba(158,181,230,.20)!important}
body.ui-dark .global-manager-filterchips a,
body.ui-dark .global-id-chip{background:#14243d!important;color:#b6c5df!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .global-manager-filterchips a.active{background:#015fc0!important;color:#fff!important}

/* Alerts, code, status and misc surfaces */
body.ui-dark .alert.info{background:rgba(0,184,192,.10)!important;color:#b8fbff!important;border-color:rgba(0,184,192,.20)!important}
body.ui-dark .alert.success{background:rgba(52,211,153,.10)!important;color:#8ce8c1!important;border-color:rgba(52,211,153,.18)!important}
body.ui-dark .alert.error{background:rgba(255,107,103,.10)!important;color:#ffaaa7!important;border-color:rgba(255,107,103,.18)!important}
body.ui-dark .code{background:#050d1f!important;color:#dce8ff!important;border:1px solid rgba(158,181,230,.14)!important}
body.ui-dark hr{border-color:rgba(158,181,230,.14)!important}

/* Intentionally light previews: they simulate kiosk/receipt output and are not
   application chrome. Keeping these light preserves accurate visual previews. */
body.ui-dark .receipt-paper-preview,
body.ui-dark .light-preview,
body.ui-dark .summary-box.preview-light,
body.ui-dark .payment-card-preview.preview-light{
  color-scheme:light;
}

/* Dark scrollbars in large popup editors (Chromium/WebKit + Firefox) */
body.ui-dark .modal-card,
body.ui-dark .side-drawer,
body.ui-dark .modifier-picker-list,
body.ui-dark .table-card,
body.ui-dark .global-usage-grid{
  scrollbar-color:#385477 #0a1831;
}
body.ui-dark .modal-card::-webkit-scrollbar,
body.ui-dark .side-drawer::-webkit-scrollbar,
body.ui-dark .modifier-picker-list::-webkit-scrollbar{width:10px;height:10px}
body.ui-dark .modal-card::-webkit-scrollbar-track,
body.ui-dark .side-drawer::-webkit-scrollbar-track,
body.ui-dark .modifier-picker-list::-webkit-scrollbar-track{background:#0a1831}
body.ui-dark .modal-card::-webkit-scrollbar-thumb,
body.ui-dark .side-drawer::-webkit-scrollbar-thumb,
body.ui-dark .modifier-picker-list::-webkit-scrollbar-thumb{background:#385477;border-radius:99px;border:2px solid #0a1831}

/* Final theme hardening for Menu Apply and combo editors */
html.theme-changing *,
html.theme-changing *:before,
html.theme-changing *:after{
  transition:none!important;
  animation:none!important;
}
body.ui-dark .apply-menu-details[open] .menu-template-apply-form{
  background:#0f203e!important;
  color:#edf4ff!important;
  border:1px solid rgba(158,181,230,.18)!important;
  box-shadow:0 22px 55px rgba(0,0,0,.42)!important;
  color-scheme:dark;
}
body.ui-dark .apply-menu-details[open] .menu-template-apply-form *,
body.ui-dark .branch-targets,
body.ui-dark .branch-targets-title,
body.ui-dark .target-select-all,
body.ui-dark .target-branch{
  color:#edf4ff!important;
  opacity:1!important;
}
body.ui-dark .apply-menu-details[open] .menu-template-apply-form input[type="checkbox"],
body.ui-dark .target-select-all input,
body.ui-dark .target-branch input{
  accent-color:#00b8c0!important;
}
body.ui-dark .apply-menu-details[open] .menu-template-apply-form .btn.yellow{
  background:linear-gradient(135deg,#00b8c0,#015fc0)!important;
  color:#06122a!important;
}
body.ui-dark .combo-builder input,
body.ui-dark .combo-builder select,
body.ui-dark .combo-builder textarea,
body.ui-dark .combo-section-card input,
body.ui-dark .combo-section-card select,
body.ui-dark .combo-section-card textarea,
body.ui-dark .combo-size-drawer input,
body.ui-dark .combo-size-drawer select,
body.ui-dark .combo-size-drawer textarea,
body.ui-dark .combo-api-picker-panel input,
body.ui-dark .combo-size-picker-panel input{
  background:#08162e!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.22)!important;
  color-scheme:dark;
}
body.ui-dark .combo-builder input::placeholder,
body.ui-dark .combo-builder textarea::placeholder,
body.ui-dark .combo-section-card input::placeholder,
body.ui-dark .combo-section-card textarea::placeholder,
body.ui-dark .combo-size-drawer input::placeholder,
body.ui-dark .combo-size-drawer textarea::placeholder{
  color:#9aabc8!important;
  opacity:1!important;
}
body.ui-dark .combo-section-card,
body.ui-dark .combo-level-card,
body.ui-dark .combo-sandwich-card,
body.ui-dark .combo-sizes-card,
body.ui-dark .combo-section-body,
body.ui-dark .combo-level-body,
body.ui-dark .combo-api-picker-panel,
body.ui-dark .combo-size-picker-panel{
  background:#0f203e!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .combo-section-head,
body.ui-dark .combo-level-head{
  background:#112645!important;
  border-color:rgba(158,181,230,.14)!important;
}
body.ui-dark .combo-section-head h3,
body.ui-dark .combo-level-label strong,
body.ui-dark .combo-level-label small,
body.ui-dark .combo-main-switch,
body.ui-dark .combo-wizard-checkbox,
body.ui-dark .combo-preview-label{
  color:#f3f8ff!important;
}


/* Global component cards - clearer preview-first layout */
.global-component-row{align-items:flex-start}
.global-component-cardhead{display:flex;gap:16px;align-items:flex-start}
.global-component-preview{width:84px;height:84px;flex:0 0 84px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#f4f7fb,#e6edf8);border:1px solid rgba(13,41,77,.10);display:flex;align-items:center;justify-content:center;color:#163760;font-weight:800;font-size:26px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.global-component-preview img{width:100%;height:100%;object-fit:cover;display:block}
.global-component-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
.global-component-ar{font-weight:700;color:#24456f;font-size:15px;line-height:1.35}
.global-component-actions{display:flex;flex-direction:column;gap:10px;min-width:180px}
.global-component-actions form{display:block}
.global-component-actions .btn{width:100%;justify-content:center}
body.ui-dark .global-component-preview{background:linear-gradient(135deg,#12284a,#0f203e);border-color:rgba(158,181,230,.16);color:#f0f6ff}
body.ui-dark .global-component-ar{color:#dbe6fb}
@media (max-width: 900px){
  .global-component-cardhead{flex-direction:column}
  .global-component-preview{width:72px;height:72px;flex-basis:72px}
  .global-component-actions{min-width:0;width:100%}
}

/* ==========================================================
   AVX SERVE HUB UX V10
   Professional workflow + interaction layer.
   Brand colors and existing typography are intentionally retained.
   ========================================================== */
:root{
  --ux-radius-xs:8px;
  --ux-radius-sm:10px;
  --ux-radius:14px;
  --ux-radius-lg:18px;
  --ux-shadow:0 12px 34px rgba(32,43,74,.07);
  --ux-shadow-hover:0 18px 42px rgba(32,43,74,.11);
  --ux-border:rgba(41,54,93,.10);
  --ux-panel:#fff;
  --ux-soft:#f7f9fc;
  --ux-ink:#2c334b;
  --ux-ink-soft:#7c859f;
}
html{scroll-behavior:smooth}
body{letter-spacing:.005em}
body.ux-modal-open{overflow:hidden}
.page-body{width:min(100%,1720px);margin:0 auto;padding:28px 34px 42px}

/* Sidebar information architecture */
.sidebar nav{padding:16px 12px 22px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.nav-group-label{display:flex;align-items:center;min-height:30px;padding:14px 14px 5px;color:#7f8ca4;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;overflow:hidden}
.nav-group-label span{opacity:.82}
.nav-group-account{margin-top:4px;border-top:1px solid rgba(255,255,255,.05);padding-top:17px}
.sidebar nav a{height:44px;margin:2px 0;padding:0 14px;border-left:0!important;border-radius:10px;gap:13px;font-size:13px;position:relative}
.sidebar nav a .ico{display:flex;width:21px;align-items:center;justify-content:center;flex:0 0 21px}
.sidebar nav a .ico svg{width:19px;height:19px}
.sidebar nav a:hover{background:rgba(255,255,255,.045)}
.sidebar nav a.active{background:linear-gradient(135deg,rgba(1,95,192,.27),rgba(1,95,192,.12));box-shadow:inset 0 0 0 1px rgba(81,159,236,.16)}
.sidebar nav a.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:#58a8f5}
.shell.sidebar-collapsed .nav-group-label{height:14px;min-height:14px;padding:7px 0;margin:3px 0;justify-content:center}
.shell.sidebar-collapsed .nav-group-label span{display:none}
.shell.sidebar-collapsed .nav-group-label:after{content:"";width:22px;height:1px;background:rgba(255,255,255,.10)}

/* Page title and context */
.topbar{height:66px;padding:0 30px}
.page-heading{min-height:82px;height:auto;padding:15px 34px;align-items:center}
.page-heading-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.page-heading-copy h1{font-size:21px;line-height:1.2;color:var(--ux-ink)}
.page-heading-copy p{margin:0;max-width:920px;color:var(--ux-ink-soft);font-size:12px;line-height:1.45;font-weight:500}
.page-heading .divider{height:34px;margin-left:auto}
.page-heading .total{white-space:nowrap}

/* Core surfaces */
.card,.table-card,.store-scope-card{border:1px solid var(--ux-border);border-radius:var(--ux-radius);box-shadow:var(--ux-shadow)}
.card{padding:22px}
.card-header{align-items:center}
.card-header h2,.card-header h3{letter-spacing:-.01em;color:var(--ux-ink)}
.small-note,.hint,.note-row{line-height:1.5}
.store-scope-card{padding:13px 16px;background:linear-gradient(180deg,#fff,#fbfcff)}
.store-scope-form{max-width:620px}
.store-scope-form .field{display:grid;grid-template-columns:90px minmax(260px,1fr);align-items:center;gap:12px}
.store-scope-form .field>span{margin:0;color:#56617d;font-size:12px;font-weight:800}

/* Forms */
.field>span,label>span{font-weight:700}
input,select,textarea{border-radius:10px;border-color:#dfe5ef;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
input:hover,select:hover,textarea:hover{border-color:#cdd6e5}
input:focus,select:focus,textarea:focus{border-color:#4c9bdc;box-shadow:0 0 0 3px rgba(1,95,192,.09)}
.field:has(input[required])>span:after,.field:has(select[required])>span:after,.field:has(textarea[required])>span:after{content:" *";color:var(--danger)}
.field-help{display:block;margin-top:6px;color:#8a93a9;font-size:11px;line-height:1.45;font-weight:500}
.soft-checkbox,.switch-line,.toggle-line{border-radius:10px}

/* Buttons */
.btn{min-height:40px;border-radius:10px;padding:10px 15px;box-shadow:none;transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(1,95,192,.11)}
.btn:active{transform:translateY(0)}
.btn.secondary{border:1px solid rgba(1,95,192,.11);background:#f3f8fd}
.btn.secondary:hover{background:#eaf3fb;border-color:rgba(1,95,192,.19)}
.btn.danger,.btn.red{background:#fff0ef;color:#c32c29;border:1px solid rgba(211,41,39,.16)}
.btn.danger:hover,.btn.red:hover{background:#d32927;color:#fff;box-shadow:0 8px 18px rgba(211,41,39,.16)}
.btn.yellow{background:var(--primary);color:#fff}
.btn.compact{min-height:34px;padding:7px 11px;border-radius:9px;font-size:11px}

/* Tables */
.simple-table-card{overflow-x:auto;overflow-y:visible}
.table-card-title{position:sticky;left:0;z-index:4;background:#fff;padding:18px 20px}
.table-card-title>div:first-child{min-width:0}
.table-card-subtitle{margin:4px 0 0;color:#8a93a9;font-size:11px;line-height:1.45;font-weight:500}
th,td{padding:14px 18px}
th{position:sticky;top:0;z-index:2;background:#fafbfd;color:#48526d;font-size:11px;letter-spacing:.035em;text-transform:none;white-space:nowrap}
tbody tr{transition:background .12s ease}
tbody tr:hover{background:#fbfdff}
td{color:#626b84}
.table-inline-actions{gap:7px}
.table-search{min-width:230px;max-width:310px;padding-left:13px}
.ux-search-count{display:inline-flex;align-items:center;min-height:26px;margin-left:8px;padding:4px 8px;border-radius:999px;background:#f0f4f9;color:#7b879a;font-size:10px;font-weight:800;white-space:nowrap}
.empty-state{border-radius:12px;line-height:1.55}

/* Tabs */
.tabs,.item-subtabs,.global-manager-tabs,.kapi-tabs{scrollbar-width:none}
.tabs::-webkit-scrollbar,.item-subtabs::-webkit-scrollbar,.global-manager-tabs::-webkit-scrollbar,.kapi-tabs::-webkit-scrollbar{display:none}
.tabs a,.item-subtabs a{border-radius:10px}

/* Professional modal shell */
.modal-shell{padding:28px;background:rgba(14,22,38,.08);backdrop-filter:blur(2px)}
.modal-backdrop{background:rgba(12,19,33,.52)!important;backdrop-filter:blur(3px)}
.modal-card{position:relative;border-radius:18px!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:0 28px 85px rgba(14,22,40,.27)!important;max-height:calc(100vh - 56px)!important;overflow:auto!important}
.modal-card.wide-modal{width:min(1120px,96vw)!important}
.modal-card.wide-modal-xl{width:min(1480px,97vw)!important}
.modal-head{position:sticky!important;top:0;z-index:30!important;min-height:70px;padding:16px 20px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);border-bottom:1px solid #e9edf4!important}
.modal-head>div:first-child{min-width:0}
.modal-head h2{margin:0!important;font-size:18px!important;color:#2b344c!important}
.modal-head p{margin:4px 0 0;color:#8993a7;font-size:11px;font-weight:600}
.modal-x{width:36px!important;height:36px!important;border-radius:10px!important;display:inline-flex!important;align-items:center;justify-content:center;background:#f3f5f8!important;color:#677087!important;font-size:23px!important;text-decoration:none!important;flex:0 0 36px}
.modal-x:hover{background:#e9edf3!important;color:#283249!important}
.modal-form{padding:20px!important}
.modal-form>.modal-actions:last-child{position:sticky;bottom:-20px;z-index:20;margin:22px -20px -20px!important;padding:13px 20px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);border-top:1px solid #e9edf4!important}
.ux-unsaved-badge{margin-left:auto;margin-right:4px;padding:5px 9px;border-radius:999px;background:#fff5df;color:#9a6500;font-size:10px;font-weight:900;white-space:nowrap}
.ux-unsaved-badge[hidden]{display:none!important}

/* Shared confirmation */
.ux-confirm-modal{align-items:center!important;justify-content:center!important}
.ux-confirm-card{width:min(440px,92vw)!important;padding:30px!important;text-align:center;overflow:visible!important}
.ux-confirm-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;margin:0 auto 15px;border-radius:16px;background:#fff4df;color:#a26700;font-size:25px;font-weight:950}
.ux-confirm-card h2{margin:0 0 8px;color:#283249;font-size:20px}
.ux-confirm-card p{margin:0;color:#707b92;line-height:1.6;font-size:13px;white-space:normal}
.ux-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.ux-confirm-actions .btn{width:100%}

/* Dashboard */
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:20px;padding:26px 28px;border:1px solid rgba(1,95,192,.10);border-radius:18px;background:linear-gradient(135deg,#ffffff 0%,#f6faff 58%,#eef6ff 100%);box-shadow:var(--ux-shadow)}
.dashboard-kicker{display:inline-flex;margin-bottom:7px;color:#015fc0;font-size:10px;font-weight:950;letter-spacing:.13em}
.dashboard-hero h2{margin:0 0 7px;color:#283249;font-size:26px;letter-spacing:-.025em}
.dashboard-hero p{max-width:760px;margin:0;color:#78839a;line-height:1.55}
.dashboard-hero-actions{display:flex;gap:9px;flex:0 0 auto}
.dashboard-stats{margin-bottom:20px}
.dashboard-stat{display:flex;align-items:center;gap:15px;margin:0!important;padding:20px!important;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.dashboard-stat:hover{transform:translateY(-2px);box-shadow:var(--ux-shadow-hover);border-color:rgba(1,95,192,.17)}
.dashboard-stat-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#eef6fb;color:#015fc0;flex:0 0 48px}
.dashboard-stat-icon svg{width:23px;height:23px}
.dashboard-stat div{display:grid;grid-template-columns:1fr auto;gap:1px 14px;align-items:end;width:100%}
.dashboard-stat div>span{color:#66718b;font-size:12px;font-weight:800}
.dashboard-stat b{grid-row:1/3;grid-column:2;font-size:30px;line-height:1;color:#27324a}
.dashboard-stat small{color:#9aa3b5;font-size:10px}
.dashboard-quick-card{padding:20px}
.dashboard-quick-card .card-header{margin-bottom:14px}
.dashboard-quick-card .card-header p{margin:4px 0 0}
.dashboard-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-quick-grid>a{display:grid;grid-template-columns:40px minmax(0,1fr);gap:1px 12px;align-items:center;padding:14px;border:1px solid #e7ebf2;border-radius:13px;background:#fff;text-decoration:none;transition:border-color .14s ease,background .14s ease,transform .14s ease}
.dashboard-quick-grid>a:hover{border-color:rgba(1,95,192,.22);background:#f9fcff;transform:translateY(-1px)}
.dashboard-quick-grid>a>span{grid-row:1/3;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#f2f7fb;color:#015fc0}
.dashboard-quick-grid svg{width:19px;height:19px}
.dashboard-quick-grid b{font-size:12px;color:#34405a}
.dashboard-quick-grid small{color:#8993a6;font-size:10px;line-height:1.35}
.dashboard-help-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px}
.dashboard-help-card h2{margin:0 0 4px;font-size:15px}
.dashboard-help-card p{margin:0;color:#7c879d}
.dashboard-help-card a{color:#015fc0;font-weight:800}
.dashboard-help-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#eef6fb;color:#015fc0;font-size:19px;font-weight:950}

/* Guided modifier workflow */
.ux-workflow-strip{display:flex;align-items:stretch;gap:9px;margin:0 0 16px;padding:10px;border:1px solid #e7ebf2;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(32,43,74,.04)}
.ux-workflow-step{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:8px 10px;border-radius:10px}
.ux-workflow-step.active{background:#f1f7fd}
.ux-workflow-step>span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:#eef2f7;color:#71809a;font-size:11px;font-weight:950;flex:0 0 28px}
.ux-workflow-step.active>span{background:#015fc0;color:#fff}
.ux-workflow-step div{min-width:0}
.ux-workflow-step b{display:block;color:#3b465e;font-size:11px}
.ux-workflow-step small{display:block;margin-top:2px;color:#8c96a9;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ux-workflow-arrow{display:flex;align-items:center;color:#bec6d3;font-size:21px}
.modifier-page-tools{padding:2px 0}

/* Modifier master dialog */
.modifier-master-modal{width:min(680px,94vw)!important}
.modifier-master-summary{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:14px;border:1px solid #e7ecf3;border-radius:14px;background:#f8fbfe}
.modifier-master-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:13px;background:#eef6fb;color:#015fc0;flex:0 0 46px}
.modifier-master-icon svg{width:22px;height:22px}
.modifier-master-summary span{display:block;color:#8590a4;font-size:9px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.modifier-master-summary h3{margin:2px 0 3px!important;color:#2f394f;font-size:17px!important}
.modifier-master-summary small{color:#8994a7;font-size:10px}
.modifier-master-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modifier-master-switch{display:flex!important;align-items:center;gap:8px;padding:12px 13px;border:1px solid #e6ebf2;background:#fbfcfe;color:#4a5670}
.modifier-master-switch small{margin-left:auto;color:#8b95a7;font-size:10px;font-weight:500;max-width:320px;line-height:1.35}
.modifier-master-actions{justify-content:flex-end}

/* Global manager popups - the list stays clean and scannable. */
.ux-ready .global-manager-main>.global-usage-details{display:none!important}
.ux-gm-modal{align-items:center!important}
.ux-gm-modal-card{width:min(940px,95vw)!important;max-height:min(760px,calc(100vh - 56px))!important}
.ux-gm-dialog-context{display:flex;align-items:center;gap:13px;padding:14px 20px;border-bottom:1px solid #edf0f5;background:#fbfcfe}
.ux-gm-context-preview{width:56px;flex:0 0 56px}
.ux-gm-context-preview .global-component-preview{width:56px!important;height:56px!important;flex-basis:56px!important;border-radius:13px!important}
.ux-gm-context-copy{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1}
.ux-gm-context-copy>b{width:100%;color:#334059;font-size:13px}
.ux-gm-context-meta{display:flex;gap:6px;flex-wrap:wrap}
.ux-gm-context-meta .global-manager-meta{margin:0!important}
.ux-gm-dialog-slot{padding:18px 20px 22px}
.ux-gm-dialog-slot .global-usage-form{padding:0!important}
.ux-gm-dialog-slot .global-usage-actions{position:sticky;bottom:-22px;z-index:4;margin:18px -20px -22px!important;padding:12px 20px!important;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid #edf0f5}
.ux-gm-dialog-slot .global-usage-grid{max-height:390px;overflow:auto;padding-right:3px}
.global-component-actions{min-width:160px!important}
.global-component-actions .btn{min-height:34px}

/* Long editor polish */
.modifier-tab-buttons{position:sticky;top:70px;z-index:18;padding:8px 0;background:rgba(255,255,255,.94);backdrop-filter:blur(10px)}
.modifier-tab-pane{padding-top:4px}
.modifier-modal .modal-head+form{padding-top:10px!important}
.kapi-tabs{position:sticky;top:66px;z-index:8;background:rgba(244,245,251,.94);backdrop-filter:blur(9px);padding:8px 0}

/* Dark mode */
body.ui-dark{
  --ux-panel:#0d1d39;
  --ux-soft:#071226;
  --ux-ink:#f3f7ff;
  --ux-ink-soft:#aab8d4;
  --ux-border:rgba(158,181,230,.16);
}
body.ui-dark .page-heading-copy h1,body.ui-dark .dashboard-hero h2,body.ui-dark .dashboard-stat b,body.ui-dark .card-header h2,body.ui-dark .card-header h3{color:#f3f7ff!important}
body.ui-dark .page-heading-copy p{color:#9eacc8!important}
body.ui-dark .store-scope-card,body.ui-dark .dashboard-hero,body.ui-dark .ux-workflow-strip,body.ui-dark .dashboard-quick-grid>a,body.ui-dark .modifier-master-summary,body.ui-dark .modifier-master-switch{background:#0d1d39!important;border-color:rgba(158,181,230,.16)!important;color:#eaf1ff!important}
body.ui-dark .dashboard-hero{background:linear-gradient(135deg,#0d1d39,#102749)!important}
body.ui-dark .dashboard-stat-icon,body.ui-dark .dashboard-quick-grid>a>span,body.ui-dark .dashboard-help-mark,body.ui-dark .modifier-master-icon{background:#142c50!important;color:#77c4ff!important}
body.ui-dark .dashboard-stat div>span,body.ui-dark .dashboard-quick-grid b,body.ui-dark .ux-workflow-step b,body.ui-dark .modifier-master-summary h3{color:#e7eefb!important}
body.ui-dark .dashboard-stat small,body.ui-dark .dashboard-quick-grid small,body.ui-dark .dashboard-hero p,body.ui-dark .modifier-master-summary small{color:#9eadc9!important}
body.ui-dark .ux-workflow-step.active{background:#102a4d!important}
body.ui-dark .ux-workflow-step>span{background:#152642!important;color:#acbad1!important}
body.ui-dark .ux-workflow-step.active>span{background:#00b8c0!important;color:#071226!important}
body.ui-dark .table-card-title,body.ui-dark th{background:#10203c!important}
body.ui-dark tbody tr:hover{background:#112845!important}
body.ui-dark .ux-search-count{background:#142640!important;color:#b3c2dc!important}
body.ui-dark .modal-head,body.ui-dark .modal-form>.modal-actions:last-child,body.ui-dark .ux-gm-dialog-slot .global-usage-actions{background:rgba(13,29,57,.96)!important;border-color:rgba(158,181,230,.15)!important}
body.ui-dark .modal-head h2{color:#f3f7ff!important}
body.ui-dark .modal-head p{color:#9dacC7!important}
body.ui-dark .modal-x{background:#152641!important;color:#c7d4e8!important}
body.ui-dark .ux-unsaved-badge{background:rgba(253,198,54,.13)!important;color:#ffe08a!important}
body.ui-dark .ux-confirm-card{background:#0d1d39!important}
body.ui-dark .ux-confirm-card h2{color:#f3f7ff!important}
body.ui-dark .ux-confirm-card p{color:#aebbd2!important}
body.ui-dark .ux-confirm-icon{background:rgba(253,198,54,.13)!important;color:#ffe08a!important}
body.ui-dark .ux-gm-dialog-context{background:#10213e!important;border-color:rgba(158,181,230,.14)!important}
body.ui-dark .ux-gm-context-copy>b{color:#eef4ff!important}
body.ui-dark .modifier-tab-buttons{background:rgba(13,29,57,.94)!important}
body.ui-dark .kapi-tabs{background:rgba(7,18,38,.94)!important}
body.ui-dark .field-help{color:#9facC2!important}

@media(max-width:1100px){
  .dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ux-workflow-step small{white-space:normal}
}
@media(max-width:760px){
  .page-body{padding:18px 16px 32px}
  .page-heading{padding:13px 18px;align-items:flex-start}
  .page-heading .divider,.page-heading .total{display:none}
  .page-heading-copy p{font-size:11px}
  .dashboard-hero{align-items:flex-start;flex-direction:column;padding:20px}
  .dashboard-hero h2{font-size:22px}
  .dashboard-hero-actions{width:100%;flex-wrap:wrap}
  .dashboard-hero-actions .btn{flex:1}
  .dashboard-quick-grid{grid-template-columns:1fr}
  .ux-workflow-strip{align-items:stretch;flex-direction:column}
  .ux-workflow-arrow{display:none}
  .store-scope-form .field{grid-template-columns:1fr;gap:5px}
  .modal-shell{padding:10px}
  .modal-card,.modal-card.wide-modal,.modal-card.wide-modal-xl{width:100%!important;max-height:calc(100vh - 20px)!important;border-radius:15px!important}
  .modal-head{min-height:64px;padding:13px 15px!important}
  .modal-form{padding:15px!important}
  .modal-form>.modal-actions:last-child{margin:18px -15px -15px!important;padding:12px 15px!important}
  .modifier-master-options{grid-template-columns:1fr}
  .modifier-master-switch{align-items:flex-start;flex-wrap:wrap}
  .modifier-master-switch small{width:100%;margin-left:25px}
  .ux-confirm-actions{grid-template-columns:1fr}
  .ux-gm-dialog-context{padding:12px 15px}
  .ux-gm-dialog-slot{padding:15px}
  .ux-gm-dialog-slot .global-usage-actions{margin:16px -15px -15px!important;padding:11px 15px!important}
  .modifier-tab-buttons{top:64px;overflow-x:auto;flex-wrap:nowrap!important;padding:7px 0}
  .modifier-tab-buttons .mod-tab-btn{white-space:nowrap}
  .global-component-actions{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .global-component-actions form{grid-column:1/-1}
}

/* Guided navigation for long production forms */
.ux-modal-section-nav{position:sticky;top:0;z-index:7;display:flex;gap:7px;overflow-x:auto;margin:-4px 0 17px;padding:5px 0 10px;background:linear-gradient(#fff 72%,rgba(255,255,255,0));scrollbar-width:thin}
.ux-modal-section-nav button{flex:0 0 auto;max-width:280px;min-height:34px;padding:7px 11px;border:1px solid #dfe6ef;border-radius:10px;background:#f8fafc;color:#66738a;font:inherit;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer;transition:.14s ease}
.ux-modal-section-nav button:hover{border-color:rgba(1,95,192,.26);color:#015fc0;background:#f4f9fe}
.ux-modal-section-nav button.active{border-color:#015fc0;background:#015fc0;color:#fff;box-shadow:0 5px 14px rgba(1,95,192,.15)}
.modal-form>.section-title{scroll-margin-top:82px;margin:21px 0 12px;padding:11px 13px;border:1px solid #e4eaf1;border-radius:11px;background:#f7f9fc;color:#34415a;font-size:11px;font-weight:950;letter-spacing:.015em}
body.ui-dark .ux-modal-section-nav{background:linear-gradient(#0d1d39 72%,rgba(13,29,57,0))}
body.ui-dark .ux-modal-section-nav button{border-color:rgba(158,181,230,.18);background:#10233f;color:#b6c3dc}
body.ui-dark .ux-modal-section-nav button:hover{border-color:rgba(0,184,192,.45);color:#c8fbff;background:#122b4d}
body.ui-dark .ux-modal-section-nav button.active{border-color:#00b8c0;background:#00b8c0;color:#06152a}
body.ui-dark .modal-form>.section-title{border-color:rgba(158,181,230,.17);background:#10213d;color:#eff5ff!important}

/* Keep task context visible while scrolling large editors/reports */
.route-products .item-subtabs,.route-reports .reports-tabs,body.route-modifiers .global-manager-tabs{position:sticky;top:70px;z-index:9;padding:9px 0;background:rgba(244,245,251,.94);backdrop-filter:blur(10px)}
body.ui-dark.route-products .item-subtabs,body.ui-dark.route-reports .reports-tabs,body.ui-dark.route-modifiers .global-manager-tabs{background:rgba(7,18,38,.94)}
@media(max-width:760px){.route-products .item-subtabs,.route-reports .reports-tabs,body.route-modifiers .global-manager-tabs{top:64px;overflow-x:auto;flex-wrap:nowrap}.route-products .item-subtabs a,.route-reports .reports-tabs a,body.route-modifiers .global-manager-tabs a{white-space:nowrap;flex:0 0 auto}}

/* ==========================================================
   AVX SERVE HUB UI V11 — COMFORTABLE DESKTOP SCALE
   2026-08-19
   Purpose: remove the "zoomed-out" feeling from V10 while
   preserving the established AVX colors, typography and UX layer.
   This is a real density/readability pass — no CSS zoom/transform.
   ========================================================== */
:root{
  --avx-sidebar-w:300px;
  --ux-readable-xs:12px;
  --ux-readable-sm:13px;
  --ux-readable-md:15px;
  --ux-readable-lg:17px;
}
body{
  font-size:15px;
  line-height:1.55;
}
.page-body{
  width:min(100%,1580px);
  padding:34px 38px 50px;
}

/* Main navigation — easier to scan without feeling oversized. */
.brand{height:82px!important;padding:0 24px!important}
.sidebar .brand img{height:43px!important;max-width:172px!important}
.sidebar nav{padding:20px 14px 24px!important}
.nav-group-label{
  min-height:34px;
  padding:16px 15px 7px;
  font-size:11px;
  letter-spacing:.12em;
}
.sidebar nav a{
  height:50px;
  margin:3px 0;
  padding:0 15px;
  gap:14px;
  font-size:14px;
  border-radius:12px;
}
.sidebar nav a .ico{width:23px;flex-basis:23px}
.sidebar nav a .ico svg{width:20px;height:20px}
.userbox{font-size:14px;padding:18px 20px}
.userbox small,.brand small{font-size:11px}

/* Header / page identity. */
.topbar{height:72px;padding:0 34px;gap:20px}
.hello{font-size:14px}
.page-heading{min-height:94px;padding:19px 38px}
.page-heading-copy{gap:6px}
.page-heading-copy h1,.page-heading h1{font-size:25px;line-height:1.22}
.page-heading-copy p{max-width:1020px;font-size:14px;line-height:1.55}
.page-heading .total{font-size:14px}
.page-heading .divider{height:40px}

/* Surfaces / spacing. */
.card{padding:27px;margin-bottom:28px}
.card h2,.card h3,.section-title{font-size:20px}
.card-header{gap:20px;margin-bottom:22px}
.grid{gap:22px}
.grid.cols-2,.grid.cols-3,.grid.cols-4,.two,.three{column-gap:24px;row-gap:22px}
.store-scope-card{padding:18px 20px;margin-bottom:22px}
.store-scope-form{max-width:700px}
.store-scope-form .field{grid-template-columns:105px minmax(280px,1fr);gap:15px}
.store-scope-form .field>span{font-size:13px}
.small-note,.hint,.note-row,.muted{line-height:1.55}
.hint,.note-row{font-size:13px}

/* Form controls — comfortable 48–50px target size. */
.field{margin-bottom:19px}
.field>span,label>span,.field span{font-size:14px;margin-bottom:9px}
input,select,textarea{
  min-height:48px;
  padding:11px 14px;
  border-radius:11px;
  font-size:14px;
}
textarea{min-height:125px}
.field-help{margin-top:7px;font-size:12.5px;line-height:1.55}
.toggle-line,.switch-line,.soft-checkbox{font-size:14px}
input[type="checkbox"],input[type="radio"]{font-size:15px}

/* Buttons / action targets. */
.btn{
  min-height:46px;
  padding:11px 18px;
  border-radius:11px;
  font-size:14px;
  gap:9px;
}
.btn.small{min-height:36px;padding:8px 12px;font-size:12.5px}
.btn.compact,
.global-manager-actions .btn.compact,
.global-usage-actions .btn.compact,
.global-usage-selectbar .btn.compact{
  min-height:39px!important;
  padding:8px 13px!important;
  font-size:12.5px!important;
}
.actions,.inline-actions{gap:10px}

/* Tables — less compressed, especially on Full HD displays. */
.table-card-title{padding:22px 24px}
.table-card-title h2{font-size:19px}
.table-card-subtitle{margin-top:5px;font-size:12.5px;line-height:1.5}
th,td{padding:17px 21px}
th{font-size:12.5px;letter-spacing:.025em}
td{font-size:14px;line-height:1.5}
td .muted{font-size:12.5px;margin-top:4px}
.table-search{min-width:270px;max-width:360px;min-height:46px}
.ux-search-count{min-height:29px;padding:5px 9px;font-size:11.5px}
.empty-state{padding:34px;font-size:14px}
.badge{font-size:12.5px;padding:6px 11px}

/* Tabs. */
.tabs,.item-subtabs,.global-manager-tabs,.kapi-tabs{gap:9px}
.tabs a,.item-subtabs a,.global-manager-tabs a,.kapi-tabs a{
  min-height:42px;
  padding:10px 16px;
  font-size:13px;
  display:inline-flex;
  align-items:center;
}

/* Modal typography and touch targets. */
.modal-shell{padding:30px}
.modal-card{max-height:calc(100vh - 60px)!important}
.modal-card.wide-modal{width:min(1180px,96vw)!important}
.modal-card.wide-modal-xl{width:min(1520px,97vw)!important}
.modal-head{min-height:80px;padding:18px 24px!important}
.modal-head h2{font-size:21px!important}
.modal-head p{margin-top:5px;font-size:12.5px;line-height:1.45}
.modal-x{width:40px!important;height:40px!important;flex-basis:40px;font-size:25px!important}
.modal-form{padding:24px!important}
.modal-form>.modal-actions:last-child{
  bottom:-24px;
  margin:26px -24px -24px!important;
  padding:16px 24px!important;
}
.ux-unsaved-badge{padding:6px 10px;font-size:11.5px}
.ux-confirm-card{width:min(480px,92vw)!important;padding:34px!important}
.ux-confirm-icon{width:60px;height:60px;margin-bottom:18px;font-size:28px}
.ux-confirm-card h2{font-size:22px}
.ux-confirm-card p{font-size:14px;line-height:1.65}
.ux-confirm-actions{gap:12px;margin-top:25px}

/* Guided section tabs inside long editors. */
.ux-modal-section-nav{gap:9px;margin-bottom:20px;padding-bottom:12px}
.ux-modal-section-nav button{
  min-height:40px;
  padding:9px 14px;
  font-size:12px;
  border-radius:11px;
}
.modal-form>.section-title{
  scroll-margin-top:92px;
  margin:25px 0 15px;
  padding:13px 15px;
  font-size:13px;
}

/* Dashboard. */
.dashboard-hero{gap:34px;margin-bottom:24px;padding:31px 34px;border-radius:20px}
.dashboard-kicker{margin-bottom:9px;font-size:11.5px}
.dashboard-hero h2{margin-bottom:9px;font-size:30px}
.dashboard-hero p{max-width:820px;font-size:14px;line-height:1.65}
.dashboard-hero-actions{gap:11px}
.dashboard-stats{margin-bottom:24px}
.dashboard-stat{gap:17px;padding:23px!important}
.dashboard-stat-icon{width:54px;height:54px;flex-basis:54px;border-radius:15px}
.dashboard-stat div>span{font-size:13.5px}
.dashboard-stat b{font-size:34px}
.dashboard-stat small{font-size:11.5px}
.dashboard-quick-grid{gap:13px}
.dashboard-quick-grid>a{padding:17px 18px}
.dashboard-quick-grid>a>span{width:43px;height:43px;border-radius:12px}
.dashboard-quick-grid b{font-size:13.5px}
.dashboard-quick-grid small{font-size:11.5px;line-height:1.45}
.dashboard-help-card{gap:24px;padding:21px 23px}
.dashboard-help-card h2{font-size:17px}
.dashboard-help-mark{width:43px;height:43px;font-size:21px}

/* Workflow strips. */
.ux-workflow-strip{padding:15px 17px;gap:11px}
.ux-workflow-step{min-height:54px;padding:10px 13px;gap:10px}
.ux-workflow-step>span{width:32px;height:32px;flex-basis:32px;font-size:12px}
.ux-workflow-step b{font-size:12.5px}
.ux-workflow-step small{margin-top:3px;font-size:11px}
.ux-workflow-arrow{font-size:23px}

/* Modifier master / picker / content editor. */
.modifier-master-summary{gap:16px;margin-bottom:21px;padding:17px}
.modifier-master-icon{width:52px;height:52px;flex-basis:52px}
.modifier-master-icon svg{width:25px;height:25px}
.modifier-master-summary span{font-size:10.5px}
.modifier-master-summary h3{font-size:19px!important}
.modifier-master-summary small{font-size:12px}
.modifier-master-options{gap:14px}
.modifier-master-switch{gap:10px;padding:15px 16px;font-size:14px}
.modifier-master-switch small{font-size:12px;line-height:1.45}
.modifier-tab-buttons{top:76px;padding:10px 0}
.modifier-modal .mod-tab-btn,.modifier-picker-modal .mod-tab-btn{padding:13px 18px;font-size:13px}
.modifier-picker-item{padding:14px 16px}
.modifier-picker-title{font-size:14px}

.modifier-content-editor{grid-template-columns:142px minmax(300px,1fr);gap:17px}
.modifier-option-thumb.editable-thumb{width:126px;height:104px}
.modifier-image-upload{width:126px;min-height:38px;padding:8px 10px!important;font-size:12.5px!important}
.modifier-clear-image{font-size:12.5px}
.modifier-content-fields{gap:12px 14px}
.modifier-content-fields label span{font-size:12px}
.modifier-content-fields input[type=text]{min-height:46px;padding:10px 12px;font-size:14px}
.modifier-content-identity{font-size:12.5px}

/* Global Menu Manager. */
.global-manager-shell{margin-top:22px;margin-bottom:32px}
.global-manager-hero{gap:28px;padding:31px 32px}
.global-manager-kicker{font-size:12px!important;margin-bottom:9px}
.global-manager-hero h2{font-size:30px}
.global-manager-hero p{font-size:14px;line-height:1.65}
.global-manager-sync-note{min-width:230px;padding:15px 18px;font-size:13px;line-height:1.6}
.global-manager-stats{gap:14px;padding:21px 24px 12px}
.global-stat{gap:5px 14px;padding:19px 20px}
.global-stat span{font-size:14px}
.global-stat b{font-size:34px}
.global-stat small{font-size:12px!important}
.global-manager-tabs{gap:8px;padding:12px 24px 0}
.global-manager-tabs a{padding:12px 19px}
.global-manager-toolbar{gap:12px;padding:21px 24px}
.global-manager-search{gap:8px;min-width:320px;font-size:13px}
.global-manager-search input{height:48px;padding:0 15px}
.global-manager-tip{margin:0 24px 17px;padding:14px 17px;font-size:13px;line-height:1.6}
.global-manager-bulkbar{gap:10px;padding:0 24px 18px}
.global-manager-list{padding:0 24px 25px;gap:12px}
.global-manager-row{gap:16px;padding:19px 20px}
.global-manager-parent-preview{font-size:12.5px!important;line-height:1.5}
.status-pill{height:29px;padding:0 10px;font-size:11.5px}
.global-chip,.global-id-chip,.global-usage-count{min-height:29px;padding:5px 9px;font-size:11.5px}
.global-inline-warning{padding:11px 13px;font-size:12px}
.global-manager-filterchips{gap:8px;padding:0 24px 17px}
.global-manager-filterchips a{padding:8px 13px;font-size:11.5px}
.global-component-preview{width:94px;height:94px;flex-basis:94px;font-size:28px}
.global-component-ar{font-size:16px}
.global-component-actions{min-width:178px!important}
.global-component-actions .btn{min-height:40px}

/* Global manager dialog. */
.ux-gm-modal-card{width:min(1000px,95vw)!important;max-height:min(800px,calc(100vh - 60px))!important}
.ux-gm-dialog-context{gap:15px;padding:17px 24px}
.ux-gm-context-preview{width:64px;flex-basis:64px}
.ux-gm-context-preview .global-component-preview{width:64px!important;height:64px!important;flex-basis:64px!important}
.ux-gm-context-copy{gap:9px}
.ux-gm-context-copy>b{font-size:15px}
.ux-gm-context-meta{gap:7px}
.ux-gm-dialog-slot{padding:22px 24px 26px}
.ux-gm-dialog-slot .global-usage-grid{max-height:430px;gap:9px}
.ux-gm-dialog-slot .global-usage-actions{
  bottom:-26px;
  margin:22px -24px -26px!important;
  padding:15px 24px!important;
}

/* Sandwich Recipe / component configuration — V10 had the smallest text here. */
.recipe-kicker{min-height:28px;padding:5px 10px;margin-bottom:9px;font-size:12px}
.recipe-hero{gap:18px;padding:19px}
.recipe-hero h4{font-size:18px!important}
.recipe-behavior-guide{gap:10px}
.recipe-behavior-guide small{font-size:12.5px}
.recipe-search input{min-height:48px}
.recipe-groups{gap:14px}
.recipe-group-card{border-radius:17px}
.recipe-group-head{gap:18px;padding:16px 18px}
.recipe-group-head h4{font-size:17px!important}
.recipe-group-head .muted{font-size:12.5px!important}
.recipe-count{min-width:32px;height:32px;padding:0 10px;font-size:13px}
.recipe-ingredient-row{grid-template-columns:minmax(0,1fr) minmax(390px,auto);gap:19px;min-height:86px;padding:14px 18px}
.recipe-ingredient-info{gap:14px}
.recipe-ingredient-icon{width:48px;height:48px;flex-basis:48px;font-size:18px}
.recipe-ingredient-copy>b{font-size:15px!important}
.recipe-ingredient-meta{gap:8px;margin-top:5px;font-size:12.5px;line-height:1.45}
.recipe-controls{gap:10px}
.recipe-control{min-width:170px;padding:9px 11px}
.recipe-control-copy>b{font-size:12.5px}
.recipe-state{margin-top:3px;font-size:11.5px}
.recipe-global-off{min-height:32px;padding:5px 9px;font-size:11.5px}
.recipe-save-bar{margin-top:15px;padding-top:12px}
.recipe-save-bar .btn{min-height:47px!important}
.recipe-section-label{gap:16px;margin:18px 2px 10px}
.recipe-section-label>b{font-size:15px}
.recipe-section-label>span{font-size:12.5px}
.recipe-section-secondary{margin-top:22px}
.recipe-type-badge{min-height:26px;padding:4px 9px;font-size:10.5px}
.recipe-aux-option{gap:16px;min-height:66px;padding:12px 18px}
.recipe-aux-option>b,.recipe-aux-option>div>b{font-size:14px}
.recipe-active-pill{min-width:72px;min-height:30px;padding:5px 10px;font-size:11.5px}
.modifier-local-bulkbar{gap:10px;margin-bottom:15px;padding:14px 16px}
.modifier-local-bulkbar>div{gap:3px;min-width:270px}
.modifier-local-bulkbar>div>b{font-size:14px}
.modifier-local-bulkbar>div>span{font-size:12.5px;line-height:1.45}
.modifier-group-bulkbar{padding:11px 14px}
.modifier-group-bulkbar>div{min-width:205px}
.modifier-group-bulkbar .btn{min-height:36px!important;padding:7px 12px!important}
.modifier-group-bulkbar .muted{font-size:12.5px}

/* Dynamic modifiers. */
.global-dynamic-head{gap:20px;padding:24px 28px}
.global-dynamic-toolbar{gap:12px;padding:21px 28px 12px}
.global-dynamic-note{margin:9px 28px 16px;padding:14px 16px;font-size:14px}
.global-dynamic-bulkbar{gap:11px;padding:0 28px 19px}
.global-dynamic-table th,.global-dynamic-table td{padding:17px 18px}
.global-chip-wrap{gap:6px;max-width:300px}
.global-chip{padding:5px 8px;font-size:12px}

/* Kiosk/API/receipt/report micro-copy. */
.receipt-setting-title small,.kapi-method-state{font-size:12px}
.code{font-size:13.5px;line-height:1.55}
.alert{padding:15px 18px;font-size:14px}

/* Login must feel equally readable. */
.login-wrap{max-width:480px}
.login-wrap .card{padding:38px}
.login-logo{font-size:33px}

/* Full HD / laptop balance. */
@media(max-width:1366px){
  :root{--avx-sidebar-w:286px}
  .page-body{width:100%;padding:28px 28px 44px}
  .page-heading{padding-left:30px;padding-right:30px}
  .recipe-ingredient-row{grid-template-columns:1fr;gap:12px}
  .recipe-controls{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:1000px){
  :root{--avx-sidebar-w:286px}
  .page-body{padding:24px 22px 38px}
  .page-heading-copy h1,.page-heading h1{font-size:23px}
}
@media(max-width:760px){
  body{font-size:14px}
  .page-body{padding:19px 16px 34px}
  .page-heading{min-height:82px;padding:14px 18px}
  .page-heading-copy h1,.page-heading h1{font-size:21px}
  .page-heading-copy p{font-size:12.5px}
  .card{padding:20px}
  input,select,textarea{min-height:46px}
  .btn{min-height:44px}
  .modal-shell{padding:10px}
  .modal-head{min-height:68px;padding:14px 16px!important}
  .modal-head h2{font-size:19px!important}
  .modal-form{padding:16px!important}
  .modal-form>.modal-actions:last-child{margin:19px -16px -16px!important;padding:13px 16px!important}
  .dashboard-hero{padding:22px}
  .dashboard-hero h2{font-size:24px}
  .store-scope-form .field{grid-template-columns:1fr}
  .modifier-content-editor{grid-template-columns:1fr}
  .modifier-content-image{grid-template-columns:112px minmax(110px,1fr)}
  .recipe-ingredient-row{grid-template-columns:1fr}
  .recipe-controls{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .recipe-control{min-width:0}
  .global-manager-hero{padding:23px;align-items:flex-start;flex-direction:column}
  .global-manager-hero h2{font-size:25px}
  .global-manager-sync-note{min-width:0;width:100%}
  .global-manager-stats{grid-template-columns:1fr;padding:16px}
  .global-manager-toolbar{padding:17px}
  .global-manager-list{padding:0 17px 18px}
}

/* V11 readable scale — nested items / media surfaces that still used micro text. */
.playlist-new-card b{font-size:12.5px;padding:6px 10px}
.playlist-new-card span{font-size:13px;padding:10px 11px}
.api-list-badge{font-size:11.5px;padding:4px 9px}
.api-item-list-builder{padding:21px}
.api-item-list-builder-head{gap:22px}
.api-item-list-thumb{width:54px;height:54px;font-size:12.5px}
.api-item-list-copy strong{font-size:14px}
.api-item-list-copy small{margin-top:4px;font-size:12.5px}
.api-item-list-option-head{padding:13px}
.api-item-list-editor{padding:19px}
.api-item-list-editor-grid{gap:16px}
.api-child-translate-switch{padding:12px 14px;font-size:13px}
.global-usage-choice{padding:12px 13px;font-size:13px}
.global-usage-choice small{font-size:12px}
.global-usage-details summary{font-size:13.5px}

/* ==========================================================
   AVX SERVE HUB UI V12 — FULL-WIDTH APPLICATION LAYOUT
   2026-08-19
   Purpose: use almost all available application width while
   retaining a small, consistent page gutter. This replaces the
   centered 1580px desktop canvas from V11. No CSS zoom is used.
   ========================================================== */
:root{
  --avx-page-gutter:clamp(18px,1.35vw,28px);
}

/* One alignment grid from the top bar through page content. */
.topbar{
  padding-left:var(--avx-page-gutter)!important;
  padding-right:var(--avx-page-gutter)!important;
}
.page-heading{
  padding-left:var(--avx-page-gutter)!important;
  padding-right:var(--avx-page-gutter)!important;
}
.page-body{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:30px var(--avx-page-gutter) 50px!important;
}
.alert{
  margin-left:var(--avx-page-gutter)!important;
  margin-right:var(--avx-page-gutter)!important;
}
.footer{
  padding-left:var(--avx-page-gutter)!important;
  padding-right:var(--avx-page-gutter)!important;
}

/* Page-level surfaces always use the full available content track. */
.page-body>.card,
.page-body>.table-card,
.page-body>.store-scope-card,
.page-body>.filter-card,
.page-body>.global-manager-shell,
.page-body>.dashboard-hero,
.page-body>.dashboard-stats,
.page-body>.dashboard-help-card,
.page-body>.global-dynamic-shell,
.page-body>.kapi-hero-card,
.page-body>.kapi-section-card{
  width:100%;
  max-width:none;
}

/* Keep controls readable rather than stretching single inputs unnaturally. */
.store-scope-form{max-width:760px}
.table-search{max-width:420px}

/* The shell should not introduce a second visual gutter when navigation is collapsed. */
.shell.sidebar-collapsed .page-body{
  width:100%!important;
  max-width:none!important;
}

/* Large desktop: nearly edge-to-edge application workspace. */
@media(min-width:1600px){
  :root{--avx-page-gutter:24px}
  .page-body{padding-top:30px!important}
}

/* Laptop / compact desktop keeps the same layout principle with a smaller gutter. */
@media(max-width:1366px){
  :root{--avx-page-gutter:20px}
  .page-body{width:100%!important;max-width:none!important;margin:0!important;padding:26px var(--avx-page-gutter) 44px!important}
}
@media(max-width:1000px){
  :root{--avx-page-gutter:18px}
  .page-body{padding:22px var(--avx-page-gutter) 38px!important}
}
@media(max-width:760px){
  :root{--avx-page-gutter:14px}
  .page-body{padding:18px var(--avx-page-gutter) 34px!important}
  .topbar,.page-heading{padding-left:var(--avx-page-gutter)!important;padding-right:var(--avx-page-gutter)!important}
  .alert{margin-left:var(--avx-page-gutter)!important;margin-right:var(--avx-page-gutter)!important}
}

/* ==========================================================
   AVX SERVE HUB UI V13 — READABLE FULL-WIDTH SCALE
   2026-08-19
   Goal: a modest, consistent typography/element-size increase
   across every portal surface without browser/CSS zoom.
   Also hardens wrapping/overflow so controls remain visible.
   ========================================================== */
:root{
  --avx-ui-font:15px;
  --avx-ui-small:13.5px;
  --avx-ui-micro:12.5px;
  --avx-control-h:48px;
}

/* Global readable baseline. */
body{
  font-size:var(--avx-ui-font)!important;
  line-height:1.52!important;
}
button,input,select,textarea{font-size:14.5px!important}
.muted,.hint,.note-row{line-height:1.5}

/* Navigation and application chrome. */
.sidebar nav a{
  font-size:14px!important;
  font-weight:750!important;
  gap:13px!important;
}
.nav-group-label{
  font-size:11px!important;
  letter-spacing:.13em!important;
  line-height:1.25!important;
}
.userbox{font-size:14px!important;line-height:1.45}
.userbox small,.brand small{font-size:12px!important}
.hello{font-size:14.5px!important}
.footer{font-size:13.5px!important}

/* Page titles / descriptions. */
.page-heading-copy h1,.page-heading h1{
  font-size:clamp(26px,1.85vw,34px)!important;
  line-height:1.16!important;
}
.page-heading-copy p{
  font-size:13.5px!important;
  line-height:1.5!important;
  max-width:1000px;
}
.page-heading .total{font-size:13.5px!important}
.card h2,.card h3,.section-title{line-height:1.28}
.card h2{font-size:20px!important}
.card h3,.section-title{font-size:18px!important}

/* Form controls: text and hit-area grow together. */
.field span,.store-scope-form .field>span{
  font-size:14px!important;
  line-height:1.4!important;
}
.field-help{font-size:13px!important;line-height:1.45!important}
input,select,textarea{
  min-height:var(--avx-control-h)!important;
  padding:11px 14px!important;
  line-height:1.35!important;
}
textarea{min-height:120px!important}
input[type="checkbox"],input[type="radio"]{
  min-height:0!important;
  padding:0!important;
}

/* Buttons and tabs: prevent labels from feeling cramped or clipped. */
.btn{
  min-height:46px!important;
  padding:11px 19px!important;
  font-size:14px!important;
  line-height:1.25!important;
  text-align:center;
  white-space:normal;
}
.btn.small{
  min-height:38px!important;
  padding:8px 12px!important;
  font-size:13px!important;
}
.btn.compact,
.global-manager-actions .btn.compact,
.global-usage-actions .btn.compact,
.global-usage-selectbar .btn.compact{
  min-height:36px!important;
  padding:7px 11px!important;
  font-size:13px!important;
}
.tabs a,.item-subtabs a,.global-manager-tabs a,.kapi-tabs a{
  min-height:46px!important;
  padding:11px 16px!important;
  font-size:13.5px!important;
  line-height:1.25!important;
}

/* Cards / tables: slightly larger density without wasting the full-width canvas. */
.card{padding:26px!important}
.table-card-title{padding:22px 24px!important;gap:14px;flex-wrap:wrap}
.table-card-title h2{font-size:19px!important}
.table-card-subtitle{font-size:13px!important;line-height:1.45!important}
th,td{
  padding:18px 20px!important;
  font-size:14px!important;
  line-height:1.45!important;
}
th{font-size:13.5px!important;letter-spacing:.01em}
td .muted{font-size:13px!important}
.badge{font-size:13px!important;line-height:1.2!important}
.big{font-size:44px!important}
.empty-state{font-size:14px!important;line-height:1.55}

/* Dashboard. */
.dashboard-kicker{font-size:12.5px!important}
.dashboard-hero h2{font-size:28px!important;line-height:1.2!important}
.dashboard-hero p{font-size:14px!important;line-height:1.55!important}
.dashboard-stat div>b{font-size:18px!important}
.dashboard-stat div>span{font-size:13.5px!important}
.dashboard-stat small{font-size:12.5px!important}
.dashboard-quick-grid b{font-size:13.5px!important;line-height:1.35!important}
.dashboard-quick-grid small{font-size:12.5px!important;line-height:1.45!important}
.dashboard-help-card{font-size:14px!important}

/* Modifiers workflow / editor. */
.ux-workflow-step>span{font-size:12.5px!important}
.ux-workflow-step b{font-size:13.5px!important}
.ux-workflow-step small{font-size:12px!important;line-height:1.4!important}
.modifier-master-summary span{font-size:12px!important}
.modifier-master-summary small,.modifier-master-switch small{font-size:13px!important;line-height:1.4!important}
.modifier-modal .mod-tab-btn,.modifier-picker-modal .mod-tab-btn{font-size:13.5px!important}
.modifier-image-upload,.modifier-clear-image{font-size:13px!important}
.modifier-content-fields label span{font-size:13px!important}
.modifier-content-identity{font-size:13px!important;line-height:1.45!important}
.modifier-picker-sub{font-size:13.5px!important}
.option-toggle-row .modifier-option-main .muted{font-size:13px!important}

/* Global Menu Manager. */
.global-manager-kicker{font-size:12.5px!important}
.global-manager-sync-note,.global-manager-tip,.global-manager-search{font-size:13.5px!important;line-height:1.45!important}
.global-manager-hero p{font-size:14px!important;line-height:1.55!important}
.global-stat span{font-size:14px!important}
.global-stat small{font-size:12.5px!important}
.global-manager-parent-preview{font-size:13px!important}
.status-pill{font-size:12.5px!important}
.global-chip,.global-id-chip,.global-usage-count{font-size:12.5px!important}
.global-inline-warning{font-size:12.5px!important;line-height:1.45!important}
.global-manager-filterchips a{font-size:12.5px!important}
.global-usage-details summary{font-size:14px!important}
.global-usage-details summary span{font-size:12.5px!important}
.global-usage-choice{font-size:13.5px!important}
.global-usage-choice b{font-size:13px!important}
.global-usage-choice small,.global-usage-choice em{font-size:12px!important;line-height:1.4!important}
.ux-gm-context-copy>b{font-size:15px!important}

/* Recipe / component configuration. */
.recipe-kicker{font-size:12.5px!important}
.recipe-hero h4{font-size:19px!important}
.recipe-hero .muted{font-size:14px!important}
.recipe-behavior-guide b{font-size:13.5px!important}
.recipe-behavior-guide small{font-size:13px!important}
.recipe-group-head h4{font-size:18px!important}
.recipe-group-head .muted{font-size:13px!important}
.recipe-count{font-size:13.5px!important}
.recipe-ingredient-copy>b{font-size:15.5px!important}
.recipe-ingredient-meta{font-size:13px!important}
.recipe-control-copy>b{font-size:13px!important}
.recipe-state,.recipe-global-off{font-size:12.5px!important}
.recipe-section-label>b{font-size:15px!important}
.recipe-section-label>span{font-size:13px!important}
.recipe-type-badge{font-size:11.5px!important}
.recipe-aux-option>b,.recipe-aux-option>div>b{font-size:14.5px!important}
.recipe-active-pill{font-size:12.5px!important}
.modifier-local-bulkbar>div>b{font-size:14px!important}
.modifier-local-bulkbar>div>span,.modifier-group-bulkbar .muted{font-size:13px!important}

/* Kiosk API / receipt / reports. */
.kapi-eyebrow,.kapi-live-status span,.kapi-chip,.kapi-site-summary span{font-size:13px!important}
.kapi-method-state,.receipt-setting-title small{font-size:12.5px!important}
.receipt-meta,.receipt-line,.receipt-center,.receipt-footer-lines{font-size:13.5px!important}
.receipt-sub{font-size:12.5px!important}
.sales-report-table th{font-size:13px!important}
.activity-action-pill{font-size:12.5px!important}
.code{font-size:14px!important;line-height:1.58!important}
.alert{font-size:14.5px!important;line-height:1.45!important}

/* App content / media / API lists. */
.playlist-upload-box span{font-size:13px!important}
.playlist-order-badge,.playlist-file-name{font-size:13.5px!important}
.playlist-new-card b{font-size:13px!important}
.playlist-new-card span{font-size:13.5px!important}
.preview-video-tag,.preview-caption{font-size:12.5px!important}
.api-list-badge{font-size:12.5px!important}
.api-item-list-thumb{font-size:13px!important}
.api-item-list-copy strong{font-size:14.5px!important}
.api-item-list-copy small{font-size:13px!important}
.api-child-translate-switch{font-size:13.5px!important}
.menu-import-safety-grid span,.menu-import-target span,.menu-import-file-summary span{font-size:12.5px!important}
.menu-import-file-info,.menu-import-protected-list,.menu-import-file-summary b{font-size:13.5px!important}
.menu-import-preview-table td{font-size:13px!important}

/* Modal readability / visible actions. */
.modal-head{min-height:74px!important;padding:18px 22px!important;gap:14px;flex-wrap:wrap}
.modal-head h2{font-size:21px!important;line-height:1.25!important}
.modal-head p{font-size:13px!important;line-height:1.45!important}
.modal-x{font-size:30px!important;min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.modal-form{padding:22px 24px!important}
.modal-form>.section-title{font-size:14px!important}
.ux-modal-section-nav button{font-size:12.5px!important;min-height:38px}
.ux-unsaved-badge{font-size:12px!important}
.ux-confirm-card p{font-size:14px!important;line-height:1.55!important}
.modal-actions{flex-wrap:wrap}

/* Visibility hardening: no important label/control should disappear or be clipped. */
.card-header,.cloud-tools,.actions,.inline-actions,.table-tools,.table-card-title,
.global-manager-toolbar,.global-manager-actions,.global-dynamic-head,.global-dynamic-toolbar,
.combo-section-head,.modal-head,.modal-actions{
  min-width:0;
}
.card-header,.cloud-tools,.actions,.inline-actions,.table-card-title,.global-manager-toolbar,
.global-manager-actions,.global-dynamic-head,.global-dynamic-toolbar,.combo-section-head,.modal-actions{
  flex-wrap:wrap!important;
}
.card,.table-card,.store-scope-card,.modal-card,.global-manager-shell,.global-dynamic-shell{
  min-width:0;
}
th,td,.field,.field span,.muted,.hint,.note-row,.table-card-subtitle,
.dashboard-quick-grid b,.dashboard-quick-grid small,.global-manager-tip,
.recipe-ingredient-copy,.api-item-list-copy{
  overflow-wrap:anywhere;
  word-break:normal;
}
.table-card{overflow-x:auto!important;overflow-y:visible}
.tabs,.item-subtabs,.global-manager-tabs,.kapi-tabs{max-width:100%}
.actions{row-gap:9px!important}
img,video{max-width:100%}

/* Preserve compact-but-readable behavior on smaller screens. */
@media(max-width:1366px){
  body{font-size:14.5px!important}
  .sidebar nav a{font-size:13.5px!important}
  .page-heading-copy h1,.page-heading h1{font-size:27px!important}
  th,td{padding:16px 16px!important}
}
@media(max-width:1000px){
  body{font-size:14.5px!important}
  .page-heading-copy h1,.page-heading h1{font-size:25px!important}
  .card{padding:22px!important}
}
@media(max-width:720px){
  body{font-size:14px!important;line-height:1.5!important}
  .page-heading-copy h1,.page-heading h1{font-size:23px!important}
  .page-heading-copy p{font-size:13px!important}
  .card{padding:18px!important}
  .btn{font-size:13.5px!important;min-height:44px!important;padding:10px 15px!important}
  input,select,textarea{font-size:14px!important;min-height:46px!important}
  th,td{font-size:13.5px!important;padding:14px 14px!important}
}

/* V13 remaining micro-copy normalization. */
.element-editor p,.small-note,.lang-switch-label,.ux-search-count{
  font-size:12.5px!important;
  line-height:1.45!important;
}
.preview-caption,.preview-video-tag{font-size:12.5px!important}
.playlist-new-card b{font-size:13px!important}
.playlist-new-card span{font-size:13.5px!important}

/* ==========================================================
   AVX SERVE HUB UX V14
   Final consistency layer: store context, workspace navigation,
   modifier picker/editor, form feedback and full dark/light parity.
   Existing AVX colors and typography remain authoritative.
   ========================================================== */

/* Store context: make scope obvious before the user edits anything. */
.store-context-card{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) minmax(340px,620px);
  gap:20px;
  align-items:center;
  padding:17px 20px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdff 70%,#f2f8ff 100%)!important;
}
.store-context-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.store-context-kicker{color:var(--primary);font-size:11px;font-weight:950;letter-spacing:.12em}
.store-context-copy>b{color:#283249;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.store-context-copy>small{margin-top:3px;color:#7f8aa1;font-size:12.5px;line-height:1.45}
.store-context-card .store-scope-form{max-width:none;width:100%}
.store-context-card .store-scope-form .field{grid-template-columns:78px minmax(0,1fr);margin:0}
.store-context-card select{background-color:#fff;font-weight:700;color:#37425b}

/* Store workspace tabs: one consistent navigation strip across store pages. */
.branch-workspace-nav{display:flex;align-items:center;gap:18px;margin:0 0 20px;padding:10px 12px 10px 16px;border:1px solid var(--ux-border);border-radius:16px;background:#fff;box-shadow:0 9px 26px rgba(32,43,74,.045)}
.branch-workspace-caption{display:flex;min-width:145px;flex-direction:column;gap:1px;padding-right:16px;border-right:1px solid #e8ecf3}
.branch-workspace-caption span{color:#8a95aa;font-size:10px;font-weight:950;letter-spacing:.12em}
.branch-workspace-caption b{max-width:180px;color:#34405a;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.branch-workspace-nav .tab-rail-shell{flex:1;min-width:0;margin:0}
.branch-workspace-nav .tabs{margin:0;flex-wrap:nowrap;overflow-x:auto}
.branch-workspace-nav .tabs a{min-height:39px!important;padding:8px 12px!important;border:1px solid transparent!important;background:transparent!important;color:#667189!important;font-size:12.5px!important;box-shadow:none!important;white-space:nowrap}
.branch-workspace-nav .tabs a:hover{background:#f4f8fc!important;color:#33425d!important}
.branch-workspace-nav .tabs a.active{background:#eef6fb!important;border-color:rgba(1,95,192,.12)!important;color:var(--primary)!important}
.branch-workspace-nav .tab-ico svg{width:16px;height:16px}

/* Search helpers created by JS. */
.ux-search-wrap{position:relative;display:flex;align-items:center;min-width:0}
.ux-search-wrap>input[type="search"]{padding-right:42px!important}
.ux-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#7d879c;font-size:18px;cursor:pointer}
.ux-search-wrap.has-value .ux-search-clear{display:inline-flex}
.ux-search-clear:hover{background:#eef3f8;color:#354159}
.ux-no-results-row td{text-align:center!important;padding:28px!important;color:#8a95a9!important;background:#fbfcfe!important}

/* Alerts are useful feedback, not permanent page chrome. */
.alert.ux-dismissible{position:relative;padding-right:48px!important}
.ux-alert-close{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:currentColor;font-size:19px;opacity:.65;cursor:pointer}
.ux-alert-close:hover{background:rgba(0,0,0,.05);opacity:1}

/* Submit state prevents double submissions and makes long API operations clear. */
.btn.ux-submitting{position:relative;pointer-events:none;opacity:.82;padding-left:38px!important}
.btn.ux-submitting:before{content:"";position:absolute;left:14px;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:uxSpin .75s linear infinite}
@keyframes uxSpin{to{transform:rotate(360deg)}}

/* Form information architecture. */
.modal-form .ux-form-summary{display:flex;gap:10px;align-items:flex-start;margin:0 0 18px;padding:12px 14px;border:1px solid #e5eaf2;border-radius:12px;background:#f8fafc;color:#647088;line-height:1.45}
.ux-field-note{display:flex;gap:8px;align-items:flex-start;margin-top:7px;color:#7c879b;font-size:12.5px;line-height:1.45}
.ux-field-note:before{content:"i";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;border-radius:50%;background:#edf4fb;color:var(--primary);font-size:11px;font-weight:950}

/* Modifier item picker: visual, searchable, and much easier to scan. */
.modifier-picker-workspace{padding-top:18px!important}
.modifier-picker-guide{display:grid;grid-template-columns:44px minmax(230px,1fr) auto 18px auto 18px auto;gap:10px;align-items:center;margin:0 0 16px;padding:14px 16px;border:1px solid #e7ecf3;border-radius:14px;background:linear-gradient(135deg,#f9fbfe,#f2f7fc)}
.modifier-picker-guide-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#eaf4fc;color:var(--primary)}
.modifier-picker-guide-icon svg{width:21px;height:21px}
.modifier-picker-guide>div:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:2px}
.modifier-picker-guide>div:nth-child(2)>b{color:#34405a;font-size:14px}
.modifier-picker-guide>div:nth-child(2)>span{color:#7f8aa0;font-size:12px;line-height:1.4}
.modifier-picker-guide-step{display:inline-flex;align-items:center;gap:7px;color:#43506a;font-size:12px;font-weight:850;white-space:nowrap}
.modifier-picker-guide-step>span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:var(--primary);color:#fff;font-size:11px}
.modifier-picker-guide-step.muted-step{color:#9099aa}
.modifier-picker-guide-step.muted-step>span{background:#e7ebf1;color:#7c879a}
.modifier-picker-guide-arrow{color:#bec6d2;font-size:20px}
.modifier-picker-modal.wide-modal{width:min(980px,96vw)!important}
.modifier-picker-panel{padding:16px!important}
.modifier-search-label{margin-bottom:8px;color:#59657b;font-size:12.5px;font-weight:850}
.modifier-picker-search-field:after{display:none!important}
.modifier-picker-search-field input[type="search"]{min-height:50px!important;padding-left:15px!important;font-size:14.5px!important;background:#fff!important}
.modifier-picker-list{max-height:min(56vh,580px)!important;padding:8px!important;display:none;gap:7px;background:#f7f9fc!important}
.modifier-picker-panel.show-results .modifier-picker-list{display:grid!important}
.modifier-picker-item.modifier-picker-filtered-out{display:none!important}
.modifier-picker-card{display:grid!important;grid-template-columns:62px minmax(0,1fr) 32px;gap:13px;align-items:center;min-height:78px;padding:9px 11px!important;border:1px solid #e6ebf2!important;border-radius:13px!important;background:#fff!important;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background .12s ease}
.modifier-picker-card:hover,.modifier-picker-card:focus{transform:translateY(-1px);border-color:rgba(1,95,192,.22)!important;background:#fbfdff!important;box-shadow:0 9px 24px rgba(29,53,86,.08);outline:none}
.modifier-picker-thumb{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#eef3f8,#e4ebf4);color:#58708e;font-size:22px;font-weight:900}
.modifier-picker-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.modifier-picker-thumb.image-failed:after,.global-component-preview.image-failed:after{content:"IMG";font-size:11px;font-weight:900;letter-spacing:.06em;color:#8693a7}
.modifier-picker-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.modifier-picker-title-row{display:flex;min-width:0;align-items:center;gap:8px}
.modifier-picker-title-row .modifier-picker-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#36425b!important;font-size:14px!important;font-weight:850!important}
.modifier-picker-card .status-pill{flex:0 0 auto}
.modifier-picker-ar{color:#58657c;font-size:13px;font-weight:650;line-height:1.35;text-align:left}
.modifier-picker-card .modifier-picker-sub{margin:0!important;color:#8993a6!important;font-size:12px!important;line-height:1.35}
.modifier-picker-card .modifier-picker-sub b{color:#59677f;font-weight:850}
.modifier-picker-go{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#f1f5f9;color:#68768e;font-size:22px;transition:.12s}
.modifier-picker-card:hover .modifier-picker-go{background:#eaf3fb;color:var(--primary);transform:translateX(2px)}
.modifier-picker-all{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin:0 0 3px!important;padding:13px 15px!important;border:1px dashed rgba(1,95,192,.28)!important;border-radius:13px!important;background:#eef7fd!important}
.modifier-picker-all:after{content:"Store-wide tools →";color:var(--primary);font-size:11px;font-weight:900}
.modifier-picker-all .modifier-picker-title{font-size:13.5px!important;font-weight:900!important;color:#315b83!important}
.modifier-picker-all .modifier-picker-sub{grid-column:1/3;margin-top:0!important;font-size:12px!important}
.modifier-picker-empty{margin-top:12px!important;padding:16px!important;font-size:13px!important;line-height:1.5!important}

/* Modifier editor context and tabs. */
.modifier-editor-context{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:14px;padding:12px 14px;border:1px solid #e5eaf2;border-radius:14px;background:linear-gradient(135deg,#fff,#f7faff)}
.modifier-editor-context-thumb{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:14px;overflow:hidden;background:#edf2f7;color:#61758f;font-size:24px;font-weight:900}
.modifier-editor-context-thumb img{width:100%;height:100%;object-fit:cover}
.modifier-editor-context-copy{min-width:0}
.modifier-editor-kicker{display:block;margin-bottom:2px;color:var(--primary);font-size:10px;font-weight:950;letter-spacing:.12em}
.modifier-editor-context-copy h3{margin:0!important;color:#2f3b53!important;font-size:17px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modifier-editor-context-copy p{margin:3px 0 0;color:#7c879c;font-size:12.5px;line-height:1.4;overflow-wrap:anywhere}
.modifier-editor-context-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.modifier-tab-shell{position:sticky;top:70px;z-index:24;margin:0 -2px 14px;padding:7px 2px 0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #e9edf3}
.modifier-tab-shell .modifier-tab-buttons{position:static!important;top:auto!important;margin:0!important;padding:0 0 8px!important;border:0!important;background:transparent!important;display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px!important}
.modifier-tab-shell .mod-tab-btn{display:flex!important;min-height:52px!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;gap:1px!important;padding:8px 12px!important;border:1px solid #e4e9f0!important;border-radius:11px!important;background:#fff!important;color:#667188!important;text-align:left!important;box-shadow:none!important;white-space:normal!important}
.modifier-tab-shell .mod-tab-btn>span{font-size:13px;font-weight:900;line-height:1.25}
.modifier-tab-shell .mod-tab-btn>small{color:#9aa3b3;font-size:10.5px;font-weight:650;line-height:1.25}
.modifier-tab-shell .mod-tab-btn:hover{background:#f8fafc!important;border-color:#d8e0eb!important}
.modifier-tab-shell .mod-tab-btn.active{border-color:rgba(1,95,192,.22)!important;background:#eef6fb!important;color:var(--primary)!important;box-shadow:inset 0 -2px 0 var(--primary)!important}
.modifier-tab-shell .mod-tab-btn.active>small{color:#6382a1}
.modifier-editor-form .modifier-tab-pane{animation:uxPaneIn .12s ease-out}
@keyframes uxPaneIn{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}

/* Components and recipe: clearer grouping and easier scanning. */
.modifier-editor-form .modifier-local-bulkbar{border-radius:12px!important;background:#f7f9fc!important;border-color:#e5eaf1!important}
.modifier-editor-form .modifier-group-card.flat{border-radius:14px!important;border-color:#e5eaf2!important;overflow:hidden;background:#fff!important}
.modifier-editor-form .modifier-group-head.slim{padding:14px 16px!important;background:#fbfcfe!important;border-bottom:1px solid #edf0f4}
.modifier-editor-form .modifier-source-details{border-radius:11px!important;overflow:hidden!important}
.modifier-editor-form .modifier-source-details>summary{cursor:pointer!important}
.modifier-editor-form .source-accordion-row:hover{background:#f7fafc!important}
.modifier-editor-form .modifier-child-row{border-radius:10px!important}
.recipe-group-card{border-radius:13px!important;overflow:hidden}
.recipe-group-card>summary{min-height:62px}
.recipe-aux-option{transition:background .12s ease}
.recipe-aux-option:hover{background:#fbfdff}

/* Image preview fallback should never look broken. */
.global-component-preview.image-failed{background:linear-gradient(135deg,#f2f5f9,#e7edf5)}
.global-component-preview.image-failed span{display:none}

/* Long forms and drawers. */
.side-drawer{z-index:45!important;border-radius:18px 0 0 18px!important}
.side-drawer.open{box-shadow:-24px 0 70px rgba(12,24,43,.2)!important}
.side-drawer .modal-actions{position:sticky;bottom:0;margin:20px -24px -26px;padding:14px 24px;background:rgba(255,255,255,.97);border-top:1px solid #e9edf3;backdrop-filter:blur(10px)}

/* Dark mode parity for every new surface. */
body.ui-dark .store-context-card,
body.ui-dark .branch-workspace-nav,
body.ui-dark .modifier-picker-guide,
body.ui-dark .modifier-editor-context,
body.ui-dark .modifier-editor-form .modifier-group-card.flat,
body.ui-dark .modifier-picker-card,
body.ui-dark .modifier-tab-shell .mod-tab-btn{
  background:#0d1d39!important;
  border-color:rgba(158,181,230,.16)!important;
}
body.ui-dark .store-context-copy>b,
body.ui-dark .branch-workspace-caption b,
body.ui-dark .modifier-picker-guide>div:nth-child(2)>b,
body.ui-dark .modifier-picker-title-row .modifier-picker-title,
body.ui-dark .modifier-editor-context-copy h3,
body.ui-dark .modifier-tab-shell .mod-tab-btn>span{color:#e9f1ff!important}
body.ui-dark .store-context-copy>small,
body.ui-dark .modifier-picker-guide>div:nth-child(2)>span,
body.ui-dark .modifier-picker-ar,
body.ui-dark .modifier-picker-card .modifier-picker-sub,
body.ui-dark .modifier-editor-context-copy p,
body.ui-dark .modifier-tab-shell .mod-tab-btn>small{color:#9eacc2!important}
body.ui-dark .store-context-card select,
body.ui-dark .modifier-picker-search-field input[type="search"]{background:#08182f!important;color:#edf4ff!important;border-color:#29415f!important}
body.ui-dark .branch-workspace-caption{border-color:rgba(158,181,230,.15)}
body.ui-dark .branch-workspace-nav .tabs a{color:#9dacc3!important}
body.ui-dark .branch-workspace-nav .tabs a:hover{background:#122643!important;color:#eef4ff!important}
body.ui-dark .branch-workspace-nav .tabs a.active{background:#123052!important;color:#67c8d0!important;border-color:#245079!important}
body.ui-dark .modifier-picker-guide-icon{background:#123052;color:#67c8d0}
body.ui-dark .modifier-picker-guide-step{color:#c6d2e4}
body.ui-dark .modifier-picker-guide-step>span{background:#00b8c0;color:#061529}
body.ui-dark .modifier-picker-guide-step.muted-step{color:#71819a}
body.ui-dark .modifier-picker-guide-step.muted-step>span{background:#172a45;color:#8292aa}
body.ui-dark .modifier-picker-list{background:#09182f!important;border-color:#213956!important}
body.ui-dark .modifier-picker-card:hover,
body.ui-dark .modifier-picker-card:focus{background:#112744!important;border-color:#2f557b!important;box-shadow:0 12px 28px rgba(0,0,0,.18)}
body.ui-dark .modifier-picker-thumb,
body.ui-dark .modifier-editor-context-thumb{background:#152945;color:#9eb0c8}
body.ui-dark .modifier-picker-card .modifier-picker-sub b{color:#b5c3d8}
body.ui-dark .modifier-picker-go{background:#152a46;color:#9cafc6}
body.ui-dark .modifier-picker-card:hover .modifier-picker-go{background:#183655;color:#63cad2}
body.ui-dark .modifier-picker-all{background:#102a49!important;border-color:#24547b!important}
body.ui-dark .modifier-picker-all .modifier-picker-title{color:#dcecff!important}
body.ui-dark .modifier-tab-shell{background:rgba(7,21,42,.96)!important;border-color:#213650}
body.ui-dark .modifier-tab-shell .mod-tab-btn:hover{background:#112744!important;border-color:#2a4667!important}
body.ui-dark .modifier-tab-shell .mod-tab-btn.active{background:#123052!important;border-color:#285a80!important;color:#67c8d0!important;box-shadow:inset 0 -2px 0 #00b8c0!important}
body.ui-dark .modifier-tab-shell .mod-tab-btn.active>small{color:#92b9c5!important}
body.ui-dark .modifier-editor-form .modifier-local-bulkbar,
body.ui-dark .modifier-editor-form .modifier-group-head.slim{background:#0a1a33!important;border-color:#203650!important}
body.ui-dark .modifier-editor-form .source-accordion-row:hover,
body.ui-dark .recipe-aux-option:hover{background:#10233e!important}
body.ui-dark .side-drawer .modal-actions{background:rgba(7,21,42,.97)!important;border-color:#203650!important}
body.ui-dark .ux-search-clear{color:#9cafc6}
body.ui-dark .ux-search-clear:hover{background:#17304d;color:#edf5ff}
body.ui-dark .ux-no-results-row td{background:#0b1c35!important;color:#9cabc1!important}
body.ui-dark .ux-alert-close:hover{background:rgba(255,255,255,.08)}

/* Responsive behavior keeps the workflow usable on smaller admin screens. */
@media(max-width:1180px){
  .store-context-card{grid-template-columns:1fr}
  .store-context-card .store-scope-form{max-width:760px}
  .branch-workspace-nav{align-items:flex-start;flex-direction:column;gap:8px}
  .branch-workspace-caption{width:100%;padding:0 0 8px;border-right:0;border-bottom:1px solid #e8ecf3}
  body.ui-dark .branch-workspace-caption{border-bottom-color:rgba(158,181,230,.15)}
  .modifier-picker-guide{grid-template-columns:44px minmax(0,1fr)}
  .modifier-picker-guide-step,.modifier-picker-guide-arrow{display:none}
  .modifier-tab-shell .modifier-tab-buttons{grid-template-columns:repeat(2,minmax(160px,1fr))!important}
}
@media(max-width:760px){
  .store-context-card{padding:14px!important}
  .store-context-card .store-scope-form .field{grid-template-columns:1fr;gap:6px}
  .branch-workspace-nav{padding:10px}
  .modifier-picker-card{grid-template-columns:52px minmax(0,1fr) 28px}
  .modifier-picker-thumb{width:50px;height:50px}
  .modifier-picker-title-row{align-items:flex-start;flex-direction:column;gap:3px}
  .modifier-editor-context{grid-template-columns:56px minmax(0,1fr)}
  .modifier-editor-context-thumb{width:54px;height:54px}
  .modifier-editor-context-actions{grid-column:1/3;justify-content:flex-start}
  .modifier-tab-shell .modifier-tab-buttons{grid-template-columns:1fr!important}
  .modifier-tab-shell .mod-tab-btn{min-height:46px!important}
}


/* Item editor: split long forms into predictable, scannable steps without changing backend fields. */
.item-editor-form .item-editor-section-head{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:11px;
  align-items:start;
  margin:20px 0 12px;
  padding:11px 13px;
  border:1px solid #e6ebf2;
  border-radius:12px;
  background:linear-gradient(135deg,#fbfcfe,#f6f9fc);
}
.item-editor-form .item-editor-section-head:first-of-type{margin-top:4px}
.item-editor-section-head>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#eaf4fc;
  color:var(--primary);
  font-size:12px;
  font-weight:950;
}
.item-editor-section-head>div{display:flex;min-width:0;flex-direction:column;gap:2px}
.item-editor-section-head b{color:#354159;font-size:13.5px;line-height:1.3}
.item-editor-section-head small{color:#8490a4;font-size:11.5px;line-height:1.45}
body.ui-dark .item-editor-form .item-editor-section-head{
  background:linear-gradient(135deg,#0b1d37,#0d213e);
  border-color:#213a57;
}
body.ui-dark .item-editor-section-head>span{background:#123052;color:#67c8d0}
body.ui-dark .item-editor-section-head b{color:#e5edfa}
body.ui-dark .item-editor-section-head small{color:#98a8bf}
@media(max-width:760px){
  .item-editor-form .item-editor-section-head{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:10px}
  .item-editor-section-head>span{width:28px;height:28px}
}

/* ==========================================================
   AVX SERVE HUB UX V15 - universal form/modal finishing layer.
   ========================================================== */
.ux-required-field>span:first-child:after{content:" *";color:#d32927;font-weight:950}
.ux-invalid-field input,.ux-invalid-field select,.ux-invalid-field textarea{border-color:#d32927!important;box-shadow:0 0 0 3px rgba(211,41,39,.10)!important}
.ux-invalid-field>span:first-child{color:#b91d1b!important}
.ux-modal-description{max-width:680px!important}
.ux-empty-table-row td{padding:34px 22px!important;text-align:center!important;background:#fbfcfe!important;color:#8792a6!important}
.ux-empty-table-row td b{display:block;margin-bottom:4px;color:#536078;font-size:14px}
.ux-empty-table-row td span{display:block;font-size:12.5px}
.modifier-picker-item.is-selected{border-color:rgba(1,95,192,.32)!important;background:#f4f9fe!important;box-shadow:0 0 0 3px rgba(1,95,192,.07)!important}
.modal-x:focus-visible,.drawer-x:focus-visible,.ux-search-clear:focus-visible,.tab-rail-toggle:focus-visible{outline:3px solid rgba(1,95,192,.18)!important;outline-offset:2px}
body.ui-dark .ux-invalid-field input,body.ui-dark .ux-invalid-field select,body.ui-dark .ux-invalid-field textarea{border-color:#ef6f6d!important;box-shadow:0 0 0 3px rgba(239,111,109,.12)!important}
body.ui-dark .ux-invalid-field>span:first-child{color:#ff9896!important}
body.ui-dark .ux-empty-table-row td{background:#0b1c35!important;color:#93a3b9!important}
body.ui-dark .ux-empty-table-row td b{color:#dce6f5}
body.ui-dark .modifier-picker-item.is-selected{border-color:#2e668e!important;background:#123052!important;box-shadow:0 0 0 3px rgba(0,184,192,.08)!important}
.global-meal-cardhead{align-items:center}
.global-meal-preview{width:68px!important;height:68px!important;flex:0 0 68px!important}
@media(max-width:760px){.global-meal-preview{width:56px!important;height:56px!important;flex-basis:56px!important}}

/* ==========================================================
   AVX SERVE HUB UX V16 - targeted hotfixes
   1) App Content color pickers were inheriting generic input sizing
      and looked stretched / misaligned.
   2) Combo meal popup in dark mode had a washed-out structure note
      because popup text was forced white while the note stayed light.
   ========================================================== */

/* App Content: keep color controls compact and visually correct */
.color-field{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
}
.color-field .color-picker,
input.color-picker,
input[type="color"].color-picker{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:14px!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  overflow:hidden!important;
  display:block!important;
}
.color-field .color-picker::-webkit-color-swatch-wrapper{
  padding:0!important;
}
.color-field .color-picker::-webkit-color-swatch{
  border:none!important;
  border-radius:14px!important;
  box-shadow:0 0 0 1px #d6dceb inset, 0 8px 18px rgba(49,66,109,.12)!important;
}
.color-field .color-picker::-moz-color-swatch{
  border:none!important;
  border-radius:14px!important;
  box-shadow:0 0 0 1px #d6dceb inset, 0 8px 18px rgba(49,66,109,.12)!important;
}
.color-field input[data-role="hex"]{
  min-width:0!important;
}

/* App Content in dark mode */
body.ui-dark .element-editor .color-field .color-picker::-webkit-color-swatch,
body.ui-dark .color-field .color-picker::-webkit-color-swatch{
  box-shadow:0 0 0 1px rgba(158,181,230,.18) inset, 0 8px 18px rgba(0,0,0,.22)!important;
}
body.ui-dark .element-editor .color-field .color-picker::-moz-color-swatch,
body.ui-dark .color-field .color-picker::-moz-color-swatch{
  box-shadow:0 0 0 1px rgba(158,181,230,.18) inset, 0 8px 18px rgba(0,0,0,.22)!important;
}

/* Combo add/edit modal dark-mode note fix */
body.ui-dark .combo-info-note{
  background:linear-gradient(135deg, rgba(0,184,192,.10), rgba(1,95,192,.10))!important;
  border:1px solid rgba(0,184,192,.22)!important;
  border-left:5px solid #00B8C0!important;
  color:#eaf3ff!important;
  box-shadow:0 10px 22px rgba(0,0,0,.16)!important;
}
body.ui-dark .combo-info-note *,
body.ui-dark .modal-card .combo-info-note *,
body.ui-dark .combo-info-note b,
body.ui-dark .combo-info-note strong,
body.ui-dark .combo-info-note small{
  color:inherit!important;
}
body.ui-dark .combo-info-note strong{
  color:#9ff8ff!important;
}

/* Keep combo section helper surfaces coherent in dark mode */
body.ui-dark .modifier-picker-empty,
body.ui-dark .combo-api-picker-panel .modifier-picker-empty,
body.ui-dark .combo-size-picker-panel .modifier-picker-empty{
  background:#123052!important;
  color:#d8e8ff!important;
  border:1px solid rgba(158,181,230,.16)!important;
}
body.ui-dark .combo-section-card .current-image-preview,
body.ui-dark .combo-level-card .current-image-preview{
  background:#0b1730!important;
  border:1px dashed rgba(158,181,230,.18)!important;
  border-radius:12px!important;
  padding:10px 12px!important;
}
body.ui-dark .combo-section-card .current-image-preview .muted,
body.ui-dark .combo-level-card .current-image-preview .muted{
  color:#aebce0!important;
}

/* ==========================================================
   AVX SERVE HUB UX V17 - restore search field position
   Return page search boxes to the right side like the original UX.
   ========================================================== */
.table-card-title,
.card-header.table-card-title,
.simple-table-card > .card-header,
.table-card > .card-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}
.table-card-title > h1,
.table-card-title > h2,
.table-card-title > h3,
.table-card-title > div:first-child,
.card-header.table-card-title > div:first-child,
.simple-table-card > .card-header > div:first-child,
.table-card > .card-header > div:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
.table-card-title .table-search,
.card-header .table-search,
.simple-table-card > .card-header .table-search,
.table-card > .card-header .table-search{
  margin-left:auto!important;
  margin-right:0!important;
  align-self:center!important;
  justify-self:end!important;
  flex:0 0 clamp(270px,28vw,420px)!important;
  width:clamp(270px,28vw,420px)!important;
  max-width:100%!important;
}
@media(max-width:900px){
  .table-card-title,
  .card-header.table-card-title,
  .simple-table-card > .card-header,
  .table-card > .card-header{
    align-items:stretch!important;
  }
  .table-card-title .table-search,
  .card-header .table-search,
  .simple-table-card > .card-header .table-search,
  .table-card > .card-header .table-search{
    flex:1 1 100%!important;
    width:100%!important;
    margin:10px 0 0!important;
  }
}

/* ==========================================================
   AVX SERVE HUB UX V18 - store position consistency
   - Keep the store selector anchored to the left.
   - Remove the redundant workspace caption block and let tabs start directly.
   ========================================================== */
.select-store-bar{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:flex-end!important;
  gap:0!important;
}
.select-store-bar .field{
  margin:0!important;
  width:min(420px,100%)!important;
  max-width:100%!important;
}
.select-store-bar .field span,
.select-store-bar label{
  text-align:left!important;
}
.branch-workspace-nav{
  gap:0!important;
}
.branch-workspace-nav .tabs,
.branch-workspace-nav .branch-tabs{
  width:100%!important;
  margin:0!important;
}
@media(max-width:1180px){
  .branch-workspace-nav{
    flex-direction:row!important;
    align-items:center!important;
  }
}
@media(max-width:900px){
  .select-store-bar{
    display:block!important;
  }
  .select-store-bar .field{
    width:100%!important;
  }
}

/* ==========================================================
   AVX SERVE HUB UX V19 - shared store/tabs correction
   Applies to every store-scoped page through shared components.
   ========================================================== */

/* Every Working Context selector is anchored on the LEFT. */
.store-context-card{
  grid-template-columns:minmax(320px,520px) minmax(280px,1fr)!important;
  align-items:center!important;
}
.store-context-card .store-scope-form{
  grid-column:1!important;
  justify-self:start!important;
  width:100%!important;
  max-width:520px!important;
  margin:0!important;
}
.store-context-card .store-context-copy{
  grid-column:2!important;
  min-width:0!important;
  padding-left:10px!important;
}
.store-context-card .store-scope-form .field{
  width:100%!important;
}

/* No large card/container around Store Workspace tabs. */
.branch-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  margin:0 0 20px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.branch-tabs a{
  min-height:40px!important;
  padding:8px 13px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
}
/* The JS rail is only a layout helper; never render it as a box. */
.tab-rail-shell:has(> .branch-tabs){
  margin:0 0 20px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.tab-rail-shell:has(> .branch-tabs) > .branch-tabs{
  margin:0!important;
}

body.ui-dark .branch-tabs,
body.ui-dark .tab-rail-shell:has(> .branch-tabs){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

@media(max-width:1180px){
  .store-context-card{
    grid-template-columns:minmax(280px,460px) minmax(240px,1fr)!important;
  }
}
@media(max-width:900px){
  .store-context-card{
    grid-template-columns:1fr!important;
  }
  .store-context-card .store-scope-form,
  .store-context-card .store-context-copy{
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
    padding-left:0!important;
  }
  .store-context-card .store-context-copy{margin-top:10px!important}
}

/* ==========================================================
   AVX SERVE HUB UX V20 - remove internal store tabs completely
   Sidebar navigation is the single navigation source.
   ========================================================== */
.branch-workspace-nav,
.branch-tabs,
.tab-rail-shell:has(> .branch-tabs){
  display:none!important;
}

/* ==========================================================
   AVX SERVE HUB UX V21 - Kiosk API dark-mode repair
   Keep the Active Method control center fully native to dark mode.
   ========================================================== */
body.ui-dark .kapi-hero-card{
  background:linear-gradient(145deg,#0c1d38 0%,#102747 100%)!important;
  border-color:#234362!important;
  color:#eef5ff!important;
  box-shadow:0 22px 50px rgba(0,0,0,.24)!important;
}
body.ui-dark .kapi-hero-card h2,
body.ui-dark .kapi-hero-card .kapi-hero-top h2{
  color:#f5f9ff!important;
}
body.ui-dark .kapi-hero-card p{
  color:#aebdd3!important;
}
body.ui-dark .kapi-eyebrow{
  color:#17c7d0!important;
}

/* Current method badge */
body.ui-dark .kapi-live-status{
  background:#1a2c49!important;
  border:1px solid #38506e!important;
  box-shadow:none!important;
}
body.ui-dark .kapi-live-status span{
  color:#aab9cf!important;
}
body.ui-dark .kapi-live-status b{
  color:#f5f9ff!important;
}

/* Integration method cards */
body.ui-dark .kapi-method-card,
body.ui-dark .kapi-method-card.selected,
body.ui-dark .kapi-method-card.is-inactive{
  background:#0e213f!important;
  color:#eaf2ff!important;
  border:1px solid #294766!important;
  box-shadow:none!important;
  opacity:1!important;
}
body.ui-dark .kapi-method-card:hover{
  background:#112947!important;
  border-color:#3d6386!important;
  box-shadow:0 13px 28px rgba(0,0,0,.18)!important;
}
body.ui-dark .kapi-method-card.selected{
  background:#112a49!important;
  border-color:#3d78a4!important;
  box-shadow:0 0 0 2px rgba(0,184,192,.09)!important;
}
body.ui-dark .kapi-method-card.recommended.selected{
  border-color:#4fcf91!important;
  box-shadow:0 0 0 2px rgba(79,207,145,.09)!important;
}
body.ui-dark .kapi-method-card:before{
  background:#60738d!important;
}
body.ui-dark .kapi-method-card:nth-child(2):before{
  background:#5da9e9!important;
}
body.ui-dark .kapi-method-card.recommended:before{
  background:#64dfa2!important;
}
body.ui-dark .kapi-method-card b,
body.ui-dark .kapi-method-card.is-inactive b{
  color:#eef5ff!important;
}
body.ui-dark .kapi-method-card small,
body.ui-dark .kapi-method-card.is-inactive small{
  color:#a9b9d0!important;
}
body.ui-dark .kapi-method-card.is-inactive b,
body.ui-dark .kapi-method-card.is-inactive small{
  opacity:.66!important;
}

/* Method icons */
body.ui-dark .kapi-method-icon,
body.ui-dark .kapi-method-card.is-inactive .kapi-method-icon{
  background:#162d4b!important;
  color:#9eb2ca!important;
  box-shadow:inset 0 0 0 1px #2b4867!important;
}
body.ui-dark .kapi-method-card:nth-child(2) .kapi-method-icon{
  background:#142e50!important;
  color:#82c8ff!important;
  box-shadow:inset 0 0 0 1px rgba(93,169,233,.24)!important;
}
body.ui-dark .kapi-method-card.recommended .kapi-method-icon{
  background:#133a35!important;
  color:#7ce6b2!important;
  box-shadow:inset 0 0 0 1px rgba(100,223,162,.24)!important;
}

/* Active / inactive pills: no white-on-white states */
body.ui-dark .kapi-method-state,
body.ui-dark .kapi-method-state.inactive{
  background:#182b46!important;
  color:#9fb0c7!important;
  border:1px solid #304965!important;
  box-shadow:none!important;
}
body.ui-dark .kapi-method-state.active,
body.ui-dark .kapi-method-card.selected .kapi-method-state.active{
  background:rgba(70,211,143,.14)!important;
  color:#7ce6b2!important;
  border:1px solid rgba(70,211,143,.28)!important;
  box-shadow:none!important;
}

/* Section navigation bar on Kiosk API */
body.ui-dark .kapi-tabs{
  background:#08172d!important;
  border:1px solid #203955!important;
  box-shadow:none!important;
}
body.ui-dark .kapi-tabs a{
  background:#10213d!important;
  color:#79e4ec!important;
  border-color:#2a4260!important;
  box-shadow:none!important;
}
body.ui-dark .kapi-tabs a:hover{
  background:#143052!important;
  color:#b1f8fc!important;
  border-color:#3f6688!important;
}

/* Status chips below the method cards */
body.ui-dark .kapi-status-strip .badge.neutral{
  background:#142b48!important;
  color:#b8c7da!important;
  border:1px solid #29435f!important;
}
body.ui-dark .kapi-status-strip .badge.good{
  background:rgba(64,200,137,.14)!important;
  color:#78e4b0!important;
  border:1px solid rgba(64,200,137,.25)!important;
}
body.ui-dark .kapi-status-strip .badge.bad{
  background:rgba(239,100,97,.13)!important;
  color:#ffaaa7!important;
  border:1px solid rgba(239,100,97,.24)!important;
}

/* Remaining Kiosk API cards and controls */
body.ui-dark .kapi-section-card,
body.ui-dark .kapi-ncr-card{
  background:#0d1d39!important;
  border-color:#213d5b!important;
}
body.ui-dark .kapi-section-header{
  background:transparent!important;
  border-color:#203a57!important;
}
body.ui-dark .kapi-subsection-title{
  color:#eef5ff!important;
}
body.ui-dark .kapi-site-summary{
  background:#091a33!important;
  border-color:#213b58!important;
}
body.ui-dark .kapi-site-summary div,
body.ui-dark .toggle-row{
  background:#0f2341!important;
  border-color:#284461!important;
  color:#eaf2ff!important;
}
body.ui-dark .kapi-site-summary span{
  color:#9fb0c8!important;
}
body.ui-dark .kapi-site-summary b,
body.ui-dark .kapi-site-summary code,
body.ui-dark .toggle-row span{
  color:#edf5ff!important;
}
body.ui-dark .kapi-chip{
  background:#162a45!important;
  color:#a9bad0!important;
  border:1px solid #2b4663!important;
}
body.ui-dark .kapi-chip.on{
  background:rgba(64,200,137,.14)!important;
  color:#78e4b0!important;
  border-color:rgba(64,200,137,.25)!important;
}
body.ui-dark .kapi-save-bar{
  background:rgba(9,25,48,.94)!important;
  border-color:#28425f!important;
  box-shadow:0 18px 40px rgba(0,0,0,.24)!important;
}

/* ==========================================================
   AVX SERVE HUB UX V20 - unified store selector
   - One compact Store selector on every store-scoped page.
   - Removes the redundant WORKING CONTEXT copy completely.
   ========================================================== */
.unified-store-selector{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  padding:16px 20px!important;
  margin-bottom:22px!important;
  background:linear-gradient(180deg,#fff,#fbfcff)!important;
  border:1px solid var(--ux-border)!important;
  border-radius:14px!important;
  box-shadow:var(--ux-shadow)!important;
}
.unified-store-selector .store-scope-form{
  width:min(100%,620px)!important;
  max-width:620px!important;
  margin:0!important;
}
.unified-store-selector .store-scope-form .field{
  display:grid!important;
  grid-template-columns:70px minmax(260px,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  margin:0!important;
}
.unified-store-selector .store-scope-form .field>span{
  margin:0!important;
  color:#56617d!important;
  font-size:13px!important;
  font-weight:850!important;
  text-align:left!important;
}
.unified-store-selector .store-scope-form select{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  background-color:#fff!important;
  color:#37425b!important;
  font-weight:700!important;
}
body.ui-dark .unified-store-selector{
  background:#0d1d39!important;
  border-color:rgba(158,181,230,.16)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.18)!important;
}
body.ui-dark .unified-store-selector .store-scope-form .field>span{
  color:#aebce0!important;
}
body.ui-dark .unified-store-selector .store-scope-form select{
  background:#08182f!important;
  color:#edf4ff!important;
  border-color:#29415f!important;
}
@media(max-width:760px){
  .unified-store-selector{padding:14px!important}
  .unified-store-selector .store-scope-form{width:100%!important;max-width:none!important}
  .unified-store-selector .store-scope-form .field{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
}

/* Global Component popup polish: real image + Arabic name + cleaner edit layout */
.ux-gm-context-copy{align-items:flex-start!important}
.ux-gm-context-ar{color:#24456f;font-size:14px;font-weight:800;line-height:1.4}
.ux-gm-context-flags{display:flex;gap:8px;flex-wrap:wrap}
.ux-gm-context-meta .global-manager-meta{display:flex;gap:7px;flex-wrap:wrap}
.gm-edit-intro{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:0 0 16px;border:1px solid #e7edf6;border-radius:16px;background:linear-gradient(180deg,#fbfcff,#f7faff)}
.gm-edit-thumb{width:74px;height:74px;flex:0 0 74px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#f4f7fb,#e6edf8);border:1px solid rgba(13,41,77,.10);display:flex;align-items:center;justify-content:center;color:#163760;font-weight:900;font-size:28px}
.gm-edit-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gm-edit-thumb.image-failed{background:linear-gradient(135deg,#f2f5f9,#e7edf5)}
.gm-edit-thumb.image-failed span{display:none}
.gm-edit-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.gm-edit-copy b{font-size:16px;color:#2e3852}
.gm-edit-ar{color:#24456f;font-size:15px;font-weight:800;line-height:1.4}
.gm-edit-copy small{color:#7f8ba3;font-size:12px;line-height:1.55}
.gm-edit-image-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.gm-file-field{display:flex;flex-direction:column;gap:8px}
.gm-file-field input[type='file']{padding:10px 12px;background:#fff}
.gm-clear-toggle{margin:0!important;align-self:end;padding:12px 14px;border:1px solid #e1e7f0;background:#fbfcff;min-height:48px;display:flex;align-items:center}
.gm-clear-toggle input{margin-right:10px}
body.ui-dark .ux-gm-context-ar,body.ui-dark .gm-edit-ar{color:#dbe6fb}
body.ui-dark .gm-edit-intro{background:linear-gradient(180deg,#10213e,#0d1b35);border-color:rgba(158,181,230,.14)}
body.ui-dark .gm-edit-thumb{background:linear-gradient(135deg,#12284a,#0f203e);border-color:rgba(158,181,230,.16);color:#f0f6ff}
body.ui-dark .gm-edit-copy b{color:#eef4ff}
body.ui-dark .gm-edit-copy small{color:#aebce0}
body.ui-dark .gm-file-field input[type='file']{background:#0f1d37;border-color:rgba(158,181,230,.18)}
body.ui-dark .gm-clear-toggle{background:#10213e;border-color:rgba(158,181,230,.14);color:#e6eefc}
@media (max-width: 720px){
  .gm-edit-intro{align-items:flex-start}
  .gm-edit-image-row{grid-template-columns:1fr}
  .gm-clear-toggle{width:100%;justify-content:flex-start}
}

/* ==========================================================
   AVX SERVE HUB UI V14 — SIDEBAR POLISH
   2026-08-20
   Scope: sidebar icon cleanup, account/logout placement and
   compact responsive light/dark control. UI-only; integrations
   and page workflows are intentionally untouched.
   ========================================================== */

/* Navigation icons: keep the line icon itself, remove the boxed/stroked tile. */
.sidebar nav a .ico,
.sidebar nav a:hover .ico,
.sidebar nav a.active .ico{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
}
.sidebar nav a .ico svg{
  display:block;
  width:20px!important;
  height:20px!important;
}
.sidebar nav a:hover .ico,
.sidebar nav a.active .ico{
  color:#00B8C0!important;
}

/* Account lives in one compact footer card; logout is now an icon beside the user. */
.nav-group-account{display:none!important}
.userbox{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:78px;
  padding:14px 14px 14px 18px!important;
  margin:10px 14px 16px!important;
}
.userbox-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:3px;
}
.userbox-name{
  display:block;
  color:#fff;
  font-weight:750;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.userbox-copy small{
  display:block;
  line-height:1.25;
  text-transform:lowercase;
}
.userbox-logout{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  color:#c9d7ee!important;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07);
  text-decoration:none!important;
  transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease;
}
.userbox-logout svg{width:19px;height:19px;display:block}
.userbox-logout:hover{
  color:#fff!important;
  background:rgba(211,41,39,.18);
  border-color:rgba(255,109,105,.22);
  transform:translateY(-1px);
}
.userbox-logout:focus-visible{
  outline:2px solid #00B8C0;
  outline-offset:2px;
}

/* Replace the large Light/Dark pill with one small responsive sun/moon button. */
.theme-icon-toggle{
  position:relative;
  width:40px;
  height:40px;
  min-width:40px;
  min-height:40px;
  padding:0!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(21,37,134,.11);
  background:#f7fbfd;
  color:#152586;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(21,37,134,.07);
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .16s ease,box-shadow .18s ease;
}
.theme-icon-toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(0,184,192,.30);
  color:#015FC0;
  box-shadow:0 10px 24px rgba(21,37,134,.10);
}
.theme-icon-toggle:active{transform:translateY(0)}
.theme-icon-toggle:focus-visible{outline:2px solid #00B8C0;outline-offset:2px}
.theme-icon{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1);
}
.theme-icon svg{width:19px;height:19px;display:block}
.theme-icon-sun{opacity:1;transform:rotate(0deg) scale(1)}
.theme-icon-moon{opacity:0;transform:rotate(-22deg) scale(.72)}
.theme-icon-toggle.is-dark .theme-icon-sun{opacity:0;transform:rotate(24deg) scale(.72)}
.theme-icon-toggle.is-dark .theme-icon-moon{opacity:1;transform:rotate(0deg) scale(1)}
body.ui-dark .theme-icon-toggle{
  background:rgba(255,255,255,.055)!important;
  color:#dce7ff!important;
  border-color:rgba(0,184,192,.20)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
body.ui-dark .theme-icon-toggle:hover{
  color:#7de7ec!important;
  background:rgba(0,184,192,.10)!important;
  border-color:rgba(0,184,192,.34)!important;
}

@media(max-width:1000px){
  .theme-icon-toggle{width:38px;height:38px;min-width:38px;min-height:38px;border-radius:11px}
  .theme-icon svg{width:18px;height:18px}
  .top-actions{width:auto!important;justify-content:flex-end!important}
}
@media(max-width:520px){
  .topbar{padding-left:16px!important;padding-right:16px!important}
  .theme-icon-toggle{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:10px}
  .theme-icon svg{width:17px;height:17px}
}

/* Account action must not inherit the portal-wide content-link treatment. */
.sidebar .userbox a.userbox-logout{
  color:#c9d7ee!important;
  box-shadow:none!important;
}
.sidebar .userbox a.userbox-logout:hover{
  color:#fff!important;
  border-color:rgba(255,109,105,.22)!important;
  box-shadow:none!important;
}
body.ui-dark .sidebar .userbox a.userbox-logout{color:#d6e3f5!important}
body.ui-dark .sidebar .userbox a.userbox-logout:hover{color:#fff!important}


/* ===== Schedule table polish V16 =====
   Items/Categories: compact schedule summaries, without reserving a fixed Schedule width. */
.schedule-managed-table{
  width:100%!important;
  min-width:1080px!important;
  table-layout:auto!important;
}
.schedule-managed-table th,
.schedule-managed-table td{
  padding-left:16px!important;
  padding-right:16px!important;
}
.schedule-managed-table .price-col,
.schedule-managed-table .price-cell{
  width:92px!important;
  min-width:92px!important;
  white-space:nowrap!important;
}
.schedule-managed-table .price-value{
  display:block!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-variant-numeric:tabular-nums;
  font-weight:800;
}
.schedule-managed-table .price-source{
  display:block!important;
  margin-top:4px!important;
  white-space:nowrap!important;
}
.schedule-managed-table .edit-col,
.schedule-managed-table .edit-cell{
  width:158px!important;
  min-width:158px!important;
  white-space:nowrap!important;
}
.schedule-managed-table .edit-cell .table-inline-actions{
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
}
.schedule-managed-table .edit-cell .edit-action,
.schedule-managed-table .edit-cell .delete-action,
.schedule-managed-table .edit-cell .delete-action span{
  white-space:nowrap!important;
  word-break:keep-all!important;
}
.schedule-managed-table .schedule-cell{
  line-height:1.35!important;
}
.schedule-managed-table .schedule-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
.schedule-managed-table .schedule-summary{
  display:block!important;
  margin:7px auto 0!important;
  font-size:12px!important;
  line-height:1.45!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}

/* ===== Items Component shortcut V17 =====
   Replaces the list-only Header Image preview with a direct shortcut to the
   selected item's Components editor. Header Image remains available in Edit. */
#itemsTable .component-cell,
#itemsTable .component-col{
  white-space:nowrap!important;
}
#itemsTable .component-action{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}

/* ==========================================================
   AVX SERVE HUB UI V18 — MOTION + WORKFLOW REFRESH
   2026-08-20
   Scope: presentation and progressive UX enhancement only.
   Keeps existing brand colors, typography, forms, POST payloads,
   API integrations and backend workflows unchanged.
   ========================================================== */
:root{
  --avx-motion-fast:160ms;
  --avx-motion:240ms;
  --avx-motion-slow:420ms;
  --avx-ease:cubic-bezier(.2,.8,.2,1);
  --avx-ease-spring:cubic-bezier(.16,1,.3,1);
  --avx-surface:rgba(255,255,255,.92);
  --avx-surface-solid:#fff;
  --avx-ink:#172033;
  --avx-muted:#7a849f;
  --avx-blue:#015FC0;
  --avx-cyan:#00B8C0;
  --avx-navy:#152586;
  --avx-shadow-sm:0 8px 22px rgba(20,36,78,.055);
  --avx-shadow-md:0 18px 46px rgba(20,36,78,.085);
  --avx-shadow-lg:0 28px 80px rgba(13,29,67,.16);
}

/* A calmer canvas with small brand-energy highlights instead of a flat page. */
body:not(.login-page){
  position:relative;
  background:
    radial-gradient(circle at 82% -8%,rgba(0,184,192,.075),transparent 28rem),
    radial-gradient(circle at 26% 108%,rgba(1,95,192,.055),transparent 32rem),
    linear-gradient(180deg,#f8faff 0%,#f4f7fb 48%,#f7f8fc 100%)!important;
}
body:not(.login-page)::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.42;
  background-image:radial-gradient(rgba(1,95,192,.10) .65px,transparent .65px);
  background-size:24px 24px;
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.24),transparent 42%);
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.24),transparent 42%);
}
.shell,.content,.page-body{position:relative;z-index:1}

/* Sidebar: preserve the existing identity but make selection and hover feel alive. */
.sidebar{
  overflow:hidden;
  box-shadow:18px 0 50px rgba(7,16,44,.12)!important;
}
.sidebar::before{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  right:-120px;
  top:60px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(0,184,192,.16),transparent 68%);
  pointer-events:none;
  animation:avxSidebarGlow 8s ease-in-out infinite alternate;
}
.sidebar .brand{position:relative;z-index:1}
.sidebar nav{position:relative;z-index:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent}
.sidebar nav a{
  position:relative;
  isolation:isolate;
  transition:background var(--avx-motion) var(--avx-ease),color var(--avx-motion-fast) ease,transform var(--avx-motion) var(--avx-ease)!important;
}
.sidebar nav a::after{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:3px;
  height:0;
  border-radius:0 8px 8px 0;
  background:linear-gradient(180deg,var(--avx-cyan),#76e5e9);
  transform:translateY(-50%);
  box-shadow:0 0 18px rgba(0,184,192,.45);
  transition:height var(--avx-motion) var(--avx-ease-spring);
}
.sidebar nav a:hover{transform:translateX(2px)}
.sidebar nav a.active::after{height:26px}
.sidebar nav a.active .ico svg{filter:drop-shadow(0 4px 9px rgba(0,184,192,.30))}
.nav-group-label span{letter-spacing:.11em!important;opacity:.76;transition:opacity var(--avx-motion-fast) ease}
.sidebar nav:hover .nav-group-label span{opacity:.96}
.userbox{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

@keyframes avxSidebarGlow{
  from{transform:translate3d(0,0,0) scale(.94);opacity:.6}
  to{transform:translate3d(-18px,28px,0) scale(1.12);opacity:1}
}

/* Glassy top chrome; page title now feels like an intentional workspace header. */
.topbar{
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  border-bottom-color:rgba(216,224,240,.78)!important;
}
.page-heading{
  min-height:88px!important;
  height:auto!important;
  padding-top:14px!important;
  padding-bottom:14px!important;
  background:rgba(255,255,255,.72)!important;
  backdrop-filter:blur(14px) saturate(135%);
  -webkit-backdrop-filter:blur(14px) saturate(135%);
  border-bottom-color:rgba(220,227,240,.72)!important;
}
.page-heading-copy{min-width:0}
.page-heading h1{
  color:var(--avx-ink)!important;
  font-size:clamp(21px,1.5vw,26px)!important;
  letter-spacing:-.025em;
  line-height:1.15;
}
.page-heading p{
  margin-top:6px!important;
  max-width:820px;
  color:#7b859d!important;
  font-size:13px!important;
  line-height:1.5;
}
.page-heading .total{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(1,95,192,.07);
  color:var(--avx-blue)!important;
  border:1px solid rgba(1,95,192,.10);
  white-space:nowrap;
}

/* Quick Jump launcher – injected by app.js, no server-side changes required. */
.avx-quick-jump{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:0 11px 0 12px;
  border-radius:12px;
  border:1px solid rgba(21,37,134,.10);
  background:rgba(247,251,253,.94);
  color:#40506f;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(21,37,134,.055);
  transition:transform var(--avx-motion-fast) ease,border-color var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease,background var(--avx-motion-fast) ease;
}
.avx-quick-jump:hover{
  transform:translateY(-1px);
  border-color:rgba(0,184,192,.28);
  box-shadow:0 11px 28px rgba(21,37,134,.09);
  background:#fff;
}
.avx-quick-jump svg{width:17px;height:17px;color:var(--avx-blue)}
.avx-quick-jump-label{font-size:12px;font-weight:800;white-space:nowrap}
.avx-quick-jump kbd{
  min-width:30px;
  padding:3px 6px;
  border-radius:7px;
  border:1px solid #dfe6f1;
  background:#fff;
  color:#8791a6;
  font:700 10px/1.2 "Poppins","Segoe UI",Arial,sans-serif;
  box-shadow:inset 0 -1px 0 #e6eaf1;
}

/* Surface hierarchy: stronger affordances without changing page markup. */
.card,.table-card,.store-scope-card,.mini-stat{
  position:relative;
  border-color:rgba(219,226,240,.78)!important;
  box-shadow:var(--avx-shadow-sm)!important;
  transition:transform var(--avx-motion) var(--avx-ease),box-shadow var(--avx-motion) ease,border-color var(--avx-motion) ease,background var(--avx-motion) ease;
}
.card:not(.modal-card):hover,.store-scope-card:hover,.mini-stat:hover{
  border-color:rgba(0,184,192,.16)!important;
  box-shadow:var(--avx-shadow-md)!important;
}
.card-header h2,.card-header h3,.table-card-title h2{letter-spacing:-.015em}

/* Dashboard becomes a more energetic control center. */
.dashboard-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(1,95,192,.10)!important;
  background:
    radial-gradient(circle at 88% 15%,rgba(0,184,192,.17),transparent 15rem),
    radial-gradient(circle at 70% 130%,rgba(1,95,192,.11),transparent 18rem),
    linear-gradient(135deg,#fff 0%,#f5fbff 54%,#f8fbff 100%)!important;
  box-shadow:0 24px 65px rgba(22,50,102,.11)!important;
}
.dashboard-hero::before,.dashboard-hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.dashboard-hero::before{
  width:170px;height:170px;right:8%;top:-72px;
  border:1px solid rgba(1,95,192,.10);
  box-shadow:0 0 0 28px rgba(0,184,192,.035),0 0 0 58px rgba(1,95,192,.025);
  animation:avxHeroOrbit 12s linear infinite;
}
.dashboard-hero::after{
  width:9px;height:9px;right:19%;top:38%;
  background:var(--avx-cyan);
  box-shadow:0 0 0 7px rgba(0,184,192,.12),0 10px 30px rgba(0,184,192,.32);
  animation:avxHeroPulse 3s ease-in-out infinite;
}
.dashboard-kicker{
  display:inline-flex!important;
  align-items:center;
  gap:8px;
  color:var(--avx-blue)!important;
}
.dashboard-kicker::before{
  content:"";
  width:8px;height:8px;border-radius:50%;background:var(--avx-cyan);
  box-shadow:0 0 0 5px rgba(0,184,192,.10);
}
.dashboard-hero h2{font-size:clamp(27px,3vw,42px)!important;letter-spacing:-.04em!important;max-width:720px}
.dashboard-hero p{max-width:760px!important;line-height:1.7!important}
.dashboard-stat{
  overflow:hidden;
  isolation:isolate;
}
.dashboard-stat::after{
  content:"";
  position:absolute;
  width:120px;height:120px;border-radius:50%;right:-58px;bottom:-68px;
  background:radial-gradient(circle,rgba(0,184,192,.12),transparent 67%);
  transition:transform .55s var(--avx-ease-spring),opacity .3s ease;
}
.dashboard-stat:hover{transform:translateY(-4px)!important}
.dashboard-stat:hover::after{transform:scale(1.35);opacity:.9}
.dashboard-stat-icon{transition:transform .38s var(--avx-ease-spring),box-shadow .3s ease!important}
.dashboard-stat:hover .dashboard-stat-icon{transform:translateY(-2px) rotate(-3deg) scale(1.04)}
.dashboard-stat b{font-variant-numeric:tabular-nums}
.dashboard-quick-grid a{
  position:relative;
  overflow:hidden;
  transition:transform var(--avx-motion) var(--avx-ease),box-shadow var(--avx-motion) ease,border-color var(--avx-motion) ease!important;
}
.dashboard-quick-grid a::after{
  content:"→";
  position:absolute;
  right:18px;
  bottom:15px;
  font-size:18px;
  font-weight:900;
  color:var(--avx-cyan);
  opacity:0;
  transform:translateX(-8px);
  transition:opacity var(--avx-motion-fast) ease,transform var(--avx-motion) var(--avx-ease-spring);
}
.dashboard-quick-grid a:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(20,36,78,.09)!important;border-color:rgba(0,184,192,.18)!important}
.dashboard-quick-grid a:hover::after{opacity:1;transform:translateX(0)}
@keyframes avxHeroOrbit{to{transform:rotate(360deg)}}
@keyframes avxHeroPulse{50%{transform:scale(1.35);opacity:.72}}

/* Tabs feel more like workspace filters; active tab has a subtle sweep. */
.tabs a,.item-subtabs a,.kapi-tabs a{
  position:relative;
  overflow:hidden;
  transition:transform var(--avx-motion-fast) ease,border-color var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease,background var(--avx-motion-fast) ease!important;
}
.tabs a:hover,.item-subtabs a:hover,.kapi-tabs a:hover{transform:translateY(-2px)!important}
.tabs a.active::after,.item-subtabs a.active::after,.kapi-tabs a.active::after{
  content:"";
  position:absolute;
  top:-70%;left:-28%;width:32%;height:240%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);
  animation:avxTabSweep 4.8s ease-in-out infinite;
}
@keyframes avxTabSweep{0%,68%{left:-45%;opacity:0}76%{opacity:1}100%{left:125%;opacity:0}}

/* Controls: tactile but restrained. */
.btn,.dashboard-quick-grid a,.dashboard-stat,.avx-quick-jump{isolation:isolate}
.btn{
  position:relative;
  overflow:hidden;
  transition:transform var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease,filter var(--avx-motion-fast) ease,background var(--avx-motion-fast) ease!important;
}
.btn:hover{transform:translateY(-2px)!important;filter:saturate(1.04)}
.btn:active{transform:translateY(0) scale(.985)!important}
.btn.yellow{box-shadow:0 12px 28px rgba(1,95,192,.14)!important}
.btn.success{box-shadow:0 12px 28px rgba(78,174,125,.16)!important}
.btn.red{box-shadow:0 10px 24px rgba(211,41,39,.12)!important}
.avx-ripple{
  position:absolute;
  width:12px;height:12px;
  margin:-6px 0 0 -6px;
  border-radius:50%;
  pointer-events:none;
  background:rgba(255,255,255,.48);
  transform:scale(0);
  animation:avxRipple .58s ease-out forwards;
  z-index:-1;
}
@keyframes avxRipple{to{transform:scale(18);opacity:0}}

input:not([type="checkbox"]):not([type="radio"]),select,textarea{
  transition:border-color var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease,background var(--avx-motion-fast) ease,transform var(--avx-motion-fast) ease!important;
}
input:not([type="checkbox"]):not([type="radio"]):focus,select:focus,textarea:focus{
  border-color:rgba(0,184,192,.72)!important;
  box-shadow:0 0 0 4px rgba(0,184,192,.105),0 8px 20px rgba(20,36,78,.035)!important;
  background:#fff!important;
}
.field:focus-within > span{color:var(--avx-blue)!important;transition:color var(--avx-motion-fast) ease}

/* Tables: easier scanning while keeping the existing data structure. */
.table-card{box-shadow:var(--avx-shadow-sm)!important}
.table-card-title{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.94))!important}
.table-card thead th{position:relative}
.table-card tbody tr{transition:background var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease!important}
.table-card tbody tr:hover{
  background:linear-gradient(90deg,rgba(0,184,192,.045),rgba(1,95,192,.025),transparent 72%)!important;
  box-shadow:inset 3px 0 0 rgba(0,184,192,.58);
}
.table-card tbody tr:hover td{color:#35415d}
.badge{transition:transform var(--avx-motion-fast) ease,box-shadow var(--avx-motion-fast) ease}
.badge:hover{transform:translateY(-1px)}

/* Dialogs and drawers now enter/exit with spatial continuity. */
.modal-backdrop{
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  opacity:0;
  transition:opacity var(--avx-motion) ease!important;
}
.modal-shell.open .modal-backdrop{opacity:1}
.modal-card{
  opacity:0;
  transform:translateY(16px) scale(.975);
  transform-origin:50% 12%;
  transition:opacity var(--avx-motion) ease,transform var(--avx-motion-slow) var(--avx-ease-spring)!important;
}
.modal-shell.open .modal-card{opacity:1;transform:translateY(0) scale(1)}
.modal-head{position:sticky;top:0;z-index:4;background:inherit;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.side-drawer{transition:transform .34s var(--avx-ease-spring),box-shadow .3s ease!important}
.side-drawer.open{box-shadow:-24px 0 65px rgba(16,29,62,.20)!important}

/* Flash messages enter clearly, but are never auto-hidden. */
.alert{box-shadow:0 12px 28px rgba(20,36,78,.07);animation:avxAlertIn .42s var(--avx-ease-spring) both}
@keyframes avxAlertIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}

/* Progressive page reveal. Classes are added only by JS, so content never
   disappears when scripting is unavailable. */
.avx-reveal{opacity:0;transform:translateY(12px);filter:blur(1.5px)}
.avx-reveal.avx-visible{
  opacity:1;
  transform:none;
  filter:none;
  transition:opacity .46s ease,transform .52s var(--avx-ease-spring),filter .36s ease;
  transition-delay:var(--avx-reveal-delay,0ms);
}

/* Native form submission feedback; never changes values or disables inputs. */
.avx-submitting{cursor:progress!important;pointer-events:none}
.avx-submitting::after{
  content:"";
  width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.42);
  border-top-color:currentColor;
  animation:avxSpin .7s linear infinite;
}
@keyframes avxSpin{to{transform:rotate(360deg)}}

/* Command palette / workflow launcher. */
.avx-command-shell{
  position:fixed;
  inset:0;
  z-index:500;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:11vh 20px 24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity var(--avx-motion) ease,visibility var(--avx-motion) ease;
}
.avx-command-shell.open{opacity:1;visibility:visible;pointer-events:auto}
.avx-command-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,17,42,.38);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.avx-command-panel{
  position:relative;
  width:min(680px,calc(100vw - 28px));
  max-height:min(650px,76vh);
  overflow:hidden;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 34px 100px rgba(7,20,54,.28);
  transform:translateY(-16px) scale(.97);
  transition:transform .38s var(--avx-ease-spring);
}
.avx-command-shell.open .avx-command-panel{transform:none}
.avx-command-search-wrap{
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:4px;
  padding:14px 15px 14px 16px;
  border-bottom:1px solid #edf1f6;
}
.avx-command-search-icon{display:flex;align-items:center;justify-content:center;color:var(--avx-blue)}
.avx-command-search-icon svg{width:20px;height:20px}
.avx-command-input{
  min-height:46px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:7px 5px!important;
  color:var(--avx-ink)!important;
  font-size:16px!important;
  font-weight:650!important;
}
.avx-command-input:focus{border:0!important;box-shadow:none!important;background:transparent!important}
.avx-command-esc{
  padding:5px 8px;
  border:1px solid #e0e6ef;
  border-radius:8px;
  color:#8b95aa;
  background:#f8fafc;
  font-size:10px;
  font-weight:800;
}
.avx-command-results{padding:9px;overflow:auto;max-height:min(500px,60vh);scrollbar-width:thin}
.avx-command-group{padding:8px 9px 5px;color:#98a1b3;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.avx-command-item{
  width:100%;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:13px;
  padding:10px 11px;
  text-align:left;
  background:transparent;
  color:#3b465f;
  cursor:pointer;
  transition:background var(--avx-motion-fast) ease,color var(--avx-motion-fast) ease,transform var(--avx-motion-fast) ease;
}
.avx-command-item:hover,.avx-command-item.active{background:linear-gradient(90deg,rgba(0,184,192,.085),rgba(1,95,192,.055));color:#112556;transform:translateX(2px)}
.avx-command-item-icon{
  width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  background:#f1f7fb;color:var(--avx-blue);border:1px solid #e8eef6;
}
.avx-command-item-icon svg{width:18px;height:18px}
.avx-command-item-copy{min-width:0}
.avx-command-item-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.avx-command-item-copy small{display:block;margin-top:2px;color:#8a94a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.avx-command-item-arrow{color:#a1aabc;font-weight:900;font-size:16px}
.avx-command-empty{padding:32px 18px;text-align:center;color:#8d96a9}
.avx-command-empty b{display:block;color:#536078;margin-bottom:5px}
.avx-command-footer{display:flex;align-items:center;gap:15px;padding:10px 16px;border-top:1px solid #edf1f6;background:#fbfcfe;color:#929bad;font-size:10px;font-weight:700}
.avx-command-footer span{display:inline-flex;align-items:center;gap:5px}
.avx-command-footer kbd{padding:2px 5px;border:1px solid #dfe5ed;border-radius:5px;background:#fff;color:#748096;font:800 9px/1.2 inherit}
body.avx-command-open{overflow:hidden}

/* New elements in dark mode. */
body.ui-dark:not(.login-page)::before{opacity:.22}
body.ui-dark .page-heading{background:rgba(12,25,52,.74)!important}
body.ui-dark .avx-quick-jump{
  background:rgba(255,255,255,.052);
  color:#dce6f7;
  border-color:rgba(158,181,230,.14);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
body.ui-dark .avx-quick-jump:hover{background:rgba(0,184,192,.085);border-color:rgba(0,184,192,.30)}
body.ui-dark .avx-quick-jump svg{color:#74e1e5}
body.ui-dark .avx-quick-jump kbd{background:#10203d;border-color:rgba(158,181,230,.16);color:#aebbd2;box-shadow:none}
body.ui-dark .dashboard-hero{
  background:
    radial-gradient(circle at 88% 15%,rgba(0,184,192,.13),transparent 15rem),
    radial-gradient(circle at 70% 130%,rgba(1,95,192,.07),transparent 18rem),
    linear-gradient(135deg,rgba(17,33,66,.96),rgba(13,29,60,.96))!important;
  border-color:rgba(158,181,230,.14)!important;
}
body.ui-dark input:not([type="checkbox"]):not([type="radio"]):focus,
body.ui-dark select:focus,body.ui-dark textarea:focus{background:#0e1d39!important}
body.ui-dark .table-card tbody tr:hover{background:linear-gradient(90deg,rgba(0,184,192,.085),rgba(1,95,192,.05),transparent 72%)!important}
body.ui-dark .table-card tbody tr:hover td{color:#edf4ff!important}
body.ui-dark .avx-command-panel{background:rgba(13,27,55,.97);border-color:rgba(158,181,230,.13);box-shadow:0 34px 100px rgba(0,0,0,.46)}
body.ui-dark .avx-command-search-wrap,body.ui-dark .avx-command-footer{border-color:rgba(158,181,230,.11)}
body.ui-dark .avx-command-input{color:#f4f8ff!important}
body.ui-dark .avx-command-esc,body.ui-dark .avx-command-footer{background:#0e1e3b;color:#aab7d0;border-color:rgba(158,181,230,.13)}
body.ui-dark .avx-command-item{color:#dce6f7}
body.ui-dark .avx-command-item:hover,body.ui-dark .avx-command-item.active{background:linear-gradient(90deg,rgba(0,184,192,.12),rgba(1,95,192,.10));color:#fff}
body.ui-dark .avx-command-item-icon{background:#102442;color:#6fe1e5;border-color:rgba(158,181,230,.12)}
body.ui-dark .avx-command-item-copy small,body.ui-dark .avx-command-empty{color:#94a3bd}
body.ui-dark .avx-command-empty b{color:#dce6f7}
body.ui-dark .avx-command-footer kbd{background:#132747;border-color:rgba(158,181,230,.13);color:#b7c3d8}

@media(max-width:1000px){
  .avx-quick-jump-label,.avx-quick-jump kbd{display:none}
  .avx-quick-jump{width:38px;height:38px;min-height:38px;padding:0;justify-content:center;border-radius:11px}
  .page-heading{min-height:78px!important}
  .dashboard-hero::before,.dashboard-hero::after{display:none}
}
@media(max-width:620px){
  .page-heading{padding-left:18px!important;padding-right:18px!important}
  .page-heading .divider,.page-heading .total{display:none!important}
  .avx-command-shell{padding:7vh 12px 18px}
  .avx-command-panel{border-radius:18px;width:100%}
  .avx-command-footer{gap:9px;flex-wrap:wrap}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .avx-reveal{opacity:1!important;transform:none!important;filter:none!important}
}

/* ==========================================================
   AVX SERVE HUB UI V18.1 — DARK PARITY + MODAL SAFETY PATCH
   2026-08-20
   Fixes only presentation regressions introduced by V18.
   No backend/API/form behavior is changed.
   ========================================================== */

/* IMPORTANT: never transform the modal card itself.
   Some existing editors contain position:fixed translation drawers. A
   transform on .modal-card creates a new containing block and can clip or
   misplace those drawers inside the modal's scroll area. Keep the animation
   as opacity-only so the original positioning model remains intact. */
.modal-card{
  opacity:1!important;
  transform:none!important;
  transform-origin:initial!important;
  transition:opacity var(--avx-motion) ease,box-shadow var(--avx-motion) ease!important;
}
.modal-shell.open{
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  padding:clamp(12px,2.5vw,30px)!important;
}
.modal-shell.open .modal-card{
  opacity:1!important;
  transform:none!important;
  max-height:calc(100dvh - clamp(24px,5vw,60px))!important;
  overflow:auto!important;
  margin:0 auto!important;
  animation:avxModalSafeFadeIn .24s ease both;
}
.modal-backdrop{
  opacity:1!important;
  transition:background var(--avx-motion) ease,backdrop-filter var(--avx-motion) ease!important;
}
@keyframes avxModalSafeFadeIn{
  from{opacity:0}
  to{opacity:1}
}

/* On short/mobile viewports, top alignment is intentional so browser chrome
   and the software keyboard can never hide the modal header or actions. */
@media(max-width:620px),(max-height:680px){
  .modal-shell.open{
    align-items:flex-start!important;
    overflow:auto!important;
    padding:10px!important;
  }
  .modal-shell.open .modal-card{
    max-height:calc(100dvh - 20px)!important;
    margin:0 auto!important;
  }
}

/* Dark mode must win AFTER every V18 light-mode enhancement. */
body.ui-dark:not(.login-page){
  color-scheme:dark;
  background:
    radial-gradient(circle at 82% -8%,rgba(0,184,192,.055),transparent 28rem),
    radial-gradient(circle at 26% 108%,rgba(1,95,192,.045),transparent 32rem),
    linear-gradient(180deg,#071226 0%,#09172e 52%,#08142a 100%)!important;
}
body.ui-dark:not(.login-page)::before{
  opacity:.18!important;
  background-image:radial-gradient(rgba(103,200,208,.12) .65px,transparent .65px)!important;
}
body.ui-dark .topbar{
  background:rgba(8,19,40,.86)!important;
  border-bottom-color:rgba(158,181,230,.12)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.10)!important;
}
body.ui-dark .page-heading{
  background:rgba(10,23,47,.82)!important;
  border-bottom-color:rgba(158,181,230,.12)!important;
}
body.ui-dark .page-heading h1{color:#f7fbff!important}
body.ui-dark .page-heading p{color:#9eacc3!important}
body.ui-dark .page-heading .total{
  background:rgba(0,184,192,.09)!important;
  color:#81e9ed!important;
  border-color:rgba(0,184,192,.17)!important;
}

body.ui-dark .card,
body.ui-dark .table-card,
body.ui-dark .store-scope-card,
body.ui-dark .mini-stat{
  border-color:rgba(158,181,230,.14)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.18)!important;
}
body.ui-dark .card:not(.modal-card):hover,
body.ui-dark .store-scope-card:hover,
body.ui-dark .mini-stat:hover{
  border-color:rgba(0,184,192,.24)!important;
  box-shadow:0 20px 46px rgba(0,0,0,.24)!important;
}
body.ui-dark .table-card-title{
  background:linear-gradient(180deg,rgba(15,31,61,.98),rgba(11,25,51,.96))!important;
  border-color:rgba(158,181,230,.12)!important;
}
body.ui-dark .table-card-title h1,
body.ui-dark .table-card-title h2,
body.ui-dark .table-card-title h3{color:#f2f7ff!important}
body.ui-dark .table-card-subtitle,
body.ui-dark .table-card-title .muted{color:#9eacc3!important}
body.ui-dark .table-card tbody tr:hover td{color:#edf4ff!important}
body.ui-dark .field:focus-within > span{color:#75e1e5!important}

/* Modal surfaces: keep every layer consistently dark, including sticky
   header/footer areas that otherwise inherit V18 light translucent surfaces. */
body.ui-dark .modal-shell.open{
  background:rgba(1,7,18,.52)!important;
}
body.ui-dark .modal-backdrop{
  background:rgba(1,7,18,.78)!important;
}
body.ui-dark .modal-card,
body.ui-dark .side-drawer{
  background:#0d1d39!important;
  color:#edf4ff!important;
  border-color:rgba(158,181,230,.18)!important;
  box-shadow:0 30px 80px rgba(0,0,0,.46)!important;
}
body.ui-dark .modal-head,
body.ui-dark .modal-form>.modal-actions:last-child,
body.ui-dark .side-drawer .modal-actions{
  background:rgba(10,24,49,.97)!important;
  border-color:rgba(158,181,230,.14)!important;
}
body.ui-dark .modal-head h1,
body.ui-dark .modal-head h2,
body.ui-dark .modal-head h3{color:#f7fbff!important}
body.ui-dark .modal-head p{color:#9eacc3!important}
body.ui-dark .modal-x,
body.ui-dark .drawer-x{
  background:#122847!important;
  color:#b8fbff!important;
  border-color:rgba(0,184,192,.20)!important;
}
body.ui-dark .modal-x:hover,
body.ui-dark .drawer-x:hover{background:#183455!important;color:#fff!important}

/* Inputs and nested helper surfaces inside modals must not fall back to white. */
body.ui-dark .modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.ui-dark .modal-card select,
body.ui-dark .modal-card textarea,
body.ui-dark .side-drawer input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.ui-dark .side-drawer select,
body.ui-dark .side-drawer textarea{
  background:#08162e!important;
  color:#f4f8ff!important;
  border-color:rgba(158,181,230,.20)!important;
}
body.ui-dark .modal-card input:not([type="checkbox"]):not([type="radio"]):focus,
body.ui-dark .modal-card select:focus,
body.ui-dark .modal-card textarea:focus,
body.ui-dark .side-drawer input:not([type="checkbox"]):not([type="radio"]):focus,
body.ui-dark .side-drawer select:focus,
body.ui-dark .side-drawer textarea:focus{
  background:#0b1d39!important;
  border-color:rgba(0,184,192,.72)!important;
  box-shadow:0 0 0 4px rgba(0,184,192,.11)!important;
}
body.ui-dark .modal-card input::placeholder,
body.ui-dark .modal-card textarea::placeholder,
body.ui-dark .side-drawer input::placeholder,
body.ui-dark .side-drawer textarea::placeholder{color:#74849d!important;opacity:1!important}

/* Common popup cards/lists that have explicit light backgrounds in legacy
   pages. Restrict these overrides to open modals so normal page surfaces keep
   their existing page-specific styling. */
body.ui-dark .modal-shell.open .modifier-picker-panel,
body.ui-dark .modal-shell.open .item-api-picker-panel,
body.ui-dark .modal-shell.open .combo-api-picker-panel,
body.ui-dark .modal-shell.open .combo-size-picker-panel,
body.ui-dark .modal-shell.open .modifier-picker-list,
body.ui-dark .modal-shell.open .modifier-picker-card,
body.ui-dark .modal-shell.open .modifier-group-card,
body.ui-dark .modal-shell.open .modifier-option-row,
body.ui-dark .modal-shell.open .modifier-child-row,
body.ui-dark .modal-shell.open .schedule-box,
body.ui-dark .modal-shell.open .advanced-json,
body.ui-dark .modal-shell.open .branch-targets{
  background:#0b1a34!important;
  color:#e7effd!important;
  border-color:rgba(158,181,230,.14)!important;
}
body.ui-dark .modal-shell.open .modifier-picker-card:hover,
body.ui-dark .modal-shell.open .modifier-option-row:hover,
body.ui-dark .modal-shell.open .modifier-child-row:hover{
  background:#102440!important;
  border-color:rgba(0,184,192,.22)!important;
}

/* Quick Jump is also a dialog and should use the exact dark surface language. */
body.ui-dark .avx-command-search-wrap{background:transparent!important}
body.ui-dark .avx-command-results{background:transparent!important}



/* ==========================================================
   AVX SERVE HUB UI V18.2 — GLOBAL MODAL SAFE AREA
   2026-08-20
   Keep every modal visibly separated from the top chrome and viewport edges.
   Presentation only; no form/backend/API behavior changes.
   ========================================================== */
:root{
  --avx-modal-topbar-safe:72px;
  --avx-modal-gap-y:clamp(16px,2.2vh,24px);
  --avx-modal-gap-x:clamp(14px,2vw,26px);
}

/* The backdrop still covers the full viewport, while the modal layout area
   starts below the sticky top bar. This prevents tall dialogs from being
   visually hidden behind the application chrome. */
.modal-shell.open{
  top:calc(var(--avx-modal-topbar-safe) + env(safe-area-inset-top, 0px))!important;
  right:0!important;
  bottom:env(safe-area-inset-bottom, 0px)!important;
  left:0!important;
  width:auto!important;
  height:auto!important;
  box-sizing:border-box!important;
  padding:var(--avx-modal-gap-y) var(--avx-modal-gap-x) var(--avx-modal-gap-y)!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}

.modal-shell.open .modal-card{
  max-height:100%!important;
  margin:0 auto!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Sticky chrome remains visible while only the form content scrolls. */
.modal-shell.open .modal-head{
  top:0!important;
}
.modal-shell.open .modal-form>.modal-actions:last-child{
  bottom:0!important;
}

/* Large manager dialogs must obey the same safe viewport, even when an older
   component-specific max-height rule exists earlier in the stylesheet. */
.modal-shell.open .ux-gm-modal-card,
.modal-shell.open .modifier-master-modal,
.modal-shell.open .modifier-picker-modal .modal-card,
.modal-shell.open .modifier-modal .modal-card{
  max-height:100%!important;
}

/* Responsive/short screens keep the safety gap. We intentionally do NOT
   restore the old 10px/full-viewport rule that caused clipping. */
@media(max-width:1000px){
  :root{--avx-modal-topbar-safe:70px}
}
@media(max-width:620px),(max-height:680px){
  :root{
    --avx-modal-topbar-safe:70px;
    --avx-modal-gap-y:12px;
    --avx-modal-gap-x:10px;
  }
  .modal-shell.open{
    align-items:flex-start!important;
    overflow:hidden!important;
  }
  .modal-shell.open .modal-card{
    max-height:100%!important;
    margin:0 auto!important;
  }
}

/* ==========================================================
   AVX SERVE HUB UI V18.4 — TABLE NO-BROKEN-WORD HARDENING
   2026-08-20
   Prevent table cells from splitting words/IDs/actions into
   fragments. Long tables scroll horizontally instead of
   damaging readability. Presentation only; no backend impact.
   ========================================================== */

/* Undo the earlier defensive "anywhere" wrapping inside tables.
   Descriptive copy may still wrap naturally at spaces. */
.table-card table th,
.table-card table td{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Column headings are labels: never split them. */
.table-card table th{
  white-space:nowrap!important;
}

/* Atomic table values must always stay intact. */
.table-card table td:first-child,
.table-card table td code,
.table-card table td .badge,
.table-card table td .price-value,
.table-card table td .price-source,
.table-card table td .status-pill,
.table-card table td .kapi-chip{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
  hyphens:none!important;
}

/* Actions should grow the table, not shrink/break their labels. */
.table-card table td.actions{
  display:table-cell!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
}
.table-card table .table-inline-actions,
.table-card table td.actions .table-inline-actions,
.table-card table .diagnostics-actions{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center;
  flex-wrap:nowrap!important;
  width:max-content!important;
  max-width:none!important;
  white-space:nowrap!important;
}
.table-card table .table-inline-actions > *,
.table-card table .diagnostics-actions > *{
  flex:0 0 auto!important;
  min-width:max-content;
}
.table-card table .table-inline-actions a,
.table-card table .table-inline-actions button,
.table-card table .table-inline-actions span,
.table-card table .diagnostics-actions a,
.table-card table .diagnostics-actions button,
.table-card table .diagnostics-actions span,
.table-card table td .edit-action,
.table-card table td .delete-action,
.table-card table td .open-action,
.table-card table td .inspect-action,
.table-card table td .schedule-action,
.table-card table td .schedules-action,
.table-card table td .stores-action,
.table-card table td .item-action,
.table-card table td .component-action,
.table-card table td .btn.small{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
  hyphens:none!important;
}

/* Inline forms inside Actions must never squeeze their button text. */
.table-card table .table-inline-actions form,
.table-card table .diagnostics-actions form{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content;
  margin:0!important;
}

/* Keep common machine identifiers readable as one token. */
#kiosksTable td code,
#kiosksTable td .badge,
#usersTable td .badge,
#itemsTable td .badge,
#categoriesTable td .badge{
  white-space:nowrap!important;
}

/* Kiosk tables contain several intentionally atomic technical/action
   columns. Give them their natural width and let the card scroll when
   the viewport is narrower. */
#kiosksTable{
  min-width:1320px!important;
  table-layout:auto!important;
}

/* The scroll container is the safe fallback at narrower widths. */
.table-card{
  overflow-x:auto!important;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
}

/* ==========================================================
   AVX SERVE HUB UX V18.5 - Modifier modal stability fix
   - Keep the modifier editor truly above the app chrome.
   - Prevent the wide editor from starting under the sidebar.
   - Restore clean sticky layering for the modal header + tab rail.
   - Presentation only; no backend or workflow logic changes.
   ========================================================== */
#modifierModal.modal-shell,
.modal-shell.open#modifierModal{
  z-index:1400!important;
}
#modifierModal .modal-backdrop{
  z-index:0!important;
}
#modifierModal .modal-card.modifier-modal{
  position:relative!important;
  z-index:1!important;
  width:min(1360px,calc(100vw - 72px))!important;
  max-width:calc(100vw - 72px)!important;
  margin:0 auto!important;
}
#modifierModal .modal-head{
  top:0!important;
  z-index:42!important;
}
#modifierModal .modifier-tab-shell{
  position:sticky!important;
  top:70px!important;
  z-index:34!important;
  margin:0 0 14px!important;
}
#modifierModal .modifier-tab-shell .modifier-tab-buttons{
  margin:0!important;
}
#modifierModal .recipe-save-bar{
  position:sticky!important;
  bottom:0!important;
  z-index:16!important;
  margin-top:14px!important;
  padding:12px 0 4px!important;
}
#modifierModal .recipe-save-bar .btn,
#modifierModal .btn.success.wide{
  min-height:46px!important;
}
body.ui-dark #modifierModal .modifier-tab-shell{
  background:rgba(7,21,42,.96)!important;
  border-color:#213650!important;
}
@media (max-width: 1100px){
  #modifierModal .modal-card.modifier-modal{
    width:min(calc(100vw - 28px),1360px)!important;
    max-width:calc(100vw - 28px)!important;
  }
}

/* ==========================================================
   AVX SERVE HUB UX V18.6 - Modifier modal positioning tune
   - Center the large modifier editor inside the visible workspace,
     not against the full viewport, so it no longer hugs the sidebar.
   - Keep collapsed/mobile/RTL layouts safe.
   ========================================================== */
@media (min-width:1001px){
  #modifierModal.modal-shell,
  #modifierModal.modal-shell.open{
    left:var(--avx-sidebar-w)!important;
    right:0!important;
    width:auto!important;
    padding-left:max(22px,var(--avx-modal-gap-x))!important;
    padding-right:max(22px,var(--avx-modal-gap-x))!important;
    justify-content:center!important;
  }
  .shell.sidebar-collapsed #modifierModal.modal-shell,
  .shell.sidebar-collapsed #modifierModal.modal-shell.open{
    left:0!important;
  }
  body.ui-rtl #modifierModal.modal-shell,
  body.ui-rtl #modifierModal.modal-shell.open{
    left:0!important;
    right:var(--avx-sidebar-w)!important;
  }
  body.ui-rtl .shell.sidebar-collapsed #modifierModal.modal-shell,
  body.ui-rtl .shell.sidebar-collapsed #modifierModal.modal-shell.open{
    right:0!important;
  }
  #modifierModal .modal-card.modifier-modal{
    width:min(1320px,calc(100vw - var(--avx-sidebar-w) - 56px))!important;
    max-width:calc(100vw - var(--avx-sidebar-w) - 56px)!important;
  }
  .shell.sidebar-collapsed #modifierModal .modal-card.modifier-modal{
    width:min(1320px,calc(100vw - 56px))!important;
    max-width:calc(100vw - 56px)!important;
  }
  body.ui-rtl #modifierModal .modal-card.modifier-modal{
    width:min(1320px,calc(100vw - var(--avx-sidebar-w) - 56px))!important;
    max-width:calc(100vw - var(--avx-sidebar-w) - 56px)!important;
  }
}

/* ==========================================================
   AVX SERVE HUB UX V18.7 - Mobile responsive polish
   - Fix sidebar/nav readability on phones.
   - Prevent mobile browser text autosizing from clipping nav labels.
   - Make tabs/rails/forms/actions behave better on narrow screens.
   ========================================================== */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

@media (max-width:1000px){
  .shell,
  .content,
  .page-body,
  .topbar,
  .page-heading{
    min-width:0!important;
  }
  .sidebar{
    width:min(320px,92vw)!important;
    max-width:92vw!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  .sidebar .brand{
    height:78px!important;
    padding:0 18px!important;
  }
  .sidebar .brand img{
    max-width:150px!important;
    height:38px!important;
  }
  .sidebar nav{
    padding:14px 12px 16px!important;
  }
  .nav-group-label{
    min-height:auto!important;
    padding:12px 12px 6px!important;
    font-size:10px!important;
    line-height:1.25!important;
    letter-spacing:.12em!important;
  }
  .sidebar nav a{
    display:grid!important;
    grid-template-columns:22px minmax(0,1fr)!important;
    align-items:center!important;
    min-height:50px!important;
    height:auto!important;
    margin:2px 0!important;
    padding:11px 12px!important;
    gap:12px!important;
    overflow:visible!important;
    border-radius:12px!important;
  }
  .sidebar nav a .ico{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .sidebar nav a .ico svg{
    width:18px!important;
    height:18px!important;
  }
  .sidebar nav a .nav-label{
    display:block!important;
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    line-height:1.28!important;
    font-size:14px!important;
    font-weight:750!important;
  }
  .sidebar nav a::after{
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  .userbox{
    margin:12px!important;
    padding:16px!important;
  }
  .topbar{
    padding:0 12px!important;
  }
  .top-actions{
    gap:8px!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
  }
  .page-heading,
  .card,
  .table-card,
  .store-scope-card,
  .mini-stat,
  .schedule-box{
    border-radius:18px!important;
  }
  .table-card,
  .simple-table-card{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:720px){
  .topbar{
    height:auto!important;
    min-height:68px!important;
    padding:10px 12px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
  }
  .topbar .hello{
    max-width:calc(100vw - 170px)!important;
  }
  .top-actions{
    margin-left:auto!important;
  }
  .page-heading{
    padding:14px 16px!important;
  }
  .page-body{
    padding:16px!important;
  }
  .select-store-bar,
  .item-filter-line form,
  .input-button-row,
  .combo-level-head,
  .two,
  .three,
  .grid.cols-2,
  .grid.cols-3,
  .filter-grid{
    grid-template-columns:1fr!important;
  }
  .modal-shell{
    padding:10px!important;
  }
  .modal-card,
  #modifierModal .modal-card.modifier-modal,
  .ux-gm-modal-card,
  .modifier-master-modal{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    border-radius:18px!important;
  }
  .table-search,
  .table-card-title .table-search,
  .card-header .table-search{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  .tabs,
  .item-subtabs,
  .global-manager-tabs,
  .kapi-tabs,
  .modifier-tab-buttons,
  .modifier-tab-shell .modifier-tab-buttons,
  .ux-modal-section-nav{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-bottom:4px!important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .tabs::-webkit-scrollbar,
  .item-subtabs::-webkit-scrollbar,
  .global-manager-tabs::-webkit-scrollbar,
  .kapi-tabs::-webkit-scrollbar,
  .modifier-tab-buttons::-webkit-scrollbar,
  .modifier-tab-shell .modifier-tab-buttons::-webkit-scrollbar,
  .ux-modal-section-nav::-webkit-scrollbar{
    display:none;
  }
  .tabs a,
  .item-subtabs a,
  .global-manager-tabs a,
  .kapi-tabs a,
  .modifier-tab-buttons .mod-tab-btn,
  .modifier-tab-shell .mod-tab-btn,
  .ux-modal-section-nav > *{
    flex:0 0 auto!important;
    min-width:max-content!important;
    white-space:nowrap!important;
  }
  .modifier-tab-shell{
    top:0!important;
  }
}

@media (max-width:480px){
  .sidebar{
    width:min(306px,94vw)!important;
    max-width:94vw!important;
  }
  .sidebar nav a{
    grid-template-columns:20px minmax(0,1fr)!important;
    padding:10px 12px!important;
    gap:11px!important;
  }
  .sidebar nav a .ico svg{
    width:17px!important;
    height:17px!important;
  }
  .sidebar nav a .nav-label{
    font-size:13.5px!important;
  }
  .userbox{
    border-radius:16px!important;
  }
  .page-heading h1{
    font-size:20px!important;
  }
  .btn{
    min-height:42px!important;
    padding:10px 14px!important;
  }
}

/* ========================================================================== 
   Global Menu Manager V4 - 2026-08-27
   Match the normal Modifiers workflow and presentation model.
   ========================================================================== */
.global-menu-workflow .ux-workflow-step.done{
  border-color:color-mix(in srgb,var(--success,#16a36a) 34%,var(--border));
  background:color-mix(in srgb,var(--success,#16a36a) 7%,var(--card));
}
.global-menu-workflow .ux-workflow-step.done>span{
  background:color-mix(in srgb,var(--success,#16a36a) 16%,var(--card));
  color:var(--success,#13875a);
}
.global-manager-v4{margin-top:18px!important}
.global-manager-v4 .global-manager-workspace{overflow:visible}
.global-manager-heading{align-items:flex-start!important}
.global-manager-heading>div:first-child{min-width:0;flex:1}
.global-manager-summary-pills{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:520px}
.global-manager-summary-pills span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--card);border-radius:999px;padding:7px 11px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.global-manager-summary-pills b{font-size:13px;color:var(--text)}
.global-manager-scope-shell{padding:0 24px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--card) 93%,var(--bg))}
.global-manager-scope-tabs{position:static!important;top:auto!important;padding:10px 0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}
.global-manager-scope-tabs .mod-tab-btn{display:flex!important;text-decoration:none!important;min-width:0;align-items:flex-start;justify-content:center;text-align:left;flex-direction:column;gap:2px;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--card)!important;color:var(--text)!important}
.global-manager-scope-tabs .mod-tab-btn.active{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 9%,var(--card))!important;box-shadow:inset 0 -2px 0 var(--accent)}
.global-manager-scope-tabs .mod-tab-btn small{font-size:11.5px!important;color:var(--muted);font-weight:600}
.global-manager-live-toolbar{display:flex;align-items:flex-end;gap:14px;padding:20px 24px 14px;border-bottom:1px solid var(--border)}
.global-manager-live-search{margin:0!important;min-width:0;flex:1}
.global-manager-live-search input{width:100%;min-width:0}
.global-manager-live-result{display:flex;align-items:center;gap:8px;min-height:46px;white-space:nowrap;color:var(--muted);font-size:12.5px}
.global-manager-live-result b{font-size:14px;color:var(--text)}
.global-manager-helper{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;color:var(--muted);border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--card) 96%,var(--bg))}
.global-manager-helper>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.global-manager-helper b{font-size:13.5px;color:var(--text)}
.global-manager-helper span{font-size:12.5px;line-height:1.45}
.global-manager-source-badge{flex:none;display:inline-flex!important;align-items:center;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--border));background:color-mix(in srgb,var(--accent) 7%,var(--card));color:var(--accent)!important;border-radius:999px;padding:7px 10px;font-size:11.5px!important;font-weight:750}
.global-manager-filterchips-v4{padding:13px 24px 4px!important;margin:0!important}
.global-manager-bulkbar-v4{margin:0!important;padding:13px 24px!important;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--card) 98%,var(--bg));align-items:center!important}
.global-bulk-copy{display:flex;flex-direction:column;gap:2px;margin-right:auto;min-width:145px}
.global-bulk-copy b{font-size:13px;color:var(--text)}
.global-bulk-copy span{font-size:11.5px;color:var(--muted)}
.global-catalog-list{padding:14px 24px 24px!important;gap:10px!important}
.global-catalog-row{display:grid!important;grid-template-columns:34px 74px minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;padding:14px 16px!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--card)!important;box-shadow:none!important;min-height:102px;transition:border-color .15s ease,background .15s ease}
.global-catalog-row:hover{border-color:color-mix(in srgb,var(--accent) 28%,var(--border))!important;background:color-mix(in srgb,var(--accent) 2%,var(--card))!important}
.global-catalog-row.disabled{opacity:.78;background:color-mix(in srgb,var(--danger,#d32927) 3%,var(--card))!important}
.global-catalog-row.global-row-filtered-out,.global-catalog-row[hidden]{display:none!important}
.global-catalog-row .global-manager-check{align-self:center;justify-self:center}
.global-catalog-row .global-manager-check input{width:18px;height:18px}
.global-catalog-thumb{width:72px!important;height:72px!important;min-width:72px!important;border-radius:12px!important;border:1px solid var(--border)!important;background:color-mix(in srgb,var(--card) 88%,var(--bg))!important;overflow:hidden;display:flex!important;align-items:center;justify-content:center}
.global-catalog-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;display:block}
.global-catalog-thumb>span{font-size:19px!important;font-weight:850;color:var(--muted)}
.global-catalog-copy{min-width:0!important}
.global-catalog-copy .global-manager-titleline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 4px!important}
.global-catalog-copy .global-manager-titleline h3{font-size:15px!important;line-height:1.3!important;margin:0!important;min-width:0;overflow-wrap:anywhere}
.global-catalog-ar{font-size:13.5px!important;font-weight:700;color:var(--text);margin:2px 0 6px!important;text-align:left}
.global-catalog-copy .global-manager-meta{gap:6px!important;margin-top:6px!important}
.global-catalog-copy .global-manager-parent-preview{margin-top:7px!important;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere}
.global-catalog-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important;max-width:380px}
.global-catalog-actions form{margin:0!important;display:flex;gap:7px;align-items:center}
.global-catalog-actions .icon-action{appearance:none;-webkit-appearance:none;background:transparent;border:0;font:inherit;cursor:pointer;white-space:nowrap}
.global-manager-hidden-details{display:none!important}
.global-manager-v4 .empty-state[data-global-no-results]{margin:10px 0 0}
.modifier-global-thumb.image-failed::after,.global-catalog-thumb.image-failed::after{content:'IMG';display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:800;color:var(--muted)}

/* The Global Manager action modal now visually matches the normal modifier modal. */
.ux-gm-modal-card{max-width:min(920px,calc(100vw - 48px))!important}
.ux-gm-dialog-context{display:grid!important;grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:center;padding:14px 24px!important;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--card) 96%,var(--bg))}
.ux-gm-context-preview .global-component-preview{width:72px!important;height:72px!important;border-radius:12px!important}
.ux-gm-dialog-slot .global-usage-form{padding:22px 24px!important}

@media (max-width:900px){
  .global-manager-summary-pills{justify-content:flex-start;max-width:none;width:100%}
  .global-manager-live-toolbar{align-items:stretch;flex-direction:column}
  .global-manager-live-result{justify-content:space-between}
  .global-manager-helper{align-items:flex-start;flex-direction:column}
  .global-catalog-row{grid-template-columns:30px 64px minmax(0,1fr)!important}
  .global-catalog-thumb{width:62px!important;height:62px!important;min-width:62px!important}
  .global-catalog-actions{grid-column:2/-1;justify-content:flex-start!important;max-width:none;width:100%}
}
@media (max-width:640px){
  .global-manager-scope-shell,.global-manager-live-toolbar,.global-manager-helper,.global-manager-bulkbar-v4,.global-catalog-list{padding-left:14px!important;padding-right:14px!important}
  .global-manager-scope-tabs{grid-template-columns:1fr!important}
  .global-manager-scope-tabs .mod-tab-btn{min-height:58px!important}
  .global-manager-bulkbar-v4{align-items:stretch!important}
  .global-manager-bulkbar-v4 .btn{flex:1 1 calc(50% - 6px)}
  .global-bulk-copy{flex:1 0 100%;margin:0 0 4px}
  .global-catalog-row{grid-template-columns:28px 54px minmax(0,1fr)!important;gap:9px!important;padding:12px!important}
  .global-catalog-thumb{width:52px!important;height:52px!important;min-width:52px!important;border-radius:10px!important}
  .global-catalog-copy .global-manager-titleline h3{font-size:14px!important}
  .global-catalog-ar{font-size:13px!important}
  .global-catalog-actions{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px!important}
  .global-catalog-actions form{display:contents}
  .global-catalog-actions .btn,.global-catalog-actions .icon-action{width:100%;justify-content:center;min-height:40px!important}
  .global-manager-summary-pills span{white-space:normal}
  .ux-gm-modal-card{max-width:calc(100vw - 20px)!important}
  .ux-gm-dialog-context{grid-template-columns:58px minmax(0,1fr);padding:12px 14px!important}
  .ux-gm-context-preview .global-component-preview{width:54px!important;height:54px!important}
}


/* V19.4 - make NCR/API vs Portal override ownership explicit on recipe controls. */
.recipe-source-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border:1px solid var(--border);border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;color:var(--muted);background:var(--card)}
.recipe-source-badge.api{color:#2563eb;border-color:color-mix(in srgb,#2563eb 28%,var(--border));background:color-mix(in srgb,#2563eb 8%,var(--card))}
.recipe-source-badge.manual{color:#9a6700;border-color:color-mix(in srgb,#d7a100 35%,var(--border));background:color-mix(in srgb,#f4c430 12%,var(--card))}
@media (max-width:760px){.recipe-source-badge{width:max-content}.recipe-controls{align-items:flex-start}}

/* V19.7: Keep Global-disabled meal components visible in the editor, but clearly inactive. */
.global-component-disabled-row { opacity: .72; background: rgba(148, 163, 184, .08); }
.global-component-disabled-row .modifier-option-main b { text-decoration: line-through; text-decoration-thickness: 1px; }
.global-component-disabled-row .grip-mark { opacity: .25; }
.api-item-list-category-heading{padding:10px 12px;margin-top:8px;border-radius:10px;background:var(--surface-soft,#eef6ff);color:var(--primary,#075fbd);font-weight:800;grid-column:1/-1}
.api-item-category-collapse{grid-column:1/-1;margin:8px 0;border:1px solid var(--border,#dbe5f0);border-radius:12px;background:var(--surface,#fff);overflow:hidden}
.api-item-category-collapse>summary{cursor:pointer;padding:12px 14px;background:var(--surface-soft,#eef6ff);color:var(--primary,#075fbd);font-weight:800;list-style-position:inside}
.api-item-category-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}
@media(max-width:800px){.api-item-category-body{grid-template-columns:1fr}}

/* ==========================================================
   AVX SERVE HUB V20 — MOBILE RESPONSIVE SYSTEM
   Compact table summaries + progressive row details and
   narrow-screen hardening for forms, tools, media and modals.
   Presentation only: original cells/controls remain in the DOM.
   ========================================================== */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.responsive-row-toggle-cell{display:none}

@media (max-width:720px){
  html,body{max-width:100%;overflow-x:hidden}
  .content,.page-body,.page-body>*{min-width:0;max-width:100%}
  .page-body{padding:12px!important}
  .page-heading{height:auto!important;min-height:64px;gap:10px;align-items:flex-start!important}
  .page-heading-copy{min-width:0}
  .page-heading h1,.page-heading p{overflow-wrap:anywhere}
  .page-heading .divider,.page-heading .total{display:none}
  .card,.table-card,.simple-table-card,.store-scope-card,.schedule-box{max-width:100%;margin-bottom:14px!important;border-radius:16px!important}
  .card{padding:16px!important}
  .card-header,.table-card-title,.table-tools,.cloud-tools,.inline-actions,.modal-actions{gap:10px!important}
  .card-header,.table-card-title,.table-tools,.cloud-tools{align-items:stretch!important}
  .table-card-title{padding:16px!important}
  .table-tools,.cloud-tools,.inline-actions,.modal-actions{flex-wrap:wrap!important}
  .table-tools>*,.cloud-tools>*,.modal-actions>*{max-width:100%}
  .inline-actions .btn,.modal-actions .btn{flex:1 1 auto}
  .field,input:not([type='checkbox']):not([type='radio']):not([type='color']),select,textarea{min-width:0;max-width:100%}
  input,select,textarea{font-size:16px!important}
  input[type='file']{padding:7px!important}
  input[type='file']::file-selector-button{max-width:100%;padding:9px 10px!important}
  .form-grid,.form-grid.two,.form-grid.three,.grid,.grid.cols-2,.grid.cols-3,.grid.cols-4,.two,.three,.filter-grid,.page-selector,.select-store-bar,.input-button-row,.item-filter-line form{grid-template-columns:minmax(0,1fr)!important}
  .form-grid>*,.grid>*,.two>*,.three>*,.filter-grid>*,.input-button-row>*{min-width:0}
  .modal-shell{align-items:flex-end!important;padding:0!important}
  .modal-card,#modifierModal .modal-card.modifier-modal,.ux-gm-modal-card,.modifier-master-modal{width:100%!important;max-width:100%!important;max-height:94dvh!important;border-radius:22px 22px 0 0!important;padding-bottom:max(0px,env(safe-area-inset-bottom))}
  .modal-head{position:sticky;top:0;z-index:5;padding:14px 16px!important}
  .modal-form{padding:16px 14px 0!important}
  .side-drawer{width:100%!important;max-width:100%!important;padding:20px 16px!important}
  .preview,.upload-preview,img{max-width:100%;height:auto}
  pre,.code,code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}

  .table-card:has(>table.responsive-data-table),
  .card:has(>table.responsive-data-table){overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
  table.responsive-data-table{display:block!important;width:100%!important;min-width:0!important;background:transparent!important;border-collapse:separate!important}
  table.responsive-data-table>thead{display:none!important}
  table.responsive-data-table>tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
  table.responsive-data-table>tbody>tr.responsive-data-row{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:0 10px!important;width:100%!important;min-width:0!important;padding:14px!important;border:1px solid rgba(20,38,78,.10)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(24,40,76,.07)!important}
  table.responsive-data-table>tbody>tr.responsive-data-row:hover{background:#fff!important}
  table.responsive-data-table>tbody>tr.responsive-data-row>td{min-width:0!important;width:auto!important;max-width:100%!important;padding:4px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;color:#35415d!important;text-align:start!important}
  table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-primary-cell{display:block!important;grid-column:1!important}
  table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-primary-cell:first-of-type{font-weight:850;color:#17223b!important;font-size:15px}
  table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-primary-cell::before{content:attr(data-label);display:block;margin-bottom:2px;color:#8a94aa;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-secondary-cell{display:none!important}
  table.responsive-data-table>tbody>tr.responsive-data-row.responsive-row-expanded>td.responsive-secondary-cell{display:block!important;grid-column:1/-1!important;margin-top:8px;padding:11px 0 3px 42%!important;border-top:1px solid rgba(20,38,78,.08)!important;position:relative}
  table.responsive-data-table>tbody>tr.responsive-data-row.responsive-row-expanded>td.responsive-secondary-cell::before{content:attr(data-label);position:absolute;inset-inline-start:0;top:11px;width:38%;color:#7a859c;font-size:11px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
  table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-row-toggle-cell{display:flex!important;grid-column:2!important;grid-row:1/span 3!important;align-items:flex-start!important;justify-content:flex-end!important;padding:0!important}
  .responsive-row-toggle{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgba(0,184,192,.20);border-radius:12px;background:rgba(0,184,192,.08);color:#007e87;cursor:pointer;transition:transform .18s ease,background .18s ease}
  .responsive-row-toggle span[aria-hidden='true']{width:9px;height:9px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease}
  .responsive-row-toggle[aria-expanded='true']{background:#00aeb7;color:#fff}
  .responsive-row-toggle[aria-expanded='true'] span[aria-hidden='true']{transform:rotate(225deg) translate(-1px,-1px)}
  .responsive-row-toggle:focus-visible{outline:3px solid rgba(1,95,192,.25);outline-offset:2px}
  table.responsive-data-table .table-inline-actions,table.responsive-data-table .diagnostics-actions{display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;justify-content:flex-start!important}
  table.responsive-data-table .table-inline-actions>*,table.responsive-data-table .diagnostics-actions>*{min-width:0!important;max-width:100%}
}

@media (max-width:420px){
  table.responsive-data-table>tbody>tr.responsive-data-row.responsive-row-expanded>td.responsive-secondary-cell{padding-inline-start:0!important;padding-top:34px!important}
  table.responsive-data-table>tbody>tr.responsive-data-row.responsive-row-expanded>td.responsive-secondary-cell::before{width:100%;top:11px}
  .modal-actions .btn,.inline-actions .btn{flex:1 1 100%}
}

body.ui-dark table.responsive-data-table>tbody>tr.responsive-data-row{background:#111c35!important;border-color:rgba(158,181,230,.16)!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
body.ui-dark table.responsive-data-table>tbody>tr.responsive-data-row:hover{background:#111c35!important}
body.ui-dark table.responsive-data-table>tbody>tr.responsive-data-row>td{color:#dbe7f8!important}
body.ui-dark table.responsive-data-table>tbody>tr.responsive-data-row>td.responsive-primary-cell:first-of-type{color:#fff!important}
body.ui-dark table.responsive-data-table>tbody>tr.responsive-data-row.responsive-row-expanded>td.responsive-secondary-cell{border-color:rgba(158,181,230,.13)!important}
body.ui-dark .responsive-row-toggle{background:rgba(117,225,229,.10);border-color:rgba(117,225,229,.22);color:#75e1e5}
body.ui-dark .responsive-row-toggle[aria-expanded='true']{background:#0d858d;color:#fff}

@media print{
  .responsive-row-toggle-cell{display:none!important}
  table.responsive-data-table{display:table!important}
  table.responsive-data-table>thead{display:table-header-group!important}
  table.responsive-data-table>tbody{display:table-row-group!important}
  table.responsive-data-table>tbody>tr.responsive-data-row{display:table-row!important}
  table.responsive-data-table>tbody>tr.responsive-data-row>td{display:table-cell!important}
}

@media (prefers-reduced-motion:reduce){
  .responsive-row-toggle,.responsive-row-toggle span{transition:none!important}
}

/* Kiosk API: native accessible disclosure; collapsed controls still submit. */
.card.kapi-collapse { padding:0!important; margin-bottom:14px; scroll-margin-top:140px; }
.kapi-collapse > summary { display:flex; align-items:center; gap:12px; cursor:pointer; padding:20px; list-style:none; font-weight:700; }
.kapi-collapse > summary::-webkit-details-marker { display:none; }
.kapi-collapse > summary::before { content:"›"; display:inline-block; font-size:24px; transition:transform .15s; }
.kapi-collapse[open] > summary::before { transform:rotate(90deg); }
.kapi-collapse > summary:focus-visible { outline:2px solid currentColor; outline-offset:-4px; }
.kapi-collapse-body { padding:0 20px 20px; }
@media (prefers-reduced-motion:reduce) { .kapi-collapse > summary::before { transition:none; } }
