/* ══════════════════════════════════════════════════════════════
   AMBER AVENUE — ADMIN PANEL DESIGN SYSTEM
   Modern Enterprise Light Theme
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #CBD5E1;
  
  --primary: #1D4ED8;
  --primary-light: #2563EB;
  --primary-subtle: #EFF6FF;
  --primary-border: #BFDBFE;
  
  --amber: #D97706;
  --amber-light: #F59E0B;
  --amber-subtle: #FEF3C7;
  
  --success: #16A34A;
  --success-subtle: #DCFCE7;
  --success-border: #86EFAC;
  
  --warning: #EA580C;
  --warning-subtle: #FFF7ED;
  --warning-border: #FED7AA;
  
  --danger: #DC2626;
  --danger-subtle: #FEE2E2;
  --danger-border: #FECACA;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  
  --sidebar-width: 260px;
  --header-height: 68px;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.admin-layout { display: flex; min-height: 100vh; width: 100%; }

/* ── Sidebar ── */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  flex-shrink: 0;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-logo, .admin-header-logo, .admin-logo, .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF3C7;
  border-radius: 8px;
  color: #D97706;
  font-weight: 900;
  font-size: 16px;
}

.logo-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Navigation Tree */
.admin-nav {
  list-style: none;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.nav-group-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 14px 12px 6px;
  user-select: none;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-item-left { display: flex; align-items: center; gap: 10px; }

.nav-item-icon {
  width: 17px;
  height: 17px;
  color: #64748B;
  stroke-width: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-item:hover { background: #F8FAFC; color: var(--text-main); }
.admin-nav-item:hover .nav-item-icon { color: var(--text-main); }

.admin-nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary-light);
  font-weight: 700;
}
.admin-nav-item.active .nav-item-icon { color: var(--primary-light); }

.nav-badge, .badge, .notification-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.2;
}

.nav-badge.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.nav-badge.badge-orange { background: #FFEDD5; color: #C2410C; }
.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger { background: #FEE2E2; color: #DC2626; }
.badge-neutral { background: #F1F5F9; color: #475569; }

.sidebar-footer-meta {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Main Layout ── */
.admin-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.admin-topbar {
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }

.site-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
}

.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
}

.notif-badge-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.admin-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #CCFBF1;
  color: #0F766E;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-main, .admin-content {
  flex: 1;
  padding: 26px 30px 40px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Dashboard Widgets & KPI ── */
.dash-welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-title-group h1 {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.dash-title-group p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.date-range-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: var(--shadow-sm);
}

.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kpi-card-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.kpi-card-val { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: #0F172A; margin-bottom: 10px; line-height: 1.1; }
.kpi-card-footer { display: flex; align-items: center; justify-content: space-between; }
.kpi-trend-pill { font-size: 11.5px; font-weight: 700; color: #16A34A; }

.dash-row-1 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dash-row-2 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }

.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #0F172A; }
.dash-card-link { font-size: 12px; font-weight: 600; color: var(--primary-light); text-decoration: none; cursor: pointer; }

.dash-list-items { display: flex; flex-direction: column; gap: 10px; }
.dash-list-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; }
.dash-list-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-icon-box { width: 32px; height: 32px; border-radius: 8px; background: #F1F5F9; display: flex; align-items: center; justify-content: center; }
.dash-item-texts { display: flex; flex-direction: column; min-width: 0; }
.dash-item-name { font-size: 12.5px; font-weight: 700; color: #0F172A; }
.dash-item-sub { font-size: 11px; color: var(--text-muted); }

.status-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.status-pill.pill-new { background: #FEE2E2; color: #DC2626; }
.status-pill.pill-work { background: #DBEAFE; color: #1D4ED8; }
.status-pill.pill-pending { background: #FEF3C7; color: #D97706; }
.status-pill.pill-resolved { background: #DCFCE7; color: #16A34A; }
.status-pill.pill-active { background: #DCFCE7; color: #16A34A; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); }
.dash-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); color: #1E293B; }

.traffic-chart-layout { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.donut-svg-wrap { width: 140px; height: 140px; position: relative; }
.donut-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.donut-center-val { font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: #0F172A; }
.donut-center-sub { font-size: 9.5px; color: var(--text-muted); }

.traffic-legend { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.traffic-legend-item { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.traffic-legend-val { font-weight: 700; color: #0F172A; }

.quick-actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action-tile { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; cursor: pointer; transition: all 0.15s; }
.quick-action-tile:hover { background: #F8FAFC; border-color: #CBD5E1; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-action-label { font-size: 11.5px; font-weight: 700; color: #1E293B; line-height: 1.2; }

/* ── Tables & Cards ── */
.section-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-title-text { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: #0F172A; }
.section-actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-input {
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  min-width: 260px;
  outline: none;
  font-family: inherit;
}
.admin-search-input:focus { border-color: var(--primary-light); }

.admin-select-filter {
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.admin-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-data-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: #1E293B;
  vertical-align: middle;
}

.admin-data-table tr:hover td { background: #F8FAFC; }

.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-admin-primary:hover { background: #1D4ED8; }

.btn-admin-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-admin-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }

.btn-table-icon {
  padding: 6px 10px;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #334155;
  transition: all 0.15s;
}
.btn-table-icon:hover { background: #E2E8F0; }
.btn-table-icon.btn-danger:hover { background: #FEE2E2; color: #DC2626; border-color: #FECACA; }

/* ── Modals ── */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: #0F172A; }
.admin-modal-close { background: none; border: none; font-size: 22px; color: var(--text-dim); cursor: pointer; }
.admin-modal-close:hover { color: var(--text-main); }

.admin-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #F8FAFC;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: #334155; }
.form-input, .form-select, .form-textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-light); }
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Contract Special Conditions / Comments UX Block ── */
.contract-comments-section {
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
  margin-top: 6px;
  width: 100%;
}
.contract-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.contract-comments-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contract-comments-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contract-comments-subtitle {
  font-size: 12px;
  color: #64748B;
}
.contract-comments-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-comment-tag {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-comment-tag:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}
.btn-comment-tag:active {
  transform: translateY(0);
  background: #CBD5E1;
}
.contract-comments-field-wrap {
  width: 100%;
  position: relative;
}
#contract-comments {
  width: 100%;
  box-sizing: border-box;
  min-height: 125px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FAFAFA;
  color: #0F172A;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
#contract-comments:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}
.contract-comments-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 8px;
}
.contract-comments-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}
.contract-comments-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contract-comments-clear-btn {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 11.5px;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}
.contract-comments-clear-btn:hover {
  color: #DC2626;
}

/* Image upload box & preview */
.img-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: #F8FAFC;
}
.img-preview-thumb {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #E2E8F0;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ── Rich Formatting Toolbar ── */
.rich-format-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.rich-btn {
  padding: 4px 8px;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.rich-btn:hover { background: #E2E8F0; }

/* ── Moderation Accordion & Diff Viewer ── */
.mod-tabs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 8px;
  margin-bottom: 12px;
}

.mod-tab-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mod-diff-col {
  padding-right: 12px;
  border-right: 1px solid var(--border-subtle);
  font-size: 12px;
}
.mod-diff-title { font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.mod-diff-data { color: #475569; line-height: 1.4; }

.mod-comment-col { display: flex; flex-direction: column; gap: 4px; }
.mod-tab-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
}
.mod-tab-textarea:focus { border-color: var(--primary-light); }

/* ── Placements Calendar ── */
.pl-cal-container { margin-top: 12px; }
.pl-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F1F5F9;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.pl-cal-nav-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-weight: 700;
}
.pl-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
}
.pl-cal-day-header {
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px;
}
.pl-cal-day {
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.pl-cal-day.empty { background: transparent; cursor: default; }
.pl-cal-day.free, .slot-free { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.pl-cal-day.free:hover { background: #BBF7D0; }
.pl-cal-day.booked, .slot-current { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; font-weight: 800; }
.pl-cal-day.taken, .slot-occupied { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; cursor: not-allowed; opacity: 0.8; }
.pl-cal-day.cooldown, .slot-cooldown { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; cursor: not-allowed; }

/* ── Tariffs Grid ── */
.tariff-preset-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tariff-preset-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.tariff-preset-card:hover, .tariff-preset-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}
.tariff-preset-title { font-weight: 800; font-size: 14px; color: #0F172A; }
.tariff-preset-price { font-size: 16px; font-weight: 800; color: var(--primary-light); margin: 6px 0; }
.tariff-preset-desc { font-size: 11px; color: var(--text-muted); }

.modules-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.module-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #FFFFFF;
}

/* ── Category Backgrounds ── */
.cat-bg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.cat-bg-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Toast & Unsaved Bar ── */
.unsaved-changes-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  animation: slideUp 0.2s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #16A34A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1001;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive adjustments */
@media (max-width: 1200px) {
  .kpi-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-row-1, .dash-row-2 { grid-template-columns: 1fr; }
  .tariff-preset-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-bg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .kpi-metrics-grid { grid-template-columns: 1fr; }
  .modules-checkbox-grid { grid-template-columns: 1fr; }
  .mod-tab-box { grid-template-columns: 1fr; }
}
