body {
  background: #f5f6f8;
}

.app-shell {
  color: var(--bs-body-color);
}

.app-shell .card,
.app-shell .dropdown-menu,
.app-shell .modal-content,
.app-shell .offcanvas {
  border-color: rgba(15, 23, 42, .10);
  border-radius: .5rem;
}

.app-shell .card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.app-shell .btn {
  border-radius: .375rem;
}

.app-shell .btn-outline-secondary {
  border-color: rgba(15, 23, 42, .18);
  color: var(--bs-body-color);
}

.app-shell .btn-outline-secondary:hover {
  background: rgba(15, 23, 42, .05);
  color: var(--bs-body-color);
}

.app-shell .form-control,
.app-shell .form-select {
  border-radius: .375rem;
  border-color: rgba(15, 23, 42, .14);
}

.app-shell .form-control:focus,
.app-shell .form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), .4);
  box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .12);
}

.app-shell .table {
  margin-bottom: 0;
}

.app-shell .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.app-shell .product-table-shell {
  min-height: 72vh;
}

.app-shell .product-table-body {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
}

.app-shell .product-table-body .product-table-responsive {
  flex: 1 1 auto;
}

.app-shell .badge {
  border-radius: 999px;
  font-weight: 600;
}

.app-menu-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: .5rem;
  color: var(--bs-body-color);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.app-menu-button i {
  font-size: 1.2rem;
  line-height: 1;
}

.sidebar-link {
  border-radius: .375rem;
}

.sidebar-link.active {
  background-color: var(--bs-primary);
}

.page-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: .5rem;
}

.page-title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.page-subtitle {
  color: #6b7280;
}

.login-layout {
  min-height: 100vh;
  background: #eef1f5;
}

.login-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(30, 64, 175, .82)),
    url("data:image/svg+xml,%3Csvg width='1200' height='900' viewBox='0 0 1200 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08'%3E%3Cpath d='M0 160h1200M0 320h1200M0 480h1200M0 640h1200M180 0v900M420 0v900M690 0v900M960 0v900'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
}

.login-hero-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
}

.login-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.login-footnote {
  color: #6b7280;
  font-size: .9rem;
}

.pow-panel {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: .5rem;
}

.pow-title {
  color: #0f172a;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.pow-text {
  color: #111827;
  font-size: .95rem;
  margin-bottom: .55rem;
}

.pow-meta {
  color: #475569;
  font-size: .85rem;
  margin-top: .5rem;
}

.log-view {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .875rem;
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .page-title {
    font-size: 1.2rem;
  }
}

[data-bs-theme="dark"] body {
  background: #111318;
}

[data-bs-theme="dark"] .app-shell .card,
[data-bs-theme="dark"] .app-shell .dropdown-menu,
[data-bs-theme="dark"] .app-shell .modal-content,
[data-bs-theme="dark"] .app-shell .offcanvas,
[data-bs-theme="dark"] .page-card,
[data-bs-theme="dark"] .login-panel {
  border-color: rgba(255, 255, 255, .10);
}

[data-bs-theme="dark"] .app-shell .card,
[data-bs-theme="dark"] .page-card,
[data-bs-theme="dark"] .login-panel {
  background: #1a1d24;
}

[data-bs-theme="dark"] .app-menu-button {
  border-color: rgba(255, 255, 255, .12);
  color: #e5e7eb;
}

[data-bs-theme="dark"] .login-layout {
  background: #0f1116;
}

[data-bs-theme="dark"] .login-hero {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, .96), rgba(30, 41, 59, .90)),
    url("data:image/svg+xml,%3Csvg width='1200' height='900' viewBox='0 0 1200 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M0 160h1200M0 320h1200M0 480h1200M0 640h1200M180 0v900M420 0v900M690 0v900M960 0v900'/%3E%3C/g%3E%3C/svg%3E");
}
