:root {
  --bg: #f4f6f9;
  --ink: #1c2430;
  --muted: #5a6777;
  --card: #ffffff;
  --brand: #0a84ff;
  --brand-2: #5ac8fa;
  --border: #d9e1ec;
  --danger: #c23b22;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, #dfe8ff 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, #e6f7ff 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  min-height: 100vh;
}
.container {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 36px 0 56px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 20, 25, 0.08);
  border-radius: 18px;
  padding: 28px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.header input[type="search"] {
  width: min(280px, 40vw);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.title {
  font-size: 26px;
  margin: 0;
}
.muted { color: var(--muted); }
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-height: 90px;
  resize: vertical;
}
.input-group {
  position: relative;
}
.input-group input {
  padding-right: 44px;
}
.toggle-visibility {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.toggle-visibility:hover {
  color: var(--ink);
  border-color: #c1ccda;
}
button, .btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.btn.pill {
  border-radius: 999px;
  padding: 10px 18px;
}
.btn.subtle {
  background: #f0f3f7;
  color: var(--ink);
}
.btn.secondary { background: #2f3b4a; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.danger { background: var(--danger); }
.btn.success { background: #1f8b4c; }
.status-active {
  background: #6ccf93;
  color: #fff;
}
.status-inactive {
  background: #f08b8b;
  color: #fff;
}
.btn.success i,
.btn.danger i {
  color: #fff;
}
.btn.outline-blue {
  background: #eaf3ff;
  color: #0a5fcc;
  border: 1px solid #8bbcf2;
}
.btn.success.light {
  background: #e8f7ee;
  color: #1f8b4c;
  border: 1px solid #bfe6cf;
}
.btn.warning { background: #c23b22; }
.btn.dark {
  background: #111827;
  color: #ffffff;
}
.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  margin: 12px 0;
}
.error {
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffecec;
  border: 1px solid #f3b7b7;
  margin: 12px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table th { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.table-wrap {
  margin-top: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.06);
}
.table tbody tr:hover {
  background: #f7f9fc;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}
.modal-card {
  width: min(980px, 96vw);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e3e9f2;
  box-shadow: 0 30px 90px rgba(15, 20, 25, 0.15);
  padding: 24px;
}
.modal-card.scroll {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-card.scroll .table-wrap {
  overflow: auto;
  max-height: 55vh;
}
.modal-card.scroll .modal-body {
  overflow: auto;
  max-height: 60vh;
}
.file-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.file-input .file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: #1e3a8a;
  font-weight: 600;
  cursor: pointer;
}
.file-input .file-name {
  font-size: 12px;
  color: var(--muted);
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 60%, #eef4ff 100%);
  border: 1px solid #e3e9f2;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 28px 80px rgba(15, 20, 25, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: clamp(22px, 3.2vw, 36px);
  margin: 0 0 6px;
}
.hero-subtitle {
  color: var(--muted);
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.alert {
  background: #ffecec;
  color: #8a1e1e;
  border: 1px solid #f3b7b7;
  text-align: center;
}
.pill.success-light {
  background: #e8f7ee;
  color: #1f8b4c;
  border: 1px solid #bfe6cf;
}
.pill.danger-light {
  background: #ffecec;
  color: #c23b22;
  border: 1px solid #f3b7b7;
}
.pill.label {
  background: #f0f3f7;
  color: var(--ink);
  border: 1px solid #e3e9f2;
}
.task-box {
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.todo-box {
  background: #f2f4f7;
  border: 1px solid #e0e6ef;
  border-radius: 14px;
  padding: 12px;
  min-width: 220px;
}
.todo-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.todo-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}
.todo-box.full {
  width: 100%;
}
.todo-actions .pill {
  min-width: 180px;
  justify-content: center;
}
.todo-actions .pill.alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
}
.todo-actions .btn {
  min-width: 180px;
}
.glass-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.06);
}
.glass-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.glass-card p {
  margin: 0;
  font-size: 16px;
}

.profile-panel {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e3e9f2;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 24px 70px rgba(15, 20, 25, 0.07);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 32px;
}
.profile-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.profile-item label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile-item span {
  display: block;
  font-size: 16px;
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tabs-line {
  border-bottom: 2px solid #e3e9f2;
  gap: 8px;
  padding-left: 4px;
}
.tab-btn {
  border: 1px solid #dfe7f3;
  border-bottom: none;
  background: #ffffff;
  color: var(--muted);
  padding: 10px 16px 12px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}
.tab-btn.active {
  background: #eaf3ff;
  color: #1e40af;
  border-color: #93c5fd;
  top: 0;
}
.tab-panel {
  margin-top: 0;
}
.row-negative {
  background: #ffecec;
}

/* Laravel view compatibility layer */
.stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  min-width: 0;
}
.stack > .card {
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
h1, h2, h3 { margin: 0; }
.section-title-soft {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.profile-toggle-btn {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d6dde7;
  background: #eef2f6;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.profile-toggle-btn:hover {
  background: #e5ebf2;
  color: #475569;
}
.profile-toggle-btn i {
  font-size: 12px;
  line-height: 1;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hidden-block { display: none; }
.hidden-block.show { display: block; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.table-wrap table,
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid #eef2f7;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.ok {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  margin: 12px 0;
}
.err {
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffecec;
  border: 1px solid #f3b7b7;
  margin: 12px 0;
}
.btn-light {
  background: #f0f3f7;
  color: var(--ink);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 999;
}
.modal-backdrop.show { display: flex; }
.modal-head {
  position: relative;
  padding-right: 44px;
  margin-bottom: 10px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 32px;
}
.profile-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.profile-item label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile-minimal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e5edf8;
  border-radius: 14px;
  padding: 12px;
}
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.profile-minimal-meta h3 {
  margin: 0;
  font-size: 16px;
}
.profile-minimal-meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.profile-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #dbe5f3;
  background: #f4f7fb;
  color: #334155;
}
.profile-tag.ok-tag {
  background: #e8f7ee;
  color: #1f8b4c;
  border-color: #bfe6cf;
}
.profile-tag.off-tag {
  background: #ffecec;
  color: #c23b22;
  border-color: #f3b7b7;
}
.profile-sections {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.profile-section {
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.profile-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334155;
  margin: 0 0 8px;
}
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.profile-flat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-vac-row-form {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.profile-flat-grid .kv-item.span-2 {
  grid-column: span 2;
}
.profile-flat-grid .kv-item.span-4 {
  grid-column: 1 / -1;
}
.kv-item {
  border: 1px solid #eef2f7;
  background: #fbfcfe;
  border-radius: 10px;
  padding: 8px 10px;
}
.kv-item span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 4px;
}
.kv-item strong {
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  word-break: break-word;
}

.labor-month-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.labor-kpi {
  border: 1px solid #e5ebf3;
  background: #f8fbff;
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-height: 58px;
  align-items: flex-start;
}
.labor-kpi-worked {
  background: #f8fbff;
  border-color: #dce3ee;
}
.labor-kpi-regular-diurna {
  background: #ecfdf3;
  border-color: #bfe6cf;
}
.labor-kpi-regular-nocturna {
  background: #f3e8ff;
  border-color: #d8b4fe;
}
.labor-kpi-extra-diurna {
  background: #fef3c7;
  border-color: #fcd34d;
}
.labor-kpi-extra-nocturna {
  background: #dbeafe;
  border-color: #93c5fd;
}
.labor-kpi-descanso {
  background: #ffecec;
  border-color: #f1c4c4;
}
.labor-kpi-festivo {
  background: #ffedd5;
  border-color: #fdba74;
}
.labor-kpi-descanso-trabajado {
  background: #ffedd5;
  border-color: #fdba74;
}
.labor-kpi-descanso-dof,
.labor-kpi-dof {
  background: #ffedd5;
  border-color: #fdba74;
}
.labor-kpi-dof.reg-noc-dof {
  background: #decfff;
  border-color: #ab87ff;
}
.labor-kpi-dof.ext-diurna-dof {
  background: #fde68a;
  border-color: #facc15;
}
.labor-kpi-dof.ext-noc-dof {
  background: #bfdbfe;
  border-color: #60a5fa;
}
.labor-kpi-puntualidad {
  background: #fff7db;
  border-color: #f2de9d;
}
.labor-kpi-falta {
  background: #fff2f2;
  border-color: #f0c9c9;
}
.labor-kpi-incapacidad {
  background: #eaf4ff;
  border-color: #b8d6fb;
}
.labor-kpi span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
  line-height: 1.1;
  text-align: left;
}
.labor-kpi span i {
  font-size: 10px;
  line-height: 1;
  margin-bottom: 2px;
}
.labor-kpi span i.labor-kpi-icon-small {
  font-size: 8px;
}
.labor-kpi span i.labor-kpi-icon-xs {
  font-size: 7px;
  margin-right: 2px;
}
.labor-kpi span i.labor-kpi-icon-fa-xs {
  font-size: 10px;
  margin-right: 2px;
}
.labor-kpi span i.labor-kpi-icon-large {
  font-size: 12px;
}
.labor-kpi-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 1px;
  white-space: nowrap;
}
.labor-kpi-dof-icons span {
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.labor-kpi-dof-icons > span {
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.labor-kpi-dof-icons .labor-kpi-icon-group {
  justify-content: flex-start;
  width: auto;
}
.labor-kpi-dof-label {
  display: block;
  margin-top: 2px;
}
.labor-kpi strong {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
  margin-top: auto;
  line-height: 1;
  text-align: left;
}
.labor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 10px;
  color: #475569;
}
.labor-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: -1px;
}
.labor-days {
  display: grid;
  gap: 8px;
}
.labor-day-item {
  border: 1px solid #e5ebf3;
  background: #fbfdff;
  border-radius: 10px;
  padding: 10px;
}
.labor-day-item.is-incomplete {
  border-color: #f2d0d0;
  background: #fff6f6;
}
.labor-day-item.is-future {
  border-color: #e8ebf0;
  background: #f7f8fa;
  opacity: 0.88;
}
.labor-day-item.is-empty {
  border-color: #e5ebf3;
  background: #fcfdff;
}
.labor-day-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.labor-day-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.labor-day-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.labor-day-head strong {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.labor-day-head span {
  font-size: 11px;
  color: #475569;
}
.labor-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #64748b;
}
.labor-head-meta i {
  font-size: 11px;
  line-height: 1;
}
.labor-head-meta .labor-meta-in {
  color: #15803d !important;
}
.labor-head-meta .labor-meta-out {
  color: #b91c1c !important;
}
.labor-records-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  border: 1px solid #d9e1ec;
  background: #f5f8fc;
  color: #334155;
  align-self: center;
}
.labor-records-btn i {
  font-size: 14px;
  line-height: 1;
}
.labor-records-btn:hover {
  background: #eef3fa;
}
.editable-cell {
  cursor: pointer;
}
.editable-cell:hover {
  background: #f8fbff;
}
.card-labor-dia {
  order: 1;
  overflow: hidden;
}
.card-labor-empleado {
  order: 2;
  overflow: hidden;
}
.labor-day-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.labor-day-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.labor-day-col-timeline {
  min-width: 0;
}
.labor-day-col-summary {
  min-width: 0;
}
.labor-day-table th,
.labor-day-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.labor-day-table thead th {
  font-size: 8.5px;
  letter-spacing: 0.02em;
  padding: 7px 7px;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.1;
}
.labor-day-table tbody td {
  font-size: 10px;
  padding: 8px 8px;
}
.labor-day-table th:nth-child(1),
.labor-day-table td:nth-child(1) { width: 9%; }
.labor-day-table th:nth-child(2),
.labor-day-table td:nth-child(2) { width: 14%; }
.labor-day-table th:nth-child(3),
.labor-day-table td:nth-child(3) { width: 26%; }
.labor-day-table th:nth-child(4),
.labor-day-table td:nth-child(4) { width: 39%; }
.labor-day-table th:nth-child(5),
.labor-day-table td:nth-child(5) { width: 12%; }
.labor-day-table td:nth-child(1),
.labor-day-table td:nth-child(2) {
  font-size: 9px;
}
.labor-day-table .labor-day-axis {
  font-size: 8px;
  margin-bottom: 3px;
}
.labor-day-table .labor-day-timeline {
  height: 10px;
}
.labor-day-table .labor-day-summary {
  font-size: 10px;
  line-height: 1.2;
}
.labor-day-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 3px;
  font-size: 10.5px;
  color: #64748b;
}
.labor-day-meta i {
  font-size: 12px;
}
.labor-day-meta .labor-meta-in {
  color: #15803d !important;
}
.labor-day-meta .labor-meta-out {
  color: #b91c1c !important;
}
.labor-head-icon {
  font-size: 12px;
  line-height: 1;
  color: #5b6f8d;
}
.labor-add-row-btn i {
  font-size: 12px;
  line-height: 1;
}
.labor-add-row-btn,
.labor-records-btn {
  border-color: #d6deea !important;
  background: #f8fafc !important;
}
.labor-add-row-btn i,
.labor-records-btn i {
  color: #aeb8c7 !important;
}
.labor-add-row-btn:hover,
.labor-records-btn:hover {
  border-color: #c9d4e3 !important;
  background: #f1f5f9 !important;
}
.labor-punctuality-indicator,
.labor-punctuality-toggle {
  color: #b7c1d1 !important;
  border-color: #d6deea !important;
  background: #f8fafc !important;
}
.labor-punctuality-indicator i,
.labor-punctuality-toggle i {
  font-size: 10px !important;
}
.labor-punctuality-indicator.is-on,
.labor-punctuality-toggle.is-on {
  color: #d4a60b !important;
  border-color: #f2de9d !important;
  background: #fff7db !important;
}

.labor-absence-indicator,
.labor-absence-toggle {
  color: #a8b6c9 !important;
  border-color: #d6deea !important;
  background: #f8fafc !important;
}
.labor-absence-indicator i,
.labor-absence-toggle i {
  font-size: 11px !important;
  line-height: 1;
}
.labor-absence-indicator.is-on,
.labor-absence-toggle.is-on {
  color: #d46262 !important;
  border-color: #f0c9c9 !important;
  background: #fff2f2 !important;
}
.labor-absence-indicator.is-on i,
.labor-absence-toggle.is-on i {
  color: #d46262 !important;
}

.labor-disability-indicator,
.labor-disability-toggle {
  color: #a8b6c9 !important;
  border-color: #d6deea !important;
  background: #f8fafc !important;
}
.labor-disability-indicator i,
.labor-disability-toggle i {
  font-size: 11px !important;
  line-height: 1;
}
.labor-disability-indicator.is-on,
.labor-disability-toggle.is-on {
  color: #2c74c9 !important;
  border-color: #b8d6fb !important;
  background: #eaf4ff !important;
}
.labor-disability-indicator.is-on i,
.labor-disability-toggle.is-on i {
  color: #2c74c9 !important;
}
.labor-inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
.labor-day-tools {
  display: inline-grid;
  grid-template-columns: repeat(3, 26px);
  grid-auto-rows: 26px;
  align-items: center;
  justify-items: center;
  justify-content: start;
  width: auto;
  min-height: 56px;
  gap: 4px;
}
.labor-tool-slot {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.labor-tool-slot.is-empty {
  pointer-events: none;
}
.labor-tool-slot .labor-inline-form {
  display: inline-flex;
}
.labor-day-table td:last-child {
  vertical-align: top;
}
.labor-day-tools .icon-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border-radius: 999px;
}
.labor-day-tools .icon-btn i {
  font-size: 10px !important;
  line-height: 1;
}
.labor-absence-icon {
  font-size: 12px !important;
  line-height: 1;
}
.labor-disability-icon {
  font-size: 11px !important;
  line-height: 1;
}
/* In tools list, keep star button compact like neighboring tools buttons. */
.labor-day-table .labor-punctuality-toggle {
  min-width: 24px;
  min-height: 24px;
}
.labor-day-table .labor-punctuality-toggle i {
  font-size: 10px !important;
}
.labor-day-table .labor-absence-toggle {
  min-width: 24px;
  min-height: 24px;
}
.labor-day-table .labor-absence-toggle i {
  font-size: 11px !important;
  color: #a8b6c9 !important;
}
.labor-day-table .labor-absence-toggle.is-on i {
  color: #d46262 !important;
}
.labor-day-table .labor-disability-toggle {
  min-width: 24px;
  min-height: 24px;
}
.labor-day-table .labor-disability-toggle i {
  font-size: 11px !important;
  color: #8aa8cf !important;
}
.labor-day-table .labor-disability-toggle.is-on i {
  color: #2c74c9 !important;
}
.labor-day-table .labor-day-tools .labor-add-row-btn i,
.labor-day-table .labor-day-tools .labor-records-btn i {
  color: #94a3b8 !important;
  font-size: 11px !important;
}
.labor-day-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
  margin-bottom: 4px;
}
.labor-day-timeline {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #eef2f8;
  border: 1px solid #dce3ee;
  overflow: hidden;
}
.labor-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
}
.labor-day-summary {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.25;
  color: #334155;
}
.labor-summary-chips {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.labor-summary-chip {
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  background: #f8fbff;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #334155;
}
.labor-summary-chip em {
  font-style: normal;
  opacity: 0.85;
}
.labor-summary-chip strong {
  font-weight: 500;
}
.labor-summary-chip-worked { background: #f1f5f9; border-color: #dbe3ec; }
.labor-summary-chip-regular-diurna { background: #e9f9ef; border-color: #ccead8; }
.labor-summary-chip-regular-nocturna { background: #f1ebff; border-color: #dbd1ff; }
.labor-summary-chip-descanso,
.labor-summary-chip-pausas { background: #ffefef; border-color: #f4cccc; }
.labor-summary-chip-extra-diurna { background: #fff7df; border-color: #f2dfa2; }
.labor-summary-chip-extra-nocturna { background: #e7f2ff; border-color: #c7dcff; }
.labor-summary-chip-festivo { background: #fff0e2; border-color: #f2d1ac; }
.labor-summary-chip-descanso-trabajado { background: #fff0e2; border-color: #f2d1ac; }
.labor-summary-chip-regular-nocturna-dof { background: #efe7ff; border-color: #bda0ff; }
.labor-summary-chip-extra-diurna-dof { background: #fef3c7; border-color: #facc15; }
.labor-summary-chip-extra-nocturna-dof { background: #dbeafe; border-color: #60a5fa; }
.labor-breaks {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  color: #64748b;
}
.labor-breaks span {
  font-weight: 600;
  color: #475569;
}
.labor-breaks em {
  font-style: normal;
  border: 1px solid #dbe3ee;
  background: #f7fafc;
  color: #475569;
  border-radius: 999px;
  padding: 2px 7px;
}
.labor-weekly-wrap {
  margin-top: 10px;
}
.labor-weeks {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.labor-week-card {
  border: 1px solid #e3e9f2;
  background: #fff;
  padding: 12px;
}
.labor-week-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.labor-week-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: #64748b;
}
.labor-week-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.labor-week-kpis {
  margin-bottom: 10px;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
}
.labor-week-kpis .labor-kpi span {
  line-height: 1.15;
}
.labor-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fbff;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.labor-event-pill i {
  font-size: 11px;
  line-height: 1;
}
.labor-event-pill strong {
  font-size: 10px;
  font-weight: 700;
  color: inherit;
}
.labor-event-pill-puntualidad {
  background: #fff7db;
  border-color: #f2de9d;
  color: #8a6b00;
}
.labor-event-pill-falta {
  background: #fff2f2;
  border-color: #f0c9c9;
  color: #b42323;
}
.labor-event-pill-incapacidad {
  background: #eaf4ff;
  border-color: #b8d6fb;
  color: #1d4f91;
}
.labor-subtitle {
  margin: 0 0 6px;
  font-size: 11px;
  color: #334155;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.labor-weekly-table thead th,
.labor-weekly-table tbody td {
  font-size: 10px;
  padding: 8px 8px;
}
.labor-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}
.labor-flag.yes {
  background: #ffecec;
  border-color: #f1c4c4;
  color: #b42323;
}
.labor-flag.no {
  background: #ecfdf3;
  border-color: #bfe6cf;
  color: #166534;
}
.labor-flag i {
  margin-right: 6px;
}

.labor-regular-diurna { background: #86efac; }
.labor-extra-diurna { background: #fcd34d; }
.labor-regular-nocturna { background: #d8b4fe; }
.labor-extra-nocturna { background: #93c5fd; }
.labor-festivo { background: #fdba74; }
.labor-descanso-trabajado { background: #fdba74; }
.labor-regular-nocturna-dof { background: #ab87ff; }
.labor-extra-diurna-dof { background: #facc15; }
.labor-extra-nocturna-dof { background: #60a5fa; }
.labor-descanso { background: #fecaca; }
.labor-vacaciones {
  background: #374151;
  opacity: 0.55;
  z-index: 1;
}
.labor-day-item.is-holiday {
  background: #f2f8ff;
  border-color: #c7ddf8;
}
.labor-day-item.is-holiday .labor-day-head {
  border-bottom-color: #d6e5f8;
}
.labor-day-item.is-holiday .labor-day-head strong {
  color: #1d4f91;
}
.labor-holiday-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4f91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.labor-vacation-note {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #374151;
}
.labor-vacation-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.manual-attendance-rows {
  display: grid;
  gap: 8px;
}
.manual-full-row {
  grid-column: 1 / -1 !important;
}
.manual-attendance-row {
  display: grid;
  grid-template-columns: 140px 150px 160px 140px minmax(120px, 1fr) 40px;
  gap: 8px;
  align-items: center;
}
.manual-attendance-row .icon-btn {
  align-self: center;
}
}

.contract-card {
  border: 1px solid #e5ebf3;
  background: #ffffff;
  border-radius: 0;
  padding: 12px;
}
.contract-card-active {
  background: #ffffff;
}
.contract-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.contract-card-head strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.contract-card-head span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
}
.contract-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 0;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.contract-pill.is-on {
  background: #e8f7ee;
  border-color: #bfe6cf;
  color: #166534;
}
.contract-pill.is-off {
  background: #ffecec;
  border-color: #f3b7b7;
  color: #991b1b;
}
.contract-kv-grid {
  margin-bottom: 10px;
}
.contract-conditions-wrap {
  margin-top: 10px;
}
.contract-conditions-wrap .users-table thead th {
  background: #f8fbff;
  border-top: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
}
.contract-conditions-wrap .users-table thead th:first-child {
  border-left: 1px solid #e3e9f2;
}
.contract-conditions-wrap .users-table thead th:last-child {
  border-right: 1px solid #e3e9f2;
}
.contract-history-stack {
  display: grid;
  gap: 10px;
}
.contract-pdf-btn {
  min-height: 30px;
  padding: 0 12px;
}
.contract-admin-table .users-actions {
  justify-content: flex-start;
}
.catalog-save-btn {
  padding: 6px 10px;
  font-size: 10px;
  min-height: 28px;
}
.contract-mobile-table td[data-label]::before {
  display: none;
}

/* Dashboard header (minimal / Apple-like) */
.dash-head {
  margin-bottom: 22px;
  position: relative;
  border-radius: 22px;
  border: 1px solid #e2e8f2;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.85));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  display: grid;
  gap: 18px;
}
.dash-head-main h1 {
  margin: 28px 0 4px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tools-strip {
  margin-top: 12px;
  width: 100%;
  background: #f1f4f8;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  padding: 10px 12px 12px;
}
.head-panels {
  display: grid;
  gap: 10px;
}
.head-panels .tools-strip {
  margin-top: 0;
}
.tools-title {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.tools-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eaf3ff;
  color: #1e40af;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tools-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.tools-btn.tools-btn-danger {
  background: #ffecec;
  color: #b91c1c;
  border-color: #f3b7b7;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
}
.tools-btn.tools-btn-danger:hover {
  background: #ffdede;
  border-color: #f2a9a9;
}
.tools-btn.tools-btn-success {
  background: #e8f7ee;
  color: #166534;
  border-color: #bfe6cf;
}
.admin-calc-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-calc-balance-btn {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vac-upload-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.contract-upload-form {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.vac-upload-input {
  display: none;
}
.vac-upload-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.vac-upload-pick:hover {
  background: #eef3f8;
  border-color: #c2cfde;
}
.vac-upload-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: #64748b;
}
.vac-pdf-view-btn {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vac-pdf-frame-wrap {
  width: 100%;
  min-height: 70vh;
}
.vac-pdf-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
}
.admin-vac-legend {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: 0.05em;
  font-weight: 500;
  border: 1px solid transparent;
}
.legend-aprobadas {
  background: #f2fbf5;
  color: #2f7a48;
  border-color: #d8efe1;
}
.legend-disfrutadas {
  background: #fff4f4;
  color: #8f3f3f;
  border-color: #f2dada;
}
.vacaciones-calendar {
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #fcfdff;
  padding: 8px;
}
.vacaciones-calendar .fc .fc-toolbar-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #334155;
}
.vacaciones-calendar .fc .fc-button {
  border-radius: 999px;
  border: 1px solid #dde5f0;
  background: #f6f8fb;
  color: #475569;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 9px;
}
.vacaciones-calendar .fc .fc-button:hover,
.vacaciones-calendar .fc .fc-button:focus {
  background: #eef2f7;
  border-color: #cfd9e6;
}
.vacaciones-calendar .fc-theme-standard td,
.vacaciones-calendar .fc-theme-standard th {
  border-color: #edf1f6;
}
.vacaciones-calendar .fc .fc-col-header-cell-cushion {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.vacaciones-calendar .fc .fc-daygrid-day-number {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}
.vacaciones-calendar .fc .fc-day-today {
  background: #f8fbff !important;
}
.vacaciones-calendar .fc .fc-daygrid-day-frame {
  min-height: 82px;
}
.vacaciones-calendar .fc .fc-event {
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  padding: 1px 3px;
  border-width: 1px;
  opacity: 0.93;
}
.tools-btn.tools-btn-compact-bold {
  font-size: 11px;
  font-weight: 700;
  min-height: 34px;
  padding: 9px 14px;
  background: #ffecec;
  color: #b91c1c;
  border-color: #f3b7b7;
}
.tools-btn.tools-btn-compact-bold:hover {
  background: #ffdede;
  border-color: #f2a9a9;
}
.create-user-btn {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tools-empty {
  font-size: 12px;
  color: #64748b;
}
.select-pro {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: 1px solid #d5ddea;
  background-color: #f8fbff;
  color: #1f2937;
  border-radius: 10px;
  padding: 10px 38px 10px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%),
    linear-gradient(to right, #e5ebf3, #e5ebf3);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    calc(100% - 30px) 50%;
  background-size:
    5px 5px,
    5px 5px,
    1px 18px;
  background-repeat: no-repeat;
}
.select-pro:hover {
  border-color: #becada;
  background-color: #f2f6fc;
}
.select-pro:focus {
  outline: none;
  border-color: #8bb3f4;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
  background-color: #ffffff;
}
.dash-head-main p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  line-height: 1;
}
.dash-eyebrow.eyebrow-ok {
  background: #e8f7ee;
  color: #166534;
  border-color: #bfe6cf;
}
.dash-eyebrow.eyebrow-off {
  background: #ffecec;
  color: #991b1b;
  border-color: #f3b7b7;
}
.dash-meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
}
.dash-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-btn {
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dash-btn:hover {
  border-color: #c8d5e6;
  background: #f8fbff;
}
.dash-btn.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}
.dash-btn-note {
  margin-left: 6px;
  color: #64748b;
  font-weight: 500;
  font-size: 12px;
}
.dash-top-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
}
.dash-pass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d8dee8;
  background: #f1f4f8;
  color: #334155;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.dash-pass-btn:hover {
  background: #e8edf4;
}
.dash-logout-form {
  margin: 0;
}
.dash-icon-logout {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dash-icon-logout:hover {
  background: #000000;
  transform: translateY(-1px);
}
.dash-icon-logout i {
  font-size: 18px;
  line-height: 1;
}

.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.users-table thead th {
  background: #f8fbff;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid #e3e9f2;
  padding: 10px 12px;
}
.users-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  color: #1f2937;
}
.users-table tbody tr:last-child td {
  border-bottom: none;
}
.users-table tbody tr:hover {
  background: #fafcff;
}
.vac-mobile-label {
  display: inline-block;
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.vac-mobile-value {
  display: block;
  min-width: 0;
}

#aprobacion-vacaciones-content .vac-mobile-label {
  display: inline-block !important;
  min-width: 110px;
  background: transparent;
  color: #64748b;
  font-weight: 600;
}
#aprobacion-vacaciones-content .vac-mobile-value {
  display: inline-block;
  min-width: 0;
}
@media (min-width: 901px) {
  #aprobacion-vacaciones-content .vac-mobile-label {
    display: none;
  }
}
@media (max-width: 900px) {
  #aprobacion-vacaciones-content .vac-mobile-label {
    display: inline-block !important;
  }
}
.users-actions {
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.icon-btn {
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.icon-btn:hover {
  background: #eef3f8;
  border-color: #c2cfde;
}
.icon-btn i {
  font-size: 12px;
  line-height: 1;
}
.pdf-icon-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: #f3b7b7;
  background: #fff4f4;
  color: #991b1b;
}
.pdf-icon-btn:hover {
  background: #ffecec;
  border-color: #eaa9a9;
}
.pdf-icon-btn i {
  font-size: 14px;
}
.star-readonly {
  display: inline-flex;
  gap: 2px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}
.star-readonly .is-on {
  color: #f59e0b;
}
.skills-global-score {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fbff;
}
.skills-global-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}
.skills-global-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.skills-global-number {
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1;
}
.skills-global-over {
  font-size: 12px;
  color: #64748b;
}
.skills-global-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.skills-global-stars-base {
  color: #d7dee8;
}
.skills-global-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f59e0b;
}
.skills-global-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}
.star-input {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.star-btn,
.star-clear {
  border: 1px solid #d6deea;
  background: #f8fafc;
  color: #94a3b8;
  border-radius: 999px;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  cursor: pointer;
  line-height: 1;
  font-size: 12px;
}
.star-btn:hover,
.star-clear:hover {
  background: #eef3f8;
}
.star-btn.is-on {
  color: #f59e0b;
  border-color: #f6d28b;
  background: #fff8eb;
}
.star-value {
  font-size: 11px;
  color: #64748b;
}
.status-switch {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.status-switch.on {
  background: #e8f7ee;
  color: #166534;
  border-color: #bfe6cf;
}
.status-switch.off {
  background: #ffecec;
  color: #991b1b;
  border-color: #f3b7b7;
}
.vac-approve-btn {
  background: #e8f7ee;
  color: #166534;
  border-color: #bfe6cf;
}
.vac-approve-btn:hover {
  background: #d9f2e5;
}
.vac-reject-btn {
  background: #ffecec;
  color: #991b1b;
  border-color: #f3b7b7;
}
.vac-reject-btn:hover {
  background: #ffdede;
}
.ledger-row-disfrutadas td {
  background: #ffecec;
}
.ledger-row-aprobadas td {
  background: #e8f7ee;
}
.users-tabs {
  margin-bottom: 0;
  border-bottom: 1px solid #e3e9f2;
  padding-left: 0;
  width: 100%;
}
.users-tabs .tab-btn {
  top: 0;
  text-decoration: none;
}
.users-tabs .tab-btn:not(.active) {
  border-bottom: 1px solid #e3e9f2;
}
.users-tabs .tab-btn.active {
  margin-bottom: -1px;
  border-bottom-color: #ffffff;
}
.admin-labor-tabs .tab-btn {
  padding: 8px 10px;
  font-size: 12px;
  min-height: 34px;
}
.users-search-input {
  width: min(260px, 100%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
}
.users-search-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
  background: #ffffff;
}
.users-tab-panel {
  display: none;
  margin-top: 0;
}
.users-tab-panel.active {
  display: block;
}
.users-tab-panel .users-table {
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.tab-panel .users-table {
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.flat-tab-panel .users-table {
  border-top: none !important;
  border-radius: 0 !important;
}
.users-pagination-wrap {
  margin-top: 12px;
}
.users-pagination-wrap nav {
  display: flex;
  justify-content: flex-end;
}
.users-pagination-wrap .pagination {
  margin: 0;
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.users-pagination-wrap .page-link,
.users-pagination-wrap .page-item span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.users-pagination-wrap .page-item.active .page-link {
  background: #eaf3ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.users-pagination-wrap .page-item.disabled span,
.users-pagination-wrap .page-item.disabled .page-link {
  opacity: 0.6;
  pointer-events: none;
}
.users-pagination-wrap nav > .flex.gap-2.items-center.justify-between.sm\:hidden {
  display: none;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between > div:first-child {
  margin-right: auto;
  color: #64748b;
  font-size: 12px;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between > div:last-child > .inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between a,
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between span[aria-hidden="true"],
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between span[aria-current="page"] > span,
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between span[aria-disabled="true"] > span,
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between > div:last-child > .inline-flex > span > span {
  min-width: 32px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between span[aria-current="page"] > span {
  background: #eaf3ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.users-pagination-wrap nav > .hidden.sm\:flex-1.sm\:flex.sm\:gap-2.sm\:items-center.sm\:justify-between span[aria-disabled="true"] > span {
  opacity: 0.6;
}
.users-pagination-wrap nav svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: block;
  flex: 0 0 auto;
}
.modal-scroll {
  width: min(980px, calc(100vw - 80px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 26px;
}
.modal-close-x {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid #d5ddea;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close-x:hover {
  background: #eef2f7;
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .container { width: min(100%, 94vw); padding-top: 20px; }
  .card { padding: 16px; border-radius: 14px; }
  .dash-head { border-radius: 16px; padding: 18px; gap: 14px; }
  .dash-head-main h1 { font-size: 20px; margin-top: 8px; }
  .dash-top-controls {
    position: static;
    margin-bottom: 6px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .dash-back-btn { position: static; width: 100%; margin-bottom: 10px; }
  .tools-strip { padding: 10px; }
  .tools-actions {
    width: 100%;
    gap: 6px;
  }
  .tools-actions .tools-btn {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 8px 10px;
  }
  .tools-actions .tools-btn.tools-btn-compact-bold {
    width: 100%;
    font-size: 10px;
    padding: 8px 10px;
    min-height: 32px;
  }
  .dash-pass-btn {
    width: auto;
    font-size: 11px;
    padding: 7px 10px;
  }
  .dash-icon-logout {
    min-height: 32px;
    padding: 7px 10px;
  }
  .dash-btn { width: 100%; text-align: left; }
  .card-head {
    align-items: flex-start;
    gap: 10px;
  }
  .section-title-soft {
    font-size: 16px;
  }
  .profile-flat-grid { grid-template-columns: 1fr; }
  .admin-vac-row-form { grid-template-columns: 1fr; }
  .profile-flat-grid .kv-item.span-2 { grid-column: auto; }
  .profile-minimal-header { grid-template-columns: 1fr; }
  .profile-tags { justify-content: flex-start; }
  .tabs {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .tabs .tab-btn {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 8px 10px 9px;
    letter-spacing: 0.04em;
  }
  #vacaciones-content .row {
    width: 100%;
    gap: 6px;
  }
  #vacaciones-content .row .tools-btn {
    width: 100%;
  }
  #condiciones-laborales-content .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #condiciones-laborales-content .tabs .tab-btn {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 8px 10px 9px;
  }
  #condiciones-laborales-content .contract-card {
    padding: 10px;
  }
  #condiciones-laborales-content .contract-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  #condiciones-laborales-content .contract-kv-grid {
    grid-template-columns: 1fr;
  }
  #condiciones-laborales-content .users-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  #condiciones-laborales-content .users-table thead th,
  #condiciones-laborales-content .users-table tbody td {
    font-size: 10px;
    padding: 8px;
  }
  .contract-mobile-table {
    display: block;
    width: 100%;
    overflow: hidden !important;
    white-space: normal !important;
    border: none;
    background: transparent;
  }
  .contract-mobile-table thead {
    display: none;
  }
  .contract-mobile-table tbody,
  .contract-mobile-table tr,
  .contract-mobile-table td {
    display: block;
    width: 100%;
  }
  .contract-mobile-table tr {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .contract-mobile-table td {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 8px;
    align-items: start;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .contract-mobile-table td:last-child {
    border-bottom: none;
  }
  .contract-mobile-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  .contract-mobile-table .tools-btn,
  .contract-mobile-table .icon-btn,
  .contract-mobile-table input,
  .contract-mobile-table select {
    max-width: 100%;
  }
  .contract-mobile-table .users-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #catalogo-condiciones-content .users-table {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: normal;
  }
  #catalogo-condiciones-content .users-table thead {
    display: none;
  }
  #catalogo-condiciones-content .users-table tbody,
  #catalogo-condiciones-content .users-table tr,
  #catalogo-condiciones-content .users-table td {
    display: block;
    width: 100%;
  }
  #catalogo-condiciones-content .users-table tr {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  #catalogo-condiciones-content .users-table form {
    display: block;
  }
  #catalogo-condiciones-content .users-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
  }
  #catalogo-condiciones-content .users-table td:last-child {
    border-bottom: none;
  }
  #catalogo-condiciones-content .users-table input,
  #catalogo-condiciones-content .users-table select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #catalogo-condiciones-content .users-table .tools-btn {
    width: 100%;
  }
  .contract-admin-table .icon-btn {
    min-width: 28px;
    min-height: 28px;
  }
  #contratos-content .contract-pill,
  #catalogo-condiciones-content .contract-pill {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }
  #modal-create-contract .profile-flat-grid,
  [id^=\"modal-edit-contract-\"] .profile-flat-grid {
    grid-template-columns: 1fr;
  }
  [id^=\"modal-contract-conditions-\"] .users-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  [id^=\"modal-contract-conditions-\"] .users-table thead th,
  [id^=\"modal-contract-conditions-\"] .users-table tbody td {
    font-size: 10px;
    padding: 8px;
  }
  [id^=\"modal-contract-conditions-\"] .kv-grid {
    grid-template-columns: 1fr;
  }
  [id^=\"modal-contract-conditions-\"] .users-table {
    overflow: hidden;
    white-space: normal;
  }
  [id^=\"modal-contract-conditions-\"] .users-table thead {
    display: none;
  }
  [id^=\"modal-contract-conditions-\"] .users-table tbody,
  [id^=\"modal-contract-conditions-\"] .users-table tr,
  [id^=\"modal-contract-conditions-\"] .users-table td {
    display: block;
    width: 100%;
  }
  [id^=\"modal-contract-conditions-\"] .users-table tr {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  [id^=\"modal-contract-conditions-\"] .users-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
  }
  [id^=\"modal-contract-conditions-\"] .users-table td:last-child {
    border-bottom: none;
  }
  [id^=\"modal-contract-conditions-\"] .users-table form {
    display: block;
  }
  [id^=\"modal-contract-conditions-\"] .users-table input,
  [id^=\"modal-contract-conditions-\"] .users-table select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  [id^=\"modal-contract-conditions-\"] .users-actions {
    width: 100%;
  }
  [id^=\"modal-contract-conditions-\"] .users-actions form {
    flex: 1 1 auto;
  }
  [id^=\"modal-contract-conditions-\"] .users-actions .icon-btn {
    width: 100%;
  }
  #modal-create-contract .row .tools-btn,
  #modal-create-catalog .row .tools-btn,
  [id^=\"modal-edit-contract-\"] .row .tools-btn {
    width: 100%;
  }
  #vacaciones-content .tools-btn.tools-btn-success {
    width: 100%;
    text-align: center;
  }
  #vacaciones-content .tabs {
    width: 100%;
  }
  #vacaciones-content .flat-tab-panel {
    width: 100%;
    overflow: hidden;
  }
  #vacaciones-content .users-table {
    width: 100%;
    max-width: 100%;
    display: table;
    table-layout: fixed;
    white-space: normal;
  }
  #vacaciones-content .users-table thead th,
  #vacaciones-content .users-table tbody td {
    font-size: 10px;
    padding: 8px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
  }
  #vacaciones-content .users-table thead th {
    line-height: 1.2;
  }
  #vacaciones-content .users-table tbody td .tools-btn {
    width: 100%;
    min-width: 0;
  }
  #calculo-laboral-content {
    width: 100%;
    min-width: 0;
  }
  #calculo-laboral-content .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  #calculo-laboral-content .tabs .tab-btn {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 8px 10px 9px;
  }
  #calculo-laboral-content .flat-tab-panel {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  #calculo-laboral-content .labor-month-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  #calculo-laboral-content .labor-kpi {
    min-width: 0;
    padding: 8px 9px;
  }
  #calculo-laboral-content .labor-kpi span {
    font-size: 9px;
    line-height: 1.25;
  }
  #calculo-laboral-content .labor-kpi strong {
    font-size: 12px;
  }
  #calculo-laboral-content .labor-legend {
    gap: 8px;
    font-size: 9px;
    line-height: 1.35;
  }
  #calculo-laboral-content .labor-week-card {
    padding: 10px;
  }
  #calculo-laboral-content .labor-week-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  #calculo-laboral-content .labor-week-flags {
    justify-content: flex-start;
  }
  #calculo-laboral-content .labor-week-note {
    font-size: 10px;
    line-height: 1.35;
  }
  #calculo-laboral-content .labor-weekly-wrap {
    overflow: hidden;
  }
  #calculo-laboral-content .labor-weekly-table,
  #calculo-laboral-content .labor-weekly-table tbody,
  #calculo-laboral-content .labor-weekly-table tr,
  #calculo-laboral-content .labor-weekly-table td {
    display: block;
    width: 100%;
  }
  #calculo-laboral-content .labor-weekly-table thead {
    display: none;
  }
  #calculo-laboral-content .labor-weekly-table tr {
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #fbfdff;
    margin-bottom: 8px;
    overflow: hidden;
  }
  #calculo-laboral-content .labor-weekly-table td {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: 8px;
    padding: 8px 10px;
    font-size: 10px;
    white-space: normal;
    border-bottom: 1px solid #eef2f7;
  }
  #calculo-laboral-content .labor-weekly-table td:last-child {
    border-bottom: none;
  }
  #calculo-laboral-content .labor-weekly-table td:nth-child(1)::before {
    content: "Semana";
  }
  #calculo-laboral-content .labor-weekly-table td:nth-child(2)::before {
    content: "Dias completos";
  }
  #calculo-laboral-content .labor-weekly-table td:nth-child(3)::before {
    content: "Dias con marcas";
  }
  #calculo-laboral-content .labor-weekly-table td:nth-child(4)::before {
    content: "Descanso no tomado";
  }
  #calculo-laboral-content .labor-weekly-table td:nth-child(5)::before {
    content: "Dia descanso trabajado";
  }
  #calculo-laboral-content .labor-weekly-table td::before {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  #calculo-laboral-content .labor-days {
    gap: 10px;
  }
  #calculo-laboral-content .labor-day-item {
    padding: 10px 9px;
    border-radius: 12px;
  }
  #calculo-laboral-content .labor-day-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  #calculo-laboral-content .labor-day-head strong {
    font-size: 11px;
    line-height: 1.3;
  }
  #calculo-laboral-content .labor-day-head span {
    font-size: 10px;
    line-height: 1.35;
  }
  #calculo-laboral-content .labor-day-axis {
    font-size: 8px;
    margin-bottom: 5px;
  }
  #calculo-laboral-content .labor-day-timeline {
    height: 12px;
  }
  #calculo-laboral-content .labor-day-summary {
    font-size: 10px;
    line-height: 1.45;
  }
  #calculo-laboral-content .labor-breaks {
    gap: 4px;
    font-size: 9px;
  }
  #calculo-laboral-content .labor-breaks em {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  #registrar-vacacion-content .admin-vac-row-form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
  }
  #registrar-vacacion-content .admin-vac-row-form .kv-item {
    min-width: 0;
    width: 100%;
  }
  #registrar-vacacion-content .admin-vac-row-form .kv-item input,
  #registrar-vacacion-content .admin-vac-row-form .kv-item select {
    min-width: 0;
    max-width: 100%;
  }
  #registrar-vacacion-content .admin-vac-row-form .row {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
  }
  #registrar-vacacion-content .row .tools-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }
  #aprobacion-vacaciones-content .tabs {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }
  #aprobacion-vacaciones-content .tabs .tab-btn {
    flex: 1 1 calc(50% - 6px);
    font-size: 9px;
    padding: 7px 8px 8px;
    text-align: center;
  }
  #aprobacion-vacaciones-content .tab-panel {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  #aprobacion-vacaciones-content .users-table {
    display: block;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    white-space: normal;
  }
  #aprobacion-vacaciones-content .users-table thead {
    display: none;
  }
  #aprobacion-vacaciones-content .users-table td {
    text-align: left;
  }
  #aprobacion-vacaciones-content .users-table tbody,
  #aprobacion-vacaciones-content .users-table tr,
  #aprobacion-vacaciones-content .users-table td {
    display: block;
    width: 100%;
  }
  #aprobacion-vacaciones-content .users-table tr {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  #aprobacion-vacaciones-content .users-table td {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left !important;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
    background: transparent;
  }
  #aprobacion-vacaciones-content .users-table td:last-child {
    border-bottom: none;
  }
  #aprobacion-vacaciones-content .users-table td::before {
    content: none;
  }
  #aprobacion-vacaciones-content .vac-mobile-label {
    display: inline-block;
    min-width: 110px;
    visibility: visible;
    opacity: 1;
  }
  #aprobacion-vacaciones-content .vac-mobile-value {
    display: inline-block;
    flex: 1;
    min-width: 0;
  }
  #aprobacion-vacaciones-content .users-table .users-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
  }
  #aprobacion-vacaciones-content .users-table thead th,
  #aprobacion-vacaciones-content .users-table tbody td {
    font-size: 10px;
    padding: 8px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
  }
  #aprobacion-vacaciones-content .users-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  #aprobacion-vacaciones-content .vac-upload-form {
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }
  #aprobacion-vacaciones-content .vac-upload-name {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #aprobacion-vacaciones-content .admin-calc-balance-btn {
    min-width: 36px;
    text-align: center;
    padding: 4px 8px;
  }
  #registrar-acta-content .profile-flat-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
  }
  #registrar-acta-content .profile-flat-grid .kv-item,
  #registrar-acta-content .profile-flat-grid .kv-item.span-2,
  #registrar-acta-content .profile-flat-grid .kv-item.span-4 {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }
  #registrar-acta-content .profile-flat-grid .kv-item input,
  #registrar-acta-content .profile-flat-grid .kv-item select,
  #registrar-acta-content .profile-flat-grid .kv-item textarea {
    min-width: 0;
    max-width: 100%;
  }
  #registrar-acta-content .row {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
  }
  #registrar-acta-content .row .tools-btn {
    width: 100%;
    max-width: 100%;
  }
  #descargos-content .tabs,
  #actas-content .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #descargos-content .tabs .tab-btn,
  #actas-content .tabs .tab-btn {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 8px 10px 9px;
  }
  #descargos-content .tab-panel,
  #actas-content .tab-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  #descargos-content .users-table,
  #actas-content .users-table {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  #descargos-content .users-table thead,
  #actas-content .users-table thead {
    display: none;
  }
  #descargos-content .users-table tbody,
  #descargos-content .users-table tr,
  #descargos-content .users-table td,
  #actas-content .users-table tbody,
  #actas-content .users-table tr,
  #actas-content .users-table td {
    display: block;
    width: 100%;
  }
  #descargos-content .users-table tr,
  #actas-content .users-table tr {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  #descargos-content .users-table td,
  #actas-content .users-table td {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 8px;
    align-items: start;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
  }
  #descargos-content .users-table td:last-child,
  #actas-content .users-table td:last-child {
    border-bottom: none;
  }
  #descargos-content .users-table td::before,
  #actas-content .users-table td::before {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(1)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(1)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(1)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(1)::before {
    content: "Fecha";
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(2)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(2)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(2)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(2)::before {
    content: "Tipo";
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(3)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(3)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(3)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(3)::before {
    content: "Quien impone";
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(4)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(4)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(4)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(4)::before {
    content: "Quien aprueba";
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(5)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(5)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(5)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(5)::before {
    content: "Status";
  }
  #descargos-content #tab-des-impuestas .users-table td:nth-child(6)::before,
  #descargos-content #tab-des-cerradas .users-table td:nth-child(6)::before,
  #actas-content #tab-des-impuestas .users-table td:nth-child(6)::before,
  #actas-content #tab-des-cerradas .users-table td:nth-child(6)::before {
    content: "Acciones";
  }
  #descargos-content .users-actions,
  #actas-content .users-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  #descargos-content .vac-upload-form,
  #actas-content .vac-upload-form {
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
  }
  #descargos-content .vac-upload-name,
  #actas-content .vac-upload-name {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #descargos-content .users-table .tools-btn,
  #descargos-content .users-table .icon-btn,
  #actas-content .users-table .tools-btn,
  #actas-content .users-table .icon-btn {
    width: fit-content;
    min-width: 34px;
  }
  #modal-replica .modal-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  #modal-replica .profile-flat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #modal-replica .profile-flat-grid .kv-item,
  #modal-replica .profile-flat-grid .kv-item.span-4 {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }
  #modal-replica textarea {
    min-height: 120px;
    font-size: 16px;
  }
  #modal-replica .row {
    grid-column: 1 / -1 !important;
    width: 100%;
  }
  #modal-replica .row .tools-btn {
    width: 100%;
  }
  #calendar-vacaciones-content .vacaciones-calendar {
    padding: 6px;
  }
  .users-search-input { width: 100%; }
  .users-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .vac-upload-form {
    flex-wrap: wrap;
    gap: 6px;
  }
  .vac-upload-name {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .vacaciones-calendar .fc .fc-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vacaciones-calendar .fc .fc-toolbar-title {
    font-size: 13px;
  }
  .vacaciones-calendar .fc .fc-daygrid-day-frame {
    min-height: 64px;
  }
  .vacaciones-calendar .fc .fc-col-header-cell-cushion,
  .vacaciones-calendar .fc .fc-daygrid-day-number {
    font-size: 10px;
  }
  .users-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .users-table thead th,
  .users-table tbody td {
    padding: 9px 10px;
    font-size: 10px;
  }
  .admin-users-table {
    display: block;
    border: none;
    background: transparent;
    white-space: normal;
  }
  .admin-users-table thead {
    display: none;
  }
  .admin-users-table tbody,
  .admin-users-table tr.user-row,
  .admin-users-table td {
    display: block;
    width: 100%;
  }
  .admin-users-table th,
  .admin-users-table td {
    width: auto !important;
    max-width: none !important;
  }
  .admin-users-table tr.user-row {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .admin-users-table tr.user-row td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    align-items: start;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
    width: 100%;
    min-width: 0;
  }
  .admin-users-table tr.user-row td:last-child {
    border-bottom: none;
  }
  .admin-users-table tr.user-row td::before {
    content: attr(data-label);
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  .admin-users-table .users-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-users-table .status-switch {
    min-height: 26px;
    font-size: 10px;
    padding: 0 8px;
  }
  .admin-users-table .users-no-match td::before {
    content: '';
  }
  .modal-backdrop { padding: 14px; }
  .modal-scroll {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 16px;
  }
  .modal-card {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 16px;
    border-radius: 14px;
  }
  #modal-vacacion .modal-card,
  #modal-calculo-vacaciones .modal-card,
  #modal-vacaciones-ledger .modal-card,
  #modal-vacaciones-pdf .modal-card,
  #modal-vacaciones-pendientes .modal-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  #modal-calculo-vacaciones .kv-grid,
  #modal-vacaciones-ledger .kv-grid {
    grid-template-columns: 1fr;
  }
  #modal-calculo-vacaciones .users-table,
  #modal-vacaciones-ledger .users-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  #modal-calculo-vacaciones .users-table thead th,
  #modal-calculo-vacaciones .users-table tbody td,
  #modal-vacaciones-ledger .users-table thead th,
  #modal-vacaciones-ledger .users-table tbody td {
    font-size: 10px;
    padding: 8px 8px;
    white-space: nowrap;
  }
  #modal-testimonios-pendientes .modal-card {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  #modal-vacaciones-pendientes .users-table,
  #modal-testimonios-pendientes .users-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  #modal-vacaciones-pendientes .users-table thead th,
  #modal-vacaciones-pendientes .users-table tbody td,
  #modal-testimonios-pendientes .users-table thead th,
  #modal-testimonios-pendientes .users-table tbody td {
    font-size: 10px;
    padding: 8px 8px;
    white-space: nowrap;
    vertical-align: top;
  }
  #modal-vacaciones-pendientes .users-actions,
  #modal-testimonios-pendientes .users-actions {
    flex-wrap: nowrap;
    gap: 4px;
  }
  #modal-testimonios-pendientes .vac-upload-form {
    flex-wrap: nowrap;
    align-items: center;
  }
  #modal-testimonios-pendientes .vac-upload-name {
    max-width: 84px;
    flex: 0 0 auto;
  }
  #modal-testimonios-pendientes .vac-upload-pick {
    padding: 4px 8px;
    font-size: 9px;
  }
  #modal-vacacion input,
  #modal-vacacion select,
  #modal-vacacion textarea {
    font-size: 16px;
  }
  .modal-head h3 {
    font-size: 15px;
  }
  .vac-pdf-frame-wrap {
    min-height: 58vh;
  }
  .vac-pdf-frame {
    height: 58vh;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, 96vw);
    padding-top: 14px;
    padding-bottom: 24px;
  }
  .card {
    padding: 12px;
  }
  .dash-head {
    padding: 12px;
    gap: 10px;
  }
  .dash-head-main h1 {
    font-size: 18px;
  }
  .dash-top-controls {
    gap: 6px;
  }
  .dash-eyebrow {
    font-size: 10px;
    padding: 6px 9px;
  }
  .tools-title {
    font-size: 9px;
  }
  #calculo-laboral-content .tabs .tab-btn {
    font-size: 9px;
    padding: 7px 8px 8px;
  }
  #calculo-laboral-content .labor-month-kpis {
    grid-template-columns: 1fr;
  }
  #calculo-laboral-content .labor-kpi {
    padding: 8px;
  }
  #calculo-laboral-content .labor-kpi span {
    font-size: 8px;
  }
  #calculo-laboral-content .labor-kpi strong {
    font-size: 11px;
  }
  #calculo-laboral-content .labor-legend {
    font-size: 8px;
    gap: 6px;
  }
  #calculo-laboral-content .labor-week-card {
    padding: 8px;
  }
  #calculo-laboral-content .labor-week-note {
    font-size: 9px;
  }
  #calculo-laboral-content .labor-weekly-table td {
    grid-template-columns: 100px 1fr;
    font-size: 9px;
    padding: 7px 8px;
  }
  #calculo-laboral-content .labor-weekly-table td::before {
    font-size: 8px;
  }
  #calculo-laboral-content .labor-day-item {
    padding: 9px 8px;
  }
  .manual-attendance-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #calculo-laboral-content .labor-day-head strong {
    font-size: 10px;
  }
  #calculo-laboral-content .labor-day-head span,
  #calculo-laboral-content .labor-day-summary {
    font-size: 9px;
  }
  #calculo-laboral-content .labor-day-axis {
    font-size: 7px;
  }
  #calculo-laboral-content .labor-breaks {
    font-size: 8px;
  }
  #condiciones-laborales-content .tabs .tab-btn {
    font-size: 9px;
    padding: 7px 8px 8px;
  }
  #condiciones-laborales-content .contract-card-head strong {
    font-size: 12px;
  }
  #condiciones-laborales-content .contract-card-head span {
    font-size: 10px;
  }
  #condiciones-laborales-content .users-table thead th,
  #condiciones-laborales-content .users-table tbody td {
    font-size: 9px;
    padding: 7px;
  }
  .contract-mobile-table td {
    grid-template-columns: 88px 1fr;
    font-size: 9px;
    padding: 7px 8px;
  }
  .contract-mobile-table td[data-label]::before {
    font-size: 8px;
  }
  #catalogo-condiciones-content .users-table td,
  [id^=\"modal-contract-conditions-\"] .users-table td {
    padding: 7px 8px;
  }
  .contract-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }
  #vacaciones-content .tabs .tab-btn {
    font-size: 9px;
    padding: 7px 8px 8px;
  }
  #modal-calculo-vacaciones .users-table thead th,
  #modal-calculo-vacaciones .users-table tbody td,
  #modal-vacaciones-ledger .users-table thead th,
  #modal-vacaciones-ledger .users-table tbody td {
    font-size: 9px;
    padding: 7px 7px;
  }
  #aprobacion-vacaciones-content .tabs .tab-btn {
    font-size: 9px;
    padding: 7px 8px 8px;
  }
  #aprobacion-vacaciones-content .users-table thead th,
  #aprobacion-vacaciones-content .users-table tbody td {
    font-size: 9px;
    padding: 7px 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #descargos-content .tabs .tab-btn,
  #actas-content .tabs .tab-btn {
    font-size: 9px;
    padding: 7px 8px 8px;
  }
  #descargos-content .users-table td,
  #actas-content .users-table td {
    font-size: 9px;
    padding: 7px 7px;
  }
  #descargos-content .users-table td::before,
  #actas-content .users-table td::before {
    font-size: 8px;
  }
  #descargos-content .users-table td,
  #actas-content .users-table td {
    grid-template-columns: 92px 1fr;
  }
  #descargos-content .vac-upload-name,
  #actas-content .vac-upload-name {
    max-width: 100%;
    font-size: 9px;
  }
  #descargos-content .vac-upload-pick,
  #actas-content .vac-upload-pick {
    padding: 3px 7px;
    font-size: 8px;
  }
  #modal-replica .modal-head h3 {
    font-size: 14px;
  }
  #modal-replica textarea {
    min-height: 110px;
  }
  #aprobacion-vacaciones-content .vac-upload-name {
    max-width: 100%;
    font-size: 9px;
  }
  #aprobacion-vacaciones-content .vac-upload-pick {
    padding: 3px 7px;
    font-size: 8px;
  }
  #modal-vacaciones-pendientes .users-table thead th,
  #modal-vacaciones-pendientes .users-table tbody td,
  #modal-testimonios-pendientes .users-table thead th,
  #modal-testimonios-pendientes .users-table tbody td {
    font-size: 9px;
    padding: 7px 7px;
  }
  #modal-testimonios-pendientes .vac-upload-name {
    max-width: 64px;
    font-size: 9px;
  }
  #modal-testimonios-pendientes .vac-upload-pick {
    padding: 3px 7px;
    font-size: 8px;
  }
  #vacaciones-content .users-table thead th,
  #vacaciones-content .users-table tbody td {
    font-size: 9px;
    padding: 7px 7px;
  }
  .admin-users-table tr.user-row td {
    grid-template-columns: 92px 1fr;
    font-size: 10px;
    padding: 7px 8px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .admin-users-table tr.user-row td::before {
    font-size: 9px;
    min-width: 92px;
  }
  .admin-users-table .icon-btn {
    min-width: 26px;
    min-height: 26px;
  }
  #vacaciones-content .users-table thead th {
    font-size: 8px;
    letter-spacing: 0.03em;
  }
  .kv-item {
    padding: 7px 8px;
  }
  .kv-item strong {
    font-size: 13px;
  }
  .profile-toggle-btn {
    min-height: 24px;
    padding: 3px 8px;
  }
  .icon-btn {
    min-width: 26px;
    min-height: 26px;
  }
  .icon-btn i {
    font-size: 11px;
  }
  .star-readonly {
    font-size: 13px;
  }
  .skills-global-score {
    padding: 10px 12px;
  }
  .skills-global-number {
    font-size: 24px;
  }
  .skills-global-stars {
    font-size: 16px;
  }
  .star-btn,
  .star-clear {
    min-width: 22px;
    min-height: 22px;
    font-size: 11px;
  }
  .pdf-icon-btn {
    min-width: 30px;
    min-height: 30px;
  }
  .pdf-icon-btn i {
    font-size: 13px;
  }
  .users-pagination-wrap nav {
    justify-content: center;
  }
  .users-pagination-wrap .page-link,
  .users-pagination-wrap .page-item span {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }
  .labor-month-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .labor-day-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .labor-day-summary {
    font-size: 10px;
    line-height: 1.35;
  }
}
