/*
Theme Name: LESC Inventory Operations
Theme URI: https://leadingedgeseniorcare.supplies/
Author: Leading Edge Senior Care
Description: Private operations-console theme for the Leading Edge Senior Care Supplies inventory management platform.
Version: 0.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lesc-inventory-theme
*/

:root{
  --app-bg:#f3f5f7;
  --surface:#ffffff;
  --surface-2:#f8fafb;
  --ink:#1f2933;
  --muted:#66727f;
  --subtle:#8d98a4;
  --line:#dfe4e8;
  --line-strong:#cfd6dc;
  --nav:#1d252c;
  --nav-2:#252f37;
  --nav-text:#dce3e8;
  --nav-muted:#8fa0ad;
  --accent:#2b6477;
  --accent-soft:#e8f1f4;
  --good:#2f6b4f;
  --good-soft:#eaf4ee;
  --warn:#946b19;
  --warn-soft:#fbf3df;
  --danger:#9f3b35;
  --danger-soft:#f9e9e7;
  --radius:8px;
  --shadow:0 1px 2px rgba(25,35,45,.05),0 10px 28px rgba(25,35,45,.04);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--app-bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px}
body{min-height:100vh}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:none}
button,input,select,textarea{font:inherit}
body.admin-bar .lesc-ops-shell{min-height:calc(100vh - 32px)}

.lesc-ops-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr)}
.lesc-ops-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--nav);color:#fff;border-right:1px solid rgba(255,255,255,.04);display:flex;flex-direction:column}
.admin-bar .lesc-ops-sidebar{top:32px;height:calc(100vh - 32px)}
.lesc-ops-brand{padding:24px 22px 21px;border-bottom:1px solid rgba(255,255,255,.08)}
.lesc-ops-brandmark{display:flex;align-items:center;gap:12px}
.lesc-ops-logo{width:38px;height:38px;border-radius:7px;background:#eaf1f3;color:#1d4f61;display:grid;place-items:center;font-weight:900;font-size:15px;letter-spacing:-.04em}
.lesc-ops-brandname{font-size:15px;font-weight:800;line-height:1.2;letter-spacing:-.01em}
.lesc-ops-brandname small{display:block;font-size:11px;color:var(--nav-muted);font-weight:600;margin-top:4px;letter-spacing:.03em;text-transform:uppercase}
.lesc-ops-nav{padding:18px 12px 24px}
.lesc-nav-group{margin:0 0 18px}
.lesc-nav-heading{padding:0 10px 7px;color:#748692;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.lesc-nav-item{display:flex;align-items:center;gap:10px;min-height:39px;padding:8px 10px;border-radius:6px;color:var(--nav-text);font-size:13px;font-weight:650;margin:2px 0;position:relative}
.lesc-nav-item .dashicons{font-size:17px;width:18px;height:18px;color:#9cb0bb}
.lesc-nav-item:hover{background:rgba(255,255,255,.055);color:#fff}
.lesc-nav-item.is-active{background:#33404a;color:#fff;box-shadow:inset 3px 0 0 #8fb9c7}
.lesc-nav-item.is-active .dashicons{color:#d7eef4}
.lesc-nav-badge{margin-left:auto;font-size:9px;text-transform:uppercase;letter-spacing:.05em;border:1px solid rgba(255,255,255,.14);color:#9fb0bb;border-radius:10px;padding:2px 5px}
.lesc-sidebar-foot{margin-top:auto;padding:16px 22px 21px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:#91a0aa}
.lesc-sidebar-foot strong{display:block;color:#e4eaee;font-size:12px;margin-bottom:3px}
.lesc-sidebar-foot a{color:#bcc9d1}

.lesc-ops-main{min-width:0;display:flex;flex-direction:column}
.lesc-ops-topbar{height:68px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 28px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.admin-bar .lesc-ops-topbar{top:32px}
.lesc-crumb{font-size:11px;color:var(--subtle);font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.lesc-page-title{margin:0;font-size:20px;line-height:1.2;letter-spacing:-.02em;font-weight:780}
.lesc-top-actions{display:flex;align-items:center;gap:9px}
.lesc-system-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-size:11px;font-weight:700}
.lesc-system-dot{width:7px;height:7px;border-radius:50%;background:#54a171;box-shadow:0 0 0 3px #e7f3eb}
.lesc-menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:6px;width:38px;height:38px;align-items:center;justify-content:center;cursor:pointer}

.lesc-ops-content{width:100%;max-width:1680px;margin:0 auto;padding:24px 28px 36px}
.lesc-section-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 18px}
.lesc-section-intro h2{font-size:17px;margin:0 0 4px;letter-spacing:-.01em}
.lesc-section-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;max-width:760px}
.lesc-context-actions{display:flex;gap:8px;flex-wrap:wrap}
.lesc-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--ink);font-size:12px;font-weight:750;cursor:pointer}
.lesc-action:hover{background:#f8fafb}
.lesc-action-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.lesc-action-primary:hover{background:#23586a;color:#fff}

/* Setup state intentionally looks like a deployment console, not a portal card. */
.lesc-setup{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.lesc-setup-main{padding:30px;border-right:1px solid var(--line)}
.lesc-setup-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:850;color:var(--accent);margin-bottom:9px}
.lesc-setup h2{margin:0 0 10px;font-size:24px;letter-spacing:-.025em}
.lesc-setup p{color:var(--muted);line-height:1.65;margin:0 0 20px;max-width:720px}
.lesc-checkline{display:flex;gap:11px;align-items:flex-start;padding:13px 0;border-top:1px solid var(--line)}
.lesc-checknum{width:24px;height:24px;border-radius:50%;background:#edf2f4;display:grid;place-items:center;font-size:11px;font-weight:800;color:#52626d;flex:0 0 24px}
.lesc-checkline strong{display:block;font-size:13px;margin-bottom:3px}
.lesc-checkline span{color:var(--muted);font-size:12px;line-height:1.45}
.lesc-setup-side{padding:26px;background:#f8fafb}
.lesc-setup-side h3{margin:0 0 13px;font-size:13px;text-transform:uppercase;letter-spacing:.05em}
.lesc-module-list{display:grid;gap:0;border-top:1px solid var(--line)}
.lesc-module-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}
.lesc-module-row span:last-child{color:var(--subtle)}

/* Front-end manager components */
.lesc-inv-app{min-width:0}
.lesc-kpi-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);margin-bottom:18px}
.lesc-kpi{padding:16px 18px;border-right:1px solid var(--line);min-width:0}
.lesc-kpi:last-child{border-right:0}
.lesc-kpi-label{font-size:10px;color:var(--subtle);text-transform:uppercase;letter-spacing:.075em;font-weight:800;margin-bottom:8px}
.lesc-kpi-value{font-size:22px;font-weight:800;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lesc-kpi-note{margin-top:4px;color:var(--muted);font-size:11px}
.lesc-status-good,.lesc-status-warn,.lesc-status-danger,.lesc-status-neutral{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:4px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.lesc-status-good{background:var(--good-soft);color:var(--good)}
.lesc-status-warn{background:var(--warn-soft);color:var(--warn)}
.lesc-status-danger{background:var(--danger-soft);color:var(--danger)}
.lesc-status-neutral{background:#edf1f3;color:#64717a}

.lesc-workgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.7fr);gap:18px}
.lesc-workgrid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.lesc-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);min-width:0}
.lesc-panel + .lesc-panel{margin-top:18px}
.lesc-panel-head{min-height:52px;padding:13px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfcfc}
.lesc-panel-head h3{margin:0;font-size:13px;font-weight:800;letter-spacing:-.005em}
.lesc-panel-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.lesc-panel-body{padding:16px}
.lesc-panel-body.flush{padding:0}
.lesc-empty-state{padding:32px 18px;text-align:center;color:var(--muted);font-size:12px}

.lesc-data-table-wrap{overflow:auto}
.lesc-data-table{width:100%;border-collapse:collapse;font-size:12px;min-width:700px}
.lesc-data-table th{padding:10px 12px;background:#f7f9fa;border-bottom:1px solid var(--line);color:#75808a;font-size:9.5px;text-align:left;text-transform:uppercase;letter-spacing:.065em;font-weight:850;white-space:nowrap}
.lesc-data-table td{padding:11px 12px;border-bottom:1px solid #edf0f2;vertical-align:middle;color:#2c343b}
.lesc-data-table tbody tr:last-child td{border-bottom:0}
.lesc-data-table tbody tr:hover td{background:#fafcfc}
.lesc-data-table a{font-weight:750;color:#285d6e}
.lesc-data-table small{display:block;color:var(--subtle);margin-top:2px;font-size:10px}
.lesc-number{text-align:right;font-variant-numeric:tabular-nums}
.lesc-stock-low{color:var(--danger);font-weight:800}
.lesc-stock-ok{color:var(--good);font-weight:750}
.lesc-delta-up{color:var(--good);font-weight:800}
.lesc-delta-down{color:var(--danger);font-weight:800}

.lesc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.lesc-toolbar-left,.lesc-toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lesc-filter{height:36px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;padding:0 10px;font-size:12px;color:var(--ink)}
.lesc-search{min-width:230px}

.lesc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px}
.lesc-field{display:flex;flex-direction:column;gap:6px}
.lesc-field.full{grid-column:1/-1}
.lesc-field label{font-size:10px;font-weight:850;color:#69757e;text-transform:uppercase;letter-spacing:.05em}
.lesc-field input,.lesc-field select,.lesc-field textarea{width:100%;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--ink);padding:9px 10px;min-height:38px;outline:none}
.lesc-field textarea{min-height:88px;resize:vertical}
.lesc-field input:focus,.lesc-field select:focus,.lesc-field textarea:focus{border-color:#7ca3b1;box-shadow:0 0 0 3px rgba(43,100,119,.09)}
.lesc-check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink);margin-top:2px}
.lesc-check input{width:auto}
.lesc-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:14px;margin-top:14px;border-top:1px solid var(--line)}
.lesc-notice{padding:10px 12px;border:1px solid #bad7c5;background:#edf7f0;color:#2f6b4f;margin:0 0 14px;font-size:12px;font-weight:700}
.lesc-notice.warn{border-color:#ead7a4;background:#fff8e8;color:#7b5b18}
.lesc-code{display:block;padding:10px 12px;background:#f4f6f7;border:1px solid var(--line);font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow:auto;color:#40505b}
.lesc-mini-list{display:grid}
.lesc-mini-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);align-items:center}
.lesc-mini-row:last-child{border-bottom:0}
.lesc-mini-row strong{display:block;font-size:12px}
.lesc-mini-row small{color:var(--subtle);font-size:10px}
.lesc-mini-row .value{font-weight:800;font-variant-numeric:tabular-nums}

.lesc-login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.8fr) minmax(500px,1.2fr);background:#eef1f3}
.lesc-login-panel{display:flex;align-items:center;justify-content:center;padding:46px;background:#fff}
.lesc-login-box{width:min(390px,100%)}
.lesc-login-box .lesc-ops-logo{margin-bottom:22px;width:46px;height:46px}
.lesc-login-box h1{font-size:25px;margin:0 0 8px;letter-spacing:-.03em}
.lesc-login-box>p{color:var(--muted);line-height:1.55;margin:0 0 24px}
.lesc-login-box form p{margin:0 0 14px}
.lesc-login-box label{font-size:11px;font-weight:750;color:#59656f}
.lesc-login-box input[type=text],.lesc-login-box input[type=password]{width:100%;padding:10px 11px;border:1px solid var(--line-strong);border-radius:6px;margin-top:5px}
.lesc-login-box input[type=submit]{width:100%;border:0;border-radius:6px;padding:11px 14px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer}
.lesc-login-art{background:linear-gradient(145deg,#202b32,#2d3d46);padding:54px;color:#fff;display:flex;align-items:flex-end;position:relative;overflow:hidden}
.lesc-login-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to bottom,black,transparent 78%)}
.lesc-login-art-content{position:relative;max-width:620px}
.lesc-login-art .kicker{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#9fc0cb;font-weight:850}
.lesc-login-art h2{font-size:32px;line-height:1.12;margin:11px 0 14px;letter-spacing:-.035em}
.lesc-login-art p{color:#bfcbd2;line-height:1.65;max-width:570px}

@media(max-width:1180px){.lesc-kpi-strip{grid-template-columns:repeat(3,1fr)}.lesc-kpi:nth-child(3){border-right:0}.lesc-kpi:nth-child(-n+3){border-bottom:1px solid var(--line)}.lesc-workgrid,.lesc-workgrid.equal{grid-template-columns:1fr}.lesc-login-screen{grid-template-columns:1fr}.lesc-login-art{display:none}}
@media(max-width:900px){body.admin-bar .lesc-ops-shell{min-height:calc(100vh - 46px)}.lesc-ops-shell{grid-template-columns:1fr}.lesc-ops-sidebar{position:fixed;left:-290px;top:0!important;height:100vh!important;width:280px;z-index:100;transition:left .2s ease;box-shadow:20px 0 45px rgba(0,0,0,.16)}body.lesc-nav-open .lesc-ops-sidebar{left:0}.lesc-menu-toggle{display:inline-flex}.lesc-ops-topbar{top:0!important;padding:0 18px}.admin-bar .lesc-ops-topbar{top:46px!important}.lesc-ops-content{padding:20px 18px 30px}}
@media(max-width:640px){.lesc-kpi-strip{grid-template-columns:1fr 1fr}.lesc-kpi{border-bottom:1px solid var(--line)}.lesc-kpi:nth-child(2n){border-right:0}.lesc-kpi:last-child{grid-column:1/-1;border-bottom:0}.lesc-form-grid{grid-template-columns:1fr}.lesc-section-intro{align-items:flex-start;flex-direction:column}.lesc-search{min-width:0;width:100%}.lesc-setup{grid-template-columns:1fr}.lesc-setup-main{border-right:0;border-bottom:1px solid var(--line)}.lesc-system-pill{display:none}.lesc-page-title{font-size:17px}}
