:root {
  --ink-900: #0f172a;
  --ink-700: #1f2a44;
  --ink-500: #4b5563;
  --mint-500: #22b8a7;
  --mint-700: #168a7a;
  --sun-500: #f59f00;
  --bg-100: #f6f7fb;
  --surface: #f1f5f9;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --ink-900: #e2e8f0;
  --ink-700: #cbd5f5;
  --ink-500: #94a3b8;
  --bg-100: #0b1220;
  --surface: #0f172a;
  --card: #111827;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Sora", sans-serif;
  background: radial-gradient(circle at top, #fef6e5 0%, #f6f7fb 40%, #eef6f5 100%);
  color: var(--ink-900);
  min-height: 100vh;
}

[data-theme="dark"] .card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.table {
  color: var(--ink-900);
}

.table > :not(caption) > * > * {
  border-color: var(--border);
}

[data-theme="dark"] body {
  background: radial-gradient(circle at top, #0b1220 0%, #0f172a 45%, #111827 100%);
}

[data-theme="dark"] .panel,
[data-theme="dark"] .auth-card {
  background: var(--card);
  border: 1px solid var(--border);
}

[data-theme="dark"] .table {
  color: var(--ink-700);
}

[data-theme="dark"] .table thead th {
  color: var(--ink-500);
}

[data-theme="dark"] .table td {
  color: var(--ink-700);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-check-input {
  background-color: #0f172a;
  border-color: var(--border);
  color: var(--ink-700);
}

[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink-700);
  -webkit-box-shadow: 0 0 0px 1000px #0f172a inset;
  box-shadow: 0 0 0px 1000px #0f172a inset;
  caret-color: var(--ink-700);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #0f172a;
  color: var(--ink-700);
  border-color: rgba(34, 184, 167, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(34, 184, 167, 0.2);
}

[data-theme="dark"] .table {
  background: transparent;
}

[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: transparent;
}

[data-theme="dark"] .btn-outline-secondary {
  color: var(--ink-700);
  border-color: var(--border);
}

[data-theme="dark"] .btn-outline-secondary:hover {
  color: #fff;
  border-color: rgba(34, 184, 167, 0.6);
  background: rgba(34, 184, 167, 0.2);
}

[data-theme="dark"] .btn-outline-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}

[data-theme="dark"] .btn-outline-danger:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .link-card {
  color: var(--ink-700);
}

[data-theme="dark"] .list-item {
  background: #0f172a;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-toggle {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.sidebar-backdrop {
  display: none;
}

.mobile-header {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(140deg, #22b8a7, #f59f00);
  display: inline-block;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.15);
  padding: 4px;
}

.brand.small .brand-mark {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
}

.nav-link {
  color: #cbd5f5;
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.nav-section {
  margin-top: 0.75rem;
}

.nav-sub {
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.nav-toggle {
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle::after {
  content: '+';
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.nav-toggle[aria-expanded="true"]::after {
  content: '-';
}

.nav-submenu {
  margin-left: 0.25rem;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link.active {
  background: rgba(34, 184, 167, 0.18) !important;
  color: #eaf6ff !important;
}

.nav-sub.active {
  background: rgba(34, 184, 167, 0.32) !important;
  box-shadow: inset 3px 0 0 rgba(34, 184, 167, 0.95);
  font-weight: 600;
}

.nav-sub[aria-current="page"] {
  background: rgba(34, 184, 167, 0.32) !important;
  box-shadow: inset 3px 0 0 rgba(34, 184, 167, 0.95);
  font-weight: 600;
}

.notification-bell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 184, 167, 0.14);
  color: var(--ink-900);
  text-decoration: none;
  position: relative;
}

.notification-bell:hover {
  background: rgba(34, 184, 167, 0.22);
  color: var(--ink-900);
}

[data-theme="dark"] .notification-bell {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

[data-theme="dark"] .notification-bell:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.bell-icon {
  font-size: 1.1rem;
}

.bell-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 6px 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink-900);
}

[data-theme="dark"] .topbar-icon {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}

.topbar-icon .bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  margin-left: 0;
}

.topbar-icon .icon {
  font-size: 1.1rem;
}

.notification-menu {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.notification-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.presence-menu {
  position: relative;
}

.presence-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.presence-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.presence-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.presence-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.presence-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.presence-info {
  display: grid;
  gap: 2px;
}

.presence-name {
  font-weight: 600;
}

.presence-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.presence-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #22c55e;
  color: #0f172a;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink-900);
  background: var(--surface);
}

.notification-item:hover {
  background: rgba(34, 184, 167, 0.08);
}

.notification-unread {
  border-color: rgba(34, 184, 167, 0.35);
  background: rgba(34, 184, 167, 0.12);
}

.notification-title {
  font-weight: 600;
}

.notification-subtitle {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notification-empty {
  padding: 12px;
  color: var(--ink-500);
  text-align: center;
}

.topbar .link {
  color: var(--mint-500);
  text-decoration: none;
}

[data-theme="dark"] .notification-item {
  color: var(--ink-700);
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .notification-unread {
  background: rgba(34, 184, 167, 0.18);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle .form-check-input {
  cursor: pointer;
}

.theme-toggle label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.user-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  width: 100%;
  padding: 0;
}

.user-menu {
  margin-left: 8px;
  margin-top: -4px;
}

.tag-search {
  margin-bottom: 8px;
}

.tag-select select {
  min-height: 140px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.user-name {
  font-weight: 600;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.7;
}

.content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.muted {
  color: var(--ink-500);
}

.pill {
  background: rgba(34, 184, 167, 0.14);
  color: var(--mint-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.kpi-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.kpi-label {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0;
}

.kpi-meta {
  color: var(--ink-500);
  font-size: 0.85rem;
}

.kpi-delta {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.delta-up {
  color: var(--mint-700);
}

.delta-down {
  color: #b91c1c;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

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

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 1.2rem;
  margin: 0;
}

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

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.list-item-unread {
  background: rgba(34, 184, 167, 0.08);
  border-color: rgba(34, 184, 167, 0.35);
}

.list-title {
  font-weight: 600;
}

.list-subtitle {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.list-value {
  font-weight: 600;
}

.form-panel h2 {
  margin-bottom: 16px;
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

.table td {
  vertical-align: middle;
}

.form-text {
  color: var(--ink-500);
}

[data-theme="dark"] .form-text {
  color: rgba(148, 163, 184, 0.85);
}

.modal-dark .modal-content {
  background: var(--card);
  color: var(--ink-900);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-dark .modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-dark .btn-close {
  filter: invert(1);
}

.modal-message-body {
  white-space: pre-wrap;
  color: var(--ink-700);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: end;
}

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

.truncate {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.text-muted {
  color: var(--ink-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 184, 167, 0.15);
  color: var(--mint-700);
}

.badge-warning {
  background: rgba(245, 159, 0, 0.18);
  color: #b26b00;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #dc2626;
}

.stock-zero td {
  background: rgba(239, 68, 68, 0.12);
  border-left-color: transparent;
  border-right-color: transparent;
}

.stock-zero td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.stock-zero td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

[data-theme="dark"] .stock-zero td {
  background: rgba(239, 68, 68, 0.14);
  border-left-color: transparent;
  border-right-color: transparent;
}

[data-theme="dark"] .stock-zero {
  border-left-color: transparent;
  border-right-color: transparent;
}

.has-tooltip {
  position: relative;
  cursor: default;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font-size: 0.7rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.has-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.badge-info {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: block;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
}

.product-thumb.placeholder {
  background: linear-gradient(135deg, rgba(34, 184, 167, 0.2), rgba(245, 159, 0, 0.2));
}

.product-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-thumb-select {
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.product-thumb-select img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
}

.row-inactive td {
  color: var(--ink-400);
  opacity: 0.7;
}

[data-theme="dark"] .row-inactive td {
  color: var(--ink-300);
  opacity: 0.6;
}

.detail-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--ink-500);
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
}

.btn-primary {
  background-color: var(--mint-500);
  border-color: var(--mint-500);
}

.btn-primary:hover {
  background-color: var(--mint-700);
  border-color: var(--mint-700);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.content .btn-ghost {
  border-color: var(--border);
  color: var(--ink-700);
}

.link {
  color: var(--mint-700);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  color: var(--mint-500);
}

.empty-state {
  text-align: center;
  color: var(--ink-500);
  padding: 20px;
}

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

.detail-label {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.detail-value {
  font-weight: 600;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  background: var(--card);
  padding: 36px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
}

.preview-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.permission-block {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.permission-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.permission-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-card {
  text-decoration: none;
  color: var(--ink-900);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.auth-title {
  font-size: 1.6rem;
}

.auth-subtitle {
  color: var(--ink-500);
  margin-bottom: 12px;
}

[data-theme="dark"] .auth-body {
  background: radial-gradient(circle at top, #0b1220 0%, #0f172a 45%, #111827 100%);
}

[data-theme="dark"] .auth-card {
  background: var(--card);
  border: 1px solid var(--border);
}

[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-subtitle,
[data-theme="dark"] .auth-card label {
  color: var(--ink-700);
}

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

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    position: sticky;
    top: 0;
    z-index: 800;
    background: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .mobile-header .brand {
    gap: 10px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(84vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1000;
    overflow-y: auto;
  }

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

  .sidebar .nav {
    flex-direction: column;
    gap: 0;
  }

  .content {
    padding: 24px 16px;
  }

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

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
    display: block;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 575px) {
  .sidebar {
    width: min(90vw, 320px);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header .btn {
    width: 100%;
  }

  .panel {
    padding: 18px;
  }

  .form-control,
  .form-select {
    font-size: 16px;
  }
}
