.my-tickets-view {
  display: grid;
  gap: 18px;
  max-width: 100%;
}

.side nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.side form .btn {
  width: 100%;
}

.my-tickets-view > .top,
.my-tickets-view .reimbursement-grid,
.my-tickets-view .filter-strip,
.my-tickets-view .table-wrap {
  margin-bottom: 0;
}

.my-tickets-view .top {
  align-items: flex-start;
}

.my-tickets-view .top .btn {
  white-space: nowrap;
}

.my-tickets-view .reimbursement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-tickets-view .reimbursement-grid .card {
  min-width: 0;
}

.my-tickets-view .reimbursement-grid b {
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.my-tickets-view .table-wrap {
  max-width: 100%;
}

.my-tickets-view .table {
  min-width: 1040px;
  table-layout: fixed;
}

.my-tickets-view .table th:nth-child(1),
.my-tickets-view .table td:nth-child(1) {
  width: 105px;
}

.my-tickets-view .table th:nth-child(2),
.my-tickets-view .table td:nth-child(2) {
  width: 105px;
}

.my-tickets-view .table th:nth-child(3),
.my-tickets-view .table td:nth-child(3) {
  width: 170px;
}

.my-tickets-view .table th:nth-child(4),
.my-tickets-view .table td:nth-child(4) {
  width: 170px;
}

.my-tickets-view .table th:nth-child(5),
.my-tickets-view .table td:nth-child(5) {
  width: 82px;
}

.my-tickets-view .table th:nth-child(6),
.my-tickets-view .table td:nth-child(6),
.my-tickets-view .table th:nth-child(7),
.my-tickets-view .table td:nth-child(7),
.my-tickets-view .table th:nth-child(8),
.my-tickets-view .table td:nth-child(8) {
  width: 108px;
}

.my-tickets-view .table th:nth-child(9),
.my-tickets-view .table td:nth-child(9) {
  width: 110px;
}

.my-tickets-view .table th:nth-child(10),
.my-tickets-view .table td:nth-child(10) {
  width: 66px;
}

.my-tickets-view .table td {
  vertical-align: middle;
}

.my-tickets-view .table td[data-label="Categoria"] {
  overflow: visible;
}

@media (max-width: 1180px) {
  .my-tickets-view .reimbursement-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .my-tickets-view .reimbursement-grid .card {
    scroll-snap-align: start;
  }
}

@media (max-width: 1280px) {
  .my-tickets-view .top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .my-tickets-view .top .btn {
    width: 100%;
  }

  .my-tickets-view .table-wrap {
    overflow: visible;
  }

  .my-tickets-view .table {
    display: block;
    width: 100%;
    min-width: 0;
    border-spacing: 0;
  }

  .my-tickets-view .table thead {
    display: none;
  }

  .my-tickets-view .table tbody {
    display: grid;
    gap: 12px;
  }

  .my-tickets-view .table tr {
    display: grid;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
    padding: 12px;
  }

  .my-tickets-view .table td {
    display: grid;
    grid-template-columns: minmax(108px, 34%) 1fr;
    gap: 12px;
    align-items: center;
    width: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    padding: 10px 0;
  }

  .my-tickets-view .table td + td {
    border-top: 1px solid #eef2f7 !important;
  }

  .my-tickets-view .table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .my-tickets-view .table td[data-label="Proveedor"],
  .my-tickets-view .table td[data-label="Categoria"],
  .my-tickets-view .table td[data-label="Accion"] {
    grid-template-columns: 1fr;
  }

  .my-tickets-view .category-label {
    width: 100%;
  }

  .my-tickets-view .category-label span:last-child {
    display: block;
    -webkit-line-clamp: initial;
    overflow: visible;
  }

  .my-tickets-view .inline-actions,
  .my-tickets-view .inline-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .my-tickets-view {
    gap: 14px;
  }

  .my-tickets-view .top h1 {
    font-size: 26px;
  }

  .my-tickets-view .top p {
    font-size: 14px;
    line-height: 1.45;
  }

  .my-tickets-view .reimbursement-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 10px;
  }

  .my-tickets-view .reimbursement-grid .card {
    padding: 15px;
  }

  .my-tickets-view .reimbursement-grid b {
    font-size: 24px;
  }

  .my-tickets-view .reimbursement-grid p {
    margin-bottom: 0;
  }

  .my-tickets-view .table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-radius: 18px;
    padding: 14px;
  }

  .my-tickets-view .table td {
    display: block;
    min-width: 0;
    width: auto !important;
    padding: 0;
  }

  .my-tickets-view .table td + td {
    border-top: 0 !important;
  }

  .my-tickets-view .table td::before {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.1;
  }

  .my-tickets-view .table td[data-label="Proveedor"],
  .my-tickets-view .table td[data-label="Categoria"],
  .my-tickets-view .table td[data-label="Alertas"],
  .my-tickets-view .table td[data-label="Accion"] {
    grid-column: 1 / -1;
  }

  .my-tickets-view .table td[data-label="Proveedor"] {
    order: 1;
  }

  .my-tickets-view .table td[data-label="Categoria"] {
    order: 2;
  }

  .my-tickets-view .table td[data-label="Total"] {
    order: 3;
  }

  .my-tickets-view .table td[data-label="Pago"] {
    order: 4;
  }

  .my-tickets-view .table td[data-label="Estado"] {
    order: 5;
  }

  .my-tickets-view .table td[data-label="Reembolso"] {
    order: 6;
  }

  .my-tickets-view .table td[data-label="Fecha ticket"] {
    order: 7;
  }

  .my-tickets-view .table td[data-label="Subido"] {
    order: 8;
  }

  .my-tickets-view .table td[data-label="Alertas"] {
    order: 9;
  }

  .my-tickets-view .table td[data-label="Accion"] {
    order: 10;
  }

  .my-tickets-view .category-label {
    align-items: center;
    width: 100%;
  }

  .my-tickets-view .category-label span:last-child {
    white-space: normal;
    overflow: visible;
  }

  .my-tickets-view .inline-actions .btn {
    min-height: 42px;
  }

  .my-tickets-view .pill {
    width: max-content;
    max-width: 100%;
  }
}

@media (min-width: 1400px) {
  .my-tickets-view {
    gap: 20px;
  }

  .my-tickets-view .table {
    min-width: 0;
  }
}

.finance-view {
  display: grid;
  gap: 18px;
}

.finance-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: #101828;
  color: #fff;
  border-radius: 22px;
  padding: 24px;
}

.finance-hero h1 {
  margin: 10px 0 8px;
  font-size: 34px;
}

.finance-hero p {
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}

.finance-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.finance-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}

.finance-kpi.primary {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.finance-kpi span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-kpi b {
  display: block;
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.finance-kpi p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.finance-insights {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 14px;
  align-items: stretch;
}

.finance-chart {
  min-width: 0;
}

.finance-chart h2,
.finance-risk h2 {
  line-height: 1.18;
}

.finance-bar-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.finance-bar-row {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.finance-bar-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.finance-bar-meta b {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.finance-bar-meta span {
  color: #64748b;
  font-weight: 900;
  white-space: nowrap;
}

.finance-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.finance-bar-track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.finance-risk .risk-list {
  display: grid;
  gap: 10px;
}

.risk-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.risk-row span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.risk-row strong {
  min-width: 40px;
  text-align: center;
  border-radius: 12px;
  background: #172033;
  color: #fff;
  padding: 8px 10px;
}

.finance-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.finance-section-head h2 {
  margin: 0 0 4px;
}

.finance-filter-card,
.finance-table-card {
  overflow: visible;
}

.finance-filter-card .filter-strip.finance {
  grid-template-columns: minmax(190px, 1.4fr) repeat(2, minmax(135px, .75fr)) minmax(145px, .85fr) minmax(150px, .9fr) minmax(190px, 1fr) minmax(145px, .85fr) minmax(145px, .85fr) auto !important;
  width: 100%;
  max-width: 100%;
}

.finance-filter-card .filter-field,
.finance-filter-card .filter-search,
.finance-filter-card .filter-actions {
  min-width: 0;
}

.finance-filter-card .amount-filter > div {
  min-width: 0;
}

.finance-filter-card .amount-filter input {
  min-width: 0;
}

.finance-view .table {
  min-width: 1060px;
}

.account-pricing {
  max-width: 1180px;
}

.account-pricing .pricing-hero {
  padding-top: 0;
}

.side nav a,
.admin-side nav a {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.nav-icon-wrap {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 10px;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(34, 197, 94, .10));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.nav-icon {
  width: 17px;
  height: 17px;
}

.nav-icon-home { color: #38bdf8; background: linear-gradient(135deg, rgba(56, 189, 248, .20), rgba(37, 99, 235, .16)); }
.nav-icon-ticket { color: #22c55e; background: linear-gradient(135deg, rgba(34, 197, 94, .20), rgba(20, 184, 166, .14)); }
.nav-icon-plus { color: #a855f7; background: linear-gradient(135deg, rgba(168, 85, 247, .20), rgba(37, 99, 235, .12)); }
.nav-icon-users { color: #f59e0b; background: linear-gradient(135deg, rgba(245, 158, 11, .22), rgba(251, 191, 36, .10)); }
.nav-icon-settings { color: #94a3b8; background: linear-gradient(135deg, rgba(148, 163, 184, .22), rgba(37, 99, 235, .10)); }
.nav-icon-invoice { color: #06b6d4; background: linear-gradient(135deg, rgba(6, 182, 212, .20), rgba(34, 197, 94, .10)); }
.nav-icon-profile { color: #ec4899; background: linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(168, 85, 247, .12)); }
.nav-icon-pricing { color: #10b981; background: linear-gradient(135deg, rgba(16, 185, 129, .22), rgba(245, 158, 11, .10)); }
.nav-icon-card { color: #facc15; background: linear-gradient(135deg, rgba(250, 204, 21, .22), rgba(249, 115, 22, .12)); }
.nav-icon-shield { color: #60a5fa; background: linear-gradient(135deg, rgba(96, 165, 250, .22), rgba(15, 23, 42, .10)); }
.nav-icon-mileage { color: #f97316; background: linear-gradient(135deg, rgba(249, 115, 22, .22), rgba(14, 165, 233, .12)); }
.nav-icon-categories { color: #84cc16; background: linear-gradient(135deg, rgba(132, 204, 22, .20), rgba(34, 197, 94, .12)); }

.side nav a:hover .nav-icon-wrap,
.side nav a.active .nav-icon-wrap,
.admin-side nav a:hover .nav-icon-wrap,
.admin-side nav a.active .nav-icon-wrap {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.side nav a span:not(.nav-icon-wrap),
.admin-side nav a span:not(.nav-icon-wrap) {
  min-width: 0;
}

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

.toggle-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
  margin: 0;
}

.toggle-rule input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.toggle-rule b,
.toggle-rule small {
  display: block;
}

.toggle-rule small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}

.rule-line {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: stretch;
}

.rule-line > label:not(.toggle-rule) {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  margin: 0;
}

@media (max-width: 1280px) {
  .finance-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .finance-risk {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1120px) {
  .finance-insights {
    grid-template-columns: 1fr;
  }

  .finance-filter-card .filter-strip.finance {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .finance-filter-card .filter-search {
    grid-column: 1 / -1;
  }

  .finance-filter-card .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .finance-filter-card .filter-strip.finance {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .finance-hero,
  .finance-section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finance-hero .actions,
  .finance-section-head .btn {
    width: 100%;
  }

  .finance-view .table-wrap {
    overflow: visible;
  }

  .finance-view .table {
    display: block;
    width: 100%;
    min-width: 0;
    border-spacing: 0;
  }

  .finance-view .table thead {
    display: none;
  }

  .finance-view .table tbody {
    display: grid;
    gap: 12px;
  }

  .finance-view .table tr {
    display: grid;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
  }

  .finance-view .table td {
    display: grid;
    grid-template-columns: minmax(112px, 34%) 1fr;
    gap: 12px;
    align-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    padding: 10px 0;
  }

  .finance-view .table td + td {
    border-top: 1px solid #eef2f7 !important;
  }

  .finance-view .table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .finance-view .table td[data-label="Proveedor"],
  .finance-view .table td[data-label="Accion"] {
    grid-template-columns: 1fr;
  }

  .finance-view .inline-actions,
  .finance-view .inline-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .finance-view {
    gap: 14px;
  }

  .finance-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .finance-hero h1 {
    font-size: 28px;
  }

  .finance-kpis {
    grid-template-columns: 1fr;
  }

  .finance-kpi b {
    font-size: 22px;
  }

  .finance-bar-list {
    gap: 14px;
  }

  .finance-bar-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .finance-bar-meta span {
    white-space: normal;
  }

  .finance-filter-card {
    overflow: hidden;
  }

  .finance-filter-card .filter-strip.finance {
    grid-template-columns: 1fr !important;
  }

  .finance-filter-card .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finance-view .table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rule-line {
    grid-template-columns: 1fr;
  }
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.category-option {
  position: relative;
  margin: 0;
}

.category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-option span {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category-option span b {
  line-height: 1.2;
}

.category-option input:checked + span {
  border-color: #2563eb;
  background: #eef4ff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .15);
}

.category-option:active span {
  transform: scale(.99);
}

.category-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 14px;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(34, 197, 94, .10));
}

.category-icon svg {
  width: 19px;
  height: 19px;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-weight: 850;
  line-height: 1.2;
  min-width: 0;
}

.category-label .category-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 10px;
}

.category-label .category-icon svg {
  width: 15px;
  height: 15px;
}

.category-label span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.my-tickets-view .category-label span:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.category-icon-utensils,
.category-icon-coffee {
  color: #ea580c;
  background: linear-gradient(135deg, rgba(249, 115, 22, .18), rgba(250, 204, 21, .16));
}

.category-icon-car,
.category-icon-route {
  color: #2563eb;
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(14, 165, 233, .14));
}

.category-icon-hotel {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(236, 72, 153, .12));
}

.category-icon-parking,
.category-icon-road {
  color: #0891b2;
  background: linear-gradient(135deg, rgba(8, 145, 178, .16), rgba(45, 212, 191, .13));
}

.category-icon-briefcase {
  color: #475569;
  background: linear-gradient(135deg, rgba(71, 85, 105, .14), rgba(148, 163, 184, .14));
}

.category-icon-dots {
  color: #16a34a;
  background: linear-gradient(135deg, rgba(22, 163, 74, .14), rgba(132, 204, 22, .12));
}

.category-readonly {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.category-readonly > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

@media (max-width: 520px) {
  .category-picker,
  .category-readonly {
    grid-template-columns: 1fr;
  }
}

.mileage-view {
  display: grid;
  gap: 18px;
}

.mileage-form .card {
  align-self: start;
}

.mileage-actions {
  margin-top: 18px;
}

.mileage-summary {
  position: sticky;
  top: 18px;
}

.mileage-total {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
}

.mileage-total span {
  color: #cbd5e1;
  font-weight: 850;
}

.mileage-total b {
  font-size: 34px;
  line-height: 1;
}

.mileage-receipt {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px dashed #93c5fd;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  color: #172033;
}

.mileage-receipt b {
  font-size: 18px;
}

.mileage-receipt span {
  color: #475467;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.mileage-receipt strong {
  font-size: 24px;
}

.receipt.mileage-ticket {
  width: 230px;
  transform: rotate(0deg);
}

@media (max-width: 1050px) {
  .mileage-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .mileage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mileage-total b {
    font-size: 28px;
  }
}

.cards-view {
  display: grid;
  gap: 18px;
}

.card-provider {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
}

.card-provider.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.card-provider b,
.card-provider span {
  font-weight: 950;
}

.card-provider p {
  margin: 4px 0 0;
  color: inherit;
  line-height: 1.45;
}

.card-provider > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.card-mini {
  display: grid;
  gap: 4px;
}

.card-mini span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.card-mini small {
  color: #667085;
  font-weight: 800;
}

.employee-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.employee-card {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(250, 204, 21, .36), transparent 38%), linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.employee-card.paused,
.employee-card.cancelled {
  filter: grayscale(.3);
  opacity: .78;
}

.employee-card-top,
.employee-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.employee-card h2 {
  margin: 18px 0 0;
  font-size: 24px;
}

.employee-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  letter-spacing: 2px;
}

.employee-card-row {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.employee-card-row span {
  color: #cbd5e1;
}

.card-usage {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.card-usage > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.card-usage span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.card-usage-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.card-usage-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #2563eb);
}

.employee-card .card-usage-track {
  background: rgba(255, 255, 255, .18);
}

.card-actions {
  display: grid;
  gap: 9px;
  min-width: 220px;
}

.card-limit-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.card-limit-form input {
  height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 13px;
}

.cards-table td[data-label="Limite mensual"],
.cards-table td[data-label="Contador"],
.cards-table td[data-label="Accion"] {
  min-width: 170px;
}

@media (max-width: 760px) {
  .card-provider {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-limit-form {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .card-actions .btn,
  .card-limit-form .btn {
    width: 100%;
  }
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #475467;
  font-weight: 850;
}

.check-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.turnstile-wrap {
  margin-top: 16px;
}

.turnstile-wrap.full {
  grid-column: 1 / -1;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
}

.filter-backdrop[hidden] {
  display: none;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(440px, 100%);
  height: 100vh;
  padding: 24px;
  background: #f8fafc;
  border-left: 1px solid #dbe3ef;
  box-shadow: -30px 0 70px rgba(15, 23, 42, .24);
  transform: translateX(105%);
  transition: transform .2s ease;
  overflow-y: auto;
}

.filter-drawer.open {
  transform: translateX(0);
}

.filter-drawer-open {
  overflow: hidden;
}

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

.filter-drawer-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-drawer-head h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

.filter-drawer .drawer-filter-form,
.filter-drawer .drawer-filter-form.finance,
.filter-drawer .filters.advanced,
.filter-drawer .filter-strip,
.filter-drawer .filter-strip.finance {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}

.filter-drawer .filter-search,
.filter-drawer .filter-field {
  min-width: 0;
  width: 100%;
}

.filter-drawer .filter-search {
  grid-column: auto !important;
}

.filter-drawer .filter-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px;
  padding-top: 14px;
  grid-column: auto !important;
  justify-content: stretch;
  background: linear-gradient(180deg, rgba(248, 250, 252, .78), #f8fafc 35%);
}

.filter-drawer .filter-actions .btn {
  width: 100%;
}

.employee-dashboard {
  display: grid;
  gap: 18px;
  max-width: 100%;
  overflow: hidden;
}

.employee-dashboard .content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  align-items: start;
}

.employee-dashboard .table-wrap {
  overflow: visible;
}

.employee-dashboard .table {
  display: block;
  min-width: 0;
  width: 100%;
  border-spacing: 0;
}

.employee-dashboard .table thead {
  display: none;
}

.employee-dashboard .table tbody {
  display: grid;
  gap: 12px;
}

.employee-dashboard .table tr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}

.employee-dashboard .table td {
  display: none;
  padding: 0;
  border: 0 !important;
  background: transparent;
}

.employee-dashboard .table td[data-label="Proveedor"],
.employee-dashboard .table td[data-label="Total"],
.employee-dashboard .table td[data-label="Estado"],
.employee-dashboard .table td[data-label="Accion"] {
  display: block;
}

.employee-dashboard .table td[data-label="Proveedor"] {
  grid-column: 1;
  font-weight: 850;
}

.employee-dashboard .table td[data-label="Total"] {
  grid-column: 1;
}

.employee-dashboard .table td[data-label="Estado"] {
  grid-column: 1;
}

.employee-dashboard .table td[data-label="Accion"] {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.employee-dashboard .table td::before {
  display: none;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.filter-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
}

.filter-summary b {
  color: #1d4ed8;
}

.vacation-view,
.hr-view {
  display: grid;
  gap: 18px;
}

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

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

.vacation-kpis .card {
  display: grid;
  gap: 8px;
}

.vacation-kpis span {
  color: #64748b;
  font-weight: 850;
}

.vacation-kpis b {
  font-size: 32px;
  line-height: 1.05;
}

.vacation-grid {
  align-items: start;
}

.vacation-policy .checks {
  margin-top: 0;
}

.hr-hero {
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.vacation-timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.vacation-timeline-row > span {
  font-weight: 900;
  color: #0f766e;
}

.vacation-timeline-row p {
  margin: 4px 0 0;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.month-nav b {
  min-width: 145px;
  text-align: center;
  text-transform: capitalize;
}

.vacation-calendar {
  display: grid;
  gap: 8px;
}

.month-filter {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}

.month-filter label {
  margin: 0;
}

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

.vacation-weekdays span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.vacation-day {
  min-height: 104px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 9px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.vacation-day.has-absence {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.vacation-day-number {
  font-weight: 950;
  color: #0f172a;
}

.vacation-day-people {
  display: grid;
  gap: 5px;
}

.vacation-day-people span,
.vacation-day-people small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.vacation-day-people span.approved {
  background: #dcfce7;
  color: #166534;
}

.vacation-day-people span.pending {
  background: #fff7ed;
  color: #c2410c;
}

.vacation-day-people small {
  background: #e0e7ff;
  color: #3730a3;
}

.vacation-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.vacation-actions input {
  height: 40px;
  padding: 9px 11px;
}

.vacation-table td[data-label="Motivo"],
.vacation-table td[data-label="Revision"] {
  max-width: 260px;
}

.hr-employee-grid,
.hr-settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .95fr);
  gap: 18px;
  align-items: start;
}

.hr-filter-panel {
  display: grid;
  gap: 12px;
}

.department-groups {
  display: grid;
  gap: 18px;
}

.department-section {
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.department-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6ebf2;
  background: #f8fafc;
}

.department-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.department-section-head span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
  font-size: 12px;
}

.hr-employees-table td[data-label="Email"] {
  overflow-wrap: anywhere;
}

.danger-zone {
  border-color: #fecaca;
  background: #fff7f7;
}

.btn.danger {
  background: #dc2626;
  color: #fff;
}

.department-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.department-chip-list span {
  border-radius: 999px;
  padding: 9px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  border: 1px solid #bfdbfe;
}

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

.side-brand-row .brand {
  margin-bottom: 0;
  min-width: 0;
}

.announcement-center {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 0 0 auto;
}

.announcement-bell {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.announcement-bell .nav-icon-wrap {
  margin: 0;
}

.announcement-bell [data-announcement-count] {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  border: 2px solid #fff;
}

.announcement-drawer {
  display: grid;
  grid-template-rows: auto 1fr;
}

.announcement-backdrop,
.announcement-drawer {
  pointer-events: auto;
}

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

.drawer-list {
  overflow: auto;
  padding-right: 4px;
}

.announcement-card {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.announcement-card.is-read {
  background: #f8fafc;
}

.announcement-card.is-paused {
  opacity: .68;
}

.announcement-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.announcement-card p {
  margin: 0 0 8px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

.announcement-card small {
  color: #64748b;
  font-weight: 750;
}

.announcement-priority {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.announcement-priority.normal {
  background: #e0f2fe;
  color: #075985;
}

.announcement-priority.important {
  background: #fef3c7;
  color: #92400e;
}

.announcement-priority.urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.department-checks {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px;
}

.department-checks[hidden] {
  display: none;
}

.department-checks > div:first-child {
  display: grid;
  gap: 3px;
}

.department-checks > div:first-child span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.department-checks label {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.department-checks input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.department-checks label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.department-checks label span {
  font-weight: 900;
  line-height: 1.2;
}

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

  .hr-employee-grid,
  .hr-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:760px) {
  .filter-drawer {
    width: 100%;
    padding: 18px;
    border-left: 0;
  }

  .filter-drawer-head h2 {
    font-size: 24px;
  }

  .filter-drawer .filter-actions {
    grid-template-columns: 1fr !important;
  }

  .filter-summary {
    display: grid;
  }

  .filter-summary span {
    justify-content: space-between;
    border-radius: 14px;
  }

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

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

  .vacation-kpis,
  .vacation-view .vacation-kpis {
    grid-template-columns: 1fr;
  }

  .vacation-timeline-row {
    grid-template-columns: 1fr;
  }

  .month-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .month-filter {
    grid-template-columns: 1fr;
  }

  .month-nav b {
    order: -1;
    min-width: 0;
  }

  .vacation-weekdays,
  .vacation-days {
    gap: 4px;
  }

  .vacation-day {
    min-height: 76px;
    border-radius: 10px;
    padding: 6px;
  }

  .vacation-day-people span,
  .vacation-day-people small {
    padding: 3px 5px;
    font-size: 10px;
  }

  .vacation-actions {
    min-width: 0;
  }

  .vacation-actions .inline-actions,
  .vacation-actions .btn {
    width: 100%;
  }

  .announcement-bell {
    width: 42px;
    height: 42px;
  }

  .department-select-grid {
    grid-template-columns: 1fr;
  }

  .department-section {
    border-radius: 16px;
  }

  .department-section .table-wrap {
    overflow: visible;
  }

  .hr-employees-table,
  .hr-employees-table thead,
  .hr-employees-table tbody,
  .hr-employees-table tr,
  .hr-employees-table td {
    display: block;
    width: 100%;
  }

  .hr-employees-table thead {
    display: none;
  }

  .hr-employees-table tr {
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 12px;
    margin: 12px;
    background: #fff;
  }

  .hr-employees-table td {
    border: 0;
    padding: 8px 0;
  }

  .hr-employees-table td + td {
    border-top: 1px solid #eef2f7;
  }

  .hr-employees-table td::before {
    content: attr(data-label);
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
}
