:root {
  color-scheme: light;
  --app-ink: #172033;
  --app-muted: #64748b;
  --app-line: #e8edf5;
  --app-indigo: #4f46e5;
  --theme-primary: #4f46e5;
  --theme-primary-text: #fff;
  --theme-primary-hover: #4338ca;
  --theme-primary-soft: #e0e7ff;
  --theme-secondary: #0891b2;
  --theme-secondary-text: #fff;
  --theme-sidebar: #fff;
  --theme-sidebar-text: #172033;
  --theme-sidebar-muted: #64748b;
  --theme-background: #f6f8fc;
  --theme-card: #fff;
  --theme-text: #172033;
  --theme-card-text: #172033;
  --theme-muted: #64748b;
  --theme-card-muted: #64748b;
  --theme-line: #e8edf5;
}

html { scroll-behavior: smooth; }
.detail-action-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2fe;
  border-radius: .65rem;
  background: #eef2ff;
  padding: .45rem .75rem;
  color: #3730a3;
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.detail-action-button:hover:not(:disabled) {
  border-color: #a5b4fc;
  background: #e0e7ff;
}
.detail-action-button:disabled {
  cursor: not-allowed;
  opacity: .65;
}
.multi-order-items-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}
.multi-order-items-grid > article {
  min-width: 0;
}
.local-order-group-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.local-order-complete-action {
  display: flex;
  min-width: min(100%, 14rem);
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  margin-left: auto;
  text-align: right;
}
.local-order-complete-button {
  min-height: 2.5rem;
  max-width: 100%;
  border: 1px solid #dc2626;
  border-radius: .75rem;
  background: #ef1b2d;
  padding: .6rem 1rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.local-order-complete-button:hover:not(:disabled) {
  border-color: #b91c1c;
  background: #dc1025;
}
.local-order-complete-button:disabled {
  cursor: not-allowed;
}
@media (min-width: 640px) {
  .multi-order-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media (max-width: 420px) {
    .local-order-group-actions {
      align-items: stretch;
    }
    .local-order-group-actions > button,
    .local-order-complete-action,
    .local-order-complete-button {
      width: 100%;
    }
    .local-order-complete-action {
      align-items: stretch;
      text-align: left;
    }
  }
}
@media (min-width: 1024px) {
  .multi-order-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body {
  background: #f6f8fc;
  color: var(--app-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rejection-item-picker {
  min-width: 0;
  border: 1px solid #fecdd3;
  border-radius: .875rem;
  background: #fff7f8;
  padding: .75rem;
}
.rejection-item-picker-title {
  padding: 0 .25rem;
  color: #881337;
  font-size: .875rem;
  font-weight: 700;
}
.rejection-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .625rem;
  margin-top: .5rem;
}
.rejection-item-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}
.rejection-item-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.rejection-item-card {
  position: relative;
  display: flex;
  min-height: 5.25rem;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  padding: .75rem 2.5rem .75rem .8rem;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.rejection-item-option:hover .rejection-item-card {
  border-color: #fda4af;
}
.rejection-item-option:has(input:checked) .rejection-item-card {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 0 0 1px #e11d48;
}
.rejection-item-option:has(input:focus-visible) .rejection-item-card {
  outline: 3px solid rgb(99 102 241 / 24%);
  outline-offset: 2px;
}
.rejection-item-check {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: .4rem;
  color: transparent;
  background: #fff;
}
.rejection-item-check .app-icon {
  width: 1rem;
  height: 1rem;
}
.rejection-item-option:has(input:checked) .rejection-item-check {
  border-color: #e11d48;
  color: #fff;
  background: #e11d48;
}
.rejection-item-name {
  padding-right: .15rem;
  color: #1e293b;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}
.rejection-item-meta {
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.35;
}
.rejection-item-hint {
  margin-top: .625rem;
  color: #64748b;
  font-size: .75rem;
}
.sort-approval-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.sort-approval-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.sort-approval-card {
  position: relative;
  display: flex;
  min-height: 4.5rem;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  border: 1px solid #bae6fd;
  border-radius: .875rem;
  background: #fff;
  padding: .75rem 3rem .75rem .9rem;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.sort-approval-option:hover .sort-approval-card {
  border-color: #67e8f9;
}
.sort-approval-option:has(input:checked) .sort-approval-card {
  border-color: #0891b2;
  background: #ecfeff;
  box-shadow: 0 0 0 1px #0891b2;
}
.sort-approval-option:has(input:focus-visible) .sort-approval-card {
  outline: 3px solid rgb(99 102 241 / 24%);
  outline-offset: 2px;
}
.sort-approval-check {
  position: absolute;
  top: 50%;
  right: .9rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1.5px solid #cbd5e1;
  border-radius: .45rem;
  color: transparent;
  background: #fff;
}
.sort-approval-check .app-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.sort-approval-option:has(input:checked) .sort-approval-check {
  border-color: #0891b2;
  color: #fff;
  background: #0891b2;
}
.sort-approval-title {
  color: #164e63;
  font-size: .875rem;
  font-weight: 700;
}
.sort-approval-description {
  color: #475569;
  font-size: .75rem;
  line-height: 1.4;
}
.sort-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}
.local-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}
.local-decision-grid .sort-approval-card,
.local-decision-grid .sort-rejection-card {
  min-height: 3.75rem;
}
.local-goods-finished-option {
  display: flex;
  min-width: 0;
  min-height: 3.75rem;
  align-items: center;
  gap: .6rem;
  border: 1px solid #fdba74;
  border-radius: .875rem;
  background: #fff7ed;
  padding: .75rem .9rem;
  color: #9a3412;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.local-goods-finished-option:hover {
  border-color: #fb923c;
}
.local-goods-finished-option:has(input:checked) {
  border-color: #f97316;
  background: #ffedd5;
  box-shadow: 0 0 0 1px #f97316;
}
.local-goods-finished-option:has(input:focus-visible) {
  outline: 3px solid rgb(249 115 22 / 24%);
  outline-offset: 2px;
}
.local-goods-finished-option > input {
  accent-color: #ea580c;
}
.local-goods-finished-option > span {
  overflow-wrap: anywhere;
}
:root[data-theme-mode="dark"] .local-goods-finished-option {
  border-color: #9a3412;
  background: #431407;
  color: #fed7aa;
}
:root[data-theme-mode="dark"] .local-goods-finished-option:hover {
  border-color: #fb923c;
}
:root[data-theme-mode="dark"] .local-goods-finished-option:has(input:checked) {
  border-color: #f97316;
  background: #7c2d12;
}
.sort-rejection-option {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: .875rem;
  background: transparent;
  text-align: left;
}
.sort-rejection-card {
  position: relative;
  display: flex;
  min-height: 4.5rem;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  border: 1px solid #fecdd3;
  border-radius: .875rem;
  background: #fff;
  padding: .75rem 3rem .75rem .9rem;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.sort-rejection-option:hover .sort-rejection-card {
  border-color: #fda4af;
}
.sort-rejection-option[aria-expanded="true"] .sort-rejection-card {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 0 0 1px #e11d48;
}
.sort-rejection-option:focus-visible .sort-rejection-card {
  outline: 3px solid rgb(99 102 241 / 24%);
  outline-offset: 2px;
}
.sort-rejection-check {
  position: absolute;
  top: 50%;
  right: .9rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1.5px solid #fda4af;
  border-radius: .45rem;
  color: transparent;
  background: #fff;
}
.sort-rejection-check .app-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.sort-rejection-option[aria-expanded="true"] .sort-rejection-check {
  border-color: #e11d48;
  color: #fff;
  background: #e11d48;
}
.sort-rejection-title {
  color: #9f1239;
  font-size: .875rem;
  font-weight: 700;
}
.sort-rejection-description {
  color: #475569;
  font-size: .75rem;
  line-height: 1.4;
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
button:not(:disabled):active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(99 102 241 / 24%);
  outline-offset: 2px;
}

#app > section {
  background:
    radial-gradient(ellipse at 20% 12%, rgb(199 210 254 / 45%), transparent 38%),
    radial-gradient(ellipse at 85% 90%, rgb(165 243 252 / 34%), transparent 34%),
    #f6f8fc;
}
#app > section > div {
  border-color: rgb(255 255 255 / 90%);
  box-shadow: 0 24px 70px rgb(30 41 59 / 12%);
}

.brand-mark { display: inline-flex; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
.brand-mark.h-12.w-12 { width: 3rem; height: 3rem; }
.brand-mark.h-14.w-14 { width: 3.5rem; height: 3.5rem; }
.app-icon { display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 9px rgb(79 70 229 / 20%)); }
#app #realtime-indicator {
  position: fixed !important;
  inset: auto 1rem 1rem auto !important;
  z-index: 50 !important;
  max-width: calc(100vw - 2rem);
}
.nav-item { min-height: 2.75rem; }
.nav-item svg { flex: 0 0 auto; opacity: .85; }
.nav-item:hover { transform: translateX(2px); }
.app-shell > aside { z-index: 20; }
.sidebar-collapse-toggle { display: none; }
.sidebar-content { min-height: 100vh; }
@media (min-width: 768px) {
  #app-shell > aside {
    display: flex;
    width: 16rem;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    transition: width 180ms ease, padding 180ms ease;
  }
  .sidebar-header { min-height: 2.75rem; flex: 0 0 auto; }
  #sidebar-menu {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  #sidebar-menu::-webkit-scrollbar { width: .35rem; }
  #sidebar-menu::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--theme-sidebar-text) 22%, transparent); }
  .sidebar-account { flex: 0 0 auto; }
  .sidebar-collapse-toggle { display: inline-grid; flex: 0 0 auto; place-items: center; }
  .sidebar-content { transition: margin-left 180ms ease; }
  #app-shell.sidebar-collapsed > aside {
    width: 4.5rem;
    padding-right: .5rem;
    padding-left: .5rem;
  }
  #app-shell.sidebar-collapsed > .sidebar-content { margin-left: 4.5rem; }
  #app-shell.sidebar-collapsed .sidebar-header { flex-direction: column; gap: .75rem; }
  #app-shell.sidebar-collapsed #sidebar-brand { justify-content: center; }
  #app-shell.sidebar-collapsed .sidebar-brand-copy,
  #app-shell.sidebar-collapsed .sidebar-account-copy,
  #app-shell.sidebar-collapsed .nav-label { display: none; }
  #app-shell.sidebar-collapsed #sidebar-menu { margin-top: .75rem; }
  #app-shell.sidebar-collapsed .nav-item {
    justify-content: center;
    gap: 0;
    padding-right: .5rem;
    padding-left: .5rem;
  }
  #app-shell.sidebar-collapsed .sidebar-account {
    padding-top: .75rem;
  }
}
.dashboard-stat { position: relative; overflow: hidden; }
.dashboard-stat::after {
  position: absolute;
  right: -1.1rem;
  bottom: -1.75rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgb(99 102 241 / 4%);
  content: "";
  transition: transform 180ms ease;
}
.dashboard-stat:hover::after { transform: scale(1.5); }

.machine-filter-panel {
  display: flex;
  width: min(100%, 25rem);
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1rem;
  border: 1px solid var(--app-line);
  border-radius: 1rem;
  background: #fff;
  padding: .8rem .95rem;
  box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
}
.machine-filter-panel > span {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
}
.machine-filter-panel > span svg { color: #4f46e5; }
.machine-filter-panel select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: .9rem;
  font-weight: 650;
  outline: none;
}
#modal-root input[readonly][name="kode_mesin"] { background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.machine-filter-panel:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgb(99 102 241 / 10%); }

.order-filters-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.order-filters-row > .machine-filter-panel,
.order-filters-row > .order-type-filter-panel {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.orders-filter-toolbar {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.orders-filter-primary-row,
.orders-filter-secondary-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .5rem;
}
.orders-filter-primary-row > #order-search-form {
  flex: 1 1 50%;
  min-width: 12rem;
  margin: 0;
  padding: .5rem;
}
.orders-filter-toolbar #order-search-input,
.orders-filter-toolbar #order-search-form button {
  padding: .5rem .65rem;
  font-size: .75rem;
}
.orders-filter-secondary-row {
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: thin;
}
.orders-filter-secondary-row > .machine-filter-panel {
  flex: 0 0 8rem;
  width: 8rem;
  min-width: 8rem;
  margin: 0;
}
.orders-filter-secondary-row > .orders-status-filter {
  flex: 0 0 8rem;
  width: 8rem;
  min-width: 8rem;
  padding: .6rem .5rem;
  font-size: .7rem;
}
.orders-filter-secondary-row > .order-date-filter-panel {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .6rem;
  margin: 0;
  border-radius: .75rem;
  padding: .45rem .6rem;
  white-space: nowrap;
}
.orders-filter-secondary-row .order-date-filter-summary { display: none; }
.orders-filter-toolbar .machine-filter-panel,
.orders-filter-toolbar .order-type-filter-panel {
  gap: .2rem;
  border-radius: .75rem;
  padding: .45rem .6rem;
}
.orders-filter-toolbar .machine-filter-panel > span,
.orders-filter-toolbar .order-type-filter-panel > span { font-size: .65rem; }
.orders-filter-toolbar .machine-filter-panel select,
.orders-filter-toolbar .order-type-filter-panel select { font-size: .75rem; }
.order-date-filter-summary { min-width: 9rem; }
.order-date-filter-summary p:last-child { margin-top: .15rem; font-size: .7rem; }
.order-date-filter-controls { display: flex; flex: 0 0 auto; align-items: center; gap: .3rem; }
.order-date-filter-controls > button { padding: .4rem .5rem; font-size: .7rem; }
.order-date-filter-controls > label { gap: .3rem; padding: .35rem .45rem; font-size: .7rem; }
.order-date-filter-controls input,
.order-date-filter-controls select { font-size: .7rem; }
.order-date-filter-controls #date-picker { width: 5.5rem; }

.orders-filter-secondary-row > .order-date-filter-panel {
  flex: 1 0 auto;
}
.orders-filter-secondary-row > .order-type-filter-panel {
  flex: 0 0 9.5rem;
  width: 9.5rem;
  min-width: 9.5rem;
  margin: 0;
}
.orders-filter-toolbar .order-type-filter-panel select { min-width: 0; }
.orders-filter-toolbar .machine-filter-panel select { min-width: 0; }
.orders-filter-secondary-row > .machine-filter-panel,
.orders-filter-secondary-row > .orders-status-filter { flex-shrink: 0; }
.orders-filter-secondary-row > .order-date-filter-panel .order-date-filter-controls { min-width: 0; }
.orders-filter-secondary-row > .order-date-filter-panel .order-date-filter-controls > label { flex-shrink: 0; }

.operator-production-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(11rem, 1.1fr) minmax(9rem, .85fr);
  align-items: stretch;
  gap: .6rem;
  margin-bottom: 1rem;
}
.operator-production-filters > .order-date-filter-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: .65rem;
}
.operator-production-filters .order-date-filter-summary { min-width: 0; }
.operator-production-filters .order-date-filter-summary p:last-child { font-size: .75rem; }
.operator-production-filters .order-date-filter-controls {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
}
.operator-production-filters .order-date-filter-controls > button,
.operator-production-filters .order-date-filter-controls > label {
  min-width: 0;
  justify-content: center;
  padding: .4rem;
  font-size: .7rem;
}
.operator-production-filters .order-date-filter-controls > label { flex-wrap: wrap; }
.operator-production-filters .order-date-filter-controls input,
.operator-production-filters .order-date-filter-controls select { min-width: 0; max-width: 100%; font-size: .7rem; }
.operator-production-filters .order-date-filter-controls #date-picker { width: 6rem; }
.operator-production-filters > #order-search-form {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: .5rem;
  margin: 0;
  padding: .65rem;
}
.operator-production-filters > #order-search-form > input { min-width: 0; width: 100%; }
.operator-production-filters > #order-search-form > div { justify-content: flex-end; }
.operator-production-filters > #order-search-form > div button { min-width: 0; padding: .45rem .7rem; font-size: .75rem; }
.operator-production-filters > label:last-child {
  max-width: none;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.operator-production-filters > label:last-child select { min-width: 0; }

.production-order-card {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: .65rem;
}
.operator-production-order-card { align-items: start; }
.production-order-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .75rem;
}
.production-shop-submenu {
  display: grid;
  gap: .15rem;
  margin: .15rem 0 .45rem 1.05rem;
  padding-left: .8rem;
  border-left: 1px solid var(--theme-line);
}
.production-shop-submenu.is-collapsed { display: none; }
.order-machine-nav-group {
  display: flex;
  min-width: 0;
  align-items: center;
}
.order-machine-nav-group > .nav-item { flex: 1; }
.order-machine-submenu-toggle {
  display: grid;
  width: 2.25rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--theme-sidebar-muted);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.order-machine-submenu-toggle:hover {
  background: color-mix(in srgb, var(--theme-primary) 14%, var(--theme-sidebar));
  color: var(--theme-primary);
  transform: scale(1.06);
}
.order-machine-submenu-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, transparent);
  outline-offset: 1px;
}
.order-machine-submenu-toggle svg { transition: transform .2s ease; }
.order-machine-submenu-toggle.is-expanded svg { transform: rotate(180deg); }
.production-shop-submenu-item {
  display: flex;
  min-width: 0;
  min-height: 2.35rem;
  align-items: center;
  gap: .65rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  padding: .5rem .65rem;
  color: var(--theme-sidebar-muted);
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
}
.production-shop-submenu-item:hover {
  background: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-sidebar));
  color: var(--theme-sidebar-text);
}
.production-shop-submenu-item.is-active {
  background: color-mix(in srgb, var(--theme-primary) 13%, var(--theme-sidebar));
  color: var(--theme-primary);
}
.production-shop-submenu-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, transparent);
  outline-offset: 1px;
}
.production-shop-submenu-item .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-shop-submenu-dot {
  width: .4rem;
  height: .4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: .55;
}
.production-shop-submenu-item.is-active .production-shop-submenu-dot { opacity: 1; }
.production-shop-group { min-width: 0; }
.production-shop-header {
  display: flex;
  min-width: 0;
  align-items: center;
}
.production-shop-header > .production-shop-submenu-item { flex: 1; }
.production-shop-submenu-toggle {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--theme-sidebar-muted);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.production-shop-submenu-toggle:hover {
  background: color-mix(in srgb, var(--theme-primary) 14%, var(--theme-sidebar));
  color: var(--theme-primary);
}
.production-shop-submenu-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, transparent);
  outline-offset: 1px;
}
.production-shop-submenu-toggle svg { transition: transform .2s ease; }
.production-shop-submenu-toggle.is-expanded svg { transform: rotate(180deg); }
.production-product-submenu {
  display: grid;
  gap: .1rem;
  margin: 0 0 .25rem 1.15rem;
  padding-left: .55rem;
  border-left: 1px solid var(--theme-line);
}
.production-product-submenu.is-collapsed { display: none; }
.production-product-group { min-width: 0; }
.production-product-order-link {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  padding: .4rem .45rem;
  color: var(--theme-sidebar-muted);
  font-size: .72rem;
  text-align: left;
}
.production-product-order-link:hover,
.production-product-order-link.is-active {
  background: color-mix(in srgb, var(--theme-primary) 12%, var(--theme-sidebar));
  color: var(--theme-primary);
}
.production-product-order-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, transparent);
  outline-offset: 1px;
}
.production-product-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-product-order-link {
  justify-self: start;
  border-radius: .45rem;
  padding: .25rem .5rem;
  color: var(--theme-sidebar-muted);
  font-size: .7rem;
  font-weight: 600;
}
.production-product-order-link:hover,
.production-product-order-link.is-active {
  background: color-mix(in srgb, var(--theme-primary) 12%, var(--theme-sidebar));
  color: var(--theme-primary);
}
.production-product-order-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 28%, transparent);
  outline-offset: 1px;
}
#app-shell.sidebar-collapsed .production-shop-submenu { display: none; }
.production-order-info,
.production-order-files,
.production-order-actions { min-width: 0; overflow-wrap: anywhere; }
.production-order-info,
.production-order-extra { grid-column: 1 / -1; }
.operator-production-order-card .production-order-info { grid-column: 1; }
.operator-production-order-card .production-order-files { grid-column: 2; }
.operator-production-order-card .production-order-actions { grid-column: 1 / -1; }
.production-order-combined-title {
  margin-top: .5rem;
  color: #1e293b;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.production-order-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .55rem;
  margin-top: .65rem;
}
.production-order-item-summary {
  min-width: 0;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: .7rem;
  background: rgb(255 255 255 / 62%);
  padding: .6rem;
}
.production-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .4rem;
}
.production-order-group-actions {
  flex-direction: column;
}
.production-order-shared-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  width: 100%;
  border-top: 1px solid rgb(148 163 184 / 22%);
  padding-top: .65rem;
}
.production-order-machine-code {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 650;
  color: #475569;
}
.production-order-machine-code strong {
  overflow-wrap: anywhere;
  border: 1px solid rgb(148 163 184 / 30%);
  border-radius: .55rem;
  background: rgb(255 255 255 / 65%);
  padding: .35rem .55rem;
  color: #1e293b;
  font-family: ui-monospace, monospace;
}
.production-order-shared-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}
.production-order-print-button,
.production-order-finish-button {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .65rem;
  padding: .55rem .85rem;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.production-order-print-button {
  border-color: rgb(16 185 129 / 28%);
  background: rgb(236 253 245 / 90%);
  color: #047857;
}
.production-order-print-button:hover { background: rgb(209 250 229 / 95%); }
.production-order-finish-button {
  background: var(--theme-primary, #4f46e5);
  color: var(--theme-primary-text, white);
}
.production-order-finish-button:hover { background: var(--theme-primary-hover, #4338ca); }
.production-order-shared-actions > .upload-field { grid-column: 1 / -1; }
.production-order-item-action {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: end;
  gap: .4rem;
  border-bottom: 1px solid rgb(148 163 184 / 22%);
  padding: .35rem 0 .65rem;
}
.production-order-item-action:last-child { border-bottom: 0; padding-bottom: 0; }
.production-order-item-action h3 { width: 100%; }
.production-order-item-action > label { min-width: min(100%, 12rem); flex: 1 1 12rem; }
.production-order-actions > button,
.production-order-actions > a { padding: .55rem .75rem; font-size: .75rem; }
.production-order-actions > label { width: 100%; }
.production-order-extra {
  display: grid;
  gap: .5rem;
  grid-column: 1 / -1;
}
.production-order-note,
.production-order-history { min-width: 0; overflow-wrap: anywhere; }
.production-order-files { padding: .6rem; }
.production-order-files > p:first-child { margin-bottom: .25rem; }
.production-order-file-groups {
  display: grid;
  gap: .7rem;
}
.production-order-file-group {
  min-width: 0;
  border-left: 2px solid rgb(99 102 241 / 35%);
  padding-left: .55rem;
}
.production-order-file-group-label {
  margin-bottom: .35rem;
  color: #475569;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.production-order-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  align-items: start;
  gap: .6rem;
}
.production-order-file {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .55rem;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: .75rem;
  background: rgb(255 255 255 / 70%);
  padding: .6rem;
}
.production-order-file-preview {
  display: grid;
  min-height: 7rem;
  max-height: 11rem;
  place-items: center;
  overflow: hidden;
  border-radius: .5rem;
  background: rgb(248 250 252 / 80%);
}
.production-order-file-preview img {
  display: block;
  width: 100%;
  max-height: 11rem;
  object-fit: contain;
}
.production-order-file-pdf {
  width: 100%;
  height: 11rem;
  border: 1px solid rgb(148 163 184 / 25%);
  border-radius: .5rem;
  background: white;
}
.production-order-file-details {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}
.production-order-file-details > div { min-width: 0; }
.production-order-file-download {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid rgb(99 102 241 / 25%);
  border-radius: .6rem;
  background: rgb(238 242 255 / 85%);
  padding: .45rem .7rem;
  color: #4338ca;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.production-order-file-download:hover { background: rgb(224 231 255 / 95%); }

.status-pill { box-shadow: inset 0 0 0 1px rgb(15 23 42 / 3%); }
.status-pill svg { flex: 0 0 auto; }
.status-repair-progress { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; }
.status-ready-qc { border: 1px solid #a5f3fc; background: #ecfeff; color: #0e7490; }
table thead { background: #f8fafc; }
table tbody tr { transition: background-color 140ms ease; }
table tbody tr:hover { background: #f8faff; }
table tbody td { vertical-align: middle; }

.action-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.action-button svg { flex: 0 0 auto; }
.upload-progress-panel {
  display: grid;
  gap: .65rem;
  border: 1px solid #dbeafe;
  border-radius: .95rem;
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
  padding: .9rem 1rem;
}
.upload-progress-panel.hidden { display: none; }
.upload-progress-track {
  height: .65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}
.upload-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #0891b2);
  box-shadow: 0 0 12px rgb(79 70 229 / 25%);
  transition: width 180ms ease;
}
.upload-success { display: flex; align-items: center; gap: .4rem; color: #047857 !important; }
.upload-failed { border-color: #fecaca; background: #fff7f7; }
.upload-progress-floating {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 4.5rem;
  width: min(28rem, calc(100vw - 2rem));
  box-shadow: 0 16px 40px rgb(15 23 42 / 18%);
}
.upload-field { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: .55rem; }
.upload-file-bubble {
  position: relative;
  top: 4px;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  overflow: hidden;
  border: 1px solid #4338ca;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f46e5, #0891b2);
  padding: .4rem .75rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 750;
  box-shadow: 0 3px 9px rgb(79 70 229 / 18%);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.upload-file-bubble:hover { top: 3px; transform: translateY(-1px); filter: saturate(1.12); box-shadow: 0 6px 14px rgb(79 70 229 / 24%); }
.upload-file-bubble:focus-within { outline: 3px solid rgb(99 102 241 / 25%); outline-offset: 2px; }
.upload-file-bubble.upload-drop-active,
.auto-layout-upload.upload-drop-active { outline: 3px dashed #4f46e5; outline-offset: 3px; filter: saturate(1.2); }
.upload-file-bubble > svg { flex: 0 0 auto; }
.upload-file-bubble > .app-icon { width: 14px !important; height: 14px !important; }
.upload-file-bubble > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.upload-file-name { min-width: 0; overflow-wrap: anywhere; color: #64748b; font-size: .72rem; }
.upload-file-list { display: grid; gap: .2rem; margin: .15rem 0 0; padding-left: 1.15rem; }
.upload-file-list li { overflow-wrap: anywhere; list-style: disc; }
.upload-field [data-drop-zone] {
  top: 0;
  display: flex;
  width: 100%;
  min-height: 6.5rem;
  flex-direction: column;
  gap: .55rem;
  border: 2px dashed color-mix(in srgb, var(--theme-primary) 42%, white);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--theme-primary) 4%, white);
  padding: 1rem;
  color: var(--theme-text);
  text-align: center;
  box-shadow: none;
}
.upload-field [data-drop-zone]:hover { top: 0; transform: none; border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 8%, white); }
.upload-field [data-drop-zone] > svg,
.upload-field [data-drop-zone] > .app-icon { width: 1.35rem !important; height: 1.35rem !important; color: var(--theme-primary); }
.upload-file-name { flex-basis: 100%; }
.order-item-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.order-item-fields-grid.hidden { display: none; }
.order-item-fields-grid > * { min-width: 0; }
.order-item-wide { grid-column: 1 / -1; }
.order-item-card {
  container-type: inline-size;
  min-width: 0;
  border-color: #d1d5db !important;
  background: #f3f4f6 !important;
  color: #1f2937;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 2px 7px rgb(15 23 42 / 6%);
  padding: .6rem !important;
}
.order-item-card.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .35rem; }
.order-item-card .text-slate-800,
.order-item-card label,
.order-item-card legend {
  color: #374151;
}
.order-item-card label,
.order-item-card legend { font-size: .75rem; }
.order-item-card input:not([type="radio"]):not([type="file"]),
.order-item-card select,
.order-item-card textarea {
  border-color: #b7c2d2;
  background: #f8fafc;
  color: #1f2937;
  color-scheme: light;
  padding: .4rem .55rem;
  font-size: .8rem;
}
.order-item-card .order-item-fields-grid { gap: .4rem; }
.order-item-card .machine-choice-list > button,
.order-item-card .order-type-choice-list > label {
  border-color: #aebbd0;
  background: #f8fafc;
  color: #334155;
  box-shadow: inset 0 1px 0 #fff;
  font-size: .75rem;
}
.order-item-card .machine-choice-list > button {
  padding: .35rem .55rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #374151;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.order-item-card .machine-choice-list > button:nth-child(8n + 1) { --choice-highlight: #0f766e; --choice-soft: #ccfbf1; }
.order-item-card .machine-choice-list > button:nth-child(8n + 2) { --choice-highlight: #1d4ed8; --choice-soft: #dbeafe; }
.order-item-card .machine-choice-list > button:nth-child(8n + 3) { --choice-highlight: #a16207; --choice-soft: #fef3c7; }
.order-item-card .machine-choice-list > button:nth-child(8n + 4) { --choice-highlight: #7e22ce; --choice-soft: #f3e8ff; }
.order-item-card .machine-choice-list > button:nth-child(8n + 5) { --choice-highlight: #be123c; --choice-soft: #ffe4e6; }
.order-item-card .machine-choice-list > button:nth-child(8n + 6) { --choice-highlight: #047857; --choice-soft: #d1fae5; }
.order-item-card .machine-choice-list > button:nth-child(8n + 7) { --choice-highlight: #c2410c; --choice-soft: #ffedd5; }
.order-item-card .machine-choice-list > button:nth-child(8n) { --choice-highlight: #0e7490; --choice-soft: #cffafe; }
.order-item-card .order-type-choice-list > label:nth-child(4n + 1) { --choice-highlight: #0f766e; --choice-soft: #ccfbf1; }
.order-item-card .order-type-choice-list > label:nth-child(4n + 2) { --choice-highlight: #1d4ed8; --choice-soft: #dbeafe; }
.order-item-card .order-type-choice-list > label:nth-child(4n + 3) { --choice-highlight: #a16207; --choice-soft: #fef3c7; }
.order-item-card .order-type-choice-list > label:nth-child(4n) { --choice-highlight: #7e22ce; --choice-soft: #f3e8ff; }
#app .order-item-card .machine-choice-list > button[aria-pressed="true"],
#app .order-item-card .order-type-choice-list > label:has(input:checked) {
  border-color: var(--choice-highlight, #0f766e);
  background: color-mix(in srgb, var(--choice-soft, #ccfbf1) 72%, white);
  color: var(--choice-highlight, #0f766e);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--choice-highlight, #0f766e) 70%, transparent);
}
.order-item-card .machine-choice-list > button:not([aria-pressed="true"]) {
  border-color: color-mix(in srgb, var(--choice-highlight, #64748b) 22%, white);
  background: color-mix(in srgb, var(--choice-soft, #f1f5f9) 46%, white);
  color: var(--choice-highlight, #475569);
}
.order-item-card .order-type-choice-list > label { padding: .35rem .3rem; }
.order-item-card .upload-file-name { color: #4b5563; font-weight: 600; }
.order-item-card .upload-file-name .upload-success { color: #047857 !important; }
.order-item-card .upload-field [data-drop-zone] {
  border-color: #aebbd0;
  background: #f8fafc;
  color: #334155;
}
.order-item-card .upload-field [data-drop-zone] > .app-icon { color: #4f46e5; }
.order-item-card .upload-field [data-drop-zone]:hover { border-color: #64748b; background: #f1f5f9; }
.order-item-card .upload-field [data-drop-zone] .text-slate-500,
.order-item-card .upload-field [data-drop-zone] span { color: #334155; }
.order-item-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.order-item-list > .order-item-card { width: 100%; }
@container (max-width: 34rem) {
  .order-item-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .order-item-fields-grid > * { grid-column: 1 / -1; }
}
.machine-choice-list,
.order-type-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.machine-choice-list > button,
.order-type-choice-list > label { min-width: 0; text-align: center; }
.order-modal-fullscreen-backdrop { padding: 1rem !important; }
body.modal-open { overflow: hidden; }
.order-modal-fullscreen {
  width: min(92vw, 72rem) !important;
  height: auto;
  max-width: 72rem !important;
  max-height: 84vh !important;
  max-height: 84dvh !important;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem !important;
  padding: clamp(.85rem, 2.5vw, 2rem) !important;
}
.order-modal-fullscreen > div:first-child {
  position: sticky;
  top: calc(-1 * clamp(.85rem, 2.5vw, 2rem));
  z-index: 2;
  margin: calc(-1 * clamp(.85rem, 2.5vw, 2rem)) calc(-1 * clamp(.85rem, 2.5vw, 2rem)) 1.25rem;
  border-bottom: 1px solid var(--theme-line);
  background: var(--theme-card);
  color: var(--theme-card-text);
  padding: clamp(.85rem, 2.5vw, 2rem);
}
.order-modal-fullscreen > div:first-child h2 { color: var(--theme-card-text); }
.order-modal-fullscreen > div:first-child button { color: var(--theme-muted); }
.order-modal-fullscreen > form { width: 100%; }
.order-customer-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .75rem;
}
.order-customer-fields-grid #admin-shop-summary { min-height: 2.5rem; }
.order-create-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
}
.order-create-customer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .75rem;
}
.order-create-customer-row > * { min-width: 0; }
.shared-order-type-picker { min-width: 0; }
.shared-order-type-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .45rem;
}
.shared-order-type-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: .65rem;
  background: #f3f4f6;
  padding: .4rem 1.35rem .4rem .4rem;
  color: #374151;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.shared-order-type-option:hover { border-color: var(--theme-primary); }
.shared-order-type-option[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--theme-primary) 46%, white);
  background: color-mix(in srgb, var(--theme-primary) 12%, white);
  color: color-mix(in srgb, var(--theme-primary) 76%, #1f2937);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-primary) 24%, transparent);
}
.shared-order-type-option:focus-visible {
  outline: 3px solid rgb(99 102 241 / 24%);
  outline-offset: 2px;
}
.shared-order-type-option:disabled { cursor: not-allowed; opacity: .55; }
.shared-order-type-check {
  position: absolute;
  right: .35rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: .3rem;
  color: transparent;
  background: #fff;
}
.shared-order-type-check .app-icon { width: .75rem; height: .75rem; }
.shared-order-type-option[aria-pressed="true"] .shared-order-type-check {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.calculator-workspace { max-width: 58rem; margin: 0 auto; }
.calculator-input-panel {
  border: 1px solid #e5e7eb;
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 94%);
  padding: 1.1rem;
  box-shadow: 0 12px 32px rgb(30 41 59 / 7%);
}
.calculator-heading-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e0e7ff, #cffafe);
  color: #4338ca;
}
.calculator-price-card {
  border: 1px solid #e8edf5;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgb(30 41 59 / 6%);
}
.calculator-user-card { border-top: 3px solid #6366f1; }
.calculator-member-card { border-top: 3px solid #10b981; }
.calculator-price-tag {
  border-radius: 999px;
  background: #f1f5f9;
  padding: .3rem .6rem;
  color: #475569;
  font-size: .68rem;
  font-weight: 750;
}
.calculator-member-card .calculator-price-tag { background: #d1fae5; color: #047857; }
.calculator-savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(115deg, #047857, #059669);
  padding: 1.1rem 1.25rem;
  color: #fff;
  box-shadow: 0 12px 26px rgb(5 150 105 / 18%);
}
.calculator-savings strong { font-size: clamp(1.15rem, 4vw, 1.65rem); white-space: nowrap; }

.monitor-page .monitor-header {
  background: linear-gradient(115deg, #161c35, #312e81 65%, #155e75);
  box-shadow: 0 16px 36px rgb(30 41 59 / 18%);
}
.monitor-page .monitor-header .brand-mark img { filter: drop-shadow(0 6px 13px rgb(15 23 42 / 35%)); }
.monitor-page .monitor-search-controls button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.monitor-page .monitor-search-controls button:hover { transform: translateY(-1px); }
.monitor-page .monitor-page,
.monitor-page .machine-filter-panel { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .operator-production-filters { grid-template-columns: minmax(0, 1fr); }
  .operator-production-filters .order-date-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-order-list { grid-template-columns: minmax(0, 1fr); }
  .production-order-card { grid-template-columns: minmax(0, 1fr); }
  .production-order-card.operator-production-order-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-order-card.operator-production-order-card .production-order-info { grid-column: 1; }
  .production-order-card.operator-production-order-card .production-order-files { grid-column: 2; }
  .production-order-info,
  .production-order-extra { grid-column: auto; }
  .production-order-card.operator-production-order-card .production-order-extra,
  .production-order-card.operator-production-order-card .production-order-actions { grid-column: 1 / -1; }
  .production-order-actions { width: 100%; }
  .production-order-extra { grid-column: auto; }
  .orders-filter-primary-row { align-items: stretch; }
  .orders-filter-primary-row > #order-search-form { min-width: 0; }
  .orders-filter-secondary-row { align-items: stretch; }
  .orders-filter-toolbar .machine-filter-panel,
  .orders-filter-toolbar .order-type-filter-panel { width: 100%; min-width: 0; }
  .orders-filter-secondary-row > .order-type-filter-panel { flex-basis: 9rem; width: 9rem; min-width: 9rem; }
  .orders-filter-secondary-row > .machine-filter-panel { flex-basis: 7rem; width: 7rem; min-width: 7rem; }
  .orders-filter-secondary-row > .orders-status-filter { flex-basis: 7rem; width: 7rem; min-width: 7rem; }
  .orders-filter-secondary-row > .order-date-filter-panel { flex-direction: row; }
  .orders-filter-secondary-row .order-date-filter-summary { display: none; }
  .orders-filter-toolbar .order-date-filter-controls { flex-wrap: nowrap; }
  .order-customer-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .order-create-customer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-order-type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-item-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .order-item-fields-grid > * { grid-column: 1 / -1; }
  .order-item-list { grid-template-columns: minmax(0, 1fr); }
  .order-modal-fullscreen-backdrop { padding: .5rem !important; }
  .order-modal-fullscreen { width: 100% !important; max-height: 88vh !important; max-height: 88dvh !important; padding: .8rem !important; }
  .order-modal-fullscreen > div:first-child { top: -.8rem; margin: -.8rem -.8rem 1rem; padding: .8rem; }
  .monitor-page .monitor-header { align-items: flex-start; }
  .monitor-page .monitor-header > div:first-child { min-width: 0; }
  .monitor-page .monitor-header h1 { font-size: 1.35rem; }
  .monitor-page .monitor-header > div:last-child { width: 100%; justify-content: space-between; }
  .monitor-page .monitor-search-controls { flex-wrap: wrap; }
  .monitor-page .monitor-search-controls input { flex-basis: 100%; }
}

@media (max-width: 900px) {
  .order-item-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body { background: var(--theme-background); color: var(--theme-text); }
#app > div { background: var(--theme-background); color: var(--theme-text); }
#app > div > aside {
  border-color: var(--theme-line);
  background: var(--theme-sidebar);
  color: var(--theme-sidebar-text);
}
#app > div > aside .text-slate-500,
#app > div > aside .text-slate-600 { color: var(--theme-sidebar-muted); }
#app > div > aside .border-slate-100,
#app > div > aside .border-slate-200 { border-color: var(--theme-line); }
#app > div > section { background: var(--theme-background); color: var(--theme-text); }
#app > section {
  background:
    radial-gradient(ellipse at 20% 12%, color-mix(in srgb, var(--theme-primary) 14%, transparent), transparent 38%),
    radial-gradient(ellipse at 85% 90%, color-mix(in srgb, var(--theme-secondary) 12%, transparent), transparent 34%),
    var(--theme-background);
  color: var(--theme-text);
}
#app > section > div { border-color: color-mix(in srgb, var(--theme-card) 90%, transparent); }
#app .bg-white,
#app .bg-white\/95 { background-color: var(--theme-card); color: var(--theme-card-text); }
#app .bg-white .text-slate-900,
#app .bg-white .text-slate-800,
#app .bg-white .text-slate-700 { color: var(--theme-card-text); }
#app .bg-white .text-slate-600,
#app .bg-white .text-slate-500,
#app .bg-white .text-slate-400 { color: var(--theme-card-muted); }
#app .bg-slate-50 { background-color: color-mix(in srgb, var(--theme-background) 90%, var(--theme-text)); }
#app .bg-slate-100 { background-color: color-mix(in srgb, var(--theme-card) 88%, var(--theme-text)); }
#app .text-slate-900,
#app .text-slate-800,
#app .text-slate-700 { color: var(--theme-text); }
#app .text-slate-600,
#app .text-slate-500,
#app .text-slate-400 { color: var(--theme-muted); }
#app .border-slate-100,
#app .border-slate-200 { border-color: var(--theme-line); }
#app .operator-production-order-card-waiting { border-color: rgb(96 165 250 / 58%); background-color: rgb(219 234 254 / 35%); }
#app .operator-production-order-card-in-progress { border-color: rgb(100 116 139 / 45%); background-color: rgb(226 232 240 / 35%); }
#app .operator-production-order-card-complete { border-color: rgb(74 222 128 / 56%); background-color: rgb(220 252 231 / 35%); }
#app .operator-production-order-card-repair { border-color: rgb(251 113 133 / 58%); background-color: rgb(255 228 230 / 35%); }
#app .operator-production-order-card .production-order-files {
  border: 1px solid rgb(100 116 139 / 24%);
  background-color: rgb(255 255 255 / 35%);
}
#app .bg-indigo-600 { background-color: var(--theme-primary); color: var(--theme-primary-text); }
#app .bg-indigo-700 { background-color: var(--theme-primary-hover); color: var(--theme-primary-text); }
#app .hover\:bg-indigo-700:hover { background-color: var(--theme-primary-hover); }
#app .text-indigo-600,
#app .text-indigo-700 { color: var(--theme-primary); }
#app .bg-indigo-50 { background-color: var(--theme-primary-soft); }
#app .border-indigo-600,
#app .border-indigo-500 { border-color: var(--theme-primary); }
#app input:focus,
#app select:focus,
#app textarea:focus { --tw-ring-color: var(--theme-focus, rgb(99 102 241 / 24%)); }
#app #realtime-indicator { border-color: var(--theme-line); background: color-mix(in srgb, var(--theme-card) 94%, transparent); color: var(--theme-muted); }
.machine-filter-panel,
.order-type-filter-panel { border-color: var(--theme-line); background: var(--theme-card); }
.machine-filter-panel > span,
.machine-filter-panel select,
.order-type-filter-panel > span,
.order-type-filter-panel select { color: var(--theme-text); }
.machine-filter-panel select,
.order-type-filter-panel select { background-color: var(--theme-background); }
.machine-filter-panel select option,
.order-type-filter-panel select option,
#app select option { background-color: var(--theme-card); color: var(--theme-card-text); }
#app table thead { background-color: var(--theme-background); color: var(--theme-muted); }
.machine-filter-panel > span svg { color: var(--theme-primary); }
.upload-progress-panel { border-color: color-mix(in srgb, var(--theme-primary) 24%, var(--theme-card)); background: color-mix(in srgb, var(--theme-primary) 5%, var(--theme-card)); }
.upload-progress-track { background: color-mix(in srgb, var(--theme-primary) 15%, var(--theme-card)); }
.upload-progress-track > span { background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary)); }
.upload-file-bubble { border-color: var(--theme-primary); background: linear-gradient(120deg, var(--theme-primary), var(--theme-secondary)); color: var(--theme-primary-text); }
.calculator-input-panel,
.calculator-price-card { border-color: var(--theme-line); background: var(--theme-card); color: var(--theme-card-text); }
.calculator-heading-icon { background: color-mix(in srgb, var(--theme-primary) 15%, var(--theme-card)); color: var(--theme-primary); }
.calculator-user-card { border-top-color: var(--theme-primary); }
.calculator-member-card { border-top-color: var(--theme-secondary); }
.calculator-savings { background: linear-gradient(115deg, var(--theme-secondary), color-mix(in srgb, var(--theme-secondary) 78%, #000)); }
#app .nav-item.bg-indigo-50 { background-color: var(--theme-primary); color: var(--theme-primary-text); }

:root[data-theme-mode="dark"] .order-item-card {
  border-color: #334155 !important;
  background: #202b3d !important;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 2px 7px rgb(0 0 0 / 18%);
}
:root[data-theme-mode="dark"] .order-item-card .text-slate-800,
:root[data-theme-mode="dark"] .order-item-card label,
:root[data-theme-mode="dark"] .order-item-card legend,
:root[data-theme-mode="dark"] .order-item-card .upload-file-name {
  color: #dbe4f0;
}
:root[data-theme-mode="dark"] .order-item-card input:not([type="radio"]):not([type="file"]),
:root[data-theme-mode="dark"] .order-item-card select,
:root[data-theme-mode="dark"] .order-item-card textarea {
  border-color: #475569;
  background: #172033;
  color: #e2e8f0;
  color-scheme: dark;
}
:root[data-theme-mode="dark"] .order-item-card .machine-choice-list > button:not([aria-pressed="true"]) {
  border-color: color-mix(in srgb, var(--choice-highlight, #94a3b8) 38%, #334155);
  background: color-mix(in srgb, var(--choice-highlight, #64748b) 18%, #202b3d);
  color: #e2e8f0;
}
:root[data-theme-mode="dark"] #app .order-item-card .machine-choice-list > button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--choice-highlight, var(--theme-primary)) 65%, #64748b);
  background: color-mix(in srgb, var(--choice-highlight, var(--theme-primary)) 30%, #202b3d);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--choice-highlight, var(--theme-primary)) 54%, transparent);
}
:root[data-theme-mode="dark"] #app .order-item-card .order-type-choice-list > label {
  border-color: #475569;
  background: #263247;
  color: #e2e8f0;
}
:root[data-theme-mode="dark"] #app .order-item-card .order-type-choice-list > label:has(input:checked) {
  border-color: color-mix(in srgb, var(--choice-highlight, var(--theme-primary)) 65%, #64748b);
  background: color-mix(in srgb, var(--choice-highlight, var(--theme-primary)) 30%, #202b3d);
  color: #f8fafc;
}
:root[data-theme-mode="dark"] .order-item-card .upload-field [data-drop-zone] {
  border-color: #475569;
  background: #263247;
  color: #e2e8f0;
}
:root[data-theme-mode="dark"] .order-item-card .upload-field [data-drop-zone] > .app-icon {
  color: #a5b4fc;
}
:root[data-theme-mode="dark"] .order-item-card .upload-field [data-drop-zone] .text-slate-500,
:root[data-theme-mode="dark"] .order-item-card .upload-field [data-drop-zone] span {
  color: #dbe4f0;
}
:root[data-theme-mode="dark"] .shared-order-type-option {
  border-color: #475569;
  background: #263247;
  color: #dbe4f0;
}
:root[data-theme-mode="dark"] .shared-order-type-option[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--theme-primary) 55%, #64748b);
  background: color-mix(in srgb, var(--theme-primary) 27%, #202b3d);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-primary) 38%, transparent);
}
:root[data-theme-mode="dark"] .shared-order-type-check {
  border-color: #64748b;
  background: #172033;
}
:root[data-theme-mode="dark"] .shared-order-type-option[aria-pressed="true"] .shared-order-type-check {
  border-color: #a5b4fc;
  color: #c7d2fe;
  background: #334155;
}

:root[data-theme-mode="dark"] #app .operator-production-order-card {
  border-color: #475569 !important;
  background-color: #151b26 !important;
  color: #f1f5f9;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card-waiting {
  border-color: #3b82f6 !important;
  background-color: #172554 !important;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card-in-progress {
  border-color: #64748b !important;
  background-color: #1e293b !important;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card-complete {
  border-color: #22c55e !important;
  background-color: #052e16 !important;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card-repair {
  border-color: #fb7185 !important;
  background-color: #4c0519 !important;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .text-slate-400,
:root[data-theme-mode="dark"] #app .operator-production-order-card .text-slate-500,
:root[data-theme-mode="dark"] #app .operator-production-order-card .text-slate-600 {
  color: #e2e8f0 !important;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-combined-title {
  color: #f8fafc;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-item-summary,
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-files {
  border-color: #475569;
  background-color: #202b3d;
  color: #e2e8f0;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-file-group-label,
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-machine-code {
  color: #e2e8f0;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-machine-code strong {
  border-color: #64748b;
  background-color: #0f172a;
  color: #f8fafc;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-shared-actions {
  border-color: #475569;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-file {
  border-color: #475569;
  background-color: #111827;
}
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-file-group-label,
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-file-details a:not(.production-order-file-download),
:root[data-theme-mode="dark"] #app .operator-production-order-card .production-order-file-details p {
  color: #ffffff !important;
}

.monitor-page,
.monitor-page:fullscreen { background: var(--theme-background); color: var(--theme-text); }
.monitor-sidebar { border-color: var(--theme-line); background: var(--theme-sidebar); color: var(--theme-sidebar-text); }
.monitor-sidebar-brand strong,
.monitor-sidebar-account strong { color: var(--theme-sidebar-text); }
.monitor-sidebar-brand span,
.monitor-sidebar-account span,
.monitor-nav-caption,
.monitor-nav-empty { color: var(--theme-sidebar-muted); }
.monitor-sidebar-nav > a,
.monitor-machine-nav-item { color: var(--theme-sidebar-muted); }
.monitor-sidebar-nav > a:hover,
.monitor-machine-nav-item:hover { background: color-mix(in srgb, var(--theme-primary) 12%, var(--theme-sidebar)); color: var(--theme-sidebar-text); }
.monitor-sidebar-nav > a.monitor-nav-active { border-color: var(--theme-primary); background: var(--theme-primary); color: var(--theme-primary-text); }
.monitor-machine-nav-item > strong { background: color-mix(in srgb, var(--theme-sidebar-text) 12%, var(--theme-sidebar)); color: var(--theme-sidebar-text); }
.monitor-sidebar-account { border-color: var(--theme-line); }
.monitor-sidebar-account button,
.monitor-topbar-actions #monitor-fullscreen { border-color: var(--theme-line); background: color-mix(in srgb, var(--theme-card) 90%, var(--theme-text)); color: var(--theme-text); }
.monitor-main { color: var(--theme-text); }
.monitor-topbar h1,
.monitor-board-heading h2 { color: var(--theme-text); }
.monitor-breadcrumb,
.monitor-board-heading > div > p:last-child,
.monitor-machine-title > span,
.monitor-machine-total,
.monitor-updated { color: var(--theme-muted); }
.monitor-filterbar .monitor-search-panel,
.monitor-filterbar .machine-filter-panel,
.monitor-filterbar .order-type-filter-panel,
.monitor-filterbar > section.mb-5 { border-color: var(--theme-line); background: var(--theme-card); }
.monitor-filterbar .monitor-search-panel > label,
.monitor-filterbar .machine-filter-panel > span,
.monitor-filterbar .order-type-filter-panel > span,
.monitor-filterbar > section.mb-5 p { color: var(--theme-muted); }
.monitor-filterbar .monitor-search-controls input,
.monitor-filterbar .machine-filter-panel select,
.monitor-filterbar .order-type-filter-panel > select,
.monitor-filterbar > section.mb-5 button,
.monitor-filterbar > section.mb-5 label { border-color: var(--theme-line); background: var(--theme-background); color: var(--theme-text); }
.monitor-filterbar .machine-filter-panel select option,
.monitor-filterbar .order-type-filter-panel > select option { background-color: var(--theme-card); color: var(--theme-card-text); }
.monitor-filterbar .monitor-search-controls button { border-color: var(--theme-line); background: var(--theme-background); color: var(--theme-text); }
.monitor-page .monitor-filterbar > section.mb-5 button[aria-pressed="true"] { background: var(--theme-primary); color: var(--theme-primary-text); }
.monitor-machine-section { border-color: var(--theme-line); background: var(--theme-card); }
.monitor-machine-heading { border-color: var(--theme-line); color: var(--theme-text); }
.monitor-machine-section .monitor-order-card { border-color: var(--theme-line); background: color-mix(in srgb, var(--theme-card) 94%, var(--theme-card-text)); color: var(--theme-card-text); }
.monitor-card-code { color: var(--theme-card-text); }
.monitor-card-customer,
.monitor-card-quantity strong,
.monitor-card-operator strong { color: var(--theme-card-text); }
.monitor-card-product,
.monitor-card-quantity,
.monitor-card-operator > div > span { color: var(--theme-card-muted); }
.monitor-card-status { border-color: var(--theme-line); background: var(--theme-background); }
.monitor-status-legend { border-color: var(--theme-line); background: var(--theme-card); color: var(--theme-muted); }
.monitor-more-card { border-color: var(--theme-primary); background: var(--theme-primary); color: var(--theme-primary-text); }
.monitor-board-empty,
.monitor-loading { border-color: var(--theme-line); background: var(--theme-card); color: var(--theme-muted); }
#monitor-logout,
#monitor-theme-settings { color: var(--theme-sidebar-muted); }

.theme-settings-panel {
  border: 1px solid var(--theme-line);
  border-radius: 1.25rem;
  background: var(--theme-card);
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--theme-card-text);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-text) 8%, transparent);
}
.theme-settings-panel h1 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.theme-settings-panel header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.theme-settings-kicker { margin-bottom: .2rem; color: var(--theme-primary); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.theme-modal-close { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid var(--theme-line); border-radius: .7rem; color: var(--theme-muted); font-size: 1.4rem; }
.theme-preset-section h2 { font-size: .95rem; font-weight: 750; }
.theme-preset-section > p,
.theme-color-field small { margin-top: .2rem; color: var(--theme-card-muted); font-size: .75rem; }
.theme-preset-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.theme-preset-button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--theme-line); border-radius: .75rem; background: var(--theme-background); padding: .45rem .65rem; color: var(--theme-text); font-size: .75rem; font-weight: 650; }
.theme-preset-button:hover { border-color: var(--theme-primary); }
.theme-preset-swatch { display: inline-flex; gap: .1rem; }
.theme-preset-swatch i { width: .65rem; height: .95rem; border: 1px solid color-mix(in srgb, var(--theme-text) 12%, transparent); border-radius: .2rem; }
.theme-color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin-top: 1.2rem; }
.theme-color-field { display: flex; min-width: 0; min-height: 4rem; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; border: 1px solid var(--theme-line); border-radius: .8rem; background: var(--theme-background); padding: .65rem .75rem; color: var(--theme-text); font-size: .78rem; font-weight: 650; }
.theme-color-field input[type="color"] { width: 2.5rem; height: 2rem; overflow: hidden; border: 1px solid var(--theme-line); border-radius: .45rem; background: transparent; padding: .12rem; cursor: pointer; }
.theme-color-field input[type="color"]:disabled { opacity: .45; cursor: not-allowed; }
.theme-text-toggle { display: inline-flex; align-items: center; gap: .45rem; }
.theme-text-toggle input { accent-color: var(--theme-primary); }
.theme-color-field small { flex-basis: 100%; font-size: .67rem; font-weight: 400; }
.theme-live-preview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; border: 1px solid var(--theme-line); border-radius: .9rem; background: var(--theme-background); padding: .85rem 1rem; }
.theme-live-preview > div > span { font-size: .8rem; font-weight: 750; }
.theme-live-preview p { margin-top: .15rem; color: var(--theme-muted); font-size: .7rem; }
.theme-preview-button,
.theme-save-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .7rem; background: var(--theme-primary); padding: .6rem .8rem; color: var(--theme-primary-text); font-size: .75rem; font-weight: 750; }
.theme-save-feedback { margin-top: .75rem; color: var(--theme-muted); font-size: .72rem; }
.theme-settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: .65rem; }
.theme-reset-button { border: 1px solid var(--theme-line); border-radius: .7rem; background: var(--theme-card); padding: .6rem .8rem; color: var(--theme-text); font-size: .75rem; font-weight: 700; }
.theme-reset-button:hover,
.theme-modal-close:hover { border-color: var(--theme-primary); }
.theme-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; background: rgb(2 6 23 / 65%); padding: 1rem; }
.theme-settings-modal { width: min(100%, 48rem); max-height: min(92vh, 56rem); overflow-y: auto; }

@media (max-width: 560px) {
  .theme-live-preview { align-items: flex-start; flex-direction: column; }
  .theme-settings-actions > button { flex: 1 1 auto; }
}

:root[data-theme-preset="Hitam"] #app,
:root[data-theme-preset="Hitam"] #modal-root {
  color: #f8fafc;
}
:root[data-theme-preset="Hitam"] #app *,
:root[data-theme-preset="Hitam"] #modal-root * {
  color: #f8fafc !important;
}
:root[data-theme-preset="Hitam"] #app .sidebar,
:root[data-theme-preset="Hitam"] #app .sidebar *,
:root[data-theme-preset="Hitam"] #app .sidebar-header *,
:root[data-theme-preset="Hitam"] #app .sidebar-account *,
:root[data-theme-preset="Hitam"] #app .nav-item,
:root[data-theme-preset="Hitam"] #app .nav-item * {
  color: #ffffff !important;
}
:root[data-theme-preset="Hitam"] #app [class*="bg-amber-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-amber-100"] { background-color: #422006 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-sky-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-sky-100"] { background-color: #082f49 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-violet-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-violet-100"] { background-color: #2e1065 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-rose-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-rose-100"] { background-color: #4c0519 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-cyan-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-cyan-100"] { background-color: #083344 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-emerald-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-emerald-100"] { background-color: #052e16 !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-indigo-100"] { background-color: #1e1b4b !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-red-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-red-100"] { background-color: #450a0a !important; }
:root[data-theme-preset="Hitam"] #app [class*="bg-orange-50"],
:root[data-theme-preset="Hitam"] #app [class*="bg-orange-100"] { background-color: #431407 !important; }
:root[data-theme-preset="Hitam"] #app [class*="border-amber-"],
:root[data-theme-preset="Hitam"] #app [class*="border-sky-"],
:root[data-theme-preset="Hitam"] #app [class*="border-violet-"],
:root[data-theme-preset="Hitam"] #app [class*="border-rose-"],
:root[data-theme-preset="Hitam"] #app [class*="border-cyan-"],
:root[data-theme-preset="Hitam"] #app [class*="border-emerald-"],
:root[data-theme-preset="Hitam"] #app [class*="border-indigo-"],
:root[data-theme-preset="Hitam"] #app [class*="border-red-"],
:root[data-theme-preset="Hitam"] #app [class*="border-orange-"] {
  border-color: #52525b !important;
}
:root[data-theme-preset="Hitam"] #app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
:root[data-theme-preset="Hitam"] #app textarea,
:root[data-theme-preset="Hitam"] #app select,
:root[data-theme-preset="Hitam"] #modal-root input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
:root[data-theme-preset="Hitam"] #modal-root textarea,
:root[data-theme-preset="Hitam"] #modal-root select {
  border-color: #52525b;
  background-color: #111111;
  color: #ffffff;
}
:root[data-theme-preset="Hitam"] #app input::placeholder,
:root[data-theme-preset="Hitam"] #app textarea::placeholder,
:root[data-theme-preset="Hitam"] #modal-root input::placeholder,
:root[data-theme-preset="Hitam"] #modal-root textarea::placeholder {
  color: #a1a1aa;
}
:root[data-theme-preset="Hitam"] #app option,
:root[data-theme-preset="Hitam"] #modal-root option {
  background-color: #111111;
  color: #ffffff;
}
:root[data-theme-preset="Hitam"] #app .status-pill,
:root[data-theme-preset="Hitam"] #app .status-repair-progress,
:root[data-theme-preset="Hitam"] #app .status-ready-qc {
  border-color: #52525b;
  background-color: #27272a;
  color: #ffffff;
}
:root[data-theme-preset="Hitam"] #app table thead,
:root[data-theme-preset="Hitam"] #app table tbody tr:hover,
:root[data-theme-preset="Hitam"] #app .calculator-member-card .calculator-price-tag,
:root[data-theme-preset="Hitam"] #app .upload-failed {
  border-color: #52525b;
  background-color: #27272a;
}
:root[data-theme-preset="Hitam"] #app .production-order-file-preview {
  background-color: #18181b;
}
:root[data-theme-preset="Hitam"] #app .upload-field [data-drop-zone],
:root[data-theme-preset="Hitam"] #modal-root .upload-field [data-drop-zone] {
  border-color: #7c3aed !important;
  background: #18181b !important;
  color: #ffffff !important;
}
:root[data-theme-preset="Hitam"] #app .upload-field [data-drop-zone] > svg,
:root[data-theme-preset="Hitam"] #app .upload-field [data-drop-zone] > .app-icon,
:root[data-theme-preset="Hitam"] #modal-root .upload-field [data-drop-zone] > svg,
:root[data-theme-preset="Hitam"] #modal-root .upload-field [data-drop-zone] > .app-icon {
  color: #c4b5fd !important;
  stroke: currentColor;
}
:root[data-theme-preset="Hitam"] #app .upload-field [data-drop-zone]:hover,
:root[data-theme-preset="Hitam"] #modal-root .upload-field [data-drop-zone]:hover {
  border-color: #a78bfa !important;
  background: #27272a !important;
}
:root[data-theme-preset="Hitam"] #app .production-order-print-button {
  border-color: #166534;
  background-color: #14532d;
  color: #ffffff;
}
:root[data-theme-preset="Hitam"] #app .production-order-file-download {
  border-color: #155e75;
  background-color: #164e63;
  color: #ffffff;
}
:root[data-theme-preset="Hitam"] #app .production-order-print-button:hover,
:root[data-theme-preset="Hitam"] #app .production-order-file-download:hover {
  filter: brightness(1.2);
}

:root[data-theme-mode="dark"] #app .upload-field [data-drop-zone],
:root[data-theme-mode="dark"] #modal-root .upload-field [data-drop-zone] {
  border-color: #7c3aed !important;
  background: #18181b !important;
  color: #ffffff !important;
}
:root[data-theme-mode="dark"] #app .upload-field [data-drop-zone] > span,
:root[data-theme-mode="dark"] #modal-root .upload-field [data-drop-zone] > span {
  color: #ffffff !important;
}
:root[data-theme-mode="dark"] #app .upload-field [data-drop-zone] > svg,
:root[data-theme-mode="dark"] #app .upload-field [data-drop-zone] > .app-icon,
:root[data-theme-mode="dark"] #modal-root .upload-field [data-drop-zone] > svg,
:root[data-theme-mode="dark"] #modal-root .upload-field [data-drop-zone] > .app-icon {
  color: #c4b5fd !important;
  stroke: currentColor;
}
:root[data-theme-mode="dark"] #app .upload-field [data-drop-zone]:hover,
:root[data-theme-mode="dark"] #modal-root .upload-field [data-drop-zone]:hover {
  border-color: #a78bfa !important;
  background: #27272a !important;
}
:root[data-theme-mode="dark"] #app .upload-file-name,
:root[data-theme-mode="dark"] #modal-root .upload-file-name {
  color: #cbd5e1 !important;
}
