/* LServis — modern admin & portal theme (v2) */

html.theme-modern {
  --bg: #090a09;
  --bg-2: #0e100e;
  --surface: #131513;
  --surface-2: #181b18;
  --surface-elevated: #1c201c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.11);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #c8f31d;
  --accent-hover: #d9ff4d;
  --accent-text: #0a0c08;
  --accent-soft: rgba(200, 243, 29, 0.1);
  --accent-muted: rgba(200, 243, 29, 0.06);
  --glow: rgba(200, 243, 29, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --sidebar-w: 248px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.22);
  --focus-ring: 0 0 0 3px rgba(200, 243, 29, 0.18);
}

html.theme-modern body {
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ——— Shell & background ——— */
html.theme-modern .admin-shell {
  background: var(--bg);
}

html.theme-modern .admin-main {
  background:
    radial-gradient(ellipse 70% 45% at 100% -5%, rgba(200, 243, 29, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(34, 90, 48, 0.07) 0%, transparent 50%),
    var(--bg);
}

/* ——— Sidebar (kompaktné) ——— */
html.theme-modern .admin-sidebar {
  background: linear-gradient(180deg, #0c0e0c 0%, #0a0b0a 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

html.theme-modern .sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
}

html.theme-modern .brand-logo {
  width: 100%;
}

html.theme-modern .brand-logo img,
html.theme-modern .site-logo-sidebar {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  filter: none;
}

html.theme-modern .sidebar-brand-tag {
  margin-top: 0;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(156, 163, 175, 0.55);
  white-space: nowrap;
}

html.theme-modern .sidebar-nav {
  padding: 4px 0 6px;
}

html.theme-modern .sidebar-group + .sidebar-group {
  margin-top: 0;
}

html.theme-modern .sidebar-group-collapse + .sidebar-group-collapse {
  margin-top: 0;
}

html.theme-modern .sidebar-group-summary {
  margin: 0 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(156, 163, 175, 0.5);
}

html.theme-modern .sidebar-group-summary:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.03);
}

html.theme-modern .sidebar-group-collapse[open] > .sidebar-group-summary {
  color: rgba(200, 243, 29, 0.78);
}

html.theme-modern .sidebar-group-items {
  padding: 1px 0 4px;
}

html.theme-modern .sidebar-group-label {
  padding: 8px 14px 2px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(156, 163, 175, 0.5);
}

html.theme-modern .sidebar-group--flat .sidebar-link:first-child {
  margin-top: 2px;
}

html.theme-modern .sidebar-link {
  margin: 1px 10px;
  padding: 5px 10px;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
  line-height: 1.25;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

html.theme-modern .sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  opacity: 1;
  flex-shrink: 0;
  transition: background 0.18s;
}

html.theme-modern .sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.04);
}

html.theme-modern .sidebar-link:hover .sidebar-icon {
  background: rgba(255, 255, 255, 0.07);
}

html.theme-modern .sidebar-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(200, 243, 29, 0.15);
  font-weight: 600;
  box-shadow: none;
}

html.theme-modern .sidebar-link.active .sidebar-icon {
  background: rgba(200, 243, 29, 0.18);
  color: var(--accent);
}

html.theme-modern .sidebar-footer {
  padding: 8px 8px 12px;
  border-top: 1px solid var(--border);
}

html.theme-modern .sidebar-link-ext {
  font-size: 0.78rem;
  margin: 0 2px;
  padding: 5px 10px;
}

html.theme-modern .sidebar-logout {
  margin: 6px 2px 0;
}

html.theme-modern .sidebar-logout-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* ——— Topbar ——— */
html.theme-modern .admin-topbar {
  min-height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.theme-modern .admin-breadcrumb {
  font-size: 0.84rem;
}

html.theme-modern .admin-breadcrumb-current {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

html.theme-modern .topbar-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

html.theme-modern .topbar-btn:hover {
  background: var(--accent-muted);
  border-color: rgba(200, 243, 29, 0.25);
}

html.theme-modern .admin-user-chip {
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

html.theme-modern .admin-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, #a8d619 100%);
}

html.theme-modern .admin-content {
  padding: 28px 32px 48px;
}

/* ——— Page headers ——— */
html.theme-modern .page-head h1,
html.theme-modern .page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

html.theme-modern .page-head p,
html.theme-modern .page-hero p {
  color: rgba(156, 163, 175, 0.95);
}

/* ——— Cards ——— */
html.theme-modern .card,
html.theme-modern .portal-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

html.theme-modern .card h2,
html.theme-modern .portal-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Stat / KPI cards ——— */
html.theme-modern .stat,
html.theme-modern .stat-card,
html.theme-modern .portal-stat {
  min-height: 82px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

html.theme-modern .stat::before,
html.theme-modern .stat-card::before,
html.theme-modern .portal-stat::before {
  left: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(200, 243, 29, 0.15) 55%, transparent 100%);
}

html.theme-modern .stat:hover,
html.theme-modern .stat-card:hover,
html.theme-modern .portal-stat:hover {
  border-color: rgba(200, 243, 29, 0.22);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(200, 243, 29, 0.06);
}

html.theme-modern .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(156, 163, 175, 0.9);
}

html.theme-modern .stat-value {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

html.theme-modern .kpi,
html.theme-modern .portal-stats {
  gap: 12px;
}

/* ——— Dashboard accordion ——— */
html.theme-modern .dashboard-acc {
  gap: 8px;
}

html.theme-modern .dashboard-acc-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.theme-modern .dashboard-acc-item.is-open {
  border-color: rgba(200, 243, 29, 0.18);
  box-shadow: var(--shadow-card), 0 0 32px rgba(200, 243, 29, 0.04);
}

html.theme-modern .dashboard-acc-head {
  padding: 18px 20px;
  background: transparent;
}

html.theme-modern .dashboard-acc-head:hover {
  background: rgba(255, 255, 255, 0.02);
}

html.theme-modern .dashboard-acc-item.is-open .dashboard-acc-head {
  background: linear-gradient(90deg, var(--accent-muted) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

html.theme-modern .dashboard-acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.15rem;
}

html.theme-modern .dashboard-acc-item.is-open .dashboard-acc-icon {
  background: rgba(200, 243, 29, 0.14);
}

html.theme-modern .dashboard-acc-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html.theme-modern .dashboard-acc-body {
  padding: 16px 20px 22px;
  background: rgba(0, 0, 0, 0.12);
}

/* ——— Buttons ——— */
html.theme-modern .btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

html.theme-modern .btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

html.theme-modern .btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #b8e019 100%);
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: 0 4px 16px rgba(200, 243, 29, 0.22);
}

html.theme-modern .btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 6px 22px rgba(200, 243, 29, 0.3);
}

html.theme-modern .btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

/* ——— Forms ——— */
html.theme-modern .field input,
html.theme-modern .field select,
html.theme-modern .field textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 11px 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

html.theme-modern .portal-login-form .field input,
html.theme-modern .login-form .field input {
  background: var(--bg);
  color: var(--text);
  caret-color: var(--text);
}

html.theme-modern .field input:focus,
html.theme-modern .field select:focus,
html.theme-modern .field textarea:focus {
  border-color: rgba(200, 243, 29, 0.45);
  box-shadow: var(--focus-ring);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

html.theme-modern .portal-login-form .field input:focus,
html.theme-modern .login-form .field input:focus {
  background: var(--bg-2);
  color: var(--text);
}

html.theme-modern .portal-login-form input:-webkit-autofill,
html.theme-modern .portal-login-form input:-webkit-autofill:hover,
html.theme-modern .portal-login-form input:-webkit-autofill:focus,
html.theme-modern .portal-login-form input:-webkit-autofill:active,
html.theme-modern .login-form input:-webkit-autofill,
html.theme-modern .login-form input:-webkit-autofill:hover,
html.theme-modern .login-form input:-webkit-autofill:focus,
html.theme-modern .login-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  border: 1px solid var(--border-strong);
  transition: background-color 99999s ease-out 0s;
}

html.theme-modern .field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(156, 163, 175, 0.95);
}

/* ——— Tables ——— */
html.theme-modern .table-wrap,
html.theme-modern .portal-table-wrap {
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.theme-modern .table th,
html.theme-modern .portal-table th {
  padding: 12px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(156, 163, 175, 0.85);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

html.theme-modern .table td,
html.theme-modern .portal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

html.theme-modern .table tbody tr:hover td,
html.theme-modern .portal-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

html.theme-modern .table tbody tr:last-child td,
html.theme-modern .portal-table tbody tr:last-child td {
  border-bottom: none;
}

html.theme-modern .table tbody tr.row-highlight td {
  background: rgba(200, 243, 29, 0.08);
}

/* ——— Badges & alerts ——— */
html.theme-modern .badge {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html.theme-modern .alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

html.theme-modern .alert-error {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

html.theme-modern .alert-success {
  background: rgba(20, 83, 45, 0.35);
  border-color: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}

/* ——— Collapse panels ——— */
html.theme-modern .collapse-panel {
  border-radius: var(--radius-md);
  border-color: var(--border);
  background: var(--surface);
}

html.theme-modern .collapse-panel > summary {
  padding: 16px 18px;
}

/* ——— Login ——— */
html.theme-modern.login-page,
html.theme-modern body.login-page {
  background: #060806;
}

html.theme-modern body.login-page .login-card,
html.theme-modern body.portal-login-page .portal-login {
  border-radius: var(--radius-lg);
  background: rgba(14, 16, 14, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), 0 0 60px rgba(200, 243, 29, 0.04);
}

html.theme-modern .login-page-brand .site-logo-login,
html.theme-modern .login-page-logo img,
html.theme-modern .portal-login-brand .brand-logo img,
html.theme-modern .portal-login-brand .site-logo-login {
  max-height: 280px;
  max-width: min(100%, 440px);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}

html.theme-modern .login-page-brand,
html.theme-modern .portal-login-brand {
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  html.theme-modern .login-page-brand .site-logo-login,
  html.theme-modern .login-page-logo img,
  html.theme-modern .portal-login-brand .brand-logo img,
  html.theme-modern .portal-login-brand .site-logo-login {
    max-height: 150px;
    max-width: 100%;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
  }

  html.theme-modern .login-page-brand,
  html.theme-modern .portal-login-brand {
    margin-bottom: 16px;
  }
}

html.theme-modern .login-card,
html.theme-modern body.portal-login-page .portal-login {
  margin-top: 0;
}

/* ——— Portal specifics ——— */
html.theme-modern .portal-body {
  background: var(--bg);
}

html.theme-modern .portal-content {
  gap: 16px;
}

html.theme-modern .portal-grid {
  gap: 14px;
}

html.theme-modern .portal-detail-item {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.2);
}

/* Calendar availability grid */
html.theme-modern .portal-slot-free,
html.theme-modern .portal-slot-busy,
html.theme-modern .portal-slot-mine {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Filter bars */
html.theme-modern .invoice-filter-bar,
html.theme-modern .sklad-filter-bar {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 18px;
}

/* Section headers */
html.theme-modern .section-head {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--accent-muted) 0%, transparent 70%);
  border-color: rgba(200, 243, 29, 0.1);
}

/* Charts */
html.theme-modern .chart-wrap {
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  html.theme-modern .admin-content {
    padding: 20px 16px 36px;
  }

  html.theme-modern .admin-topbar {
    padding: 0 16px;
  }

  html.theme-modern .sidebar-link.active {
    border-left: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-modern .stat:hover,
  html.theme-modern .stat-card:hover,
  html.theme-modern .btn:hover {
    transform: none;
  }
}

/* ——— CoreUI-style dashboard ——— */
.dash-coreui {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dash-coreui > section {
  min-width: 0;
}

.dash-coreui .card {
  min-width: 0;
  overflow: hidden;
}

.dash-coreui .chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  isolation: isolate;
}

.dash-metric-card .chart-wrap {
  height: 220px;
}

.dash-chart-panels {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.dash-chart-panels.chart-tall {
  height: 320px;
}

.dash-chart-panel {
  display: none;
  width: 100%;
  height: 100%;
}

.dash-chart-panel.is-active {
  display: block;
}

.dash-chart-panel .chart-panel-inner {
  height: 100%;
  min-height: 0;
}

.dash-chart-panel .chart-panel-inner.chart-wrap {
  height: 100%;
}

.dash-coreui .chart-wrap > canvas {
  display: block;
  max-width: 100%;
}

.dash-widgets-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dash-widget {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.dash-widget:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.dash-widget-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 12px;
  flex: 1;
}

.dash-widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.dash-widget-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dash-widget-title {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-widget-value {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dash-widget-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.dash-widget-primary .dash-widget-icon {
  background: rgba(200, 243, 29, 0.14);
  color: var(--accent);
}

.dash-widget-info .dash-widget-icon {
  background: rgba(125, 211, 252, 0.14);
  color: #7dd3fc;
}

.dash-widget-warning .dash-widget-icon {
  background: rgba(255, 179, 71, 0.14);
  color: #ffb347;
}

.dash-widget-danger .dash-widget-icon {
  background: rgba(255, 107, 107, 0.14);
  color: #ff8a8a;
}

.dash-widget-success .dash-widget-icon {
  background: rgba(134, 239, 172, 0.14);
  color: #86efac;
}

.dash-trend {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
}

.dash-trend-up { color: #86efac; }
.dash-trend-down { color: #fca5a5; }
.dash-trend-neutral { color: var(--muted); }

.dash-main-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.dash-main-row > .card,
.dash-main-row > .dash-side-col {
  min-width: 0;
}

.dash-side-col {
  display: grid;
  gap: 14px;
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-card-head h2 {
  margin: 0;
}

.dash-chart-card,
.dash-side-card,
.dash-metric-card {
  margin: 0;
}

.dash-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-chart-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dash-chart-tab:hover,
.dash-chart-tab.is-active {
  color: var(--text);
  border-color: rgba(200, 243, 29, 0.35);
  background: rgba(200, 243, 29, 0.08);
}

.dash-progress-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.dash-progress-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dash-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.dash-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.dash-progress-primary { background: linear-gradient(90deg, rgba(200, 243, 29, 0.95), rgba(200, 243, 29, 0.55)); }
.dash-progress-info { background: linear-gradient(90deg, rgba(125, 211, 252, 0.95), rgba(125, 211, 252, 0.55)); }
.dash-progress-warning { background: linear-gradient(90deg, rgba(255, 179, 71, 0.95), rgba(255, 179, 71, 0.55)); }
.dash-progress-danger { background: linear-gradient(90deg, rgba(255, 107, 107, 0.95), rgba(255, 107, 107, 0.55)); }

.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.dash-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dash-side-stats > div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.dash-side-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dash-metrics-row > .card {
  display: flex;
  flex-direction: column;
}

.dash-metric-card h2 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.dash-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dash-charts-row > .card {
  min-width: 0;
}

.dash-charts-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-activity-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-activity-table td,
.dash-activity-table th {
  font-size: 0.84rem;
}

.badge-overdue {
  background: rgba(255, 107, 107, 0.16);
  color: #ffb4b4;
  margin-left: 6px;
}

@media (max-width: 1400px) {
  .dash-widgets-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .dash-widgets-row,
  .dash-metrics-row,
  .dash-activity-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-charts-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dash-widgets-row,
  .dash-main-row,
  .dash-metrics-row,
  .dash-charts-row,
  .dash-activity-row {
    grid-template-columns: 1fr;
  }

  .dash-card-head {
    flex-direction: column;
    align-items: stretch;
  }
}
