:root {
  --red: #c41e3a;
  --red-dark: #9f162b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --blue: #2563eb;
  --green: #059669;
  --amber: #d97706;
  --violet: #7c3aed;
  --danger: #dc2626;
  --sidebar-width: 270px;
  --topbar-height: 73px;
}

* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--soft);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(196, 30, 58, 0.08), transparent 35%),
    linear-gradient(240deg, rgba(37, 99, 235, 0.08), transparent 40%),
    #f7f8fb;
}
.login-panel {
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}
.login-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 34px 28px 30px;
  text-align: center;
}
.logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
}
.logo-ring img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.login-header h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 800;
}
.login-header p {
  margin: 6px 0 0;
  opacity: 0.92;
  color: var(--white);
}
.login-body {
  padding: 28px;
}
.login-brand, .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand img, .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.login-brand strong, .brand strong {
  display: block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.login-brand span, .brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form label, .filter label, .form-row label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.login-form input, .filter input, .filter select, .form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  min-height: 42px;
}
.login-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.login-input > i {
  align-self: stretch;
  width: 46px;
  display: grid;
  place-items: center;
  background: #f5f5f5;
  color: var(--muted);
  border-right: 2px solid var(--line);
}
.login-input input {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
}
.login-input input:focus {
  box-shadow: none;
}
.toggle-pass {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--white);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.login-form input:focus, .filter input:focus, .filter select:focus, .form-row input:focus, .form-row select:focus, .form-row textarea:focus, .topbar-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.login-form .login-submit, .primary-btn, .action-primary {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(196, 30, 58, 0.22);
}
.login-form .login-submit:hover, .primary-btn:hover, .action-primary:hover, .export-btn:hover, .icon-action:hover, .module-card:hover, .kpi-card:hover {
  transform: translateY(-2px);
}
.login-panel small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}
.demo-access {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
}
.demo-access i {
  font-size: 22px;
  flex: 0 0 auto;
}
.demo-access strong,
.demo-access span {
  display: block;
  line-height: 1.25;
}
.demo-access span {
  font-size: 13px;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.remember-demo {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.remember-demo input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--red);
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}
.demo-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.demo-credentials span {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.demo-credentials strong {
  color: var(--ink);
}

.app-shell { min-height: 100vh; }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(17, 24, 39, 0.06);
}
.brand {
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}
.topbar-search {
  margin-left: auto;
  width: min(330px, 28vw);
  position: relative;
}
.topbar-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #00a7c4;
}
.topbar-search input {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px 9px 40px;
  background: #f5f5f5;
}
.icon-btn, .notification-btn, .user-chip, .logout-btn, .sidebar-overlay {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.notification-btn {
  position: relative;
  color: var(--amber);
  font-size: 22px;
  padding: 8px;
}
.notification-btn span {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 19px;
  height: 19px;
  border-radius: 8px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
}
.user-chip:hover { background: #f3f4f6; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.user-copy { text-align: left; }
.user-copy strong, .user-copy small {
  display: block;
  line-height: 1.15;
}
.user-copy small { color: var(--muted); }

.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  z-index: 25;
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-link, .logout-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.nav-link i, .logout-btn i {
  font-size: 24px;
}
.nav-link:hover {
  color: #374151;
  background: #f9fafb;
  transform: translateX(5px);
}
.nav-link.active {
  color: var(--red);
  background: rgba(196, 30, 58, 0.12);
}
.nav-link:nth-child(1) i { color: var(--green); }
.nav-link:nth-child(2) i { color: #ef4444; }
.nav-link:nth-child(3) i { color: var(--violet); }
.nav-link:nth-child(4) i { color: var(--blue); }
.nav-link:nth-child(5) i { color: var(--amber); }
.nav-link:nth-child(6) i { color: #ca8a04; }
.nav-link:nth-child(7) i { color: #64748b; }
.logout-btn {
  margin-top: auto;
  color: var(--danger);
  background: #fff7f7;
  width: 100%;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
  max-width: 100%;
}
.view-container { padding: 18px 22px 28px; }
.demo-ribbon {
  margin: 16px 22px 0;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-demo {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
}
.page-header, .section-box, .table-actions, .table-wrap, .kpi-card, .module-card, .alert-box {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}
.page-header {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 23px;
  flex: 0 0 auto;
}
.page-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
}
.page-title p {
  margin: 2px 0 0;
  color: var(--muted);
}
.welcome {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.welcome h1 {
  margin: 0 0 6px;
  font-size: 31px;
  font-weight: 850;
}
.welcome p {
  margin: 0;
  opacity: 0.95;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.kpi-card {
  padding: 18px;
  border-top: 4px solid var(--tone);
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--tone);
  font-size: 22px;
}
.kpi-label {
  margin-top: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
  font-weight: 800;
}
.kpi-value {
  font-size: 31px;
  line-height: 1;
  font-weight: 850;
  margin-top: 6px;
}
.trend {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}
.trend.good { color: var(--green); }
.trend.bad { color: var(--danger); }
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  gap: 18px;
}
.section-box {
  padding: 18px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 850;
}
.alert-list { display: grid; gap: 10px; }
.alert-row {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module-card {
  border-top: 4px solid var(--tone);
  padding: 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.module-card i {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--tone);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 11px;
}
.module-card strong {
  display: block;
  font-size: 17px;
}
.module-card span {
  color: var(--muted);
  font-size: 14px;
}
.filter-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
.filter button, .secondary-btn {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  background: var(--red);
  color: var(--white);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.secondary-btn { background: var(--blue); }
.table-actions {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.export-btn {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  min-height: 36px;
  padding: 7px 12px;
  cursor: pointer;
}
.export-btn.print { background: #4b5563; }
.export-btn.pdf { background: var(--red); }
.export-btn.excel { background: var(--green); }
.export-btn.blue { background: var(--blue); }
.table-wrap {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow-x: auto;
  margin-bottom: 18px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
.data-table thead { background: linear-gradient(135deg, #1f2937, #374151); }
.data-table th {
  color: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 13px 12px;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 14px;
  vertical-align: middle;
}
.data-table tr:hover td { background: linear-gradient(90deg, #fef2f2, var(--white)); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.badge.blue { background: var(--blue); }
.badge.green { background: var(--green); }
.badge.amber { background: var(--amber); }
.badge.red { background: var(--danger); }
.badge.violet { background: var(--violet); }
.badge.gray { background: #4b5563; }
.icon-action {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  cursor: pointer;
}
.icon-action.view { background: var(--blue); }
.icon-action.edit { background: var(--amber); }
.icon-action.docs { background: var(--violet); }
.icon-action.delete { background: var(--danger); }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.action-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.action-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
}
.action-card i {
  display: block;
  font-size: 44px;
  margin-bottom: 12px;
  color: var(--tone);
}
.action-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.action-card span {
  color: var(--muted);
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}
.form-row.full { grid-column: 1 / -1; }
.pdf-preview {
  height: 440px;
  background:
    linear-gradient(#f9fafb 30px, transparent 31px),
    repeating-linear-gradient(#ffffff 0 28px, #f3f4f6 29px 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  text-align: left;
  color: #374151;
}
.pdf-preview h3 {
  color: var(--red);
  margin-top: 0;
}
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .kpi-grid, .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-two { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --topbar-height: 64px; }
  .mobile-only { display: inline-grid; }
  .login-screen {
    padding: 14px;
    align-items: start;
    padding-top: 28px;
  }
  .login-panel {
    padding: 0;
    width: 100%;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.12);
  }
  .login-header {
    padding: 24px 18px 20px;
  }
  .logo-ring {
    width: 78px;
    height: 78px;
    margin-bottom: 12px;
  }
  .logo-ring img {
    width: 56px;
    height: 56px;
  }
  .login-header h1 {
    font-size: 24px;
  }
  .login-header p {
    font-size: 14px;
  }
  .login-body {
    padding: 18px;
  }
  .demo-access {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .demo-credentials {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .brand small, .topbar-search, .user-copy, .user-chip .bi-chevron-down { display: none; }
  .brand {
    flex: 1 1 auto;
    overflow: hidden;
  }
  .brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }
  .brand span {
    min-width: 0;
    overflow: hidden;
  }
  .brand strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .icon-btn { font-size: 26px; }
  .notification-btn {
    font-size: 20px;
    padding: 6px;
    flex: 0 0 auto;
  }
  .user-chip {
    padding: 4px;
    flex: 0 0 auto;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .sidebar {
    width: min(280px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar.show { transform: translateX(0); }
  .sidebar-overlay.show {
    position: fixed;
    inset: var(--topbar-height) 0 0 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
  }
  .main-content { margin-left: 0; }
  .view-container, .demo-ribbon {
    margin-left: 12px;
    margin-right: 12px;
  }
  .demo-ribbon {
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.35;
    padding: 9px 10px;
  }
  .view-container { padding: 14px 0 24px; }
  .page-header {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
  }
  .page-title {
    align-items: flex-start;
    gap: 10px;
  }
  .page-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .page-title h1 {
    font-size: 21px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .page-title p {
    font-size: 13px;
    line-height: 1.35;
  }
  .welcome {
    padding: 18px;
  }
  .welcome h1 {
    font-size: 23px;
    line-height: 1.15;
  }
  .welcome p {
    font-size: 14px;
    line-height: 1.35;
  }
  .kpi-grid, .module-grid, .actions-grid, .filters { grid-template-columns: 1fr; }
  .kpi-grid {
    gap: 12px;
  }
  .kpi-card,
  .module-card,
  .section-box,
  .filter-box {
    padding: 14px;
  }
  .kpi-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .kpi-label {
    font-size: 11px;
    margin-top: 10px;
  }
  .kpi-value {
    font-size: 26px;
  }
  .module-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .module-card i {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    grid-row: span 2;
  }
  .module-card strong {
    font-size: 15px;
  }
  .module-card span {
    font-size: 13px;
  }
  .action-card {
    padding: 18px 14px;
  }
  .action-card i {
    font-size: 34px;
  }
  .table-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    border-radius: 8px 8px 0 0;
  }
  .export-buttons,
  .page-header .export-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .export-btn,
  .action-primary,
  .secondary-btn,
  .filter button {
    width: 100%;
  }
  .form-grid { grid-template-columns: 1fr; }
  .table-wrap {
    overflow: visible;
    border-radius: 0 0 8px 8px;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .data-table {
    min-width: 0;
    display: block;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: grid;
    gap: 12px;
  }
  .data-table tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  }
  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    text-align: right;
  }
  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: left;
    flex: 0 0 42%;
  }
  .data-table td:last-child {
    border-bottom: 0;
  }
  .data-table td:last-child::before {
    align-self: center;
  }
  .icon-action {
    margin-right: 0;
    margin-left: 4px;
  }
  .badge {
    justify-content: center;
    text-align: center;
  }
  .pdf-preview {
    height: 58vh;
    padding: 16px;
    overflow: auto;
  }
  .swal2-popup {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 0 0 1rem !important;
  }
  .swal2-html-container {
    margin-left: 12px !important;
    margin-right: 12px !important;
    overflow-x: hidden !important;
  }
  .swal2-html-container table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 8px;
    gap: 6px;
  }
  .brand strong {
    font-size: 12px;
  }
  .notification-btn {
    font-size: 18px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .view-container, .demo-ribbon {
    margin-left: 8px;
    margin-right: 8px;
  }
  .data-table td {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    gap: 4px;
  }
  .data-table td::before {
    flex-basis: auto;
  }
}
