:root{
  --bg:#f5f6f9;
  --surface:#ffffff;
  --surface-rgb:255,255,255;
  --surface-2:#f8fafc;
  --surface-3:#eef2f6;

  --card:#ffffff;
  --text:#111827;
  --heading:#0d1b2a;
  --muted:#667085;
  --navy:#0d1b2a;

  --primary:#f00563;
  --primary-soft:#fff1f6;
  --secondary:#ff8a33;

  --danger:#d92d20;
  --danger-soft:#fee4e2;
  --ok:#039855;
  --ok-soft:#dcfae6;
  --warning:#b54708;
  --warning-soft:#fef0c7;

  --line:#e5e7eb;
  --line-strong:#d0d5dd;

  --topbar-bg:rgba(255,255,255,.92);
  --input-bg:#ffffff;
  --table-hover:#f8fafc;

  --shadow:0 18px 45px rgba(16,24,40,.10);
  --shadow-soft:0 10px 25px rgba(16,24,40,.06);

  --gradient:linear-gradient(
    135deg,
    #f00563 0%,
    #ff8a33 100%
  );

  --body-decoration-1:rgba(240,5,99,.08);
  --body-decoration-2:rgba(255,138,51,.10);
}


html[data-theme="dark"]{
  --bg:#0b1220;
  --surface:#141e2d;
  --surface-rgb:20,30,45;
  --surface-2:#1b2738;
  --surface-3:#263448;

  --card:#141e2d;
  --text:#f1f5f9;
  --heading:#f8fafc;
  --muted:#9aa9bd;
  --navy:#f8fafc;

  --primary:#ff2d7a;
  --primary-soft:#3b1728;
  --secondary:#ff9d55;

  --danger:#ff6b65;
  --danger-soft:#432026;
  --ok:#52d68a;
  --ok-soft:#173728;
  --warning:#ffbb72;
  --warning-soft:#44311d;

  --line:#2d3b4f;
  --line-strong:#42526a;

  --topbar-bg:rgba(11,18,32,.93);
  --input-bg:#101a28;
  --table-hover:#1c293a;

  --shadow:0 18px 45px rgba(0,0,0,.32);
  --shadow-soft:0 10px 25px rgba(0,0,0,.20);

  --body-decoration-1:rgba(255,45,122,.09);
  --body-decoration-2:rgba(255,157,85,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top left,var(--body-decoration-1),transparent 28%),radial-gradient(circle at bottom right,var(--body-decoration-2),transparent 32%),var(--bg);color:var(--text)}
a{color:var(--primary);text-decoration:none}
.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:var(--topbar-bg);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.brand-logo{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.brand-text strong{display:block;font-size:16px;line-height:1.1}
.brand-text span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.main-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.main-nav a{color:var(--navy);font-weight:700;padding:9px 12px;border-radius:999px}
.main-nav a:hover{background:var(--primary-soft);color:var(--primary)}
.container{max-width:1180px;margin:0 auto;padding:28px 18px}
.card{background:rgba(var(--surface-rgb),.96);border:1px solid rgba(255,255,255,.75);border-radius:26px;padding:26px;box-shadow:var(--shadow);margin-bottom:18px}
.auth-layout{min-height:calc(100vh - 120px);display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center}
.auth-brand-panel{padding:34px}.auth-logo{width:min(420px,100%);height:auto;display:block;margin-bottom:26px}
.auth-brand-panel h1{font-size:48px;line-height:1;margin:0 0 12px}.auth-brand-panel p{color:var(--muted);font-size:18px;max-width:520px}
.auth-card{max-width:480px;width:100%;margin:0 auto}.auth-card h2{font-size:34px;margin:0 0 10px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:22px}.hero-corporate{position:relative;overflow:hidden}
.hero-corporate::after{content:"";position:absolute;right:-80px;top:-100px;width:280px;height:280px;background:var(--gradient);opacity:.13;border-radius:48px;transform:rotate(45deg)}
.eyebrow{margin:0 0 6px;color:var(--primary);text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900}
h1,h2{color:var(--navy)}h1{font-size:34px;margin:0 0 22px}h2{font-size:24px;margin:0 0 18px}
.clock-card{min-width:220px;position:relative;z-index:1;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px 22px;text-align:right}
.clock-card span{display:block;color:var(--muted);font-weight:700;font-size:13px}.clock-card strong{display:block;font-size:42px;line-height:1.05;color:var(--navy)}
.muted{color:var(--muted)}.big{font-size:42px;font-weight:900;margin:8px 0;color:var(--navy)}
.status{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;font-weight:900}
.status.fuera{background:#eef2f6;color:#344054}.status.trabajando{background:#dcfae6;color:var(--ok)}.status.pausa{background:#fef0c7;color:#b54708}
.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.card-title-row,.section-header{display:flex;justify-content:space-between;gap:16px;align-items:center}
.form{display:grid;gap:14px}.form label{display:grid;gap:7px;font-weight:800;color:var(--navy)}
.form input,.form textarea,.form select{width:100%;border:1px solid #d0d5dd;border-radius:14px;padding:13px 15px;font:inherit;background:var(--input-bg);color:var(--text);outline:none}
.form input:focus,.form textarea:focus,.form select:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(240,5,99,.12)}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;padding:13px 17px;background:var(--surface-3);color:var(--navy);font-weight:900;cursor:pointer;margin:4px;min-height:46px;transition:transform .15s ease,box-shadow .15s ease}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px rgba(16,24,40,.12)}
.btn.primary{background:var(--gradient);color:#fff}.btn.secondary{background:var(--primary-soft);color:var(--primary)}.btn.danger{background:#fee4e2;color:var(--danger)}
.btn.small{padding:8px 10px;font-size:13px;min-height:auto}.btn:disabled{opacity:.38;cursor:not-allowed}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions form,.actions button{width:100%}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.messages{margin-bottom:18px}.message{padding:12px 14px;border-radius:14px;margin-bottom:8px;background:#eef2f6;font-weight:700}
.message.success{background:#dcfae6;color:#027a48}.message.error{background:#fee4e2;color:#b42318}
.small{font-size:14px;color:var(--muted)}
.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-actions form{margin:0}td .status{padding:6px 10px;font-size:13px}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.export-form{grid-template-columns:1fr 1fr 1fr;align-items:end}
.export-form .form-actions{grid-column:1 / -1}
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.kpi-card{background:rgba(var(--surface-rgb),.96);border:1px solid rgba(255,255,255,.75);border-radius:24px;padding:22px;box-shadow:var(--shadow);display:flex;align-items:center;gap:16px}
.kpi-card.highlight{background:var(--gradient);color:#fff}.kpi-card.highlight p,.kpi-card.highlight strong{color:#fff}
.kpi-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:#fff1f6;font-size:22px;flex-shrink:0}
.kpi-card p{margin:0 0 6px;color:var(--muted);font-weight:800;font-size:13px}.kpi-card strong{display:block;color:var(--navy);font-size:30px;line-height:1}
@media(max-width:900px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.export-form{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{flex-direction:column;align-items:flex-start}.grid.two{grid-template-columns:1fr}.actions{grid-template-columns:1fr}.clock-card{width:100%;text-align:left}.card{padding:20px}.section-header{align-items:flex-start;flex-direction:column}table{display:block;overflow-x:auto;white-space:nowrap}}
@media(max-width:620px){.kpi-grid{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr}.auth-brand-panel{text-align:center;padding:18px}.auth-logo{max-width:320px;margin:auto}}
.calendar-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 18px;
}

.calendar-legend span{
  background:#fff1f6;
  color:var(--navy);
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  font-size:13px;
}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.calendar-header{
  margin-bottom:8px;
}

.calendar-header div{
  background:var(--gradient);
  color:#fff;
  border-radius:12px;
  padding:10px;
  font-weight:900;
  text-align:center;
  font-size:13px;
}

.calendar-day{
  min-height:135px;
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:16px;
  padding:10px;
  overflow:hidden;
}

.calendar-day.empty{
  background:#f2f4f7;
  opacity:.55;
}

.calendar-day-number{
  font-weight:900;
  color:var(--navy);
  margin-bottom:8px;
}

.calendar-event{
  border-radius:12px;
  padding:7px 8px;
  margin-bottom:6px;
  font-size:12px;
  background:#eef2f6;
  border-left:4px solid var(--primary);
}

.calendar-event strong{
  display:block;
  color:var(--navy);
}

.calendar-event span{
  display:block;
  color:var(--muted);
  margin-top:2px;
}

.tipo-vacaciones{background:#fff7ed;border-left-color:#ff8a33}
.tipo-asuntos_propios{background:#f2f4f7;border-left-color:#667085}
.tipo-baja_medica{background:#fee4e2;border-left-color:#d92d20}
.tipo-teletrabajo{background:#e0f2fe;border-left-color:#0284c7}
.tipo-permiso_retribuido{background:#dcfae6;border-left-color:#039855}

@media(max-width:900px){
  .calendar-grid{
    grid-template-columns:1fr;
  }

  .calendar-header{
    display:none;
  }

  .calendar-day{
    min-height:auto;
  }
}


.charts-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.chart-card{
  background:#ffffff;
  border:1px solid #eaecf0;
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 25px rgba(16,24,40,.06);
}

.chart-card h3{
  margin:0 0 14px;
  font-size:17px;
  color:var(--navy);
}

.chart-card canvas{
  width:100%;
  max-height:320px;
}

@media(max-width:900px){
  .charts-grid{
    grid-template-columns:1fr;
  }
}


.cuadrante-wrapper{
  width:100%;
  overflow:auto;
  border:1px solid #eaecf0;
  border-radius:18px;
  background:#fff;
}

.cuadrante-table{
  width:max-content;
  min-width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.cuadrante-table th,
.cuadrante-table td{
  border-bottom:1px solid var(--line);
  border-right:1px solid #eaecf0;
  padding:8px;
  text-align:center;
  min-width:42px;
  font-size:13px;
}

.cuadrante-table th{
  background:#f00563;
  color:#fff;
  font-weight:900;
  position:sticky;
  top:0;
  z-index:2;
}

.cuadrante-table .sticky-col{
  position:sticky;
  left:0;
  z-index:3;
  min-width:220px;
  text-align:left;
  background:#0d1b2a;
  color:#fff;
}

.cuadrante-table td.sticky-col{
  background:#fff;
  color:#0d1b2a;
  font-weight:800;
  z-index:1;
}

.empleado-cell{
  white-space:nowrap;
}

.cuadrante-cell{
  height:38px;
  font-weight:900;
}

.cuadrante-cell.weekend,
.cuadrante-table th.weekend{
  background:#f2f4f7;
  color:#667085;
}

.cuadrante-cell.tipo-vacaciones{background:#fff7ed;color:#b54708}
.cuadrante-cell.tipo-teletrabajo{background:#e0f2fe;color:#026aa2}
.cuadrante-cell.tipo-baja_medica{background:#fee4e2;color:#b42318}
.cuadrante-cell.tipo-asuntos_propios{background:#f2f4f7;color:#344054}
.cuadrante-cell.tipo-permiso_retribuido{background:#dcfae6;color:#027a48}


.anual-table th,
.anual-table td{
  min-width:86px;
}

.anual-table .sticky-col{
  min-width:230px;
}

.anual-cell{
  vertical-align:top;
  line-height:1.7;
}

.badge-mini{
  display:block;
  border-radius:999px;
  padding:3px 7px;
  margin:2px 0;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.badge-mini.tipo-vacaciones{background:#fff7ed;color:#b54708}
.badge-mini.tipo-asuntos_propios{background:#f2f4f7;color:#344054}
.badge-mini.tipo-baja_medica{background:#fee4e2;color:#b42318}
.badge-mini.tipo-teletrabajo{background:#e0f2fe;color:#026aa2}
.badge-mini.tipo-permiso_retribuido{background:#dcfae6;color:#027a48}

.nav-logout{
    margin-left: 12px;
    color: #dc2626 !important;
    font-weight: 700;
}

.nav-logout:hover{
    opacity: .8;
}


.map-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:800;
  color:#026aa2;
  text-decoration:none;
}

.map-link:hover{
  text-decoration:underline;
}


.export-clean{
  gap:18px;
}

.export-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:4px;
}

.export-card{
  border:0;
  border-radius:18px;
  padding:22px 24px;
  min-height:92px;
  display:flex;
  align-items:center;
  gap:18px;
  text-align:left;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(16,24,40,.12);
  transition:transform .15s ease, box-shadow .15s ease;
}

.export-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(16,24,40,.18);
}

.export-card strong{
  display:block;
  font-size:17px;
  line-height:1.2;
}

.export-card small{
  display:block;
  margin-top:6px;
  font-size:13px;
  font-weight:700;
  opacity:.92;
}

.export-icon{
  font-size:34px;
  line-height:1;
}

.export-excel{
  background:linear-gradient(135deg,#059669,#10b981);
}

.export-pdf{
  background:linear-gradient(135deg,#f00563,#fb5c3c);
}

.export-global{
  background:linear-gradient(135deg,#f97316,#fb8500);
}

.export-info{
  margin-top:16px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
  padding:16px 18px;
  border-radius:14px;
  font-weight:700;
}

@media(max-width:1000px){
  .export-buttons{
    grid-template-columns:1fr;
  }
}

.pwa-install-box{
  border:1px solid #bfdbfe;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
}


.export-card span:last-child{
  flex:1;
  min-width:0;
}

.export-card strong{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
}

.export-card small{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* FIX FINAL EXPORTACIONES */
.export-clean{
  display:flex !important;
  flex-direction:column !important;
  gap:18px !important;
}

.export-clean > label{
  width:100% !important;
}

.export-buttons{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  gap:18px !important;
  width:100% !important;
  margin-top:12px !important;
}

.export-card{
  width:100% !important;
  min-width:0 !important;
  min-height:105px !important;
  padding:22px 24px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:18px !important;
  white-space:normal !important;
  overflow:hidden !important;
}

.export-icon{
  flex:0 0 auto !important;
  font-size:34px !important;
}

.export-card span:last-child{
  flex:1 1 auto !important;
  min-width:0 !important;
}

.export-card strong,
.export-card small{
  display:block !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  line-height:1.25 !important;
}

.export-info{
  width:100% !important;
  margin-top:12px !important;
}

@media(max-width:900px){
  .export-buttons{
    grid-template-columns:1fr !important;
  }
}



/* Sprint 2.3 RRHH UI */
.rrhh-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  align-items: center;
}

.rrhh-toolbar input,
.rrhh-toolbar select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.table-pro tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.table-pro tbody tr:hover {
  background: #f8fafc;
}

.ausencia-row.estado-aprobada {
  border-left: 4px solid #16a34a;
}

.ausencia-row.estado-pendiente {
  border-left: 4px solid #d97706;
}

.ausencia-row.estado-rechazada {
  border-left: 4px solid #dc2626;
}

.ausencia-row.tipo-vacaciones td:nth-child(2)::before {
  content: "🏖️ ";
}

.ausencia-row.tipo-teletrabajo td:nth-child(2)::before {
  content: "💻 ";
}

.ausencia-row.tipo-baja_medica td:nth-child(2)::before {
  content: "🏥 ";
}

.ausencia-row.tipo-asuntos_propios td:nth-child(2)::before {
  content: "📌 ";
}

.ausencia-row.tipo-permiso_retribuido td:nth-child(2)::before {
  content: "📄 ";
}


/* FH-017 Calendario personal */
.personal-calendar {
  display: grid;
  gap: 8px;
}

.calendar-weekdays,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays strong {
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 13px;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 112px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-day.empty {
  background: transparent;
  border: 0;
}

.calendar-day.weekend {
  background: #f8fafc;
}

.calendar-day.today {
  border: 2px solid #f00563;
}

.calendar-day.holiday {
  background: #fff7ed;
}

.calendar-day.has-absence {
  background: #f0fdf4;
}

.calendar-day-number {
  font-weight: 900;
  color: #111827;
}

.calendar-chip {
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 7px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holiday-chip {
  background: #fed7aa;
  color: #9a3412;
}

.absence-chip {
  background: #dcfce7;
  color: #166534;
}

.absence-chip.estado-pendiente {
  background: #fef3c7;
  color: #92400e;
}

.absence-chip.estado-rechazada {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #6b7280;
  font-weight: 700;
}

@media (max-width: 800px) {
  .calendar-weekdays,
  .calendar-week {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-day.empty {
    display: none;
  }
}


/* FH-017 Detalle calendario personal */
.calendar-clickable {
  cursor: pointer;
}

.calendar-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.calendar-day.selected {
  outline: 3px solid rgba(240, 5, 99, .25);
  border-color: #f00563;
}

.calendar-day-detail {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.calendar-day-detail h3 {
  margin: 4px 0 14px;
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.detail-item span {
  color: #6b7280;
}

.detail-item.holiday {
  background: #fff7ed;
  color: #9a3412;
}

.detail-item.absence {
  background: #f0fdf4;
  color: #166534;
}


/* FH-017 Marca fichajes calendario */
.work-chip {
  background: #e0f2fe;
  color: #075985;
  font-weight: 800;
}

.calendar-day.estado-dia-jornada-ok .calendar-day-number::after {
  content: " ✓";
  color: #16a34a;
}

.calendar-day.estado-dia-jornada-incompleta .calendar-day-number::after {
  content: " !";
  color: #d97706;
}


/* FH-021 Corrección de fichajes */
.correction-comparison {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.correction-original {
  border: 1px solid #e5e7eb;
  border-left: 5px solid #64748b;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.correction-original strong {
  font-size: 18px;
}

.correction-original span {
  color: #6b7280;
}


/* FH-035 Dashboard Dirección */
.executive-hero {
  border-top: 4px solid #f00563;
}

.readonly-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
}

.executive-kpis {
  grid-template-columns: repeat(
    4,
    minmax(0, 1fr)
  );
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 20px;
}

.executive-progress-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.executive-progress-header strong {
  font-size: 36px;
}

.executive-progress-header span {
  color: #64748b;
  font-weight: 700;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #f00563,
    #7c3aed
  );
}

.executive-summary-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0, 1fr)
  );
  gap: 12px;
  margin-top: 18px;
}

.executive-summary-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.executive-summary-grid span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.executive-summary-grid strong {
  font-size: 20px;
}

.chart-container {
  position: relative;
  min-height: 300px;
}

@media (max-width: 1100px) {
  .executive-kpis {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .executive-kpis,
  .executive-summary-grid {
    grid-template-columns: 1fr;
  }

  .executive-progress-header {
    align-items: start;
    flex-direction: column;
  }
}


/* FH-036 Portal Inspector */
.inspection-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px;
  border: 2px solid #0f766e;
  border-radius: 18px;
  background: #ecfdf5;
  color: #134e4a;
}

.inspection-banner h1 {
  margin: 2px 0 6px;
}

.inspection-banner p {
  margin: 0;
}

.inspection-banner > strong {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f766e;
  color: white;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.inspection-filters {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.3fr)
    minmax(200px, 1fr)
    minmax(145px, 0.6fr)
    minmax(145px, 0.6fr);
  gap: 14px;
}

.inspection-filters .form-actions {
  grid-column: 1 / -1;
}

.inspection-kpis {
  grid-template-columns: repeat(
    3,
    minmax(0, 1fr)
  );
}

.inspection-privacy {
  border-left: 5px solid #0f766e;
  background: #f8fafc;
}

.inspection-privacy p {
  margin-bottom: 0;
  color: #475569;
}

@media (max-width: 1000px) {
  .inspection-filters,
  .inspection-kpis {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 650px) {
  .inspection-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .inspection-filters,
  .inspection-kpis {
    grid-template-columns: 1fr;
  }
}


/* FH-040 Visor documental */
.document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.document-action-button {
  white-space: nowrap;
}

.document-action-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.document-viewer-header {
  border-top: 4px solid #f00563;
}

.document-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.document-viewer-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(270px, 1fr);
  gap: 20px;
  align-items: start;
}

.document-preview-card {
  min-width: 0;
  padding: 12px;
}

.document-pdf-frame {
  display: block;
  width: 100%;
  height: min(78vh, 950px);
  min-height: 620px;
  border: 0;
  border-radius: 12px;
  background: #e5e7eb;
}

.document-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 4px 14px;
}

.document-image-stage {
  display: grid;
  place-items: center;
  min-height: 620px;
  overflow: auto;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-color: #ffffff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.document-preview-image {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.document-preview-unavailable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 500px;
  text-align: center;
}

.document-metadata {
  position: sticky;
  top: 16px;
}

.document-metadata-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.document-metadata-list > div {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.document-metadata-list > div:last-child {
  border-bottom: 0;
}

.document-metadata-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.document-metadata-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 700;
}

.document-hash {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 11px;
}

@media (max-width: 950px) {
  .document-viewer-layout {
    grid-template-columns: 1fr;
  }

  .document-metadata {
    position: static;
  }

  .document-pdf-frame,
  .document-image-stage {
    min-height: 500px;
  }
}

@media (max-width: 650px) {
  .document-viewer-actions,
  .document-image-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .document-pdf-frame {
    min-height: 68vh;
  }

  .document-image-stage {
    min-height: 420px;
  }
}

@media print {
  .topbar,
  .document-viewer-header,
  .document-metadata,
  .document-image-toolbar {
    display: none !important;
  }

  .container,
  .document-viewer-layout,
  .document-preview-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}


/* FH-043 Infraestructura de tema */
html{
  background:var(--bg);
}

html,
body{
  min-height:100%;
}

body{
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.topbar,
.card,
.kpi-card,
.clock-card,
.chart-card,
.calendar-day,
.cuadrante-wrapper,
.document-preview-card,
.document-metadata{
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6{
  color:var(--heading);
}

.card,
.kpi-card{
  border-color:var(--line);
}

.form input,
.form textarea,
.form select,
.rrhh-toolbar input,
.rrhh-toolbar select{
  border-color:var(--line-strong);
  background:var(--input-bg);
  color:var(--text);
}

.form input::placeholder,
.form textarea::placeholder{
  color:var(--muted);
  opacity:.85;
}

.form select option{
  background:var(--input-bg);
  color:var(--text);
}

table{
  color:var(--text);
}

th,
td{
  border-bottom-color:var(--line);
}

.table-pro tbody tr:hover{
  background:var(--table-hover);
}

.btn{
  background:var(--surface-3);
  color:var(--heading);
}

.btn.secondary{
  background:var(--primary-soft);
  color:var(--primary);
}

.btn.danger{
  background:var(--danger-soft);
  color:var(--danger);
}

.message{
  background:var(--surface-3);
  color:var(--text);
}

.message.success{
  background:var(--ok-soft);
  color:var(--ok);
}

.message.error{
  background:var(--danger-soft);
  color:var(--danger);
}

.status.fuera{
  background:var(--surface-3);
  color:var(--muted);
}

.status.trabajando{
  background:var(--ok-soft);
  color:var(--ok);
}

.status.pausa{
  background:var(--warning-soft);
  color:var(--warning);
}

.theme-control{
  display:flex;
  align-items:center;
  gap:7px;
  padding:4px 6px 4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
}

.theme-control-label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.theme-selector{
  width:auto;
  min-width:92px;
  border:0;
  border-radius:999px;
  padding:7px 28px 7px 9px;
  background:var(--input-bg);
  color:var(--text);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  outline:none;
}

.theme-selector:focus{
  box-shadow:0 0 0 3px rgba(240,5,99,.16);
}

html[data-theme="dark"] body{
  background:
    radial-gradient(
      circle at top left,
      var(--body-decoration-1),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      var(--body-decoration-2),
      transparent 32%
    ),
    var(--bg);
}

html[data-theme="dark"] .topbar{
  border-bottom-color:var(--line);
}

html[data-theme="dark"] .main-nav a{
  color:var(--text);
}

html[data-theme="dark"] .main-nav a:hover{
  background:var(--primary-soft);
  color:var(--primary);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .kpi-card{
  background:rgba(var(--surface-rgb),.97);
  border-color:var(--line);
}

html[data-theme="dark"] .clock-card,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .cuadrante-wrapper{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .calendar-day{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .calendar-day.weekend,
html[data-theme="dark"] .calendar-day.empty{
  background:var(--surface-2);
}

html[data-theme="dark"] .calendar-day-number{
  color:var(--heading);
}

html[data-theme="dark"] .cuadrante-table td.sticky-col{
  background:var(--surface);
  color:var(--text);
}

html[data-theme="dark"] .cuadrante-table .sticky-col{
  background:#09111d;
}

html[data-theme="dark"] .export-info{
  border-color:#294a78;
  background:#142b49;
  color:#90baff;
}

html[data-theme="dark"] .pwa-install-box{
  border-color:var(--line);
  background:linear-gradient(
    135deg,
    var(--surface-2),
    var(--surface)
  );
}

html[data-theme="dark"] .document-image-stage{
  background-color:#0d1623;
}

html[data-theme="dark"] .document-metadata-list > div{
  border-bottom-color:var(--line);
}

html[data-theme="dark"] .document-metadata-list dd{
  color:var(--text);
}

html[data-theme="dark"] code{
  color:#dbeafe;
}

html[data-theme="dark"] img{
  color-scheme:normal;
}

@media(max-width:760px){
  .theme-control{
    width:100%;
    justify-content:space-between;
  }

  .theme-selector{
    flex:1;
    max-width:180px;
  }
}


/* FH-043.1 Switch de tema */
.theme-switch-wrap{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
}

.theme-switch-icon{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  font-size:15px;
  line-height:1;
  opacity:.5;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

html[data-theme="light"] .theme-switch-sun,
html[data-theme="dark"] .theme-switch-moon{
  opacity:1;
  transform:scale(1.08);
}

.theme-switch{
  position:relative;
  width:48px;
  height:26px;
  padding:0;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--surface-3);
  cursor:pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.theme-switch:hover{
  box-shadow:0 0 0 4px rgba(240,5,99,.10);
}

.theme-switch:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(240,5,99,.20);
}

.theme-switch-thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--surface);
  box-shadow:0 2px 7px rgba(0,0,0,.22);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.theme-switch.is-dark{
  background:var(--gradient);
  border-color:transparent;
}

.theme-switch.is-dark .theme-switch-thumb{
  transform:translateX(22px);
  background:#ffffff;
}

@media(max-width:760px){
  .theme-switch-wrap{
    align-self:flex-start;
  }
}


.theme-control,
.theme-selector{
  display:none !important;
}


/* FH-044 Pulido integral modo oscuro */

/* Selección y scrollbar */
::selection{
  background:rgba(240,5,99,.28);
  color:var(--text);
}

html{
  scrollbar-color:var(--line-strong) var(--bg);
}

::-webkit-scrollbar{
  width:11px;
  height:11px;
}

::-webkit-scrollbar-track{
  background:var(--bg);
}

::-webkit-scrollbar-thumb{
  border:3px solid var(--bg);
  border-radius:999px;
  background:var(--line-strong);
}

::-webkit-scrollbar-thumb:hover{
  background:var(--muted);
}


/* Elementos generales */
hr{
  border:0;
  border-top:1px solid var(--line);
}

code,
pre{
  background:var(--surface-2);
  color:var(--text);
}

a{
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"]{
  color-scheme:light;
}

html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="time"]{
  color-scheme:dark;
}


/* Tablas */
html[data-theme="dark"] table{
  color:var(--text);
}

html[data-theme="dark"] th{
  color:var(--muted);
}

html[data-theme="dark"] tr:hover td{
  background-color:rgba(255,255,255,.018);
}

html[data-theme="dark"] .table-scroll{
  border-color:var(--line);
}

html[data-theme="dark"] tbody tr:last-child td{
  border-bottom-color:transparent;
}


/* Calendario general */
html[data-theme="dark"] .calendar-legend span{
  background:var(--primary-soft);
  color:var(--text);
}

html[data-theme="dark"] .calendar-day{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .calendar-day.empty{
  background:var(--surface-2);
}

html[data-theme="dark"] .calendar-day.weekend{
  background:#111c2a;
}

html[data-theme="dark"] .calendar-day.today{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(255,45,122,.11);
}

html[data-theme="dark"] .calendar-day.holiday{
  background:#302419;
}

html[data-theme="dark"] .calendar-day.has-absence{
  background:#142b20;
}

html[data-theme="dark"] .calendar-event{
  background:var(--surface-2);
  border-left-color:var(--primary);
}

html[data-theme="dark"] .calendar-event strong,
html[data-theme="dark"] .calendar-day-number{
  color:var(--heading);
}

html[data-theme="dark"] .calendar-event span{
  color:var(--muted);
}


/* Chips de calendario */
html[data-theme="dark"] .holiday-chip{
  background:#4a2f18;
  color:#ffc58f;
}

html[data-theme="dark"] .absence-chip{
  background:#173a28;
  color:#83e7aa;
}

html[data-theme="dark"] .absence-chip.estado-pendiente{
  background:#493919;
  color:#ffd083;
}

html[data-theme="dark"] .absence-chip.estado-rechazada{
  background:#472329;
  color:#ff9791;
}


/* Tipos de ausencia */
html[data-theme="dark"] .tipo-vacaciones{
  background:#342519;
  color:#ffc28c;
  border-left-color:#ff9d55;
}

html[data-theme="dark"] .tipo-asuntos_propios{
  background:#273244;
  color:#c4cfdd;
  border-left-color:#8a9ab0;
}

html[data-theme="dark"] .tipo-baja_medica{
  background:#412127;
  color:#ff9a95;
  border-left-color:#ff6b65;
}

html[data-theme="dark"] .tipo-teletrabajo{
  background:#172f42;
  color:#8ed7ff;
  border-left-color:#38bdf8;
}

html[data-theme="dark"] .tipo-permiso_retribuido{
  background:#183526;
  color:#86e6ab;
  border-left-color:#52d68a;
}


/* Badges del cuadrante */
html[data-theme="dark"] .badge-mini.tipo-vacaciones{
  background:#342519;
  color:#ffc28c;
}

html[data-theme="dark"] .badge-mini.tipo-asuntos_propios{
  background:#273244;
  color:#c4cfdd;
}

html[data-theme="dark"] .badge-mini.tipo-baja_medica{
  background:#412127;
  color:#ff9a95;
}

html[data-theme="dark"] .badge-mini.tipo-teletrabajo{
  background:#172f42;
  color:#8ed7ff;
}

html[data-theme="dark"] .badge-mini.tipo-permiso_retribuido{
  background:#183526;
  color:#86e6ab;
}


/* Cuadrantes */
html[data-theme="dark"] .cuadrante-wrapper{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .cuadrante-table th,
html[data-theme="dark"] .cuadrante-table td{
  border-color:var(--line);
}

html[data-theme="dark"] .cuadrante-table th{
  background:linear-gradient(
    135deg,
    #b9064f,
    #d65b26
  );
}

html[data-theme="dark"] .cuadrante-table .sticky-col{
  background:#09111d;
  color:#f8fafc;
}

html[data-theme="dark"] .cuadrante-table td.sticky-col{
  background:var(--surface);
  color:var(--text);
}

html[data-theme="dark"] .cuadrante-cell.weekend,
html[data-theme="dark"] .cuadrante-table th.weekend{
  background:#1c2939;
  color:#9aa9bd;
}


/* Gráficas */
html[data-theme="dark"] .chart-card{
  background:var(--surface);
  border-color:var(--line);
  box-shadow:var(--shadow-soft);
}

html[data-theme="dark"] .chart-card h3{
  color:var(--heading);
}

html[data-theme="dark"] canvas{
  filter:none;
}


/* Exportaciones */
.export-preview{
  background:linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );
}

html[data-theme="dark"] .export-card{
  box-shadow:0 14px 30px rgba(0,0,0,.30);
}

html[data-theme="dark"] .export-card:hover{
  box-shadow:0 18px 40px rgba(0,0,0,.42);
}

html[data-theme="dark"] .export-info{
  border-color:#315b8f;
  background:#142b49;
  color:#a9caff;
}


/* RRHH */
html[data-theme="dark"] .rrhh-toolbar input,
html[data-theme="dark"] .rrhh-toolbar select{
  border-color:var(--line-strong);
  background:var(--input-bg);
  color:var(--text);
}

html[data-theme="dark"] .table-pro tbody tr:hover{
  background:var(--table-hover);
}


/* Dirección */
html[data-theme="dark"] .executive-hero{
  border-top-color:var(--primary);
}

html[data-theme="dark"] .readonly-badge{
  background:#28234c;
  color:#c8c4ff;
}

html[data-theme="dark"] .progress-track{
  background:var(--surface-3);
}

html[data-theme="dark"] .executive-progress-header span{
  color:var(--muted);
}

html[data-theme="dark"] .executive-summary-grid > div{
  border-color:var(--line);
  background:var(--surface-2);
}

html[data-theme="dark"] .executive-summary-grid span{
  color:var(--muted);
}


/* Inspector */
html[data-theme="dark"] .inspection-banner{
  border-color:#2a9d8f;
  background:#12332f;
  color:#a8eee4;
}

html[data-theme="dark"] .inspection-banner > strong{
  background:#147c70;
  color:#ffffff;
}

html[data-theme="dark"] .inspection-privacy{
  border-left-color:#2a9d8f;
  background:var(--surface-2);
}

html[data-theme="dark"] .inspection-privacy p{
  color:var(--muted);
}


/* Visor documental */
html[data-theme="dark"] .document-viewer-header{
  border-top-color:var(--primary);
}

html[data-theme="dark"] .document-preview-card,
html[data-theme="dark"] .document-metadata{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .document-pdf-frame{
  background:#0a101a;
}

html[data-theme="dark"] .document-image-stage{
  background:
    linear-gradient(
      45deg,
      #131e2d 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      #131e2d 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      #131e2d 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      #131e2d 75%
    );
  background-color:#0d1623;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size:20px 20px;
}

html[data-theme="dark"] .document-metadata-list > div{
  border-bottom-color:var(--line);
}

html[data-theme="dark"] .document-metadata-list dt{
  color:var(--muted);
}

html[data-theme="dark"] .document-metadata-list dd{
  color:var(--text);
}

html[data-theme="dark"] .document-action-name{
  color:var(--muted);
}


/* Avisos PWA */
html[data-theme="dark"] .pwa-install-box{
  border-color:var(--line);
  background:linear-gradient(
    135deg,
    var(--surface-2),
    var(--surface)
  );
}


/* Botones y enlaces */
html[data-theme="dark"] .btn.secondary{
  background:var(--primary-soft);
  color:var(--primary);
}

html[data-theme="dark"] .btn.danger{
  background:var(--danger-soft);
  color:var(--danger);
}

html[data-theme="dark"] .map-link{
  color:#7dd3fc;
}

html[data-theme="dark"] .nav-logout{
  color:#ff716c !important;
}


/* KPI */
html[data-theme="dark"] .kpi-icon{
  background:var(--primary-soft);
}

html[data-theme="dark"] .kpi-card:not(.highlight) p{
  color:var(--muted);
}

html[data-theme="dark"] .kpi-card:not(.highlight) strong{
  color:var(--heading);
}


/* Autocompletado del navegador */
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  -webkit-box-shadow:
    0 0 0 1000px var(--input-bg) inset;
  transition:
    background-color 9999s ease-in-out 0s;
}


/* Contraste móvil */
@media(max-width:760px){
  html[data-theme="dark"] .topbar{
    background:var(--topbar-bg);
  }
}


/* ==========================================================
   Ubicaciones autorizadas e indicadores de fichaje
   ========================================================== */

.fichaje-type,
.geo-classification {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.fichaje-dot,
.geo-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.16);
}

.fichaje-type.entrada .fichaje-dot {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.fichaje-type.salida .fichaje-dot {
  background: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.16);
}

.fichaje-type.pausa-inicio .fichaje-dot {
  background: #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16);
}

.fichaje-type.pausa-fin .fichaje-dot {
  background: #2e90fa;
  box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.16);
}

.geo-classification.oficina .geo-dot {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.geo-classification.cercano .geo-dot {
  background: #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16);
}

.geo-classification.externo .geo-dot {
  background: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.16);
}

.geo-classification.sin_ubicacion .geo-dot,
.geo-classification.sin_configuracion .geo-dot {
  background: #98a2b3;
}

.authorized-locations {
  display: grid;
  gap: 18px;
}

.authorized-location-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
}

.authorized-location-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.location-state {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.location-state.active {
  background: #dcfae6;
  color: #027a48;
}

.location-state.inactive {
  background: #f2f4f7;
  color: #475467;
}

.authorized-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.authorized-location-actions form {
  margin: 0;
}

.compact-form {
  gap: 12px;
}

@media (max-width: 720px) {
  .authorized-location-header {
    flex-direction: column;
  }
}
