@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --app-bg: #eef2f7;
  --app-bg-2: #e2e8f0;
  --app-surface: #ffffff;
  --app-surface-2: #f8fafc;
  --app-border: #e2e8f0;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-dark: #0b1226;
  --app-dark-2: #101a33;
  --app-accent: #F59E0B;
  --app-accent-2: #D97706;
  --app-accent-soft: rgba(245, 158, 11, 0.14);
  --app-accent-bg: rgba(245, 158, 11, 0.08);
  --app-success: #22C55E;
  --app-danger: #EF4444;
  --app-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  --app-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top, var(--app-bg) 0%, var(--app-bg-2) 70%);
  color: var(--app-text);
}

.brand-locked {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.brand-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='220' viewBox='0 0 340 220'%3E%3Cg fill='%230b1226' fill-opacity='0.16' font-family='Arial,sans-serif' font-size='22' font-weight='700' transform='rotate(-18 170 110)'%3E%3Ctext x='22' y='118'%3ETALENTHEON%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 200px;
}

@media (max-width: 1100px) {
  .brand-watermark {
    opacity: 0.024;
    background-size: 220px 160px;
  }
}

h1,
h2,
h3,
h4,
.topbar-title,
.sidebar-title,
.card-header h3,
.section-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

body.login-body {
  overflow: hidden;
}

header {
  background: linear-gradient(120deg, var(--app-dark) 0%, #13203a 60%, #172554 100%);
  color: #e2e8f0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.header-title {
  font-weight: 500;
  color: #cbd5f5;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(30, 41, 59, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--app-shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.stack {
  display: grid;
  gap: 18px;
}

.section-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
}

.subtle {
  color: var(--app-muted);
  font-size: 12px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.section-actions .btn {
  font-size: 12px;
  padding: 6px 10px;
}

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

.card-header h3 {
  margin: 0;
}

.stack.compact {
  gap: 12px;
}

.grid.two .field.full {
  grid-column: span 2;
}

.filters {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

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

.link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.status-registrado {
  background: #e0f2fe;
  color: #0c4a6e;
}

.status-psicolaboral {
  background: #e0e7ff;
  color: #312e81;
}

.status-entrevista_area {
  background: #fef3c7;
  color: #92400e;
}

.status-seleccionado {
  background: #dcfce7;
  color: #166534;
}

.status-no_seleccionado {
  background: #fee2e2;
  color: #991b1b;
}

.info-grid {
  display: grid;
  gap: 8px;
}

.info-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

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

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list-plain li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.csv-upload {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--app-border);
  background: var(--app-surface-2);
}

.csv-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.csv-row .field {
  flex: 1;
  min-width: 220px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d4d6d9;
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2));
  color: #0F172A;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

form .btn {
  margin-top: 10px;
}

.btn:focus-visible,
.link:focus-visible,
.sidebar-link:focus-visible,
.user-trigger:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.8);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.3);
  filter: brightness(1.05);
}

.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn.ghost {
  background: rgba(245, 158, 11, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.login-shell,
.login-card {
  position: relative;
  z-index: 2;
}

.login-card {
  width: min(560px, 95vw);
  display: block;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.login-form {
  padding: 12px 24px 20px;
  display: grid;
  gap: 14px;
}

.login-form h3 {
  margin: 0;
  font-size: 20px;
}

.login-form .field input {
  background: #f8fafc;
}

.login-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 28px;
}

.login-actions .btn {
  width: auto;
  min-width: 140px;
}

.login-help {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 35px;
}

.login-logo img {
  max-width: 100%;
  height: auto;
  width: 100%;
  object-fit: contain;
  transform: scale(1.65);
  transform-origin: center center;
  animation: logoGlowFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
}

@keyframes logoGlowFloat {

  0%,
  100% {
    transform: translateY(0) scale(1.65);
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3)) brightness(1);
  }

  50% {
    transform: translateY(-10px) scale(1.72);
    filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 15px rgba(217, 119, 6, 0.5)) brightness(1.2);
  }
}

.login-link {
  color: #2563eb;
  font-size: 12px;
  text-decoration: none;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.cookie-modal-dialog {
  position: relative;
  width: min(520px, 92vw);
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.35);
  padding: 18px 18px 16px;
  z-index: 1;
}

.cookie-modal-dialog h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.cookie-modal-dialog p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

body.cookie-modal-open {
  overflow: hidden;
}

.login-footer select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  background: #f9fafb;
}

._accent {
  background: linear-gradient(135deg, #6891ff, #4f5cc5);
  color: #ffffff;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #ffffff;
  box-shadow: 0 12px 18px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 25px rgba(37, 99, 235, 0.45);
}

@media (max-width: 900px) {
  .login-card {
    width: min(520px, 92vw);
  }
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
}

thead th {
  background: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #64748b;
}

tbody tr:hover {
  background: rgba(245, 158, 11, 0.06);
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  border-left: 4px solid #6366f1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  border-left: 4px solid var(--app-danger);
  display: flex;
  align-items: center;
  gap: 8px;
}

.success {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  border-left: 4px solid var(--app-success);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dashboard-body {
  background: radial-gradient(circle at top, var(--app-bg) 0%, var(--app-bg-2) 70%);
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
}

.dashboard {
  display: flex;
  min-height: 100dvh;
  height: 100dvh;
  background: transparent;
  align-items: stretch;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 0;
}

.sidebar {
  width: 264px;
  background: linear-gradient(180deg, #0b1226 0%, #13203a 55%, #111b2f 100%);
  padding: 0 12px 16px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.2);
  min-height: 100dvh;
  border-radius: 0 20px 20px 0;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}

.sidebar-toggle {
  border: 0;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 18px;
  cursor: pointer;
  align-self: flex-start;
  color: #e2e8f0;
  transition: all 0.3s ease;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sidebar-title {
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(30, 41, 59, 0.35);
  transition: all 0.3s ease;
  flex: 1;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
}

.sidebar-section-label {
  margin: 10px 4px 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.58);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  min-height: 39px;
}

/* Override for sidebar-links used inside page content (e.g. Companies list) */
.dashboard-main .sidebar-link {
  color: #000000;
}
.dashboard-main .sidebar-link.active,
.dashboard-main .sidebar-link:hover {
  color: #000000 !important;
}

.sidebar-icon {
  width: 25px;
  min-width: 25px;
  height: 25px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 12px;
  transition: all 0.25s ease;
}

.sidebar-emoji {
  font-size: 13px;
  transition: all 0.3s ease;
  line-height: 1;
}

.sidebar-text {
  line-height: 1.15;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: var(--app-accent);
  opacity: 0;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.sidebar-link.active::before {
  height: 60%;
  opacity: 1;
}

.sidebar-link.active,
.sidebar-link:hover {
  background: rgba(245, 158, 11, 0.18);
}

.sidebar-link-legacy {
  opacity: 0.84;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.45);
}

.sidebar-link::after {
  display: none;
}

.sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  transition: all 0.3s ease;
}

.sidebar-logo {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 120px;
  padding: 16px 10px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  isolation: isolate;
  overflow: hidden;
}

.sidebar-logo::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.sidebar-logo img {
  width: 100%;
  max-width: 200px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  transition: all 0.3s ease;
  filter: drop-shadow(0 8px 18px rgba(11, 18, 38, 0.3)) brightness(1.1);
  animation: sidebarLogoFloat 4s ease-in-out infinite;
  will-change: transform;
}

.sidebar:hover .sidebar-logo img {
  transform: translateY(-2px) scale(1.04);
}

.dashboard-main {
  flex: 1;
  padding: 0 18px 20px;
  min-width: 0;
  overflow: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #0b1226 0%, #12203a 55%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  color: #e2e8f0;
  border: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
}

.topbar-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.topbar-sep {
  opacity: 0.7;
}

.topbar-back {
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.topbar-back:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateX(-2px);
}

.user-dropdown {
  position: relative;
  cursor: pointer;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  min-width: 120px;
  max-width: 220px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(30, 41, 59, 1);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-trigger:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0b1226;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.user-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
}

.dashboard-grid>* {
  animation: fadeUp 0.55s ease both;
}

.dashboard-grid>*:nth-child(1) {
  animation-delay: 0.05s;
}

.dashboard-grid>*:nth-child(2) {
  animation-delay: 0.1s;
}

.dashboard-grid>*:nth-child(3) {
  animation-delay: 0.15s;
}

.dashboard-grid>*:nth-child(4) {
  animation-delay: 0.2s;
}

.widget-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--app-shadow-soft);
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.widget-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.widget-contact {
  grid-column: span 5;
}

.widget-base {
  grid-column: span 7;
  grid-row: span 2;
}

.widget-birthdays {
  grid-column: span 5;
}

.widget-expiring {
  grid-column: span 7;
}

.widget-admin {
  margin-top: 18px;
}

.widget-admin code {
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.chip {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #0f172a;
  font-weight: 700;
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.stat {
  background: var(--app-surface-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat span {
  font-size: 12px;
  color: #64748b;
}

.stat strong {
  font-size: 20px;
  color: #0f172a;
}

.list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.table-compact th,
.table-compact td {
  padding: 6px 10px;
  font-size: 12px;
}

.table-compact thead {
  background: #e2e8f0;
}

body.sidebar-collapsed .sidebar {
  width: 80px;
  padding-inline: 8px;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .sidebar-text {
  display: none;
  transition: all 0.3s ease;
}

body.sidebar-collapsed .sidebar-emoji {
  display: none;
}

body.sidebar-collapsed .sidebar-nav {
  padding: 5px 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 5px 4px;
  min-height: 32px;
  transition: all 0.3s ease;
}

body.sidebar-collapsed .sidebar-link::before {
  left: 4px;
}

body.sidebar-collapsed .sidebar-link::after {
  display: none;
}

body.sidebar-collapsed .sidebar-link:hover::after,
body.sidebar-collapsed .sidebar-link:focus-visible::after {
  display: none;
}

body.sidebar-collapsed .sidebar-icon {
  margin: 0;
  width: 26px;
  min-width: 26px;
  height: 26px;
  font-size: 13px;
}

body.sidebar-collapsed .sidebar-logo img {
  transition: transform 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

body.sidebar-collapsed .sidebar-dot {
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

@media (max-width: 1100px) {
  .dashboard {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    position: static;
  }

  .sidebar {
    width: 100% !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    transition: all 0.3s ease;
  }

  .sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    transition: all 0.3s ease;
  }

  .sidebar-logo {
    margin-top: 0;
    transition: all 0.3s ease;
  }

  .dashboard-main {
    padding: 0 14px 14px;
  }

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

  .widget-contact,
  .widget-base,
  .widget-birthdays,
  .widget-expiring {
    grid-column: span 1;
    grid-row: span 1;
  }

  body.sidebar-collapsed .sidebar-title,
  body.sidebar-collapsed .sidebar-text {
    display: inline;
    transition: all 0.3s ease;
  }

  body.sidebar-collapsed .sidebar-emoji {
    display: inline;
  }

  .sidebar-link::after {
    display: none;
  }
}

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

  .grid.two .field.full {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sidebar-logo img {
    animation: none !important;
    transform: none;
  }

  body.sidebar-collapsed .sidebar-logo img {
    transform: rotate(-90deg) translateY(0) scale(1);
  }
}

.section-actions .btn {
  margin-top: 0;
}

.stack>* {
  animation: fadeUp 0.5s ease both;
}

.stack>*:nth-child(1) {
  animation-delay: 0.04s;
}

.stack>*:nth-child(2) {
  animation-delay: 0.08s;
}

.stack>*:nth-child(3) {
  animation-delay: 0.12s;
}

.stack>*:nth-child(4) {
  animation-delay: 0.16s;
}

.stack>*:nth-child(5) {
  animation-delay: 0.2s;
}

/* Dashboard refresh (Option C: CSS propio + JS vanilla) */
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
}

body {
  font-size: 16px;
  line-height: 1.45;
}

.container {
  max-width: 1280px;
  padding: var(--space-3);
}

.card,
.widget-card {
  padding: var(--space-3);
}

h3,
.widget-card h3,
.card-header h3 {
  font-size: 18px;
}

.subtle {
  font-size: 14px;
}

.sidebar {
  width: 280px;
  padding: var(--space-2) 14px 20px;
  gap: var(--space-2);
  border-radius: 0 24px 24px 0;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #dbeafe;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.sidebar-toggle {
  padding: 7px 10px;
  font-size: 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
}

.sidebar-nav {
  gap: 8px;
  padding: 8px;
}

.sidebar-link {
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}

.sidebar-link::before {
  left: 0;
}

.sidebar-link.active,
.sidebar-link:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #ffffff;
}

/* Removed duplicated sidebar-logo block */

body.sidebar-collapsed .sidebar {
  width: 88px;
  padding-inline: 10px;
  overflow-y: hidden;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-text {
  display: none;
}

body.sidebar-collapsed .sidebar-head {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-brand {
  display: none;
}

body.sidebar-collapsed .sidebar-link {
  position: relative;
  justify-content: center;
  padding: 10px 8px;
  min-height: 40px;
}

body.sidebar-collapsed .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
}

body.sidebar-collapsed .sidebar-icon {
  margin: 0;
}

body.sidebar-collapsed .sidebar-logo img {
  width: 102px;
  max-width: 102px;
  max-height: none;
  transform: rotate(-90deg) translateY(0) scale(1);
  transform-origin: center;
  margin-bottom: 0;
  object-fit: contain;
  animation: sidebarLogoCollapsed 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(11, 18, 38, 0.4));
  will-change: transform;
}

body.sidebar-collapsed .sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  flex: 0 0 136px;
  padding: 16px 0 10px;
  overflow: hidden;
}

body.sidebar-collapsed .sidebar-logo::before {
  left: 8px;
  right: 8px;
  bottom: 14px;
  height: 32px;
  opacity: 0.72;
  transform: translateY(3px) scale(0.98);
}

@keyframes sidebarLogoFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

@keyframes sidebarLogoCollapsed {

  0%,
  100% {
    transform: rotate(-90deg) translateY(0) scale(1.2);
  }

  50% {
    transform: rotate(-90deg) translateY(-6px) scale(1.23);
  }
}

body.sidebar-collapsed .sidebar-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  background: #0b1226;
  color: #e2e8f0;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1300;
  display: block;
}

body.sidebar-collapsed .sidebar-link:hover::after,
body.sidebar-collapsed .sidebar-link:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.dashboard-main {
  padding: 0 var(--space-3) var(--space-3);
  overflow-y: auto;
  overflow-x: hidden;
}

.topbar {
  margin-top: var(--space-2);
  padding: var(--space-2) 20px;
  position: sticky;
  top: var(--space-2);
  z-index: 2000;
  overflow: visible;
  isolation: isolate;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-title {
  font-size: 24px;
}

.topbar-path {
  color: #bfdbfe;
  font-size: 13px;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fef3c7;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.user-dropdown {
  position: relative;
  z-index: 80;
}

.user-dropdown.is-open {
  z-index: 2200;
}

.user-trigger {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.36);
  color: #e2e8f0;
  cursor: pointer;
  padding: 8px 12px;
}

.user-trigger-chevron {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.user-dropdown.is-open .user-trigger-chevron {
  transform: rotate(180deg);
}

.user-menu {
  position: fixed;
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
  will-change: top, left, transform;
}

.user-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-form {
  margin: 0;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
}

.user-menu-item.danger {
  border-top: 1px solid #e2e8f0;
  color: #b42318;
}

.user-menu-item.danger:hover,
.user-menu-item.danger:focus-visible {
  background: #fef2f2;
  color: #7f1d1d;
}

.dashboard-grid {
  margin-top: var(--space-3);
  gap: var(--space-3);
}

.profile-card {
  max-width: 860px;
}

.profile-card .notice,
.profile-card .error {
  margin-bottom: var(--space-2);
}

.employees-module .practicantes-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(226, 232, 240, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.employees-module .practicantes-tab {
  min-width: 138px;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  box-shadow: none;
}

.employees-module .practicantes-tab.is-active {
  background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2));
  color: #f5fbfb;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.22);
}

.employees-module .practicantes-panel[hidden] {
  display: none !important;
}

.employees-module .employees-panel-section {
  display: grid;
  gap: 18px;
}

.employees-module .employees-panel-head {
  display: grid;
  gap: 6px;
}

.employees-module .employees-panel-head h3,
.employees-module .employees-panel-head h4 {
  margin: 0;
}

.employees-module .employees-panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.1);
  color: #92400e;
}

.employees-module .employees-register-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.45fr);
  gap: 18px;
}

.employees-module .employees-register-aside {
  display: grid;
  gap: 16px;
}

.employees-module .employees-inline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employees-module .employees-inline-stat {
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.employees-module .employees-inline-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.employees-module .employees-inline-stat strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.employees-module .employees-upload-card {
  margin-top: 0;
  padding: 18px;
  border-style: solid;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.employees-module .employees-upload-header,
.employees-module .employees-results-header,
.employees-module .employees-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.employees-module .employees-upload-header h4,
.employees-module .employees-section-head h4 {
  margin: 0 0 6px;
}

.employees-module .employees-form-card,
.employees-module .employees-results-card {
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.employees-module .employees-form-shell {
  gap: 18px;
}

.employees-module .employees-form-section {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.employees-module .employees-form-embedded .employees-form-section,
.employees-module .employees-inline-panel {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.employees-module .employees-form-actions {
  display: flex;
  justify-content: flex-end;
}

.employees-module .employees-form-actions .btn {
  margin-top: 0;
}

.employees-module .employees-search-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.employees-module .employees-filter-card {
  margin: 0;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 80px;
}

.employees-module .employees-search-results {
  min-width: 0;
}

.employees-module .employees-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.employees-module .employees-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.employees-module .employees-data-table thead {
  background: #eef4fa;
}

.employees-module .employees-data-table th,
.employees-module .employees-data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  vertical-align: middle;
}

.employees-module .employees-data-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.employees-module .employees-data-table tbody tr {
  transition: background 0.15s;
}

.employees-module .employees-data-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.04);
}

/* Action buttons in table */
.employees-module .emp-action-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 72px;
}

.employees-module .emp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.employees-module .emp-action-btn.view {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.employees-module .emp-action-btn.view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.employees-module .emp-action-btn.edit {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.employees-module .emp-action-btn.edit:hover {
  background: #dbeafe;
  color: #1e40af;
}

.employees-module .emp-action-btn.danger {
  background: #fff1f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.employees-module .emp-action-btn.danger:hover {
  background: #ffe4e6;
  color: #991b1b;
}

.employees-module .employees-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
}

.employees-module .employees-status-pill.is-positive {
  background: #dcfce7;
  color: #166534;
}

.employees-module .employees-status-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.employees-module .employees-status-pill.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.employees-module .employees-empty-state {
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.employees-module .employees-detail-shell,
.employees-module .employees-catalogs {
  display: grid;
  gap: 22px;
}

.employees-module .employees-catalog-card {
  overflow: hidden;
}

.employees-module .employees-catalog-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.employees-module .employees-catalog-delete-form {
  margin: 0;
  display: inline-flex;
  justify-content: flex-end;
}

.employees-module .employees-catalog-usage,
.employees-module .employees-catalog-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.employees-module .employees-catalog-usage.is-free {
  background: #eef2ff;
  color: #4338ca;
}

.employees-module .employees-catalog-usage.is-used {
  background: #fff7ed;
  color: #c2410c;
}

.employees-module .employees-catalog-locked {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.employees-module .employees-catalog-empty {
  text-align: center;
  color: #64748b;
}

.employees-module .employees-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.employees-module .employees-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employees-module .employees-profile-identity h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.employees-module .employees-profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22);
}

.employees-module .employees-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employees-module .employees-profile-metric {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.employees-module .employees-profile-metric span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.employees-module .employees-profile-metric strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}

.employees-module .employees-detail-modules {
  display: grid;
  gap: 18px;
}

.employees-module .employees-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.employees-module .employees-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.employees-module .employees-detail-panel[hidden] {
  display: none !important;
}

.employees-module .employees-detail-panel-stack {
  display: grid;
  gap: 18px;
}

.employees-module .employees-detail-actions {
  display: flex;
  justify-content: flex-end;
}

.employees-module .employees-detail-alert {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1e6 100%);
}

.employees-module .employees-detail-alert__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9a3412;
}

.employees-module .employees-detail-alert .subtle {
  margin: 0;
  color: #9a3412;
  font-size: 12px;
}

.employees-module .employees-detail-empty {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px dashed #cbd5e1;
}

.employees-module .employees-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}

.employees-module .employees-detail-grid>* {
  min-width: 0;
}

.employees-module .employees-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.employees-module .employees-detail-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  min-width: 0;
}

.employees-module .employees-edit-card,
.employees-module .employees-documents-card,
.employees-module .employees-notes-card,
.employees-module .employees-audit-card,
.employees-module .employees-inline-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.employees-module .employees-edit-card__head {
  gap: 6px;
}

.employees-module .employees-edit-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.employees-module .employees-edit-card__copy {
  margin: 0;
  font-size: 13px;
}

.employees-module .employees-edit-form {
  gap: 16px;
}

.employees-module .employees-form-shell .grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.employees-module .employees-form-shell,
.employees-module .employees-form-shell .grid,
.employees-module .employees-form-shell .field {
  min-width: 0;
}

.employees-module .employees-form-shell .field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.employees-module .employees-form-shell select,
.employees-module .employees-form-shell input[type="text"],
.employees-module .employees-form-shell input[type="email"],
.employees-module .employees-form-shell input[type="date"],
.employees-module .employees-form-shell input[type="number"],
.employees-module .employees-form-shell input[type="file"],
.employees-module .employees-form-shell input:not([type]),
.employees-module .employees-form-shell textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.employees-module .employees-form-shell input[type="file"] {
  overflow: hidden;
}

.employees-module .employees-form-actions--block {
  width: 100%;
  justify-content: stretch;
}

.employees-module .employees-form-actions--block .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

.employees-module .employees-edit-form__actions {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--app-border);
}

.employees-module .employees-edit-checkbox {
  padding: 10px 14px;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  background: var(--app-surface-2);
}

.employees-module .employees-edit-checkbox__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-text);
  text-transform: none;
  user-select: none;
}

.employees-module .employees-edit-checkbox__input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.employees-module .employees-info-grid {
  gap: 10px;
}

.employees-module .employees-info-grid div {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.employees-module .employees-info-grid div span:last-child,
.employees-module .employees-profile-metric strong {
  overflow-wrap: anywhere;
}

.employees-module .employees-compat-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.12);
}

.employees-module .employees-compat-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.employees-module .employees-compat-note p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.employees-module .employees-feed-list {
  gap: 10px;
}

.employees-module .employees-feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.employees-module .employees-feed-item>div,
.employees-module .document-checklist li>div {
  min-width: 0;
}

.employees-module .employees-feed-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
  overflow-wrap: anywhere;
}

.employees-module .employees-document-checklist li {
  border-radius: 16px;
  padding: 12px 14px;
}

.employees-module .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.employees-module .field-label-row label {
  margin: 0;
}

.employees-module .field-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-muted);
}

.employees-module .field-inline-check input {
  width: auto;
  margin: 0;
}

.employees-module .document-checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.employees-module .document-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  background: var(--app-surface-2);
}

.employees-module .document-checklist strong,
.employees-module .document-checklist .subtle,
.employees-module .employees-feed-item strong,
.employees-module .employees-feed-item .subtle,
.employees-module .employees-feed-item a {
  overflow-wrap: anywhere;
}

.employees-module .document-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.employees-module .document-status.ok {
  background: #dcfce7;
  color: #166534;
}

.employees-module .document-status.expiring {
  background: #fef3c7;
  color: #92400e;
}

.employees-module .document-status.expired,
.employees-module .document-status.missing {
  background: #fee2e2;
  color: #991b1b;
}

.requests-shell {
  display: grid;
  gap: 18px;
}

.requests-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 34%),
    linear-gradient(135deg, #081121 0%, #0f172a 60%, #1e3a5f 100%);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 18px 40px rgba(8, 17, 33, 0.18);
  color: #eff6ff;
}

.requests-kicker,
.requests-panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requests-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(191, 219, 254, 0.16);
}

.requests-panel-kicker {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.requests-hero h3 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.04;
  color: #f8fbff;
}

.requests-hero .subtle {
  color: rgba(219, 234, 254, 0.8);
  font-size: 15px;
}

.requests-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.requests-hero-actions .btn.secondary {
  border-color: rgba(191, 219, 254, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
}

.requests-hero-aside {
  display: grid;
  gap: 14px;
}

.requests-summary-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.14);
}

.requests-summary-card.is-highlight {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(14, 165, 233, 0.1) 100%);
}

.requests-summary-card span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.76);
}

.requests-summary-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.05;
  color: #ffffff;
}

.requests-summary-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.requests-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.requests-kpi-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.requests-kpi-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.requests-kpi-value {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1;
  color: #081121;
}

.requests-kpi-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.requests-stage-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.requests-stage-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.requests-stage-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.requests-stage-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 26px;
  color: #081121;
}

.requests-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.requests-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.requests-panel-head h4 {
  margin: 0;
  font-size: 22px;
}

.requests-form-shell {
  gap: 16px;
}

.requests-inline-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.requests-form-actions {
  display: flex;
  justify-content: flex-end;
}

.requests-form-actions .btn {
  margin-top: 0;
}

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

.requests-policy-item {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.requests-policy-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.requests-policy-item span {
  display: block;
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
}

.requests-policy-item p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.requests-list-shell {
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.requests-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.requests-filter-form {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.requests-empty-state {
  padding: 36px 24px;
  border-radius: 22px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

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

.requests-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.requests-card-title h5 {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.requests-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.requests-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
}

.requests-pill.is-positive {
  background: #dcfce7;
  color: #166534;
}

.requests-pill.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.requests-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.requests-pill.is-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.requests-pill.is-neutral {
  background: #e2e8f0;
  color: #334155;
}

.requests-card-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.requests-meta-grid>div,
.requests-detail-block,
.requests-timeline-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.requests-meta-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.requests-meta-grid strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.requests-detail-block p,
.requests-timeline-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.requests-timeline {
  display: grid;
  gap: 10px;
}

.requests-history summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

.requests-history-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.requests-history-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.requests-history-item p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
}

.requests-card-foot {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.requests-card-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.requests-card-actions {
  display: grid;
  gap: 14px;
}

.requests-resolve-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.requests-resolve-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
}

.requests-resolve-grid select,
.requests-resolve-grid textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d4d6d9;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.requests-export-actions {
  gap: 10px;
}

@media (max-width: 1280px) {
  .requests-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requests-board,
  .requests-hero {
    grid-template-columns: 1fr;
  }

  .requests-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .requests-list-header {
    grid-template-columns: 1fr;
  }

  .requests-card-head,
  .requests-upload-header {
    flex-direction: column;
  }

  .requests-card-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {

  .requests-kpi-grid,
  .requests-meta-grid,
  .requests-resolve-grid {
    grid-template-columns: 1fr;
  }

  .requests-hero,
  .requests-list-shell,
  .requests-create-card,
  .requests-policy-card,
  .requests-card {
    padding: 18px;
  }

  .requests-hero-actions,
  .requests-card-dates,
  .requests-export-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .requests-card-foot {
    gap: 12px;
  }
}

.reports-shell {
  display: grid;
  gap: 18px;
}

.reports-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 34%),
    linear-gradient(135deg, #081121 0%, #10243c 56%, #164e63 100%);
  border: 1px solid rgba(94, 234, 212, 0.14);
  box-shadow: 0 18px 40px rgba(8, 17, 33, 0.18);
  color: #eff6ff;
}

.reports-kicker,
.reports-panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(204, 251, 241, 0.16);
}

.reports-panel-kicker {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.reports-hero h3 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.04;
  color: #f8fbff;
}

.reports-hero .subtle {
  color: rgba(219, 234, 254, 0.8);
  font-size: 15px;
}

.reports-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.reports-hero-actions .btn.secondary {
  border-color: rgba(204, 251, 241, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
}

.reports-hero-aside {
  display: grid;
  gap: 14px;
}

.reports-glance-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(204, 251, 241, 0.14);
}

.reports-glance-card.is-highlight {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.reports-glance-card span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.76);
}

.reports-glance-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.05;
  color: #ffffff;
}

.reports-glance-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.reports-kpi-grid-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reports-kpi-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.reports-kpi-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.reports-kpi-value {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1;
  color: #081121;
}

.reports-kpi-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.reports-export-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.reports-span-12 {
  grid-column: span 12;
}

.reports-span-8 {
  grid-column: span 8;
}

.reports-span-7 {
  grid-column: span 7;
}

.reports-span-6 {
  grid-column: span 6;
}

.reports-span-5 {
  grid-column: span 5;
}

.reports-span-4 {
  grid-column: span 4;
}

.reports-panel {
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.reports-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.reports-panel-head h4 {
  margin: 0;
}

.reports-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.reports-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.reports-data-table thead {
  background: #eefaf7;
}

.reports-data-table th,
.reports-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  vertical-align: top;
}

.reports-data-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.04);
}

.reports-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.reports-subpanel {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.reports-subpanel h5 {
  margin: 0 0 12px;
  font-size: 16px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.reports-stage-list {
  display: grid;
  gap: 10px;
}

.reports-stage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.reports-stage-item span {
  color: #475569;
  font-weight: 700;
}

.reports-stage-item strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 20px;
  color: #081121;
}

.reports-filter-form {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

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

.reports-compliance-item {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.reports-compliance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reports-compliance-item p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
}

.reports-progress {
  margin: 12px 0 6px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.reports-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.reports-legacy-board {
  margin-top: 18px;
}

@media (max-width: 1320px) {
  .reports-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-hero,
  .reports-split-grid {
    grid-template-columns: 1fr;
  }

  .reports-span-8,
  .reports-span-7,
  .reports-span-6,
  .reports-span-5,
  .reports-span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 920px) {

  .reports-kpi-grid,
  .reports-kpi-grid-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .reports-kpi-grid,
  .reports-kpi-grid-inline {
    grid-template-columns: 1fr;
  }

  .reports-hero,
  .reports-panel {
    padding: 18px;
  }

  .reports-export-strip,
  .reports-hero-actions,
  .reports-compliance-head {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-data-table {
    min-width: 560px;
  }
}

.sidebar-overlay {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  body.dashboard-body {
    overflow: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .dashboard {
    display: block;
    min-height: 100dvh;
    height: auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 300px) !important;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 1100;
    border-radius: 0 20px 20px 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-nav {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1090;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .dashboard-main {
    padding: 0 14px var(--space-2);
    width: 100%;
  }

  .topbar {
    top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .topbar-title {
    font-size: 20px;
  }

  .topbar-path {
    display: none;
  }

  .user-name {
    display: none;
  }

  .topbar-cross-link {
    display: none;
  }

  body.sidebar-collapsed .sidebar {
    width: min(82vw, 300px) !important;
    padding: var(--space-2) 14px 20px;
    overflow-y: auto;
  }

  body.sidebar-collapsed .sidebar-brand {
    display: inline-flex;
  }

  body.sidebar-collapsed .sidebar-brand-text,
  body.sidebar-collapsed .sidebar-text {
    display: inline;
  }

  body.sidebar-collapsed .sidebar-link {
    justify-content: flex-start;
  }

  body.sidebar-collapsed .sidebar-link::after {
    display: none;
  }

  .sidebar-logo {
    min-height: 108px;
    padding: 14px 6px 10px;
  }

  .sidebar-logo::before {
    left: 18px;
    right: 18px;
    bottom: 8px;
  }

  .sidebar-logo img,
  body.sidebar-collapsed .sidebar-logo img {
    animation: sidebarLogoFloat 4s ease-in-out infinite;
  }

  body.sidebar-collapsed .sidebar-logo {
    min-height: 108px;
    flex: initial;
    padding: 14px 6px 10px;
    overflow: visible;
  }
}

/* Talentheon shell refresh */
body.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0) 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 24%),
    linear-gradient(180deg, #eff4f8 0%, #e7edf4 100%);
}

.dashboard-main .container {
  max-width: 1380px;
  padding: 26px 0 52px;
}

.sidebar {
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 26%),
    linear-gradient(180deg, #081121 0%, #0d1a30 54%, #111f35 100%);
  border-right: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 18px 0 44px rgba(8, 17, 33, 0.22);
}

.sidebar-product {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(148, 163, 184, 0.07) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 8px;
}

.sidebar-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-product-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-product-copy-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-product-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 120, 48, 0.26) 0%, rgba(15, 118, 110, 0.22) 100%);
  border-color: rgba(255, 211, 149, 0.24);
  color: #ffd395;
  font-size: 14px;
}

.sidebar-product-kicker {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(191, 219, 254, 0.74);
}

.sidebar-product-title {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.15;
  color: #f8fbff;
}

.sidebar-product-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(219, 234, 254, 0.76);
}

.sidebar-product-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fef3c7;
  white-space: nowrap;
}

.sidebar-company-switcher {
  display: grid;
  gap: 6px;
}

.sidebar-company-switcher summary {
  list-style: none;
  cursor: pointer;
}

.sidebar-company-switcher summary::-webkit-details-marker {
  display: none;
}

.sidebar-company-switcher-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar-company-switcher-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #d7f2ff;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 11px;
}

.sidebar-company-switcher[open] .sidebar-company-switcher-caret {
  transform: rotate(180deg);
}

.sidebar-company-switcher-menu {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar-company-switcher-form {
  margin: 0;
}

.sidebar-company-switcher-current,
.sidebar-company-switcher-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.28);
  color: #eff6ff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}

.sidebar-company-switcher-current {
  cursor: default;
}

.sidebar-company-switcher-option {
  cursor: pointer;
}

.sidebar-company-switcher-link {
  text-decoration: none;
}

.sidebar-company-switcher-link-manage {
  background: linear-gradient(135deg, rgba(233, 120, 48, 0.15) 0%, rgba(15, 118, 110, 0.14) 100%);
}

.sidebar-company-switcher-option:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(14, 116, 144, 0.22);
}

.sidebar-company-switcher-option.is-active {
  border-color: rgba(255, 211, 149, 0.34);
  background: linear-gradient(135deg, rgba(233, 120, 48, 0.2) 0%, rgba(15, 118, 110, 0.18) 100%);
}

.sidebar-company-switcher-option-main {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-company-switcher-option-main strong {
  font-size: 13px;
  line-height: 1.2;
}

.sidebar-company-switcher-option-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(245, 158, 11, 0.14);
  color: #d7f2ff;
  font-size: 12px;
}

.sidebar-company-switcher-option-main span {
  font-size: 11px;
  color: rgba(219, 234, 254, 0.72);
}

.sidebar-company-switcher-option-check {
  color: #ffd395;
  font-size: 12px;
}

.sidebar-section-label-primary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sidebar-footnote {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
}

.sidebar-footnote.is-clean {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.sidebar-footnote-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(191, 219, 254, 0.68);
}

.sidebar-footnote strong {
  font-size: 13px;
  color: #f8fbff;
}

.sidebar-footnote p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(219, 234, 254, 0.74);
}

body.sidebar-collapsed .sidebar-product,
body.sidebar-collapsed .sidebar-footnote,
body.sidebar-collapsed .sidebar-section-label {
  display: none;
}

.topbar {
  background:
    linear-gradient(135deg, rgba(8, 17, 33, 0.92) 0%, rgba(13, 26, 48, 0.9) 52%, rgba(20, 32, 59, 0.88) 100%);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: 0 20px 44px rgba(8, 17, 33, 0.16);
  backdrop-filter: blur(16px);
}

.topbar-context {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.topbar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.topbar-badge-primary {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
}

.topbar-badge-muted {
  color: rgba(226, 232, 240, 0.9);
}

.topbar-description {
  max-width: 860px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(219, 234, 254, 0.76);
}

.topbar-path {
  flex-wrap: wrap;
  row-gap: 4px;
}

.topbar-path a,
.topbar-path span {
  color: inherit;
}

.topbar-right {
  align-self: flex-start;
  position: relative;
  z-index: 2100;
  overflow: visible;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 20px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.28) 0%, rgba(245, 158, 11, 0) 32%),
    linear-gradient(135deg, #081121 0%, #0d1a30 58%, #133153 100%);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 22px 44px rgba(8, 17, 33, 0.18);
  color: #eff6ff;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(191, 219, 254, 0.18);
}

.dashboard-hero h2 {
  margin: 14px 0 12px;
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.05;
  color: #f8fbff;
}

.dashboard-hero .subtle {
  max-width: 760px;
  color: rgba(219, 234, 254, 0.8);
  font-size: 15px;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.dashboard-hero-actions .btn {
  box-shadow: 0 12px 24px rgba(8, 17, 33, 0.2);
}

.dashboard-hero-actions .btn.secondary {
  border-color: rgba(191, 219, 254, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
}

.dashboard-hero-aside {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.dashboard-glance-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.14);
}

.dashboard-glance-card.is-highlight {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(14, 165, 233, 0.1) 100%);
}

.dashboard-glance-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.74);
}

.dashboard-glance-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.05;
  color: #ffffff;
}

.dashboard-glance-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(219, 234, 254, 0.78);
}

.dashboard-alert-strip {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1e6 100%);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.dashboard-alert-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dashboard-alert-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 146, 60, 0.24);
  display: grid;
  gap: 4px;
}

.dashboard-alert-card strong {
  font-size: 14px;
}

.dashboard-alert-card span {
  font-size: 12px;
  color: #7c2d12;
}

.dashboard-alert-total {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-kpi-grid-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-kpi-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-kpi-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-kpi-value {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 36px;
  line-height: 1;
  color: #081121;
}

.dashboard-kpi-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

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

.widget-span-12 {
  grid-column: span 12;
}

.widget-span-7 {
  grid-column: span 7;
}

.widget-span-5 {
  grid-column: span 5;
}

.dashboard-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 0;
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-table th,
.dashboard-table td {
  padding-block: 10px;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.activity-marker {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.activity-content {
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child .activity-content {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.activity-content p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #334155;
}

.stage-summary-list {
  display: grid;
  gap: 10px;
}

.stage-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.stage-summary-item span {
  color: #475569;
  font-weight: 600;
}

.stage-summary-item strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 20px;
  color: #081121;
}

.status-stack {
  display: grid;
  gap: 12px;
}

.status-card {
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.status-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-card p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
}

.dashboard-progress {
  margin: 12px 0 6px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.compact-list {
  gap: 10px;
}

.compact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.dashboard-transition-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 246, 255, 0.98) 100%);
}

@media (max-width: 1280px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .widget-span-7,
  .widget-span-5 {
    grid-column: span 12;
  }
}

@media (max-width: 1100px) {
  .dashboard-main .container {
    padding: 18px 0 34px;
  }

  .sidebar-product,
  .sidebar-footnote {
    margin-inline: 2px;
  }

  .topbar {
    top: 8px;
  }

  .topbar-description {
    max-width: none;
  }

  .dashboard-hero {
    padding: 24px;
  }

  .dashboard-hero h2 {
    font-size: clamp(28px, 5vw, 36px);
  }

}

@media (max-width: 720px) {

  .dashboard-kpi-grid,
  .dashboard-kpi-grid-inline {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px;
  }

  .topbar-left {
    align-items: flex-start;
  }

  .topbar-badges {
    gap: 6px;
  }

  .topbar-title {
    font-size: 22px;
  }

  .dashboard-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-alert-grid {
    grid-template-columns: 1fr;
  }

  .activity-row,
  .status-card-row,
  .compact-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head {
    flex-direction: column;
  }
}

@media (max-width: 1180px) {

  .employees-module .employees-register-shell,
  .employees-module .employees-search-layout,
  .employees-module .employees-profile-hero,
  .employees-module .employees-detail-grid {
    grid-template-columns: 1fr;
  }

  .employees-module .employees-detail-main {
    grid-row: auto;
  }
}

@media (max-width: 1360px) {

  .employees-module .employees-detail-sidebar .employees-form-shell .grid.two {
    grid-template-columns: 1fr;
  }

  .employees-module .employees-detail-sidebar .employees-form-shell .grid.two .field.full {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {

  .employees-module .employees-inline-stats,
  .employees-module .employees-profile-metrics {
    grid-template-columns: 1fr;
  }

  .employees-module .practicantes-tabs {
    width: 100%;
  }

  .employees-module .practicantes-tab {
    flex: 1 1 0;
    min-width: 0;
  }

  .employees-module .employees-form-shell .grid.two {
    grid-template-columns: 1fr;
  }

  .employees-module .employees-form-shell .grid.two .field.full {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {

  .employees-module .employees-form-card,
  .employees-module .employees-results-card,
  .employees-module .employees-profile-hero,
  .employees-module .employees-detail-main,
  .employees-module .employees-documents-card,
  .employees-module .employees-notes-card,
  .employees-module .employees-audit-card,
  .employees-module .employees-catalog-card {
    padding: 18px;
  }

  .employees-module .employees-upload-header,
  .employees-module .employees-results-header,
  .employees-module .employees-section-head,
  .employees-module .employees-profile-identity,
  .employees-module .employees-feed-item {
    flex-direction: column;
  }

  .employees-module .employees-data-table {
    min-width: 640px;
  }
}

.files-shell,
.users-shell,
.profile-shell {
  display: grid;
  gap: 24px;
}

.files-hero,
.users-hero,
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 52%, #eff6ff 100%);
  box-shadow: 0 24px 60px rgba(8, 17, 33, 0.08);
}

.users-hero {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 52%, #eff6ff 100%);
}

.profile-hero {
  border-color: #bbf7d0;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f7fefb 52%, #ecfdf5 100%);
}

.files-hero-copy,
.users-hero-copy,
.profile-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.profile-hero-copy {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.profile-hero-text {
  display: grid;
  gap: 10px;
}

.files-kicker,
.users-kicker,
.profile-kicker,
.files-panel-kicker,
.users-panel-kicker,
.profile-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-kicker,
.users-panel-kicker {
  color: #1d4ed8;
}

.profile-kicker,
.profile-panel-kicker {
  color: #047857;
}

.files-hero h3,
.users-hero h3,
.profile-hero h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  color: #081121;
}

.files-hero-actions,
.users-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.files-hero-aside,
.users-hero-aside,
.profile-hero-aside {
  display: grid;
  gap: 14px;
}

.files-glance-card,
.users-glance-card,
.profile-glance-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.files-glance-card span,
.users-glance-card span,
.profile-glance-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.files-glance-card strong,
.users-glance-card strong,
.profile-glance-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #081121;
}

.files-glance-card.is-highlight,
.users-glance-card.is-highlight,
.profile-glance-card.is-highlight {
  border-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.profile-glance-card.is-highlight {
  border-color: rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.files-kpi-grid,
.users-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.files-kpi-card,
.users-kpi-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(8, 17, 33, 0.05);
}

.files-kpi-label,
.users-kpi-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.files-kpi-value,
.users-kpi-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #081121;
}

.files-kpi-note,
.users-kpi-note {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.files-board,
.users-board,
.profile-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.files-upload-card,
.files-filter-card,
.files-library-card,
.users-create-card,
.users-policy-card,
.users-directory-card,
.profile-form-card,
.profile-side-card {
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 36px rgba(8, 17, 33, 0.05);
}

.files-panel-head,
.users-panel-head,
.profile-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.files-form-shell,
.users-form-shell,
.profile-form-shell {
  gap: 18px;
}

.files-inline-note,
.users-inline-note,
.profile-inline-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  color: #334155;
  font-size: 13px;
}

.profile-inline-note {
  background: linear-gradient(180deg, #f7fefb 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.files-form-actions,
.users-form-actions,
.profile-form-actions {
  display: flex;
  justify-content: flex-start;
}

.files-filter-summary,
.profile-checklist,
.users-role-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.files-summary-item,
.users-role-item,
.profile-check-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.files-summary-item span,
.users-role-item span {
  color: #64748b;
  font-size: 12px;
}

.files-summary-item strong,
.users-role-item strong,
.profile-check-item strong {
  color: #081121;
}

.files-list-header,
.users-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.files-table-wrap,
.users-table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.files-data-table,
.users-data-table {
  width: 100%;
  min-width: 760px;
}

.files-data-table thead,
.users-data-table thead {
  background: #eef4fa;
}

.files-data-table th,
.files-data-table td,
.users-data-table th,
.users-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.files-data-table tbody tr:hover,
.users-data-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.04);
}

.files-title-stack,
.files-date-stack,
.users-identity-stack,
.users-role-stack {
  display: grid;
  gap: 4px;
}

.files-row-title {
  color: #081121;
}

.files-tag,
.files-status-badge,
.users-legacy-badge,
.users-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.files-tag {
  background: rgba(14, 165, 233, 0.1);
  color: #92400e;
}

.files-status-badge,
.users-status-badge.is-positive {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.users-legacy-badge,
.users-status-badge.is-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
}

.users-status-badge.is-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.files-empty-state,
.users-empty-state {
  padding: 34px 24px;
  border-radius: 22px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.22);
}

.profile-side-card {
  align-self: start;
}

@media (max-width: 1180px) {

  .files-hero,
  .users-hero,
  .profile-hero,
  .files-board,
  .users-board,
  .profile-board {
    grid-template-columns: 1fr;
  }

  .files-kpi-grid,
  .users-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .files-hero,
  .users-hero,
  .profile-hero,
  .files-upload-card,
  .files-filter-card,
  .files-library-card,
  .users-create-card,
  .users-policy-card,
  .users-directory-card,
  .profile-form-card,
  .profile-side-card {
    padding: 18px;
  }

  .files-kpi-grid,
  .users-kpi-grid {
    grid-template-columns: 1fr;
  }

  .files-hero-actions,
  .users-hero-actions,
  .files-list-header,
  .users-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero-copy {
    grid-template-columns: 1fr;
  }

  .files-data-table,
  .users-data-table {
    min-width: 640px;
  }
}

/* Product redesign phase */
:root {
  --app-bg: #f6efe5;
  --app-bg-2: #e8dfd1;
  --app-surface: rgba(255, 252, 247, 0.88);
  --app-surface-2: #fbf6ef;
  --app-border: rgba(95, 77, 50, 0.14);
  --app-text: #17263d;
  --app-muted: #5f6b78;
  --app-accent: #e97830;
  --app-accent-2: #d6a42a;
  --app-shadow: 0 24px 60px rgba(23, 38, 61, 0.1);
  --app-shadow-soft: 0 18px 40px rgba(23, 38, 61, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(233, 120, 48, 0.08) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.08) 0%, transparent 26%),
    linear-gradient(180deg, #f8f2e9 0%, #ece3d6 100%);
  color: var(--app-text);
}

.brand-watermark {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(23, 38, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 38, 61, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(233, 120, 48, 0.08) 0%, transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(13, 148, 136, 0.08) 0%, transparent 24%);
  background-size: 38px 38px, 38px 38px, auto, auto;
  background-position: center;
}

.card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  box-shadow: var(--app-shadow-soft);
  backdrop-filter: blur(14px);
}

table {
  border: 1px solid var(--app-border);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: 0 14px 32px rgba(23, 38, 61, 0.05);
}

thead th {
  background: linear-gradient(180deg, #f7efe4 0%, #efe5d5 100%);
  color: #7b684d;
}

tbody tr:hover {
  background: rgba(233, 120, 48, 0.06);
}

.field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #304256;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  border-color: rgba(95, 77, 50, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--app-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.btn,
.btn.primary {
  background: linear-gradient(135deg, #e97830 0%, #d6a42a 100%);
  color: #1a0800;
  box-shadow: 0 16px 28px rgba(233, 120, 48, 0.22);
  text-shadow: none;
}

.btn:hover,
.btn.primary:hover {
  box-shadow: 0 18px 32px rgba(233, 120, 48, 0.35);
  filter: brightness(1.06);
}

.btn.secondary {
  background: rgba(23, 38, 61, 0.06);
  color: #1a2d46;
  border: 1px solid rgba(95, 77, 50, 0.14);
  box-shadow: none;
}

.btn.secondary:hover {
  box-shadow: 0 14px 24px rgba(23, 38, 61, 0.08);
}

.link {
  color: #0f766e;
}

.chip,
.metric-badge {
  background: rgba(23, 38, 61, 0.06);
  color: #203248;
  border: 1px solid rgba(95, 77, 50, 0.12);
}

.notice,
.error,
.success {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 13px;
}

.notice {
  background: linear-gradient(180deg, #eef7ff 0%, #e2f0ff 100%);
  border-color: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.error {
  background: linear-gradient(180deg, #fff0ee 0%, #ffe2df 100%);
  border-color: rgba(220, 38, 38, 0.12);
  color: #b42318;
}

.success {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.16);
  color: #166534;
}

body.login-body {
  overflow: auto;
  margin: 0;
  background-color: #0b1226;
}

@keyframes loginFloatCyan {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-50px, 40px, 0) scale(1.05);
  }

  100% {
    transform: translate3d(30px, -30px, 0) scale(0.95);
  }
}

@keyframes loginFloatMagenta {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(40px, -50px, 0) scale(1.05);
  }

  100% {
    transform: translate3d(-30px, 20px, 0) scale(0.95);
  }
}

.login-page-pro {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(16, 26, 51, 1) 0%, rgba(11, 18, 38, 1) 100%);
}

.login-page-pro::before,
.login-page-pro::after {
  content: "";
  position: absolute;
  filter: blur(140px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  will-change: transform;
}

.login-page-pro::before {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(0, 240, 255, 0) 70%);
  top: -15%;
  right: -10%;
  animation: loginFloatCyan 14s ease-in-out infinite alternate;
}

.login-page-pro::after {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(255, 0, 234, 0.35) 0%, rgba(255, 0, 234, 0) 70%);
  bottom: -20%;
  left: -15%;
  animation: loginFloatMagenta 18s ease-in-out infinite alternate;
}

.login-page-pro .login-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card.login-card-centered {
  width: min(420px, 92vw);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.login-page-pro .login-form {
  padding: 36px 32px 32px;
  display: grid;
  gap: 18px;
}

.login-page-pro .login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.login-page-pro .login-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.login-page-pro .login-form h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
}

.login-page-pro .field label {
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-page-pro .login-form .field input,
.login-page-pro .login-card .field input {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 15px;
}

.login-page-pro .login-form .field input::placeholder,
.login-page-pro .login-card .field input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.login-page-pro .login-form .field input:focus,
.login-page-pro .login-card .field input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: rgba(30, 41, 59, 0.95);
}

.login-page-pro .login-actions {
  margin-top: 8px;
}

.login-page-pro .login-actions .btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.login-page-pro .login-link-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.login-page-pro .login-link {
  color: var(--app-accent);
  font-size: 13px;
  font-weight: 600;
}

.login-page-pro .error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.login-footer-minimal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.login-legal {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.5);
}

.login-subtitle {
  margin: -8px 0 4px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  text-align: center;
  line-height: 1.5;
}

.login-field-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.75;
}

.login-page-pro .login-form label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-shell {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 42px);
}

.login-card.login-card-split {
  width: min(1160px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  background: rgba(255, 251, 246, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(7, 13, 22, 0.22);
  backdrop-filter: blur(22px);
}

.login-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(214, 164, 42, 0.18) 0%, transparent 28%),
    linear-gradient(155deg, rgba(11, 24, 41, 0.96) 0%, rgba(20, 48, 78, 0.94) 52%, rgba(21, 95, 93, 0.88) 100%);
  color: #fefaf5;
}

body.route-forgot .login-spotlight {
  background:
    radial-gradient(circle at top right, rgba(233, 120, 48, 0.18) 0%, transparent 28%),
    linear-gradient(155deg, rgba(15, 26, 45, 0.96) 0%, rgba(28, 58, 94, 0.94) 54%, rgba(101, 79, 45, 0.9) 100%);
}

.login-spotlight::before,
.login-spotlight::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-spotlight::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 72%);
}

.login-spotlight::after {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(233, 120, 48, 0.16) 0%, transparent 72%);
}

.login-spotlight-copy,
.login-feature-list,
.login-note-card {
  position: relative;
  z-index: 1;
}

.login-kicker,
.login-form-kicker,
.login-note-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-kicker,
.login-note-label {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 250, 241, 0.9);
}

.login-form-kicker {
  background: rgba(233, 120, 48, 0.08);
  border: 1px solid rgba(233, 120, 48, 0.14);
  color: #9a4b12;
}

.login-spotlight h2 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  color: #fffaf3;
}

.login-spotlight p {
  margin: 0;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 246, 236, 0.8);
}

.login-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff8f0;
  font-size: 12px;
  font-weight: 700;
}

.login-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.login-feature-list li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-feature-list strong {
  font-size: 15px;
  color: #fffdf9;
}

.login-feature-list span {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 248, 240, 0.78);
}

.login-note-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.login-note-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.1;
}

.login-note-card p {
  max-width: none;
  font-size: 13px;
  color: rgba(255, 248, 240, 0.78);
}

.login-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 245, 238, 0.98) 100%);
}

.login-form {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 0;
  gap: 16px;
}

.login-logo {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.login-logo img {
  width: min(100%, 220px);
}

.login-form h3 {
  margin: 0;
  font-size: 32px;
  color: #17263d;
}

.login-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5f6b78;
}

.login-form .field input {
  background: rgba(255, 255, 255, 0.92);
}

.login-actions {
  margin-top: 10px;
}

.login-actions .btn {
  width: 100%;
  min-height: 50px;
}

.login-link-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.login-link {
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.login-footer {
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(95, 77, 50, 0.14);
}

.login-meta {
  font-size: 12px;
  font-weight: 700;
  color: #7b684d;
}

.cookie-modal-dialog {
  width: min(540px, 92vw);
  border-radius: 24px;
  border: 1px solid rgba(95, 77, 50, 0.14);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 28px 64px rgba(23, 38, 61, 0.2);
}

.cookie-modal-dialog h4 {
  font-size: 24px;
}

.cookie-modal-dialog p {
  color: var(--app-muted);
}

body.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(233, 120, 48, 0.1) 0%, rgba(233, 120, 48, 0) 24%),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.1) 0%, rgba(13, 148, 136, 0) 24%),
    linear-gradient(180deg, #f8f2e9 0%, #ebe2d5 100%);
}

.dashboard {
  position: relative;
}

.dashboard-main {
  position: relative;
  padding: 0 20px 36px;
}

.dashboard-main::before {
  content: "";
  position: fixed;
  right: 2%;
  bottom: 4%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-main>* {
  position: relative;
  z-index: 1;
}

.dashboard-main .container {
  max-width: 1460px;
  padding: 28px 0 52px;
}

.sidebar {
  width: 296px;
  padding: 18px 14px 18px;
  border-radius: 0 30px 30px 0;
  background:
    radial-gradient(circle at top right, rgba(233, 120, 48, 0.16) 0%, transparent 24%),
    linear-gradient(180deg, #0f1827 0%, #17263d 58%, #1c3148 100%);
  border-right: 1px solid rgba(214, 164, 42, 0.12);
  box-shadow: 24px 0 58px rgba(10, 18, 31, 0.18);
}

.sidebar-head {
  padding: 6px 6px 0;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  gap: 12px;
  color: #fffaf2;
}

.sidebar-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fffaf0;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.2);
}

.sidebar-toggle,
.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-product {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(214, 164, 42, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-product-kicker,
.sidebar-footnote-label,
.sidebar-section-label {
  color: rgba(255, 245, 231, 0.62);
}

.sidebar-product-title,
.sidebar-footnote strong {
  color: #fffaf2;
}

.sidebar-product-copy,
.sidebar-footnote p {
  color: rgba(255, 247, 237, 0.74);
}

.sidebar-product-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff4dc;
}

.sidebar-nav {
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(8, 15, 24, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-link {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(255, 247, 237, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffd395;
}

.sidebar-link.active,
.sidebar-link:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(217, 119, 6, 0.2) 100%);
  color: #fffefb;
  transform: translateX(2px);
}

.sidebar-link.active::before {
  background: #ffd395;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff8f0;
}

.sidebar-link-legacy {
  opacity: 0.8;
}

.sidebar-footnote {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  padding: 20px 8px 8px;
}

.sidebar-logo img,
body.sidebar-collapsed .sidebar-logo img {
  width: min(100%, 210px);
  max-width: 210px;
  max-height: 78px;
  filter: drop-shadow(0 18px 34px rgba(10, 18, 31, 0.25)) brightness(1.1);
}

body.sidebar-collapsed .sidebar {
  width: 96px;
  padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-brand-mark {
  margin-inline: auto;
}

body.sidebar-collapsed .sidebar-logo {
  min-height: 96px;
  flex: 0 0 auto;
  padding-top: 12px;
}

body.sidebar-collapsed .sidebar-logo::before {
  display: none;
}

.topbar {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.72);
  border: 1px solid rgba(95, 77, 50, 0.12);
  box-shadow: 0 22px 46px rgba(23, 38, 61, 0.08);
  backdrop-filter: blur(18px);
  color: var(--app-text);
}

.topbar-badge {
  background: rgba(23, 38, 61, 0.06);
  border-color: rgba(95, 77, 50, 0.1);
  color: #22344c;
}

.topbar-badge-primary {
  background: linear-gradient(135deg, rgba(233, 120, 48, 0.14) 0%, rgba(13, 148, 136, 0.14) 100%);
  border-color: rgba(233, 120, 48, 0.16);
  color: #17263d;
}

.topbar-badge-muted {
  color: #536273;
}

.topbar-title,
.topbar-description,
.topbar-path,
.topbar-path a,
.topbar-path span {
  color: inherit;
}

.topbar-description {
  color: var(--app-muted);
}

.topbar-path {
  color: #8a7456;
}

.topbar-back {
  background: rgba(255, 255, 255, 0.8);
  color: #22344c;
  border: 1px solid rgba(95, 77, 50, 0.12);
}

.topbar-back:hover {
  background: rgba(255, 255, 255, 1);
}

.user-trigger {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(95, 77, 50, 0.12);
  box-shadow: 0 12px 24px rgba(23, 38, 61, 0.06);
  justify-content: flex-start;
}

.user-name {
  color: var(--app-text);
  font-weight: 700;
  max-width: 132px;
}

.user-trigger-chevron {
  margin-left: auto;
  flex-shrink: 0;
}

.user-avatar {
  background: linear-gradient(135deg, #e97830 0%, #0f766e 100%);
  color: #fff8f1;
}

.user-menu {
  top: 0;
  bottom: auto;
  min-width: 228px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(95, 77, 50, 0.14);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 36px rgba(23, 38, 61, 0.16);
}

.user-menu-item {
  border-radius: 12px;
}

.dashboard-shell {
  display: grid;
  gap: 26px;
}

.dashboard-shell>* {
  animation: dashboardEntrance 0.55s ease both;
}

.dashboard-shell>*:nth-child(2) {
  animation-delay: 0.06s;
}

.dashboard-shell>*:nth-child(3) {
  animation-delay: 0.12s;
}

@keyframes dashboardEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 36px;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  gap: 20px;
  background:
    radial-gradient(circle at top right, rgba(214, 164, 42, 0.18) 0%, transparent 24%),
    linear-gradient(140deg, #0f1827 0%, #1a3552 48%, #24605d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(10, 18, 31, 0.18);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, transparent 44%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent);
  pointer-events: none;
}

.dashboard-hero-copy,
.dashboard-hero-aside {
  position: relative;
  z-index: 1;
}

.dashboard-kicker {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fffaf2;
}

.dashboard-hero h2 {
  margin: 18px 0 14px;
  max-width: 12ch;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #fffaf3;
}

.dashboard-hero .subtle {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 246, 236, 0.8);
}

.dashboard-hero-actions {
  margin-top: 24px;
}

.dashboard-hero-actions .btn {
  min-height: 46px;
}

.dashboard-hero-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fffaf3;
}

.dashboard-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.dashboard-signal-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-signal-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 244, 231, 0.72);
}

.dashboard-signal-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #fffaf3;
}

.dashboard-signal-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 247, 237, 0.72);
}

.dashboard-command-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fffaf3;
}

.dashboard-command-card.is-contrast {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(245, 237, 224, 0.96) 100%);
  border-color: rgba(95, 77, 50, 0.12);
  color: var(--app-text);
}

.dashboard-command-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.04;
}

.dashboard-command-card .subtle {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.82;
}

.dashboard-command-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-command-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.dashboard-command-list span {
  font-size: 13px;
  color: inherit;
  opacity: 0.8;
}

.dashboard-command-list strong {
  margin: 0;
  font-size: 18px;
}

.dashboard-priority-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dashboard-priority-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(23, 38, 61, 0.05);
  border: 1px solid rgba(95, 77, 50, 0.1);
}

.dashboard-priority-list span {
  color: #516172;
  font-size: 13px;
}

.dashboard-priority-list strong {
  margin: 0;
  font-size: 15px;
}

.dashboard-kpi-grid {
  gap: 18px;
}

.dashboard-kpi-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 243, 233, 0.98) 100%);
  border: 1px solid rgba(95, 77, 50, 0.12);
  box-shadow: 0 18px 36px rgba(23, 38, 61, 0.07);
}

.dashboard-kpi-label {
  color: #8a7456;
}

.dashboard-kpi-value {
  color: #17263d;
}

.dashboard-kpi-note {
  color: #6a7684;
}

.dashboard-panel {
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.74);
  border: 1px solid rgba(95, 77, 50, 0.12);
  box-shadow: 0 22px 44px rgba(23, 38, 61, 0.06);
  backdrop-filter: blur(14px);
}

.panel-eyebrow {
  color: #9a7746;
}

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

.activity-marker {
  background: linear-gradient(135deg, #e97830 0%, #0f766e 100%);
  box-shadow: 0 0 0 6px rgba(233, 120, 48, 0.12);
}

.stage-summary-item,
.status-card,
.compact-list li {
  border-radius: 18px;
  border-color: rgba(95, 77, 50, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 243, 233, 0.95) 100%);
}

.dashboard-progress,
.reports-progress {
  background: rgba(95, 77, 50, 0.12);
}

.dashboard-progress span,
.reports-progress span {
  background: linear-gradient(90deg, #e97830 0%, #0f766e 100%);
}

@media (max-width: 1180px) {
  .login-card.login-card-split {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .login-spotlight {
    padding: 28px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-signal-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-main {
    padding: 0 14px 28px;
  }

  .sidebar {
    width: min(84vw, 320px) !important;
    border-radius: 0 26px 26px 0;
  }

  .sidebar-logo,
  body.sidebar-collapsed .sidebar-logo {
    min-height: 92px;
  }

  .topbar {
    padding: 16px;
    border-radius: 22px;
  }
}

@media (max-width: 820px) {
  .login-shell {
    padding: 18px;
  }

  .login-spotlight h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .dashboard-signal-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-card.login-card-split {
    width: min(100%, 96vw);
    border-radius: 24px;
  }

  .login-panel,
  .login-spotlight {
    padding: 22px;
  }

  .login-footer,
  .login-link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero {
    padding: 24px;
    border-radius: 28px;
  }

  .dashboard-hero h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .dashboard-command-list div,
  .dashboard-priority-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Operational views redesign continuation */
.employees-shell,
.requests-shell,
.reports-shell,
.files-shell {
  gap: 20px;
}

.employees-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 56%, #eef6ff 100%);
  box-shadow: 0 24px 60px rgba(8, 17, 33, 0.08);
}

.employees-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.employees-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employees-hero h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  color: #081121;
}

.employees-hero .subtle {
  margin: 0;
  color: #475569;
  font-size: 15px;
}

.employees-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.employees-signal-row,
.requests-signal-row,
.reports-signal-row,
.files-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employees-signal-card,
.files-signal-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 30px rgba(8, 17, 33, 0.05);
}

.employees-signal-card span,
.files-signal-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.employees-signal-card strong,
.files-signal-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #081121;
}

.employees-signal-card p,
.files-signal-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.requests-signal-card,
.reports-signal-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.requests-signal-card span,
.reports-signal-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(219, 234, 254, 0.74);
}

.requests-signal-card strong,
.reports-signal-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.requests-signal-card p,
.reports-signal-card p {
  margin: 0;
  color: rgba(219, 234, 254, 0.72);
  font-size: 13px;
}

.employees-hero-aside,
.requests-hero-aside,
.reports-hero-aside,
.files-hero-aside {
  display: grid;
  gap: 14px;
}

.employees-command-card,
.files-command-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 18px 34px rgba(8, 17, 33, 0.05);
}

.requests-command-card,
.reports-command-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eff6ff;
}

.employees-command-card.is-contrast,
.files-command-card.is-contrast {
  border-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.requests-command-card.is-contrast,
.reports-command-card.is-contrast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #081121;
}

.employees-command-label,
.requests-command-label,
.reports-command-label,
.files-command-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.employees-command-card strong,
.requests-command-card strong,
.reports-command-card strong,
.files-command-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.employees-command-card p,
.requests-command-card p,
.reports-command-card p,
.files-command-card p,
.employees-command-card .subtle,
.requests-command-card .subtle,
.reports-command-card .subtle,
.files-command-card .subtle {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.82;
}

.employees-command-list,
.requests-command-list,
.reports-command-list,
.files-command-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.employees-command-list div,
.files-command-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.requests-command-list div,
.reports-command-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.employees-command-list div:last-child,
.requests-command-list div:last-child,
.reports-command-list div:last-child,
.files-command-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.employees-command-list span,
.files-command-list span {
  color: #64748b;
  font-size: 13px;
}

.requests-command-list span,
.reports-command-list span {
  color: inherit;
  font-size: 13px;
  opacity: 0.8;
}

.employees-command-list strong,
.requests-command-list strong,
.reports-command-list strong,
.files-command-list strong {
  margin: 0;
  font-size: 18px;
}

.employees-priority-list,
.requests-priority-list,
.reports-priority-list,
.files-priority-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.employees-priority-list li,
.requests-priority-list li,
.reports-priority-list li,
.files-priority-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.employees-priority-list span,
.requests-priority-list span,
.reports-priority-list span,
.files-priority-list span {
  color: #516172;
  font-size: 13px;
}

.employees-priority-list strong,
.requests-priority-list strong,
.reports-priority-list strong,
.files-priority-list strong {
  margin: 0;
  font-size: 15px;
}

#employees-workspace-card {
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 20px 40px rgba(8, 17, 33, 0.06);
}

@media (max-width: 1180px) {

  .employees-hero,
  .requests-hero,
  .reports-hero,
  .files-hero,
  .employees-module .employees-register-shell,
  .employees-module .employees-search-layout,
  .requests-board,
  .files-board {
    grid-template-columns: 1fr;
  }

  .reports-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .reports-span-8,
  .reports-span-7,
  .reports-span-6,
  .reports-span-5,
  .reports-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {

  .employees-signal-row,
  .requests-signal-row,
  .reports-signal-row,
  .files-signal-row,
  .files-kpi-grid,
  .requests-kpi-grid,
  .reports-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .employees-hero,
  .requests-hero,
  .reports-hero,
  .files-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .employees-hero-actions,
  .requests-hero-actions,
  .reports-hero-actions,
  .files-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .employees-signal-row,
  .requests-signal-row,
  .reports-signal-row,
  .files-signal-row,
  .files-kpi-grid,
  .requests-kpi-grid,
  .reports-kpi-grid,
  .reports-board {
    grid-template-columns: 1fr;
  }

  .reports-span-8,
  .reports-span-7,
  .reports-span-6,
  .reports-span-5,
  .reports-span-4 {
    grid-column: span 1;
  }

  .employees-command-list div,
  .requests-command-list div,
  .reports-command-list div,
  .files-command-list div,
  .employees-priority-list li,
  .requests-priority-list li,
  .reports-priority-list li,
  .files-priority-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   OPERATIONAL UI v2 — Data-first SaaS design system
   ═══════════════════════════════════════════════════════════════ */

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

.module-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.module-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.16);
  color: #92400e;
  font-size: 17px;
  flex-shrink: 0;
}

.module-header-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.module-header-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.module-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.module-header-actions .btn {
  margin-top: 0;
}

.op-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.op-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.op-alert-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.1);
}

.op-alert-card.is-danger {
  background: linear-gradient(180deg, #fef2f2, #fee2e2);
  border-color: rgba(239, 68, 68, 0.2);
}

.op-alert-card.is-info {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border-color: rgba(59, 130, 246, 0.2);
}

.op-alert-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
  font-size: 14px;
  flex-shrink: 0;
}

.op-alert-card.is-danger .op-alert-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.op-alert-card.is-info .op-alert-icon {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.op-alert-body {
  flex: 1;
  min-width: 0;
}

.op-alert-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.op-alert-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.1;
}

.op-alert-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.op-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.op-metric-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.op-metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.op-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.op-metric-value {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.op-metric-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.op-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.op-quick-actions .btn {
  margin-top: 0;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
}

.op-tab-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(226, 232, 240, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.op-tab-btn {
  padding: 8px 18px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.op-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #0f172a;
}

.op-tab-btn.is-active {
  background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2));
  color: #0F172A;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.18);
}

.op-tab-btn .op-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.1);
}

.op-tab-btn.is-active .op-tab-count {
  background: rgba(255, 255, 255, 0.25);
}

.op-section {
  padding: 20px;
  border-radius: 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-top: 3px solid var(--app-accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease;
}

.op-section:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

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

.op-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.op-section-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.op-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.op-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.op-timeline-item:last-child {
  border-bottom: 0;
}

.op-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.op-timeline-content {
  flex: 1;
  min-width: 0;
}

.op-timeline-content strong {
  font-size: 13px;
}

.op-timeline-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.op-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.op-filter-bar .field {
  flex: 1;
  min-width: 150px;
  max-width: 240px;
}

.op-filter-bar .field label {
  font-size: 11px;
  margin-bottom: 4px;
}

.op-filter-bar .field input,
.op-filter-bar .field select {
  padding: 8px 10px;
  font-size: 13px;
}

.op-filter-bar .btn {
  margin-top: 0;
  padding: 8px 14px;
}

.op-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.op-board>.op-span-12 {
  grid-column: span 12;
}

.op-board>.op-span-8 {
  grid-column: span 8;
}

.op-board>.op-span-7 {
  grid-column: span 7;
}

.op-board>.op-span-6 {
  grid-column: span 6;
}

.op-board>.op-span-5 {
  grid-column: span 5;
}

.op-board>.op-span-4 {
  grid-column: span 4;
}

.op-dashboard-shell {
  display: grid;
  gap: 18px;
}

.op-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
}

.op-status-pill.is-positive {
  background: #dcfce7;
  color: #166534;
}

.op-status-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.op-status-pill.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.op-status-pill.is-info {
  background: #dbeafe;
  color: #1e40af;
}

.op-status-pill.is-neutral {
  background: #f1f5f9;
  color: #475569;
}

.op-export-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
}

.op-export-panel .btn {
  margin-top: 0;
  font-size: 12px;
  padding: 7px 14px;
}

.op-export-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-right: 6px;
}

.op-empty {
  padding: 32px 24px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
  color: #64748b;
}

.op-empty h5 {
  margin: 0 0 6px;
  color: #334155;
}

.op-collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  transition: background-color 0.15s ease;
}

.op-collapsible-trigger:hover {
  background: #f1f5f9;
}

.op-collapsible-trigger i {
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #64748b;
}

.op-collapsible-body {
  display: none;
  padding: 16px 0 0;
}

.op-collapsible-body.is-open {
  display: block;
}

@media (max-width: 1100px) {
  .op-board {
    grid-template-columns: repeat(6, 1fr);
  }

  .op-board>.op-span-8,
  .op-board>.op-span-7 {
    grid-column: span 6;
  }

  .op-board>.op-span-5,
  .op-board>.op-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .op-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-alert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .module-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .op-metric-row {
    grid-template-columns: 1fr;
  }

  .op-board {
    grid-template-columns: 1fr;
  }

  .op-board>.op-span-8,
  .op-board>.op-span-7,
  .op-board>.op-span-6,
  .op-board>.op-span-5,
  .op-board>.op-span-4,
  .op-board>.op-span-12 {
    grid-column: span 1;
  }

  .op-tab-bar {
    flex-wrap: wrap;
  }

  .op-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .op-filter-bar .field {
    max-width: none;
  }
}

/* ====== Employee edit form embedded stabilizer ====== */
#practicante-edit-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

#practicante-edit-form .grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

#practicante-edit-form .grid.two .field.full {
  grid-column: span 2;
}

#practicante-edit-form .field {
  min-width: 0;
}

#practicante-edit-form .field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-muted);
  margin-bottom: 5px;
}

#practicante-edit-form .field input,
#practicante-edit-form .field select,
#practicante-edit-form .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #ffffff;
  color: var(--app-text);
  transition: border-color 0.15s;
}

#practicante-edit-form .field input:focus,
#practicante-edit-form .field select:focus,
#practicante-edit-form .field textarea:focus {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

@media (max-width: 680px) {
  #practicante-edit-form .grid.two {
    grid-template-columns: 1fr;
  }

  #practicante-edit-form .grid.two .field.full {
    grid-column: span 1;
  }
}

/* ====== Employee Profile Detail View ====== */
.employees-detail-shell {
  display: grid;
  gap: 20px;
}

.employees-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 30px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--app-shadow);
}

.employees-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employees-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #e0f2fe;
}

.employees-profile-hero .employees-profile-identity h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--app-text);
}

.employees-profile-hero .employees-profile-identity .subtle {
  margin: 0;
  font-size: 13px;
}

.employees-profile-hero .employees-profile-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.employees-profile-hero .employees-profile-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employees-profile-hero .employees-profile-metric span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-muted);
}

.employees-profile-hero .employees-profile-metric strong {
  font-size: 14px;
  color: var(--app-text);
}

@media (max-width: 800px) {
  .employees-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .employees-profile-hero .employees-profile-metrics {
    width: 100%;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--app-border);
  }
}

/* ─── Topbar cross-link (Ir a DENSJ ERP) ─────────────── */
.topbar-cross-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-right: 0.75rem;
  background: #4f46e5;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.topbar-cross-link:hover {
  background: #4338ca;
  color: #fff;
}

/* ─── Extended mobile responsive ─────────────────────── */
@media (max-width: 1100px) {
  /* Dashboard hero: single column on mobile */
  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .dashboard-hero h2 {
    font-size: clamp(22px, 5vw, 34px);
    margin: 10px 0 8px;
  }

  .dashboard-shell {
    gap: 14px;
  }

  /* Topbar badges: hide muted labels on mobile */
  .topbar-badge-muted {
    display: none;
  }

  /* Tables: ensure horizontal scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Content containers: tighter on mobile */
  .dashboard-main .container {
    padding: 14px 0 32px;
  }

  /* Form grids collapse to single column */
  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.two .field.full {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  /* Very small screens: tighten topbar */
  .topbar {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .topbar-title {
    font-size: 16px;
  }

  /* Stack dashboard actions */
  .dashboard-hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* KPI / glance cards: single column */
  .dashboard-glance-grid,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Sidebar link text: always visible when drawer is open */
  body.sidebar-open .sidebar-text {
    display: inline;
  }
}

/* DENSJL Design System alignment - Talentheon 2026 */
:root {
  --app-bg: #eef2f7;
  --app-bg-2: #e2e8f0;
  --app-surface: #ffffff;
  --app-surface-2: #f8fafc;
  --app-card-gradient: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  --app-border: #e2e8f0;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-dark: #0b1226;
  --app-dark-2: #13203a;
  --app-dark-3: #1e293b;
  --app-sidebar-bg: linear-gradient(180deg, #0b1226 0%, #13203a 55%, #111b2f 100%);
  --app-topbar-bg: linear-gradient(120deg, #0b1226 0%, #12203a 55%, #1e293b 100%);
  --app-accent: #f59e0b;
  --app-accent-2: #d97706;
  --app-accent-soft: rgba(245, 158, 11, 0.14);
  --app-accent-bg: rgba(245, 158, 11, 0.08);
  --app-success: #22c55e;
  --app-danger: #ef4444;
  --app-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  --app-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

/* ═══════════════════════════════════════════════
   EMPLOYEES MODULE — Shell, Workspace & Panels
   ═══════════════════════════════════════════════ */

.op-employees-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow: hidden;
}
.op-employees-shell.has-employee-detail,
.op-employees-shell.is-static-workspace {
  height: auto;
  min-height: calc(100vh - 120px);
  overflow: visible;
}
.op-employees-shell.has-employee-detail .op-employees-workspace,
.op-employees-shell.is-static-workspace .op-employees-workspace { flex: 0 0 auto; }
.op-employees-shell.is-static-workspace .op-employees-workspace { overflow: visible; }

.employees-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.employees-page-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.employees-page-title { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.employees-page-title i { color: var(--app-accent); }
.employees-page-sub  { margin: 4px 0 0; }
.employees-alert-item { margin-bottom: 12px; flex-shrink: 0; }

.op-employees-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  box-shadow: var(--app-shadow);
}
.op-employees-workspace-header {
  flex-shrink: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.employees-workspace-title { margin: 0; font-size: 16px; }
.employees-workspace-desc  { margin: 2px 0 0; font-size: 12px; }
.op-employees-workspace-content { flex: 1; padding: 20px; min-height: 0; }
.employees-detail-slot  { margin-top: 16px; }
.employees-tabs-bar     { margin-bottom: 16px; }
.employees-catalog-slot { margin-top: 16px; }

.op-create-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.op-create-aside  { display: flex; flex-direction: column; gap: 16px; }
.op-create-form   { display: flex; flex-direction: column; gap: 20px; }
.op-form-section {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.op-form-section-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--app-border); }
.op-form-section-head h4 { margin: 0 0 4px; font-size: 15px; color: var(--app-text); }

.employees-search-results-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--app-shadow);
}
.employees-search-results-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--app-border);
  flex-wrap: wrap;
}
.employees-search-header-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.employees-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--app-text);
}
.employees-filter-block  { margin-bottom: 16px; }
.employees-filter-kicker { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--app-muted); display: block; margin-bottom: 6px; }
.employees-filter-actions { display: flex; gap: 8px; padding-top: 4px; }
.employees-filter-submit  { flex: 1; justify-content: center; }
.employees-cell-employee  { min-width: 190px; }
.employees-cell-dept      { min-width: 130px; }
.employees-cell-status    { white-space: nowrap; }
.employees-cell-actions   { text-align: center; padding-left: 8px; padding-right: 8px; }
.employees-avatar-wrap    { display: flex; align-items: center; gap: 10px; }
.employees-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--app-accent), #D97706);
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.employees-avatar-info  { min-width: 0; overflow: hidden; }
.employees-avatar-name  { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.employees-avatar-email { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.employees-avatar-date  { font-size: 10px; color: var(--app-muted); margin-top: 1px; }
.employees-dept-name    { font-size: 13px; font-weight: 600; color: var(--app-text); }
.employees-dept-pos     { font-size: 12px; }
.employees-empty-card   { margin: 24px; border-radius: 16px; text-align: center; padding: 32px; }
.employees-empty-icon   { font-size: 36px; color: var(--app-muted); margin-bottom: 12px; }

/* =========================================================
   PAYROLL MODULE — dashboard (payroll/index.php)
   ========================================================= */
.payroll-shell { display: flex; flex-direction: column; gap: 16px; }
.payroll-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.payroll-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payroll-period-card { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-md); box-shadow: var(--app-shadow); padding: 14px 16px; }
.payroll-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.payroll-kpi, .payroll-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-md); box-shadow: var(--app-shadow); }
.payroll-kpi { padding: 14px 16px; border-left: 3px solid var(--app-accent); }
.payroll-kpi span { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--app-muted); }
.payroll-kpi strong { display: block; margin-top: 6px; font-size: 22px; font-family: "Space Grotesk", sans-serif; color: var(--app-text); }
.payroll-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 16px; }
.payroll-card { padding: 16px; }
.payroll-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.payroll-card-head h3 { margin: 0; font-size: 16px; }
.payroll-table-wrap { overflow: auto; border: 1px solid var(--app-border); border-radius: var(--radius-sm); }
.payroll-table-wrap table { margin: 0; border: none; border-radius: 0; }
.payroll-table-wrap th { position: sticky; top: 0; background: var(--app-surface-2); z-index: 1; }
.payroll-stack { display: flex; flex-direction: column; gap: 16px; }
.payroll-alert-list { display: flex; flex-direction: column; gap: 10px; }
.payroll-alert-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--app-border); border-radius: var(--radius-sm); background: var(--app-surface-2); padding: 12px 14px; }
.payroll-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.payroll-status-box { border: 1px solid var(--app-border); border-radius: var(--radius-sm); background: var(--app-surface-2); padding: 12px; text-align: center; }
.payroll-status-box strong { display: block; margin-top: 4px; font-size: 20px; font-family: "Space Grotesk", sans-serif; }
.payroll-edit-row { background: var(--app-surface-2); }
@media (max-width: 1180px) {
  .payroll-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-grid { grid-template-columns: 1fr; }
}

/* PAYROLL CREATE — liquidación form (payroll/create.php) */
.liq-shell { display: flex; flex-direction: column; gap: 16px; }
.liq-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-md); box-shadow: var(--app-shadow); padding: 20px; }
.liq-section-head { margin: 0 0 12px; }
.liq-section-head h4 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.liq-section-head h4 i { color: var(--app-accent); font-size: 14px; }
.liq-section-head p { margin: 4px 0 0; font-size: 12px; color: var(--app-muted); }
.liq-section-head-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.liq-grid { display: grid; gap: 12px; }
.liq-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.liq-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.liq-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.liq-divider { border: none; border-top: 1px solid var(--app-border); margin: 16px 0; }
.liq-totals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.liq-total-box { background: var(--app-surface-2); border: 1px solid var(--app-border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.liq-total-box span { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--app-muted); }
.liq-total-box strong { display: block; margin-top: 4px; font-size: 20px; font-family: "Space Grotesk", sans-serif; }
.liq-total-box.is-result { border-color: var(--app-success); background: rgba(34, 197, 94, 0.08); }
.liq-total-box.is-result span { color: var(--app-success); }
.liq-total-box.is-result strong { color: var(--app-success); font-size: 28px; }
.liq-descuentos-value { color: var(--app-danger); }
@media (max-width: 900px) {
  .liq-grid.cols-3, .liq-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .liq-totals { grid-template-columns: 1fr; }
}

/* REPORTS + BALANCES + HISTORY — shared shell/card/table classes */
.op-reports-shell { display: flex; flex-direction: column; gap: 16px; }
.op-reports-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.op-report-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-md); box-shadow: var(--app-shadow); padding: 16px; }
.op-report-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.op-report-metric { background: var(--app-surface-2); border: 1px solid var(--app-border); border-left: 3px solid var(--app-accent); border-radius: var(--radius-sm); padding: 12px; }
.op-report-metric span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--app-muted); }
.op-report-metric strong { display: block; margin-top: 4px; font-size: 20px; font-family: "Space Grotesk", sans-serif; color: var(--app-text); }
.op-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.op-report-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.op-report-table-wrap { overflow: auto; border: 1px solid var(--app-border); border-radius: var(--radius-sm); margin-top: 12px; }
.op-report-table-wrap table { margin: 0; border: none; border-radius: 0; }
.op-report-table-wrap th { position: sticky; top: 0; background: var(--app-surface-2); z-index: 1; }
.op-inline-balance { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(110px, 1fr)) auto; gap: 8px; align-items: end; }
.op-inline-balance .field { margin: 0; }
.op-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.op-inline-form select { min-width: 120px; }
.op-stage-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.op-stage-pill { min-width: 96px; background: var(--app-surface-2); border: 1px solid var(--app-border); border-radius: 8px; padding: 10px 12px; text-align: center; }
.op-stage-pill strong { display: block; font-size: 18px; margin-top: 4px; }
.op-export-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 200px; z-index: 20; overflow: hidden; }
.op-export-dropdown.open .op-export-dropdown-menu { display: block; }
.op-export-dropdown-menu a { display: block; padding: 10px 16px; font-size: 13px; color: var(--app-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--app-border); }
.op-export-dropdown-menu a:last-child { border-bottom: none; }
.op-export-dropdown-menu a:hover { background: var(--app-surface-2); color: var(--app-accent); }
.op-reports-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--app-border); margin-bottom: 16px; }
.op-reports-tab { padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--app-muted); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s ease; }
.op-reports-tab:hover { color: var(--app-text); }
.op-reports-tab.active { color: var(--app-accent); border-bottom-color: var(--app-accent); }
.op-reports-section[hidden] { display: none; }
.employees-form-actions { display: flex; justify-content: flex-end; }
.employees-form-actions .btn { margin-top: 0; }
@media (max-width: 1080px) {
  .op-reports-grid { grid-template-columns: 1fr; }
  .op-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FILES MODULE (files/index.php) */
.op-files-shell { display: flex; flex-direction: column; height: calc(100vh - 120px); overflow: hidden; }
.files-page-hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-shrink: 0; }
.files-header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.op-files-main { display: grid; grid-template-columns: 1fr 340px; gap: 16px; flex: 1; min-height: 0; }
.op-dashboard-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.op-compact-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--app-shadow); display: flex; flex-direction: column; }
.op-table-wrapper { flex: 1; overflow-y: auto; border: 1px solid var(--app-border); border-radius: var(--radius-sm); }
.op-table-wrapper table { margin: 0; border: none; border-radius: 0; }
.op-table-wrapper th { position: sticky; top: 0; background: var(--app-surface-2); z-index: 1; }
.op-mini-metric { background: var(--app-surface-2); border: 1px solid var(--app-border); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; border-left: 3px solid var(--app-accent); }
.op-mini-metric span { font-size: 11px; color: var(--app-muted); font-weight: 700; text-transform: uppercase; }
.op-mini-metric strong { font-size: 18px; color: var(--app-text); font-family: "Space Grotesk", sans-serif; }
.op-filter-stack { display: flex; flex-direction: column; gap: 10px; }
.files-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.files-filter-bar input[type="text"], .files-filter-bar input:not([type]) { padding: 6px 10px; border: 1px solid var(--app-border); border-radius: 6px; font-size: 12px; width: 200px; background: var(--app-surface); color: var(--app-text); }
.files-filter-bar select { padding: 6px; font-size: 12px; border: 1px solid var(--app-border); border-radius: 6px; background: var(--app-surface); color: var(--app-text); }
.files-upload-card { flex: 1; overflow-y: auto; background: var(--app-surface); }
.btn-danger-outline { color: var(--app-danger); border-color: rgba(239, 68, 68, 0.4); }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

/* SEDES MODULE (sedes/index.php) */
.sede-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sede-photo-card { border: 1px solid var(--app-border); border-radius: var(--radius-sm); background: var(--app-surface); padding: 8px; display: grid; gap: 8px; }
.sede-photo-card img { width: 100%; height: 120px; border-radius: var(--radius-sm); object-fit: cover; background: var(--app-surface-2); }
.sede-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.sede-preview-grid img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--app-border); }

/* RELATORES MODULE (trainers/index.php) */
.relatores-tabs { display: flex; gap: 10px; margin: 12px 0 18px; }
.relatores-tab { min-width: 130px; }
.relatores-tab.is-active { background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2)); color: #fff; }
.relatores-panel[hidden] { display: none !important; }

/* POSTULANTES MODULE (postulantes/index.php) */
.postulantes-tabs { display: flex; gap: 10px; margin: 12px 0 18px; }
.postulantes-tab { min-width: 130px; }
.postulantes-tab.is-active { background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2)); color: #fff; }
.postulantes-panel[hidden] { display: none !important; }
.postulantes-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.postulantes-detail-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-destructive { background-color: var(--app-danger); border-color: #c9302c; color: #fff; white-space: nowrap; }

html[data-theme="dark"] {
  --app-bg: #0a0f1c;
  --app-bg-2: #060a15;
  --app-surface: #131c33;
  --app-surface-2: #0f1729;
  --app-card-gradient: linear-gradient(180deg, #131c33 0%, #0f1729 100%);
  --app-border: #1e293b;
  --app-text: #e2e8f0;
  --app-muted: #94a3b8;
  --app-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  --app-shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

body {
  background: radial-gradient(circle at top, var(--app-bg) 0%, var(--app-bg-2) 70%);
  color: var(--app-text);
}

body.dashboard-body {
  background: radial-gradient(circle at top, var(--app-bg) 0%, var(--app-bg-2) 72%);
}

.brand-watermark {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

.dashboard-main {
  color: var(--app-text);
}

.dashboard-main .container {
  max-width: 1280px;
}

.card,
.widget-card,
.dashboard-hero,
.dashboard-glance-card,
.dashboard-widget,
.employees-card,
.employees-form-shell,
.files-upload-card,
.files-filter-card,
.files-library-card,
.users-create-card,
.users-policy-card,
.users-directory-card,
.profile-form-card,
.profile-side-card,
.requests-card,
.op-panel,
.op-card {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--app-shadow-soft);
  color: var(--app-text);
}

table,
.data-table,
.files-data-table,
.users-data-table,
.op-table-shell {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  color: var(--app-text);
}

thead th {
  background: var(--app-surface-2);
  color: var(--app-muted);
}

tbody tr:hover {
  background: rgba(245, 158, 11, 0.08);
}

.subtle,
.dashboard-card-copy,
.topbar-description,
.field-hint {
  color: var(--app-muted);
}

.field label {
  color: var(--app-muted);
  letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea,
input,
select,
textarea {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: var(--app-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  outline: none;
}

.btn,
.btn.primary,
button.btn.primary {
  background: linear-gradient(120deg, var(--app-accent), var(--app-accent-2));
  color: #0f172a;
  border: 0;
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.3);
}

.btn:hover,
.btn.primary:hover,
button.btn.primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.34);
}

.btn.secondary,
.btn.ghost {
  background: var(--app-accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: var(--app-text);
  box-shadow: none;
}

.link,
a:not(.sidebar-link):not(.topbar-cross-link):not(.sidebar-brand) {
  color: #2563eb;
}

html[data-theme="dark"] .link,
html[data-theme="dark"] a:not(.sidebar-link):not(.topbar-cross-link):not(.sidebar-brand) {
  color: #93c5fd;
}

.sidebar {
  background: var(--app-sidebar-bg);
  color: #e2e8f0;
  border-radius: 0 24px 24px 0;
  border-right: 1px solid rgba(30, 41, 59, 0.7);
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.22);
}

.sidebar-brand,
.sidebar-title,
.sidebar-text,
.sidebar-product-title,
.sidebar-product-copy,
.sidebar-footnote,
.sidebar-link {
  color: #e2e8f0;
}

.sidebar-section-label,
.sidebar-product-kicker,
.sidebar-footnote-label {
  color: #94a3b8;
}

.sidebar-link.active,
.sidebar-link:hover,
.sidebar-company-switcher-option:hover,
.sidebar-company-switcher-option.is-active {
  background: rgba(245, 158, 11, 0.18);
  color: #ffffff;
}

.sidebar-link::before {
  background: var(--app-accent);
}

.sidebar-icon,
.sidebar-brand-mark,
.sidebar-toggle,
.sidebar-product-icon,
.sidebar-company-switcher-option-icon {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fbbf24;
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.topbar {
  background: var(--app-topbar-bg);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
  backdrop-filter: none;
}

.topbar-title,
.topbar-description,
.topbar-path,
.topbar-path a,
.topbar-path span {
  color: inherit;
}

.topbar-path {
  color: #bfdbfe;
}

.topbar-badge {
  background: rgba(15, 23, 42, 0.36);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.topbar-badge-primary,
.topbar-badge-muted {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
}

.topbar-back,
.mobile-menu-btn,
.topbar-theme-btn,
.user-trigger {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
}

.topbar-back:hover,
.mobile-menu-btn:hover,
.topbar-theme-btn:hover,
.user-trigger:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #fff7ed;
}

.topbar-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.45, 0.5, 1);
}

.topbar-theme-btn:hover {
  transform: translate3d(0, -1px, 0) rotate(-12deg);
}

.topbar-theme-btn:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}

.topbar-cross-link {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: #fde68a;
}

.topbar-cross-link:hover {
  background: rgba(245, 158, 11, 0.24);
  color: #fff7ed;
}

.user-avatar {
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  color: #0b1226;
}

.user-name {
  color: #e2e8f0;
}

.user-menu {
  background: var(--app-surface);
  border-color: var(--app-border);
  box-shadow: var(--app-shadow);
}

.user-menu-item {
  color: var(--app-text);
}

.notice {
  background: var(--app-accent-soft);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--app-text);
}

html[data-theme="dark"] .topbar-cross-link,
html[data-theme="dark"] .topbar-theme-btn,
html[data-theme="dark"] .topbar-back,
html[data-theme="dark"] .mobile-menu-btn,
html[data-theme="dark"] .user-trigger {
  background: rgba(15, 23, 42, 0.48);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0f1729;
  border-color: #2a3a55;
}

@media (max-width: 1100px) {
  .sidebar {
    border-radius: 0 20px 20px 0;
  }

  .topbar {
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  .topbar-theme-btn {
    width: 36px;
    height: 36px;
  }
}

/* ====== Dark Mode Comprehensive Overrides ====== */

/* Sidebar link used inside page content */
html[data-theme="dark"] .dashboard-main .sidebar-link {
  color: var(--app-text);
}
html[data-theme="dark"] .dashboard-main .sidebar-link.active,
html[data-theme="dark"] .dashboard-main .sidebar-link:hover {
  color: #ffffff !important;
}

/* Tables */
html[data-theme="dark"] table {
  background: var(--app-surface);
}
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  border-bottom-color: var(--app-border);
}
html[data-theme="dark"] thead th,
html[data-theme="dark"] .table-compact thead {
  background: var(--app-surface-2);
  color: var(--app-muted);
}
html[data-theme="dark"] .op-timeline-item {
  border-bottom-color: var(--app-border);
}

/* Inline form inputs with hardcoded backgrounds */
html[data-theme="dark"] #practicante-edit-form .field input,
html[data-theme="dark"] #practicante-edit-form .field select,
html[data-theme="dark"] #practicante-edit-form .field textarea,
html[data-theme="dark"] .requests-resolve-grid select,
html[data-theme="dark"] .requests-resolve-grid textarea {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: var(--app-text);
}

/* Stat / chip / metric text colors */
html[data-theme="dark"] .stat strong {
  color: var(--app-text);
}
html[data-theme="dark"] .stat span {
  color: var(--app-muted);
}
html[data-theme="dark"] .chip,
html[data-theme="dark"] .metric-badge {
  color: var(--app-text);
}
html[data-theme="dark"] .widget-admin code {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

/* Notices / alerts */
html[data-theme="dark"] .notice {
  background: rgba(99, 102, 241, 0.12);
  border-left-color: #818cf8;
  color: #c7d2fe;
}
html[data-theme="dark"] .error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
html[data-theme="dark"] .success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}
html[data-theme="dark"] .requests-inline-note {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--app-text);
}
html[data-theme="dark"] .requests-resolve-form {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
}

/* Status pills — generic */
html[data-theme="dark"] .status-pill {
  background: rgba(148, 163, 184, 0.18);
  color: var(--app-text);
}
html[data-theme="dark"] .status-registrado { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; }
html[data-theme="dark"] .status-psicolaboral { background: rgba(99, 102, 241, 0.15); color: #c7d2fe; }
html[data-theme="dark"] .status-entrevista_area { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .status-seleccionado { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .status-no_seleccionado { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Op module — status pills */
html[data-theme="dark"] .op-status-pill { background: rgba(148, 163, 184, 0.18); color: var(--app-text); }
html[data-theme="dark"] .op-status-pill.is-positive { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .op-status-pill.is-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .op-status-pill.is-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html[data-theme="dark"] .op-status-pill.is-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
html[data-theme="dark"] .op-status-pill.is-neutral { background: rgba(71, 85, 105, 0.3); color: #94a3b8; }

/* Employees module — status pills & action buttons */
html[data-theme="dark"] .employees-module .employees-status-pill { background: rgba(148, 163, 184, 0.18); color: var(--app-text); }
html[data-theme="dark"] .employees-module .employees-status-pill.is-positive { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .employees-module .employees-status-pill.is-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .employees-module .employees-status-pill.is-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

html[data-theme="dark"] .employees-module .emp-action-btn.view {
  background: rgba(148, 163, 184, 0.12);
  color: var(--app-text);
  border-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .emp-action-btn.view:hover {
  background: rgba(148, 163, 184, 0.22);
  color: #ffffff;
}
html[data-theme="dark"] .employees-module .emp-action-btn.edit {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.25);
}
html[data-theme="dark"] .employees-module .emp-action-btn.edit:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}
html[data-theme="dark"] .employees-module .emp-action-btn.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
html[data-theme="dark"] .employees-module .emp-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

/* Employees module — document status */
html[data-theme="dark"] .employees-module .document-status { background: rgba(148, 163, 184, 0.18); color: var(--app-text); }
html[data-theme="dark"] .employees-module .document-status.ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .employees-module .document-status.expiring { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .employees-module .document-status.expired,
html[data-theme="dark"] .employees-module .document-status.missing { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Employees module — catalog usage */
html[data-theme="dark"] .employees-module .employees-catalog-usage.is-free { background: rgba(99, 102, 241, 0.15); color: #c7d2fe; }
html[data-theme="dark"] .employees-module .employees-catalog-usage.is-used { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .employees-module .employees-catalog-locked { background: rgba(71, 85, 105, 0.2); border-color: var(--app-border); color: var(--app-muted); }

/* Employees module — profile hero & metric cards */
html[data-theme="dark"] .employees-module .employees-profile-hero {
  background: linear-gradient(160deg, var(--app-surface) 0%, var(--app-surface-2) 100%);
  border-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .employees-profile-metric {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .employees-profile-metric span { color: var(--app-muted); }
html[data-theme="dark"] .employees-module .employees-profile-metric strong { color: var(--app-text); }

/* Employees module — empty / alert states */
html[data-theme="dark"] .employees-module .employees-empty-state,
html[data-theme="dark"] .employees-module .employees-detail-empty {
  background: var(--app-surface-2);
  border-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .employees-detail-alert {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}
html[data-theme="dark"] .employees-module .employees-detail-alert__title,
html[data-theme="dark"] .employees-module .employees-detail-alert .subtle {
  color: #fcd34d;
}

/* Requests module — pills */
html[data-theme="dark"] .requests-pill { background: rgba(148, 163, 184, 0.18); color: var(--app-text); }
html[data-theme="dark"] .requests-pill.is-positive { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .requests-pill.is-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html[data-theme="dark"] .requests-pill.is-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
html[data-theme="dark"] .requests-pill.is-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
html[data-theme="dark"] .requests-pill.is-neutral { background: rgba(71, 85, 105, 0.3); color: #94a3b8; }

/* Requests module — cards & panels */
html[data-theme="dark"] .requests-kpi-card,
html[data-theme="dark"] .requests-stage-card,
html[data-theme="dark"] .requests-policy-item,
html[data-theme="dark"] .requests-filter-form,
html[data-theme="dark"] .requests-empty-state,
html[data-theme="dark"] .requests-card,
html[data-theme="dark"] .requests-history-item {
  background: var(--app-surface);
  border-color: var(--app-border);
}
html[data-theme="dark"] .requests-kpi-value { color: var(--app-text); }
html[data-theme="dark"] .requests-stage-card strong { color: var(--app-text); }
html[data-theme="dark"] .requests-meta-grid strong { color: var(--app-text); }
html[data-theme="dark"] .requests-history summary { color: var(--app-text); }
html[data-theme="dark"] .requests-history-item p { color: var(--app-muted); }
html[data-theme="dark"] .requests-card-foot { border-top-color: var(--app-border); }
html[data-theme="dark"] .requests-meta-grid > div,
html[data-theme="dark"] .requests-detail-block,
html[data-theme="dark"] .requests-timeline-item {
  background: var(--app-surface-2);
  border-color: var(--app-border);
}
html[data-theme="dark"] .requests-detail-block p,
html[data-theme="dark"] .requests-timeline-item p { color: var(--app-text); }
html[data-theme="dark"] .requests-panel-kicker { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }

/* Reports module */
html[data-theme="dark"] .reports-compliance-item {
  background: var(--app-surface);
  border-color: var(--app-border);
}
html[data-theme="dark"] .reports-compliance-item p { color: var(--app-muted); }
html[data-theme="dark"] .reports-progress { background: var(--app-border); }
html[data-theme="dark"] .reports-panel-kicker { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }

/* Op module — tabs, actions, panels */
html[data-theme="dark"] .op-tab-bar {
  background: rgba(15, 23, 42, 0.5);
  border-color: var(--app-border);
}
html[data-theme="dark"] .op-tab-btn {
  color: var(--app-muted);
}
html[data-theme="dark"] .op-tab-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--app-text);
}
html[data-theme="dark"] .op-quick-actions {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}
html[data-theme="dark"] .op-export-panel {
  background: var(--app-surface-2);
  border-color: var(--app-border);
}
html[data-theme="dark"] .op-empty {
  background: var(--app-surface-2);
  border-color: var(--app-border);
  color: var(--app-muted);
}
html[data-theme="dark"] .op-empty h5 { color: var(--app-text); }
html[data-theme="dark"] .op-collapsible-trigger {
  background: var(--app-surface-2);
  border-color: var(--app-border);
  color: var(--app-text);
}
html[data-theme="dark"] .op-collapsible-trigger:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* User menu dropdown */
html[data-theme="dark"] .user-menu-item:hover,
html[data-theme="dark"] .user-menu-item:focus-visible {
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
}
html[data-theme="dark"] .user-menu-item.danger {
  border-top-color: var(--app-border);
  color: #fca5a5;
}
html[data-theme="dark"] .user-menu-item.danger:hover,
html[data-theme="dark"] .user-menu-item.danger:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

/* Cookie modal */
html[data-theme="dark"] .cookie-modal-dialog {
  background: var(--app-surface);
  border-color: var(--app-border);
}
html[data-theme="dark"] .cookie-modal-dialog h4,
html[data-theme="dark"] .cookie-modal-dialog p {
  color: var(--app-text);
}

/* Progress bar background */
html[data-theme="dark"] .reports-progress {
  background: var(--app-border);
}

/* =============================================================================
   Dark-mode contrast fixes — added 2026-05-19 by clawdbot
   Selectors that were missing dark-mode overrides and looked white/low-contrast
   on the dark page. All scoped to html[data-theme="dark"] — light mode untouched.
   ============================================================================= */

/* --- Empresas page: KPI cards (op-metric-*) --- */
html[data-theme="dark"] .op-metric-card {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  box-shadow: var(--app-shadow-soft);
}
html[data-theme="dark"] .op-metric-card:hover {
  box-shadow: var(--app-shadow);
}
html[data-theme="dark"] .op-metric-label {
  color: var(--app-muted);
}
html[data-theme="dark"] .op-metric-value {
  color: var(--app-text);
}
html[data-theme="dark"] .op-metric-note {
  color: var(--app-muted);
}

/* --- Page header (module-header-*) --- */
html[data-theme="dark"] .module-header-title {
  color: var(--app-text);
}
html[data-theme="dark"] .module-header-sub {
  color: var(--app-muted);
}

/* --- Empleados: filter sidebar card (employees-filter-card) --- */
html[data-theme="dark"] .employees-module .employees-filter-card {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  box-shadow: var(--app-shadow-soft);
  color: var(--app-text);
}

/* --- Empleados: results table wrapper + main data table --- */
html[data-theme="dark"] .employees-module .employees-table-wrap,
html[data-theme="dark"] .employees-module .employees-data-table {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  color: var(--app-text);
}
html[data-theme="dark"] .employees-module .employees-data-table thead th {
  background: var(--app-surface-2);
  color: var(--app-muted);
  border-bottom-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .employees-data-table tbody tr {
  border-bottom-color: var(--app-border);
}
html[data-theme="dark"] .employees-module .employees-data-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.08);
}

/* --- Override inline styles in search_panel.php that hardcoded light colors ---
   These attribute selectors win against the inline style because of !important. */
/* "Area / Cargo" cell — inline color:#1e293b is near-black, invisible on dark */
html[data-theme="dark"] .employees-data-table td div[style*="color:#1e293b"],
html[data-theme="dark"] .employees-data-table td div[style*="color: #1e293b"] {
  color: var(--app-text) !important;
}
/* "Filtros" small label — inline color:#64748b */
html[data-theme="dark"] .employees-filter-card span[style*="color:#64748b"],
html[data-theme="dark"] .employees-filter-card span[style*="color: #64748b"] {
  color: var(--app-muted) !important;
}
/* Results header chip with light bg/border/text */
html[data-theme="dark"] .employees-search-panel span[style*="background:#f1f5f9"],
html[data-theme="dark"] .employees-search-panel span[style*="background: #f1f5f9"] {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: var(--app-text) !important;
}
/* Results header bottom divider (was #f1f5f9 light) */
html[data-theme="dark"] .employees-search-panel div[style*="border-bottom:1px solid #f1f5f9"],
html[data-theme="dark"] .employees-search-panel div[style*="border-bottom: 1px solid #f1f5f9"] {
  border-bottom-color: var(--app-border) !important;
}
/* Results panel itself (background container) */
html[data-theme="dark"] .employees-module .employees-search-results {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  border-radius: var(--radius-lg);
}

/* --- Headings inside cards inherit text but inline-styled h3 may inherit dark text --- */
html[data-theme="dark"] .employees-filter-card h3,
html[data-theme="dark"] .employees-search-results h3 {
  color: var(--app-text);
}

/* --- Companies page: directory section card --- */
html[data-theme="dark"] .op-section {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  color: var(--app-text);
}

/* =============================================================================
   Round 2 fixes — added 2026-05-20 by clawdbot
   Covers Dashboard KPI fallback (db-*), Companies directory in LIGHT mode,
   Nuevo empleado form sections, and inline-style overrides.
   ============================================================================= */

/* --- Dashboard fallback KPI cards (db-* classes from renderDashboardModuleFallback in web/index.php) --- */
html[data-theme="dark"] .db-kpi {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  box-shadow: var(--app-shadow-soft);
}
html[data-theme="dark"] .db-kpi-label {
  color: var(--app-muted);
}
html[data-theme="dark"] .db-kpi-value {
  color: var(--app-text);
}
html[data-theme="dark"] .db-kpi-note {
  color: var(--app-muted);
}
html[data-theme="dark"] .db-kpi.is-warning .db-kpi-value {
  color: #fbbf24;
}
html[data-theme="dark"] .db-kpi.is-danger .db-kpi-value {
  color: #f87171;
}

/* --- Dashboard fallback content cards (Actividad reciente / Alertas operativas) --- */
html[data-theme="dark"] .db-card {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
  box-shadow: var(--app-shadow-soft);
  color: var(--app-text);
}
html[data-theme="dark"] .db-card-title {
  color: var(--app-muted);
}

/* --- Dashboard fallback list items (events + alerts) --- */
html[data-theme="dark"] .db-list-item {
  background: var(--app-surface-2);
  border-color: var(--app-border);
  color: var(--app-text);
}
html[data-theme="dark"] .db-item-name {
  color: var(--app-text);
}
html[data-theme="dark"] .db-item-meta {
  color: var(--app-muted);
}
html[data-theme="dark"] .db-empty {
  color: var(--app-muted);
}
html[data-theme="dark"] .db-alert-item {
  border-left-color: var(--app-border);
}

/* --- Dashboard tags/chips inside the fallback (action/actor/warn/danger/ok) --- */
html[data-theme="dark"] .db-tag-action {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}
html[data-theme="dark"] .db-tag-actor {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}
html[data-theme="dark"] .db-tag-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
html[data-theme="dark"] .db-tag-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
html[data-theme="dark"] .db-tag-ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

/* --- Dashboard alternate view (dashboard-*) — onboarding panel uses cream colors,
   keeps its accent in dark by tinting the gradient with translucent amber. --- */
html[data-theme="dark"] .dashboard-onboarding {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}
html[data-theme="dark"] .dashboard-onboarding h3 {
  color: #fcd34d;
}
html[data-theme="dark"] .dashboard-onboarding p {
  color: var(--app-muted);
}
html[data-theme="dark"] .dashboard-step {
  background: var(--app-surface-2);
  border-color: var(--app-border);
  color: var(--app-text);
}
html[data-theme="dark"] .dashboard-alert-item.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}
html[data-theme="dark"] .dashboard-alert-item.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}
html[data-theme="dark"] .dashboard-alert-item.warning .dashboard-alert-value {
  color: #fcd34d;
}
html[data-theme="dark"] .dashboard-alert-item.danger .dashboard-alert-value {
  color: #fca5a5;
}

/* --- Nuevo empleado form (create_panel.php inline <style> uses background:#ffffff) --- */
html[data-theme="dark"] .op-form-section {
  background: var(--app-card-gradient);
  border-color: var(--app-border);
}
html[data-theme="dark"] .op-form-section-head {
  border-bottom-color: var(--app-border);
}
html[data-theme="dark"] .op-form-section-head h4 {
  color: var(--app-text);
}

/* Inline style override: op-mini-metric uses inline background:#f8fafc */
html[data-theme="dark"] .op-mini-metric[style*="background:#f8fafc"],
html[data-theme="dark"] .op-mini-metric[style*="background: #f8fafc"] {
  background: var(--app-surface-2) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}
/* The op-mini-metric "label" span should be muted, its strong should be text color */
html[data-theme="dark"] .op-mini-metric span {
  color: var(--app-muted);
}
html[data-theme="dark"] .op-mini-metric strong {
  color: var(--app-text);
}

/* =============================================================================
   LIGHT MODE fixes — Companies directory & generic sidebar-link inside panels
   ============================================================================= */

/* sidebar-link is built for the dark sidebar (color:#e2e8f0 = almost white).
   When used inside .op-section (a content panel that may be light or dark
   depending on theme), force readable colors that adapt to theme via vars.
   !important is required because there's an existing
   .dashboard-main .sidebar-link.active{color:#000 !important;} rule. */
.op-section .sidebar-link {
  color: var(--app-text) !important;
}
.op-section .sidebar-link.active {
  color: var(--app-text) !important;
}
.op-section .sidebar-link:hover {
  color: var(--app-text) !important;
}
.op-section .sidebar-link .subtle,
.op-section .sidebar-link .sidebar-text .subtle {
  color: var(--app-muted) !important;
}
/* Make sure sidebar-link inside op-section uses a translucent surface,
   not the dark sidebar's color, to keep contrast in both modes */
html[data-theme="dark"] .op-section .sidebar-link.active,
html[data-theme="dark"] .op-section .sidebar-link:hover {
  background: rgba(245, 158, 11, 0.14);
}

/* =============================================================================
   Round 3 fixes — added 2026-05-20 by clawdbot
   Found that .sidebar-text has its OWN color rule at line 7747 (color:#e2e8f0)
   which overrides parent .sidebar-link color. And the employees results header
   has a div with inline background:#fff that breaks dark mode locally.
   ============================================================================= */

/* --- Empresas directorio: sidebar-text itself has color:#e2e8f0 hardcoded.
   Override it inside .op-section so the COMPANY NAME inside the directory
   adapts to theme. Without this the company name span is white in light mode. --- */
.op-section .sidebar-text {
  color: var(--app-text) !important;
}
/* The "N usuarios" sub-line — inline class="subtle" — keep muted */
.op-section .sidebar-text .subtle {
  color: var(--app-muted) !important;
}

/* --- Empleados listing wrapper: search_panel.php line 87 has
   <div style="background:#fff; border:1px solid #e2e8f0; border-radius:24px; ...">
   inside .employees-search-results. Override this in dark mode so the white
   wrapper becomes dark too, otherwise the h3 "Empleados" (text-colored light)
   becomes invisible on the local white background. --- */
html[data-theme="dark"] .employees-search-results > div[style*="background:#fff"],
html[data-theme="dark"] .employees-search-results > div[style*="background: #fff"] {
  background: var(--app-card-gradient) !important;
  border-color: var(--app-border) !important;
  box-shadow: var(--app-shadow-soft) !important;
}
/* The inner divider div has border-bottom:1px solid #f1f5f9 hardcoded too */
html[data-theme="dark"] .employees-search-results div[style*="border-bottom:1px solid #f1f5f9"],
html[data-theme="dark"] .employees-search-results div[style*="border-bottom: 1px solid #f1f5f9"] {
  border-bottom-color: var(--app-border) !important;
}
/* The "11 resultados" chip in the results header has inline light-mode colors */
html[data-theme="dark"] .employees-search-results span[style*="background:#f1f5f9"],
html[data-theme="dark"] .employees-search-results span[style*="background: #f1f5f9"] {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: var(--app-text) !important;
}
/* The h3 "Empleados" inside the wrapper — ensure light text */
html[data-theme="dark"] .employees-search-results h3 {
  color: var(--app-text) !important;
}
/* The employees-panel-kicker "BASE VISIBLE" chip looks fine but verify color */
html[data-theme="dark"] .employees-search-results .employees-panel-kicker {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

/* --- The same pattern may exist in other employees panels (table cell inline
   styles, employees-table-wrap white background, etc.). Override the table wrap
   that's set to white via inline. --- */
html[data-theme="dark"] .employees-table-wrap[style*="border-radius:0"],
html[data-theme="dark"] .employees-table-wrap {
  background: transparent;
}

/* Dashboard fallback module */
.db-shell { display: flex; flex-direction: column; gap: 22px; }
.db-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}
.db-welcome::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .18), transparent 70%);
  pointer-events: none;
}
.db-welcome h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.db-welcome p { margin: 6px 0 0; color: rgba(203, 213, 225, .8); font-size: 14px; }
.db-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.db-kpi {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.db-kpi-label { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.db-kpi-value { margin-top: 10px; color: #0f172a; font-size: 34px; font-weight: 800; line-height: 1; }
.db-kpi-note { margin-top: 6px; color: #94a3b8; font-size: 12px; }
.db-kpi.is-warning .db-kpi-value { color: #d97706; }
.db-kpi.is-danger .db-kpi-value { color: #dc2626; }
.db-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.db-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.db-card-title { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.db-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.db-list-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-item-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-item-name { color: #0f172a; font-size: 13px; font-weight: 600; }
.db-item-meta { color: #64748b; font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.db-item-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.db-tag-action { background: rgba(99, 102, 241, .1); color: #4338ca; }
.db-tag-actor { background: rgba(245, 158, 11, .1); color: #b45309; }
.db-tag-warn { background: rgba(245, 158, 11, .12); color: #b45309; }
.db-tag-danger { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.db-tag-ok { background: rgba(16, 185, 129, .1); color: #059669; }
.db-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 20px 0; }
.db-alert-item { border-left: 3px solid #e2e8f0; }
.db-alert-item.warn { border-color: #f59e0b; }
.db-alert-item.danger { border-color: #dc2626; }
.db-alert-item.ok { border-color: #10b981; }
@media (max-width: 1100px) {
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .db-kpis { grid-template-columns: 1fr; }
  .db-welcome { padding: 20px; }
  .db-welcome h2 { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════
   Dashboard view (.dv-*) — Fase 6 rediseño
════════════════════════════════════════════════════ */
.dv-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.dv-header {
  background: linear-gradient(135deg, var(--app-dark) 0%, var(--app-dark-3) 100%);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: #f8fafc;
}
.dv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dv-greeting {
  margin: 0;
  font-size: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dv-subline {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
}
.dv-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.dv-header-actions .btn {
  font-size: 13px;
  padding: 9px 16px;
}

/* KPI grid */
.dv-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dv-kpis--two {
  grid-template-columns: repeat(2, 1fr);
}
.dv-kpi {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-top: 3px solid var(--app-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--app-shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dv-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow);
}
.dv-kpi--neutral { border-top-color: var(--app-accent); }
.dv-kpi--ok     { border-top-color: var(--app-success); }
.dv-kpi--warning { border-top-color: var(--app-accent); }
.dv-kpi--danger  { border-top-color: var(--app-danger); }
.dv-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--app-accent-soft);
  color: var(--app-accent);
}
.dv-kpi--danger .dv-kpi-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--app-danger);
}
.dv-kpi--ok .dv-kpi-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--app-success);
}
.dv-kpi-body { flex: 1; min-width: 0; }
.dv-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--app-muted);
}
.dv-kpi-value {
  font-size: 34px;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--app-text);
  line-height: 1.1;
  margin-top: 6px;
}
.dv-kpi--danger .dv-kpi-value { color: var(--app-danger); }
.dv-kpi--warning .dv-kpi-value { color: var(--app-accent-2); }
.dv-kpi-meta {
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 4px;
}

/* Main grid */
.dv-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.dv-main--equal {
  grid-template-columns: 1fr 1fr;
}
.dv-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panel card */
.dv-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--app-shadow-soft);
}
.dv-panel--compact { padding: 16px 20px; }
.dv-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.dv-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--app-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.dv-panel-title i { color: var(--app-accent); }
.dv-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--app-accent-soft);
  color: var(--app-accent-2);
  font-size: 11px;
  font-weight: 700;
}
.dv-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-accent);
  text-decoration: none;
}
.dv-panel-link:hover { text-decoration: underline; }

/* Activity timeline */
.dv-timeline {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 2px solid var(--app-border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dv-timeline-item {
  position: relative;
  padding-bottom: 16px;
}
.dv-timeline-item:last-child { padding-bottom: 0; }
.dv-timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app-accent);
  border: 2px solid var(--app-surface);
  box-shadow: 0 0 0 2px var(--app-accent-soft);
}
.dv-timeline-card {
  background: var(--app-surface-2);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.dv-timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.dv-timeline-top strong { font-size: 13px; color: var(--app-text); }
.dv-timeline-time {
  font-size: 11px;
  color: var(--app-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.dv-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Chips */
.dv-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--app-accent-soft);
  color: var(--app-accent-2);
}
.dv-chip--muted {
  background: rgba(100, 116, 139, 0.1);
  color: var(--app-muted);
}
.dv-chip--subtle {
  background: transparent;
  color: var(--app-muted);
  padding: 2px 0;
}

/* Alert rows */
.dv-alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  background: var(--app-surface-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dv-alert-row:last-child { margin-bottom: 0; }
.dv-alert-row:hover { transform: translateX(3px); box-shadow: var(--app-shadow-soft); }
.dv-alert-row--warning { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.05); }
.dv-alert-row--danger  { border-color: rgba(239, 68, 68, 0.2);  background: rgba(239, 68, 68, 0.05); }
.dv-alert-row--ok      { border-color: rgba(34, 197, 94, 0.2);  background: rgba(34, 197, 94, 0.05); }
.dv-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--app-accent-soft);
  color: var(--app-accent);
}
.dv-alert-row--danger .dv-alert-icon { background: rgba(239, 68, 68, 0.1); color: var(--app-danger); }
.dv-alert-row--ok .dv-alert-icon     { background: rgba(34, 197, 94, 0.1); color: var(--app-success); }
.dv-alert-body { flex: 1; min-width: 0; }
.dv-alert-title { font-size: 13px; font-weight: 700; color: var(--app-text); }
.dv-alert-note  { font-size: 11px; color: var(--app-muted); margin-top: 2px; }
.dv-alert-count {
  font-size: 22px;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
  color: var(--app-text);
}
.dv-alert-count--danger  { color: var(--app-danger); }
.dv-alert-count--warning { color: var(--app-accent-2); }
.dv-alert-count--ok      { color: var(--app-success); }

/* Stat rows (payroll widget) */
.dv-stat-rows { display: flex; flex-direction: column; gap: 8px; }
.dv-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--app-border);
  font-size: 13px;
}
.dv-stat-row:last-child { border-bottom: 0; }
.dv-stat-label { color: var(--app-muted); font-size: 12px; }
.dv-stat-value { font-weight: 700; color: var(--app-text); }
.dv-stat-value.is-warning { color: var(--app-accent-2); }

/* Onboarding */
.dv-onboarding {
  background: linear-gradient(135deg, #fffbeb 0%, #fef9ec 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
}
html[data-theme="dark"] .dv-onboarding {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.18);
}
.dv-onboarding-head { margin-bottom: 18px; }
.dv-onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}
html[data-theme="dark"] .dv-onboarding-badge { color: #fcd34d; }
.dv-onboarding-head p { margin: 0; font-size: 13px; color: #78350f; }
html[data-theme="dark"] .dv-onboarding-head p { color: #fde68a; }

/* Shortcuts */
.dv-shortcuts { display: flex; flex-direction: column; gap: 8px; }
.dv-shortcut-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--app-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dv-shortcut-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  border-color: var(--app-accent);
}
.dv-shortcut-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.dv-shortcut-text { flex: 1; min-width: 0; }
.dv-shortcut-text strong { display: block; font-size: 13px; color: var(--app-text); }
.dv-shortcut-text span   { font-size: 11px; color: var(--app-muted); }
.dv-shortcut-arrow { color: var(--app-muted); font-size: 11px; }

/* Empty state */
.dv-empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--app-muted);
}
.dv-empty-icon { font-size: 32px; margin-bottom: 10px; display: block; opacity: 0.5; }
.dv-empty-state p { margin: 0; font-size: 13px; font-weight: 600; }
.dv-empty-state small { font-size: 11px; }

/* All-ok state */
.dv-all-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--app-success);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
  .dv-kpis { grid-template-columns: repeat(2, 1fr); }
  .dv-main { grid-template-columns: 1fr; }
  .dv-sidebar-panel { flex-direction: row; flex-wrap: wrap; }
  .dv-sidebar-panel .dv-panel { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
  .dv-kpis { grid-template-columns: 1fr 1fr; }
  .dv-header { padding: 20px; }
  .dv-greeting { font-size: 20px; }
  .dv-header-actions { display: none; }
  .dv-main--equal { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dv-kpis { grid-template-columns: 1fr; }
  .dv-kpis--two { grid-template-columns: 1fr; }
}
