:root {
  color-scheme: light;
  --primary: #0b9cb5;
  --primary-dark: #0a7f93;
  --primary-soft: #e1f4f7;
  --sidebar: #e3e7eb;
  --sidebar-hover: #d6dde4;
  --sidebar-text: #2a3440;
  --sidebar-text-muted: #5b6673;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --header-bg: #0b9cb5;
  --header-text: #ffffff;
  --header-chip-bg: rgba(255, 255, 255, 0.14);
  --icon-btn-border: rgba(255, 255, 255, 0.3);
  --icon-btn-hover: rgba(255, 255, 255, 0.18);
  --input-bg: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(12, 140, 67, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(12, 140, 67, 0.06), transparent 26%),
    linear-gradient(135deg, #f6f8ff, #eef1f7);
  z-index: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.app-sidebar {
  width: 250px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 18px 18px 28px;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.86rem;
  color: var(--sidebar-text-muted);
}

.brand-logo {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.sidebar-search input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  margin-bottom: 10px;
}

.sidebar-search input::placeholder {
  color: var(--muted);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-section {
  margin-bottom: 4px;
}

.perm-hidden {
  display: none !important;
}

.menu-title {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sidebar-text-muted);
  margin: 12px 8px 4px;
}

.menu-toggle {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sidebar-text);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu-toggle:hover {
  background: var(--sidebar-hover);
  border-color: rgba(31, 41, 55, 0.08);
}

.menu-label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.menu-link:hover .menu-icon,
.menu-toggle:hover .menu-icon,
.menu-link.active .menu-icon,
.menu-toggle.open .menu-icon {
  opacity: 1;
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sidebar-text);
  border-bottom: 2px solid var(--sidebar-text);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.menu-toggle.open .chevron {
  transform: rotate(225deg);
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sidebar-text);
  border: 1px solid transparent;
  justify-content: flex-start;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-link:hover {
  background: var(--sidebar-hover);
  border-color: rgba(31, 41, 55, 0.08);
}

.menu-link.active {
  position: relative;
  background: rgba(11, 156, 181, 0.18);
  border-color: rgba(11, 156, 181, 0.45);
  color: #0a5a69;
}

.menu-link.active::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  display: inline-block;
  opacity: 0;
}

.menu-link.active .menu-dot {
  opacity: 1;
}

.menu-sub {
  padding-left: 32px;
  font-size: 0.94rem;
  color: var(--sidebar-text);
}

.menu-children {
  display: none;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px dashed rgba(31, 41, 55, 0.12);
}

.menu-children.open {
  display: block;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1025;
}

.app-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

body.no-sidebar .app-sidebar,
body.no-sidebar .sidebar-backdrop {
  display: none !important;
}

body.no-sidebar .app-content {
  margin-left: 0;
}

body.no-sidebar #sidebar-toggle {
  display: none !important;
}

.app-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

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

.header-brand {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 28px;
  width: auto;
  max-width: 180px;
  display: block;
}

.logo-preview {
  width: 110px;
  height: 70px;
  object-fit: contain;
  border: 1px dashed #cbd5f5;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.login-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.login-card {
  border-radius: 22px;
}

.icon-button {
  background: transparent;
  border: 1px solid var(--icon-btn-border);
  color: var(--header-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-button:hover {
  background: var(--icon-btn-hover);
}

.icon-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.theme-toggle {
  position: relative;
}

.icon-theme {
  width: 18px;
  height: 18px;
  position: absolute;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.icon-theme-sun {
  opacity: 0;
  transform: scale(0.75) rotate(-20deg);
}

.icon-theme-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle.is-dark .icon-theme-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle.is-dark .icon-theme-moon {
  opacity: 0;
  transform: scale(0.75) rotate(20deg);
}

.icon-bars,
.icon-bars::before,
.icon-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.icon-bars::before,
.icon-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.icon-bars::before {
  top: -6px;
}

.icon-bars::after {
  top: 6px;
}

.icon-bell {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search input {
  background: var(--header-chip-bg);
  border: 1px solid var(--icon-btn-border);
  color: var(--header-text);
  border-radius: 10px;
  padding: 8px 12px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--header-chip-bg);
  padding: 8px 12px;
  border-radius: 999px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.user-name {
  font-weight: 600;
  line-height: 1.1;
}

.user-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.notification-menu {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f3f6ff;
  font-weight: 600;
}

.notif-counter {
  font-size: 0.75rem;
  color: #fff;
  background: #1f7ae0;
  border-radius: 999px;
  padding: 2px 8px;
}

.notif-body {
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
}

.notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f6;
  text-decoration: none;
  color: #1e293b;
  display: block;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.notif-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-detail {
  font-size: 0.82rem;
  color: #475569;
  margin-top: 2px;
}

.notif-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.notif-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.notif-tag.danger {
  background: #ffe4e6;
  color: #b91c1c;
}

.notif-tag.warning {
  background: #fef3c7;
  color: #b45309;
}

.notif-empty {
  padding: 16px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.notif-footer {
  background: #f8fafc;
  padding: 8px 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.notif-link {
  font-size: 0.8rem;
  color: #1f7ae0;
  text-decoration: none;
}

.notif-link:hover {
  text-decoration: underline;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #0b9cb5;
}

.app-main {
  padding: 22px 26px 30px;
  flex: 1;
}

.content-wrapper {
  max-width: 1500px;
  margin: 0 auto;
}

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

.card h5,
.card h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-label {
  font-weight: 700;
  color: var(--text);
}

.text-muted,
.form-text {
  color: var(--muted) !important;
}

::placeholder {
  color: #94a3b8;
  opacity: 0.9;
}

.form-control,
.form-select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(12, 140, 67, 0.15);
  color: var(--text);
  background: #fff;
}

.badge,
.input-group-text,
.form-control,
.form-select {
  border-radius: 10px;
}

.badge.bg-success {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-success {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(11, 156, 181, 0.25);
}

.btn-success:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-success {
  color: var(--primary);
  border-color: rgba(11, 156, 181, 0.5);
}

.btn-outline-success:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(11, 156, 181, 0.25);
}

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

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(11, 156, 181, 0.4);
}

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

.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover {
  color: #fff;
}

.bg-primary-soft {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(11, 156, 181, 0.3);
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.page-title h2 {
  margin: 0;
  font-weight: 700;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.quick-links a {
  color: var(--primary);
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.toolbar .btn {
  border-radius: 10px;
}

.toolbar .dropdown-toggle {
  border-radius: 10px;
  border: 1px solid var(--border);
}

.toolbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-search label {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.toolbar-search .input-group {
  width: 260px;
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-card .table-responsive {
  margin-bottom: 0;
}

.table thead th {
  background: var(--surface-soft);
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.sort-indicator {
  display: inline-block;
  min-width: 10px;
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--muted);
}

.sort-indicator.active {
  color: var(--primary);
}

.table-filter th {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.table-filter .form-control,
.table-filter .form-select {
  font-size: 0.78rem;
  padding: 4px 8px;
  height: 28px;
}

.table tbody td {
  border-color: var(--border);
  color: var(--text);
}

.table-hover tbody tr:hover {
  background: #f3f7ff;
}

.table-scroll {
  max-height: 520px;
  overflow: auto;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-ok {
  background: var(--primary);
}

.status-warn {
  background: #d97706;
}

.status-off {
  background: #cbd5e1;
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 999px;
  font-weight: 600;
}

.badge-soft {
  background: #f1f5f9;
  color: var(--text);
}

.list-group-item {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.modal {
  z-index: 9999;
  pointer-events: auto;
}

.modal-backdrop {
  z-index: 9998;
}

.modal-backdrop.show {
  opacity: 0.4;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.modal-content .form-control,
.modal-content .form-select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(12, 140, 67, 0.2);
}

.modal-content .form-control:disabled,
.modal-content .form-control[readonly],
.modal-content .form-select:disabled {
  background: #f8fafc;
  color: #475569;
  opacity: 1;
}

.venta-menu .list-group-item {
  border: none;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 6px;
}

.venta-menu .list-group-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.total-card .card-body {
  background: linear-gradient(135deg, rgba(12, 140, 67, 0.08), rgba(12, 140, 67, 0.02));
  border-radius: var(--radius);
}

.venta-table {
  min-height: 250px;
}

.ticket-preview {
  background: var(--surface-soft);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.ticket-paper {
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 10px;
  border-radius: 8px;
}
.flag-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.flag-py {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='0.6667' fill='%23D80027'/><rect y='0.6667' width='3' height='0.6667' fill='%23FFFFFF'/><rect y='1.3334' width='3' height='0.6666' fill='%230056B9'/><circle cx='1.5' cy='1' r='0.25' fill='%23FFFFFF'/><circle cx='1.5' cy='1' r='0.18' fill='%2300a65a'/><circle cx='1.5' cy='1' r='0.12' fill='%23FFFFFF'/><circle cx='1.5' cy='1' r='0.07' fill='%23D80027'/></svg>");
}
.flag-br {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5'><rect width='7' height='5' fill='%2300903d'/><polygon points='3.5,0.5 6.5,2.5 3.5,4.5 0.5,2.5' fill='%23fdd835'/><circle cx='3.5' cy='2.5' r='1.1' fill='%2300458f'/></svg>");
}
.flag-us {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 10'><rect width='19' height='10' fill='%23b22234'/><g fill='%23fff'><rect y='1' width='19' height='1'/><rect y='3' width='19' height='1'/><rect y='5' width='19' height='1'/><rect y='7' width='19' height='1'/><rect y='9' width='19' height='1'/></g><rect width='7.6' height='5.4' fill='%23003f87'/></svg>");
}
.flag-default {
  background-color: transparent;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #26b2c8;
  --primary-dark: #1b90a3;
  --primary-soft: rgba(38, 178, 200, 0.16);
  --sidebar: #111822;
  --sidebar-hover: #1b2432;
  --sidebar-text: #d9e3f0;
  --sidebar-text-muted: #93a4b8;
  --text: #dde6f3;
  --muted: #9eb0c4;
  --border: #2a384a;
  --bg: #0e141d;
  --surface: #172130;
  --surface-soft: #1d2938;
  --header-bg: #101925;
  --header-text: #e7eef8;
  --header-chip-bg: rgba(231, 238, 248, 0.09);
  --icon-btn-border: rgba(231, 238, 248, 0.28);
  --icon-btn-hover: rgba(231, 238, 248, 0.14);
  --input-bg: #131d2a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .menu-link.active {
  color: #dff7fb;
  border-color: rgba(38, 178, 200, 0.5);
  background: rgba(38, 178, 200, 0.2);
}

html[data-theme="dark"] .table {
  --bs-table-bg: var(--surface);
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: #1b2838;
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: #202d3d;
  --bs-table-hover-color: var(--text);
}

html[data-theme="dark"] .table thead th {
  background: var(--surface-soft);
  color: #c8d6e8;
}

html[data-theme="dark"] .table tbody td,
html[data-theme="dark"] .table tbody th {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  background: #202d3d;
  color: var(--text);
}

html[data-theme="dark"] .notif-header,
html[data-theme="dark"] .notif-footer,
html[data-theme="dark"] .notif-item:hover {
  background: #1b2736;
}

html[data-theme="dark"] .notif-item {
  background: #162130;
  color: #dce8f7;
  border-bottom-color: #29394c;
}

html[data-theme="dark"] .notif-empty {
  color: #8fa1b7;
}

html[data-theme="dark"] .notification-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .list-group-item {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .ticket-paper {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .ticket-paper {
  background: #f7f9fc;
  color: #111;
}

html[data-theme="dark"] .table-card,
html[data-theme="dark"] .toolbar {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .btn-light {
  background: #243448;
  border-color: #31455d;
  color: #e7eef8;
}

html[data-theme="dark"] .btn-light:hover {
  background: #30465f;
  border-color: #3a5572;
}

html[data-theme="dark"] .logo-preview {
  background: #111b29;
  border-color: #33465e;
}

@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

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

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

  .app-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .app-main {
    padding: 18px;
  }

  .toolbar-search {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar-search .input-group {
    width: 100%;
  }

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