:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafb;
  --line: #e6eaef;
  --text: #111827;
  --muted: #6b7280;
  --heading: #0f172a;
  --primary: #065f46;
  --primary-2: #0b7a5a;
  --primary-soft: #e7f5ef;
  --danger: #dc2626;
  --danger-soft: #fceaea;
  --blue-soft: #e8efff;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --sidebar-width: 240px;
  --topbar-height: 76px;
  --dashboard-sand: #f6f2ea;
  --dashboard-ink: #1e1f22;
  --dashboard-accent: #0d6efd;
  --dashboard-mint: #1fa97d;
  --dashboard-amber: #d3832b;
  --dashboard-rose: #c65151;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.sidebar {
  background: #f8fafb;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(6, 95, 70, 0.18);
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--heading);
  line-height: 1.1;
}

.brand-subtitle,
.section-label,
.meta-label,
.tiny-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: #8a93a3;
  font-weight: 700;
}

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

.nav-link-ui {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: 0.2s ease;
  background: transparent;
}

.nav-link-ui:hover,
.nav-link-ui.active {
  background: #fff;
  border-color: var(--line);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.nav-link-ui i {
  font-size: 1.1rem;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.btn-primary-ui,
.btn-outline-ui,
.btn-danger-ui {
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  border: none;
  transition: 0.2s ease;
}

.btn-primary-ui {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(6, 95, 70, 0.22);
}

.btn-primary-ui:hover {
  background: var(--primary-2);
  color: #fff;
}

.btn-secondary-ui {
  background: #f4f5f7;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.btn-secondary-ui:hover {
  background: #e9edf3;
}

.btn-outline-ui {
  background: #fff;
  color: #1f2937;
  border: 1px solid #cfd6df;
}

.btn-outline-ui:hover {
  background: #f8fafc;
  color: #1f2937;
}

.btn-danger-ui {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.btn-danger-ui:hover {
  background: #bf1f1f;
  color: #fff;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-tabs a {
  padding: 24px 14px 18px;
  text-decoration: none;
  color: #64748b;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.top-tabs a.active {
  color: var(--primary);
  border-color: #1db980;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-pill.premium {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d7dde6;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.search-pill.premium .form-control {
  border: 0;
  box-shadow: none;
  padding: 0;
  height: 24px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #334155;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd2c7, #f06d5f);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.content {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.page-title-detail {
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.page-subtitle {
  color: #4b5563;
  margin-top: 8px;
  font-size: 1.05rem;
}

.hero-center {
  text-align: center;
  padding: 14px 0 8px;
}

.hero-avatar {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: radial-gradient(circle at 30% 30%, #ffad9c, #ef4444);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3rem;
  border: 5px solid #fff;
  outline: 4px solid #2fc08e;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 820px;
}

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

.card-ui {
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card-ui.accent-left::before,
.section-card.accent-left::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  border-radius: 999px;
}

.card-ui.danger-left::before {
  background: #dc2626;
}

.card-ui.blue-left::before {
  background: #1d4ed8;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.icon-soft {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef2f3;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.icon-soft-blue {
  background: #e6ecff;
  color: #2343a0;
}

.metric-value {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111827;
  margin: 8px 0 10px;
}

.metric-unit {
  font-size: 1.25rem;
  font-weight: 600;
}

.badge-ui {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eef2f7;
  color: #475569;
}

.badge-ui.success {
  background: #dbf8ea;
  color: #0a8f59;
}

.badge-ui.info {
  background: #e6ecff;
  color: #3856a9;
}

.badge-ui.danger {
  background: #fde5e5;
  color: #c23030;
}

.badge-ui.soft {
  background: #f3f4f6;
  color: #6b7280;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.activity-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.activity-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.activity-row:first-child {
  border-top: 0;
}

.thumb {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8f8e7, #b9ead6);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.right-stack,
.stack,
.quick-actions {
  display: grid;
  gap: 18px;
}

.promo-card {
  min-height: 146px;
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(31, 255, 178, 0.18), transparent 25%), linear-gradient(135deg, #081118, #053b2d 48%, #062f6b);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}

.promo-card h4,
.promo-card p {
  margin: 0;
}

.section-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: relative;
}

.detail-body {
  padding: 24px;
}

.section-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #152033;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.single-column-grid {
  grid-template-columns: 1fr;
}

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

.compact-grid {
  padding: 18px 20px;
  gap: 16px 22px;
}

.info-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  color: #152033;
}

.wrap-long {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  gap: 22px;
  align-items: start;
}

.summary-dark {
  background: linear-gradient(180deg, #025530, #014827);
  color: #fff;
}

.summary-dark .metric-value,
.summary-dark .tiny-label,
.summary-dark p {
  color: #fff;
}

.table-wrap {
  overflow: auto;
}

table.ui-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ui-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #8a93a3;
  background: #f8fafc;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ui-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: #1f2937;
}

.ui-table tbody tr.status-alert td:first-child {
  box-shadow: inset 4px 0 0 #dc2626;
}

.ui-table tfoot td {
  padding: 16px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  color: #6b7280;
  font-weight: 600;
}

.toast-container-ui {
  position: fixed;
  top: 24px;
  right: 24px;
  display: grid;
  gap: 12px;
  z-index: 1080;
}

.toast-ui {
  position: relative;
  min-width: 260px;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-ui.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-ui.success {
  border-left-color: #16a34a;
}

.toast-ui.danger {
  border-left-color: #dc2626;
}

.toast-ui.info {
  border-left-color: #2563eb;
}

.toast-body-ui {
  padding: 12px 42px 12px 16px;
  font-weight: 600;
  color: #111827;
}

.toast-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

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

.photo-item {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(135deg, #90e4aa, #3aa16e);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.photo-item-alt {
  background: linear-gradient(135deg, #74d4a0, #397d64);
}

.photo-item-dark {
  background: linear-gradient(135deg, #221f13, #6b6244);
}

.photo-item-navy {
  background: linear-gradient(135deg, #223746, #1a2239);
}

.upload-box {
  border: 2px dashed #cbd5e1;
  color: #64748b;
  background: #f8fafc;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}

.action-link.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.link-ui {
  color: var(--primary);
}

.soft-panel {
  background: #f8fafc;
  box-shadow: none;
}

.compact-panel {
  border-radius: 16px;
  padding: 18px;
}

.progress-ui {
  height: 8px;
  border-radius: 999px;
}

.progress-primary {
  background: var(--primary);
}

.observation-copy {
  color: #1f3b2d;
  line-height: 1.7;
}

.note-strong {
  color: #132;
}

.page-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8a93a3;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  flex-wrap: wrap;
}

.modal-preview-page {
  min-height: 100vh;
  background: var(--bg);
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(148, 163, 184, 0.42);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 50;
}

.modal-shell.show {
  display: flex;
}

.static-preview {
  position: relative;
  min-height: 100vh;
}

.modal-card-ui {
  width: min(960px, 100%);
  background: #fff;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-card-ui.small {
  width: min(480px, 100%);
}

.modal-top {
  padding: 26px 34px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.modal-title-wrap {
  display: flex;
  align-items: start;
  gap: 16px;
}

.modal-title-wrap .section-accent {
  height: 28px;
  /* o 30px */
  margin-top: 4px;
}

.modal-heading {
  margin: 0 0 4px;
  font-size: 2rem;
  color: #123824;
  font-weight: 800;
}

.modal-heading-danger {
  font-size: 2.35rem;
  letter-spacing: -0.03em;
}

.modal-body-ui {
  padding: 28px 34px 32px;
  background: #f6f7f8;
}

.modal-footer-ui {
  padding: 18px 34px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.inline-form-body {
  padding: 24px;
  background: #f8fafc;
}

.inline-form-footer {
  padding: 18px 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.modal-footer-center {
  justify-content: center;
  letter-spacing: 0.16em;
  color: #8a93a3;
  background: #f4f5f7;
}

.section-block {
  margin-bottom: 28px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #163124;
}

.section-accent {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
}

.section-accent.blue {
  background: #1d4ed8;
}

.section-accent.gray {
  background: #64748b;
}

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

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

.field label,
.field-label-inline {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f3747;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7dde6;
  background: #fff;
  padding: 14px 16px;
  font-size: 1rem;
  color: #1f2937;
  outline: none;
}

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

.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: 0.92rem;
}

.modal-warning {
  padding: 34px 34px 18px;
  text-align: center;
}

.warning-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: #fdeeee;
  color: var(--danger);
  font-size: 2rem;
}

.danger-topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--danger) 0 34%, #f8dada 34% 100%);
}

.modal-action-btn {
  min-width: 180px;
}

@media (max-width: 1320px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    padding: 16px 18px;
    height: auto;
    flex-wrap: wrap;
  }

  .search-pill {
    width: 100%;
  }

  .top-tabs {
    order: 3;
    width: 100%;
    overflow: auto;
  }
}

.table-mobile,
.table-mobile-footer {
  display: none;
}

@media (max-width: 768px) {
  .content {
    padding: 16px;
  }

  .stats-grid,
  .info-grid,
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .modal-top,
  .modal-body-ui,
  .modal-footer-ui {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .page-title {
    font-size: 2.3rem;
  }

  .modal-heading-danger {
    font-size: 1.9rem;
  }

  .table-desktop {
    display: none;
  }

  .table-mobile,
  .table-mobile-footer {
    display: block;
  }

  .table-mobile .row-card {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid #dfe7ef;
    border-collapse: collapse;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }

  .table-mobile .row-card.row-expired {
    background: rgba(220, 53, 69, 0.08);
    border-left: 4px solid #dc3545;
  }

  .table-mobile .row-card.row-warning {
    background: rgba(255, 193, 7, 0.10);
    border-left: 4px solid #ffc107;
  }

  .table-mobile .row-card {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
  }

  .table-mobile .cell-main {
    flex: 1 1 100%;
  }

  .table-mobile .cell-actions {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
  }

  .table-mobile .cell-title {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    letter-spacing: -0.01em;
  }

  .table-mobile .cell-sub {
    font-size: 0.9rem;
    color: #64748b;
  }

  .table-mobile .cell-meta {
    font-size: 0.82rem;
    color: #6b7280;
  }

  .table-mobile .cell-meta strong {
    color: #0f172a;
    font-weight: 700;
  }

  .status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.78rem;
    color: #475569;
  }

  .pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  }

  .pager-info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
  }

  .pager-controls {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .pager-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d7dde6;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
  }

  .pager-btn:hover {
    background: #e9f0ff;
    border-color: #cbd5e1;
  }

  .pager-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  .table-mobile-footer {
    padding: 12px 16px 16px;
    color: #6b7280;
    font-weight: 600;
    border-top: 1px solid var(--line);
  }

}

/* Shared login base (Titan Logistics inspired) */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #dde6df, #cbd8cf 45%, #b8c7bc 75%);
  padding: 40px 16px;
}

.login-card {
  width: min(460px, 92vw);
  background: #e7ece6;
  border-radius: 18px;
  padding: 34px 36px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a5136;
  color: #e7ece6;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a2f1f;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #3f4e43;
}

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

.login-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.login-alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-weight: 600;
  font-size: 0.95rem;
}

.login-input.has-error input {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.login-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.login-back-link {
  padding: 6px 0;
  font-weight: 700;
  color: #0a5136;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-back-link:hover {
  text-decoration: underline;
  color: #0a5136;
}

.login-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b5b4f;
  margin-top: 4px;
}

.login-input {
  position: relative;
}

.login-input input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 10px;
  border: 1px solid #c9d2c9;
  background: #f7f9f7;
  font-size: 0.98rem;
}

.login-icon,
.login-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa79c;
}

.login-eye {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #3f4e43;
}

.login-remember {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-link {
  color: #0a5136;
  text-decoration: none;
  font-weight: 600;
}

.login-submit {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: #0a5136;
  color: #f2f6f2;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-submit .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  display: none;
  animation: spin 0.8s linear infinite;
}

.login-submit.is-loading .btn-spinner {
  display: inline-block;
}

.login-submit.is-loading .btn-label {
  opacity: 0.85;
}

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

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b877d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: #c7d0c7;
  flex: 1;
}

.login-sso {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #c9d2c9;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.login-footnote {
  margin-top: 14px;
  font-size: 0.75rem;
  color: #6a756b;
  text-align: center;
}

.login-brand--stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-row--center {
  justify-content: center;
}

.brand-powered {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-left: 2px;
  margin-right: -2px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  padding: 6px;
}

.brand-logo__img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-logo--company {
  height: 88px;
  padding: 10px 12px;
}

.brand-logo--product {
  height: 44px;
  padding: 6px 10px;
}

.landing-company-text {
  font-weight: 700;
  color: #111827;
  font-size: 0.9rem;
}

/* Fix avatar focus/outline box */
.user-chip {
  background: transparent;
  border: 0;
  padding: 0;
}

.user-chip:focus,
.user-chip:focus-visible {
  outline: none;
  box-shadow: none;
}

.sidebar {
  overflow-y: auto;
}

.brand-logo {
  object-fit: contain;
  border-radius: 10px;
}

.sidebar-brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* Premium scrollbar (global) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.3) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.15));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.25));
  background-clip: padding-box;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a93a3;
  cursor: pointer;
}

.section-toggle .bi {
  transition: transform 0.2s ease;
}

.section-toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

/* Mobile sidebar behavior */
@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 82vw;
    max-width: 320px;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 60;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }

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

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 50;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .content {
    padding: 20px;
  }

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

@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none;
  }
}

.spacer {
  flex: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 50;
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

body.sidebar-open::after {
  content: none;
}

.actions-toggle {
  border-radius: 10px;
  border: 1px solid #e6eaef;
  background: #f8fafb;
  color: #334155;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.actions-toggle:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.actions-menu {
  border-radius: 12px;
  border: 1px solid #e6eaef;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 6px;
  min-width: 180px;
}

.actions-menu .dropdown-item {
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
  color: #334155;
}

.actions-menu .dropdown-item:hover {
  background: #eef2f6;
}

.actions-menu .action-edit {
  color: #0f172a;
}

.actions-menu .action-edit:hover {
  background: #e8efff;
  color: #1d4ed8;
}

.actions-menu .action-danger {
  color: #b91c1c;
}

.actions-menu .action-danger:hover {
  background: #fdecec;
  color: #b91c1c;
}

.modal-content {
  border-radius: 26px;
  /* mismo valor que tu card */
  overflow: hidden;
  padding: 0;
  /* para que no “rompa” el radio */
}

/* Modal: ensure content fills shell */
.modal-content {
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  padding: 0;
}

.modal-content>.modal-card-ui {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

/* Premium modal header */
.modal-card-premium {
  border-radius: 18px;
}

.modal-top-premium {
  background: #f7f7f7;
  border-bottom: 1px solid #e5e7eb;
}

.modal-icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e9f0ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.modal-subtitle {
  color: #5b6472;
  font-size: 0.95rem;
}

.btn.btn-icon-ghost {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.modal-body-premium {
  background: #efefef;
}

.modal-footer-premium {
  background: #f7f7f7;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

/* Premium sections like the mock */
.section-block-title {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #163124;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-block-title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #0f3d2f;
}

/* Inputs similar to image */
.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  padding: 12px 14px;
}

.checkbox-field .form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  max-width: 100%;
  flex-wrap: nowrap;
}

.checkbox-field .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
}

.checkbox-field .form-check-label {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Select2 – premium */
/* Align select2 with crispy inputs */
.select2-container--default .select2-selection--single {
  height: auto;
  min-height: 50px;
  border: 0.5px solid #e1e5ea;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  padding-right: 46px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  padding-right: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9aa4b2;
  font-weight: 600;
  line-height: 1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 12px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single {
  font-size: 1rem;
  font-family: inherit;
  padding-right: 40px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fbfdff;
}

/* Contenedor del dropdown */
.select2-container--default .select2-dropdown {
  border: 1px solid #e1e5ea;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

/* Opciones */
.select2-container--default .select2-results__option {
  padding: 12px 16px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #f1f5f9;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted {
  background: #e9f0ff;
  color: #1d4ed8;
}

/* Seleccionado */
.select2-container--default .select2-results__option--selected {
  background: #f3f4f6;
  color: #111827;
}

/* Multiple select – premium chips */
.select2-container--default .select2-selection--multiple {
  min-height: 50px;
  border: 0.5px solid #e1e5ea;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  padding-right: 40px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fbfdff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 2px 0;
}

/* Single selection highlight (premium) */
.select2-container--default .select2-selection--single .select2-selection__rendered[title]:not([title=""]) {
  font-weight: 700;
  color: #0f172a;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #1e3a8a;
  font-weight: 800;
  border-right: 0;
  margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #dc2626;
}

/* Clear all (allowClear) */
.select2-container--default .select2-selection__clear {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  z-index: 2;
  left: auto;
  flex: 0 0 22px;
}

/* Single selection clear alignment */
.select2-container--default .select2-selection--single .select2-selection__clear {
  right: 0;
  margin-right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  left: auto;
}

.select2-container--default .select2-selection__clear:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fecaca;
}

.section-header.premium {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-title .tiny-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b8392;
  font-weight: 700;
}

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

.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #f5f6f8;
  border: 1px solid #e1e5ea;
  border-radius: 0;
}

.filters-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2f3747;
}

.filter-input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d7dde6;
  padding: 10px 12px;
  background: #fff;
}

.filters-bar .filter-input:focus {
  border-color: #2f6f53;
  box-shadow: 0 0 0 3px rgba(47, 111, 83, 0.12);
}

.label-spacer {
  visibility: hidden;
}

.search-field .search-pill {
  height: 46px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.pager-info {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.pager-controls {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d7dde6;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.pager-btn:hover {
  background: #e9f0ff;
  border-color: #cbd5e1;
}

.pager-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Table numeric/time standard styling */
.ui-table td,
.ui-table th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.ui-table td.cell-num,
.ui-table th.cell-num,
.ui-table td.cell-time,
.ui-table th.cell-time,
.ui-table td[data-type="number"],
.ui-table th[data-type="number"],
.ui-table td[data-type="time"],
.ui-table th[data-type="time"] {
  text-align: right;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #5b6472;
  background: #fbfcfd;
  border: 1px solid #edf2f7;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  margin: 10px;
}

/* Form error popovers */
.popover.pop-error-message {
  border-left: 4px solid #fecaca;
  --bs-popover-max-width: 280px;
}

.popover.pop-error-message .popover-body {
  color: #7f1d1d;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
}

.back-link:hover {
  background: #e9f0ff;
  border-color: #cbd5e1;
  color: #1d4ed8;
}

.actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-action {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bulk-action .btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#bulk-help {
  line-height: 1;
  font-size: 0.75rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  width: 100%;
  margin-top: 6px;
  flex-wrap: wrap;
}

.file-pill .bi-paperclip {
  color: #1d4ed8;
  background: #e8efff;
  border: 1px solid #d6e3ff;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.file-pill .file-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  /* necesario para ellipsis */
  flex: 1 1 200px;
}

.file-pill .filename {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-weight: 600;
  max-width: 360px;
  flex: 1 1 200px;
}

.file-pill .btn-outline-ui {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.landing-card {
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-3px);
  border-color: #dbe3ef;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.landing-shell {
  overflow: hidden;
}

.landing-hero {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 40%),
    linear-gradient(180deg, #fbfdff 0%, #f3f6fb 100%);
}

.landing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 10px;
  background: #e8efff;
  border: 1px solid #d6e3ff;
  color: #1d4ed8;
  font-size: 1rem;
}

.dashboard-hero {
  background: radial-gradient(circle at top left, rgba(31, 169, 125, 0.18), transparent 60%),
    linear-gradient(135deg, #111827 0%, #1f2937 45%, #0f172a 100%);
  border-radius: 24px;
  padding: 28px;
  color: #f9fafb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.dashboard-hero .meta {
  color: rgba(249, 250, 251, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 18px;
  height: 100%;
}

.dashboard-card .label {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.dashboard-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dashboard-ink);
}

.dashboard-card .trend {
  font-size: 0.8rem;
  color: #6b7280;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #f9fafb;
}

.dashboard-section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin: 24px 0 12px;
}

.action-tile {
  border-radius: 16px;
  background: var(--dashboard-sand);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.action-tile a {
  text-decoration: none;
  font-weight: 600;
  color: #0f172a;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-chip.good {
  background: rgba(31, 169, 125, 0.15);
  color: var(--dashboard-mint);
}

.status-chip.warn {
  background: rgba(211, 131, 43, 0.15);
  color: var(--dashboard-amber);
}

.status-chip.bad {
  background: rgba(198, 81, 81, 0.15);
  color: var(--dashboard-rose);
}

.row-expired {
  background: rgba(220, 53, 69, 0.08);
  border-left: 4px solid #dc3545;
}

.row-warning {
  background: rgba(255, 193, 7, 0.10);
  border-left: 4px solid #ffc107;
}

/* Reusable empty state (shared_theme/partials/empty_state.html) */
.empty-state {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  margin: 5px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px dashed #d7dde6;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.empty-state--compact {
  padding: 18px 16px;
  gap: 14px;
}

.empty-state__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f5ef, #d4ebe2);
  color: var(--primary);
  font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(6, 95, 70, 0.12);
}

.empty-state__body {
  min-width: 0;
  flex: 1;
}

.empty-state__title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.empty-state__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52ch;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Compact variant for cards/rows */
.empty-state--row {
  padding: 16px;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
  background: #f8fafc;
}

.empty-state--row .empty-state__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: none;
}

.empty-state--row .empty-state__title {
  font-size: 0.98rem;
}

.empty-state--row .empty-state__subtitle {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

@media (max-width: 576px) {
  .empty-state {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .empty-state__actions {
    justify-content: center;
  }

  .empty-state__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}
