/* MaxPPI — Onyx Design System
   Ported from MaxPPI-Theme/styles.css + theme variants from index HTML head.
   Loaded by resources/views/layouts/maxppi-base.blade.php
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg: #08090c;
  --bg-1: #0c0e13;
  --surface: #0f1116;
  --surface-2: #14171e;
  --surface-3: #1a1d26;
  --border: #1f232c;
  --border-2: #2a2f3a;
  --hairline: rgba(255,255,255,0.06);
  --nav-bg: rgba(8, 9, 12, 0.72);

  /* Text */
  --text: #e8eaed;
  --text-2: #a8aeb8;
  --text-3: #6b7280;
  --text-4: #4b5260;

  /* Accent — electric cyan */
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-glow: rgba(34, 211, 238, 0.18);
  --accent-soft: rgba(34, 211, 238, 0.08);

  /* Semantic */
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --violet: #a78bfa;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Radius */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Layout */
  --sidebar-w: 240px;
  --topbar-h: 56px;
}

/* Accent variants */
body[data-accent="violet"]  { --accent: #a78bfa; --accent-2: #c4b5fd; --accent-glow: rgba(167,139,250,0.18); --accent-soft: rgba(167,139,250,0.08); }
body[data-accent="emerald"] { --accent: #34d399; --accent-2: #6ee7b7; --accent-glow: rgba(52,211,153,0.18);  --accent-soft: rgba(52,211,153,0.08); }
body[data-accent="amber"]   { --accent: #fbbf24; --accent-2: #fcd34d; --accent-glow: rgba(251,191,36,0.18);  --accent-soft: rgba(251,191,36,0.08); }

/* Light mode */
body[data-theme="light"] {
  --bg: #fafaf9; --bg-1: #f4f4f2; --surface: #ffffff; --surface-2: #f7f7f5; --surface-3: #ededeb;
  --border: #e6e6e3; --border-2: #d4d4d0;
  --text: #0a0a0b; --text-2: #4a4a52; --text-3: #6b7280; --text-4: #9ca3af;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --hairline: rgba(0,0,0,0.06);
  --accent-soft: rgba(8, 145, 178, 0.08);
  --accent-glow: rgba(8, 145, 178, 0.15);
}
body[data-theme="light"] .btn-primary { background: #0a0a0b; color: #fff; border-color: #0a0a0b; }
body[data-theme="light"] .btn-accent  { color: #fff; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
  max-width: 100vw;
}
img, canvas, video { max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Grain texture overlay */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Glow */
.glow-cyan { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 32px var(--accent-glow); }

/* Mono numerals */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}
.btn:hover { border-color: #3a414f; background: rgba(255,255,255,0.03); }
.btn-primary { background: var(--text); color: #000; border-color: var(--text); }
.btn-primary:hover { background: #fff; border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }
.btn-accent { background: var(--accent); color: #001417; border-color: var(--accent); font-weight: 600; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-danger { background: var(--red); color: #1a0606; border-color: var(--red); font-weight: 600; }
.btn-danger:hover { background: #fca5a5; border-color: #fca5a5; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: var(--border-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card-pad { padding: 20px; }
.card-pad-lg { padding: 28px; }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.pill-accent { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.pill-green  { background: rgba(74,222,128,0.08);  border-color: rgba(74,222,128,0.15);  color: var(--green); }
.pill-red    { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.15); color: var(--red); }
.pill-amber  { background: rgba(251,191,36,0.08);  border-color: rgba(251,191,36,0.15);  color: var(--amber); }
.pill-violet { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.15); color: var(--violet); }

/* Live dot */
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Inputs */
.input, .form-control, select.input {
  height: 40px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input:focus, .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .form-control::placeholder { color: var(--text-4); }
textarea.input, textarea.form-control { height: auto; padding: 12px; min-height: 96px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }

/* Tables */
.table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 500; color: var(--text-3); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.table tbody tr:hover { background: var(--surface-2); }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.18); color: var(--green); }
.alert-danger  { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.18); color: var(--red); }
.alert-warning { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.18); color: var(--amber); }
.alert-info    { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

/* Stat tile */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.stat-delta { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.stat-delta.up   { color: var(--green); }
.stat-delta.down { color: var(--red); }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a414f; }

/* Animations */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes tick { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-100%); opacity: 0; } 51% { transform: translateY(100%); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.2, 0, 0, 1) both; }
.spin { animation: spin 0.9s linear infinite; }

/* ================== App shell (sidebar + topbar) ================== */
/* sidebar is position:fixed so .app-shell does NOT need grid — block layout
   prevents .app-main from being auto-placed in the sidebar column. */
.app-shell { display: block; min-height: 100vh; }

/* Sidebar */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 30;
}
.app-sidebar .brand {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600; letter-spacing: -0.025em; font-size: 17px;
}
.app-sidebar .brand .accent-text { color: var(--accent); }
.app-sidebar .nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.app-sidebar .nav-section { margin-top: 14px; padding: 0 10px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-4); }
.app-sidebar .nav-section:first-child { margin-top: 0; }
.app-sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px 0;
  border-radius: var(--r);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.app-sidebar .nav-link i { width: 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.app-sidebar .nav-link:hover { background: var(--surface-2); color: var(--text); }
.app-sidebar .nav-link:hover i { color: var(--text); }
.app-sidebar .nav-link.active { background: var(--accent-soft); color: var(--accent); }
.app-sidebar .nav-link.active i { color: var(--accent); }
.app-sidebar .sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-4); }

/* Topbar */
.app-main { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
}
.app-topbar .page-title { font-size: 14px; font-weight: 500; color: var(--text); }
.app-topbar .crumbs { color: var(--text-3); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.app-topbar .crumbs .sep { opacity: 0.5; }
.app-topbar .spacer { flex: 1; }
.app-topbar .topbar-actions { display: flex; align-items: center; gap: 8px; }
.sidebar-toggle { display: none; }

/* Content area */
.app-content { flex: 1; padding: 24px; }
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.content-header h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.content-header .subtitle { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* Mobile sidebar */
@media (max-width: 960px) {
  :root { --sidebar-w: 0px; }
  .app-sidebar { transform: translateX(-100%); transition: transform 0.2s; width: 260px; z-index: 60; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 55; cursor: pointer; }
  .app-main { margin-left: 0; }
  .app-content { padding: 14px; }
  .app-topbar { padding: 0 12px; gap: 10px; }
  .app-topbar .crumbs .page-title { font-size: 13px; }
  .app-topbar .topbar-actions { gap: 4px; }
  .content-header { gap: 8px; }
  .content-header h1 { font-size: 18px; }
  .stat { padding: 14px 16px; }
  .stat-value { font-size: 22px; }
  /* Hide username text in topbar dropdown — show only avatar */
  .app-topbar .dropdown > button > span:not(.avatar) { display: none; }
  .app-topbar .dropdown > button > i.fa-chevron-down { display: none; }
  .app-topbar .dropdown > button { padding: 0 6px; }
  .app-topbar .dropdown-menu { min-width: 220px; max-width: calc(100vw - 24px); }
  .table th, .table td { padding: 8px 10px; font-size: 11px; }
  .card-pad { padding: 16px; }
  .card-pad-lg { padding: 18px; }
  .grid { gap: 12px; }
}

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--text-3);
}
.empty-state i { font-size: 36px; color: var(--text-4); margin-bottom: 14px; display: block; }
.empty-state h3 { color: var(--text); font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-3); max-width: 320px; margin: 0 auto 18px; line-height: 1.5; }

/* Skeleton loading */
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.6; } }
.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: shimmer 1.4s infinite linear;
}

/* Toast (auto-shown for session flash) */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 280px; max-width: 380px; display: flex; gap: 10px; align-items: flex-start;
  animation: fadeUp 0.4s cubic-bezier(0.2, 0, 0, 1) both;
  pointer-events: auto;
}
.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-danger  { border-left: 3px solid var(--red); }
.toast.toast-warning { border-left: 3px solid var(--amber); }
.toast.toast-info    { border-left: 3px solid var(--accent); }
.toast .close { margin-left: auto; cursor: pointer; color: var(--text-3); background: none; border: none; font-size: 16px; line-height: 1; }
.toast .close:hover { color: var(--text); }

/* Better print */
@media print {
  .app-sidebar, .app-topbar, .btn, .toast-container { display: none !important; }
  .app-main { margin-left: 0; }
  .app-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* Tooltip helper */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--surface-3); color: var(--text); padding: 4px 10px;
  border-radius: var(--r-sm); font-size: 11px; white-space: nowrap;
  border: 1px solid var(--border); z-index: 50; pointer-events: none;
}

/* Utility grid */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Pagination — Onyx style */
.onyx-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; flex-wrap: wrap; }
.onyx-pager-info { font-size: 12px; color: var(--text-3); }
.onyx-pager-list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
@media (max-width: 640px) { .onyx-pager { gap: 8px; } .onyx-pager-list { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .onyx-pager-item { flex-shrink: 0; } }
.onyx-pager-item > a, .onyx-pager-item > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text-2); background: var(--surface);
  transition: all 0.15s; font-weight: 500;
}
.onyx-pager-item > a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.onyx-pager-item.active > span { background: var(--accent); border-color: var(--accent); color: #001417; font-weight: 600; }
.onyx-pager-item.disabled > span { color: var(--text-4); cursor: not-allowed; opacity: 0.5; }
@media (max-width: 640px) { .onyx-pager-info { font-size: 11px; } .onyx-pager-item > a, .onyx-pager-item > span { min-width: 28px; height: 28px; padding: 0 6px; font-size: 12px; } }

/* Bulk action bar */
.bulk-bar { position: sticky; top: var(--topbar-h); z-index: 15; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 10px 16px; margin-bottom: 14px; display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bulk-bar.active { display: flex; }
.bulk-bar .bulk-count { font-size: 13px; color: var(--accent); font-weight: 600; }
.bulk-bar .bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Row checkbox column */
.table input[type="checkbox"].row-check, .table input[type="checkbox"].all-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.table tbody tr.row-selected { background: var(--accent-soft); }

/* Sortable column header */
.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable:hover { color: var(--text); }
.sortable .sort-icon { opacity: 0.4; margin-left: 4px; font-size: 10px; }
.sortable.active .sort-icon { opacity: 1; color: var(--accent); }

/* Horizontal scroll wrapper for tables on mobile */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.table-wrap .table { min-width: 560px; }
.table-wrap.table-swipeable::after {
  content: '\2190 \2192  swipe';
  position: sticky; right: 8px; bottom: 8px; float: right;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent);
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; pointer-events: none; opacity: 0.7;
  margin-top: -28px;
}
@media (min-width: 961px) { .table-wrap.table-swipeable::after { display: none; } }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 200px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: none; z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); font-size: 13px; cursor: pointer; }
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Avatar */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }

/* Bootstrap bridge — keep AdminLTE/Bootstrap views readable until fully migrated */
.row { display: flex; flex-wrap: wrap; margin: -8px; }
.row > [class*="col-"] { padding: 8px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
@media (max-width: 991px) { .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8 { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 767px) { .col-md-6 { flex: 0 0 100%; max-width: 100%; } }

/* AdminLTE small-box bridge */
.small-box { border-radius: var(--r-lg); padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.small-box .inner h3 { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--text); }
.small-box .inner p { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.small-box .icon { position: absolute; right: 14px; top: 14px; font-size: 36px; color: var(--text-4); opacity: 0.6; }
.small-box-footer { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--accent); font-size: 12px; }
.bg-info,.bg-success,.bg-warning,.bg-danger,.bg-primary { /* color via badge below */ }
.small-box.bg-info    { border-color: rgba(34,211,238,0.25); }
.small-box.bg-success { border-color: rgba(74,222,128,0.25); }
.small-box.bg-warning { border-color: rgba(251,191,36,0.25); }
.small-box.bg-danger  { border-color: rgba(248,113,113,0.25); }

/* Helpers */
.text-mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.text-warning { color: var(--amber); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.hidden { display: none; }
