/* ============================================================
   OGECT ERP - Centralized Theme Stylesheet
   ------------------------------------------------------------
   Brand colors extracted directly from ogect.com official
   WordPress theme (wp-content/themes/ogect-wp/style.css).
   Edit values here to re-skin the whole application.
   ============================================================ */

:root {
  /* --- Brand colors (OGECT identity) --- */
  --primary-navy:      #07132b;   /* Main brand navy */
  --primary-dark:      #050d1f;   /* Darker navy, used on topbar/footer */
  --navy-surface:      #0e1e3e;   /* Card/section on dark backgrounds */
  --navy-card:         #132448;   /* Elevated card surface */
  --navy-border:       rgba(255, 255, 255, 0.10);

  /* --- Accent palette (oil & gas / industrial) --- */
  --accent-orange:     #ff6a00;   /* Primary action color */
  --accent-orange-hover:#e55a00;
  --accent-gold:       #ffa600;   /* Highlights, badges */
  --accent-cyan:       #00b4d8;   /* Info / links */
  --accent-blue:       #0077b6;   /* Secondary blue */
  --accent-green:      #10b981;   /* Success */
  --accent-red:        #ef4444;   /* Danger */
  --accent-yellow:     #f59e0b;   /* Warning */
  --accent-glow:       rgba(255, 106, 0, 0.35);

  /* --- Text --- */
  --text-main:         #1e293b;   /* Default body text on light bg */
  --text-muted:        #64748b;   /* Secondary text */
  --text-light:        #f1f5f9;   /* Text on dark bg */
  --text-dim:          #94a3b8;   /* Subtle text on dark bg */

  /* --- Backgrounds --- */
  --bg-light:          #f8fafc;
  --bg-white:          #ffffff;
  --bg-dark:           #081226;
  --bg-slate-50:       #f1f5f9;
  --bg-slate-100:      #e2e8f0;
  --bg-slate-200:      #cbd5e1;

  /* --- Typography --- */
  --font-heading:      'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Shadows --- */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:    0 8px 24px rgba(7, 19, 43, 0.08);
  --shadow-lg:    0 16px 40px rgba(7, 19, 43, 0.14);
  --shadow-dark:  0 20px 45px rgba(0, 0, 0, 0.40);
  --shadow-glow:  0 0 30px rgba(255, 106, 0, 0.25);

  /* --- Radii --- */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  9999px;

  /* --- Transitions --- */
  --t-fast:   0.2s ease;
  --t-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow:   0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Base reset & body --- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-light);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: var(--accent-blue); }

/* ============================================================
   LAYOUT: Sidebar + Topbar + Main
   ============================================================ */
.app-wrap { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: var(--text-light);
  position: fixed; left: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column;
  transition: width var(--t-normal), transform var(--t-normal);
  z-index: 1040;
  border-right: 1px solid var(--navy-border);
}
.app-sidebar.collapsed { width: 72px; }
.app-sidebar .brand {
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--navy-border);
  min-height: 64px;
}
.app-sidebar .brand .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-heading); font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.app-sidebar .brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; overflow: hidden; }
.app-sidebar .brand .brand-text strong { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff; white-space: nowrap; }
.app-sidebar .brand .brand-text small { font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.app-sidebar.collapsed .brand-text { display: none; }

.app-sidebar .nav-section {
  padding: 10px 12px 4px;
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 0.10em; text-transform: uppercase;
}
.app-sidebar.collapsed .nav-section { text-align: center; padding: 10px 0 4px; font-size: 0; }
.app-sidebar.collapsed .nav-section::after { content: '•'; font-size: 12px; }

.app-sidebar .nav-menu { flex: 1; overflow-y: auto; padding: 6px 0 12px; }
.app-sidebar .nav-menu::-webkit-scrollbar { width: 6px; }
.app-sidebar .nav-menu::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 4px; }

.app-sidebar .nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap; overflow: hidden;
}
.app-sidebar .nav-item i { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.app-sidebar .nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.app-sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(255,106,0,0.18) 0%, transparent 100%);
  color: #fff;
  border-left-color: var(--accent-orange);
}
.app-sidebar .nav-item .badge { margin-left: auto; }
.app-sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
.app-sidebar.collapsed .nav-item span:not(.badge),
.app-sidebar.collapsed .nav-item .badge { display: none; }

.app-sidebar .nav-item.parent > .toggle-arrow { margin-left: auto; transition: transform var(--t-fast); }
.app-sidebar .nav-item.parent.expanded > .toggle-arrow { transform: rotate(90deg); }
.app-sidebar.collapsed .toggle-arrow { display: none; }

.app-sidebar .submenu { display: none; background: rgba(0,0,0,0.20); border-left: 3px solid var(--navy-border); margin-left: 18px; }
.app-sidebar .submenu.open { display: block; }
.app-sidebar .submenu .nav-item { padding: 8px 18px 8px 32px; font-size: 12.5px; border-left: none; }
.app-sidebar.collapsed .submenu { display: none !important; }

.app-main {
  margin-left: 260px;
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  transition: margin-left var(--t-normal);
}
.app-sidebar.collapsed ~ .app-main { margin-left: 72px; }

.app-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--bg-slate-100);
  display: flex; align-items: center;
  padding: 0 22px;
  gap: 16px;
  position: sticky; top: 0; z-index: 1020;
  box-shadow: var(--shadow-sm);
}
.btn-icon {
  width: 38px; height: 38px;
  background: transparent; border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: inline-grid; place-items: center;
  cursor: pointer; transition: all var(--t-fast);
  position: relative;
}
.btn-icon:hover { background: var(--bg-slate-50); color: var(--primary-navy); }
.btn-icon .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  border: 2px solid #fff;
}
.global-search { flex: 1; max-width: 480px; position: relative; }
.global-search input {
  width: 100%; height: 40px;
  border: 1px solid var(--bg-slate-100);
  border-radius: var(--radius-full);
  padding: 0 16px 0 40px;
  font-size: 13px; background: var(--bg-slate-50);
  color: var(--text-main); transition: all var(--t-fast);
}
.global-search input:focus {
  outline: none; border-color: var(--accent-orange);
  background: #fff; box-shadow: 0 0 0 3px var(--accent-glow);
}
.global-search i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px;
}
.topbar-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-slate-50);
  cursor: pointer; transition: background var(--t-fast);
}
.user-chip:hover { background: var(--bg-slate-100); }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; font-family: var(--font-heading);
}
.user-chip .meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .meta strong { font-size: 12.5px; color: var(--text-main); font-weight: 600; }
.user-chip .meta small { font-size: 10.5px; color: var(--text-muted); }

.app-content { padding: 22px; flex: 1; }
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--primary-navy); }
.page-header .breadcrumb { font-size: 12px; color: var(--text-muted); margin: 0; }
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header .breadcrumb a:hover { color: var(--accent-orange); }
.page-header .actions { display: flex; gap: 8px; }

/* ============================================================
   COMPONENTS
   ============================================================ */
.card-erp {
  background: #fff; border: 1px solid var(--bg-slate-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-erp .card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--bg-slate-100);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-erp .card-head h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--primary-navy); }
.card-erp .card-head .head-tools { display: flex; align-items: center; gap: 6px; }
.card-erp .card-body { padding: 18px; }
.card-erp .card-foot {
  padding: 12px 18px; border-top: 1px solid var(--bg-slate-100);
  background: var(--bg-slate-50); font-size: 12px; color: var(--text-muted);
}

.stat-card {
  background: #fff; border: 1px solid var(--bg-slate-100);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 20px; color: #fff; flex-shrink: 0;
}
.stat-card .stat-icon.bg-orange { background: linear-gradient(135deg, var(--accent-orange), #ff5100); }
.stat-card .stat-icon.bg-navy   { background: linear-gradient(135deg, var(--primary-navy), var(--navy-card)); }
.stat-card .stat-icon.bg-cyan   { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); }
.stat-card .stat-icon.bg-green  { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card .stat-icon.bg-gold   { background: linear-gradient(135deg, var(--accent-gold), #ff8400); }
.stat-card .stat-icon.bg-slate  { background: linear-gradient(135deg, #475569, #1e293b); }
.stat-card .stat-body { min-width: 0; }
.stat-card .stat-body .label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-card .stat-body .value { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--primary-navy); line-height: 1.2; }
.stat-card .stat-body .delta { font-size: 11.5px; font-weight: 600; }
.stat-card .stat-body .delta.up   { color: var(--accent-green); }
.stat-card .stat-body .delta.down { color: var(--accent-red); }

.btn { font-family: var(--font-body); font-weight: 600; border-radius: var(--radius-sm); font-size: 13px; padding: 8px 16px; transition: all var(--t-fast); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--accent-orange); color: #fff; }
.btn-primary:hover { background: var(--accent-orange-hover); color: #fff; box-shadow: var(--shadow-glow); }
.btn-navy { background: var(--primary-navy); color: #fff; }
.btn-navy:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--text-main); border-color: var(--bg-slate-200); }
.btn-outline:hover { border-color: var(--accent-orange); color: var(--accent-orange); background: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--accent-orange); background: var(--bg-slate-50); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.4;
}
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status.active   { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-status.draft    { background: rgba(148, 163, 184, 0.18); color: #475569; }
.badge-status.pending  { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.badge-status.approved { background: rgba(0, 180, 216, 0.14); color: #0369a1; }
.badge-status.rejected { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.badge-status.paid     { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-status.overdue  { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.badge-status.sent     { background: rgba(0, 119, 182, 0.14); color: #0369a1; }
.badge-status.locked   { background: rgba(7, 19, 43, 0.10); color: var(--primary-navy); }

.table-erp { width: 100%; border-collapse: collapse; }
.table-erp thead th {
  background: var(--bg-slate-50); color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--bg-slate-100); white-space: nowrap;
}
.table-erp tbody td {
  padding: 12px 14px; font-size: 13px;
  border-bottom: 1px solid var(--bg-slate-100);
  vertical-align: middle; color: var(--text-main);
}
.table-erp tbody tr:hover { background: var(--bg-slate-50); }
.table-erp tbody tr:last-child td { border-bottom: 0; }
.table-erp .row-actions { display: flex; gap: 4px; }
.table-erp .row-actions a { color: var(--text-muted); padding: 4px 6px; border-radius: 4px; }
.table-erp .row-actions a:hover { color: var(--accent-orange); background: var(--bg-slate-50); }
.table-erp .user-cell { display: flex; align-items: center; gap: 10px; }
.table-erp .user-cell .avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; font-family: var(--font-heading); flex-shrink: 0;
}

.form-erp .form-label { font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 5px; }
.form-erp .form-control, .form-erp .form-select {
  width: 100%; height: 38px;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px; font-family: var(--font-body);
  color: var(--text-main); background: #fff;
  transition: all var(--t-fast);
}
.form-erp .form-control:focus, .form-erp .form-select:focus {
  outline: none; border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-erp textarea.form-control { height: auto; min-height: 80px; padding: 10px 12px; }
.form-erp .form-text { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-erp .form-required::after { content: ' *'; color: var(--accent-red); }

.nav-tabs-erp {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--bg-slate-100);
  margin-bottom: 18px;
  overflow-x: auto; flex-wrap: nowrap;
}
.nav-tabs-erp .tab-link {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border: none; background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-tabs-erp .tab-link:hover { color: var(--primary-navy); }
.nav-tabs-erp .tab-link.active { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }
.nav-tabs-erp .tab-link .count {
  background: var(--bg-slate-100); color: var(--text-muted);
  padding: 1px 7px; border-radius: var(--radius-full);
  font-size: 10.5px; font-weight: 700;
}
.nav-tabs-erp .tab-link.active .count { background: var(--accent-orange); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Login page --- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-side {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 60%, #153268 100%);
  color: #fff; padding: 50px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(10px);
}
.auth-side::after {
  content: ''; position: absolute; bottom: -160px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.20) 0%, transparent 70%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.auth-side .brand .logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-glow);
}
.auth-side h2 { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.3; max-width: 460px; }
.auth-side p { color: var(--text-dim); max-width: 460px; line-height: 1.7; }
.auth-side .iso-row { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-side .iso-pill {
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px; font-weight: 600; color: var(--text-light);
  letter-spacing: 0.04em;
}
.auth-side .footer { font-size: 11.5px; color: var(--text-dim); }

.auth-form {
  padding: 50px; display: flex; flex-direction: column; justify-content: center;
  max-width: 460px; width: 100%; margin: 0 auto;
}
.auth-form h1 { font-size: 24px; font-weight: 700; color: var(--primary-navy); margin: 0 0 6px; }
.auth-form .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.auth-form .form-control { height: 44px; }
.auth-form .form-options {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; margin: -4px 0 18px;
}
.auth-form .form-options label { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-form .form-options a { color: var(--accent-orange); }
.auth-form .btn { height: 44px; font-size: 14px; }
.auth-form .divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0; color: var(--text-muted); font-size: 11px;
}
.auth-form .divider::before, .auth-form .divider::after { content: ''; flex: 1; height: 1px; background: var(--bg-slate-100); }
.auth-form .footer-line { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 22px; }
.auth-form .footer-line a { color: var(--accent-orange); font-weight: 600; }

.dash-grid { display: grid; gap: 16px; }
.dash-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid .col-span-2 { grid-column: span 2; }
.chart-wrap { position: relative; height: 260px; }

.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--bg-slate-100); font-size: 13px; }
.activity-feed li:last-child { border-bottom: 0; }
.activity-feed .dot {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-slate-50); color: var(--accent-orange);
  display: grid; place-items: center; font-size: 12px;
}
.activity-feed .meta { flex: 1; min-width: 0; }
.activity-feed .meta strong { display: block; color: var(--text-main); font-weight: 600; }
.activity-feed .meta small { color: var(--text-muted); font-size: 11.5px; }

.toast-erp {
  position: fixed; right: 20px; bottom: 20px;
  background: #fff; border-radius: var(--radius-md);
  padding: 12px 16px; min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-orange);
  display: flex; align-items: center; gap: 10px;
  z-index: 1080; font-size: 13px;
  transform: translateY(20px); opacity: 0;
  transition: all var(--t-normal);
}
.toast-erp.show { transform: translateY(0); opacity: 1; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 36px; color: var(--bg-slate-200); margin-bottom: 10px; }
.empty-state h4 { color: var(--text-main); font-size: 15px; margin: 0 0 4px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--bg-slate-100);
  background: var(--bg-slate-50); align-items: center;
}
.toolbar .form-control, .toolbar .form-select { height: 34px; font-size: 12.5px; }
.toolbar .right { margin-left: auto; display: flex; gap: 6px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-heading); font-size: 11.5px; }
.avatar-sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar-lg { width: 44px; height: 44px; font-size: 14px; }
.av-grad-1 { background: linear-gradient(135deg, #ff6a00, #ffa600); }
.av-grad-2 { background: linear-gradient(135deg, #00b4d8, #0077b6); }
.av-grad-3 { background: linear-gradient(135deg, #10b981, #047857); }
.av-grad-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.av-grad-5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.av-grad-6 { background: linear-gradient(135deg, #07132b, #153268); }

.settings-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.settings-nav { background: #fff; border: 1px solid var(--bg-slate-100); border-radius: var(--radius-md); padding: 8px; height: fit-content; }
.settings-nav .item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-main);
  cursor: pointer; transition: all var(--t-fast);
}
.settings-nav .item:hover { background: var(--bg-slate-50); }
.settings-nav .item.active { background: rgba(255,106,0,0.10); color: var(--accent-orange); font-weight: 600; }
.settings-nav .item i { width: 18px; text-align: center; color: var(--text-muted); }
.settings-nav .item.active i { color: var(--accent-orange); }

.perm-matrix { width: 100%; border-collapse: collapse; }
.perm-matrix th, .perm-matrix td { padding: 10px 12px; font-size: 12.5px; border: 1px solid var(--bg-slate-100); text-align: center; }
.perm-matrix th { background: var(--bg-slate-50); color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; }
.perm-matrix td.module { text-align: left; font-weight: 600; color: var(--text-main); background: #fff; }
.perm-matrix .form-check-input { cursor: pointer; }

@media (max-width: 1199px) { .dash-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0 !important; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .settings-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .dash-grid.cols-4, .dash-grid.cols-3, .dash-grid.cols-2 { grid-template-columns: 1fr; }
  .global-search { display: none; }
}
