:root{
  --bg:#f6f8fc;
  --surface:#ffffff;
  --surface-2:#f9fbff;
  --soft:#eef4ff;
  --primary:#2563eb;
  --primary-2:#4f7df3;
  --accent:#14b8a6;
  --success:#16a34a;
  --danger:#dc2626;
  --warning:#f59e0b;
  --info:#0891b2;
  --text:#162033;
  --heading:#0f172a;
  --muted:#6b7890;
  --border:#e4eaf3;
  --border-strong:#d5deeb;
  --shadow:0 18px 48px rgba(34,48,80,.09);
  --shadow-soft:0 10px 26px rgba(34,48,80,.065);
  --radius:22px;
  --radius-sm:14px;
  --sidebar-w:282px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 4% 0%, rgba(37,99,235,.10), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(20,184,166,.10), transparent 30%),
    linear-gradient(180deg,#f8fbff 0%, var(--bg) 50%, #f9fbff 100%);
  font-family:Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.45;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font-family:inherit}

/* Layout */
.app-shell{display:flex;min-height:100vh}
.app-main{margin-left:var(--sidebar-w);width:calc(100% - var(--sidebar-w));min-height:100vh}
.content-wrap{padding:26px 30px 38px}
.mobile-backdrop{display:none}

/* Sidebar */
.sidebar{
  position:fixed;
  inset:16px auto 16px 16px;
  width:calc(var(--sidebar-w) - 32px);
  overflow:auto;
  z-index:1000;
  padding:16px;
  color:var(--text);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  border:1px solid rgba(226,232,240,.85);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.brand-box{margin-bottom:18px;padding:6px 4px 14px;border-bottom:1px solid var(--border)}
.brand-link{display:flex;align-items:center;gap:12px;color:var(--heading)}
.brand-icon{
  width:48px;height:48px;border-radius:18px;
  display:grid;place-items:center;
  color:#fff;font-size:21px;
  background:linear-gradient(135deg,#2563eb,#60a5fa 58%,#14b8a6);
  box-shadow:0 14px 28px rgba(37,99,235,.20);
}
.brand-title{font-size:19px;font-weight:650;letter-spacing:-.025em;line-height:1.1}
.brand-subtitle{font-size:12px;color:var(--muted);font-weight:500;margin-top:3px}
.sidebar-section-label{
  margin:16px 10px 9px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7a8aa1;
  font-weight:600;
}
.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.sidebar .nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:10px 12px;
  border-radius:16px;
  color:#41506a;
  font-weight:500;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.sidebar .nav-link i{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  color:#64748b;
  background:#f3f6fb;
  font-size:14px;
  transition:.18s ease;
}
.sidebar .nav-link:hover{background:#f6f9ff;color:#1e3a8a;transform:translateX(2px)}
.sidebar .nav-link:hover i{background:#eaf2ff;color:var(--primary)}
.sidebar .nav-link.active{
  color:#0f2f73;
  background:linear-gradient(135deg,#eaf2ff,#f4f9ff);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.08);
}
.sidebar .nav-link.active:before{
  content:"";
  position:absolute;left:0;top:11px;bottom:11px;width:4px;
  border-radius:0 999px 999px 0;
  background:var(--primary);
}
.sidebar .nav-link.active i{background:#dbeafe;color:var(--primary)}
.sidebar-footer{
  margin-top:18px;
  display:flex;gap:11px;align-items:center;
  padding:14px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,#f8fbff,#ffffff);
  border-radius:18px;
}
.sidebar-footer-icon{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  color:var(--primary);
  background:#eaf2ff;
}
.sidebar-footer strong{display:block;font-size:13px;font-weight:600;color:var(--heading)}
.sidebar-footer span{display:block;font-size:12px;color:var(--muted);line-height:1.3}

/* Header */
.topbar{
  position:sticky;top:0;z-index:900;
  min-height:82px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:18px 30px 14px;
  background:rgba(246,248,252,.82);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(226,232,240,.72);
}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px}
.sidebar-toggle{
  display:none;width:44px;height:44px;border:1px solid var(--border);
  background:#fff;border-radius:15px;color:var(--heading);box-shadow:0 8px 18px rgba(34,48,80,.05)
}
.page-kicker{font-size:12px;color:var(--muted);font-weight:500;letter-spacing:.02em}
.topbar h1{font-size:24px;line-height:1.18;margin:2px 0 0;font-weight:600;letter-spacing:-.035em;color:var(--heading)}
.topbar-chip{
  display:flex;align-items:center;gap:8px;
  padding:9px 12px;border-radius:999px;
  background:#ecfdf5;color:#047857;border:1px solid #c9f4dd;
  font-size:13px;font-weight:500;
}
.user-menu{display:flex;align-items:center;gap:12px}
.user-avatar{
  width:42px;height:42px;border-radius:15px;
  display:grid;place-items:center;
  color:var(--primary);
  background:linear-gradient(135deg,#eaf2ff,#f7fbff);
  border:1px solid #dbeafe;
}
.user-menu strong{font-size:14px;font-weight:600;color:var(--heading)}
.user-menu small{font-size:12px;color:var(--muted)}

/* Reusable cards and page headers */
.page-hero{
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:28px;
  border-radius:30px;
  background:
    radial-gradient(circle at 95% 10%, rgba(37,99,235,.13), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f7fbff 58%,#edf5ff 100%);
  border:1px solid rgba(215,225,238,.85);
  box-shadow:var(--shadow-soft);
}
.page-hero:before{
  content:"";
  position:absolute;right:-70px;bottom:-90px;width:220px;height:220px;border-radius:50%;
  background:rgba(37,99,235,.07);
}
.page-hero>*{position:relative;z-index:1}
.compact-hero{padding:24px 26px}
.page-eyebrow{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 11px;
  border-radius:999px;
  color:#1d4ed8;
  background:#edf4ff;
  border:1px solid #dbeafe;
  font-size:12px;font-weight:500;
}
.page-hero h2{margin:12px 0 4px;font-size:34px;font-weight:600;letter-spacing:-.045em;color:var(--heading)}
.compact-hero h2{font-size:30px}
.page-hero p{margin:0;color:var(--muted);font-weight:400}
.hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}

.card-soft,.metric-card,.admin-card,.sales-panel{
  background:rgba(255,255,255,.88);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.card-soft{padding:22px}
.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.card-title-row h5,.card-soft h5,.sales-panel h5{margin:0;color:var(--heading);font-weight:600;letter-spacing:-.02em}
.section-subtitle{margin:5px 0 0;color:var(--muted);font-size:13px;font-weight:400}

.metric-card{
  display:flex;align-items:center;justify-content:space-between;
  min-height:126px;padding:22px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.metric-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.metric-card p{margin:0;color:var(--muted);font-size:13px;font-weight:500}
.metric-card h2{margin:8px 0 0;color:var(--heading);font-size:31px;font-weight:600;letter-spacing:-.045em}
.metric-card i{
  width:54px;height:54px;border-radius:18px;display:grid;place-items:center;
  color:var(--primary);background:#edf4ff;font-size:22px;
}

/* Forms, buttons and tables */
.btn{border-radius:13px;font-weight:500;letter-spacing:-.005em;padding:.55rem .9rem}
.btn-sm{border-radius:11px;padding:.38rem .62rem}
.btn-lg{border-radius:16px;padding:.72rem 1.05rem}
.btn-primary{background:linear-gradient(135deg,#2563eb,#4f7df3);border-color:#2563eb;box-shadow:0 10px 20px rgba(37,99,235,.16)}
.btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#356de8);border-color:#1d4ed8}
.btn-success{background:linear-gradient(135deg,#16a34a,#22c55e);border-color:#16a34a;box-shadow:0 10px 20px rgba(22,163,74,.15)}
.btn-light{background:#fff;border:1px solid var(--border);color:#334155}
.btn-outline-primary{border-color:#c7d7fe;color:#1d4ed8;background:#fff}
.btn-outline-primary:hover{background:#edf4ff;color:#1d4ed8;border-color:#b8c9fb}
.btn-outline-danger{border-color:#fecaca;color:#b91c1c;background:#fff}
.btn-outline-secondary{border-color:#d7dee9;color:#475569;background:#fff}
.form-label{font-size:13px;color:#334155;font-weight:500;margin-bottom:7px}
.form-control,.form-select{
  min-height:44px;border-radius:14px;border:1px solid var(--border-strong);
  background:#fff;color:var(--text);box-shadow:none;font-weight:400;
}
.form-control:focus,.form-select:focus{border-color:#93b4ff;box-shadow:0 0 0 .22rem rgba(37,99,235,.10)}
textarea.form-control{min-height:110px}
.table{vertical-align:middle;color:var(--text)}
.table>:not(caption)>*>*{padding:.78rem .85rem;border-bottom-color:#edf1f7}
.table thead th{
  color:#71809a;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.035em;background:#f8fbff;border-bottom:1px solid var(--border)
}
.table tbody td{font-size:14px;font-weight:400}
.table tbody tr:hover{background:#fbfdff}
.table strong{font-weight:600;color:var(--heading)}
.badge{border-radius:999px;padding:.52em .75em;font-weight:500}
.badge-soft-success{background:#dcfce7;color:#15803d}
.badge-soft-danger{background:#fee2e2;color:#b91c1c}
.badge-soft-warning{background:#fef3c7;color:#a16207}
.badge-soft-info{background:#e0f2fe;color:#0369a1}
.badge-soft-muted{background:#eef2f7;color:#64748b}
.badge-soft-dark{background:#e9eef5;color:#334155}
.alert-item,.doc-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.alert-item{justify-content:space-between}
.alert-item:last-child,.doc-row:last-child{border-bottom:0}
.alert-item span{font-size:12px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;border-radius:999px;padding:5px 9px;font-weight:500}
.doc-row i{font-size:22px;color:var(--primary)}
.current-session{padding:16px;border-radius:18px;background:#ecfdf5;border:1px solid #bbf7d0}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;min-height:220px;padding:26px;border:1px dashed #cbd5e1;border-radius:22px;background:#fbfdff;color:var(--muted)}
.empty-state.small{min-height:135px}
.empty-state i{font-size:36px;color:#c5cedb}.empty-state strong{color:var(--heading);font-weight:600}
.pagination .page-link{border-radius:10px;margin:0 2px;border:1px solid var(--border);color:var(--primary)}.pagination .active .page-link{background:var(--primary);border-color:var(--primary)}

/* Admin / folders */
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.folder-card{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid var(--border);border-radius:20px;background:#fff;box-shadow:0 8px 18px rgba(34,48,80,.04)}
.folder-card i{font-size:30px;color:#f59e0b}.folder-card strong{font-weight:600;color:var(--heading)}.folder-card small{color:var(--muted)}
.admin-card{display:flex;flex-direction:column;gap:9px;min-height:156px;padding:22px;text-decoration:none;color:var(--text);transition:.18s ease}
.admin-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);color:#1d4ed8}
.admin-card i{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;color:var(--primary);background:#edf4ff;font-size:25px}.admin-card strong{font-size:18px;font-weight:600;color:var(--heading)}.admin-card span{color:var(--muted);font-weight:400}
.error-card{max-width:760px;margin:30px auto}.error-icon{width:76px;height:76px;border-radius:24px;margin:0 auto 14px;background:#fef2f2;color:#dc2626;display:grid;place-items:center;font-size:32px}

/* Login */
.auth-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 12% 18%,rgba(37,99,235,.20),transparent 30%),
    radial-gradient(circle at 88% 0%,rgba(20,184,166,.16),transparent 28%),
    linear-gradient(135deg,#eef5ff 0%,#f9fbff 52%,#f6f8fc 100%);
}
.auth-container{width:100%;max-width:1180px;padding:28px}
.auth-split{
  display:grid;grid-template-columns:1.02fr .98fr;min-height:690px;overflow:hidden;
  border-radius:34px;background:#fff;border:1px solid rgba(226,232,240,.9);box-shadow:0 30px 80px rgba(34,48,80,.12)
}
.auth-visual{
  position:relative;overflow:hidden;padding:44px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;
  background:linear-gradient(140deg,#1d4ed8 0%,#2563eb 44%,#14b8a6 110%);
}
.auth-visual:before,.auth-visual:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.13)}
.auth-visual:before{width:280px;height:280px;right:-70px;top:-80px}.auth-visual:after{width:220px;height:220px;left:-90px;bottom:70px}
.auth-visual>*{position:relative;z-index:1}
.auth-visual-logo{display:flex;align-items:center;gap:12px}.auth-visual-logo .brand-icon{background:rgba(255,255,255,.16);box-shadow:none;border:1px solid rgba(255,255,255,.2)}
.auth-visual h1{font-size:42px;line-height:1.06;font-weight:600;letter-spacing:-.055em;margin:22px 0 12px}.auth-visual p{font-size:17px;color:#dbeafe;max-width:460px;margin:0}
.auth-illustration{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px;max-width:420px}.auth-mini-card{padding:16px;border-radius:20px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}.auth-mini-card i{font-size:22px;margin-bottom:10px}.auth-mini-card strong{display:block;font-weight:600}.auth-mini-card span{display:block;color:#dbeafe;font-size:13px;margin-top:3px}
.auth-form-panel{display:flex;align-items:center;justify-content:center;padding:44px}.auth-card{width:100%;max-width:460px;text-align:left}.auth-logo{width:72px;height:72px;border-radius:24px;background:#edf4ff;color:var(--primary);display:grid;place-items:center;font-size:31px;margin-bottom:20px}.auth-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#edf4ff;color:#1d4ed8;border:1px solid #dbeafe;font-size:12px;font-weight:500}.auth-card h1{font-size:34px;font-weight:600;letter-spacing:-.045em;color:var(--heading);margin:12px 0 6px}.auth-card p{color:var(--muted);margin:0}.demo-box{background:#f8fbff;border:1px solid var(--border);border-radius:18px;padding:14px;font-size:13px;color:#64748b}.input-icon-wrap{position:relative}.input-icon-wrap i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#8a97aa}.input-icon-wrap .form-control{padding-left:44px}

/* Sales POS modern soft */
.sales-lock-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:18px;padding:16px 18px;margin-bottom:18px}
.sales-pos-shell{display:flex;flex-direction:column;gap:18px}
.sales-hero-card{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:22px;
  border-radius:28px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 52%,#eef5ff 100%);
  border:1px solid var(--border);box-shadow:var(--shadow-soft)
}
.sales-eyebrow{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#edf4ff;color:#1d4ed8;border:1px solid #dbeafe;font-size:12px;font-weight:500}.sales-hero-card h2{font-size:31px;font-weight:600;letter-spacing:-.04em;color:var(--heading);margin:10px 0 4px}.sales-hero-card p{color:var(--muted);margin:0}.sales-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sales-cash-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#ecfdf5;border:1px solid #bbf7d0;color:#047857}.sales-cash-chip.warning{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.sales-cash-chip i{font-size:20px}.sales-cash-chip small{display:block;font-size:12px;color:inherit;opacity:.8}.sales-cash-chip strong{display:block;font-weight:600;color:inherit}.sales-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.sales-kpi-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:20px;padding:16px;box-shadow:0 8px 20px rgba(34,48,80,.05)}.sales-kpi-card i{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#edf4ff;color:var(--primary)}.sales-kpi-card span{display:block;font-size:12px;color:var(--muted)}.sales-kpi-card strong{font-size:20px;font-weight:600;color:var(--heading)}.sales-kpi-card.danger i{background:#fff7ed;color:#ea580c}
.sales-panel{padding:18px}.sales-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.sales-panel-header.compact{margin-bottom:14px}.sales-panel-header p{margin:4px 0 0;color:var(--muted);font-size:13px}.sales-mini-badge{white-space:nowrap;display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;background:#f3f6fb;color:#64748b;border:1px solid var(--border);font-size:12px;font-weight:500}.sales-mini-badge.primary{background:#edf4ff;color:#1d4ed8;border-color:#dbeafe}.product-panel{min-height:680px}.sales-search-box{display:grid;grid-template-columns:42px 1fr 44px;align-items:center;gap:0;border:1px solid var(--border-strong);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 18px rgba(34,48,80,.04)}.sales-search-box>i{display:grid;place-items:center;color:#8a97aa}.sales-search-box .form-control{border:0;border-radius:0;min-height:54px;box-shadow:none}.sales-search-box .btn{height:44px;width:40px;margin-right:6px;border-radius:13px}.sales-products-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.sales-filter-pill{border:1px solid var(--border);background:#fff;color:#64748b;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:500;transition:.16s}.sales-filter-pill:hover{background:#f8fbff}.sales-filter-pill.active{background:#edf4ff;border-color:#c7d7fe;color:#1d4ed8}.sales-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px;max-height:590px;overflow:auto;padding:2px 4px 2px 0}.sales-product-card{display:grid;grid-template-columns:44px 1fr;gap:11px;align-items:start;text-align:left;border:1px solid var(--border);border-radius:20px;background:#fff;padding:14px;cursor:pointer;transition:.16s ease;color:var(--text);box-shadow:0 8px 18px rgba(34,48,80,.04)}.sales-product-card:hover{transform:translateY(-2px);border-color:#c7d7fe;box-shadow:0 14px 28px rgba(37,99,235,.10)}.sales-product-card.selected{border-color:#93b4ff;background:#f8fbff}.sales-product-card.out-stock{opacity:.55;cursor:not-allowed;background:#f8fafc}.sales-product-card.low-stock{border-color:#fed7aa}.sales-product-icon{width:42px;height:42px;border-radius:16px;background:#edf4ff;color:var(--primary);display:grid;place-items:center}.sales-product-card.low-stock .sales-product-icon{background:#fff7ed;color:#ea580c}.sales-product-card.out-stock .sales-product-icon{background:#f1f5f9;color:#94a3b8}.sales-product-info{min-width:0}.sales-product-info strong{display:block;font-size:14px;font-weight:500;line-height:1.25;color:var(--heading);margin-bottom:4px}.sales-product-info small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sales-product-meta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #eef2f7}.sales-product-meta .price{font-weight:600;color:var(--primary)}.sales-product-meta .stock{font-size:12px;font-weight:500;border-radius:999px;padding:5px 8px;background:#ecfdf5;color:#15803d}.sales-product-meta .stock.low{background:#fff7ed;color:#ea580c}.sales-product-meta .stock.zero{background:#f1f5f9;color:#64748b}.sales-cart-panel{position:sticky;top:100px}.sales-customer-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.sales-cart-items{min-height:280px;max-height:360px;overflow:auto;border:1px dashed #cbd5e1;border-radius:20px;background:linear-gradient(180deg,#fbfdff,#fff);padding:12px}.sales-empty-cart{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:7px}.sales-empty-cart i{font-size:34px;color:#c8d2df}.sales-empty-cart strong{color:var(--heading);font-weight:600}.sales-cart-row{display:grid;grid-template-columns:1fr 132px 92px 34px;gap:8px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:16px;padding:10px;margin-bottom:9px;box-shadow:0 8px 18px rgba(34,48,80,.035)}.cart-product-title{min-width:0}.cart-product-title strong{display:block;font-size:14px;font-weight:500;color:var(--heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-product-title small{display:block;font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-qty-control{display:grid;grid-template-columns:32px 1fr 32px;gap:4px}.cart-qty-control .btn{height:34px;padding:0;border-radius:11px}.cart-qty-control input{text-align:center;min-height:34px;padding:4px;border-radius:11px;font-weight:500}.cart-line-total{text-align:right;font-weight:600;color:var(--heading)}.sales-payment-box{margin-top:14px;background:#f8fbff;border:1px solid var(--border);border-radius:22px;padding:14px}.sales-summary-lines{display:flex;flex-direction:column;gap:8px;margin:14px 0}.sales-summary-lines div{display:flex;align-items:center;justify-content:space-between;font-size:14px}.sales-summary-lines span{color:var(--muted)}.sales-summary-lines strong{font-weight:600;color:var(--heading)}.sale-total{display:flex;justify-content:space-between;align-items:center;border-radius:18px;padding:18px}.sale-total.upgraded{background:linear-gradient(135deg,#edf4ff,#f8fbff);border:1px solid #dbeafe}.sale-total span{font-weight:500;color:#1e3a8a}.sale-total strong{font-size:30px;color:var(--primary);font-weight:650;letter-spacing:-.035em}.sales-action-grid{display:grid;grid-template-columns:150px 1fr;gap:10px;margin-top:14px}.sales-action-grid .btn{min-height:54px;border-radius:16px}

/* Responsive */
@media(max-width:1200px){.sales-cart-panel{position:relative;top:auto}.product-panel{min-height:auto}.sales-product-grid{max-height:500px}.sales-cart-items{max-height:420px}}
@media(max-width:992px){
  .sidebar{transform:translateX(-112%);transition:.22s ease;inset:12px auto 12px 12px;width:270px}
  .sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-toggle{display:grid;place-items:center}
  .mobile-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:950;opacity:0;pointer-events:none;transition:.2s}
  .sidebar-open .mobile-backdrop{opacity:1;pointer-events:auto}
  .app-main{margin-left:0;width:100%}
  .topbar{padding:16px 18px;min-height:76px}
  .content-wrap{padding:18px}
  .page-hero{align-items:flex-start;flex-direction:column}.hero-actions{width:100%;justify-content:flex-start}.topbar-right .topbar-chip{display:none!important}
  .auth-split{grid-template-columns:1fr}.auth-visual{display:none}.auth-form-panel{padding:34px}.auth-container{max-width:540px}
}
@media(max-width:768px){
  .topbar{align-items:flex-start}.topbar-left{align-items:flex-start}.topbar-right{gap:8px}.user-menu form,.user-menu a.btn{display:none}.topbar h1{font-size:21px}.page-hero h2,.sales-hero-card h2{font-size:28px}.sales-hero-card{align-items:flex-start;flex-direction:column}.sales-hero-actions{width:100%;justify-content:stretch}.sales-cash-chip,.sales-history-btn{width:100%}.sales-kpi-grid{grid-template-columns:1fr}.sales-customer-payment-grid{grid-template-columns:1fr}.sales-product-grid{grid-template-columns:1fr}.sales-cart-row{grid-template-columns:1fr;gap:10px}.cart-qty-control{width:140px}.cart-line-total{text-align:left}.sales-action-grid{grid-template-columns:1fr}.sales-lock-alert{align-items:flex-start;flex-direction:column}.card-title-row{flex-direction:column;align-items:flex-start}.metric-card{min-height:112px}.metric-card h2{font-size:28px}.auth-form-panel{padding:26px}.auth-card h1{font-size:30px}
}

/* =========================================================
   MPCConnectPro style chrome - dark sidebar + dark navbar
   Solo cambia la terminación visual del menú lateral y superior.
   ========================================================= */
:root{
  --chrome:#061326;
  --chrome-2:#0a1f3f;
  --chrome-3:#0f2d59;
  --chrome-border:rgba(148,163,184,.18);
  --chrome-text:#eaf2ff;
  --chrome-muted:#93a4bd;
  --chrome-accent:#3b82f6;
  --chrome-accent-2:#22d3ee;
}

.sidebar{
  color:var(--chrome-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(59,130,246,.28), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(34,211,238,.13), transparent 30%),
    linear-gradient(180deg,#08152c 0%,#071224 48%,#050b18 100%);
  border:1px solid var(--chrome-border);
  box-shadow:0 26px 70px rgba(2,8,23,.30);
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.35) transparent;
}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:999px}
.brand-box{
  margin-bottom:14px;
  padding:6px 4px 16px;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.brand-link{color:#fff}
.brand-icon{
  background:linear-gradient(135deg,#2563eb 0%,#38bdf8 55%,#22c55e 130%);
  box-shadow:0 18px 34px rgba(37,99,235,.28);
}
.brand-title{color:#fff;font-weight:650}
.brand-subtitle{color:#9fb1cb;font-weight:400}
.sidebar-mini-card{
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(37,99,235,.20),rgba(14,165,233,.08));
  border:1px solid rgba(147,197,253,.16);
  margin-bottom:14px;
}
.mini-card-icon{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  color:#bfdbfe;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.sidebar-mini-card strong{display:block;font-size:13px;font-weight:600;color:#f8fbff}
.sidebar-mini-card span{display:block;font-size:12px;color:#9fb1cb;line-height:1.3;margin-top:2px}
.sidebar-section-label{
  margin:16px 10px 8px;
  color:#72829a;
  font-size:10.5px;
  font-weight:650;
  letter-spacing:.12em;
}
.sidebar-nav{gap:5px}
.sidebar .nav-link{
  min-height:43px;
  color:#c6d1e2;
  border:1px solid transparent;
  background:transparent;
  font-weight:450;
  letter-spacing:-.01em;
}
.sidebar .nav-link i{
  color:#9fb1cb;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.05);
}
.sidebar .nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.07);
  transform:translateX(2px);
}
.sidebar .nav-link:hover i{
  color:#bfdbfe;
  background:rgba(59,130,246,.18);
}
.sidebar .nav-link.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(37,99,235,.92),rgba(14,165,233,.62));
  border-color:rgba(147,197,253,.28);
  box-shadow:0 14px 26px rgba(37,99,235,.22);
}
.sidebar .nav-link.active:before{
  left:8px;top:10px;bottom:10px;width:3px;
  background:#fff;
  opacity:.75;
  border-radius:999px;
}
.sidebar .nav-link.active i{
  color:#fff;
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.16);
}
.sidebar-footer{
  margin-top:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid rgba(148,163,184,.16);
  box-shadow:none;
}
.sidebar-footer-icon{
  color:#93c5fd;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(147,197,253,.12);
}
.sidebar-footer strong{color:#f8fbff;font-weight:600}
.sidebar-footer span{color:#96a7c0;font-weight:400}

.topbar{
  margin:16px 30px 0;
  min-height:78px;
  padding:16px 20px;
  border-radius:24px;
  color:#fff;
  background:
    radial-gradient(circle at 10% 0%,rgba(59,130,246,.28),transparent 32%),
    radial-gradient(circle at 95% 20%,rgba(34,211,238,.14),transparent 34%),
    linear-gradient(135deg,#07162e 0%,#0a1f3f 54%,#071427 100%);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 20px 50px rgba(2,8,23,.20);
  backdrop-filter:blur(18px);
}
.page-kicker{color:#8fb0d7;font-weight:450}
.page-kicker i{color:#60a5fa}
.topbar h1{color:#f8fbff;font-weight:550;letter-spacing:-.03em}
.sidebar-toggle{
  background:rgba(255,255,255,.08);
  color:#eaf2ff;
  border-color:rgba(255,255,255,.12);
  box-shadow:none;
}
.sidebar-toggle:hover{background:rgba(255,255,255,.14)}
.topbar-chip{
  color:#c7f9e9;
  background:rgba(16,185,129,.12);
  border:1px solid rgba(52,211,153,.25);
  font-weight:450;
}
.user-menu{
  padding:8px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.user-avatar{
  color:#dbeafe;
  background:rgba(59,130,246,.18);
  border:1px solid rgba(147,197,253,.22);
}
.user-menu strong{color:#fff;font-weight:550}
.user-menu small{color:#9fb1cb;font-weight:400}
.btn-topbar-exit,
.btn-topbar-login{
  color:#eaf2ff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  font-weight:500;
}
.btn-topbar-exit:hover,
.btn-topbar-login:hover{
  color:#fff;
  background:rgba(59,130,246,.28);
  border-color:rgba(147,197,253,.28);
}
.content-wrap{padding-top:22px}

@media(max-width:992px){
  .topbar{margin:12px 18px 0;padding:15px 16px;border-radius:21px}
  .sidebar{background:linear-gradient(180deg,#08152c 0%,#071224 52%,#050b18 100%)}
}
@media(max-width:768px){
  .topbar{margin:10px 12px 0;min-height:72px}
  .user-menu{background:transparent;border:0;padding:0}
}

/* Active branch context */
.topbar-branch-chip{
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:8px 14px;
  border-radius:18px;
  color:#eaf2ff;
  text-decoration:none;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:.18s ease;
}
.topbar-branch-chip:hover{ color:#fff; background:rgba(255,255,255,.13); transform:translateY(-1px); }
.topbar-branch-chip > i:first-child{
  width:30px;height:30px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#3b82f6,#0ea5e9);
  color:#fff;
}
.topbar-branch-chip span{ display:flex; flex-direction:column; line-height:1.1; min-width:0; }
.topbar-branch-chip small{ font-size:10px; color:#aebbd1; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.topbar-branch-chip strong{ font-size:13px; font-weight:700; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.branch-auth-container{ min-height:100vh; align-items:center; justify-content:center; padding:28px; }
.branch-select-shell{ width:min(980px,100%); margin:auto; }
.branch-select-card{
  width:100%;
  border-radius:34px;
  padding:34px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(224,233,246,.95);
  box-shadow:0 28px 70px rgba(15,35,75,.14);
}
.branch-select-head{ text-align:center; max-width:660px; margin:0 auto 26px; }
.branch-select-head h1{ margin:12px 0 8px; color:#10203b; letter-spacing:-.04em; font-weight:750; }
.branch-select-head p{ margin:0; color:#64748b; line-height:1.55; }
.branch-options-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; }
.branch-option{
  position:relative;
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:18px;
  border:1px solid #dfe8f4;
  border-radius:24px;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
  min-height:124px;
}
.branch-option:hover{ border-color:#b9cbed; box-shadow:0 18px 34px rgba(15,35,75,.08); transform:translateY(-1px); }
.branch-option.selected{ border-color:#8bb2ff; background:linear-gradient(180deg,#f7fbff,#fff); box-shadow:0 18px 36px rgba(29,78,216,.10); }
.branch-option.disabled{ opacity:.45; cursor:not-allowed; filter:grayscale(.25); }
.branch-option input{ position:absolute; opacity:0; pointer-events:none; }
.branch-option-icon{
  width:46px;height:46px;border-radius:17px;
  display:flex;align-items:center;justify-content:center;
  background:#eef5ff;color:#2563eb;font-size:18px;flex:0 0 auto;
}
.branch-option-content{ min-width:0; display:flex; flex-direction:column; gap:4px; }
.branch-option-content strong{ color:#10203b; font-size:16px; font-weight:750; }
.branch-option-content span{ color:#2563eb; font-size:12px; font-weight:800; }
.branch-option-content small{ color:#64748b; line-height:1.35; }
.branch-default-badge{
  position:absolute; top:14px; right:14px;
  border-radius:999px;
  padding:5px 10px;
  background:#ecfdf5;
  color:#067647;
  font-size:11px;
  font-weight:800;
}
.user-branch-list{ display:flex; flex-wrap:wrap; gap:6px; }

/* =========================================================
   MPCConnectPro exact style - sidebar + navbar
   Reestablece el menú vertical profesional y el navbar oscuro.
   ========================================================= */
:root{
  --mpc-navy-950:#04101f;
  --mpc-navy-900:#07182f;
  --mpc-navy-850:#092144;
  --mpc-navy-800:#0d2a55;
  --mpc-blue:#2563eb;
  --mpc-blue-2:#38bdf8;
  --mpc-green:#22c55e;
  --mpc-chrome-text:#eef6ff;
  --mpc-chrome-soft:#9fb2cd;
  --mpc-chrome-muted:#6f819d;
  --mpc-chrome-border:rgba(148,163,184,.16);
  --sidebar-w:286px;
}

.app-shell{background:transparent;display:flex;min-height:100vh;}
.app-main{
  margin-left:var(--sidebar-w) !important;
  width:calc(100% - var(--sidebar-w)) !important;
  min-height:100vh;
}
.content-wrap{padding:24px 30px 38px;}

.sidebar.mpc-sidebar{
  position:fixed !important;
  inset:0 auto 0 0 !important;
  width:var(--sidebar-w) !important;
  height:100vh !important;
  padding:18px 16px !important;
  overflow:auto !important;
  color:var(--mpc-chrome-text) !important;
  background:
    radial-gradient(circle at 0% 0%,rgba(37,99,235,.26),transparent 28%),
    radial-gradient(circle at 100% 18%,rgba(56,189,248,.13),transparent 30%),
    linear-gradient(180deg,var(--mpc-navy-900) 0%,#061426 44%,var(--mpc-navy-950) 100%) !important;
  border:0 !important;
  border-right:1px solid var(--mpc-chrome-border) !important;
  border-radius:0 !important;
  box-shadow:18px 0 45px rgba(2,8,23,.20) !important;
  z-index:1000 !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.35) transparent;
}
.sidebar.mpc-sidebar::-webkit-scrollbar{width:6px;}
.sidebar.mpc-sidebar::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:999px;}

.mpc-brand{
  display:block !important;
  padding:4px 4px 18px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(148,163,184,.14);
}
.mpc-brand-link{
  display:flex !important;
  align-items:center;
  gap:12px;
  color:#fff !important;
  text-decoration:none !important;
}
.mpc-brand-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:21px;
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 48%,#38bdf8 100%);
  box-shadow:0 16px 32px rgba(37,99,235,.32);
  flex:0 0 auto;
}
.mpc-brand-text{min-width:0;}
.mpc-brand-text strong{
  display:block;
  font-size:19px;
  line-height:1.05;
  font-weight:650;
  letter-spacing:-.035em;
  color:#fff;
}
.mpc-brand-text span{
  display:block;
  margin-top:4px;
  color:#9fb2cd;
  font-size:12px;
  font-weight:400;
}

.mpc-sidebar-status{
  display:flex !important;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  margin:0 0 16px;
  border-radius:17px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid rgba(148,163,184,.13);
}
.mpc-status-dot{
  width:38px;
  height:38px;
  border-radius:14px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.22);
  position:relative;
  flex:0 0 auto;
}
.mpc-status-dot:after{
  content:"";
  position:absolute;
  inset:13px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.10);
}
.mpc-sidebar-status strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:550;
}
.mpc-sidebar-status span{
  display:block;
  margin-top:2px;
  color:#93a6c0;
  font-size:12px;
  line-height:1.25;
}

.mpc-menu{
  display:flex !important;
  flex-direction:column !important;
  gap:15px !important;
  width:100% !important;
}
.mpc-menu-group{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  width:100% !important;
}
.mpc-menu-title{
  display:block !important;
  margin:0 10px 7px;
  color:#7284a0;
  font-size:10.5px;
  font-weight:650;
  line-height:1;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.mpc-nav-link{
  position:relative;
  min-height:44px;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  gap:11px;
  padding:9px 11px;
  border-radius:14px;
  color:#c7d4e7 !important;
  border:1px solid transparent;
  font-size:14px;
  font-weight:430;
  letter-spacing:-.01em;
  text-decoration:none !important;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.mpc-nav-link:before{
  content:"";
  position:absolute;
  left:7px;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:999px;
  background:transparent;
  transition:.16s ease;
}
.mpc-nav-icon{
  width:30px;
  height:30px;
  border-radius:11px;
  display:grid !important;
  place-items:center;
  flex:0 0 30px;
  color:#9fb2cd;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.055);
  font-size:13px;
  transition:.16s ease;
}
.mpc-nav-text{
  display:block !important;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mpc-nav-link:hover{
  color:#fff !important;
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.mpc-nav-link:hover .mpc-nav-icon{
  color:#dbeafe;
  background:rgba(37,99,235,.20);
  border-color:rgba(147,197,253,.16);
}
.mpc-nav-link.active{
  color:#fff !important;
  background:linear-gradient(135deg,rgba(37,99,235,.96),rgba(14,165,233,.68));
  border-color:rgba(147,197,253,.28);
  box-shadow:0 13px 28px rgba(37,99,235,.24);
}
.mpc-nav-link.active:before{background:rgba(255,255,255,.82);}
.mpc-nav-link.active .mpc-nav-icon{
  color:#fff;
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.16);
}

.mpc-sidebar-footer{
  margin-top:18px;
  display:flex !important;
  align-items:center;
  gap:11px;
  padding:13px;
  border-radius:17px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(148,163,184,.14);
}
.mpc-footer-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#bfdbfe;
  background:rgba(37,99,235,.18);
  border:1px solid rgba(147,197,253,.14);
  flex:0 0 auto;
}
.mpc-sidebar-footer strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:550;
}
.mpc-sidebar-footer span{
  display:block;
  margin-top:2px;
  color:#93a6c0;
  font-size:12px;
  line-height:1.25;
}

.topbar.mpc-topbar{
  position:sticky;
  top:0;
  z-index:900;
  min-height:74px;
  margin:0 !important;
  padding:13px 28px;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#fff;
  background:
    radial-gradient(circle at 6% 0%,rgba(37,99,235,.22),transparent 25%),
    linear-gradient(135deg,#07182f 0%,#0a1f3f 58%,#061426 100%) !important;
  border:0 !important;
  border-bottom:1px solid rgba(148,163,184,.16) !important;
  border-radius:0 !important;
  box-shadow:0 12px 28px rgba(2,8,23,.14);
  backdrop-filter:blur(16px);
}
.mpc-topbar-left,
.mpc-topbar-right{
  display:flex !important;
  align-items:center;
  gap:13px;
  min-width:0;
}
.mpc-page-title{min-width:0;}
.mpc-page-system{
  display:flex;
  align-items:center;
  gap:7px;
  color:#8fb0d7;
  font-size:12px;
  font-weight:430;
  line-height:1;
}
.mpc-page-system i{color:#60a5fa;}
.mpc-page-title h1{
  margin:4px 0 0;
  color:#f8fbff;
  font-size:23px;
  line-height:1.15;
  font-weight:560;
  letter-spacing:-.035em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sidebar-toggle.mpc-sidebar-toggle{
  display:none;
  width:43px;
  height:43px;
  border-radius:14px;
  color:#eaf2ff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.sidebar-toggle.mpc-sidebar-toggle:hover{background:rgba(255,255,255,.14);}
.mpc-topbar-pill,
.mpc-branch-pill{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 12px;
  border-radius:999px;
  white-space:nowrap;
  text-decoration:none !important;
}
.mpc-topbar-pill{
  color:#bbf7d0;
  background:rgba(22,163,74,.11);
  border:1px solid rgba(74,222,128,.22);
  font-size:13px;
  font-weight:430;
}
.mpc-topbar-pill i{font-size:12px;color:#4ade80;}
.mpc-branch-pill{
  color:#eaf2ff !important;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.11);
  max-width:270px;
}
.mpc-branch-pill:hover{
  color:#fff !important;
  background:rgba(255,255,255,.10);
  transform:translateY(-1px);
}
.mpc-branch-icon{
  width:34px;
  height:34px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:rgba(37,99,235,.22);
  border:1px solid rgba(147,197,253,.20);
  color:#bfdbfe;
  flex:0 0 auto;
}
.mpc-branch-text{display:flex;flex-direction:column;line-height:1.1;min-width:0;}
.mpc-branch-text small{font-size:10px;color:#9fb2cd;font-weight:650;text-transform:uppercase;letter-spacing:.08em;}
.mpc-branch-text strong{font-size:13px;color:#fff;font-weight:560;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mpc-branch-arrow{font-size:11px;color:#9fb2cd;}
.mpc-user-card{
  display:flex !important;
  align-items:center;
  gap:10px;
  padding:7px 10px 7px 7px;
  border-radius:17px;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.10);
}
.mpc-user-avatar{
  width:39px;
  height:39px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#dbeafe;
  background:rgba(37,99,235,.22);
  border:1px solid rgba(147,197,253,.22);
  flex:0 0 auto;
}
.mpc-user-info{text-align:right;line-height:1.15;}
.mpc-user-info strong{
  display:block;
  max-width:180px;
  color:#fff;
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mpc-user-info span{
  display:block;
  margin-top:3px;
  color:#9fb2cd;
  font-size:12px;
  font-weight:400;
  white-space:nowrap;
}
.mpc-logout-btn{
  min-height:38px;
  display:inline-flex !important;
  align-items:center;
  gap:7px;
  color:#eaf2ff !important;
  background:rgba(255,255,255,.075) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  border-radius:13px;
  font-weight:500;
  box-shadow:none;
}
.mpc-logout-btn:hover{
  color:#fff !important;
  background:rgba(37,99,235,.28) !important;
  border-color:rgba(147,197,253,.26) !important;
}

.sidebar .nav-link{display:none !important;}
.sidebar .sidebar-section-label,
.sidebar .sidebar-mini-card,
.sidebar .sidebar-footer{display:none!important;}

@media(max-width:992px){
  .sidebar.mpc-sidebar{
    width:280px !important;
    transform:translateX(-106%);
    transition:transform .22s ease;
    box-shadow:24px 0 60px rgba(2,8,23,.34) !important;
  }
  .sidebar-open .sidebar.mpc-sidebar{transform:translateX(0);}
  .app-main{margin-left:0 !important;width:100% !important;}
  .sidebar-toggle.mpc-sidebar-toggle{display:grid;place-items:center;flex:0 0 auto;}
  .topbar.mpc-topbar{min-height:72px;padding:13px 18px;}
  .content-wrap{padding:18px;}
}
@media(max-width:768px){
  .topbar.mpc-topbar{padding:12px 14px;gap:10px;}
  .mpc-page-title h1{font-size:20px;max-width:52vw;}
  .mpc-page-system{font-size:11px;}
  .mpc-user-card{padding:6px;background:transparent;border-color:transparent;}
  .mpc-user-avatar{width:37px;height:37px;}
  .mpc-logout-btn{width:38px;height:38px;padding:0;justify-content:center;}
}

/* Menú lateral reorganizado por flujos de trabajo */
.mpc-menu{gap:9px !important;}
.mpc-menu-group{
  gap:5px !important;
  padding-top:11px;
  border-top:1px solid rgba(148,163,184,.10);
}
.mpc-menu-group-first{
  padding-top:0;
  border-top:0;
}
.mpc-menu-title{
  display:flex !important;
  align-items:center;
  gap:7px;
  margin:0 9px 6px;
  color:#8293ad;
  letter-spacing:.09em;
}
.mpc-menu-title-icon{
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#93c5fd;
  background:rgba(59,130,246,.11);
  border:1px solid rgba(147,197,253,.09);
  font-size:8px;
  flex:0 0 auto;
}
.mpc-menu-links{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.mpc-nav-link{min-height:41px;padding:7px 10px;}
.mpc-nav-icon{width:28px;height:28px;flex-basis:28px;border-radius:10px;}
.mpc-nav-link.active .mpc-nav-text{font-weight:600;}
