@import url("https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --color-bg: #07111d;
  --color-bg-soft: #0d1b2a;
  --color-surface: #142231;
  --color-surface-light: #1c2d3d;
  --color-primary: #ff7a00;
  --color-primary-hover: #ff8f1f;
  --color-text: #ffffff;
  --color-muted: #b8c4d2;
  --color-border: rgba(255, 255, 255, 0.12);
  --ink: var(--color-bg);
  --navy: var(--color-bg-soft);
  --panel: var(--color-surface);
  --panel-2: var(--color-surface-light);
  --orange: var(--color-primary);
  --orange-2: var(--color-primary-hover);
  --white: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --soft: #eef2f6;
  --display-font: "Anton", "Arial Narrow", sans-serif;
  --body-font: "Montserrat", Arial, sans-serif;
}

body.theme-professional_blue,
body.theme-industrial_orange {
  --color-bg: #07111d;
  --color-bg-soft: #0d1b2a;
  --color-surface: #142231;
  --color-surface-light: #1c2d3d;
  --color-primary: #ff7a00;
  --color-primary-hover: #ff8f1f;
  --color-text: #ffffff;
  --color-muted: #b8c4d2;
  --color-border: rgba(255, 255, 255, 0.12);
}

body.theme-professional_blue {
  --color-bg: #061426;
  --color-bg-soft: #0b2038;
  --color-surface: #132b46;
  --color-surface-light: #1c3c5c;
  --color-primary: #1f8fff;
  --color-primary-hover: #47a5ff;
  --color-muted: #b7c8dc;
  --color-border: rgba(255, 255, 255, 0.13);
}

body.theme-light_commerce {
  --color-bg: #f4f6f8;
  --color-bg-soft: #ffffff;
  --color-surface: #ffffff;
  --color-surface-light: #f1f5f9;
  --color-primary: #ff7a00;
  --color-primary-hover: #e86d00;
  --color-text: #14202b;
  --color-muted: #5d6b7a;
  --color-border: rgba(20, 32, 43, 0.14);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body-font); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button[hidden],
[hidden] {
  display: none !important;
}

.login-body,
.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 34%),
    linear-gradient(180deg, var(--navy), var(--ink));
  color: var(--white);
}

body.theme-light_commerce.login-body,
body.theme-light_commerce.admin-body {
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f4f6f8);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  padding: 38px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.login-card img {
  max-height: 84px;
  height: auto;
  width: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.login-card h1,
.admin-topbar h1,
.admin-card h2 {
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}

.login-card p {
  margin: 8px 0 22px;
  color: var(--orange-2);
  text-align: center;
}

.login-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.login-card label {
  margin-bottom: 14px;
}

.login-card input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-filters input,
.admin-filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #07111d;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(7, 17, 29, 0.05);
}

.admin-form select,
.admin-filters select,
.bulk-actions select,
.pos-payment-box select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #07111d 50%),
    linear-gradient(135deg, #07111d 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.login-card input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.bulk-actions select:focus,
.pos-payment-box select:focus,
.pos-payment-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent);
  outline: none;
}

.login-card .admin-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 1rem;
}

.login-card a {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.admin-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--admin-text, #fff);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-text small {
  color: var(--orange-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar nav {
  display: grid;
  gap: 3px;
  align-content: start;
  flex: 1 1 auto;
}

.nav-label {
  margin: 14px 0 4px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-sidebar nav a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.8;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.admin-sidebar nav a.active {
  background: color-mix(in srgb, var(--orange) 18%, transparent);
  color: var(--orange-2);
  box-shadow: inset 3px 0 0 var(--orange);
}

.admin-sidebar nav a.active svg {
  opacity: 1;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.admin-user-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-meta strong {
  overflow: hidden;
  color: var(--admin-text, #fff);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta span {
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-logout {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.admin-logout svg {
  width: 16px;
  height: 16px;
}

.admin-logout:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  color: #ffb3b3;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar p {
  margin: 0 0 4px;
  color: var(--orange-2);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
}

.admin-topbar .admin-btn svg {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

.admin-card,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.admin-card {
  margin-bottom: 20px;
  padding: 22px;
}

.card-head,
.form-actions,
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-card h2 {
  margin: 0 0 16px;
  font-size: 1.18rem;
}

.card-head h2 { margin: 0; }

.card-head .admin-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

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

.stats-grid article {
  padding: 18px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stats-grid article:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
}

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

@media (max-width: 1280px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  --stat-accent: var(--orange);
}

.stat-card.tone-primary { --stat-accent: var(--orange); }
.stat-card.tone-success { --stat-accent: #2dd380; }
.stat-card.tone-danger { --stat-accent: #ff6b6b; }
.stat-card.tone-warn { --stat-accent: #ffb02e; }
.stat-card.tone-info { --stat-accent: #4da3ff; }
.stat-card.tone-violet { --stat-accent: #a78bfa; }

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: color-mix(in srgb, var(--stat-accent) 16%, transparent);
  color: var(--stat-accent);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stats-grid span:not(.stat-icon) {
  display: block;
  color: var(--admin-text, #fff);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stats-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

.admin-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--orange) 32%, transparent);
}

.admin-btn.primary:hover {
  border-color: transparent;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--orange) 44%, transparent);
}

.admin-btn.ghost {
  background: transparent;
}

.admin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

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

.quick-tile {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.quick-tile svg {
  width: 21px;
  height: 21px;
  margin-bottom: 6px;
  color: var(--orange-2);
}

.quick-tile strong {
  color: var(--admin-text, #fff);
  font-size: 0.92rem;
  font-weight: 700;
}

.quick-tile small {
  color: var(--muted);
  font-size: 0.76rem;
}

.quick-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
}

.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dash-columns .admin-card {
  margin-bottom: 0;
}

.low-stock-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.low-stock-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.low-stock-list li:last-child {
  border-bottom: 0;
}

.low-stock-list strong {
  display: block;
  overflow: hidden;
  color: var(--admin-text, #fff);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.low-stock-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.dash-empty {
  margin: 0;
  padding: 14px 2px;
  color: var(--muted);
  line-height: 1.5;
}

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

.alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid currentColor;
  border-radius: 10px;
  font-weight: 700;
}

.alert.success { background: rgba(27, 178, 99, 0.18); color: #7dffb6; }
.alert.error { background: rgba(255, 74, 74, 0.16); color: #ffb3b3; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-table td { color: rgba(255, 255, 255, 0.84); }
.admin-table tbody tr { transition: background 0.14s ease; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

.thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.actions {
  min-width: 250px;
  white-space: nowrap;
}

.admin-table th:last-child,
.admin-table td.actions {
  position: sticky;
  right: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--admin-bg-soft, #0d1b2a) 92%, white 8%);
}

.admin-table th:last-child {
  z-index: 3;
}

.action-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.table-action.edit {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.table-action.toggle {
  border-color: rgba(174, 185, 200, 0.32);
  color: rgba(255, 255, 255, 0.86);
}

.table-action:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.table-action.danger:hover {
  border-color: #ef4444;
  background: #ef4444;
}

.action-row form {
  display: inline-flex;
  margin: 0;
}

.thumb.wide {
  width: 92px;
  height: 52px;
}

.carousel-table td strong,
.carousel-table td small {
  display: block;
}

.carousel-table td small {
  margin-top: 4px;
  color: var(--admin-muted);
}

.section-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--admin-muted);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tabs a:hover,
.admin-tabs a.active {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.14);
  color: #ffffff;
}

.config-form.tab-carousel,
.config-form.tab-general .home-panel,
.config-form.tab-general .contact-panel,
.config-form.tab-home .general-panel,
.config-form.tab-home .contact-panel,
.config-form.tab-contact .general-panel,
.config-form.tab-contact .home-panel,
.config-carousel-panel {
  display: none;
}

.config-carousel-panel.active {
  display: block;
}

.carousel-slide-dialog {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0;
  background: #0d1b2a;
  color: var(--admin-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.carousel-slide-dialog:not([open]) {
  display: none;
}

.carousel-slide-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.carousel-slide-form {
  margin: 0;
  max-width: none;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.carousel-modal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -18px -18px 4px;
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 18px;
  background: rgba(13, 27, 42, 0.96);
}

.carousel-modal-head h2,
.carousel-modal-head p {
  margin: 0;
}

.carousel-modal-head p {
  margin-top: 5px;
  color: var(--admin-muted);
  line-height: 1.35;
}

.carousel-slide-dialog .hero-config-grid {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  min-width: 0;
}

.carousel-slide-dialog .hero-admin-preview {
  min-height: 250px;
}

.carousel-slide-dialog .hero-current-preview {
  aspect-ratio: 16 / 5.6;
}

.carousel-slide-dialog .hero-crop-previews {
  position: sticky;
  top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.admin-carousel-preview-block {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.admin-carousel-preview-block h3 {
  margin: 0;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.admin-carousel-preview-help {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.category-pill,
.status-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-pill {
  border: 1px solid var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 18%, #07111d 82%);
  color: color-mix(in srgb, var(--cat-color) 84%, white 16%);
}

.status-pill.home-on {
  border: 1px solid rgba(244, 123, 0, 0.65);
  background: rgba(244, 123, 0, 0.2);
  color: #ffb15a;
}

.status-pill.home-off {
  border: 1px solid rgba(174, 185, 200, 0.35);
  background: rgba(174, 185, 200, 0.09);
  color: var(--muted);
}

.status-pill.active {
  border: 1px solid rgba(27, 178, 99, 0.55);
  background: rgba(27, 178, 99, 0.15);
  color: #80ffba;
}

.status-pill.inactive {
  border: 1px solid rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.14);
  color: #ffb0b0;
}

.status-pill.stock-ok {
  border: 1px solid rgba(27, 178, 99, 0.55);
  background: rgba(27, 178, 99, 0.15);
  color: #80ffba;
}

.status-pill.stock-low {
  border: 1px solid rgba(255, 154, 31, 0.65);
  background: rgba(255, 154, 31, 0.18);
  color: #ffd08a;
}

.status-pill.stock-out {
  border: 1px solid rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.14);
  color: #ffb0b0;
}

.status-pill.stock-free {
  border: 1px solid rgba(174, 185, 200, 0.35);
  background: rgba(174, 185, 200, 0.09);
  color: var(--muted);
}

.stock-count {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.tag-pill {
  border: 1px solid rgba(255, 212, 59, 0.55);
  background: rgba(255, 212, 59, 0.14);
  color: #ffe27a;
}

.admin-price {
  display: grid;
  gap: 3px;
  color: var(--white);
  font-weight: 800;
}

.admin-price small {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.admin-grid.two {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.form-note {
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

.admin-form.wide {
  max-width: 1120px;
}

.form-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.form-section h2 {
  margin-bottom: 0;
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.theme-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.theme-card:hover,
.theme-card.selected {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.theme-card input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--orange);
}

.theme-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.theme-card-head strong {
  color: var(--white);
  font-weight: 800;
}

.theme-card-head span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--orange-2);
  font-size: 0.76rem;
  font-weight: 800;
}

.theme-card small,
.theme-card em,
.site-logo-preview span {
  color: var(--muted);
  line-height: 1.5;
}

.theme-card em {
  font-style: normal;
  font-size: 0.86rem;
}

.theme-swatches {
  display: flex;
  gap: 7px;
}

.theme-swatches i {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-logo-config {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.site-logo-preview {
  display: grid;
  gap: 10px;
}

.logo-frame {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.logo-frame img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.stock-alert {
  display: grid;
  gap: 6px;
  border-color: rgba(255, 154, 31, 0.45);
  background: rgba(255, 154, 31, 0.12);
  color: var(--white);
}

.stock-alert strong {
  color: var(--orange-2);
}

.hero-config-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.hero-config-grid > * {
  min-width: 0;
}

.hero-current-preview {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.hero-admin-preview {
  position: sticky;
  top: 22px;
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: var(--preview-align, flex-start);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  overflow: hidden;
  background-image: linear-gradient(rgba(7, 17, 29, var(--preview-overlay, 0.65)), rgba(7, 17, 29, var(--preview-overlay, 0.65))), var(--preview-image);
  background-position: var(--preview-position, center center);
  background-size: cover;
  text-align: var(--preview-text-align, left);
}

.hero-admin-preview > div {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.hero-admin-preview p {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-admin-preview h3 {
  display: grid;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-admin-preview small {
  display: block;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-admin-preview strong {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-admin-preview.kawaii-crop-preview {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 240px;
  min-height: 0;
  justify-content: flex-start;
  aspect-ratio: 16 / 5.6;
  padding: 22px 22px 22px clamp(30px, 5vw, 58px);
  background-image:
    linear-gradient(90deg, rgba(255, 225, 240, 0.97) 0%, rgba(255, 225, 240, 0.9) 18%, rgba(255, 225, 240, 0.58) 31%, rgba(255, 225, 240, 0.18) 46%, rgba(255, 225, 240, 0) 60%),
    var(--preview-image);
  background-position: left center, 65% center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.hero-admin-preview.kawaii-crop-preview::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  z-index: 1;
  width: 1px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(240, 93, 164, 0.26);
  pointer-events: none;
}

.hero-admin-preview.kawaii-crop-preview > div {
  max-width: 34%;
}

.hero-admin-preview.kawaii-crop-preview h3 {
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  line-height: 0.95;
}

.crop-safe-zone,
.crop-focus-zone,
.mobile-crop-preview > span {
  position: absolute;
  z-index: 3;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(13, 27, 42, 0.78);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
  pointer-events: none;
}

.crop-safe-zone {
  top: 10px;
  left: 10px;
}

.crop-focus-zone {
  right: 10px;
  bottom: 10px;
}

.mobile-crop-preview {
  position: relative;
  justify-self: center;
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffe1f0;
}

.mobile-crop-preview > span {
  top: 8px;
  left: 8px;
}

.mobile-crop-preview > div {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, rgba(255, 216, 234, 0.92) 0%, rgba(255, 216, 234, 0.62) 45%, rgba(255, 216, 234, 0.12) 72%, rgba(255, 216, 234, 0) 100%),
    linear-gradient(0deg, rgba(255, 216, 234, 0.9) 0%, rgba(255, 216, 234, 0) 36%),
    var(--preview-image);
  background-position: left center, center bottom, center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
}

@media (max-width: 1180px) {
  .carousel-slide-dialog .hero-config-grid {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  }

  .hero-admin-preview.kawaii-crop-preview {
    height: 210px;
    padding: 18px;
  }

  .hero-admin-preview.kawaii-crop-preview h3 {
    font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  }

  .hero-admin-preview.kawaii-crop-preview small,
  .hero-admin-preview.kawaii-crop-preview strong {
    margin-top: 10px;
  }
}

@media (max-width: 1040px) {
  .carousel-slide-dialog {
    width: min(980px, calc(100vw - 24px));
  }

  .carousel-slide-dialog .hero-config-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide-dialog .hero-crop-previews {
    position: static;
  }
}

@media (max-width: 720px) {
  .carousel-slide-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .carousel-modal-head {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .carousel-modal-head .form-actions {
    justify-content: stretch;
  }

  .carousel-modal-head .form-actions .admin-btn {
    flex: 1;
  }

  .carousel-slide-dialog .hero-crop-previews {
    grid-template-columns: 1fr;
  }

  .hero-admin-preview.kawaii-crop-preview {
    height: 190px;
    padding: 14px;
  }

  .hero-admin-preview.kawaii-crop-preview > div {
    max-width: 48%;
  }

  .hero-admin-preview.kawaii-crop-preview h3 {
    font-size: clamp(1.05rem, 6vw, 1.7rem);
  }

  .hero-admin-preview.kawaii-crop-preview small {
    display: none;
  }

  .crop-safe-zone,
  .crop-focus-zone,
  .mobile-crop-preview > span {
    border-radius: 8px;
    font-size: 0.62rem;
  }

  .mobile-crop-preview {
    width: min(150px, 48vw);
  }
}

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

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.check-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-form label.check {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.check input {
  width: auto;
  min-height: 0;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px auto auto auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.filter-field {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  min-width: 0;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  white-space: nowrap;
}

.filter-check input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--orange);
}

.bulk-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.bulk-actions select {
  min-height: 42px;
  min-width: min(260px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #07111d;
  padding: 0 12px;
}

.image-preview {
  width: 180px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.image-preview.square {
  width: 160px;
  height: 160px;
}

.pos-shell {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
}

.pos-head,
.pos-grid,
.pos-actions {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pos-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--admin-muted);
  line-height: 1.5;
}

.pos-notice {
  border: 1px solid rgba(255, 154, 31, 0.5);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 154, 31, 0.12);
  color: #ffd08a;
  font-weight: 800;
}

.pos-quote-detail-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 13px 16px;
  line-height: 1.35;
}

.pos-quote-detail-notice strong {
  color: #fff2d8;
  text-transform: uppercase;
}

.pos-grid {
  align-items: stretch;
}

.pos-panel {
  flex: 1 1 620px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.pos-customer-document-panel {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
}

.pos-customer-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pos-customer-compact > div:first-child {
  min-width: 0;
}

.pos-customer-compact strong,
.pos-customer-compact small {
  display: block;
}

.pos-customer-compact strong {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-customer-compact small {
  max-width: 360px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 0.78rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-customer-compact .action-row {
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: nowrap;
}

.pos-customer-compact .admin-btn {
  min-height: 34px;
  padding: 0 13px;
}

.pos-document-compact,
.pos-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pos-document-compact {
  grid-template-columns: minmax(250px, 1.1fr) minmax(260px, 1fr) minmax(210px, 0.85fr);
  align-items: center;
}

.pos-document-compact label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.pos-document-compact select,
.pos-document-compact input {
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.88rem;
}

.pos-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pos-quick-customer {
  border-top: 1px solid var(--admin-border);
  margin-top: 12px;
  padding-top: 12px;
}

.pos-quick-customer h3 {
  margin: 0 0 10px;
  color: var(--admin-text);
}

.pos-scan-panel {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
}

.pos-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-muted);
  font-weight: 800;
}

.pos-search-row {
  display: block;
}

.pos-search-input {
  width: 100%;
  min-height: 58px;
  border: 2px solid color-mix(in srgb, var(--orange) 78%, white 22%);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: #07111d;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.pos-message {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.pos-manual-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--admin-border);
  padding-top: 14px;
}

.pos-manual-search span {
  color: var(--admin-muted);
  font-weight: 700;
}

.pos-message.error {
  background: rgba(255, 74, 74, 0.18);
  color: #ffb3b3;
}

.pos-message.success {
  background: rgba(27, 178, 99, 0.2);
  color: #7dffb6;
}

.pos-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pos-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--admin-text);
  cursor: pointer;
  text-align: left;
}

.pos-result:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pos-result img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.pos-result span {
  display: grid;
  gap: 4px;
}

.pos-result small,
.pos-table small {
  color: var(--admin-muted);
}

.pos-total-card {
  flex: 0 0 min(360px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 20px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.pos-total-card span {
  color: #c05600;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-total-card strong {
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.pos-total-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d8dee8;
  padding-top: 10px;
}

.pos-total-card small {
  color: #475569;
  font-weight: 700;
}

.pos-total-card b {
  color: #0f172a;
}

.pos-items-panel {
  border-color: rgba(255, 255, 255, 0.55);
  background: #f8fafc;
  color: #0f172a;
}

.pos-items-panel h2 {
  color: #0f172a;
}

.pos-items-panel .table-wrap {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  min-height: 230px;
}

.pos-items-panel .admin-table th:last-child,
.pos-items-panel .admin-table td.actions,
.pos-table th:last-child,
.pos-table td:last-child {
  background: #f8fafc;
}

.pos-table {
  min-width: 980px;
}

.pos-table th,
.pos-table td {
  border-bottom: 1px solid #e2e8f0;
}

.pos-table th {
  background: #e9eef6;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pos-table td {
  color: #1e293b;
}

.pos-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.pos-table td strong {
  display: block;
  color: #0f172a;
}

.pos-table small {
  color: #64748b;
}

.pos-table .table-action {
  border-color: #cbd5e1;
  background: #eef2f7;
  color: #0f172a;
}

.pos-mini-input {
  width: 110px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #07111d;
}

.pos-qty {
  display: grid;
  grid-template-columns: 34px 82px 34px;
  gap: 6px;
  align-items: center;
}

.pos-qty button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #eef2f7;
  color: #0f172a;
  cursor: pointer;
  font-weight: 900;
}

.pos-qty input {
  width: 82px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #07111d;
  text-align: center;
}

.pos-checkout-bar {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) auto;
  gap: 16px;
  align-items: end;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.pos-payment-box {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.pos-payment-box > label {
  flex: 0 0 150px;
}

.pos-payment-box label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-weight: 800;
}

.pos-payment-box select,
.pos-payment-box input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #07111d;
  padding: 10px 12px;
}

.pos-cash-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.pos-cash-box[hidden] {
  display: none;
}

.pos-paid-control {
  display: grid;
  gap: 6px;
  flex: 0 1 260px;
  min-width: 210px;
}

.pos-cash-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pos-cash-chips button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.pos-change-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 170px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #e7f8ef;
  color: #14532d;
}

.pos-change-box.missing {
  background: #fee2e2;
  color: #991b1b;
}

.pos-change-box span {
  font-weight: 900;
}

.pos-change-box strong {
  font-family: var(--display-font);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.pos-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pos-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 22px;
  background: #142231;
  color: #fff;
}

.pos-product-dialog {
  width: min(760px, calc(100% - 32px));
}

.pos-customer-dialog {
  width: min(820px, calc(100% - 32px));
}

.pos-quick-customer-dialog {
  width: min(720px, calc(100% - 32px));
}

.pos-quick-customer-dialog .pos-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-quick-customer-dialog .form-actions {
  margin-top: 4px;
}

.pos-dialog p {
  margin: 6px 0 0;
  color: var(--admin-muted);
  line-height: 1.5;
}

.pos-modal-search {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #07111d;
  font-weight: 800;
}

.pos-modal-status {
  min-height: 24px;
  color: var(--admin-muted);
  font-weight: 700;
}

.pos-modal-results {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.pos-modal-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.pos-modal-result:has([data-select-customer]) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pos-modal-result.selected,
.pos-modal-result:hover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 14%, transparent);
}

.pos-modal-result img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.pos-modal-result div {
  display: grid;
  gap: 4px;
}

.pos-modal-result strong {
  color: var(--admin-text);
}

.pos-modal-result small {
  color: var(--admin-muted);
}

.pos-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.pos-history-filters {
  grid-template-columns: minmax(180px, 1fr) 150px 150px minmax(160px, 0.8fr) minmax(150px, 0.8fr) auto;
}

.pos-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.pos-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: transparent;
  color: var(--admin-muted);
  cursor: pointer;
  font-weight: 900;
}

.pos-tabs button.active {
  background: var(--orange);
  color: #fff;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-pagination span,
.admin-pagination a {
  min-height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--admin-muted);
  font-weight: 800;
}

.admin-pagination a.active,
.admin-pagination a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.admin-pagination a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.pos-stats-filters {
  grid-template-columns: 150px 150px minmax(160px, 0.8fr) minmax(150px, 0.8fr) auto;
}

.pos-stats-status,
.pos-chart-empty {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--admin-muted);
  font-weight: 800;
}

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

.pos-stats-summary article span {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.pos-stats-summary article small {
  display: block;
  margin-top: 8px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.pos-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pos-chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.pos-chart-card h3 {
  margin: 0;
  color: var(--admin-text);
}

.pos-chart-card p {
  margin: 5px 0 14px;
  color: var(--admin-muted);
}

.pos-chart-canvas {
  position: relative;
  height: 320px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.pos-chart-canvas canvas {
  display: block;
  max-width: 100% !important;
}

.demo-actions form {
  margin: 0;
}

.pos-chart-row {
  display: grid;
  grid-template-columns: 92px minmax(140px, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--admin-border);
}

.pos-chart-row span {
  color: var(--admin-muted);
  font-weight: 800;
}

.pos-chart-row div {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.pos-chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.pos-chart-row strong {
  color: var(--admin-text);
  text-align: right;
}

.pos-chart-row small {
  color: var(--admin-muted);
}

.cancel-reason-input {
  width: 170px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #07111d;
}

.pos-history-table {
  min-width: 820px;
}

.pos-history-table .actions {
  min-width: 150px;
}

.cancel-sale-dialog {
  width: min(420px, calc(100% - 32px));
}

.cancel-sale-dialog p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.45;
}

.cancel-sale-dialog strong {
  color: var(--admin-text);
}

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

.pos-detail-grid h3 {
  margin: 0 0 10px;
  color: var(--orange-2);
}

.pos-detail-grid p {
  margin: 7px 0;
  color: var(--admin-muted);
}

.pos-detail-grid strong {
  color: var(--admin-text);
}

.pos-cancelled {
  margin: 12px 0;
  border: 2px solid rgba(255, 74, 74, 0.65);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 74, 74, 0.16);
  color: #ffb3b3;
  font-weight: 900;
  text-align: center;
}

.pos-summary {
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin: 18px 0 0 auto;
}

.pos-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  border-bottom: 1px solid var(--admin-border);
  padding: 8px 0;
}

.pos-summary .total {
  color: var(--orange-2);
  font-size: 1.2rem;
}

.products-table {
  min-width: 980px;
}

.categories-table {
  min-width: 560px;
}

.pos-table th:last-child,
.pos-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
}

@media (max-width: 1500px) {
  .admin-body {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding: 16px 12px;
  }

  .admin-brand img {
    width: 36px;
    height: 36px;
  }

  .admin-main {
    padding: 22px;
  }

  .admin-topbar {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .admin-topbar h1 {
    font-size: 1.45rem;
  }

  .admin-card {
    padding: 18px;
  }

  .admin-table th,
  .admin-table td {
    padding: 9px 10px;
  }

  .thumb {
    width: 46px;
    height: 46px;
  }

  .products-table {
    min-width: 0;
  }

  .products-table th:nth-child(4),
  .products-table td:nth-child(4),
  .products-table th:nth-child(9),
  .products-table td:nth-child(9),
  .products-table th:nth-child(10),
  .products-table td:nth-child(10),
  .products-table th:nth-child(11),
  .products-table td:nth-child(11) {
    display: none;
  }

  .products-table .actions {
    min-width: 190px;
  }

  .products-table .action-row,
  .categories-table .action-row {
    gap: 8px;
  }

  .products-table .table-action,
  .categories-table .table-action {
    min-height: 32px;
    padding: 0 10px;
  }

  .admin-grid.two {
    grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
    gap: 18px;
  }

  .categories-table .actions {
    min-width: 190px;
  }

  .pos-history-filters {
    grid-template-columns: minmax(190px, 1fr) 150px 150px minmax(170px, 0.85fr) minmax(160px, 0.75fr) auto;
  }

  .pos-history-table {
    min-width: 0;
  }

  .pos-history-table th,
  .pos-history-table td {
    padding: 8px 9px;
  }

  .pos-history-table th:nth-child(3),
  .pos-history-table td:nth-child(3) {
    display: none;
  }

  .pos-history-table th:nth-child(6),
  .pos-history-table td:nth-child(6) {
    display: none;
  }

  .pos-history-table th:nth-child(5),
  .pos-history-table td:nth-child(5) {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pos-history-table .actions {
    min-width: 145px;
  }

  .pos-history-table .action-row {
    gap: 8px;
  }

  .pos-shell {
    gap: 12px;
  }

  .pos-head p,
  .pos-notice-compact {
    display: none;
  }

  .pos-head h2,
  .pos-items-panel h2 {
    margin: 0;
    font-size: 1.35rem;
  }

  .pos-grid {
    gap: 12px;
  }

  .pos-panel {
    padding: 14px;
  }

  .pos-search-input {
    min-height: 50px;
  }

  .pos-manual-search {
    margin-top: 10px;
    padding-top: 10px;
  }

  .pos-total-card {
    flex-basis: 310px;
    gap: 8px;
    padding: 16px;
  }

  .pos-total-card strong {
    font-size: 3.1rem;
  }

  .pos-table {
    min-width: 900px;
  }

  .pos-table th:first-child,
  .pos-table td:first-child,
  .pos-table th:nth-child(4),
  .pos-table td:nth-child(4) {
    display: none;
  }

  .pos-mini-input {
    width: 86px;
  }

  .pos-qty {
    grid-template-columns: 30px 66px 30px;
  }

  .pos-qty input {
    width: 66px;
  }

  .pos-checkout-bar {
    gap: 10px;
    padding: 12px;
  }

  .pos-actions {
    gap: 8px;
  }

  .pos-chart-canvas {
    height: 270px;
  }
}

@media (min-width: 1501px) {
  .products-table,
  .categories-table {
    min-width: 100%;
  }
}

@media (max-width: 1500px), (max-height: 820px) {
  .admin-page-pos .admin-main {
    padding: 10px 18px 10px;
  }

  .admin-page-pos .admin-topbar {
    align-items: center;
    margin-bottom: 8px;
  }

  .admin-page-pos .admin-topbar p {
    display: none;
  }

  .admin-page-pos .admin-topbar h1 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .admin-page-pos .admin-topbar .admin-btn {
    min-height: 38px;
  }

  .admin-page-pos .pos-shell {
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 12px;
  }

  .admin-page-pos .pos-head {
    margin-bottom: -2px;
  }

  .admin-page-pos .pos-head h2 {
    display: none;
  }

  .admin-page-pos .pos-head .admin-btn {
    margin-left: auto;
    min-height: 34px;
  }

  .admin-page-pos .pos-grid {
    gap: 10px;
  }

  .admin-page-pos .pos-panel {
    padding: 10px 12px;
  }

  .admin-page-pos .pos-customer-document-panel {
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.55fr);
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
  }

  .admin-page-pos .pos-customer-compact .admin-btn {
    min-height: 30px;
    padding: 0 11px;
  }

  .admin-page-pos .pos-document-compact {
    grid-template-columns: minmax(240px, 1.1fr) minmax(230px, 1fr) minmax(190px, 0.8fr);
    gap: 8px;
  }

  .admin-page-pos .pos-document-compact label {
    gap: 7px;
    font-size: 0.78rem;
  }

  .admin-page-pos .pos-document-compact select,
  .admin-page-pos .pos-document-compact input {
    min-height: 28px;
    font-size: 0.84rem;
  }

  .admin-page-pos .pos-scan-panel {
    flex-basis: 560px;
  }

  .admin-page-pos .pos-search-label {
    margin-bottom: 5px;
  }

  .admin-page-pos .pos-search-input {
    min-height: 42px;
    font-size: 0.98rem;
  }

  .admin-page-pos .pos-manual-search {
    margin-top: 7px;
    padding-top: 7px;
  }

  .admin-page-pos .pos-total-card {
    flex-basis: 300px;
    gap: 5px;
    padding: 12px 15px;
  }

  .admin-page-pos .pos-total-card span {
    font-size: 0.86rem;
  }

  .admin-page-pos .pos-total-card strong {
    font-size: 2.35rem;
  }

  .admin-page-pos .pos-total-card div {
    padding-top: 5px;
  }

  .admin-page-pos .pos-items-panel {
    padding: 9px 12px;
  }

  .admin-page-pos .pos-items-panel .card-head {
    display: none;
  }

  .admin-page-pos .pos-items-panel .table-wrap {
    min-height: 230px;
  }

  .admin-page-pos .pos-table th,
  .admin-page-pos .pos-table td {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .admin-page-pos .pos-checkout-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .admin-page-pos .pos-payment-box {
    display: grid;
    grid-template-columns: minmax(140px, 170px) minmax(220px, 1fr);
    gap: 10px 12px;
    align-items: start;
  }

  .admin-page-pos .pos-payment-box > label {
    min-width: 140px;
    align-self: start;
  }

  .admin-page-pos .pos-payment-box select,
  .admin-page-pos .pos-payment-box input {
    min-height: 38px;
    padding: 7px 12px;
  }

  .admin-page-pos .pos-cash-box {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(150px, 180px);
    gap: 10px;
    align-items: start;
  }

  .admin-page-pos .pos-cash-box[hidden] {
    display: none;
  }

  .admin-page-pos .pos-paid-control {
    min-width: 0;
  }

  .admin-page-pos .pos-cash-chips {
    gap: 5px;
  }

  .admin-page-pos .pos-cash-chips button {
    min-height: 23px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .admin-page-pos .pos-change-box {
    align-self: end;
    min-height: 38px;
    padding: 7px 10px;
  }

  .admin-page-pos .pos-change-box strong {
    font-size: 1.35rem;
  }

  .admin-page-pos .pos-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .admin-page-pos .pos-actions .admin-btn {
    min-height: 36px;
    padding: 0 14px;
  }
}

@media (max-width: 900px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: auto; max-height: none; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-label { grid-column: 1 / -1; }
  .stats-grid,
  .admin-grid.two,
  .hero-config-grid,
  .theme-card-grid,
  .site-logo-config,
  .color-grid,
  .pos-modal-result,
  .pos-quick-grid,
  .pos-quick-customer-dialog .pos-quick-grid,
  .form-grid,
  .admin-filters { grid-template-columns: 1fr; }

  .pos-checkout-bar,
  .pos-payment-box,
  .pos-cash-box {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pos-document-compact,
  .admin-page-pos .pos-document-compact {
    grid-template-columns: 1fr;
  }

  .pos-customer-compact {
    align-items: center;
  }

  .pos-change-box,
  .pos-actions {
    align-self: stretch;
  }

  .pos-paid-control {
    min-width: 0;
  }

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

  .pos-manual-search {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .admin-main,
  .admin-sidebar { padding: 16px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .login-card { padding: 24px; }
  .pos-actions { grid-template-columns: 1fr; }
}

/* Admin theme policy: fixed dark base, theme only changes accents. */
.admin-body,
.login-body,
body.theme-industrial_orange.admin-body,
body.theme-industrial_orange.login-body,
body.theme-professional_blue.admin-body,
body.theme-professional_blue.login-body,
body.theme-light_commerce.admin-body,
body.theme-light_commerce.login-body {
  --admin-bg: #07111d;
  --admin-bg-soft: #0d1b2a;
  --admin-panel: rgba(255, 255, 255, 0.07);
  --admin-panel-strong: rgba(255, 255, 255, 0.1);
  --admin-text: #ffffff;
  --admin-muted: #b8c4d2;
  --admin-border: rgba(255, 255, 255, 0.13);
  --white: #ffffff;
  --ink: #07111d;
  --navy: #0d1b2a;
  --panel: #142231;
  --panel-2: #1c2d3d;
  --muted: var(--admin-muted);
  --line: var(--admin-border);
  background:
    radial-gradient(900px 480px at 0% 0%, color-mix(in srgb, var(--orange) 13%, transparent), transparent 62%),
    radial-gradient(820px 520px at 100% 100%, color-mix(in srgb, var(--orange) 6%, transparent), transparent 58%),
    linear-gradient(180deg, var(--admin-bg-soft), var(--admin-bg));
  background-attachment: fixed;
  color: var(--admin-text);
}

body.theme-industrial_orange.admin-body,
body.theme-industrial_orange.login-body {
  --orange: #ff7a00;
  --orange-2: #ff8f1f;
}

body.theme-professional_blue.admin-body,
body.theme-professional_blue.login-body {
  --orange: #1f8fff;
  --orange-2: #47a5ff;
}

body.theme-light_commerce.admin-body,
body.theme-light_commerce.login-body {
  --orange: #ff7a00;
  --orange-2: #ff9a1f;
}

.admin-sidebar {
  background: rgba(5, 15, 27, 0.86);
}

.login-card,
.admin-card,
.stats-grid article,
.form-section,
.theme-card,
.logo-frame,
.bulk-actions,
.filter-check {
  border-color: var(--admin-border);
  background: var(--admin-panel);
  color: var(--admin-text);
}

.theme-card:hover,
.theme-card.selected {
  background: color-mix(in srgb, var(--orange) 16%, transparent);
}

.login-card label,
.admin-form label,
.theme-card small,
.theme-card em,
.site-logo-preview span,
.field-help,
.form-note,
.stats-grid p,
.admin-user,
.login-card a {
  color: var(--admin-muted);
}

.theme-card-head strong,
.admin-card h2,
.admin-topbar h1,
.admin-user strong,
.admin-table td,
.admin-price,
.admin-form label.check,
.stock-alert {
  color: var(--admin-text);
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-filters input,
.admin-filters select,
.login-card input,
.bulk-actions select {
  border-color: rgba(255, 255, 255, 0.34);
  background: #ffffff;
  color: #07111d;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-filters input::placeholder,
.login-card input::placeholder {
  color: #5d6b7a;
}

.admin-btn.primary,
.table-action:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  border-color: transparent;
  color: #ffffff;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--admin-text);
}

.admin-sidebar nav a.active {
  background: color-mix(in srgb, var(--orange) 18%, transparent);
  color: var(--orange-2);
}

.admin-btn.ghost,
.table-action,
.admin-btn {
  color: #ffffff;
}

body.theme-kawaii.admin-body,
body.theme-kawaii.login-body {
  --orange: #e86fa8;
  --orange-2: #b399f4;
  --admin-bg: #f8f2fb;
  --admin-bg-soft: #fff7fb;
  --admin-panel: #ffffff;
  --admin-panel-strong: #fffafd;
  --admin-text: #3f3348;
  --admin-muted: #716176;
  --admin-border: rgba(157, 113, 151, 0.22);
  --white: #ffffff;
  --ink: #3f3348;
  --navy: #5b4a66;
  --panel: #ffffff;
  --panel-2: #fff7fb;
  --muted: var(--admin-muted);
  --line: var(--admin-border);
  background:
    linear-gradient(135deg, rgba(247, 168, 204, 0.18), transparent 34%),
    linear-gradient(180deg, #fff9fd, #f1f6ff);
  color: var(--admin-text);
}

body.theme-kawaii.admin-body .admin-sidebar {
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  border-right: 1px solid rgba(157, 113, 151, 0.2);
  box-shadow: 12px 0 34px rgba(93, 72, 104, 0.08);
}

body.theme-kawaii.admin-body .admin-brand span,
body.theme-kawaii.admin-body .admin-sidebar nav a,
body.theme-kawaii.admin-body .admin-user strong,
body.theme-kawaii.admin-body .admin-topbar h1,
body.theme-kawaii.admin-body .admin-card h2,
body.theme-kawaii.admin-body .stats-grid h2,
body.theme-kawaii.admin-body .admin-table td,
body.theme-kawaii.login-body .login-card h1 {
  color: #3f3348;
}

body.theme-kawaii.admin-body .admin-user,
body.theme-kawaii.admin-body .admin-topbar p,
body.theme-kawaii.admin-body .form-note,
body.theme-kawaii.admin-body .field-help,
body.theme-kawaii.admin-body .stats-grid p,
body.theme-kawaii.admin-body .site-logo-preview span,
body.theme-kawaii.login-body .login-card label,
body.theme-kawaii.login-body .login-card a {
  color: #716176;
}

body.theme-kawaii.admin-body .admin-card,
body.theme-kawaii.admin-body .stats-grid article,
body.theme-kawaii.admin-body .form-section,
body.theme-kawaii.admin-body .theme-card,
body.theme-kawaii.admin-body .logo-frame,
body.theme-kawaii.admin-body .bulk-actions,
body.theme-kawaii.admin-body .filter-check,
body.theme-kawaii.login-body .login-card {
  border-color: rgba(157, 113, 151, 0.22);
  background: #ffffff;
  color: #3f3348;
  box-shadow: 0 14px 36px rgba(93, 72, 104, 0.08);
}

body.theme-kawaii.admin-body .admin-sidebar nav a.active,
body.theme-kawaii.admin-body .admin-sidebar nav a:hover,
body.theme-kawaii.admin-body .admin-btn.primary,
body.theme-kawaii.login-body .login-btn,
body.theme-kawaii.admin-body .table-action:hover {
  border-color: #e86fa8;
  background: linear-gradient(135deg, #f7a8cc, #cdbbff);
  color: #3f3348;
}

body.theme-kawaii.admin-body .admin-btn,
body.theme-kawaii.admin-body .admin-btn.ghost,
body.theme-kawaii.admin-body .table-action {
  color: #3f3348;
}

body.theme-kawaii.admin-body .admin-form input,
body.theme-kawaii.admin-body .admin-form textarea,
body.theme-kawaii.admin-body .admin-form select,
body.theme-kawaii.admin-body .admin-filters input,
body.theme-kawaii.admin-body .admin-filters select,
body.theme-kawaii.login-body .login-card input,
body.theme-kawaii.admin-body .bulk-actions select {
  border-color: rgba(157, 113, 151, 0.28);
  background: #fffafd;
  color: #3f3348;
}

body.theme-kawaii.admin-body .admin-form input:focus,
body.theme-kawaii.admin-body .admin-form textarea:focus,
body.theme-kawaii.admin-body .admin-form select:focus,
body.theme-kawaii.login-body .login-card input:focus {
  border-color: #e86fa8;
  box-shadow: 0 0 0 3px rgba(247, 168, 204, 0.22);
  outline: none;
}

body.theme-kawaii.admin-body .admin-sidebar nav a:hover {
  background: rgba(232, 111, 168, 0.1);
  color: #3f3348;
}

body.theme-kawaii.admin-body .admin-sidebar nav a.active {
  background: rgba(232, 111, 168, 0.16);
  color: #b14a82;
}

body.theme-kawaii.admin-body .quick-tile {
  border-color: rgba(157, 113, 151, 0.22);
  background: #fffafd;
}

body.theme-kawaii.admin-body .quick-tile:hover {
  border-color: #e86fa8;
  background: rgba(247, 168, 204, 0.14);
}

body.theme-kawaii.admin-body .admin-table tbody tr:hover {
  background: rgba(93, 72, 104, 0.05);
}

body.theme-kawaii.admin-body .admin-logout:hover {
  border-color: #d8588f;
  background: rgba(232, 111, 168, 0.12);
  color: #b14a82;
}

/* Detalles globales del panel */
.admin-main::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.pos-modal-results::-webkit-scrollbar,
.carousel-slide-dialog::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.admin-main::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.pos-modal-results::-webkit-scrollbar-thumb,
.carousel-slide-dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--admin-muted, #b8c4d2) 36%, transparent);
}

.admin-main::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.pos-modal-results::-webkit-scrollbar-track,
.carousel-slide-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.admin-btn:focus-visible,
.table-action:focus-visible,
.admin-sidebar nav a:focus-visible,
.quick-tile:focus-visible,
.admin-logout:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
