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

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  background: #005a9c;
  color: #fff;
}

.site-header .logo {
  order: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

/* Bell icon + hamburger button — visible at all sizes */
.nav-header-actions {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

/* Hamburger — only on mobile */
.nav-hamburger {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.15); }
.nav-hamburger svg { display: block; width: 1.4rem; height: 1.4rem; }

/* Main nav — mobile: full-width collapsible dropdown */
.main-nav {
  order: 3;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 0.5rem;
}
.main-nav--open { display: flex; }

.main-nav .nav-user {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  padding: 0 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 0.35rem;
}

.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.main-nav .nav-section-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0.35rem 0;
}

/* Desktop: horizontal pill nav, hamburger hidden */
@media (min-width: 601px) {
  .nav-hamburger { display: none; }

  .nav-header-actions { order: 3; margin-left: 0; }

  .main-nav {
    order: 2;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    flex: 1;
    gap: 0.35rem;
    padding: 0;
    border-top: none;
    margin-top: 0;
    margin-left: 1rem;
  }

  .main-nav .nav-user {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border-bottom: none;
    margin-bottom: 0;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
  }
  .main-nav a:hover { background: rgba(255,255,255,0.28); }

  .main-nav .nav-section-sep { display: none; }
}

@media (max-width: 600px) {
  .site-header { padding: 0.65rem 1rem; }
}

.container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Flash messages */
.flash-messages { list-style: none; margin-bottom: 1.5rem; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.flash--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash--danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash--warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Forms */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #005a9c;
  box-shadow: 0 0 0 2px rgba(0,90,156,.2);
}

.form-group .field-error {
  color: #721c24;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.form-hint {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.25rem;
}

.btn[hidden] { display: none; }
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn-primary { background: #005a9c; color: #fff; }
.btn-primary:hover { background: #004578; }
.btn-full { width: 100%; }

/* Invite section */
.invite-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.invite-title { font-size: 1rem; margin: 0 0 0.4rem; }
.invite-desc { font-size: 0.88rem; color: #555; margin: 0 0 0.75rem; }
.invite-link-row { display: flex; gap: 0.5rem; align-items: center; }
.invite-link-input {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  color: #374151;
  min-width: 0;
}
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-wa:hover { background: #1ebe5d; color: #fff; }

.form-footer {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  text-align: center;
  color: #555;
}

.form-footer a { color: #005a9c; }

/* Selector de tipo de publicación */
.tipo-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tipo-opcion {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}

.tipo-opcion:hover {
  border-color: #005a9c;
  background: #f0f6ff;
}

.tipo-opcion input[type="radio"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #005a9c;
}

.tipo-opcion:has(input:checked) {
  border-color: #005a9c;
  background: #f0f6ff;
}

.tipo-texto {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tipo-label {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1rem;
}

.tipo-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
}

.form-hint-text {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Cuadrícula de noches (junte) */
.noches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.noche-opcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.5rem;
  min-width: 58px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.noche-opcion input[type="checkbox"] { display: none; }

.noche-opcion:has(input:checked) {
  border-color: #005a9c;
  background: #f0f6ff;
}

.noche-dia {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1a1a1a;
}

.noche-fecha {
  font-size: 0.72rem;
  color: #666;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.site-footer a {
  font-size: 0.88rem;
  color: #005a9c;
  text-decoration: none;
  opacity: 0.8;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Matches section */
.matches-section { margin-bottom: 2rem; }

.matches-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.match-card {
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.match-card.match--confirmado_parcial { border-left-color: #3b82f6; }

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.match-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.match-badge--confirmado_parcial { background: #dbeafe; color: #1e40af; }
.match-badge--parcial { background: #fed7aa; color: #9a3412; }

.match-aviso-parcial {
  font-size: 0.82rem;
  color: #92400e;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 0.35rem 0.6rem;
  margin: 0.5rem 0 0.25rem;
  border-radius: 0 4px 4px 0;
}

.match-usuario { font-weight: 600; font-size: 0.9rem; }

.match-turnos { margin-bottom: 0.75rem; }

.match-turno {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.match-turno-label {
  font-weight: 600;
  margin-right: 0.3rem;
}

.match-acciones { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.match-mensaje { font-style: italic; color: #374151; background: #f9fafb; border-left: 3px solid #d1d5db; padding: 0.5rem 0.75rem; margin: 0.5rem 0 0; border-radius: 0 4px 4px 0; font-size: 0.9rem; }
.mensaje-textarea { width: 100%; padding: 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 1rem; resize: vertical; }
.nueva-franja-section { background: #f0f6ff; border: 1px solid #c7ddf5; border-radius: 10px; padding: 1.25rem 1.5rem; }
.nueva-franja-section h2 { color: #005a9c; margin-bottom: 0.25rem; }
.nueva-franja-hint { color: #555; font-size: 0.9rem; margin-bottom: 1rem; }
.nueva-franja-form { }
.franja-fields { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.franja-fields .form-group { flex: 1; min-width: 120px; margin-bottom: 0; }

.match-esperando {
  font-size: 0.85rem;
  color: #1e40af;
  font-style: italic;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.88rem; }
.btn-secondary { background: #e5e7eb; color: #1a1a1a; }
.btn-secondary:hover { background: #d1d5db; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

.pub-acciones { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

/* Publication cards (dashboard — own publications) */
.publicaciones-list { list-style: none; padding: 0; margin: 0; }
.publicacion-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-left: 4px solid #9ca3af;
  list-style: none;
}
.publicacion--abierta              { border-left-color: #16a34a; }
.publicacion--parcialmente_resuelta{ border-left-color: #2563eb; }
.publicacion--confirmada           { border-left-color: #059669; }
.publicacion--cancelada            { border-left-color: #9ca3af; }
.publicacion--caducada             { border-left-color: #ef4444; }

.tipo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.tipo-badge--cambio  { background: #dbeafe; color: #1e40af; }
.tipo-badge--regalo  { background: #dcfce7; color: #15803d; }
.tipo-badge--peticion { background: #fef3c7; color: #92400e; }
.tipo-badge--junte      { background: #ede9fe; color: #5b21b6; }
.tipo-badge--cambio-dia { background: #ccfbf1; color: #0f766e; }
.tipo-badge--interes    { background: #ffedd5; color: #c2410c; }
.tipo-badge--sintetica  { background: #e0e7ff; color: #3730a3; }
.tipo-badge--planilla   { background: #d1fae5; color: #065f46; }
.tipo-badge--admin      { background: #e5e7eb; color: #374151; }
.sintetica-nota         { font-size: 0.8rem; color: #6b7280; margin: 0.25rem 0 0.5rem; font-style: italic; }

.estado-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.estado--abierta               { background: #dcfce7; color: #15803d; }
.estado--parcialmente_resuelta { background: #dbeafe; color: #1d4ed8; }
.estado--confirmada            { background: #d1fae5; color: #065f46; }
.estado--cancelada             { background: #f3f4f6; color: #6b7280; }
.estado--caducada              { background: #fee2e2; color: #b91c1c; }

.turnos-cedidos, .turnos-aceptados { font-size: 0.9rem; margin-bottom: 0.4rem; }

.dashboard-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1.5px solid #e5e7eb; }
.dashboard-header h1 { margin-bottom: 0; }
.dashboard-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dashboard-actions { margin-top: 2rem; }
.dashboard-tabs { background: #f0f4f8; border-radius: 10px; padding: 0.75rem; margin-bottom: 1.25rem; }
.dashboard-tabs .estado-tabs { margin-bottom: 0; }
.estado-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.estado-tab { flex: 1 1 calc(33% - 0.4rem); padding: 0.45rem 0.5rem; text-decoration: none; color: #555; border-radius: 6px; font-size: 0.88rem; border: 1.5px solid #ddd; background: #f7f7f7; text-align: center; white-space: nowrap; }
.estado-tab:hover { background: #ebebeb; color: #1a1a1a; }
.estado-tab--active { color: #fff; background: #005a9c; border-color: #005a9c; font-weight: 600; }
.estado-tabs--compact .estado-tab { flex: 0 0 auto; }
.tab-count { font-size: 0.82em; opacity: 0.8; }

/* Publish / Edit form */
.form-container { max-width: 660px; margin: 2rem auto; padding: 0 1rem; }
.form-container > h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.turnos-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-top: 3px solid #e5e7eb;
}
.turnos-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f3f4f6;
}
.turnos-section--ceder  { border-top-color: #f87171; }
.turnos-section--ceder h2  { color: #b91c1c; }
.turnos-section--aceptar { border-top-color: #34d399; }
.turnos-section--aceptar h2 { color: #065f46; }

.turno-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.turno-row-campo { flex: 1; min-width: 140px; }
.turno-row-campo label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.turno-row-campo input[type="date"],
.turno-row-campo select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  color: #1a1a1a;
}
.turno-row-campo input[type="date"]:focus,
.turno-row-campo select:focus {
  outline: none;
  border-color: #005a9c;
  box-shadow: 0 0 0 2px rgba(0,90,156,.15);
}
.btn-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  align-self: flex-end;
}
.btn-remove:hover { background: #fee2e2; }

.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* Admin panel */
.admin-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.admin-nav { min-width: 160px; background: #fff; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-link { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; color: #1a1a1a; text-decoration: none; font-size: 0.95rem; }
.admin-nav-link:hover { background: #f0f0f0; }
.admin-nav-link.active { background: #005a9c; color: #fff; }
.admin-content { flex: 1; min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.admin-stat-card { background: #fff; border-radius: 8px; padding: 1.25rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; color: inherit; transition: box-shadow .15s; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-stat-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,.14); }
.admin-stat-num { font-size: 2rem; font-weight: 700; color: #005a9c; }
.admin-stat-label { font-size: 0.85rem; color: #555; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-top: 1.25rem; }
.admin-table th { background: #f5f5f5; text-align: left; padding: 0.6rem 0.85rem; font-size: 0.82rem; text-transform: uppercase; color: #555; }
.admin-table td { padding: 0.6rem 0.85rem; border-top: 1px solid #e5e7eb; font-size: 0.92rem; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }

/* Feedback cards */
.fb-bulk-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #f5f7fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.6rem 0.85rem; margin-top: 1.25rem; }
.fb-select-all-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; cursor: pointer; user-select: none; }
.fb-list { list-style: none; padding: 0; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.fb-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.85rem 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fb-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.fb-checkbox-wrap { display: flex; align-items: center; cursor: pointer; }
.fb-checkbox { width: 1rem; height: 1rem; cursor: pointer; }
.fb-tipo-badge { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.fb-tipo--error { background: #fee2e2; color: #991b1b; }
.fb-tipo--sugerencia { background: #dbeafe; color: #1e40af; }
.fb-tipo--recuperacion { background: #fef3c7; color: #92400e; }
.fb-reset-form { margin-top: 0.5rem; }
.btn-warning { background: #f59e0b; color: #fff; border: none; }
.btn-warning:hover { background: #d97706; }
.fb-fecha { font-size: 0.8rem; color: #888; margin-left: auto; white-space: nowrap; }
.fb-descripcion { font-size: 0.92rem; color: #1a1a1a; line-height: 1.5; margin: 0 0 0.5rem; white-space: pre-wrap; word-break: break-word; }
.fb-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #666; border-top: 1px solid #f0f0f0; padding-top: 0.4rem; }
.fb-meta-item { display: inline-flex; align-items: center; }
.fb-email { color: #005a9c; text-decoration: none; }
.fb-email:hover { text-decoration: underline; }
.admin-actions { white-space: nowrap; display: flex; gap: 0.35rem; }
.empty-cell { text-align: center; color: #aaa; padding: 2rem !important; }
.admin-inline-form { background: #fff; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 0.5rem; }
.inline-form-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.inline-form-row input[type=text], .inline-form-row select { flex: 1; min-width: 160px; }
.select-inline { flex: 0 0 auto; }
.admin-form { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); max-width: 600px; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.badge-admin { background: #2563eb; color: #fff; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: auto; }
@media (max-width: 640px) {
  /* En columna, el eje cruzado pasa a ser horizontal: sin "stretch" el
     admin-content se dimensiona por su contenido (shrink-to-fit) en vez de
     ocupar el ancho disponible, lo que rompe cualquier contención por
     overflow-x de sus descendientes (p. ej. el scroll horizontal de los
     gráficos de analytics). */
  .admin-layout { flex-direction: column; align-items: stretch; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; min-width: unset; }
}

/* Cambios publicados */
.cambios-page { }
.cambios-filtro { background: #fff; border-radius: 8px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1.5rem; }
.cambios-filtro-fields { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cambios-filtro-fields .form-group { flex: 1; min-width: 140px; margin-bottom: 0; }
.cambios-filtro-actions { display: flex; gap: 0.5rem; }
.publicacion-card--ajena { background: #fff; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); border-left: 4px solid #005a9c; list-style: none; }
.pub-acciones--ajena { margin-top: 0.6rem; }
.mmi-selects { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.mmi-form-group { margin-bottom: 0; }
.pub-autor { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.3rem; }
.pub-autor-nombre { font-weight: 700; font-size: 0.95rem; color: #005a9c; text-decoration: none; }
.pub-autor-nombre:hover { text-decoration: underline; }
.pub-fecha-creacion { font-size: 0.78rem; color: #888; }
.publicaciones-list { list-style: none; padding: 0; }
.turnos-cedidos, .turnos-aceptados { font-size: 0.9rem; margin-bottom: 0.35rem; }
.turno { display: inline-block; background: #f0f4ff; color: #1e3a8a; border-radius: 4px; padding: 0.1rem 0.45rem; margin: 0.15rem 0.2rem 0.15rem 0; font-size: 0.85rem; }
.turno--link { text-decoration: none; cursor: pointer; }
.turno--link:hover { background: #dbeafe; text-decoration: underline; }
.empty-state { text-align: center; color: #888; padding: 2.5rem 0; font-size: 0.95rem; }

/* PWA install banner */
.pwa-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: #1d4ed8; color: #fff; padding: 0.65rem 1.25rem; flex-wrap: wrap; }
.pwa-banner-body { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.pwa-banner-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.pwa-banner-text { display: flex; flex-direction: column; min-width: 0; }
.pwa-banner-text strong { font-size: 0.92rem; }
.pwa-banner-text span { font-size: 0.82rem; opacity: 0.88; }
.pwa-banner-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.pwa-banner-btn { background: #fff; color: #1d4ed8; border: none; font-weight: 600; }
.pwa-banner-btn:hover { background: #e0e7ff; }
.pwa-banner-close { background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer; font-size: 1rem; padding: 0.25rem 0.4rem; line-height: 1; }
.pwa-banner-close:hover { color: #fff; }
.ios-share-icon { width: 14px; height: 14px; vertical-align: middle; display: inline-block; }

/* Home */
.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { color: #555; margin-bottom: 2rem; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Confirmation modal */
/* Notifications panel */
.notif-panel { max-width: 640px; margin: 0 auto; }
.notif-panel-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.notif-section { margin-bottom: 1.5rem; }
.notif-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; color: #1a1a1a; }
.notif-section-desc { color: #555; font-size: 0.9rem; margin-bottom: 0.75rem; }
.notif-browser-status { margin-bottom: 1rem; }
.notif-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; padding: 0.5rem 0.75rem; border-radius: 6px; }
.notif-status--ok { background: #d1fae5; color: #065f46; }
.notif-status--warn { background: #fef3c7; color: #92400e; }
.notif-status--error { background: #fee2e2; color: #991b1b; }
.notif-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid #f0f0f0; }
.notif-master { padding-top: 0; border-top: none; }
.notif-toggle-label { flex: 1; font-size: 0.95rem; line-height: 1.4; display: flex; flex-direction: column; gap: 0.15rem; }
.notif-toggle-desc { font-size: 0.82rem; color: #666; font-weight: 400; }
.notif-individual { padding-left: 0.5rem; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 26px; transition: background .2s; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle-switch input:checked + .toggle-slider { background: #005a9c; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.notif-filtro-colegas { width: 100%; box-sizing: border-box; padding: 0.45rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.92rem; margin-bottom: 0.5rem; }
.notif-filtro-colegas:focus { outline: none; border-color: #005a9c; box-shadow: 0 0 0 2px rgba(0,90,156,.15); }
.notif-colegas-list { list-style: none; padding: 0; max-height: 26rem; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 6px; }
.notif-colega-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem; border-top: 1px solid #f0f0f0; gap: 0.5rem; }
.notif-colega-row:first-child { border-top: none; }
.notif-colega-nombre { font-size: 0.95rem; flex: 1; }
.notif-sin-resultados { text-align: center; color: #888; padding: 1rem 0; font-size: 0.9rem; }

/* Bell icon + badge */
.nav-bell { position: relative; display: inline-flex; align-items: center; padding: 0.3rem 0.5rem; color: rgba(255,255,255,0.75); text-decoration: none; border-radius: 999px; transition: background .15s, color .15s; }
.nav-bell:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-bell--activa { color: #fff; }
.nav-bell-icon { width: 1.2rem; height: 1.2rem; }
.nav-bell-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: #fff; border-radius: 999px; font-size: 0.62rem; font-weight: 700; min-width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center; padding: 0 0.18rem; line-height: 1; }

/* Avisos panel */
.avisos-panel { max-width: 640px; margin: 0 auto; }
.avisos-panel-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.avisos-list { list-style: none; padding: 0; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.aviso-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid #f0f0f0; }
.aviso-row:first-child { border-top: none; }
.aviso-info { display: flex; align-items: center; gap: 0.5rem; flex: 1; flex-wrap: wrap; }
.aviso-autor { font-weight: 600; font-size: 0.95rem; }
.aviso-fecha { font-size: 0.82rem; color: #888; }
.aviso-expirada { font-size: 0.82rem; color: #aaa; white-space: nowrap; }
.aviso-btn { white-space: nowrap; }
.aviso-row { flex-wrap: wrap; }
.aviso-mensaje { font-size: 0.85rem; color: #555; font-style: italic; width: 100%; margin: 0.25rem 0 0; }
.avisos-footer-link { margin-top: 1.25rem; font-size: 0.88rem; color: #555; }

/* Contraoferta */
.contraoferta-original { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.contraoferta-original h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.pub-original-detalle { font-size: 0.9rem; }
.pub-original-detalle .turnos-cedidos,
.pub-original-detalle .turnos-aceptados { margin-bottom: 0.4rem; }
.contraoferta-hint { font-size: 0.82rem; color: #6b7280; margin: 0.75rem 0 0; border-top: 1px solid #e5e7eb; padding-top: 0.5rem; }
.avisos-footer-link a { color: #005a9c; }

/* Confirmation modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.modal-hidden { display: none; }
.modal-box { background: #fff; border-radius: 10px; padding: 1.5rem 1.75rem; max-width: 360px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.modal-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; color: #1a1a1a; }
.modal-body { color: #374151; margin-bottom: 1.25rem; line-height: 1.5; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* Onboarding / como-funciona */
.onboarding-steps { display: flex; flex-direction: column; gap: 1.75rem; }
.onboarding-step { display: flex; gap: 1rem; align-items: flex-start; }
.onboarding-step-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; width: 2.5rem; text-align: center; margin-top: 0.1rem; }
.onboarding-step-body h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.onboarding-step-body p { margin: 0 0 0.5rem; color: #374151; line-height: 1.55; }
.onboarding-step-body .btn { margin-top: 0.35rem; }
.alertas-activos-section { margin-bottom: 1.25rem; }
.oportunidad-3-card { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
.oportunidad-3-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.oportunidad-3-desc { font-size: 0.875rem; color: #4338ca; margin: 0 0 0.75rem; }
.oportunidad-3-acciones { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.aviso-interes-card { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
.aviso-interes-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.aviso-interes-desc { font-size: 0.875rem; color: #92400e; margin: 0 0 0.75rem; }

.compat-planilla-info { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 0.75rem 1rem; margin: 0.75rem 0 0; }
.compat-planilla-linea { font-size: 0.875rem; color: #14532d; margin: 0.25rem 0; }
.compat-planilla-nudge { font-size: 0.875rem; color: #166534; font-style: italic; margin: 0.25rem 0; }
.compat-planilla-nota  { font-size: 0.8rem; color: #6b7280; margin: 0.5rem 0 0; }

/* Analytics */
.analytics-controls { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.analytics-granularity { display: flex; gap: 0.5rem; }
.analytics-unit-filter { display: flex; align-items: center; gap: 0.5rem; }
.analytics-unit-filter label { font-size: 0.9rem; color: #555; white-space: nowrap; }
.analytics-select { padding: 0.35rem 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; background: #fff; }
.analytics-metric-filter { display: flex; align-items: center; gap: 0.5rem; }
.analytics-metric-filter label { font-size: 0.9rem; color: #555; white-space: nowrap; }
.analytics-chart-wrapper { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.analytics-chart-scroll { overflow-x: auto; padding-bottom: 0.25rem; }
.analytics-chart-inner { height: 360px; }
.analytics-section-title { margin: 2rem 0 0; }


/* Planilla de turnos */
.planilla-header { margin-bottom: 1rem; }
.planilla-header-titulo { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.planilla-header-titulo h1 { margin: 0; }
.planilla-ayuda-link { background: none; border: none; cursor: pointer; font-size: 0.85rem; color: #2563eb; padding: 0.2rem 0.4rem; border-radius: 4px; text-decoration: underline; }
.planilla-ayuda-link:hover { color: #1d4ed8; }

/* Banner de onboarding de planilla */
.planilla-onboarding-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.planilla-onboarding-titulo { font-size: 1rem; font-weight: 700; color: #1e40af; margin: 0 0 0.6rem; }
.planilla-onboarding-p { font-size: 0.9rem; color: #1e3a8a; margin: 0 0 0.5rem; line-height: 1.6; }
.planilla-onboarding-subtitulo { font-size: 0.87rem; font-weight: 600; color: #1e40af; margin: 0.6rem 0 0.3rem; }
.planilla-onboarding-lista { font-size: 0.87rem; color: #1e3a8a; margin: 0 0 0.75rem 1.2rem; line-height: 1.7; }
.planilla-onboarding-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.planilla-onboarding-link { font-size: 0.85rem; color: #2563eb; text-decoration: underline; }
.planilla-mes-nav { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.planilla-mes-titulo { font-size: 1.1rem; font-weight: 600; min-width: 160px; text-align: center; }
.planilla-estado { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.badge-success { background: #dcfce7; color: #166534; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.badge-draft { background: #f3f4f6; color: #6b7280; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.planilla-hint { margin-bottom: 1.25rem; }
.calendario-modo-selector { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.calendario-modo-btn { border: 2px solid transparent; font-weight: 600; }
.calendario-modo-btn--ofertas { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.calendario-modo-btn--ofertas.is-active { background: #10b981; color: #ffffff; border-color: #059669; }
.calendario-modo-btn--peticiones { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.calendario-modo-btn--peticiones.is-active { background: #f97316; color: #ffffff; border-color: #ea580c; }
.calendario-modo-btn--juntes { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.calendario-modo-btn--juntes.is-active { background: #9333ea; color: #ffffff; border-color: #7e22ce; }
.calendario-ayuda-texto { font-size: 0.85rem; color: #6b7280; margin: 0.25rem 0 0.75rem; }
.calendario-panel[hidden] { display: none; }
.calendario-panel { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: flex-end; z-index: 50; }
.calendario-panel-contenido { background: #fff; width: 100%; max-height: 80vh; overflow-y: auto; border-radius: 12px 12px 0 0; padding: 1rem; }
.calendario-panel-cabecera { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.calendario-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.calendario-lista-item { width: 100%; text-align: left; padding: 0.6rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; font-size: 0.95rem; cursor: pointer; }
.calendario-lista-item:hover { background: #f1f5f9; }

/* ── Juntes de noches: filas-semana + tira desplegable trabaja/libra ── */
.juntes-leyenda { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; font-size: 0.78rem; color: #4b5563; margin: 0 0 0.85rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0.55rem 0.85rem; }
.juntes-leyenda-item { display: flex; align-items: center; gap: 0.4rem; }
.juntes-leyenda-marca { width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none; }
.juntes-leyenda-marca--trabaja { background: #10b981; }
.juntes-leyenda-marca--libra { background: #f97316; }

.juntes-semanas { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.1rem; }
.juntes-semana { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; overflow: hidden; }
.juntes-semana[open] { border-color: #9333ea; }
.juntes-semana-cabecera { list-style: none; cursor: pointer; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.juntes-semana-cabecera::-webkit-details-marker { display: none; }
.juntes-semana-cabecera:focus-visible { outline: 2px solid #005a9c; outline-offset: -2px; }
.juntes-semana--vacia .juntes-semana-cabecera { cursor: default; }
.juntes-rango { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.juntes-rango-nota { font-weight: 500; color: #6b7280; font-size: 0.8rem; margin-left: 0.25rem; }
.juntes-semana-meta { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.juntes-contador { font-size: 0.78rem; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: 999px; background: #ede9fe; color: #5b21b6; white-space: nowrap; }
.juntes-contador--vacio { background: #f9fafb; color: #6b7280; font-weight: 600; }
.juntes-chevron { width: 0.55rem; height: 0.55rem; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg); transition: transform 0.18s ease; flex: none; }
.juntes-semana[open] .juntes-chevron { transform: rotate(-135deg); }

.juntes-semana-cuerpo { padding: 0 1rem 1rem; border-top: 1px solid #e5e7eb; }
.juntes-oferta { padding: 0.9rem 0; }
.juntes-oferta + .juntes-oferta { border-top: 1px solid #e5e7eb; }
.juntes-oferta-cabecera { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; flex-wrap: wrap; }
.juntes-oferta-nombre { font-size: 0.9rem; font-weight: 700; }
.juntes-oferta-resumen { font-size: 0.78rem; color: #6b7280; }
.juntes-oferta-link { font-size: 0.78rem; color: #005a9c; text-decoration: none; font-weight: 600; white-space: nowrap; }
.juntes-oferta-link:hover { text-decoration: underline; }

.juntes-tira { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.juntes-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; border-radius: 7px; padding: 0.4rem 0; min-height: 44px; }
.juntes-dia--trabaja { background: #10b981; color: #ffffff; }
.juntes-dia--libra { background: #ffedd5; color: #9a3412; }
.juntes-dia-letra { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; opacity: 0.85; }
.juntes-dia-estado { font-size: 0.62rem; font-weight: 700; }
.calendario-detalle { padding: 0.25rem 0; }
.calendario-publicar-fijo { margin: 1rem 0; text-align: center; }
.calendario-btn-publicar { display: inline-block; margin-top: 0.75rem; text-decoration: none; text-align: center; }
.calendario-panel-vacio { color: #6b7280; font-size: 0.9rem; margin: 0 0 0.5rem; }
/* Relleno rápido por rango */
.planilla-relleno-rapido { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.6rem 0.9rem; margin-bottom: 0.5rem; }
.planilla-vacios-rapido { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 0.6rem 0.9rem; margin-bottom: 0.9rem; }
.relleno-form { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.relleno-label { font-size: 0.82rem; color: #475569; white-space: nowrap; }
.planilla-select-sm { padding: 0.2rem 0.35rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.82rem; background: #fff; }
.relleno-sep { color: #cbd5e1; font-size: 1rem; margin: 0 0.1rem; }
.btn-link-sm { background: none; border: none; cursor: pointer; font-size: 0.8rem; color: #2563eb; padding: 0; text-decoration: underline; }
.btn-link-sm:hover { color: #1d4ed8; }

/* Checkbox por día */
.dia-check-wrap { display: flex; align-items: center; cursor: pointer; padding: 0 0.1rem; }
.dia-check { width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }

/* Barra flotante de selección múltiple */
.multiples-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1e3a8a; color: #fff; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
.mb-count { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.mb-select { font-size: 0.85rem; padding: 0.3rem 0.5rem; border: none; border-radius: 5px; background: #fff; color: #1e293b; min-width: 170px; }
.mb-cancel { background: rgba(255,255,255,.15) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3) !important; }
.mb-cancel:hover { background: rgba(255,255,255,.25) !important; }

.planilla-dias { display: flex; flex-direction: column; gap: 0.4rem; }
.planilla-dia { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; border-radius: 6px; background: #f9fafb; border: 1px solid #e5e7eb; flex-wrap: wrap; }
.planilla-dia--hoy { border-color: #2563eb; background: #eff6ff; }
.planilla-dia--finde { background: #fafafa; }
.planilla-dia-label { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.planilla-dia-num { font-size: 1rem; font-weight: 700; line-height: 1; }
.planilla-dia-semana { font-size: 0.7rem; color: #6b7280; text-transform: uppercase; }
.planilla-dia--finde .planilla-dia-semana { color: #9ca3af; }
.planilla-dia-turnos { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; flex: 1; }
.planilla-turno-chip { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 999px; padding: 0.15rem 0.5rem 0.15rem 0.65rem; font-size: 0.82rem; font-weight: 500; }
.planilla-chip-remove { background: none; border: none; cursor: pointer; color: #1e40af; font-size: 0.75rem; padding: 0; line-height: 1; opacity: 0.6; }
.planilla-chip-remove:hover { opacity: 1; }
.planilla-add-form { display: flex; align-items: center; gap: 0.3rem; }
.planilla-select { font-size: 0.82rem; padding: 0.15rem 0.4rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; max-width: 130px; }
.planilla-add-btn { padding: 0.15rem 0.5rem; font-size: 0.78rem; }
.planilla-turno-chip--libre { background: #dcfce7; color: #166534; }
.planilla-turno-chip--vacaciones { background: #fef9c3; color: #854d0e; }
.planilla-turno-chip--no_disponible { background: #fee2e2; color: #991b1b; }
.planilla-turno-chip--saliente { background: #ede9fe; color: #5b21b6; border: 1px dashed #7c3aed; }

/* ── Calendario compacto ───────────────────────────────────────────────── */
.planilla-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 1.1rem; }
.cal-header { background: #f1f5f9; text-align: center; font-size: 0.68rem; font-weight: 700; color: #64748b; padding: 0.28rem 0; letter-spacing: 0.04em; }
.cal-celda { background: #fff; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.22rem 0; min-height: 46px; position: relative; transition: filter 0.1s; font-family: inherit; }
.cal-celda:hover:not(.cal-celda--fuera) { filter: brightness(0.87); }
.cal-celda--fuera { background: #f8fafc; cursor: default; pointer-events: none; }
.cal-num { font-size: 0.82rem; font-weight: 700; line-height: 1; color: inherit; }
.cal-lab { font-size: 0.58rem; line-height: 1; margin-top: 2px; opacity: 0.8; color: inherit; font-weight: 600; }
.cal-bandas-row { display: flex; width: 100%; flex: 1; margin-top: 2px; gap: 1px; }
.cal-banda { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 14px; font-size: 0.55rem; font-weight: 700; }
.cal-dot { position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.cal-celda--hoy { box-shadow: inset 0 0 0 2px #2563eb; }
.cal-celda--turno         { background: #dbeafe; color: #1e40af; }
.cal-celda--libre         { background: #dcfce7; color: #166534; }
.cal-celda--vacaciones    { background: #fef9c3; color: #854d0e; }
.cal-celda--no_disponible { background: #fee2e2; color: #991b1b; }
.cal-celda--vacio         { background: #f9fafb; color: #9ca3af; }
@keyframes dia-flash { 0%,100% { box-shadow: none; } 25%,65% { box-shadow: 0 0 0 3px #2563eb; } }
.planilla-dia--highlight  { animation: dia-flash 1.1s ease-out; }

/* ── Nota del día ─────────────────────────────────────────────────────── */
.dia-nota { flex-basis: 100%; border: none; padding: 0; margin-top: 0.1rem; font-size: 0.8rem; }
.dia-nota-toggle { cursor: pointer; list-style: none; padding: 0.1rem 0.2rem; border-radius: 4px; color: #6b7280; user-select: none; }
.dia-nota-toggle::-webkit-details-marker { display: none; }
.dia-nota-toggle:hover { color: #374151; background: #f3f4f6; }
.dia-nota-preview { color: #374151; font-style: italic; }
.dia-nota-vacia { color: #9ca3af; }
.dia-nota-form { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.4rem 0.2rem 0.2rem; }
.dia-nota-textarea { width: 100%; font-size: 0.82rem; border: 1px solid #d1d5db; border-radius: 5px; padding: 0.3rem 0.4rem; resize: vertical; font-family: inherit; color: #374151; background: #fff; }
.dia-nota-textarea:focus { outline: none; border-color: #2563eb; }
.dia-nota-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ── Banner volcar cambios ─────────────────────────────────────────────── */
.planilla-volcar-banner { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 1rem; }
.planilla-volcar-titulo { font-size: 0.9rem; color: #166534; margin: 0 0 0.6rem; }
.volcar-form { display: flex; flex-direction: column; gap: 0.4rem; }
.volcar-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.87rem; color: #374151; cursor: pointer; padding: 0.2rem 0; }
.volcar-item input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; }
.volcar-descripcion { line-height: 1.5; }

/* ── Swipe navigation ────────────────────────────────────────────────── */
@keyframes swipe-from-right { from { transform: translateX(40px); opacity: 0; } }
@keyframes swipe-from-left  { from { transform: translateX(-40px); opacity: 0; } }
.swipe-from-right { animation: swipe-from-right 230ms ease-out; }
.swipe-from-left  { animation: swipe-from-left  230ms ease-out; }
