/* MCHILS Retail Executive Mini ERP — premium responsive operational UI */
.ep-nav-section{font-size:9px;font-weight:950;color:var(--muted);letter-spacing:.15em;padding:19px 15px 9px;border-top:1px solid var(--line);margin-top:7px}
.ep-nav{position:relative;display:flex;gap:12px;min-width:0;padding:10px 13px!important}
.ep-nav-svg{width:23px;height:23px;display:inline-flex;justify-content:center;align-items:center;flex:none;color:var(--accent)}
.ep-nav-label{display:inline!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;flex:1}
.ep-nav-badge{background:#ce617a;color:#fff;font-size:9px;font-weight:950;padding:3px 5px;border-radius:30px;min-width:20px;text-align:center}
.ep-shell{width:100%;min-width:0;display:flex;flex-direction:column;gap:17px}
.ep-hero{min-height:158px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:clamp(23px,4vw,38px);background:radial-gradient(ellipse at 100% 25%,color-mix(in srgb,var(--accent) 23%,transparent),transparent 48%),linear-gradient(135deg,var(--panel),var(--card));border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));border-radius:19px;overflow:hidden}
.ep-eyebrow{font-weight:950;color:var(--accent);font-size:10px;letter-spacing:.20em;text-transform:uppercase}
.ep-hero h2{font-size:clamp(26px,3.4vw,48px);line-height:1.04;letter-spacing:-.066em;font-weight:1000;margin:8px 0 9px}
.ep-hero p{color:var(--muted);font-size:12px;line-height:1.65;margin:0;max-width:680px}
.ep-hero-symbol{opacity:.4;flex:none;color:var(--accent)}
.ep-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.ep-kpi{border:1px solid var(--line);background:var(--card);border-radius:14px;padding:19px;min-width:0;position:relative;overflow:hidden}
.ep-kpi:before{content:"";position:absolute;right:-35px;top:-40px;width:100px;height:100px;border-radius:100%;background:var(--accent);opacity:.06}
.ep-kpi-top{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:11px;font-weight:750}
.ep-kpi-top svg{color:var(--accent);flex:none}
.ep-kpi>strong{display:block;margin:13px 0 4px;font-size:clamp(21px,2.4vw,32px);letter-spacing:-.055em;font-weight:1000;line-height:1.15;overflow-wrap:anywhere}
.ep-kpi>strong small{font-size:12px;font-weight:650;letter-spacing:0;color:var(--muted)}
.ep-kpi>small{font-size:10px;color:var(--muted)}
.ep-feature-strip{height:210px;display:grid;grid-template-columns:1fr minmax(180px,35%);gap:15px;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:linear-gradient(120deg,var(--panel),color-mix(in srgb,var(--accent) 18%,var(--panel)))}
.ep-feature-strip>div{display:flex;flex-direction:column;justify-content:center;padding:26px 32px;min-width:0}
.ep-feature-strip h3{font-size:clamp(25px,3.6vw,42px);font-weight:1000;letter-spacing:-.07em;line-height:1.05;margin:9px 0}
.ep-feature-strip p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.ep-feature-strip>img{width:100%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(90deg,transparent,#000 35%)}
.ep-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ep-module-card{min-height:156px;position:relative;text-align:left;border:1px solid var(--line);background:var(--card);border-radius:14px;color:var(--ink);padding:19px;display:flex;flex-direction:column;gap:8px;transition:transform .16s ease,border-color .16s,box-shadow .16s}
.ep-module-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px #0002;border-color:var(--accent)}
.ep-module-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--accent) 10%,var(--panel));color:var(--accent);flex:none}
.ep-module-card strong{font-size:14px;letter-spacing:-.025em;font-weight:900}
.ep-module-card small{font-size:10px;color:var(--muted);line-height:1.4;max-width:160px}
.ep-module-go{position:absolute;right:16px;top:23px;color:var(--accent)}
.ep-dual{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.ep-box{border:1px solid var(--line);background:var(--card);border-radius:16px;overflow:hidden;min-width:0}
.ep-boxhead{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:19px 20px;border-bottom:1px solid var(--line)}
.ep-boxhead h3{font-size:16px;font-weight:950;letter-spacing:-.035em;margin:0}
.ep-boxhead>span{font-size:11px;color:var(--muted)}
.ep-box>.ep-moneyline,.ep-box>.ep-barrow,.ep-box>.ep-notice-item,.ep-box>.ep-empty{margin-left:20px;margin-right:20px}
.ep-barrow{display:grid;grid-template-columns:110px minmax(0,1fr) 110px;align-items:center;gap:12px;margin-top:18px;margin-bottom:18px}
.ep-barrow span{font-size:11px;color:var(--muted)}
.ep-barrow strong{font-size:11px;text-align:right;white-space:nowrap}
.ep-barrow strong small{font-size:9px}
.ep-track{height:9px;background:var(--panel2);border-radius:20px;overflow:hidden;border:1px solid var(--line)}
.ep-track i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 65%,white));border-radius:20px}
.ep-notice-item{display:flex;align-items:start;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}
.ep-notice-item strong{font-size:11px;display:block}.ep-notice-item small{font-size:10px;color:var(--muted);display:block;line-height:1.5;margin-top:4px}
.ep-dot{width:9px;height:9px;flex:none;margin-top:2px;border-radius:50%;background:var(--accent)}
.ep-dot.high{background:#e46b76}.ep-dot.medium{background:#e3b15d}
.ep-form{padding:18px;display:flex;gap:10px;align-items:end;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.ep-form label{font-size:10px;color:var(--muted);font-weight:850;display:flex;flex:1 1 140px;flex-direction:column;gap:8px;min-width:125px}
.ep-form input,.ep-form select,.ep-search input{width:100%;background:var(--panel2);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:11px;font-size:12px;min-height:41px}
.ep-form input:focus,.ep-form select:focus{outline:2px solid var(--accent);outline-offset:1px}
.ep-button{display:inline-flex;align-items:center;gap:7px;justify-content:center;padding:11px 14px;border:1px solid var(--accent);border-radius:9px;font-size:11px;font-weight:900;background:var(--accent);color:var(--bg);cursor:pointer;min-height:41px}
.ep-button.subtle{background:var(--panel2);color:var(--ink);border-color:var(--line);min-height:34px;padding:8px 11px}
.ep-button.wide{width:calc(100% - 40px);margin:15px 20px}
.ep-tablewrap{max-width:100%;overflow-x:auto}
.ep-table{width:100%;border-collapse:collapse;font-size:11px;min-width:680px}
.ep-table th{text-align:left;padding:13px 15px;font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;background:var(--panel2);white-space:nowrap}
.ep-table td{padding:15px;border-top:1px solid var(--line);vertical-align:middle}
.ep-table tr:hover td{background:color-mix(in srgb,var(--accent) 5%,var(--card))}
.ep-table td strong{font-size:11px}.ep-table td small{display:block;color:var(--muted);font-size:9px;margin-top:5px}
.ep-table small{color:var(--muted)}
.ep-pill{display:inline-block;padding:6px 9px;border-radius:30px;font-size:10px;font-weight:900;background:var(--panel2);color:var(--muted);white-space:nowrap}
.ep-status-present,.ep-status-received,.ep-status-approved,.ep-status-valid,.ep-status-posted{background:#244939;color:#79e7bb}
.ep-status-pending,.ep-status-draft,.ep-status-nearexpiry{background:#4a3c29;color:#edc081}
.ep-status-expired{background:#522b36;color:#ff9fae}
.ep-smallbtn{border:1px solid var(--line);background:var(--panel2);border-radius:8px;font-size:10px;padding:8px 10px;color:var(--ink);font-weight:850;cursor:pointer;white-space:nowrap}
.ep-smallbtn:hover,.ep-button.subtle:hover{border-color:var(--accent)}
.ep-moneyline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.ep-moneyline strong{color:var(--ink);font-size:12px}
.ep-moneyline strong small{font-size:10px;color:var(--muted)}
.ep-notice{font-size:11px;color:var(--muted);line-height:1.6;padding:15px;border:1px solid var(--line);border-radius:11px;background:var(--panel2);margin:17px 0}
.ep-box .ep-notice{margin:17px 20px}
.ep-progress{display:inline-block;vertical-align:middle;border-radius:12px;background:var(--panel2);width:53px;height:6px;margin-right:6px;overflow:hidden}
.ep-progress i{display:block;height:100%;background:var(--accent)}
.ep-search{display:flex;padding:3px}
.ep-search input{font-size:13px}
.ep-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.ep-product-card{background:var(--card);border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:38% 1fr;gap:12px;min-height:245px;overflow:hidden}
.ep-product-card>img{width:100%;height:100%;min-height:245px;object-fit:cover;background:var(--panel2)}
.ep-product-card>div{display:flex;flex-direction:column;align-items:flex-start;padding:17px 12px 17px 0;min-width:0}
.ep-product-card h3{font-size:17px;line-height:1.18;letter-spacing:-.04em;margin:10px 0 5px}
.ep-product-card p{font-size:11px;color:var(--muted);margin:4px 0;line-height:1.55}
.ep-product-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
.ep-product-facts span{font-size:10px;color:var(--muted)}.ep-product-facts b{color:var(--ink)}
.ep-product-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;width:100%;gap:6px}
.ep-product-foot>strong{font-size:14px}.ep-product-foot>strong small{font-size:9px}
.ep-recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.ep-recipe{border:1px solid var(--line);background:var(--card);border-radius:15px;padding:19px;min-width:0}
.ep-rec-head{display:flex;gap:12px;align-items:center;margin-bottom:15px}
.ep-rec-head small{font-size:10px;color:var(--muted)}.ep-rec-head h3{margin:6px 0 0;font-size:16px;letter-spacing:-.04em}
.ep-component{border-bottom:1px solid var(--line);padding:11px 0;font-size:11px;display:flex;justify-content:space-between;gap:5px}
.ep-component b{white-space:nowrap}
.ep-recipe .ep-moneyline{margin:0!important}
.ep-alert-list{padding:0 15px}
.ep-alert{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:17px 6px}
.ep-alert-type{display:grid;place-items:center;width:36px;height:36px;color:var(--accent);border-radius:10px;background:var(--panel2);flex:none}
.ep-alert-type.high{color:#ff8f9b}.ep-alert>div{flex:1;min-width:190px}.ep-alert strong{font-size:11px}.ep-alert small{font-size:10px;color:var(--muted);display:block;margin-top:5px}
.ep-level{font-size:9px;color:var(--muted);font-weight:900;letter-spacing:.1em}
.ep-empty{padding:35px 0;text-align:center;color:var(--muted);font-size:12px}
.ep-toast{position:fixed;bottom:22px;right:20px;background:var(--card);color:var(--ink);border:1px solid var(--accent);padding:14px 18px;box-shadow:0 20px 40px #0006;border-radius:12px;z-index:300;font-size:12px}
@media(min-width:921px){.app-shell:has(.ep-nav){grid-template-columns:245px minmax(0,1fr)}.sidebar:has(.ep-nav){overflow-y:auto;scrollbar-width:thin}.sidebar:has(.ep-nav) .side-bottom{margin-top:15px}}
@media(max-width:1250px){.ep-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ep-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-product-grid{grid-template-columns:1fr}}
@media(max-width:920px){.sidebar:has(.ep-nav){flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.ep-nav-section{display:none}.ep-nav{width:auto;min-width:max-content}.ep-nav .ep-nav-label{display:none!important}.ep-nav-badge{position:absolute;right:0;top:-2px}.ep-nav-svg{width:20px}.ep-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ep-grid,.ep-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-dual{grid-template-columns:1fr}.ep-feature-strip{height:180px}.ep-feature-strip>img{object-position:center}.ep-product-grid{grid-template-columns:1fr}}
@media(max-width:500px){.ep-grid{gap:8px}.ep-module-card{padding:12px;min-height:147px}.ep-module-card strong{font-size:12px}.ep-module-card small{font-size:9px}.ep-kpi{padding:13px}.ep-kpi-top{font-size:10px}.ep-kpi>strong{font-size:20px}.ep-kpi>strong small{font-size:9px}.ep-hero{padding:20px}.ep-hero h2{font-size:28px}.ep-hero-symbol{display:none}.ep-feature-strip{grid-template-columns:1fr;min-height:150px;height:auto}.ep-feature-strip>div{padding:18px}.ep-feature-strip img{display:none}.ep-recipe-grid{grid-template-columns:1fr}.ep-product-card{grid-template-columns:36% 1fr}.ep-product-card>img{min-height:250px}.ep-product-facts{grid-template-columns:1fr}.ep-product-card>div{padding:12px 9px 12px 0}.ep-product-card h3{font-size:14px}.ep-barrow{grid-template-columns:64px minmax(0,1fr) 79px;gap:5px}.ep-barrow span,.ep-barrow strong{font-size:9px}.ep-form label{flex:1 1 140px}.ep-form .ep-button{width:100%}}

/* Mini business mode prioritizes its command center without repeating the POS campaign hero. */
body.mini-erp-active .content>.hero{display:none}
.ep-kpi>strong{overflow-wrap:anywhere;white-space:normal}
.ep-kpi-top{min-width:0}.ep-kpi-top span{min-width:0}
@media(max-width:920px){.sidebar .ep-nav{flex:0 0 auto}.ep-kpi>strong{font-size:clamp(17px,4vw,24px)}}
