/* styles.css - Style Premium pour l'interface de planning Free Proxi */

:root {
  /* Premium Dark Theme Color Palette */
  --bg-app: #0d1117;
  --bg-sidebar: #161b22;
  --bg-card: #21262d;
  --border-color: #30363d;
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --text-white: #ffffff;
  --text-title: #ffffff;
  --bg-date-col: #21262d;
  
  --primary: #58a6ff;
  --primary-hover: #1f6feb;
  --success: #2ea44f;
  --success-hover: #22863a;
  --danger: #f85149;
  --warning: #db6d28;

  /* Shift colors - Premium muted gradients */
  --color-8-15: #fff2cc;
  --color-9-16: #fce4d6;
  --color-10-17: #c6efce;
  --color-11-18: #c6efce;
  --color-12-19: #e8ebf5;
  --color-14-21: #b4c6e7;
  --color-field: #ffd966;
  --color-cp: #ff9a9a;
  --color-off: #37474f;
  
  --font-sans: 'Inter', sans-serif;
  --sidebar-width: 380px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  min-height: 70px;
  height: auto;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  z-index: 10;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--danger), #b71c1c);
  color: var(--text-white);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.logo-area h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

/* Header Pending Widget (Redesigned as compact horizontal bar in header) */
.header-pending-widget {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

body.light-theme .header-pending-widget {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.header-pending-widget .widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ff9f43 !important; /* Bright amber text */
  padding: 0 !important;
  border-bottom: none !important;
  white-space: nowrap !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-right: 8px !important;
}

body.light-theme .header-pending-widget .widget-title {
  color: #db6d28 !important;
  border-right-color: rgba(0, 0, 0, 0.1) !important;
}

.header-pending-widget .widget-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  align-items: center !important;
  overflow-x: auto !important;
  max-width: 400px !important; /* Limit width to fit cleanly */
}

/* Hide scrollbar for widget list */
.header-pending-widget .widget-list::-webkit-scrollbar {
  display: none !important;
}
.header-pending-widget .widget-list {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.header-pending-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  color: var(--text-main) !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  height: 26px !important;
}

body.light-theme .header-pending-item {
  background: #ffffff !important;
  border-color: #e1e4e8 !important;
}

.header-pending-item.priority-family {
  border-color: #ffd33d !important;
  background: rgba(255, 211, 61, 0.05) !important;
}

/* Hide pending widget on mobile to save vertical space */
@media (max-width: 768px) {
  .header-pending-widget {
    display: none !important;
  }
}

.controls-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.main-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none !important;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-main);
}

.user-icon {
  font-size: 14px;
}

.user-role-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.15);
  color: var(--primary);
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-app);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.date-selector label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.date-selector select {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.date-selector select option {
  background: var(--bg-card);
  color: var(--text-main);
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.primary-btn {
  background-color: var(--primary);
  color: #0b0f14;
  font-weight: 600;
}

.primary-btn:hover:not(:disabled) {
  background-color: #79b8ff;
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover:not(:disabled) {
  background-color: #30363d;
  color: var(--text-white);
}

.success-btn {
  background-color: var(--success);
  color: var(--text-white);
  font-weight: 600;
}

.success-btn:hover:not(:disabled) {
  background-color: var(--success-hover);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-icon-plus {
  background: var(--primary);
  color: #0b0f14;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon-plus:hover {
  transform: scale(1.1);
  background: #79b8ff;
}

/* Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #0f141c;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: thin;
}

.tabs-header::-webkit-scrollbar {
  height: 3px;
}
.tabs-header::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.tabs-header::-webkit-scrollbar-thumb {
  background: rgba(88, 166, 255, 0.3);
  border-radius: 1.5px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 14px 4px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.tab-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Forms */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
  color: var(--text-main);
  user-select: none;
}

/* Lists */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.list-item:hover {
  border-color: #444c56;
}

.item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 4px;
}

.item-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.item-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.badge-type {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-type.conseiller { background: rgba(88, 166, 255, 0.15); color: var(--primary); }
.badge-type.hybride { background: rgba(219, 109, 40, 0.15); color: var(--warning); }
.badge-type.itinerant { background: rgba(141, 110, 99, 0.15); color: var(--color-field); }

.badge-volunteer {
  font-size: 9px;
  background: rgba(46, 164, 79, 0.15);
  color: #56d364;
  padding: 2px 6px;
  border-radius: 10px;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--text-title);
}

.action-btn.delete:hover {
  color: var(--danger);
}

/* Schedule View */
.schedule-view {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-app);
}

/* Grid Card */
.grid-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.grid-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 27, 34, 0.5);
  backdrop-filter: blur(10px);
}

.grid-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.badge.shift-8-15 { background-color: var(--color-8-15); }
.badge.shift-9-16 { background-color: var(--color-9-16); }
.badge.shift-10-17 { background-color: var(--color-10-17); }
.badge.shift-11-18 { background-color: var(--color-11-18); }
.badge.shift-12-19 { background-color: var(--color-12-19); }
.badge.shift-14-21 { background-color: var(--color-14-21); }
.badge.shift-field { background-color: var(--color-field); }
.badge.status-cp { background-color: var(--color-cp); }
.badge.status-pending-abs { background-color: #ffe5d9; }
.badge.status-off { background-color: var(--color-off); }

/* Table styling */
.grid-table-container {
  overflow: auto;
  flex: 1;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.schedule-table th, 
.schedule-table td {
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.schedule-table th {
  background: #990000;
  color: var(--text-white);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 3;
}

.schedule-table th:first-child {
  position: sticky;
  left: 0;
  background: #990000;
  color: var(--text-white);
  z-index: 4;
  font-weight: 600;
}

.schedule-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--bg-date-col);
  color: var(--text-main);
  z-index: 2;
  font-weight: 500;
  border-right: 2px solid var(--border-color);
}

/* Cells styling */
.cell-shift {
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: grab;
  user-select: none;
  transition: transform 0.1s ease;
}

.cell-shift:active {
  cursor: grabbing;
}

.cell-shift.shift-8-15, .cell-shift.shift-8-15h { background-color: #fff2cc; color: #7f6000; border: 1px solid #d6b03c; }
.cell-shift.shift-9-16, .cell-shift.shift-9-16h { background-color: #fce4d6; color: #a51d24; border: 1px solid #e6b297; }
.cell-shift.shift-10-17, .cell-shift.shift-10-17h { background-color: #c6efce; color: #1e4620; border: 1px solid #a3d9a5; }
.cell-shift.shift-11-18, .cell-shift.shift-11-18h { background-color: #c6efce; color: #1e4620; border: 1px solid #a3d9a5; }
.cell-shift.shift-12-19, .cell-shift.shift-12-19h { background-color: #e8ebf5; color: #3a4b7c; border: 1px solid #b4c3d6; }
.cell-shift.shift-14-21, .cell-shift.shift-14-21h { background-color: #b4c6e7; color: #1e3f66; border: 1px solid #8faadc; }
.cell-shift.shift-field { background-color: #ffd966; color: #7f6000; border: 1px solid #bf9000; }
.cell-shift.status-cp, .badge.status-cp { background-color: #ff9a9a; color: #7f0000; border: 1px solid #ff7d80; }
.cell-shift.status-pending-absence, .badge.status-pending-abs { background-color: #ffe5d9; color: #c65911; border: 1px solid #f8cbad; }
.cell-shift.status-off, .badge.status-off { background-color: rgba(255, 255, 255, 0.05); color: #8b949e; border: 1px solid rgba(255, 255, 255, 0.1); }

/* Nouveaux statuts de planning */
.cell-shift.status-formation, .badge.status-formation { background-color: #e0f7fa !important; color: #006064 !important; border: 1px solid #b2ebf2 !important; }
.cell-shift.status-depart-anticipe, .badge.status-depart-anticipe { background-color: #f3e5f5 !important; color: #4a148c !important; border: 1px solid #e1bee7 !important; }
.cell-shift.status-maladie, .badge.status-maladie { background-color: #ffebee !important; color: #b71c1c !important; border: 1px solid #ffcdd2 !important; }
.cell-shift.status-rtt, .badge.status-rtt { background-color: #fff8e1 !important; color: #ff6f00 !important; border: 1px solid #ffe082 !important; }
.cell-shift.status-cssct, .badge.status-cssct { background-color: #e8eaf6 !important; color: #1a237e !important; border: 1px solid #c5cae9 !important; }
.cell-shift.status-medical, .badge.status-medical { background-color: #e0f2f1 !important; color: #004d40 !important; border: 1px solid #b2dfdb !important; }
/* Motifs d'absence créés via le catalogue configurable (couleur définie en base, appliquée en inline style) */
.cell-shift.status-custom-absence, .badge.status-custom-absence { color: #fff; border: 1px solid rgba(0,0,0,0.15); }

/* Highlight dragover */
.drag-over {
  background-color: rgba(88, 166, 255, 0.1) !important;
  outline: 2px dashed var(--primary);
}

.day-row.weekend-row td {
  background-color: rgba(255, 255, 255, 0.02);
}

.day-row.holiday-row td {
  background-color: rgba(219, 109, 40, 0.05);
}

.holiday-badge {
  font-size: 9px;
  background: rgba(219, 109, 40, 0.2);
  color: var(--warning);
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Alerts Widget : bandeau compact repliable, ne se rouvre jamais tout seul
   (l'état ouvert/fermé n'est piloté que par le clic utilisateur, jamais par le
   rafraîchissement automatique du planning). */
.alerts-widget {
  background: #1c1313;
  border: 1px solid #672626;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 12px;
  overflow: hidden;
}

.alerts-widget-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ff5252;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
}

.alerts-widget-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alerts-widget-count {
  background: #ff5252;
  color: #1c1313;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}

.alerts-widget-chevron {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.alerts-widget.expanded .alerts-widget-chevron {
  transform: rotate(180deg);
}

.alerts-widget-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.alerts-widget.expanded .alerts-widget-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 14px 14px;
  border-top: 1px solid #672626;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.widget-header h4 {
  color: #ff5252;
  font-size: 14px;
  font-weight: 600;
}

.close-btn {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
}

.close-btn:hover {
  color: var(--text-title);
}

#alerts-list {
  list-style: none;
  font-size: 12px;
  color: #ffb4b4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

#alerts-list li {
  padding-left: 14px;
  position: relative;
}

#alerts-list li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-size: 10px;
}


/* Requirements list inputs */
.requirements-inputs-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.requirements-inputs-grid label {
  font-weight: 500;
  color: var(--text-main);
}

.requirements-inputs-grid input {
  width: 60px;
  text-align: center;
}

/* Weekly requirements grid styling */
.requirements-weekly-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.requirements-weekly-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.requirements-weekly-table th, 
.requirements-weekly-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
}

.requirements-weekly-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-title);
  white-space: nowrap;
  text-align: center;
}

.requirements-weekly-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-sidebar);
  z-index: 2;
  padding-left: 10px;
}

.requirements-weekly-table td {
  color: var(--text-main);
  vertical-align: middle;
}

.requirements-weekly-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--bg-sidebar);
  z-index: 2;
  font-weight: 600;
  padding-left: 10px;
}

body.light-theme .requirements-weekly-table th:first-child,
body.light-theme .requirements-weekly-table td:first-child {
  background: #ffffff;
}

.requirements-weekly-table tr:last-child td {
  border-bottom: none;
}

.requirements-weekly-table input[type="number"] {
  width: 32px;
  height: 24px;
  padding: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  color: var(--text-main);
  border-radius: 4px;
  text-align: center;
  font-size: 11px;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.requirements-weekly-table input[type="number"]::-webkit-outer-spin-button,
.requirements-weekly-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.requirements-weekly-table input[type="number"]:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .requirements-weekly-table input[type="number"] {
  background: #ffffff;
  border-color: #d0d7de;
}

body.light-theme .requirements-weekly-table input[type="number"]:focus {
  background: #fdfdfd;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 550px;
  max-width: 95%;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  font-size: 16px;
  color: var(--text-title);
}

.close-modal {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 24px;
}

.close-modal:hover {
  color: var(--text-title);
}

#tech-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
}

.section-header-small {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.section-header-small h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.modal-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* Modal Tabs styling */
.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-tab-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  border-radius: 4px 4px 0 0;
}

body.light-theme .modal-tab-btn {
  color: var(--text-muted);
}
body.light-theme .modal-tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.05);
}
body.light-theme .modal-tab-btn.active {
  color: #0969da;
  border-bottom-color: #0969da;
}

.mt-4 { margin-top: 24px; }
.mt-3 { margin-top: 16px; }
.hidden { display: none !important; }

/* Inline Cell Edit Select dropdown */
.cell-edit-select {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  outline: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}
.cell-edit-select option {
  background-color: var(--bg-sidebar);
  color: var(--text-main);
}

/* Grids side-by-side layout */
.grids-wrapper {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  padding: 4px;
}

.grids-wrapper .grid-table-container {
  flex: 1;
  min-width: 320px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(22, 27, 34, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.col-zoom-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px;
}

.table-title-badge {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.table-title-badge {
  text-align: center;
}

.table-title-badge.group-advisors {
  background: #990000;
  color: var(--text-white);
  border-left: none;
}

.table-title-badge.group-field {
  background: #990000;
  color: var(--text-white);
  border-left: none;
}

/* Modal Checkboxes and fields grids */
.days-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--bg-app);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.day-check {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.day-check input {
  cursor: pointer;
}

.fixed-shifts-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-app);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.fixed-shift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fixed-shift-row span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  width: 50px;
}

.fixed-shift-row select {
  flex: 1;
  padding: 4px 8px !important;
  font-size: 11px !important;
}

/* Login overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-app);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.login-overlay.active {
  display: flex;
}

.login-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
  font-size: 18px;
  color: var(--text-white);
  text-align: center;
  margin-top: 12px;
}

.login-box .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.form-group-login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group-login label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group-login input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group-login input:focus {
  border-color: var(--primary);
}

/* Grids splitter divider */
.resize-divider {
  width: 8px;
  background-color: var(--border-color);
  cursor: col-resize;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.resize-divider:hover, .resize-divider.dragging {
  background-color: var(--primary);
}

/* Print stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
    height: auto !important;
  }
  
  .app-container {
    height: auto !important;
    display: block !important;
  }
  
  .app-header,
  .sidebar,
  .legend,
  .resize-divider,
  .alerts-widget,
  .controls-area,
  #print-btn,
  #admin-logout-btn,
  a[href="mobile.html"] {
    display: none !important;
  }
  
  .main-layout {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .schedule-view {
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }
  
  .grid-card {
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  
  .grids-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    overflow: visible !important;
  }
  
  .grid-table-container {
    min-width: 100% !important;
    flex: 1 1 auto !important;
    border: 1px solid #000000 !important;
    background-color: #ffffff !important;
    overflow: visible !important;
  }
  
  .table-title-badge {
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 10px 0 !important;
  }
  
  .schedule-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  .schedule-table th, 
  .schedule-table td {
    border: 1px solid #000000 !important;
    padding: 6px !important;
    font-size: 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .schedule-table th {
    background: #f0f0f0 !important;
    color: #000000 !important;
    font-weight: bold !important;
  }
  
  .cell-shift {
    border: 1px solid #cccccc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .cell-shift.status-off {
    background: #f0f0f0 !important;
    color: #777777 !important;
  }
  
  .cell-shift.status-cp {
    background: #ffebee !important;
    color: #c62828 !important;
  }
}

/* --- LIGHT THEME AND MOBILE ADMINISTRATIVE ADAPTATIONS --- */

body.light-theme {
  --bg-app: #f6f8fa;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border-color: #d0d7de;
  --text-main: #24292f;
  --text-muted: #57606a;
  --primary: #0969da;
  --primary-hover: #0c8de4;
  --bg-date-col: #eaeef2;
  --text-title: #24292f;
}

body.light-theme .grid-header {
  background: rgba(246, 248, 250, 0.5) !important;
}

body.light-theme .grids-wrapper .grid-table-container {
  background-color: rgba(234, 238, 242, 0.4) !important;
}

body.light-theme .day-row.weekend-row td:first-child {
  background-color: #e2e8f0 !important;
}

body.light-theme .day-row.holiday-row td:first-child {
  background-color: #fed7aa !important;
}

body.light-theme div[style*="background: #0f141c"],
body.light-theme div[style*="background:#0f141c"] {
  background-color: #eaeef2 !important;
}

body.light-theme div[style*="background: #161b22"],
body.light-theme div[style*="background:#161b22"],
body.light-theme div[style*="background: #161b22;"],
body.light-theme div[style*="background:#161b22;"] {
  background-color: #ffffff !important;
}

body.light-theme .logo-area h1,
body.light-theme .date-selector select,
body.light-theme .modal-header h3 {
  color: var(--text-main) !important;
}

body.light-theme .date-selector label {
  color: var(--text-muted) !important;
}

body.light-theme #hub-filter {
  color: var(--text-main) !important;
}

body.light-theme #hub-filter::placeholder {
  color: var(--text-muted) !important;
}

body.light-theme .primary-btn {
  color: #ffffff !important;
}

body.light-theme .primary-btn:hover:not(:disabled) {
  background-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

body.light-theme .alerts-widget {
  background: #fdf2f2 !important;
  border-color: #f5c2c2 !important;
  color: #9b1c1c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .widget-header h4 {
  color: #c81e1e !important;
}

body.light-theme .alerts-widget-banner {
  color: #c81e1e !important;
}

body.light-theme .alerts-widget.expanded .alerts-widget-body {
  border-top-color: #f5c2c2 !important;
}

body.light-theme .alerts-widget-count {
  background: #c81e1e !important;
  color: #fdf2f2 !important;
}

body.light-theme #alerts-list {
  color: #c81e1e !important;
}

body.light-theme #suggestions-box {
  border-top-color: rgba(200, 30, 30, 0.2) !important;
}

body.light-theme #suggestions-box h5 {
  color: #0969da !important;
}

body.light-theme #suggestions-list {
  color: #24292f !important;
}

body.light-theme .cell-shift.status-off {
  background-color: #eaeef2 !important;
  border-color: #d0d7de !important;
  color: #57606a !important;
}

body.light-theme .modal-content {
  background-color: #ffffff !important;
  border-color: #d0d7de !important;
  color: #24292f !important;
}

body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="email"],
body.light-theme input[type="number"],
body.light-theme input[type="date"],
body.light-theme select {
  background-color: #ffffff !important;
  border-color: #d0d7de !important;
  color: #24292f !important;
}

body.light-theme select option {
  background-color: #ffffff !important;
  color: #24292f !important;
}

body.light-theme .item-card {
  background-color: #ffffff !important;
  border-color: #d0d7de !important;
  color: #24292f !important;
}

body.light-theme .item-card h4 {
  color: #24292f !important;
}

body.light-theme .tabs-header {
  background-color: #eaeef2 !important;
}

body.light-theme .tab-btn.active {
  background-color: #ffffff !important;
  color: #0969da !important;
}

/* Écrans laptop/tablette (≤1500px) : le groupe de boutons secondaires de l'en-tête (☰ Menu,
   ⚙️ Configuration, PDF, Échanger, Mobile, thème, Notice...) est trop large pour tenir sur une
   seule ligne à ces résolutions et débordait hors du viewport sans aucun moyen d'y accéder
   (body en overflow:hidden, pas de retour à la ligne sur ce groupe). On réutilise ici le même
   mécanisme de menu déroulant que le mode mobile (le bouton #mobile-menu-btn et le toggle JS
   qui l'accompagne sont déjà indépendants de la largeur d'écran) au lieu d'attendre le seuil
   de 768px, qui ne couvrait que le vrai mobile et laissait les résolutions laptop (1280-1440px)
   sans solution.
*/
@media (max-width: 1500px) {
  .mobile-menu-btn {
    display: block !important;
  }

  .secondary-actions-group {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 24px !important;
    background-color: var(--bg-sidebar) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    padding: 12px !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 100 !important;
  }

  .secondary-actions-group.active {
    display: flex !important;
  }

  .secondary-actions-group .btn,
  .secondary-actions-group a {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  /* Adapter la barre d'onglets pour mobile sur la console d'administration */
  .main-layout {
    flex-direction: column !important;
    height: calc(100vh - 70px) !important;
    position: relative;
    overflow: hidden;
  }
  
  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-right: none !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .tabs-header {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-header .tab-btn {
    flex: 0 0 auto !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }

  #tab-grid-btn {
    display: block !important;
  }

  /* Cache par défaut la grille planning sur mobile */
  .schedule-view {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: var(--bg-app);
    padding: 10px !important;
    flex: 1 1 auto;
  }

  /* Affichage de la grille quand l'onglet Planning est actif */
  .main-layout.grid-active .schedule-view {
    display: flex !important;
    flex-direction: column;
  }

  .main-layout.grid-active .sidebar {
    height: auto !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }
  
  .main-layout.grid-active .sidebar .tabs-content,
  .main-layout.grid-active .sidebar div[style*="padding: 12px"] {
    display: none !important;
  }
  
  .grid-card {
    overflow: visible !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  
  .grids-wrapper {
    flex-direction: column !important;
    gap: 15px !important;
    overflow: auto !important;
    flex: 1 1 auto;
  }
  
  .grid-table-container {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    margin-bottom: 10px;
    flex-shrink: 0;
  }
  
  #grid-splitter {
    display: none !important;
  }
  
  /* Redimensionnement du Header sur mobile */
  .app-header {
    height: auto !important;
    flex-direction: column !important;
    padding: 12px !important;
    gap: 10px !important;
    position: relative;
  }
  
  .controls-area {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  
  .main-actions-group {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .auto-refresh-toggle {
    display: none !important;
  }

  .main-actions-group .btn {
    flex: 1 !important;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .secondary-actions-group {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 12px !important;
    background-color: var(--bg-sidebar) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    padding: 12px !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 100 !important;
  }

  .secondary-actions-group.active {
    display: flex !important;
  }

  .secondary-actions-group .btn,
  .secondary-actions-group a {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  .controls-area .btn,
  .controls-area .date-selector {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  
  /* Fenêtres Modales */
  .modal-content {
    width: 95% !important;
    max-width: 100% !important;
    margin: 10px auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    max-height: 95vh !important;
  }
  
  .legend {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

.week-badge {
  font-size: 9px;
  background: rgba(88, 166, 255, 0.15);
  color: var(--primary);
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 600;
  display: inline-block;
}

/* Styling of Active Subtab in Controls view */
.control-subtabs .btn.active-subtab {
  background-color: var(--primary) !important;
  color: #0d1117 !important;
  font-weight: 600 !important;
  border-color: var(--primary) !important;
}

/* Custom styling for shift category configuration in Besoins tab */
.shift-cat-cb {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Performance Subtabs styling */
.perf-subtabs .btn.active-subtab {
  background-color: var(--primary) !important;
  color: #0d1117 !important;
  font-weight: 600 !important;
  border-color: var(--primary) !important;
}

/* Performance and Yields Tables */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

.perf-table th {
  background-color: var(--bg-input);
  color: var(--text-white);
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.perf-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.01);
}

.perf-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

.perf-table td.editable-cell {
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.perf-table td.editable-cell:hover {
  background-color: rgba(88, 166, 255, 0.1) !important;
}

.perf-table td.editable-cell::after {
  content: "✏️";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.15s;
}

.perf-table td.editable-cell:hover::after {
  opacity: 0.7;
}

.perf-table input.cell-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--primary);
  color: var(--text-white);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
}

/* Team Balance Table specific styles */
.balance-table th {
  text-align: center;
}
.balance-table td {
  text-align: center;
}

/* Hide grid splitters on mobile */
@media (max-width: 768px) {
  #grid-splitter-1, #grid-splitter-2 {
    display: none !important;
  }
}

/* --- BADGE & TOAST STYLES FOR RELEASE 1.5.0 --- */

.badge-red {
  display: inline-block;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Premium Notification Bell Button */
.notification-bell-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  padding: 0 !important;
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-white) !important;
  transform: translateY(-1px);
}

/* Redesigned Red Badge with glowing shadow */
.notification-bell-btn .badge-red {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background-color: var(--danger) !important;
  color: white !important;
  border-radius: 50% !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  font-weight: bold !important;
  box-shadow: 0 0 0 2px var(--bg-sidebar) !important;
}

/* Pulse animation when there are pending notifications */
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
  20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}

@keyframes pulse-red-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(235, 94, 85, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(235, 94, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(235, 94, 85, 0);
  }
}

.notification-bell-btn.has-notifications {
  color: #ff9f43 !important; /* Amber bell color */
  border-color: rgba(255, 159, 67, 0.4) !important;
  background: rgba(255, 159, 67, 0.08) !important;
  animation: pulse-red-glow 2s infinite !important;
}

.notification-bell-btn.has-notifications:hover {
  color: #ffb066 !important;
  border-color: rgba(255, 159, 67, 0.6) !important;
  background: rgba(255, 159, 67, 0.15) !important;
}

.notification-bell-btn.has-notifications .bell-icon {
  display: inline-block;
  animation: bell-ring 2.5s ease infinite;
}

/* Light Theme support */
body.light-theme .notification-bell-btn {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: #e1e4e8 !important;
  color: #57606a !important;
}

body.light-theme .notification-bell-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: #d0d7de !important;
  color: #24292f !important;
}

body.light-theme .notification-bell-btn .badge-red {
  box-shadow: 0 0 0 2px #ffffff !important;
}

body.light-theme .notification-bell-btn.has-notifications {
  color: #db6d28 !important;
  border-color: rgba(219, 109, 40, 0.3) !important;
  background: rgba(219, 109, 40, 0.05) !important;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  animation: slideInStyle 0.3s ease forwards;
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-danger {
  border-left-color: var(--danger);
}

@keyframes slideInStyle {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.weekly-target-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.weekly-target-table th, .weekly-target-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.weekly-target-table th {
  background-color: var(--bg-input);
  font-weight: 600;
  color: var(--text-white);
}

body.light-theme .weekly-target-table th {
  background-color: #f6f8fa;
  color: var(--text-main);
}

body.light-theme .perf-table th,
body.light-theme .balance-table th {
  background-color: #eaeef2 !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

body.light-theme .perf-table td,
body.light-theme .balance-table td {
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

body.light-theme .perf-table input.cell-input {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

body.light-theme .legend-item {
  color: var(--text-main) !important;
}

body.light-theme .list-item h4 {
  color: var(--text-title) !important;
}



