/* ============================================
   CABLE COLOGNE – UNIFIED STYLESHEET
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Brand */
  --color-brand-blue: #6BAED6;
  --color-brand-red: #C1272D;

  /* Semantic */
  --primary: #6BAED6;
  --primary-dark: #4a90b8;
  --success: #28a745;
  --success-dark: #1e8449;
  --warning: #ffc107;
  --warning-dark: #856404;
  --danger: #dc3545;
  --danger-dark: #b03a2e;
  --accent: #e74c3c;

  /* Surfaces */
  --bg-primary: #ffffff;
  --bg-secondary: #f0f2f5;
  --bg-surface: #ffffff;
  --bg-header: #1a1a2e;
  --bg-hover: #f7f8fa;

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-on-dark: #ffffff;

  /* Gray scale */
  --gray-700: #374151;
  --gray-900: #111827;

  /* Borders */
  --border-color: #e5e7eb;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 14px;
  --sp-lg: 20px;
  --sp-xl: 24px;
  --sp-2xl: 28px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-stat: 40px;
}

/* ---- DARK MODE ---- */
.dark-mode {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1c25;
  --bg-surface: #1a1c25;
  --bg-header: #0d0d14;
  --bg-hover: #22242e;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --gray-700: #9ca3af;
  --gray-900: #e5e7eb;
  --border-color: #2d2f3a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: var(--fs-sm); }
table { border-collapse: collapse; width: 100%; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); }

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: var(--fs-md);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--bg-header);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  height: 52px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-cable { color: var(--color-brand-blue); }
.logo-cologne { color: var(--color-brand-red); }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 6px 12px;
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link--active {
  color: #fff;
  font-weight: 600;
}

.nav-link--bold { font-weight: 600; }

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-shrink: 0;
  margin-left: auto;
}

.user-name {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.user-name:hover { color: #fff; }

.admin-link {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
}
.admin-link:hover { color: #fff; }

.btn-logout {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.btn-logout:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.15s ease;
}
.dark-mode-toggle:hover { border-color: rgba(255,255,255,0.3); }
.icon-moon { display: none; }
.dark-mode .icon-sun { display: none; }
.dark-mode .icon-moon { display: inline; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sp-lg);
}

.section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: var(--sp-lg);
}

.section--flush { padding: 0; }
.section:last-child { margin-bottom: 0; }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.page-title { font-size: var(--fs-2xl); font-weight: 700; }
.page-subtitle { color: var(--text-secondary); font-size: var(--fs-md); margin-top: 4px; }

/* Section Headers */
.section-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 var(--sp-md) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-lg);
}

.section-header__title { font-size: var(--fs-lg); font-weight: 600; margin: 0; }

.section-header__link {
  font-size: var(--fs-base);
  color: var(--primary);
}
.section-header__link:hover { text-decoration: underline; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 10px 22px;
  font-size: var(--fs-md);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }

.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #e0a800; }

.btn-outline {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-danger {
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
}
.btn-outline-danger:hover { background: var(--danger); color: #fff; }

.btn-outline-primary {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-small {
  padding: 6px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-small:hover { background: var(--primary-dark); }

.btn-sm { padding: 6px 12px; font-size: var(--fs-sm); }
.btn-lg { padding: 12px 24px; font-size: var(--fs-md); }

/* ============================================
   STAT CARDS
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  gap: var(--sp-xs);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: var(--fs-stat);
  line-height: 1.1;
  font-weight: 700;
}

/* Color variants */
.stat-card--blue { background: rgba(107,174,214,0.1); border-color: rgba(107,174,214,0.2); }
.stat-card--blue .stat-label { color: var(--primary-dark); }
.stat-card--blue .stat-value { color: #3a7ca5; }

.stat-card--green { background: rgba(39,174,96,0.08); border-color: rgba(39,174,96,0.2); }
.stat-card--green .stat-label { color: #219653; }
.stat-card--green .stat-value { color: var(--success-dark); }

.stat-card--red { background: rgba(231,76,60,0.08); border-color: rgba(231,76,60,0.2); }
.stat-card--red .stat-label { color: #c0392b; }
.stat-card--red .stat-value { color: var(--danger-dark); }

.stat-card--gray { background: rgba(107,114,128,0.08); border-color: rgba(107,114,128,0.15); }
.stat-card--gray .stat-label { color: var(--text-secondary); }
.stat-card--gray .stat-value { color: var(--text-primary); }

.stat-card--yellow { background: rgba(255,193,7,0.1); border: 2px solid var(--warning); }
.stat-card--yellow .stat-label { color: var(--warning-dark); }
.stat-card--yellow .stat-value { color: var(--warning-dark); }

.stat-card--outline-green { background: rgba(40,167,69,0.1); border: 2px solid var(--success); }
.stat-card--outline-green .stat-label { color: #155724; }
.stat-card--outline-green .stat-value { color: #155724; }

.stat-card--outline-blue { background: rgba(107,174,214,0.1); border: 2px solid var(--primary); }
.stat-card--outline-blue .stat-label { color: var(--primary); }
.stat-card--outline-blue .stat-value { color: var(--primary); }

.stat-card--outline-gray { background: rgba(108,117,125,0.1); border: 2px solid #6c757d; }
.stat-card--outline-gray .stat-label { color: #6c757d; }
.stat-card--outline-gray .stat-value { color: #6c757d; }

.dark-mode .stat-card--blue { background: rgba(107,174,214,0.08); border-color: rgba(107,174,214,0.15); }
.dark-mode .stat-card--green { background: rgba(39,174,96,0.06); border-color: rgba(39,174,96,0.15); }
.dark-mode .stat-card--red { background: rgba(231,76,60,0.06); border-color: rgba(231,76,60,0.15); }
.dark-mode .stat-card--gray { background: rgba(107,114,128,0.06); border-color: rgba(107,114,128,0.1); }

/* ============================================
   MIDDLE ROW (Dashboard calendar + activities)
   ============================================ */
.middle-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  align-items: start;
}

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

/* ============================================
   CALENDAR
   ============================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  font-size: var(--fs-xs);
}

.calendar-grid__header {
  text-align: center;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 3px 0;
}

.calendar-kw {
  text-align: center;
  font-weight: 600;
  padding: 3px 0;
  font-size: 10px;
  color: var(--text-muted);
}

.calendar-day {
  text-align: center;
  padding: 5px 3px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  transition: background 0.1s ease;
}

.calendar-day:hover { background: var(--bg-hover); }

.calendar-day--today {
  background: var(--color-brand-blue) !important;
  color: #fff !important;
  font-weight: 700;
}

.calendar-footer {
  margin-top: var(--sp-md);
  padding-top: 12px;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ============================================
   ACTIVITY LOG
   ============================================ */
.activity-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-base);
  transition: background 0.1s ease;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-hover); }

.activity-time {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 100px;
}

.activity-type {
  font-size: var(--fs-sm);
  min-width: 130px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.activity-badge--new { background: rgba(39,174,96,0.1); color: #219653; }
.activity-badge--status { background: rgba(107,174,214,0.1); color: var(--primary-dark); }
.activity-badge--import { background: rgba(243,156,18,0.1); color: #d68910; }

.activity-link {
  font-size: var(--fs-base);
  color: var(--primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-link:hover { text-decoration: underline; }

.activity-user {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   DATA TABLE
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  font-size: var(--fs-base);
}

.data-table thead th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.clickable { cursor: pointer; }

.td-truncate {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-center, .td-center { text-align: center !important; }

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.status-angebot,
.status-badge--angebot { background: rgba(107,174,214,0.12); color: #3a7ca5; }
.status-zuschlag,
.status-badge--zuschlag { background: rgba(39,174,96,0.1); color: var(--success-dark); }
.status-in_arbeit,
.status-badge--in-arbeit { background: rgba(243,156,18,0.1); color: #b7791f; }
.status-abgeschlossen,
.status-badge--done { background: rgba(107,114,128,0.1); color: var(--text-secondary); }
.status-badge--active { background: rgba(40,167,69,0.15); color: var(--success); }

.dark-mode .status-angebot,
.dark-mode .status-badge--angebot { background: rgba(107,174,214,0.15); color: var(--primary); }
.dark-mode .status-zuschlag,
.dark-mode .status-badge--zuschlag { background: rgba(39,174,96,0.15); color: var(--success); }
.dark-mode .status-in_arbeit,
.dark-mode .status-badge--in-arbeit { background: rgba(243,156,18,0.12); color: #f39c12; }

/* Active project count badge */
.badge-active {
  background: rgba(40,167,69,0.15);
  color: var(--success);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 600;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 24px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 400;
  transition: color 0.15s ease;
}
.filter-tab:hover { color: var(--text-primary); }

.filter-tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: var(--fs-md);
}

.form-label--inline {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-md);
  cursor: pointer;
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input--search {
  padding: 12px 16px;
  font-size: 15px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active,
.modal--open { display: flex; }

.modal-content {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-content h2 { margin-top: 0; margin-bottom: var(--sp-lg); }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--sp-xl);
  justify-content: flex-end;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card { position: relative; }

.team-card__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-right: 100px;
}

.team-card__detail {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  margin-bottom: 8px;
}

.team-card__detail strong { color: var(--gray-900); }

.team-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.progress-bar__track {
  width: 80px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.progress-bar__text {
  font-size: var(--fs-base);
  white-space: nowrap;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: var(--fs-md);
}

.empty-state a {
  color: var(--primary);
}
.empty-state a:hover { text-decoration: underline; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .middle-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .nav { display: none; }

  .nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    padding: var(--sp-md);
    gap: var(--sp-xs);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav--open .nav-link { padding: 10px 16px; }
  .mobile-menu-btn { display: block; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: var(--sp-md); }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
  .stat-value { font-size: 28px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
  .header-content { padding: 0 var(--sp-md); }
  .user-menu { gap: var(--sp-sm); }
  .admin-link, .btn-logout { display: none; }
  .data-table { font-size: var(--fs-sm); }
  .activity-type { display: none; }
  .activity-time { min-width: 70px; font-size: var(--fs-xs); }
  .filter-tabs { gap: 0; }
  .filter-tab { padding: 10px 14px; font-size: var(--fs-sm); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .modal-content { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* === Additional utility classes === */
.alert { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: var(--space-md); font-size: 14px; border: 1px solid transparent; }
.alert--success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--success); }
.alert--danger { background: rgba(220, 53, 69, 0.1); border-color: rgba(220, 53, 69, 0.3); color: var(--danger); }
.form-select--inline { display: inline-block; width: auto; padding: 4px 8px; font-size: 13px; min-height: auto; }
.text-line-through { text-decoration: line-through; opacity: 0.6; }
.row-done { opacity: 0.6; }
.row-done td { background: var(--bg-main); }
.stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
