:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #667085;
  --line: #d7dde5;
  --brand: #0f766e;
  --brand-dark: #0b3b38;
  --blue: #1d4ed8;
  --ok: #047857;
  --warn: #b45309;
  --bad: #b42318;
  font-family: "Segoe UI", Arial, sans-serif;
}

.whatsapp-head {
  align-items: start;
}

.whatsapp-head p:not(.eyebrow) {
  color: #475569;
  font-weight: 700;
  margin: 4px 0 0;
}

.whatsapp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, .85fr);
}

.whatsapp-card {
  display: grid;
  gap: 16px;
}

.whatsapp-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
}

.whatsapp-card-head h3,
.whatsapp-table-head h3 {
  margin: 0;
}

.whatsapp-card-head p,
.whatsapp-table-head p,
.whatsapp-safe-note {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin: 3px 0 0;
}

.whatsapp-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 14px;
  color: #047857;
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 13px;
  font-weight: 1000;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.whatsapp-icon.light {
  background: #dbeafe;
  color: #1d4ed8;
}

.whatsapp-icon.template {
  background: #fef3c7;
  color: #b45309;
}

.whatsapp-icon.auto {
  background: #ede9fe;
  color: #6d28d9;
}

.whatsapp-status {
  align-items: center;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.whatsapp-status.connected {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
}

.whatsapp-status.offline {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.whatsapp-status b {
  font-size: 18px;
}

.whatsapp-status span {
  font-size: 13px;
  font-weight: 900;
}

.whatsapp-kv {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin: 0;
}

.whatsapp-kv div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.whatsapp-kv dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.whatsapp-kv dd {
  color: #0f172a;
  font-size: 15px;
  font-weight: 1000;
  margin: 5px 0 0;
}

.whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp-actions button,
.wide-action,
.wa-dialog-panel button,
.wa-result-panel button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 1000;
  min-height: 42px;
  padding: 0 16px;
}

.whatsapp-actions button:disabled,
.wide-action:disabled,
.wa-dialog-panel button:disabled,
.wa-result-panel button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.whatsapp-actions button,
.wide-action,
.wa-dialog-panel button:not(.secondary),
.wa-result-panel button:not(.secondary) {
  background: #007f6d;
  color: #fff;
}

.whatsapp-actions .secondary,
.wa-dialog-panel .secondary,
.wa-result-panel .secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.whatsapp-test-preview {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #c7f0df;
  border-radius: 14px;
  padding: 18px;
}

.whatsapp-test-preview b {
  color: #00564f;
  display: block;
  margin-bottom: 8px;
}

.whatsapp-test-preview p {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.wa-template-preview {
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
  border-color: #fed7aa;
}

.whatsapp-history-panel {
  display: grid;
  gap: 12px;
}

.whatsapp-history-table {
  min-width: 880px;
}

.whatsapp-history-table th {
  background: #f1faf7;
  font-size: 12px;
  text-transform: uppercase;
}

.whatsapp-history-table td {
  font-size: 13px;
  font-weight: 800;
}

.wa-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 1000;
  padding: 5px 10px;
}

.wa-badge.sent {
  background: #dcfce7;
  color: #047857;
}

.wa-badge.error {
  background: #fee2e2;
  color: #b91c1c;
}

.wa-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.wa-badge.pendiente {
  background: #fef3c7;
  color: #b45309;
}

.wa-badge.skipped {
  background: #f1f5f9;
  color: #64748b;
}

.wa-badge.enviado {
  background: #dcfce7;
  color: #047857;
}

.wa-badge.omitido {
  background: #f1f5f9;
  color: #64748b;
}

.whatsapp-auto-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.wa-auto-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.wa-auto-form label {
  color: #0f172a;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.wa-auto-form input[type="text"],
.wa-auto-form input[type="tel"],
.wa-auto-form input[type="number"],
.wa-auto-form input:not([type]) {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 12px;
}

.wa-switch-line {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex !important;
  gap: 10px !important;
  min-height: 42px;
  padding: 9px 12px;
}

.wa-switch-line input {
  accent-color: #00856f;
  height: 18px;
  width: 18px;
}

.wa-auto-form button {
  background: #007f6d;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 1000;
  min-height: 42px;
  padding: 0 16px;
}

.wa-test-mode-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #c2410c;
  font-size: 13px;
  font-weight: 1000;
  padding: 11px 13px;
}

.wa-test-mode-banner.hidden {
  display: none;
}

.wa-dialog,
.wa-result-dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .32);
  padding: 0;
  width: min(520px, calc(100vw - 28px));
}

.wa-dialog::backdrop,
.wa-result-dialog::backdrop {
  background: rgba(15, 23, 42, .54);
}

.wa-dialog-panel,
.wa-result-panel {
  display: grid;
  gap: 13px;
  padding: 22px;
  position: relative;
}

.wa-dialog-panel h3,
.wa-result-panel h3 {
  margin: 0;
}

.wa-dialog-note,
.wa-error-detail {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.wa-dialog-panel label {
  color: #0f172a;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.wa-dialog-panel input,
.wa-dialog-panel select,
.wa-dialog-panel textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  padding: 11px 12px;
}

.wa-config-dialog {
  width: min(760px, calc(100vw - 28px));
}

.wa-template-dialog {
  width: min(820px, calc(100vw - 28px));
}

.wa-config-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.wa-token-field {
  grid-column: 1 / -1;
}

.wa-secret-input {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
}

.wa-secret-input input {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.wa-eye-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-left-radius: 0 !important;
  color: #0f172a !important;
  min-height: 43px;
}

.wa-eye-btn.active {
  background: #dcfce7 !important;
  color: #047857 !important;
}

.wa-dialog-close {
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  font-size: 22px;
  height: 34px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.wa-result-panel {
  justify-items: center;
  text-align: center;
}

.wa-spinner {
  animation: waSpin .8s linear infinite;
  border: 5px solid #dbeafe;
  border-top-color: #00856f;
  border-radius: 999px;
  height: 64px;
  width: 64px;
}

@keyframes waSpin {
  to { transform: rotate(360deg); }
}

.wa-result-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 34px;
  font-weight: 1000;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.wa-result-icon.ok {
  background: #dcfce7;
  color: #047857;
}

.wa-result-icon.error {
  background: #fee2e2;
  color: #b91c1c;
}

.wa-message-id {
  overflow-wrap: anywhere;
}

.wa-variable-order {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.wa-variable-order b {
  color: #0f172a;
  flex: 1 0 100%;
}

.wa-variable-order span {
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.wa-meta-response {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.wa-meta-response summary {
  cursor: pointer;
}

.wa-meta-response pre {
  margin: 10px 0 0;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wa-head-actions button,
.wa-card-top > button,
.wa-alert-filters button,
.wa-webhook-card button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 1000;
  min-height: 40px;
  padding: 0 16px;
}

.wa-head-actions .secondary,
.wa-card-top .secondary,
.wa-webhook-card .secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.wa-main-state {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 1000;
  padding: 9px 14px;
}

.wa-main-state.connected {
  background: #dcfce7;
  color: #047857;
}

.wa-main-state.offline {
  background: #fee2e2;
  color: #b91c1c;
}

.wa-control-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(480px, 1.35fr) minmax(320px, .85fr);
}

.wa-card-top {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.wa-compact-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.wa-compact-kpis div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.wa-compact-kpis small,
.wa-mini-stat small,
.wa-param-field span,
.wa-alert-filters label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.wa-compact-kpis b {
  color: #0f172a;
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.wa-tech-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.wa-tech-details summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
}

.wa-tech-details .whatsapp-kv {
  margin-top: 10px;
}

.whatsapp-actions.compact {
  gap: 8px;
}

.wa-template-list {
  display: grid;
  gap: 9px;
}

.wa-template-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.wa-template-list b {
  color: #0f172a;
  font-size: 13px;
}

.wa-param-field input {
  margin-top: 7px;
}

.wa-today-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin-top: 16px;
}

.wa-mini-stat {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 16px;
}

.wa-mini-stat span {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 12px;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  grid-row: span 2;
  width: 42px;
}

.wa-mini-stat b {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.wa-mini-stat.error span {
  background: #fee2e2;
  color: #b91c1c;
}

.wa-mini-stat.muted span {
  background: #f1f5f9;
  color: #64748b;
}

.wa-alert-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(135px, .8fr) minmax(170px, 1fr) minmax(135px, .8fr) minmax(170px, 1fr) minmax(135px, .8fr) minmax(170px, 1fr) auto;
}

.wa-alert-filters label {
  display: grid;
  gap: 6px;
}

.wa-alert-filters input,
.wa-alert-filters select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 10px;
}

.wa-alert-filters button,
.wa-card-top > button:not(.secondary) {
  background: #007f6d;
  color: #fff;
}

.wa-bottom-tools {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-top: 16px;
}

.wa-webhook-card {
  display: grid;
  gap: 12px;
}

.wa-tool-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.wa-tool-list button {
  min-height: 44px;
}

.wa-log-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
}

.wa-log-list div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.wa-log-list b {
  color: #0f172a;
}

.wa-log-list span,
.wa-log-list small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.wa-detail-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin: 0;
}

.wa-detail-list div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.wa-detail-list .wide {
  grid-column: 1 / -1;
}

.wa-detail-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.wa-detail-list dd {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.wa-badge.omitido {
  background: #f1f5f9;
  color: #64748b;
}

.wa-badge.error,
.wa-badge.ERROR {
  background: #fee2e2;
  color: #b91c1c;
}

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

  .wa-control-grid,
  .wa-bottom-tools {
    grid-template-columns: 1fr;
  }

  .wa-compact-kpis,
  .wa-today-summary {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .wa-alert-filters {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .wa-auto-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .whatsapp-kv {
    grid-template-columns: 1fr;
  }

  .wa-config-grid {
    grid-template-columns: 1fr;
  }

  .wa-auto-form {
    grid-template-columns: 1fr;
  }

  .wa-card-top,
  .wa-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wa-compact-kpis,
  .wa-today-summary,
  .wa-alert-filters,
  .wa-tool-list,
  .wa-detail-list {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: var(--bg);
  color: var(--ink);
}

body.login-page {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(244,249,250,.92), rgba(244,249,250,.62) 45%, rgba(244,249,250,.12)),
    var(--login-bg),
    linear-gradient(135deg, #e8f7f4, #edf7ff);
  background-size: cover;
  background-position: center;
}

.login-layout {
  width: min(1180px, 100%);
  min-height: min(680px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 46px;
  align-items: center;
}

.login-intro {
  max-width: 560px;
  color: #102a43;
}

.login-logo {
  width: min(310px, 72vw);
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,.12));
}

.login-intro h1 {
  margin: 0 0 8px;
  font-size: 42px;
  color: var(--brand-dark);
}

.login-intro h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.login-intro p {
  margin: 0;
  max-width: 420px;
  color: #334155;
  line-height: 1.5;
  font-weight: 700;
}

.login-feature-grid {
  width: min(430px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 10px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 16px 36px rgba(15,23,42,.1);
  backdrop-filter: blur(8px);
}

.login-feature-grid span {
  min-height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  border-radius: 8px;
  background: rgba(255,255,255,.52);
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(16,24,40,.18);
  padding: 34px;
}

.login-panel h2 {
  margin: 10px 0 8px;
  text-align: center;
  font-size: 28px;
}

.login-lock {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9f4ee;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
}

.login-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: var(--bad);
  font-weight: 800;
}

.sidebar {
  background: var(--brand-dark);
  color: #fff;
  padding: 14px;
  min-height: 100vh;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand-block img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  padding: 3px;
}

.brand-block h1 {
  font-size: 17px;
  margin: 0;
  line-height: 1.1;
}

.brand-block span {
  display: block;
  margin-top: 3px;
  color: #bde9e1;
  font-size: 12px;
  font-weight: 700;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar a,
.sidebar .nav-toggle {
  color: #d8f4ef;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .nav-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.sidebar a:hover,
.sidebar .nav-toggle:hover {
  background: rgba(255,255,255,.1);
}

.sidebar a.active,
.sidebar .nav-toggle.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, .95), rgba(15, 118, 110, .82));
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
  color: #fff;
}

.sidebar a.active .nav-icon,
.sidebar .nav-toggle.active .nav-icon {
  background: rgba(255,255,255,.18);
}

.nav-caret {
  margin-left: auto;
  opacity: .75;
  transform: rotate(0deg);
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.open .nav-caret {
  opacity: 1;
  transform: rotate(90deg);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 14px;
  line-height: 1;
}

.main {
  position: relative;
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.main.spa-swapping {
  opacity: .45;
  transform: translateY(4px);
}

.main.spa-ready {
  animation: spaContentIn .22s ease both;
}

.main.spa-loading::before {
  align-items: center;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
  color: var(--brand);
  content: "Cargando...";
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  line-height: 1;
  padding: 10px 14px;
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 50;
}

.main.spa-loading::after {
  animation: spaSpin .75s linear infinite;
  border: 2px solid #ccfbf1;
  border-top-color: var(--brand);
  border-radius: 50%;
  content: "";
  height: 14px;
  position: fixed;
  right: 104px;
  top: 27px;
  width: 14px;
  z-index: 51;
}

@keyframes spaSpin {
  to { transform: rotate(360deg); }
}

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

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.page-head h2 {
  margin: 0;
  font-size: 28px;
}

.page-subtitle {
  margin: 4px 0 0;
  color: #475467;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.stats article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16,24,40,.07);
}

.stats article {
  padding: 16px;
}

.stats b {
  display: block;
  font-size: 28px;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 0 0 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #475467;
  text-transform: uppercase;
  font-size: 12px;
}

input, select {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

input[type="file"] {
  padding: 8px;
}

button,
.button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.secondary {
  background: #eef2f7;
  color: #263445;
}

.danger-button {
  background: #fee2e2;
  color: var(--bad);
  min-height: 32px;
  padding: 7px 10px;
}

.small-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.search-form {
  align-items: stretch;
}

.search-box {
  min-width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}

.search-box input {
  border: 0;
  min-width: 250px;
  padding-left: 0;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  background: var(--muted);
  position: absolute;
  right: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.form {
  max-width: 620px;
  display: grid;
  gap: 8px;
}

.wide-form {
  max-width: none;
}

.novelty-panel {
  margin-bottom: 18px;
}

.novelty-form {
  gap: 16px;
}

.novelty-upload-head,
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-title-row {
  margin-bottom: 14px;
}

.section-title-row h3,
.novelty-upload-head h3 {
  margin-bottom: 4px;
}

.novelty-upload-box {
  display: grid;
  gap: 10px;
}

.soft-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e6f7f2;
  border: 1px solid #bfebe0;
  position: relative;
  flex: 0 0 auto;
}

.clip-icon::before {
  content: "";
  width: 13px;
  height: 22px;
  border: 3px solid var(--brand);
  border-left-width: 2px;
  border-radius: 10px;
  position: absolute;
  left: 15px;
  top: 10px;
  transform: rotate(14deg);
}

.novelty-upload-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 16px;
}

.file-drop {
  min-height: 118px;
  border: 1.5px dashed #0f8a72;
  border-radius: 8px;
  background: #f7fffc;
  color: #203047;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  padding: 20px;
}

.file-drop input {
  display: none;
}

.file-drop-icon {
  width: 34px;
  height: 24px;
  border: 3px solid #64748b;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  position: relative;
}

.file-drop-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid #64748b;
  border-top: 3px solid #64748b;
  position: absolute;
  left: 8px;
  top: -14px;
  transform: rotate(45deg);
}

.file-drop-icon::after {
  content: "";
  width: 3px;
  height: 22px;
  background: #64748b;
  position: absolute;
  left: 15px;
  top: -15px;
  border-radius: 2px;
}

.selected-files {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.selected-files ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.selected-files li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.file-limit-alert {
  margin: 0;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
  border-radius: 8px;
  padding: 11px 13px;
  font-weight: 800;
  align-self: stretch;
}

.novelty-fields {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 14px;
}

.novelty-fields label,
.novelty-dates label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.novelty-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.end-actions {
  justify-content: flex-end;
}

.attachment-menu {
  position: relative;
}

.attachment-menu summary {
  list-style: none;
  min-height: 34px;
  border: 1px solid #99d8ca;
  border-radius: 6px;
  color: var(--brand);
  background: #f0fdfa;
  font-weight: 800;
  padding: 8px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.attachment-menu summary::-webkit-details-marker {
  display: none;
}

.attachment-list {
  position: absolute;
  right: 0;
  z-index: 5;
  min-width: 260px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 8px;
}

.attachment-list a {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 6px;
  color: #102033;
  text-decoration: none;
  font-weight: 800;
}

.attachment-list a:hover {
  background: #f8fafc;
}

.attachment-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-request-page {
  display: block;
  min-height: 100vh;
  background: linear-gradient(135deg, #eef7f5, #f8fafc);
}

.request-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 18px;
}

.request-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.request-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.request-header img {
  max-width: 170px;
  max-height: 70px;
  object-fit: contain;
}

.request-header h1 {
  margin: 0;
  font-size: 28px;
}

.wide-request-shell {
  max-width: 1160px;
  padding: 12px 12px 0;
}

.public-novelty-topbar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 14px;
  padding: 16px 24px;
}

.public-brand-lockup {
  border-right: 1px solid #cbd5e1;
  padding-right: 24px;
}

.public-brand-lockup img,
.public-footer-brand img {
  height: 58px;
  max-width: 180px;
  object-fit: contain;
}

.public-top-title {
  display: grid;
  gap: 5px;
}

.public-top-title strong {
  color: #064e47;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-top-title span {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.public-help-link {
  align-items: center;
  color: #064e47;
  display: inline-flex;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.public-help-link b {
  display: block;
}

.public-help-icon {
  border: 2px solid #064e47;
  border-radius: 50%;
  display: inline-block;
  height: 24px;
  position: relative;
  width: 24px;
}

.public-help-icon::before,
.public-help-icon::after {
  background: #064e47;
  content: "";
  position: absolute;
}

.public-help-icon::before {
  height: 10px;
  left: 10px;
  top: 5px;
  width: 3px;
}

.public-help-icon::after {
  border-radius: 50%;
  bottom: 4px;
  height: 3px;
  left: 10px;
  width: 3px;
}

.public-novelty-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(236, 253, 245, .98), rgba(236, 253, 245, .74), rgba(255, 255, 255, .12)),
    linear-gradient(135deg, #e6f4f1, #f8fafc);
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
  margin-bottom: 14px;
  min-height: 132px;
  overflow: hidden;
  padding: 24px 34px;
  position: relative;
}

.public-novelty-hero::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.78)),
    url("branding/login-background.png");
  background-position: center right;
  background-size: cover;
  content: "";
  inset: 0 0 0 42%;
  opacity: .82;
  position: absolute;
}

.public-novelty-hero > * {
  position: relative;
  z-index: 1;
}

.public-novelty-hero h2,
.public-follow-card h2 {
  color: #064e47;
  font-size: 24px;
  margin: 0 0 7px;
}

.public-novelty-hero p,
.public-follow-card p {
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.public-follow-card {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 14px;
  padding: 18px 34px;
}

.public-follow-card .tracking-big-icon {
  height: 62px;
  width: 62px;
}

.public-follow-card .icon-document-search::before {
  height: 31px;
  left: 18px;
  top: 13px;
  width: 24px;
}

.public-follow-card .icon-document-search::after {
  height: 15px;
  left: 31px;
  top: 32px;
  width: 15px;
}

.public-follow-card a {
  align-items: center;
  background: linear-gradient(135deg, #006b5d, #008a75);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 107, 93, .24);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
}

.public-follow-card a::after {
  content: ">";
  font-size: 19px;
  margin-left: 12px;
}

.public-novelty-footer {
  align-items: center;
  background:
    linear-gradient(135deg, #064e47, #006b5d 62%, #0b3b38);
  color: #ecfdf5;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1.4fr .8fr 1fr;
  margin: 22px -12px 0;
  padding: 24px 52px 18px;
  position: relative;
}

.public-novelty-footer::after {
  border: solid rgba(255,255,255,.12);
  border-width: 0 0 3px 3px;
  bottom: 20px;
  content: "";
  height: 44px;
  opacity: .6;
  position: absolute;
  right: 18px;
  transform: skewX(-18deg);
  width: 120px;
}

.public-footer-brand {
  border-right: 1px solid rgba(255,255,255,.35);
  min-height: 72px;
}

.public-footer-brand img {
  background: transparent;
  filter: brightness(0) invert(1);
}

.public-footer-block {
  border-right: 1px solid rgba(255,255,255,.35);
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding-right: 22px;
}

.public-footer-block:last-of-type {
  border-right: 0;
}

.public-footer-block strong {
  color: #fff;
  font-weight: 900;
}

.public-footer-block a {
  color: #ecfdf5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-footer-block a:hover {
  text-decoration: underline;
}

.public-socials {
  display: flex;
  gap: 10px;
}

.public-socials a {
  align-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  text-transform: uppercase;
  width: 30px;
}

.public-novelty-footer p {
  bottom: 8px;
  color: #d1fae5;
  font-size: 13px;
  font-weight: 700;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.public-novelty-card {
  padding: 0;
  overflow: hidden;
}

.public-novelty-header {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin: 0;
}

.request-brand {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}

.request-brand img {
  max-width: 112px;
  max-height: 52px;
}

.request-brand h1 {
  color: #0b285f;
  font-size: 23px;
}

.request-brand p {
  margin: 2px 0 0;
  color: #4f5f7a;
  font-weight: 700;
  font-size: 12px;
}

.request-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  position: relative;
}

.request-icon-edit::before {
  content: "";
  width: 17px;
  height: 22px;
  border: 2px solid #2563eb;
  border-radius: 4px;
  box-sizing: border-box;
}

.request-icon-edit::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 4px;
  border-radius: 999px;
  background: #2563eb;
  transform: rotate(-35deg);
  right: 10px;
  bottom: 12px;
}

.request-info-note {
  max-width: 340px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 6px;
  padding: 9px 12px;
  display: grid;
  gap: 3px;
  font-weight: 800;
  font-size: 12px;
}

.public-novelty-form {
  padding: 10px 12px 14px;
  gap: 9px;
}

.request-section {
  border: 1px solid #d6e0ee;
  border-radius: 7px;
  padding: 10px 12px;
  display: grid;
  gap: 9px;
}

.request-section.request-upload-box {
  padding: 8px 10px;
  gap: 7px;
}

.request-section h2 {
  margin: 0;
  color: #0b285f;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  position: relative;
}

.icon-person::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid #2563eb;
  border-radius: 50%;
  transform: translateY(-3px);
}

.icon-person::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 7px;
  border: 2px solid #2563eb;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  bottom: 4px;
}

.icon-calendar::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #2563eb;
  border-radius: 3px;
}

.icon-calendar::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  background: #2563eb;
  top: 8px;
}

.icon-clip::before {
  content: "";
  width: 10px;
  height: 16px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  transform: rotate(35deg);
}

.request-section h2 small {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.public-novelty-form label {
  font-size: 12px;
  gap: 4px;
}

.public-novelty-form input,
.public-novelty-form select,
.public-novelty-form textarea {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.public-novelty-form textarea {
  min-height: 58px;
}

.public-novelty-form small {
  font-size: 11px;
  line-height: 1.25;
}

.employee-request-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(190px, 1fr) minmax(160px, .8fr) minmax(165px, .85fr);
  gap: 9px 12px;
  align-items: start;
}

.employee-request-grid .email-field {
  grid-column: span 2;
}

.input-with-button {
  display: grid;
  grid-template-columns: 1fr 36px;
}

.input-with-button input {
  border-radius: 6px 0 0 6px;
}

.icon-field-button {
  min-height: auto;
  padding: 0;
  border-radius: 0 6px 6px 0;
  background: #f8fafc;
  color: #0f2862;
  border: 1px solid #cbd5e1;
  border-left: 0;
  font-size: 0;
}

.icon-field-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #0f2862;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.icon-field-button::after {
  content: "";
  width: 7px;
  height: 2px;
  background: #0f2862;
  display: inline-block;
  transform: rotate(45deg);
  margin-left: -2px;
  margin-bottom: -5px;
}

.request-detail-layout {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
}

.request-detail-layout.is-permission {
  align-items: stretch;
  grid-template-columns: 210px 220px 170px 1fr;
}

.date-range-fields {
  display: contents;
}

.request-detail-layout.is-permission .date-range-fields {
  align-self: stretch;
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-row: 2;
  grid-template-rows: 1fr 1fr;
}

.request-detail-layout.is-permission .range-end {
  order: 2;
}

.request-detail-layout.is-permission .range-start {
  order: 1;
}

.novelty-type-cards {
  border: 0;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  margin: 0;
  padding: 0;
}

.novelty-type-cards legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-weight: 900;
}

.novelty-choice {
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  gap: 3px;
  text-align: center;
  cursor: pointer;
  color: #0f172a;
  background: #fff;
}

.novelty-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.novelty-choice:has(input:checked) {
  border-color: var(--brand);
  background: #f0fdfa;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.novelty-choice.permiso { border-color: #34d399; }
.novelty-choice.vacaciones { border-color: #fdba74; }
.novelty-choice.incapacidad { border-color: #fca5a5; }
.novelty-choice.licencia { border-color: #93c5fd; }

.choice-icon {
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--brand);
}

.choice-permiso::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #059669;
  border-radius: 50%;
}

.choice-permiso::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 14px;
  height: 8px;
  border: 2px solid #059669;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.choice-vacaciones::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 16px;
  height: 9px;
  border-radius: 14px 14px 3px 3px;
  background: #f97316;
}

.choice-vacaciones::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 3px;
  height: 9px;
  background: #f97316;
}

.choice-incapacidad::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #ef4444;
  border-radius: 5px;
}

.choice-incapacidad::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ef4444;
  font-weight: 900;
  font-size: 18px;
}

.choice-licencia::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 14px;
  height: 18px;
  border: 2px solid #2563eb;
  border-radius: 3px;
}

.choice-licencia::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 7px;
  height: 2px;
  background: #2563eb;
  box-shadow: 0 5px 0 #2563eb;
}

.duration-box {
  background: #f1f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  min-height: 54px;
  padding: 7px;
  place-items: center;
  text-align: center;
}

.request-detail-layout.is-permission .duration-box {
  grid-column: 3;
  grid-row: 2;
  min-height: 146px;
}

.duration-box span,
.duration-box small {
  color: #334155;
  font-weight: 800;
}

.duration-box strong {
  color: #1d4ed8;
  font-size: 21px;
  line-height: 1;
}

.motivo-field small {
  justify-self: end;
  color: var(--muted);
}

.request-reason-field {
  margin-top: 12px;
}

.request-subtype-panel {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
}

.request-subtype-panel.permiso {
  background: #fbf8ff;
  border-color: #ddd6fe;
}

.request-subtype-panel.licencia {
  background: #f5f9ff;
  border-color: #bfdbfe;
}

.request-subtype-panel.incapacidad {
  background: #fff7f7;
  border-color: #fecdd3;
}

.subtype-head {
  color: #334155;
  font-size: 15px;
  margin-bottom: 12px;
}

.request-subtype-panel.permiso .subtype-head strong { color: #6d28d9; }
.request-subtype-panel.licencia .subtype-head strong { color: #2563eb; }
.request-subtype-panel.incapacidad .subtype-head strong { color: #dc2626; }

.subtype-card-grid {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
}

.subtype-card-grid legend {
  color: #0f172a;
  font-weight: 900;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.subtype-choice {
  align-items: center;
  background: #fff;
  border: 1px solid #d6deea;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 13px 12px;
  position: relative;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.subtype-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.subtype-choice input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.subtype-choice:has(input:checked) {
  box-shadow: inset 0 0 0 2px currentColor;
}

.subtype-choice:has(input:checked)::after {
  align-items: center;
  background: currentColor;
  border-radius: 50%;
  color: #fff;
  content: "";
  display: flex;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 18px;
}

.subtype-choice:has(input:checked)::before {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  position: absolute;
  right: 16px;
  top: 13px;
  transform: rotate(45deg);
  width: 4px;
  z-index: 1;
}

.subtype-choice.permiso { color: #6d28d9; }
.subtype-choice.licencia { color: #2563eb; }
.subtype-choice.incapacidad { color: #dc2626; }

.subtype-choice.permiso:has(input:checked) { background: #faf5ff; }
.subtype-choice.licencia:has(input:checked) { background: #eff6ff; }
.subtype-choice.incapacidad:has(input:checked) { background: #fff1f2; }

.subtype-choice strong {
  color: currentColor;
  font-size: 14px;
}

.subtype-choice small {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.subtype-icon {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  justify-self: center;
  width: 46px;
}

.subtype-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 28px;
}

.subtype-icon.permiso { background: #f3e8ff; color: #6d28d9; }
.subtype-icon.licencia { background: #dbeafe; color: #2563eb; }
.subtype-icon.incapacidad { background: #fee2e2; color: #dc2626; }

.request-upload-box.required-support {
  border-color: #fecdd3;
  background: #fff7f7;
}

.request-upload-box.required-support .public-file-drop {
  border-color: #fb7185;
  background: #fffafa;
}

.file-required-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  margin: 10px 0 0;
  padding: 10px 12px;
}

.tracking-shortcut {
  color: #047857;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
  text-decoration: none;
}

.tracking-shortcut:hover {
  text-decoration: underline;
}

.nav-count {
  align-items: center;
  background: #ef4444;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 19px;
  justify-content: center;
  margin-left: auto;
  min-width: 19px;
  padding: 0 6px;
}

.tracking-page {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .09), transparent 34%),
    #f5f8fb;
  color: #0f172a;
}

.tracking-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 12px 20px 0;
}

.tracking-back-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.tracking-header,
.tracking-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}

.tracking-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 22px;
}

.tracking-header h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.tracking-header p {
  color: #475569;
  font-weight: 700;
  margin: 0;
}

.tracking-home {
  color: #047857;
  font-weight: 900;
  text-decoration: none;
}

.tracking-card {
  margin-bottom: 16px;
  padding: 20px;
}

.tracking-query-card {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1.45fr;
}

.tracking-query-intro {
  align-items: center;
  display: flex;
  gap: 18px;
}

.tracking-query-intro h2,
.tracking-card h2 {
  color: #064e47;
  font-size: 20px;
  margin: 0 0 6px;
}

.tracking-query-intro p {
  color: #0f766e;
  font-weight: 700;
  margin: 0;
}

.tracking-big-icon {
  background: #e6f7f1;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 76px;
  position: relative;
  width: 76px;
}

.icon-document-search::before,
.icon-clipboard-check::before {
  border: 3px solid #047857;
  border-radius: 5px;
  content: "";
  height: 38px;
  left: 23px;
  position: absolute;
  top: 16px;
  width: 28px;
}

.icon-document-search::after {
  border: 3px solid #047857;
  border-radius: 50%;
  box-shadow: 13px 13px 0 -8px #047857;
  content: "";
  height: 18px;
  left: 39px;
  position: absolute;
  top: 38px;
  width: 18px;
}

.icon-clipboard-check::after {
  border: solid #047857;
  border-width: 0 4px 4px 0;
  content: "";
  height: 16px;
  left: 38px;
  position: absolute;
  top: 36px;
  transform: rotate(45deg);
  width: 8px;
}

.tracking-query-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr 170px;
}

.tracking-query-form label,
.tracking-contribution-form label {
  color: #0f172a;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.tracking-query-form input,
.tracking-contribution-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #0f172a;
  font: inherit;
  padding: 12px 13px;
}

.tracking-query-form button,
.tracking-contribution-form button {
  background: linear-gradient(135deg, #059669, #006b5f);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
  padding: 13px 16px;
}

.tracking-error {
  grid-column: 1 / -1;
}

.tracking-summary-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 82px repeat(5, 1fr);
}

.tracking-summary-item {
  border-left: 1px solid #d7e1ec;
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding-left: 18px;
}

.tracking-summary-item span,
.tracking-detail-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.tracking-summary-item strong {
  font-size: 18px;
}

.tracking-summary-item em {
  color: #334155;
  font-style: normal;
  font-weight: 800;
}

.tracking-timeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 16px;
}

.tracking-step {
  color: #64748b;
  display: grid;
  gap: 7px;
  justify-items: center;
  position: relative;
  text-align: center;
}

.tracking-step:not(:last-child)::after {
  background: #cbd5e1;
  content: "";
  height: 3px;
  left: 58%;
  position: absolute;
  top: 22px;
  width: 84%;
}

.tracking-step.done:not(:last-child)::after {
  background: #047857;
}

.tracking-step-icon {
  background: #eef2f7;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  height: 46px;
  position: relative;
  width: 46px;
  z-index: 1;
}

.tracking-step.done .tracking-step-icon {
  background: #047857;
  border-color: #047857;
}

.tracking-step.done .tracking-step-icon::after {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  content: "";
  height: 15px;
  left: 16px;
  position: absolute;
  top: 10px;
  transform: rotate(45deg);
  width: 8px;
}

.tracking-step strong {
  color: #0f172a;
  font-size: 13px;
}

.tracking-step small {
  color: #475569;
  font-weight: 700;
}

.tracking-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.tracking-detail-list {
  display: grid;
  gap: 11px 20px;
  grid-template-columns: 150px 1fr;
  margin: 10px 0 16px;
}

.tracking-detail-list dd {
  font-weight: 800;
  margin: 0;
}

.public-attachment-stack a,
.tracking-contribution-item {
  background: #f8fafc;
  border: 1px solid #d7e1ec;
  border-radius: 7px;
}

.tracking-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-weight: 800;
  padding: 13px;
}

.tracking-contribution-form {
  display: grid;
  gap: 12px;
}

.tracking-history {
  display: grid;
  gap: 10px;
}

.tracking-history div {
  border-left: 3px solid #0f766e;
  padding-left: 12px;
}

.tracking-history time {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.tracking-history p,
.tracking-contribution-item p {
  color: #475569;
  font-weight: 700;
  margin: 4px 0 0;
}

.tracking-contribution-item {
  padding: 12px;
}

.tracking-pdf-button {
  align-items: center;
  border: 1px solid #047857;
  border-radius: 7px;
  color: #047857;
  display: flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 12px;
  padding: 12px;
  text-decoration: none;
}

.tracking-pdf-button:hover {
  background: #ecfdf5;
}

.internal-contribution-item {
  background: #f8fafc;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  padding: 12px;
}

.status-badge.devuelta {
  background: #fff7ed;
  color: #c2410c;
}

/* Public novedades visual polish */
.public-request-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, .08), transparent 32%),
    linear-gradient(135deg, #f4faf8, #f8fafc);
}

.wide-request-shell,
.tracking-shell {
  padding-top: 14px;
}

.public-novelty-topbar {
  border-color: #dbe6ef;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
  gap: 20px;
  margin-bottom: 12px;
  padding: 14px 24px;
}

.public-brand-lockup {
  padding-right: 22px;
}

.public-brand-lockup img {
  height: 54px;
}

.public-top-title strong {
  font-size: 24px;
}

.public-help-link {
  background: #f0fdfa;
  border: 1px solid #b8e7dd;
  border-radius: 999px;
  padding: 9px 12px;
}

.public-novelty-hero {
  background:
    linear-gradient(90deg, rgba(236, 253, 245, .98), rgba(236, 253, 245, .94), rgba(255, 255, 255, .9)),
    linear-gradient(135deg, #e6f4f1, #f8fafc);
  border-color: #dbe6ef;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .052);
  gap: 18px;
  grid-template-columns: 58px minmax(330px, 440px) 1fr;
  margin-bottom: 12px;
  min-height: 112px;
  padding: 22px 34px;
}

.public-novelty-hero::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.22)),
    url("branding/novedades-hero.png");
  background-position: center right;
  background-size: cover;
  inset: 0 0 0 56%;
  opacity: .94;
}

.public-novelty-hero > div:not(.tracking-big-icon) {
  display: grid;
  gap: 5px;
  max-width: 440px;
}

.public-novelty-hero p {
  max-width: 430px;
}

.public-novelty-hero h2,
.public-follow-card h2 {
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 0;
}

.public-follow-card {
  align-items: center;
  border-color: #dbe6ef;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .052);
  margin-bottom: 12px;
  padding: 18px 30px;
}

.public-follow-card > div:not(.tracking-big-icon) {
  display: grid;
  gap: 5px;
}

.public-follow-card p {
  max-width: 640px;
}

.public-follow-card a {
  border-radius: 8px;
  min-height: 46px;
}

.public-novelty-hero .tracking-big-icon,
.public-follow-card .tracking-big-icon {
  align-self: center;
  display: block;
  height: 58px;
  justify-self: center;
  width: 58px;
}

.public-novelty-hero .icon-document-search::before,
.public-follow-card .icon-document-search::before {
  height: 29px;
  left: 18px;
  top: 12px;
  width: 22px;
}

.public-novelty-hero .icon-document-search::after,
.public-follow-card .icon-document-search::after {
  box-shadow: 10px 10px 0 -7px #047857;
  height: 14px;
  left: 32px;
  top: 31px;
  width: 14px;
}

.icon-radicado-check::before {
  border: 3px solid #047857;
  border-radius: 5px;
  content: "";
  height: 30px;
  left: 17px;
  position: absolute;
  top: 12px;
  width: 24px;
}

.icon-radicado-check::after {
  border: solid #047857;
  border-width: 0 4px 4px 0;
  content: "";
  height: 15px;
  left: 29px;
  position: absolute;
  top: 28px;
  transform: rotate(45deg);
  width: 8px;
}

.public-novelty-hero,
.public-follow-card {
  grid-template-columns: 58px 1fr auto;
  padding-left: 28px;
}

.public-novelty-hero {
  grid-template-columns: 58px minmax(330px, 440px) 1fr;
}

.public-novelty-hero .tracking-big-icon,
.public-follow-card .tracking-big-icon {
  justify-self: center;
}

.public-novelty-form {
  padding-left: 16px;
  padding-right: 16px;
}

.request-section {
  padding-left: 12px;
  padding-right: 12px;
}

.request-section h2 {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0;
  line-height: 1.2;
}

.request-section h2 .section-icon {
  justify-self: center;
}

.request-upload-box h2 {
  align-items: center;
  grid-template-columns: 58px auto auto 1fr;
}

.request-upload-box h2 small {
  white-space: nowrap;
}

.subtype-card-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
}

.subtype-choice {
  gap: 4px;
  min-height: 86px;
  padding: 10px 8px;
}

.subtype-icon {
  border-radius: 10px;
  height: 34px;
  width: 34px;
}

.subtype-icon svg {
    height: 22px;
    width: 22px;
}

.permission-fields {
  grid-column: 1;
  grid-row: 2;
}

.permission-card {
  align-items: stretch;
  background: linear-gradient(135deg, #fbf8ff, #fff);
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  height: 100%;
  padding: 10px;
  width: 100%;
}

.permission-card.by-hours {
  grid-template-columns: 176px 1fr 1fr 1fr;
  height: auto;
}

.permission-card label {
  margin: 0;
}

.permission-hours-choice {
  align-self: stretch;
  background: #fff;
  border: 1px solid #d8c9ff;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  padding: 8px 10px 10px;
}

.permission-hours-choice legend {
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
  grid-column: 1 / -1;
  line-height: 1;
  padding: 0;
}

.permission-hours-choice label {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
}

.request-detail-layout.is-permission-by-hours .permission-fields {
  grid-column: 1 / 4;
  grid-row: 2;
}

.request-detail-layout.is-permission-by-hours .date-range-fields {
  display: none;
}

.request-detail-layout.is-permission-by-hours .duration-box {
  grid-column: 4;
  grid-row: 2;
  min-height: 86px;
}

.request-detail-layout.is-permission-by-hours .permission-card {
  border-color: #c4b5fd;
  box-shadow: 0 10px 24px rgba(109, 40, 217, .08);
}

.request-detail-layout.is-permission:not(.is-permission-by-hours) .permission-card {
  background: #fff;
  border-style: dashed;
}

.permission-hours-choice label:has(input:checked) {
  background: #ede9fe;
  border-color: #8b5cf6;
  color: #5b21b6;
}

.permission-hours-choice input {
  accent-color: #7c3aed;
}

.permission-time-field[hidden] {
  display: none !important;
}

.subtype-choice strong {
  font-size: 13px;
  line-height: 1.15;
}

.subtype-choice small {
  font-size: 11px;
  line-height: 1.22;
}

.public-novelty-card {
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .075);
}

.public-novelty-header {
  background: linear-gradient(90deg, #fff, #f8fbfd);
  padding: 14px 18px;
}

.form-request-brand {
  grid-template-columns: auto 1fr;
}

.request-brand h1 {
  font-size: 22px;
}

.request-info-note {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #075e54;
}

.public-novelty-footer {
  gap: 24px;
  grid-template-columns: 1.2fr 1.3fr .8fr 1fr;
  margin-top: 18px;
  padding: 22px 52px 28px;
}

.public-footer-brand {
  display: grid;
  gap: 4px;
  place-content: center start;
}

.public-footer-brand strong {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.public-footer-brand strong span {
  color: #bdf7ec;
  font-size: 18px;
}

.public-footer-brand small {
  color: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

.public-novelty-footer p {
  bottom: 8px;
}

.public-request-page .request-info-note {
  display: none !important;
}

.public-upload-grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.public-file-drop {
  min-height: 68px;
  padding: 8px 10px;
  border-style: dashed;
  background: #f8fbff;
}

.public-file-drop .file-drop-icon {
  width: 24px;
  height: 17px;
  border-width: 2px;
  border-radius: 0 0 6px 6px;
  margin-top: 4px;
}

.public-file-drop .file-drop-icon::before {
  width: 9px;
  height: 9px;
  border-left-width: 2px;
  border-top-width: 2px;
  left: 6px;
  top: -9px;
}

.public-file-drop .file-drop-icon::after {
  width: 2px;
  height: 15px;
  left: 11px;
  top: -9px;
}

.public-file-drop strong {
  font-size: 12px;
}

.public-file-drop small {
  font-size: 11px;
}

.public-file-drop em {
  color: #53627c;
  font-style: normal;
  font-size: 10px;
  line-height: 1.2;
}

.public-selected-files {
  align-self: start;
  padding: 10px 12px;
}

.public-selected-files > strong {
  font-size: 13px;
}

.public-selected-files li {
  min-height: 34px;
  padding: 8px 10px;
}

.public-form-actions {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.draft-button {
  margin-left: auto;
}

.modern-request-form,
.request-upload-box {
  display: grid;
  gap: 16px;
}

.request-grid,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.report-filter-form {
  display: grid;
  gap: 16px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.report-filter-grid label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.report-filter-actions {
  justify-content: space-between;
}

.danger-outline {
  color: #dc2626;
}

.request-grid label,
.modern-request-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.modern-request-form textarea,
.action-review-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.upload-progress {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.upload-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width .25s ease;
}

.tiny-remove {
  min-height: 28px;
  padding: 4px 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
}

.request-filter-panel {
  margin-bottom: 16px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-cards article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.summary-cards span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.summary-cards strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  color: #102033;
}

.tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tab-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 8px 8px 0 0;
}

.tab-nav a.active {
  color: var(--brand);
  background: #e6f7f2;
  box-shadow: inset 0 -3px 0 var(--brand);
}

.modern-table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table tbody tr {
  transition: background .15s ease;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 900;
  font-size: 12px;
  background: #eef2f7;
  color: #334155;
}

.status-badge.pendiente { background: #fef3c7; color: #92400e; }
.status-badge.en_revision { background: #dbeafe; color: #1d4ed8; }
.status-badge.devuelta { background: #fce7f3; color: #be185d; }
.status-badge.aprobada { background: #dcfce7; color: #166534; }
.status-badge.rechazada { background: #fee2e2; color: #b91c1c; }
.status-badge.cancelada,
.status-badge.finalizada { background: #e2e8f0; color: #334155; }

.row-menu {
  position: relative;
}

.row-menu summary {
  list-style: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  border-radius: 8px;
  background: #eef2f7;
  cursor: pointer;
  font-weight: 900;
}

.row-menu summary::-webkit-details-marker {
  display: none;
}

.row-menu div {
  position: absolute;
  right: 0;
  z-index: 8;
  min-width: 180px;
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.row-menu a {
  color: #102033;
  text-decoration: none;
  font-weight: 800;
  padding: 8px;
  border-radius: 6px;
}

.row-menu a:hover {
  background: #f8fafc;
}

.compact-button {
  min-height: 32px;
  padding: 7px 14px;
  white-space: nowrap;
}

.link-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #102033;
  justify-content: flex-start;
  min-height: 0;
  padding: 8px;
  font-weight: 800;
}

.link-button:hover {
  background: #f8fafc;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.request-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
}

.attachment-stack {
  display: grid;
  gap: 8px;
}

.attachment-stack a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: #102033;
  text-decoration: none;
  font-weight: 800;
}

.attachment-stack span {
  color: var(--muted);
}

.action-review-form {
  display: grid;
  gap: 10px;
}

.send-mail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.46);
  display: grid;
  place-items: center;
  padding: 18px;
}

.send-mail-modal[hidden] {
  display: none !important;
}

.send-mail-card {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 24px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.mail-loader {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: var(--brand);
  margin: 0 auto;
  animation: mail-spin 1s linear infinite;
}

@keyframes mail-spin {
  to { transform: rotate(360deg); }
}

.mail-info {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.mail-info span {
  color: var(--muted);
  font-weight: 900;
}

.mail-info strong {
  color: #102033;
}

.send-mail-actions {
  justify-content: center;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.actions form {
  margin: 0;
}

.compact-actions {
  margin: 0;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-weight: 700;
}

.thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.schedule-summary {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  background: #ecfeff;
}

.schedule-summary span {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

.schedule-summary b {
  font-size: 26px;
}

.field-group {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.field-group legend {
  padding: 0 6px;
  font-weight: 800;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.check-row input {
  min-height: auto;
}

.employee-form {
  max-width: 980px;
}

.employee-labor-section {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid #d9ebe7;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 253, 245, .7), rgba(255, 255, 255, .96));
}

.labor-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.labor-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.labor-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.labor-icon,
.fingerprint-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #e8f8f4;
  border: 1px solid #c8eee5;
  position: relative;
}

.labor-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid var(--brand);
  border-radius: 50%;
}

.labor-icon::after {
  content: "";
  width: 10px;
  height: 3px;
  background: var(--brand);
  position: absolute;
  transform: translate(5px, 0) rotate(38deg);
  transform-origin: left center;
}

.employee-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}

.employee-two-cols > div {
  display: grid;
  gap: 8px;
}

.biometric-picker {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid #c8eee5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.biometric-picker legend {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0;
  font-weight: 800;
}

.biometric-picker legend b,
.biometric-picker legend small {
  display: block;
}

.biometric-picker legend small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.biometric-picker legend em {
  justify-self: end;
  padding: 9px 14px;
  border-radius: 999px;
  background: #e8f8f4;
  border: 1px solid #c8eee5;
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fingerprint-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid var(--brand);
  border-top-color: transparent;
  border-radius: 50%;
}

.fingerprint-icon::after {
  content: "";
  width: 12px;
  height: 22px;
  position: absolute;
  border: 3px solid var(--brand);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(12deg);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
}

.device-card {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.device-card:hover {
  border-color: #8bd8ca;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .10);
}

.device-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-checkbox {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #9ca3af;
  border-radius: 5px;
  background: #fff;
}

.device-checkbox::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
}

.device-terminal {
  width: 28px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0f172a, #2c3540 55%, #111827);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  position: relative;
}

.device-terminal::after {
  content: "";
  width: 7px;
  height: 30px;
  position: absolute;
  top: 4px;
  right: 5px;
  border-radius: 10px;
  background: linear-gradient(#34d399, rgba(52, 211, 153, 0));
}

.device-info b,
.device-info small {
  display: block;
}

.device-info b {
  font-size: 16px;
}

.device-info small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.device-card:has(.device-check:checked) {
  border-color: var(--brand);
  background: #f0fdfa;
  box-shadow: 0 12px 28px rgba(15, 118, 110, .14);
}

.device-check:checked + .device-checkbox {
  border-color: var(--brand);
  background: var(--brand);
}

.device-check:checked + .device-checkbox::after {
  opacity: 1;
}

.device-help {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f8f4;
  color: var(--brand);
  font-weight: 800;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.employee-page-head {
  align-items: center;
}

.employee-head-actions {
  margin-top: 0;
}

.employee-head-actions .button,
.employee-head-actions button {
  min-height: 48px;
  padding-inline: 18px;
}

.employee-form-modern {
  display: grid;
  gap: 14px;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  gap: 8px;
  align-items: stretch;
}

.employee-card-section {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.employee-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.employee-section-title h3,
.employee-section-title p {
  margin: 0;
}

.employee-section-title h3 {
  font-size: 18px;
}

.employee-section-title p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.section-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dff8ef;
  position: relative;
}

.person-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  transform: translateY(-4px);
}

.person-icon::after {
  content: "";
  width: 22px;
  height: 12px;
  position: absolute;
  bottom: 8px;
  border: 2px solid var(--brand);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.labor-card-icon::before {
  content: "";
  width: 19px;
  height: 15px;
  border: 2px solid var(--brand);
  border-radius: 4px;
}

.labor-card-icon::after {
  content: "";
  width: 10px;
  height: 5px;
  position: absolute;
  top: 10px;
  border: 2px solid var(--brand);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 800;
}

.form-field label span {
  color: var(--bad);
}

.photo-drop {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
}

.photo-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-drop b {
  color: #475467;
}

.photo-drop small {
  color: var(--muted);
  font-weight: 700;
}

.upload-icon {
  width: 34px;
  height: 28px;
  position: relative;
}

.upload-icon::before {
  content: "";
  position: absolute;
  inset: 9px 2px 0;
  border: 3px solid #64748b;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.upload-icon::after {
  content: "";
  width: 13px;
  height: 13px;
  position: absolute;
  top: 2px;
  left: 10px;
  border-left: 3px solid #64748b;
  border-top: 3px solid #64748b;
  transform: rotate(45deg);
}

.dependency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.dependency-card,
.status-choice,
.device-mini-card {
  position: relative;
  cursor: pointer;
}

.dependency-card {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dependency-card input,
.status-choice input,
.device-mini-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dependency-card b,
.dependency-card small {
  display: block;
}

.dependency-card b {
  font-size: 13px;
}

.dependency-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.dependency-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f8f4;
}

.dependency-icon::before {
  content: "";
  width: 16px;
  height: 20px;
  border: 2px solid var(--brand);
  border-radius: 3px;
}

.dependency-card:has(input:checked) {
  border-color: var(--brand);
  background: #f0fdfa;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .25);
}

.dependency-card:has(input:checked)::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.status-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.status-choice {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-choice b,
.status-choice small {
  display: block;
}

.status-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.status-check {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
}

.status-check::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0;
}

.active-choice:has(input:checked) {
  border-color: var(--brand);
  background: #f0fdfa;
}

.active-choice:has(input:checked) .status-check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.inactive-choice:has(input:checked) {
  border-color: var(--bad);
  background: #fff5f5;
}

.inactive-choice:has(input:checked) .status-check {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

.status-choice:has(input:checked) .status-check::after {
  opacity: 1;
}

.biometric-strip-section {
  gap: 16px;
}

.biometric-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.select-all-button {
  min-height: 40px;
  white-space: nowrap;
}

.device-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.device-mini-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.device-mini-card:has(.device-check:checked) {
  border-color: var(--brand);
  background: #f0fdfa;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .25);
}

.device-mini-card .device-terminal {
  width: 22px;
  height: 36px;
}

.device-mini-card .device-info b {
  font-size: 13px;
}

.device-mini-card .device-info small {
  font-size: 12px;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  background: #ecfeff;
  color: #115e59;
  font-weight: 800;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.config-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
}

.config-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.config-grid b {
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.completo { background: #dcfce7; color: var(--ok); }
.incompleto { background: #fef3c7; color: var(--warn); }
.ausente { background: #fee2e2; color: var(--bad); }
.permiso,
.permiso-parcial { background: #f3e8ff; color: #6d28d9; }
.vacaciones { background: #ccfbf1; color: #0f766e; }
.licencia { background: #dbeafe; color: #1d4ed8; }
.incapacidad { background: #e0f2fe; color: #0369a1; }
.no-laboral { background: #e2e8f0; color: #475467; }
.no { background: #eef2f7; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px; }

.attendance-head {
  align-items: end;
}

.attendance-date-form {
  margin-bottom: 0;
}

.attendance-filter-panel {
  padding: 14px;
}

.attendance-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 1fr) 110px auto auto;
  gap: 12px;
  align-items: end;
}

.attendance-filter-form-area {
  grid-template-columns: minmax(190px, 1fr) 110px auto auto;
}

.attendance-filter-form label,
.per-page-form label {
  display: grid;
  gap: 6px;
  color: #101828;
  font-weight: 800;
}

.attendance-filter-form label span {
  font-size: 12px;
}

.attendance-filter-form select,
.attendance-filter-form input {
  width: 100%;
  background: #fff;
}

.attendance-summary-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.attendance-summary-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16,24,40,.04);
}

.attendance-summary-card:hover,
.attendance-summary-card.active {
  border-color: var(--brand);
  background: #ecfdf5;
}

.attendance-summary-card span {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.attendance-summary-card strong {
  font-size: 17px;
}

.attendance-table-panel {
  padding: 0;
  overflow: hidden;
}

.attendance-table-panel .table-wrap {
  padding: 0;
}

.attendance-table-panel table {
  min-width: 960px;
}

.attendance-table-panel th,
.attendance-table-panel td {
  padding: 10px 12px;
}

.attendance-pagination {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: #344054;
}

.per-page-form {
  margin: 0;
}

.per-page-form label {
  grid-template-columns: auto auto;
  align-items: center;
  font-size: 13px;
}

.per-page-form select {
  min-height: 36px;
  min-width: 78px;
}

.attendance-pagination nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.attendance-pagination nav a,
.attendance-pagination nav span {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.attendance-pagination nav a.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.attendance-pagination nav a.disabled {
  pointer-events: none;
  opacity: .45;
  background: #f8fafc;
}

.employee-report-head {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, .75fr) minmax(520px, 1.4fr);
}

.employee-report-head h2 {
  font-size: 30px;
  margin: 0;
}

.employee-report-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.35fr) minmax(145px, .65fr) minmax(145px, .65fr) auto;
}

.employee-report-form select,
.employee-report-form input {
  background: #fff;
  min-height: 48px;
}

.employee-report-form button {
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
}

.employee-report-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.report-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(16,24,40,.06);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 118px;
  padding: 18px;
  position: relative;
}

.report-summary-card::after {
  background: #e2e8f0;
  bottom: 46px;
  content: "";
  height: 1px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.report-summary-card .summary-icon {
  align-items: center;
  align-self: start;
  border-radius: 16px;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.report-summary-card b {
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  margin-top: 6px;
}

.report-summary-card strong {
  color: #475467;
  font-size: 15px;
  grid-column: 2;
  margin-top: -12px;
}

.report-summary-card small {
  align-self: end;
  color: #475467;
  font-weight: 700;
  grid-column: 1 / -1;
  padding-top: 22px;
}

.report-summary-card.days .summary-icon { background: #dcfce7; color: #047857; }
.report-summary-card.marks .summary-icon { background: #dbeafe; color: #2563eb; }
.report-summary-card.hours .summary-icon { background: #ede9fe; color: #7c3aed; }
.report-summary-card.extra .summary-icon { background: #ffedd5; color: #f97316; }
.report-summary-card.incomplete .summary-icon { background: #fee2e2; color: #dc2626; }

.employee-report-panel {
  padding: 0;
  overflow: hidden;
}

.employee-report-titlebar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 18px 12px;
}

.employee-report-titlebar h3 {
  font-size: 18px;
  margin: 0;
}

.export-menu {
  position: relative;
}

.export-menu > button {
  border: 1px solid #0f766e;
  color: #0f766e;
}

.export-menu-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16,24,40,.12);
  color: #64748b;
  display: none;
  font-size: 12px;
  font-weight: 800;
  min-width: 210px;
  padding: 10px 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
}

.export-menu:hover .export-menu-list,
.export-menu:focus-within .export-menu-list {
  display: block;
}

.employee-report-table-wrap {
  padding: 0 18px;
}

.employee-report-table {
  min-width: 1180px;
}

.employee-report-table th,
.employee-report-table td {
  font-size: 13px;
  padding: 13px 9px;
}

.employee-report-table td:first-child b {
  display: block;
  font-weight: 800;
}

.novelty-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.novelty-badge.permiso { background: #f3e8ff; color: #6d28d9; }
.novelty-badge.vacaciones { background: #ccfbf1; color: #0f766e; }
.novelty-badge.licencia { background: #dbeafe; color: #1d4ed8; }
.novelty-badge.incapacidad { background: #fee2e2; color: #dc2626; }

.employee-report-pagination {
  align-items: center;
  color: #344054;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto auto;
  padding: 14px 18px 18px;
}

.employee-report-pagination nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.employee-report-pagination nav a,
.employee-report-pagination nav span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #344054;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  text-decoration: none;
}

.employee-report-pagination nav a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.employee-report-pagination nav a.disabled {
  opacity: .45;
  pointer-events: none;
}

.employee-report-empty {
  padding: 16px 18px;
}

.employee-report-empty p {
  color: #475467;
  font-weight: 800;
  margin: 0;
}

.employee-recent-panel h3 {
  font-size: 16px;
}

.dashboard-top {
  align-items: center;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.metric-card b {
  font-size: 30px;
}

.accent-blue { border-left-color: #2563eb; }
.accent-green { border-left-color: #16a34a; }
.accent-red { border-left-color: #ef4444; }
.accent-amber { border-left-color: #f59e0b; }
.accent-purple { border-left-color: #7c3aed; }
.accent-teal { border-left-color: #14b8a6; }
.accent-sky { border-left-color: #0ea5e9; }
.accent-clock { border-left-color: #64748b; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}

.dash-panel {
  min-height: 180px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  padding: 16px;
}

.wide-panel {
  grid-column: span 2;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.panel-title h3,
.dash-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.panel-title h3 {
  margin: 0;
}

.panel-title a {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.compact-list,
.alert-list,
.state-stack,
.novelty-list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 10px;
}

.list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-row b,
.list-row small {
  display: block;
}

.list-row small,
.small-empty {
  font-size: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ok-dot { background: #22c55e; }
.warn-dot { background: #f59e0b; }

.mini-table {
  min-width: 560px;
}

.mini-table th,
.mini-table td {
  padding: 9px 8px;
}

.state-row {
  display: grid;
  gap: 6px;
}

.state-row div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.bar span {
  display: block;
  height: 100%;
  min-width: 2px;
}

.bar-green { background: #22c55e; }
.bar-red { background: #ef4444; }
.bar-purple { background: #8b5cf6; }
.bar-teal { background: #14b8a6; }
.bar-sky { background: #38bdf8; }
.bar-gray { background: #94a3b8; }

.novelty-list div,
.alert-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 10px;
}

.novelty-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.next-start {
  min-height: 110px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
}

.next-start b {
  font-size: 30px;
}

.next-start span {
  color: var(--muted);
  font-weight: 800;
}

.stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
}

.stat-mini-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.stat-mini-grid span,
.stat-mini-grid b {
  display: block;
}

.stat-mini-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stat-mini-grid b {
  margin-top: 4px;
  font-size: 22px;
}

.permiso { background: #ede9fe; color: #6d28d9; }
.parcial { background: #dbeafe; color: #1d4ed8; }
.vacaciones { background: #ccfbf1; color: #0f766e; }
.incapacidad { background: #e0f2fe; color: #0369a1; }

/* Modern dashboard */
.dashboard-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-header h2,
.dashboard-header p {
  margin: 0;
}

.dashboard-header h2 {
  color: #0f172a;
  font-size: 28px;
}

.dashboard-header p {
  color: var(--muted);
  font-weight: 800;
  margin-top: 4px;
}

.dashboard-date-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.dashboard-date-form label {
  display: grid;
  gap: 4px;
}

.dashboard-date-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-date-form input {
  min-height: 42px;
  min-width: 165px;
}

.dashboard-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  margin-bottom: 16px;
}

.kpi-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 104px;
  padding: 13px;
}

.kpi-card small,
.kpi-card strong,
.kpi-card em {
  display: block;
}

.kpi-card small {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.kpi-card strong {
  color: #0f172a;
  font-size: 27px;
  line-height: 1.1;
  margin-top: 4px;
}

.kpi-card em {
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-top: 4px;
}

.kpi-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.kpi-icon::before {
  font-size: 22px;
  font-weight: 900;
}

.icon-people::before { content: "G"; }
.icon-check::before { content: "✓"; }
.icon-user::before { content: "U"; }
.icon-clock::before { content: "◷"; }
.icon-calendar::before { content: "□"; }
.icon-bag::before { content: "▢"; }
.icon-shield::before { content: "◇"; }
.icon-hourglass::before { content: "⌛"; }

.kpi-green .kpi-icon,
.kpi-ok .kpi-icon { background: #dcfce7; color: #16a34a; }
.kpi-bad .kpi-icon { background: #fee2e2; color: #ef4444; }
.kpi-warn .kpi-icon { background: #fef3c7; color: #f59e0b; }
.kpi-purple .kpi-icon { background: #f3e8ff; color: #8b5cf6; }
.kpi-teal .kpi-icon { background: #ccfbf1; color: #0f766e; }
.kpi-sky .kpi-icon { background: #dbeafe; color: #2563eb; }
.kpi-gold .kpi-icon { background: #fef3c7; color: #d97706; }

.dashboard-chart-grid,
.dashboard-operational-grid,
.dashboard-bottom-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-chart-grid {
  grid-template-columns: minmax(310px, .95fr) minmax(380px, 1.2fr) minmax(310px, .95fr);
}

.dashboard-operational-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

.dashboard-bottom-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, .95fr) minmax(360px, 1.25fr);
}

.dashboard-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
  min-height: 210px;
  padding: 16px;
}

.dashboard-card h3 {
  color: #0f172a;
  font-size: 16px;
  margin: 0 0 12px;
}

.dashboard-donut-card {
  min-height: 292px;
}

.card-title-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title-row h3 {
  margin: 0;
}

.live-chip {
  align-items: center;
  color: #059669;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
}

.live-chip::before {
  background: #10b981;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

.donut-layout {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  justify-items: center;
  position: relative;
}

.donut-chart {
  height: 200px;
  touch-action: manipulation;
  width: 200px;
}

.donut-center {
  display: grid;
  left: 50%;
  place-items: center;
  position: absolute;
  top: 100px;
  transform: translate(-50%, -50%);
}

.donut-center strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
}

.donut-center span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.chart-legend {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.donut-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.chart-legend div {
  align-items: center;
  display: grid;
  column-gap: 8px;
  grid-template-columns: 10px minmax(0, 1fr);
  row-gap: 2px;
}

.chart-legend i {
  background: #00564f;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.chart-legend span,
.chart-legend b {
  font-size: 11px;
  line-height: 1.15;
}

.chart-legend span {
  color: #334155;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend b {
  color: #0f172a;
  grid-column: 2;
  font-size: 10.5px;
  white-space: nowrap;
}

.line-chart,
.bar-chart {
  height: 230px;
  touch-action: manipulation;
  width: 100%;
}

.chart-tooltip {
  background: rgba(15, 23, 42, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .24);
  color: #fff;
  display: grid;
  gap: 4px;
  left: 0;
  max-width: 240px;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 9999;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip b {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.chart-tooltip span,
.chart-tooltip em {
  color: #dbeafe;
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chart-tooltip em {
  color: #a7f3d0;
}

.dependency-head p:not(.eyebrow) {
  color: #475569;
  font-weight: 700;
  margin: 4px 0 0;
}

.dependency-notice {
  padding: 12px 16px;
}

.dependency-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.dependency-summary-card {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e3ee;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  display: flex;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
}

.dependency-summary-card .summary-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 1000;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dependency-summary-card small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.dependency-summary-card strong {
  color: #0f172a;
  display: block;
  font-size: 28px;
  line-height: 1.05;
}

.card-areas .summary-icon { background: #e0f2fe; color: #0369a1; }
.card-users .summary-icon { background: #ede9fe; color: #6d28d9; }
.card-active .summary-icon { background: #dcfce7; color: #047857; }
.card-inactive .summary-icon { background: #f1f5f9; color: #475569; }

.dependency-create-area,
.dependency-user-create,
.dependency-users-panel,
.dependency-areas-panel,
.dependency-alert-history {
  margin-bottom: 14px;
  padding: 16px;
}

.dependency-section-title {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.dependency-section-title h3 {
  margin: 0;
}

.dependency-section-title p {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 0;
}

.dependency-section-icon {
  align-items: center;
  background: #e7f8f3;
  border-radius: 14px;
  color: #00856f;
  display: inline-flex;
  font-weight: 1000;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dependency-area-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.dependency-user-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(110px, .8fr) minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(170px, 1fr) auto;
}

.dependency-area-form label,
.dependency-user-form label,
.dependency-modal label {
  display: grid;
  gap: 5px;
}

.dependency-area-form label span,
.dependency-user-form label span,
.dependency-modal label span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.dependency-area-form input,
.dependency-user-form input,
.dependency-user-form select,
.dependency-table-filters input,
.dependency-table-filters select,
.dependency-page-size select,
.dependency-modal input,
.dependency-modal select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.dependency-area-form input:focus,
.dependency-user-form input:focus,
.dependency-user-form select:focus,
.dependency-table-filters input:focus,
.dependency-table-filters select:focus,
.dependency-modal input:focus,
.dependency-modal select:focus {
  border-color: #00856f;
  box-shadow: 0 0 0 3px rgba(0, 133, 111, .12);
  outline: none;
}

.dependency-area-form button,
.dependency-save-user,
.dependency-table-filters button,
.dependency-modal button:not(.secondary):not(.danger) {
  align-items: center;
  background: #007f6d;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 1000;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.password-field button[type="button"] {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  bottom: 5px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 1000;
  height: 32px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 5px;
  width: 32px;
}

.dependency-table-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dependency-table-head h3 {
  margin: 0;
}

.dependency-table-filters {
  display: flex;
  gap: 10px;
}

.dependency-table-filters input {
  width: 220px;
}

.dependency-users-table th,
.dependency-users-table td {
  vertical-align: middle;
}

.dependency-areas-table,
.dependency-alert-table {
  min-width: 920px;
  width: 100%;
}

.dependency-areas-table th,
.dependency-alert-table th {
  background: #f1faf7;
  color: #334155;
  font-size: 12px;
  font-weight: 1000;
  padding: 11px 10px;
  text-transform: uppercase;
}

.dependency-areas-table td,
.dependency-alert-table td {
  border-bottom: 1px solid #e5eaf1;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 10px;
  vertical-align: middle;
}

.dependency-alert-table small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.wa-area-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 1000;
  padding: 6px 10px;
}

.wa-area-status.enabled {
  background: #dcfce7;
  color: #047857;
}

.wa-area-status.disabled {
  background: #f1f5f9;
  color: #64748b;
}

.wa-area-substatus {
  color: #047857;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
}

.dependency-user-cell {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dependency-avatar {
  align-items: center;
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.avatar-0 { background: #dcfce7; color: #047857; }
.avatar-1 { background: #dbeafe; color: #1d4ed8; }
.avatar-2 { background: #ede9fe; color: #6d28d9; }
.avatar-3 { background: #ffedd5; color: #c2410c; }
.avatar-4 { background: #cffafe; color: #0e7490; }
.avatar-5 { background: #fce7f3; color: #be185d; }

.dependency-user-cell b {
  display: block;
  font-size: 13px;
}

.dependency-user-cell small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.role-badge,
.user-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 10px;
}

.role-admin { background: #dcfce7; color: #047857; }
.role-area { background: #dbeafe; color: #1d4ed8; }
.role-gestor_novedades { background: #f3e8ff; color: #7e22ce; }
.role-compensacion { background: #fef3c7; color: #a16207; }

.user-status::before {
  border-radius: 999px;
  content: "";
  height: 8px;
  margin-right: 7px;
  width: 8px;
}

.user-status.active {
  background: #ecfdf5;
  color: #047857;
}

.user-status.active::before {
  background: #22c55e;
}

.user-status.inactive {
  background: #f8fafc;
  color: #64748b;
}

.user-status.inactive::before {
  background: #cbd5e1;
}

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

.mini-action {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 1000;
  min-height: 34px;
  padding: 0 10px;
}

.mini-action.edit {
  background: #eff6ff;
  color: #1d4ed8;
}

.mini-action.dots {
  background: #f8fafc;
  color: #0f172a;
  min-width: 36px;
}

.action-menu-wrap {
  position: relative;
}

.action-menu {
  background: #fff;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  display: none;
  min-width: 180px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 20;
}

.action-menu.open {
  display: grid;
}

.action-menu button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #0f172a;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 10px;
  text-align: left;
}

.action-menu button:hover {
  background: #f1f5f9;
}

.dependency-pagination {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 12px;
}

.dependency-pagination > span,
.dependency-page-size label {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.dependency-page-size select {
  margin-left: 6px;
  min-height: 34px;
}

.pager {
  align-items: center;
  display: flex;
  gap: 6px;
}

.pager-btn,
.pager-ellipsis {
  align-items: center;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  color: #0f172a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 8px;
  text-decoration: none;
}

.pager-btn.active {
  background: #007f6d;
  border-color: #007f6d;
  color: #fff;
}

.pager-btn.disabled {
  color: #cbd5e1;
  pointer-events: none;
}

.dependency-modal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  max-width: 440px;
  padding: 0;
  width: min(440px, calc(100vw - 28px));
}

.dependency-modal::backdrop {
  background: rgba(15, 23, 42, .48);
}

.dependency-modal form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.dependency-area-modal {
  max-width: 640px;
  width: min(640px, calc(100vw - 28px));
}

.area-whatsapp-box {
  background: #f8fafc;
  border: 1px solid #dbe4ed;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.weekly-report-box {
  background: #f2fbf8;
  border-color: #b7e3d7;
}

.weekly-report-box h4 {
  color: #064e47;
  font-size: 15px;
  margin: 0;
}

.dependency-history-modal {
  max-width: 980px;
  padding: 20px;
  width: min(980px, calc(100vw - 28px));
}

.dependency-history-modal .table-wrap {
  max-height: 440px;
  overflow: auto;
}

.switch-row {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.switch-row input {
  accent-color: #007f6d;
  height: 18px;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.area-whatsapp-box input:disabled {
  background: #edf2f7;
  color: #94a3b8;
}

.dependency-modal-note {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.dependency-modal h3 {
  margin: 0;
}

.dependency-modal p {
  color: #475569;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.dependency-modal .secondary,
.dependency-modal .danger {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 1000;
  min-height: 40px;
  padding: 0 14px;
}

.dependency-modal .secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.dependency-modal .danger {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1180px) {
  .dependency-summary-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dependency-user-form {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .dependency-summary-grid,
  .dependency-area-form,
  .dependency-user-form {
    grid-template-columns: 1fr;
  }

  .dependency-table-head,
  .dependency-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .dependency-table-filters {
    flex-direction: column;
  }

  .dependency-table-filters input,
  .dependency-table-filters select {
    width: 100%;
  }

  .pager {
    flex-wrap: wrap;
  }
}

.nav-submenu {
  display: none;
  gap: 6px;
  margin: -4px 0 8px 38px;
}

.nav-submenu.open {
  display: grid;
}

.nav-submenu a {
  border-radius: 8px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

.nav-submenu a.active,
.nav-submenu a:hover {
  background: rgba(20, 184, 166, .25);
  color: #fff;
}

.consolidated-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.consolidated-head p:not(.eyebrow) {
  color: #475569;
  font-weight: 700;
  margin: 4px 0 0;
}

.breadcrumb-mini {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.breadcrumb-mini a {
  color: #00856f;
  text-decoration: none;
}

.breadcrumb-mini span::after {
  content: "›";
  margin-left: 8px;
}

.consolidated-filter-panel,
.consolidated-table-panel {
  margin-bottom: 16px;
  min-width: 0;
  padding: 18px;
}

.consolidated-table-panel {
  overflow: hidden;
}

.consolidated-filters {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(220px, 280px) 1fr;
}

.consolidated-filters label {
  display: grid;
  gap: 7px;
}

.consolidated-filters label span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.consolidated-filters input,
.consolidated-filters select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.consolidated-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consolidated-filter-actions button,
.consolidated-filter-actions .button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 1000;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.consolidated-filter-actions button,
.consolidated-filter-actions .export-excel {
  background: #007f6d;
  color: #fff;
}

.consolidated-filter-actions .secondary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.consolidated-summary {
  background: #fff;
  border: 1px solid #d9e3ee;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  padding: 14px;
}

.consolidated-summary article {
  align-items: center;
  border-right: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 64px;
  padding: 0 8px;
}

.consolidated-summary article:last-child {
  border-right: 0;
}

.summary-soft {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 12px;
  font-weight: 1000;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.summary-soft.green { background: #dcfce7; color: #047857; }
.summary-soft.blue { background: #dbeafe; color: #1d4ed8; }
.summary-soft.red { background: #fee2e2; color: #dc2626; }
.summary-soft.amber { background: #ffedd5; color: #d97706; }
.summary-soft.mint { background: #d1fae5; color: #059669; }
.summary-soft.purple { background: #ede9fe; color: #7c3aed; }

.consolidated-summary strong {
  color: #0f172a;
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.consolidated-summary small {
  color: #475569;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.consolidated-table-panel h3 {
  margin: 0 0 14px;
}

.consolidated-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.consolidated-table {
  min-width: 1360px;
}

.consolidated-table th {
  background: #f1faf7;
  color: #334155;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.consolidated-table td {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.consolidated-table td:nth-child(3),
.consolidated-table td:nth-child(4) {
  text-align: left;
}

.consolidated-user {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.consolidated-user .dependency-avatar {
  flex-basis: 32px;
  height: 32px;
  width: 32px;
}

.extra-hours {
  color: #00856f;
  font-weight: 1000;
}

.consolidated-pagination {
  margin-top: 12px;
}

@media (max-width: 1280px) {
  .consolidated-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .consolidated-filter-actions {
    justify-content: flex-start;
  }

  .consolidated-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .consolidated-summary article:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .consolidated-head {
    display: grid;
  }

  .consolidated-filters,
  .consolidated-summary {
    grid-template-columns: 1fr;
  }

  .consolidated-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consolidated-summary article {
    border-bottom: 1px solid #e2e8f0;
    border-right: 0;
    justify-content: flex-start;
  }

  .consolidated-summary article:last-child {
    border-bottom: 0;
  }
}

.chart-mini-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.chart-mini-legend span {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.chart-mini-legend i {
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.legend-green { background: #22c55e; }
.legend-red { background: #ef4444; }
.legend-amber { background: #f59e0b; }
.legend-mint { background: #a7f3d0; }

.realtime-list,
.novelty-dashboard-list,
.dashboard-alerts,
.late-ranking {
  display: grid;
  gap: 9px;
}

.realtime-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px minmax(0, 1fr) 70px auto;
  padding: 6px 0;
}

.realtime-row b,
.realtime-row span,
.realtime-row small,
.realtime-row em {
  font-size: 12px;
}

.realtime-row b {
  color: #0f172a;
}

.realtime-row span {
  color: #0f172a;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-row small {
  color: #475569;
  font-weight: 800;
}

.realtime-row em {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
}

.panel-link {
  color: var(--brand);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 14px;
  text-decoration: none;
}

.panel-link::after {
  content: "›";
  margin-left: 6px;
}

.panel-link.inline {
  margin-top: 0;
}

.panel-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.dashboard-modal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
  color: #0f172a;
  max-width: min(1060px, calc(100vw - 36px));
  padding: 0;
  width: 100%;
}

.dashboard-modal::backdrop {
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(3px);
}

.modal-head {
  align-items: flex-start;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.modal-head h3 {
  font-size: 24px;
  margin: 2px 0 4px;
}

.modal-head span {
  color: #64748b;
  font-weight: 800;
}

.modal-close {
  align-items: center;
  appearance: none;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.late-modal-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 24px 0;
}

.late-modal-summary article {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.late-modal-summary span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.late-modal-summary b {
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.late-modal-table {
  margin: 18px 24px 0;
  max-height: 430px;
  overflow: auto;
}

.late-modal-table table {
  min-width: 920px;
}

.late-type-badge,
.late-minutes-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.late-type-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.late-minutes-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.dashboard-modal .modal-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 24px 24px;
}

.dashboard-modal .modal-actions a,
.dashboard-modal .modal-actions button {
  border-radius: 10px;
  font-weight: 900;
  padding: 10px 14px;
}

.dashboard-modal .modal-actions button {
  background: var(--brand);
  border: 0;
  color: #fff;
}

.novelty-dashboard-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.novelty-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 5px 10px;
}

.licencia { background: #dbeafe; color: #1d4ed8; }

.dashboard-alert {
  align-items: center;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  color: #0f172a;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px;
  text-decoration: none;
}

.dashboard-alert span {
  border-radius: 50%;
  height: 34px;
  position: relative;
  width: 34px;
}

.dashboard-alert span::before {
  content: "!";
  display: grid;
  font-weight: 900;
  height: 100%;
  place-content: center;
}

.dashboard-alert b,
.dashboard-alert small {
  display: block;
}

.dashboard-alert b {
  font-size: 13px;
}

.dashboard-alert small {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.dashboard-alert em {
  color: #64748b;
  font-size: 24px;
  font-style: normal;
}

.alert-incompleto span { background: #fef3c7; color: #d97706; }
.alert-retardo span { background: #ffedd5; color: #ea580c; }
.alert-biometrico span { background: #fee2e2; color: #dc2626; }

.late-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(120px, 1fr) minmax(100px, 1.2fr) 58px;
}

.late-row span,
.late-row b,
.late-row em {
  font-size: 12px;
}

.late-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.late-row em {
  color: #475569;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.late-bar {
  background: #fee2e2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.late-bar i {
  background: #ef4444;
  border-radius: inherit;
  display: block;
  height: 100%;
}

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

.daily-stats-grid div {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  min-height: 82px;
  padding: 12px;
}

.daily-stats-grid span,
.daily-stats-grid b {
  display: block;
}

.daily-stats-grid span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.daily-stats-grid b {
  color: #0f172a;
  font-size: 24px;
  margin-top: 7px;
}

.biometric-dashboard-card {
  min-height: 0;
}

.biometric-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.biometric-status-grid article {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  display: grid;
  gap: 9px;
  grid-template-columns: 10px minmax(0, 1fr);
  padding: 11px;
}

.bio-dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.bio-online { background: #22c55e; }
.bio-stale { background: #f59e0b; }
.bio-offline { background: #ef4444; }

.biometric-status-grid b,
.biometric-status-grid small,
.biometric-status-grid em {
  display: block;
}

.biometric-status-grid b {
  color: #0f172a;
  font-size: 13px;
}

.biometric-status-grid small {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.biometric-status-grid em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  grid-column: 2;
}

.chart-legend div:nth-child(1) i { background: #00564f; }
.chart-legend div:nth-child(2) i { background: #22c55e; }
.chart-legend div:nth-child(3) i { background: #0ea5e9; }
.chart-legend div:nth-child(4) i { background: #8b5cf6; }
.chart-legend div:nth-child(5) i { background: #f59e0b; }
.chart-legend div:nth-child(6) i { background: #94a3b8; }

@media (max-width: 1320px) {
  .employee-report-head {
    grid-template-columns: 1fr;
  }

  .employee-report-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .attendance-summary-strip {
    grid-template-columns: repeat(4, minmax(112px, 1fr));
  }

  .dashboard-kpis {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .dashboard-chart-grid,
  .dashboard-operational-grid,
  .dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .dashboard-chart-grid .dashboard-card:first-child,
  .dashboard-chart-grid .dashboard-card:nth-child(3) {
    grid-column: span 1;
  }

  .dashboard-chart-grid .dashboard-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .dashboard-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .dashboard-header {
    align-items: flex-start;
    display: grid;
  }

  .dashboard-date-form {
    width: 100%;
  }

  .dashboard-date-form label {
    flex: 1;
  }

  .dashboard-date-form input {
    width: 100%;
  }

  .dashboard-kpis,
  .dashboard-chart-grid,
  .dashboard-operational-grid,
  .dashboard-bottom-grid,
  .biometric-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donut-center {
    left: 50%;
    top: 92px;
  }

  .chart-legend {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .chart-legend {
    grid-template-columns: 1fr;
  }

  .schedule-row-actions {
    flex-wrap: wrap;
  }

  .schedule-action-button {
    flex: 1 1 100%;
  }

  .schedule-mail-dialog {
    padding: 30px 22px 26px;
  }

  .dashboard-header h2 {
    font-size: 24px;
  }

  .dashboard-date-form,
  .dashboard-kpis,
  .dashboard-chart-grid,
  .dashboard-operational-grid,
  .dashboard-bottom-grid,
  .biometric-status-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-date-form {
    display: grid;
  }

  .kpi-card {
    min-height: 88px;
  }

  .realtime-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .realtime-row small {
    display: none;
  }

  .late-row {
    grid-template-columns: 20px minmax(0, 1fr) 54px;
  }

  .late-bar {
    grid-column: 2 / -1;
  }

  .daily-stats-grid {
    grid-template-columns: 1fr;
  }
}

.novelty-dates {
  display: grid;
  gap: 8px;
}

.block-small {
  display: block;
  margin-top: 4px;
}

.schedule-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,118,110,.12), rgba(14,165,233,.08)),
    var(--panel);
  border: 1px solid #b7d8d1;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(16,24,40,.08);
  padding: 20px;
}

.schedule-hero h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.schedule-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.schedule-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.schedule-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.schedule-list {
  position: static;
  max-height: none;
  overflow: visible;
}

.schedule-cards {
  display: grid;
  gap: 10px;
}

.schedule-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.schedule-card:hover,
.schedule-card.active {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .12);
}

.schedule-card strong {
  font-size: 16px;
}

.schedule-card small,
.schedule-card span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.schedule-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.schedule-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.schedule-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(16,24,40,.06);
}

.schedule-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-metrics b {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.schedule-page-head {
  margin-bottom: 14px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}

.schedule-new-button::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
  margin-right: 8px;
}

.schedule-dashboard {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 14px;
}

.schedule-sidebar-panel {
  padding: 12px;
}

.schedule-sidebar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.schedule-sidebar-head h3 {
  margin: 0;
  font-size: 14px;
}

.schedule-sidebar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.schedule-employee-search {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 38px;
  margin-bottom: 12px;
}

.schedule-employee-search input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  min-height: 36px;
  padding: 7px 10px;
  width: 100%;
}

.schedule-employee-search button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 38px;
}

.schedule-employee-search button span {
  border: 2px solid currentColor;
  border-radius: 50%;
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.schedule-employee-search button span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 8px;
  position: absolute;
  right: -5px;
  top: 9px;
  transform: rotate(-45deg);
  width: 2px;
}

.assign-schedule-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  min-height: 36px;
  padding: 7px 10px;
  width: 100%;
}

.compact-schedule-cards {
  gap: 7px;
}

.compact-schedule-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 62px;
  padding: 8px 9px 8px 13px;
  position: relative;
}

.compact-schedule-card::before {
  background: transparent;
  border-radius: 999px;
  content: "";
  inset: 10px auto 10px 0;
  position: absolute;
  width: 4px;
}

.compact-schedule-card.active {
  background: #f0fdfa;
}

.compact-schedule-card.active::before {
  background: var(--primary);
}

.compact-schedule-card strong,
.compact-schedule-card small,
.compact-schedule-card .schedule-card-people {
  display: block;
}

.compact-schedule-card strong {
  font-size: 12px;
  margin-bottom: 2px;
}

.compact-schedule-card small {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-schedule-card .schedule-card-people {
  font-size: 11px;
}

.compact-schedule-card em {
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
}

.schedule-main-panel {
  gap: 12px;
}

.modern-schedule-metrics {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.schedule-metric-card {
  min-height: 82px;
  padding: 12px 12px 12px 52px !important;
  position: relative;
}

.schedule-metric-card::before {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 25px;
  height: 34px;
  justify-content: center;
  left: 12px;
  position: absolute;
  top: 16px;
  width: 34px;
}

.schedule-metric-card.employees::before { content: "EM"; background: #dcfce7; color: #047857; font-size: 13px; font-weight: 900; }
.schedule-metric-card.hours::before { content: "HR"; background: #fef3c7; color: #b45309; font-size: 13px; font-weight: 900; }
.schedule-metric-card.dependency::before { content: "DP"; background: #e0f2fe; color: #0369a1; font-size: 13px; font-weight: 900; }
.schedule-metric-card.days::before { content: "DI"; background: #dcfce7; color: #047857; font-size: 13px; font-weight: 900; }

.schedule-metric-card b {
  font-size: 19px;
  line-height: 1.1;
  word-break: break-word;
}

.schedule-metric-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.modern-schedule-hero {
  background: linear-gradient(135deg, #064e47, #007c68);
  border: 0;
  color: #fff;
  padding: 14px 16px;
}

.modern-schedule-hero h3 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 20px;
}

.modern-schedule-hero p {
  color: #d7f4ed;
}

.modern-schedule-hero .button.secondary,
.modern-schedule-hero button.secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.modern-schedule-hero .danger-button {
  background: rgba(127, 29, 29, .18);
  border: 1px solid rgba(252, 165, 165, .35);
  color: #fecaca;
}

.schedule-week-panel {
  padding: 12px 14px 14px;
}

.compact-panel-title {
  margin-bottom: 10px;
}

.compact-panel-title h3 {
  font-size: 15px;
  margin: 0;
}

.compact-table-wrap table th,
.compact-table-wrap table td {
  font-size: 13px;
  padding: 8px 10px;
}

.compact-schedule-table th,
.compact-schedule-table td {
  text-align: center;
}

.compact-schedule-table th:first-child,
.compact-schedule-table td:first-child {
  text-align: left;
}

.hour-pill {
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
}

.schedule-bottom-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.assigned-panel,
.assign-panel {
  padding: 14px;
}

.compact-employee-table th,
.compact-employee-table td {
  vertical-align: middle;
}

.schedule-row-actions {
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: flex-start;
}

.schedule-row-actions button,
.schedule-row-actions .small-link {
  font-size: 11px;
  min-height: 28px;
  padding: 5px 7px;
  white-space: nowrap;
}

.schedule-action-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 8px 11px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  white-space: nowrap;
}

.schedule-action-button:hover {
  box-shadow: 0 8px 18px rgba(16,24,40,.08);
  transform: translateY(-1px);
}

.schedule-action-button span {
  font-size: 15px;
  line-height: 1;
}

.schedule-action-button.pdf {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.schedule-action-button.email {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

.schedule-action-button.email.bulk {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  min-height: 38px;
}

.schedule-action-button.remove {
  background: #fff5f5;
  border-color: #fecaca;
  color: #dc2626;
}

.schedule-action-button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.schedule-mail-modal[hidden] {
  display: none;
}

.schedule-mail-modal {
  align-items: center;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 1000;
}

.schedule-mail-dialog {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  max-width: 520px;
  padding: 38px 42px 34px;
  text-align: center;
  width: min(100%, 520px);
}

.mail-visual {
  background: #ecfdf5;
  border-radius: 999px;
  display: grid;
  height: 98px;
  margin: 0 auto 20px;
  place-items: center;
  position: relative;
  width: 98px;
}

.mail-icon {
  color: #059669;
  font-size: 42px;
  line-height: 1;
}

.mail-spinner {
  animation: request-spin .85s linear infinite;
  border: 5px solid #dbeafe;
  border-top-color: #059669;
  border-radius: 999px;
  bottom: 2px;
  height: 34px;
  position: absolute;
  right: -4px;
  width: 34px;
}

.schedule-mail-modal.is-success .mail-spinner,
.schedule-mail-modal.is-error .mail-spinner {
  animation: none;
  border: 0;
  display: grid;
  place-items: center;
}

.schedule-mail-modal.is-success .mail-spinner::before {
  color: #059669;
  content: "OK";
  font-size: 11px;
  font-weight: 900;
}

.schedule-mail-modal.is-error .mail-visual {
  background: #fff7ed;
}

.schedule-mail-modal.is-error .mail-icon {
  color: #f97316;
}

.schedule-mail-modal.is-error .mail-spinner::before {
  color: #dc2626;
  content: "!";
  font-size: 18px;
  font-weight: 900;
}

.schedule-mail-dialog h3 {
  color: #0f172a;
  font-size: 24px;
  margin: 0 0 10px;
}

.schedule-mail-dialog p {
  color: #475467;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 auto 14px;
  max-width: 390px;
}

.mail-progress {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  margin: 26px auto 0;
  max-width: 410px;
  overflow: hidden;
}

.mail-progress span {
  animation: request-progress 1.1s ease-in-out infinite;
  background: linear-gradient(135deg, #00856f, #16a34a);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 34%;
}

.mail-destination {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
  margin-top: 18px;
  padding: 12px;
}

.mail-error-list {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  text-align: left;
}

.mail-error-list p {
  color: #991b1b;
  font-size: 13px;
  margin: 4px 0;
  max-width: none;
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.mail-actions button {
  min-width: 120px;
}

.compact-employee-table th:last-child,
.compact-employee-table td:last-child {
  min-width: 360px;
}

.compact-employee-table th:nth-child(4),
.compact-employee-table td:nth-child(4) {
  max-width: 130px;
}

.assigned-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.assign-schedule-form {
  display: grid;
  gap: 12px;
}

.schedule-assign-bar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(340px, 1fr);
}

.schedule-assign-bar .compact-panel-title {
  margin-bottom: 0;
}

.schedule-assign-bar .assign-schedule-form {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.schedule-assign-bar .hint {
  grid-column: 1 / -1;
  margin: 0;
}

.assign-schedule-form button {
  width: auto;
}

.schedule-tip {
  background: #ecfdf5;
  border: 1px solid #b7eadb;
  border-radius: 8px;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.schedule-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.schedule-pagination button,
.schedule-pagination a,
.schedule-pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
  text-decoration: none;
}

.schedule-pagination button.active,
.schedule-pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.schedule-pagination button:disabled,
.schedule-pagination span.disabled {
  cursor: not-allowed;
  opacity: .45;
}

.employee-pagination {
  justify-content: flex-end;
  margin-top: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
}

.modal-panel {
  width: min(460px, 100%);
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .25);
  padding: 24px;
}

.modal-panel h3 {
  margin: 0 34px 10px 0;
  font-size: 22px;
}

.modal-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--ink);
  font-size: 22px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: start;
}

.settings-fields {
  display: grid;
  gap: 8px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.color-grid label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.color-grid input {
  width: 100%;
  min-height: 48px;
  padding: 4px;
}

.settings-preview {
  display: grid;
  gap: 12px;
}

.settings-preview h3 {
  margin: 0;
}

.preview-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.preview-card aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  color: #fff;
  background: var(--brand-dark);
}

.preview-card aside img {
  width: 92px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.preview-card aside b {
  font-size: 14px;
}

.preview-card aside span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.preview-card aside i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brand);
}

.preview-card > div {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.preview-card strong {
  font-size: 24px;
}

.preview-card small {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-summary { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .wide-panel { grid-column: auto; }
  .employee-page-head { align-items: start; }
  .employee-form-grid { grid-template-columns: 1fr; }
  .employee-field-grid { grid-template-columns: 1fr; }
  .dependency-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .status-choice-grid { grid-template-columns: 1fr; }
  .biometric-strip-head { display: grid; }
  .device-strip-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .schedule-workspace { grid-template-columns: 1fr; }
  .schedule-list { position: static; max-height: none; }
  .schedule-metrics,
  .modern-schedule-metrics { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .schedule-bottom-grid { grid-template-columns: 1fr; }
  .modern-schedule-hero { align-items: start; flex-direction: column; }
  .employee-two-cols { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .biometric-picker legend { grid-template-columns: auto 1fr; }
  .biometric-picker legend em {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .config-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .novelty-upload-head,
  .section-title-row { display: grid; }
  .novelty-upload-grid,
  .novelty-fields,
  .novelty-dates { grid-template-columns: 1fr; }
  .public-novelty-header,
  .request-brand {
    display: grid;
    grid-template-columns: 1fr;
  }
  .request-info-note {
    max-width: none;
  }
  .employee-request-grid,
  .request-detail-layout,
  .public-upload-grid {
    grid-template-columns: 1fr;
  }
  .request-detail-layout {
    align-items: stretch;
    display: grid;
    min-width: 0;
  }
  .request-detail-layout.is-permission,
  .request-detail-layout.is-permission-by-hours {
    grid-template-columns: 1fr;
  }
  .request-detail-layout.is-permission .date-range-fields,
  .request-detail-layout.is-permission-by-hours .permission-fields,
  .request-detail-layout.is-permission-by-hours .duration-box,
  .permission-fields,
  .duration-box {
    grid-column: 1;
    grid-row: auto;
  }
  .date-range-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .request-detail-layout.is-permission .date-range-fields {
    align-self: stretch;
    display: grid;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .permission-card,
  .permission-card.by-hours {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .permission-hours-choice {
    max-width: 100%;
  }
  .permission-hours-choice label {
    min-height: 48px;
  }
  .request-detail-layout label,
  .request-detail-layout input,
  .novelty-type-cards,
  .novelty-choice,
  .request-subtype-panel,
  .subtype-card-grid,
  .subtype-choice {
    min-width: 0;
    max-width: 100%;
  }
  .subtype-card-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  .employee-request-grid .email-field {
    grid-column: auto;
  }
  .novelty-type-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .public-form-actions {
    justify-content: stretch;
  }
  .public-form-actions button {
    width: 100%;
  }
  .draft-button {
    margin-left: 0;
  }
  .request-grid,
  .filter-grid,
  .report-filter-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .request-header { align-items: flex-start; flex-direction: column; }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .login-intro {
    max-width: none;
  }
  .login-intro h1 {
    font-size: 34px;
  }
  .login-panel {
    width: 100%;
  }
  .page-head { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  .request-shell,
  .wide-request-shell,
  .request-card,
  .request-section,
  .public-novelty-card {
    max-width: 100%;
    min-width: 0;
  }

  .request-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dependency-grid,
  .device-strip-grid {
    grid-template-columns: 1fr;
  }
  .modern-schedule-metrics {
    grid-template-columns: 1fr;
  }
  .subtype-card-grid {
    grid-template-columns: 1fr;
  }
  .novelty-type-cards {
    grid-template-columns: 1fr;
  }
  .novelty-choice {
    min-height: 58px;
  }
  .request-detail-layout.is-permission-by-hours .date-range-fields {
    display: none;
  }
  .compact-schedule-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .compact-schedule-card em {
    display: none;
  }
}

.modal-locked {
  overflow: hidden;
}

.request-status-modal[hidden] {
  display: none !important;
}

.request-status-card [hidden] {
  display: none !important;
}

.request-status-modal {
  align-items: center;
  background: rgba(8, 18, 32, 0.66);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 3000;
}

.request-status-card {
  background: #fff;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
  max-width: 470px;
  padding: 34px 34px 28px;
  position: relative;
  text-align: center;
  width: min(470px, 100%);
}

.request-status-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
}

.request-status-spinner {
  animation: request-spin 0.85s linear infinite;
  border: 5px solid #dbeafe;
  border-bottom-color: #008c7a;
  border-radius: 50%;
  height: 66px;
  margin: 8px auto 20px;
  width: 66px;
}

.request-status-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 38px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 76px;
}

.request-status-icon.success {
  background: #dcfce7;
  color: #007a63;
}

.request-status-icon.success::before {
  content: "✓";
}

.request-status-icon.warning {
  background: #ffedd5;
  color: #d97706;
}

.request-status-icon.warning::before {
  content: "!";
}

.request-status-card h2 {
  color: #0f172a;
  font-size: 22px;
  margin: 0 0 12px;
}

.request-status-card p {
  color: #475569;
  line-height: 1.45;
  margin: 0 auto 16px;
  max-width: 370px;
}

.request-progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 12px;
  margin: 20px auto 18px;
  max-width: 330px;
  overflow: hidden;
}

.request-progress-bar span {
  animation: request-progress 1.15s ease-in-out infinite;
  background: linear-gradient(135deg, #006b5d, #19b394);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

.request-case-panel {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #064e3b;
  margin: 18px auto;
  max-width: 310px;
  padding: 13px 16px;
}

.request-case-panel span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.request-case-panel strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.request-status-note {
  color: #64748b !important;
  font-weight: 700;
}

.request-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.request-status-actions a,
.request-status-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

@keyframes request-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes request-progress {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(250%);
  }
}

@media (max-width: 920px) {
  .employee-report-form,
  .employee-report-pagination {
    grid-template-columns: 1fr;
  }

  .employee-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-report-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .attendance-filter-form,
  .attendance-pagination {
    grid-template-columns: 1fr;
  }

  .attendance-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-date-form {
    width: 100%;
  }

  .attendance-date-form input,
  .attendance-date-form button {
    flex: 1 1 auto;
  }

  .attendance-pagination nav {
    flex-wrap: wrap;
  }

  .public-novelty-topbar,
  .public-follow-card,
  .public-novelty-footer {
    grid-template-columns: 1fr;
  }

  .public-brand-lockup,
  .public-footer-brand,
  .public-footer-block {
    border-right: 0;
    min-height: 0;
    padding-right: 0;
  }

  .public-novelty-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .public-novelty-hero::after {
    inset: 45% 0 0;
    opacity: .28;
  }

  .public-follow-card {
    padding: 18px 20px;
  }

  .public-novelty-footer {
    margin-left: -20px;
    margin-right: -20px;
    padding: 24px 28px 42px;
  }

  .tracking-header,
  .tracking-query-card,
  .tracking-summary-card,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

  .tracking-header {
    align-items: flex-start;
    display: grid;
  }

  .tracking-query-form {
    grid-template-columns: 1fr;
  }

  .tracking-summary-card {
    align-items: stretch;
  }

  .tracking-summary-item {
    border-left: 0;
    border-top: 1px solid #d7e1ec;
    padding: 12px 0 0;
  }

  .tracking-timeline {
    grid-template-columns: 1fr;
  }

  .tracking-step {
    align-items: center;
    grid-template-columns: 46px 1fr;
    justify-items: start;
    text-align: left;
  }

  .tracking-step small {
    grid-column: 2;
  }

  .tracking-step:not(:last-child)::after {
    height: 24px;
    left: 22px;
    top: 46px;
    width: 3px;
  }
}
