
:root { color-scheme: light; }
html.dark { color-scheme: dark; }

body { font-feature-settings: 'cv11' 1, 'ss01' 1; }

body, aside, header, .card, button, a, input, select, textarea {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

* { scrollbar-width: thin; scrollbar-color: rgba(120,120,115,.35) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(120,120,115,.30); border-radius: 9999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(120,120,115,.55); background-clip: content-box; }

:focus-visible { outline: 2px solid #c96a26; outline-offset: 2px; border-radius: 6px; }

.card {
  border-radius: .75rem;
  border: 1px solid #e6e6e3;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25,25,24,.03);
}
html.dark .card { border-color: #2e2e34; background: #1a1a1a; box-shadow: none; }

.field {
  width: 100%;
  border-radius: .5rem;
  border: 1px solid #dcdcd8;
  background: #fff;
  padding: .55rem .8rem;
  font-size: .875rem;
  line-height: 1.35rem;
  color: #191918;
}
.field::placeholder { color: #8f8f8a; }
.field:focus { outline: none; border-color: #c96a26; box-shadow: 0 0 0 3px rgba(201,106,38,.16); }
html.dark .field { background: #202024; border-color: #2e2e34; color: #e6e6e3; }
html.dark .field::placeholder { color: #6f6f6a; }
html.dark .field:focus { border-color: #e08443; box-shadow: 0 0 0 3px rgba(224,132,67,.18); }

select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f8f8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.25rem; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:.5rem; border:1px solid transparent; font-weight:600; font-size:.875rem; line-height:1.25rem; padding:.5rem .95rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s; cursor:pointer; }
.btn-primary { background:#b45a1b; border-color:#b45a1b; color:#fff; box-shadow:0 1px 2px rgba(25,25,24,.08); }
.btn-primary:hover { background:#944915; border-color:#944915; }
.btn-ghost { background:#fff; border-color:#e0e0dc; color:#3f3f3b; }
.btn-ghost:hover { background:#f8f8f7; border-color:#d3d3cf; color:#191918; }
html.dark .btn-ghost { background:transparent; border-color:#2e2e34; color:#d3d3cf; }
html.dark .btn-ghost:hover { background:#26262b; border-color:#3a3a42; color:#fff; }
.btn-danger { background:rgba(225,29,72,.08); border-color:rgba(225,29,72,.18); color:#e11d48; }
.btn-danger:hover { background:rgba(225,29,72,.14); }
html.dark .btn-danger { color:#fb7185; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.modal-enter { animation: fadeUp .22s ease-out both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px) scale(.985); } to { opacity:1; transform:none; } }

.lbl { display:block; font-size:.8rem; font-weight:600; color:#55554f; margin-bottom:.4rem; }
html.dark .lbl { color:#a3a39e; }

.btn-icon { display:inline-grid; place-items:center; width:2.25rem; height:2.25rem; border-radius:.5rem; color:#6f6f6a; transition: background-color .15s, color .15s; cursor:pointer; }
.btn-icon:hover { background:#f2f2f0; color:#282826; }
html.dark .btn-icon { color:#a3a39e; }
html.dark .btn-icon:hover { background:#26262b; color:#e6e6e3; }

.sk-kpi-row { display:grid; gap:1px; background:#e6e6e3; border:1px solid #e6e6e3; border-radius:.75rem; overflow:hidden; box-shadow:0 1px 2px rgba(25,25,24,.03); }
.sk-kpi { background:#fff; padding:1rem 1.25rem; min-width:0; }
.sk-kpi-label { font-size:.8125rem; color:#6f6f6a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sk-kpi-value { margin-top:.35rem; font-size:1.625rem; line-height:2rem; font-weight:600; letter-spacing:-.02em; color:#191918; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sk-kpi-sub { margin-top:.2rem; font-size:.75rem; color:#8f8f8a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html.dark .sk-kpi-row { background:#2e2e34; border-color:#2e2e34; box-shadow:none; }
html.dark .sk-kpi { background:#1a1a1a; }
html.dark .sk-kpi-label { color:#a3a39e; }
html.dark .sk-kpi-value { color:#fff; }
html.dark .sk-kpi-sub { color:#6f6f6a; }
@media (max-width: 639px) {
  .sk-kpi { padding:.85rem 1rem; }
  .sk-kpi-value { font-size:1.375rem; line-height:1.75rem; }
}

:where(.sk-table) { width:100%; border-collapse:collapse; font-size:.875rem; }
:where(.sk-table) th { padding:.65rem 1rem; text-align:left; font-size:.75rem; font-weight:500; color:#6f6f6a; background:#f8f8f7; border-bottom:1px solid #e6e6e3; white-space:nowrap; }
:where(.sk-table) td { padding:.75rem 1rem; border-bottom:1px solid #f2f2f0; vertical-align:middle; }
:where(.sk-table) tbody tr:last-child td { border-bottom:0; }
:where(.sk-table) tbody tr:hover td { background:#fbfbfa; }
html.dark :where(.sk-table) th { color:#a3a39e; background:#202024; border-bottom-color:#2e2e34; }
html.dark :where(.sk-table) td { border-bottom-color:#26262b; }
html.dark :where(.sk-table) tbody tr:hover td { background:#1f1f22; }

.sk-badge { display:inline-flex; align-items:center; gap:.3rem; border-radius:.375rem; padding:.125rem .5rem; font-size:.75rem; line-height:1.125rem; font-weight:500; white-space:nowrap; }

.scanner-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 60vh;
  min-height: 240px;
  position: relative;
}
.scanner-viewport video,
.scanner-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
#reader { border: 0; }
#reader img { margin: 0 auto; }
#reader__dashboard_section_csr button { border-radius: .5rem !important; }

.f-hide, .p-hide { display: none !important; }

.sk-sh {
  background: linear-gradient(100deg, rgba(143,143,138,.10) 40%, rgba(143,143,138,.20) 50%, rgba(143,143,138,.10) 60%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.1s linear infinite;
}
.dark .sk-sh {
  background: linear-gradient(100deg, rgba(58,58,66,.45) 40%, rgba(72,72,80,.55) 50%, rgba(58,58,66,.45) 60%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.1s linear infinite;
}
@keyframes sk-shimmer { to { background-position: -200% 0; } }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

.btn-exp {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .625rem; border-radius: .5rem;
  font-size: 11px; font-weight: 600; line-height: 1;
  color: #b45a1b; transition: background-color .15s;
}
.btn-exp:hover { background: rgba(201,106,38,.1); }
.dark .btn-exp { color: #e08443; }
