:root {
  --orange: #dc5c3b;
  --orange-dark: #892e1f;
  --orange-light: rgba(220, 92, 59, 0.1);
  --blue-dark: #142136;
  --blue-mid: #1a2d4a;
  --blue-light: #f2fafa;
  --gold: #cdc095;
  --turquoise: #6bdbdb;
  --turquoise-dark: #459699;
  --green: #99c454;
  --yellow: #ffbd1c;
  --white: #ffffff;
  --beige: #f5f0e8;
  --beige-light: #faf7f2;
  --beige-dark: #ebe5da;
  --red: #e74c3c;
  --shadow: 0 4px 16px rgba(20, 33, 54, 0.10), 0 1px 4px rgba(20, 33, 54, 0.06);
  --shadow-hover: 0 10px 36px rgba(20, 33, 54, 0.16), 0 2px 8px rgba(20, 33, 54, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 4px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--beige);
  color: var(--blue-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ==================== LAYOUT ==================== */

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: var(--blue-dark);
  color: var(--white);
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 40px;
  max-width: 1400px;
}

/* ==================== SIDEBAR ==================== */

.logo {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--orange);
}

.logo-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 25px;
  letter-spacing: 0.5px;
}

.user-info {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.user-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.nav-menu {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-item.active {
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
}

.nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.admin-toggle.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.admin-toggle:not(.active) {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.btn-logout {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
  border-color: rgba(231, 76, 60, 0.3);
}

/* ==================== HEADERS ==================== */

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.view-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--blue-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.view-subtitle {
  font-size: 16px;
  color: rgba(20, 33, 54, 0.5);
  font-weight: 400;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: rgba(20, 33, 54, 0.2); cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid rgba(20, 33, 54, 0.1);
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateX(3px);
}

.btn-small.danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(20, 33, 54, 0.04);
  border: 1px solid rgba(20, 33, 54, 0.08);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-icon-small:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  transform: translateY(-1px);
}

.btn-icon-small.danger:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: var(--red);
  color: var(--red);
}

/* ==================== STATS ==================== */

.search-bar-wrapper {
  margin-bottom: 16px;
}
.search-bar {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--blue-dark);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.search-bar:focus {
  border-color: var(--turquoise);
}
.search-bar::placeholder {
  color: rgba(20, 33, 54, 0.35);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.stat-card-dark {
  background: var(--blue-dark);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stat-card-dark::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.stat-label {
  font-size: 14px;
  color: rgba(20, 33, 54, 0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-card-dark .stat-label {
  color: rgba(255, 255, 255, 0.5);
}

.stat-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 1px;
  line-height: 1;
}

.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }

.stat-value-euro {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 4px;
}
.stat-value-euro.positive { color: var(--green); }
.stat-value-euro.negative { color: var(--red); }
.stat-card-dark .stat-value-euro { color: rgba(255, 255, 255, 0.7); }

/* ==================== CARDS ==================== */

.projects-list {
  display: grid;
  gap: 12px;
}

/* Legacy project-card classes kept for compatibility */

.project-card-client {
  font-size: 15px;
  color: rgba(20, 33, 54, 0.5);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige-dark);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 13px;
  color: rgba(20, 33, 54, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.metric-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
}

.metric-value-euro {
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  color: var(--blue-dark);
  opacity: 0.6;
  letter-spacing: 0.5px;
}
.metric-value-euro.positive { color: var(--green); opacity: 1; }
.metric-value-euro.negative { color: var(--red); opacity: 1; }

.euro-inline {
  font-style: normal;
  font-size: 12px;
  color: var(--blue-dark);
  opacity: 0.6;
}

.status-icon {
  font-size: 14px;
  margin-left: 6px;
}
.status-ok { color: #16a34a; }
.status-over { color: #dc2626; }
.status-no-estimate { color: #9ca3af; font-size: 12px; }

.project-dates {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(20, 33, 54, 0.4);
  margin-top: 2px;
}

.warning-icon {
  color: #ea580c;
  font-size: 14px;
  margin-left: 4px;
}
.stat-card-dark .warning-icon { color: #fbbf24; }

/* ==================== PROGRESS BAR ==================== */

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-bar-track {
  flex: 1;
  height: 10px;
  background: var(--beige-dark);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.progress-bar-fill.normal { background: linear-gradient(90deg, var(--green), var(--turquoise)); }
.progress-bar-fill.warning { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.progress-bar-fill.over { background: linear-gradient(90deg, var(--orange), var(--red)); }

.progress-label {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--blue-dark);
  min-width: 50px;
  text-align: right;
  letter-spacing: 0.5px;
}

/* ==================== ADMIN ACTIONS ==================== */

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

/* ==================== TABLE ==================== */

/* ==================== CARD SECTION (bandeau bleu) ==================== */

.card-section {
  background: var(--beige-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--beige-dark);
}

.card-section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--orange);
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  height: 56px;
}

.card-title-bar-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--white);
}

.card-title-bar-rate {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.card-title-bar-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.card-section-body {
  padding: 12px 16px;
  background: var(--beige-light);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-on-dark:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.card-title-bar-with-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.card-title-bar-left {
  flex-shrink: 0;
  min-width: 160px;
}

.card-title-bar-metrics {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.card-metric-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.card-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.card-metric-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--orange);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.card-metric-val.negative {
  color: var(--red) !important;
}

.warning-icon-light {
  color: #fbbf24;
  font-size: 12px;
}

.card-title-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-section-body-slim {
  padding: 8px 16px;
}

.btn-icon-on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-icon-on-dark:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-icon-on-dark.danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.phase-section {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phase-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 18px 24px;
  background: var(--blue-dark);
  color: var(--white);
}

.tasks-table {
  display: flex;
  flex-direction: column;
}

.table-header, .table-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  padding: 16px 24px;
}

.table-header {
  background: rgba(20, 33, 54, 0.03);
  border-bottom: 1px solid var(--beige-dark);
  font-size: 13px;
  font-weight: 700;
  color: rgba(20, 33, 54, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 24px;
}

.table-row {
  border-bottom: 1px solid var(--beige-dark);
  transition: all 0.2s ease;
}

.table-row:hover {
  background: rgba(220, 92, 59, 0.03);
  transform: translateX(3px);
}


.table-row:last-child { border-bottom: none; }

.table-cell {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}

.table-cell.mono {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.table-cell.small { font-size: 14px; color: rgba(20, 33, 54, 0.5); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--turquoise);
  color: var(--blue-dark);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* ==================== MODAL ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 33, 54, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(20, 33, 54, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.modal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ==================== FORMS ==================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(20, 33, 54, 0.6);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  color: var(--blue-dark);
  background: var(--white);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 92, 59, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.form-actions button {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* ==================== BREADCRUMB ==================== */

.breadcrumb {
  background: none;
  border: none;
  color: var(--orange);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.breadcrumb:hover { color: var(--orange-dark); transform: translateX(-3px); }

/* ==================== LOGIN ==================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.login-card {
  background: var(--white);
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.login-title-accent {
  color: var(--orange);
}

.login-subtitle {
  color: rgba(20, 33, 54, 0.5);
  margin-bottom: 36px;
  font-size: 16px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 92, 59, 0.1);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.login-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

.login-error {
  margin-top: 16px;
  color: var(--red);
  font-size: 15px;
  display: none;
  padding: 10px 14px;
  background: rgba(231, 76, 60, 0.08);
  border-radius: var(--radius-sm);
}

.login-hint {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 33, 54, 0.08);
  font-size: 14px;
  color: rgba(20, 33, 54, 0.4);
}

/* ==================== NOTIFICATION ==================== */

.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  z-index: 2000;
  animation: slideIn 0.3s ease;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.notification.success {
  background: var(--blue-dark);
  color: var(--green);
  border-left: 4px solid var(--green);
}

.notification.error {
  background: var(--blue-dark);
  color: var(--red);
  border-left: 4px solid var(--red);
}

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

/* ==================== ADMIN SECTIONS ==================== */

.admin-grid {
  display: grid;
  gap: 24px;
}

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

.admin-section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
}

.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.admin-item:hover {
  border-color: rgba(220, 92, 59, 0.15);
  transform: translateX(3px);
}

.resource-admin-info {
  font-weight: 600;
  font-size: 15px;
}

.resource-admin-detail {
  font-size: 14px;
  color: rgba(20, 33, 54, 0.5);
  margin-top: 2px;
}

/* ==================== SUB SECTIONS ==================== */

.sub-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--beige-dark);
}

.sub-section-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(20, 33, 54, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sub-item:hover {
  border-color: rgba(220, 92, 59, 0.15);
  transform: translateX(3px);
}

.sub-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sub-item-details {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: rgba(20, 33, 54, 0.5);
}

.sub-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-item-percent {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  width: 60px;
  text-align: right;
  letter-spacing: 0.5px;
}

/* ==================== RESOURCE VIEW ==================== */

.resource-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.resource-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.resource-role {
  font-size: 15px;
  color: rgba(20, 33, 54, 0.5);
}

.resource-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.recent-entries {
  padding-top: 20px;
  border-top: 1px solid var(--beige-dark);
}

.collapsible-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(20, 33, 54, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.collapsible-toggle:hover {
  color: var(--orange);
}

.collapsible-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.collapsible-arrow.open {
  transform: rotate(90deg);
}

.recent-entry {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--beige-dark);
  font-size: 15px;
}

.recent-entry-task { font-weight: 400; }
.recent-entry-project { font-size: 14px; color: rgba(20, 33, 54, 0.4); }
.recent-entry-hours { font-family: 'Bebas Neue', cursive; font-size: 16px; color: var(--orange); font-weight: 400; }
.recent-entry-date { font-size: 13px; color: rgba(20, 33, 54, 0.4); }

.resource-project-group { margin-bottom: 12px; }
.resource-project-group:last-child { margin-bottom: 0; }
.resource-project-group-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  color: var(--blue-dark);
  padding: 6px 0 4px;
  border-bottom: 2px solid var(--turquoise);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.resource-project-group-values {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.resource-project-group-hours {
  color: var(--orange);
  font-size: 18px;
}
.resource-project-group-raf {
  color: var(--blue-dark);
  font-size: 18px;
}
.recent-entry-values {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-align: right;
}
.recent-entry-raf {
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  color: var(--blue-dark);
  font-weight: 400;
}

/* ==================== TYPOLOGIES ==================== */

.typology-line-wrapper {
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--beige-dark);
  overflow: hidden;
}
.typology-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.typology-line-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.typology-line-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
}
.typology-line-info {
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.typology-line-tasks {
  font-size: 13px;
  color: rgba(20, 33, 54, 0.4);
}
.typology-line-stat {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  color: var(--orange);
}
.typology-line-wrapper > .collapsible-content {
  padding: 0 16px 12px;
}
.typology-project-group {
  margin-bottom: 8px;
}
.typology-project-group:last-child { margin-bottom: 0; }
.typology-project-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Bebas Neue', cursive;
  font-size: 17px;
  color: var(--blue-dark);
  padding: 4px 0;
  border-bottom: 2px solid var(--turquoise);
  margin-bottom: 4px;
}
.typology-project-stats {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--orange);
}
.typology-task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0 3px 12px;
  font-size: 14px;
  color: var(--blue-dark);
}
.typology-task-stats {
  display: flex;
  gap: 14px;
  font-family: 'Bebas Neue', cursive;
  font-size: 15px;
  color: var(--orange);
}
.typology-line-raf.positive { color: #16a34a; }
.typology-line-raf.negative { color: #dc2626; }

/* ==================== MODAL INFO BOX ==================== */

.modal-info-box {
  padding: 16px;
  background: var(--blue-dark);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--white);
}

.modal-info-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-info-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== TASK HISTORY MODAL ==================== */

.task-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.task-history-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige-dark);
}

.task-history-entry:last-child {
  border-bottom: none;
}

.task-history-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
}

.task-history-resource {
  font-size: 14px;
  color: rgba(20, 33, 54, 0.5);
  margin-top: 2px;
}

.task-history-right {
  text-align: right;
}

.task-history-hours {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  color: var(--orange);
  letter-spacing: 0.5px;
}

.task-history-raf {
  font-size: 13px;
  color: var(--turquoise-dark);
  font-weight: 500;
}

.task-history-raf.not-set {
  color: rgba(20, 33, 54, 0.3);
  font-weight: 400;
  font-style: italic;
}

/* ==================== MISC ==================== */

.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.checkbox-label .form-label { margin: 0; }

.empty-inline {
  padding: 24px;
  text-align: center;
  color: rgba(20, 33, 54, 0.3);
  font-size: 15px;
}

.empty-recent {
  color: rgba(20, 33, 54, 0.3);
  font-size: 15px;
  padding: 8px 0;
}

.password-hint {
  font-size: 14px;
  color: rgba(20, 33, 54, 0.4);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: rgba(20, 33, 54, 0.3);
}

/* ==================== TASK ASSIGNMENT ==================== */

.assignment-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.assignment-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--beige);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.assignment-check-item:hover {
  border-color: var(--orange);
  background: rgba(220, 92, 59, 0.05);
}

.assignment-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.assignment-check-role {
  margin-left: auto;
  font-size: 13px;
  color: rgba(20, 33, 54, 0.4);
}

/* ==================== TIMESHEET WEEKLY VIEW ==================== */

.timesheet-resource-select {
  margin-bottom: 16px;
}

.timesheet-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.timesheet-grid-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timesheet-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.timesheet-table th,
.timesheet-table td {
  padding: 0;
  border: 1px solid var(--beige-dark);
  vertical-align: middle;
}

.timesheet-th-task {
  width: 30%;
  padding: 14px 16px !important;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.timesheet-th-day {
  padding: 14px 8px !important;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.timesheet-th-total {
  width: 8%;
  padding: 14px 8px !important;
  background: var(--blue-dark);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.timesheet-today {
  background-color: rgba(220, 92, 59, 0.07) !important;
}

th.timesheet-today {
  background-color: rgba(220, 92, 59, 0.3) !important;
}

.timesheet-td-task {
  padding: 10px 16px !important;
}

.timesheet-task-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.3;
}

.timesheet-project-name {
  font-size: 12px;
  color: rgba(20, 33, 54, 0.45);
}

.timesheet-td-cell {
  height: 48px;
  text-align: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--blue-dark);
  cursor: pointer;
  transition: background-color 0.15s ease;
  letter-spacing: 0.5px;
}

.timesheet-td-cell:hover {
  background-color: rgba(220, 92, 59, 0.10) !important;
}

.timesheet-cell-hours {
  display: block;
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--blue-dark);
  line-height: 1.2;
}

.timesheet-cell-raf {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: var(--turquoise-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Popover */
.timesheet-popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(20, 33, 54, 0.15);
}

.timesheet-popover {
  position: fixed;
  width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(20, 33, 54, 0.2);
  padding: 16px;
  z-index: 901;
  animation: slideUp 0.15s ease;
}

.timesheet-popover-field {
  margin-bottom: 12px;
}

.timesheet-popover-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(20, 33, 54, 0.5);
  margin-bottom: 4px;
}

.timesheet-popover-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--blue-dark);
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
  box-sizing: border-box;
}

.timesheet-popover-input::-webkit-outer-spin-button,
.timesheet-popover-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.timesheet-popover-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(220, 92, 59, 0.1);
}

.timesheet-popover-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.timesheet-popover-btn {
  flex: 1;
  padding: 8px 0 !important;
  font-size: 13px !important;
}

.timesheet-td-rowtotal {
  text-align: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--orange);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.timesheet-td-grandtotal {
  text-align: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--orange);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.timesheet-totals-row {
  background: rgba(20, 33, 54, 0.03);
  border-top: 2px solid var(--blue-dark) !important;
}

.timesheet-totals-row td {
  padding: 12px 8px !important;
}

/* ==================== PLANNING VIEW ==================== */

.planning-table-header,
.planning-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.8fr 0.8fr 0.7fr 0.7fr 0.7fr 1.2fr;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--beige-dark);
}

.planning-table-header {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(20, 33, 54, 0.5);
  background: var(--beige);
  border-radius: 0;
}

.planning-table-row:last-child {
  border-bottom: none;
}

.planning-table-row:hover {
  background: var(--orange-light);
}

.planning-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.planning-status-red {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
}

.planning-status-green {
  background: rgba(153, 196, 84, 0.15);
  color: var(--green);
}

.planning-status-blue {
  background: rgba(107, 219, 219, 0.15);
  color: var(--turquoise-dark);
}

.planning-status-gray {
  background: rgba(231, 76, 60, 0.08);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==================== MILESTONES ==================== */

.milestone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
}

.milestone-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.milestone-badge-late {
  background: rgba(231, 76, 60, 0.12);
  color: var(--red);
}

.milestone-badge-urgent {
  background: rgba(255, 189, 28, 0.15);
  color: #b8860b;
}

.milestone-badge-ok {
  background: rgba(153, 196, 84, 0.15);
  color: var(--green);
}

.milestone-badge-nodate {
  background: rgba(20, 33, 54, 0.08);
  color: rgba(20, 33, 54, 0.5);
}

.milestone-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--beige-dark);
  border-radius: 3px;
  overflow: hidden;
}

.milestone-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--turquoise));
  transition: width 0.4s ease;
}

.milestone-detail-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige-dark);
}

.milestone-detail-item:last-child {
  border-bottom: none;
}

/* ==================== PROJECT COMMENTS ==================== */

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.comment-item {
  position: relative;
  padding: 12px 36px 12px 0;
  border-bottom: 1px solid var(--beige-dark);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
}

.comment-date {
  font-size: 12px;
  color: rgba(20, 33, 54, 0.4);
}

.comment-content {
  font-size: 15px;
  color: var(--blue-dark);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-delete {
  position: absolute;
  top: 12px;
  right: 0;
  background: none;
  border: none;
  font-size: 14px;
  color: rgba(20, 33, 54, 0.25);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.comment-delete:hover {
  color: var(--red);
  background: rgba(231, 76, 60, 0.08);
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 8px;
}

.comment-textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(20, 33, 54, 0.12);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--blue-dark);
  resize: vertical;
  min-height: 40px;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 92, 59, 0.1);
}

.comment-textarea::placeholder {
  color: rgba(20, 33, 54, 0.35);
}

.comment-send-btn {
  padding: 10px 20px !important;
  font-size: 14px !important;
  flex-shrink: 0;
}

.comment-visibility-select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.comment-visibility-select option {
  background: var(--blue-dark);
  color: var(--white);
}

.chat-modal-messages {
  max-height: 400px;
  overflow-y: auto;
}

.comment-chat-inline {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  vertical-align: middle;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.comment-chat-inline:hover {
  opacity: 1;
}

/* ==================== PROJECT CHAT PANEL ==================== */

.project-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  background: var(--beige-light);
  border-radius: var(--radius);
  border: 1px solid var(--beige-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card-row .card-section {
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  grid-column: 1 / span 2;
  border-right: 1px solid var(--beige-dark);
}

.project-card-row .card-section:hover {
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.project-card-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--orange);
}

.project-chat-panel {
  background: transparent;
  border-left: 1px solid var(--beige-dark);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  grid-column: 3;
}

.project-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  height: 56px;
}

.project-chat-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  letter-spacing: 1px;
}

.project-chat-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-chat-visibility-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-chat-visibility-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.project-chat-visibility-select option {
  background: var(--blue-dark);
  color: var(--white);
}

.project-chat-messages {
  flex: 1;
  padding: 12px 16px 0;
  overflow-y: auto;
  min-height: 180px;
  max-height: 260px;
}

.project-chat-panel .comment-list {
  margin-bottom: 8px;
}

.project-chat-panel .comment-item {
  padding-right: 28px;
}

.project-chat-panel .comment-content {
  font-size: 14px;
}

.project-chat-latest {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--beige-dark);
}

.project-chat-history {
  margin-top: 10px;
}

.project-chat-summary {
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(20, 33, 54, 0.6);
  padding: 6px 0 10px;
  list-style: none;
}

.project-chat-summary::-webkit-details-marker {
  display: none;
}

.project-chat-empty {
  font-size: 14px;
  color: rgba(20, 33, 54, 0.45);
  padding: 8px 0;
}

.project-chat-form {
  padding: 10px 16px 14px;
  margin-top: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  .project-card-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-chat-panel {
    min-height: 280px;
    border-left: none;
    border-top: 1px solid var(--beige-dark);
    grid-column: 1;
  }
}

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

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px; }
  .view-title { font-size: 32px; }
  .project-metrics { grid-template-columns: repeat(2, 1fr); }
  .table-header, .table-row { font-size: 12px; padding: 12px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-title-bar-with-metrics { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-title-bar-metrics { justify-content: flex-start; gap: 12px; }
  .card-metric-val { font-size: 17px; }
  .card-title-bar-actions { justify-content: flex-end; }
  .project-card-row { grid-template-columns: 1fr; }
  .project-chat-messages { max-height: 220px; }
  .timesheet-th-task { width: 25%; font-size: 11px; padding: 10px 8px !important; }
  .timesheet-th-day { font-size: 11px; padding: 10px 4px !important; }
  .timesheet-td-cell { font-size: 16px; height: 40px; }
  .timesheet-popover { width: 190px; padding: 12px; }
  .timesheet-td-rowtotal,
  .timesheet-td-grandtotal { font-size: 16px; }
  .timesheet-nav { gap: 6px; }
  .timesheet-nav .btn-secondary { padding: 8px 12px; font-size: 13px; }
  .planning-table-header,
  .planning-table-row { grid-template-columns: 1.5fr 1fr 1fr 0.7fr 0.7fr 0.6fr 0.6fr 0.6fr 1fr; font-size: 12px; padding: 8px 10px; }
  .planning-status { font-size: 10px; padding: 2px 6px; }
  .milestone-badge { font-size: 10px; }
}
