:root {
  --wh-bg: #f4f5f7;
  --wh-surface: #ffffff;
  --wh-border: #e5e7eb;
  --wh-text: #111827;
  --wh-muted: #6b7280;
  --wh-primary: #e53935;
  --wh-primary-hover: #c62828;
  --wh-primary-50: #fdece9;
  --wh-sidebar: #f9fafb;
  --wh-radius: 10px;
  --wh-font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --wh-sidebar-width: 272px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.warehouse-body {
  margin: 0;
  min-height: 100vh;
  background: var(--wh-bg);
  color: var(--wh-text);
  font-family: var(--wh-font);
}

body.warehouse-body:not(:has(.login-page)) {
  height: 100%;
  overflow: hidden;
}

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

.warehouse-shell {
  display: flex;
  min-height: 100vh;
  height: 100vh;
}

.warehouse-sidebar {
  width: var(--wh-sidebar-width);
  flex-shrink: 0;
  background: var(--wh-sidebar);
  border-right: 1px solid var(--wh-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem 1rem 1rem;
}

.sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--wh-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sidebar__title {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.sidebar__tag {
  font-size: 11px;
  color: #8b919c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.5rem 1rem;
}

.sidebar__section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa0a8;
  padding: 14px 12px 6px;
}

.nav-link,
.sidebar__group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #444954;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.nav-link:hover,
.sidebar__group-title:hover {
  background: #eef2f7;
}

.nav-link.active,
.sidebar__group[open] > .sidebar__group-title {
  background: var(--wh-primary-50);
  color: var(--wh-primary);
}

.nav-link i,
.sidebar__group-title i {
  opacity: 0.85;
  flex-shrink: 0;
  font-size: 1rem;
}

.sidebar__group {
  margin: 0;
}

.sidebar__group-title {
  list-style: none;
  cursor: pointer;
}

.sidebar__group-title::-webkit-details-marker {
  display: none;
}

.sidebar__group-title::after {
  content: "\f284";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 0.72rem;
  color: #9aa0a8;
  flex-shrink: 0;
}

.sidebar__group[open] > .sidebar__group-title::after {
  content: "\f282";
  color: var(--wh-primary);
}

.sidebar__subnav,
.sidebar__subnav--nested {
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0 0.35rem 2.35rem;
}

.sidebar__sublink {
  padding: 0.4rem 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #5c6370;
  border-radius: 8px;
}

.sidebar__sublink:hover,
.sidebar__sublink.is-active {
  color: var(--wh-primary);
  background: var(--wh-primary-50);
}

.sidebar__sublink--muted {
  cursor: default;
  pointer-events: none;
  font-style: italic;
  font-weight: 500;
}

.sidebar__sublink--create {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.sidebar__sublink--create i {
  font-size: 0.75rem;
}

.wh-notes-list__tabs {
  border-bottom: 1px solid var(--wh-border);
  margin: -0.15rem -0.25rem 0.85rem;
  padding: 0 0.25rem;
}

.wh-notes-list__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wh-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}

.wh-notes-list__tab.is-active {
  color: var(--wh-text);
  border-bottom-color: var(--wh-primary);
}

.wh-notes-list__search {
  margin-bottom: 0.85rem;
}

.wh-notes-list__table-wrap {
  overflow-x: auto;
}

.wh-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.wh-notes-table th,
.wh-notes-table td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--wh-border);
  white-space: nowrap;
}

.wh-notes-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wh-text);
  text-transform: none;
  letter-spacing: normal;
}

.wh-notes-table th i {
  font-size: 0.68rem;
  color: #9aa0a8;
  margin-left: 0.15rem;
}

.wh-notes-table__actions-col {
  width: 124px;
}

.wh-notes-table__actions {
  display: flex;
  gap: 0.25rem;
}

.wh-notes-action {
  width: 28px;
  height: 28px;
  border: 1px solid var(--wh-border);
  border-radius: 6px;
  background: #f9fafb;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.wh-notes-action:hover {
  border-color: #d1d5db;
  color: var(--wh-text);
}

.wh-notes-action--pdf {
  color: #dc3545;
}

.wh-notes-action--pdf:hover {
  color: #bb2d3b;
  border-color: #f1aeb5;
}

.wh-notes-action--edit {
  color: #2563eb;
}

.wh-notes-action--edit:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.wh-notes-status {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: lowercase;
}

.wh-notes-status--pending {
  color: #b45309;
}

.wh-notes-status--verified {
  color: #15803d;
}

.wh-notes-link {
  color: #2563eb;
  font-weight: 500;
}

.wh-notes-link:hover {
  text-decoration: underline;
}

.wh-order-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}

.wh-order-status--dispatched {
  background: #16a34a;
  color: #fff;
}

.wh-order-status--delivered {
  background: #0ea5e9;
  color: #fff;
}

.wh-order-status--rto {
  background: #f59e0b;
  color: #fff;
}

.wh-notes-table__empty {
  text-align: center;
  color: var(--wh-muted);
  padding: 1.5rem 0.75rem !important;
}

.sidebar__foot {
  border-top: 1px solid var(--wh-border);
  padding: 0.85rem 1rem;
}

.user-card {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.user-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wh-primary-50);
  color: var(--wh-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.user-card__name {
  font-weight: 600;
  font-size: 0.88rem;
}

.user-card__meta {
  font-size: 0.75rem;
  color: var(--wh-muted);
}

.sidebar__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--wh-primary);
  font-weight: 500;
}

.sidebar__profile-link:hover {
  color: var(--wh-primary-hover);
}

.warehouse-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.warehouse-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--wh-surface);
  border-bottom: 1px solid var(--wh-border);
}

.warehouse-mobile-menu {
  display: none;
}

.topbar__title {
  font-weight: 700;
  white-space: nowrap;
}

.topbar__search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wh-bg);
  border: 1px solid var(--wh-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--wh-muted);
}

.topbar__search input {
  border: 0;
  background: transparent;
  flex: 1;
  outline: none;
  font: inherit;
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warehouse-dummy-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff8e1;
  color: #b45309;
  border: 1px solid #fde68a;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--wh-bg);
}

.warehouse-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
}

.warehouse-dummy-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--wh-radius);
  background: #fff6f5;
  border: 1px solid #f5cdca;
  color: #b71c1c;
  font-size: 0.88rem;
}

.wh-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.wh-page-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.wh-page-sub {
  margin: 0.35rem 0 0;
  color: var(--wh-muted);
  font-size: 0.92rem;
}

.wh-page-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--wh-primary-50);
  color: var(--wh-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.wh-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wh-panel {
  background: var(--wh-surface);
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.wh-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.wh-panel--empty p {
  margin: 0;
  color: var(--wh-muted);
}

.wh-panel--form {
  max-width: 560px;
}

.wh-panel--form-wide {
  max-width: none;
}

.wh-page-header--compact {
  margin-bottom: 0.75rem;
}

.wh-page-header--compact .wh-page-title {
  margin: 0;
}

.wh-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--wh-border);
  border-radius: 8px;
  font: inherit;
  background: var(--wh-surface);
  color: var(--wh-text);
}

.wh-input--readonly,
.wh-input--value {
  background: #f3f4f6;
  color: var(--wh-muted);
}

.wh-input--file {
  padding: 0.4rem 0.55rem;
}

.wh-form-actions--end {
  justify-content: flex-end;
}

.wh-return-create__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wh-return-create__items {
  margin-bottom: 1.25rem;
}

.wh-return-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.wh-return-items-table th,
.wh-return-items-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--wh-border);
}

.wh-return-items-table th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wh-text);
  text-transform: none;
  letter-spacing: normal;
}

.wh-return-items-table th:nth-child(2),
.wh-return-items-table td:nth-child(2) {
  min-width: 280px;
}

.wh-return-items-table th:nth-child(3),
.wh-return-items-table th:nth-child(4),
.wh-return-items-table th:nth-child(5),
.wh-return-items-table td:nth-child(3),
.wh-return-items-table td:nth-child(4),
.wh-return-items-table td:nth-child(5) {
  width: 90px;
}

.wh-return-items-table .wh-input--rate,
.wh-return-items-table .wh-input--qty,
.wh-return-items-table .wh-input--value {
  min-width: 0;
  padding: 0.45rem 0.5rem;
}

.wh-return-create__add-row {
  margin-bottom: 1rem;
}

.wh-return-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  max-width: 280px;
}

.wh-return-summary__row {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
}

.wh-return-summary__row--total {
  font-weight: 700;
}

.wh-return-create__notes,
.wh-return-create__attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.wh-return-create--readonly .wh-input:disabled,
.wh-return-create--readonly .wh-input[readonly],
.wh-return-create--readonly textarea[readonly] {
  background: #f9fafb;
  color: var(--wh-text);
  opacity: 1;
  cursor: default;
}

.wh-return-create__attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wh-return-create__attachment-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wh-text);
}

.wh-return-create__attachment-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wh-return-create__attachment-link {
  font-size: 0.88rem;
  color: #2563eb;
  text-decoration: none;
}

.wh-return-create__attachment-link:hover {
  text-decoration: underline;
}

.wh-return-create__attachments-empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.wh-debit-create__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wh-debit-create__amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.wh-debit-create__amounts .wh-input--amount {
  font-variant-numeric: tabular-nums;
}

.wh-debit-create__notes,
.wh-debit-create__attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .wh-return-create__selects,
  .wh-return-create__notes,
  .wh-return-create__attachments,
  .wh-debit-create__selects,
  .wh-debit-create__notes,
  .wh-debit-create__attachments {
    grid-template-columns: 1fr;
  }

  .wh-debit-create__amounts {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .wh-return-summary {
    max-width: none;
  }
}

.wh-panel--chart {
  margin-top: 0.5rem;
}

.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.wh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wh-btn-primary {
  background: var(--wh-primary);
  color: #fff;
}

.wh-btn-primary:hover:not(:disabled) {
  background: var(--wh-primary-hover);
}

.wh-btn-secondary {
  background: var(--wh-surface);
  border-color: var(--wh-border);
  color: var(--wh-text);
}

.wh-btn-secondary:hover:not(:disabled) {
  border-color: var(--wh-primary);
  color: var(--wh-primary-hover);
}

.wh-btn-danger {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.wh-btn-danger:hover:not(:disabled) {
  background: #bb2d3b;
  border-color: #b02a37;
}

.wh-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.wh-btn-ghost {
  background: transparent;
  border-color: var(--wh-border);
  color: var(--wh-muted);
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
}

.wh-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.wh-toolbar input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--wh-border);
  border-radius: 8px;
  font: inherit;
}

.wh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wh-table th,
.wh-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--wh-border);
}

.wh-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wh-muted);
  font-weight: 600;
}

.wh-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 500;
}

.wh-batch-link {
  color: var(--wh-primary);
  font-weight: 600;
}

.wh-batch-link:hover {
  color: var(--wh-primary-hover);
}

.wh-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.wh-shortcut-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius);
  transition: border-color 0.15s;
}

.wh-shortcut-card:hover {
  border-color: var(--wh-primary);
}

.wh-shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wh-primary-50);
  color: var(--wh-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.wh-shortcut-card small {
  display: block;
  color: var(--wh-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.wh-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wh-status-card {
  background: var(--wh-surface);
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius);
  padding: 1rem;
  transition: box-shadow 0.15s;
}

.wh-status-card:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.wh-stat-label {
  font-size: 0.82rem;
  color: var(--wh-muted);
  font-weight: 600;
}

.wh-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.wh-stat-hint {
  font-size: 0.78rem;
  color: var(--wh-muted);
}

.wh-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-height: 180px;
  padding-top: 1rem;
}

.wh-trend-point {
  flex: 1;
  text-align: center;
}

.wh-trend-bar {
  background: linear-gradient(180deg, #ef9a9a, var(--wh-primary));
  border-radius: 6px 6px 0 0;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.wh-trend-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--wh-muted);
}

.wh-bookmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.wh-bookmark-card {
  border: 1px dashed var(--wh-border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wh-bookmark-card em {
  font-size: 0.75rem;
  color: var(--wh-primary);
  font-style: normal;
}

.wh-fin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wh-fin-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--wh-border);
  background: var(--wh-surface);
  font-size: 0.88rem;
  font-weight: 500;
}

.wh-fin-subnav a:hover {
  border-color: var(--wh-primary);
  color: var(--wh-primary-hover);
}

.wh-fin-subnav a.is-on {
  background: var(--wh-primary);
  border-color: var(--wh-primary);
  color: #fff;
}

.wh-fin-subnav a.is-on:hover {
  background: var(--wh-primary-hover);
  border-color: var(--wh-primary-hover);
  color: #fff;
}

.wh-reports-page__header {
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.wh-reports-page__meta {
  display: flex;
  gap: 0.5rem;
}

.wh-reports-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--wh-border);
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
}

.wh-reports-pill i {
  color: var(--wh-primary);
}

.wh-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.wh-report-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: var(--wh-surface);
  border: 1px solid var(--wh-border);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wh-report-card:hover {
  transform: translateY(-2px);
  border-color: #d8dee8;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.wh-report-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.wh-report-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.wh-report-card__tag {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #6b7280;
}

.wh-report-card__body {
  flex: 1;
}

.wh-report-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.wh-report-card__hint {
  margin: 0 0 0.45rem;
  color: var(--wh-primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.wh-report-card__desc {
  margin: 0;
  color: var(--wh-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.wh-report-card__foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f0f1f4;
}

.wh-report-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--wh-border);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wh-report-card__btn:not(:disabled):hover {
  background: var(--wh-primary);
  border-color: var(--wh-primary);
  color: #fff;
}

.wh-report-card__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wh-report-card--violet .wh-report-card__icon {
  background: #ede9fe;
  color: #6d28d9;
}

.wh-report-card--sky .wh-report-card__icon {
  background: #e0f2fe;
  color: #0369a1;
}

.wh-report-card--amber .wh-report-card__icon {
  background: #fef3c7;
  color: #b45309;
}

.wh-report-card--rose .wh-report-card__icon {
  background: #ffe4e6;
  color: #be123c;
}

.wh-report-card--slate .wh-report-card__icon {
  background: #f1f5f9;
  color: #475569;
}

.wh-report-card--emerald .wh-report-card__icon {
  background: #d1fae5;
  color: #047857;
}

.wh-report-card--indigo .wh-report-card__icon {
  background: #e0e7ff;
  color: #4338ca;
}

.wh-report-card--orange .wh-report-card__icon {
  background: #ffedd5;
  color: #c2410c;
}

.wh-report-card.is-active {
  border-color: var(--wh-primary);
  box-shadow: 0 0 0 1px var(--wh-primary-50);
}

.wh-report-card__btn:not(:disabled) {
  text-decoration: none;
}

.wh-report-grid--catalog {
  margin-top: 0;
}

.wh-report-catalog {
  margin-top: 0;
}

.wh-report-catalog__section + .wh-report-catalog__section {
  margin-top: 1.75rem;
}

.wh-report-runner-panel {
  margin-top: 1rem;
}

.wh-standard-reports--embedded {
  margin-top: 0;
}

.wh-report-catalog__title {
  margin: 1.5rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.01em;
}

.wh-report-catalog__title:first-child {
  margin-top: 0;
}

.wh-standard-reports {
  padding: 1.25rem 1.35rem 1.1rem;
}

.wh-standard-reports + .wh-standard-reports {
  margin-top: 1rem;
}

.wh-standard-reports__head {
  margin-bottom: 1.1rem;
}

.wh-standard-reports__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.wh-standard-reports__sub {
  margin: 0;
  color: var(--wh-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.wh-standard-reports__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wh-standard-reports__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.wh-standard-reports__field.is-hidden,
.wh-standard-reports__field[hidden] {
  display: none;
}

.wh-standard-reports__field--full {
  max-width: 520px;
}

.wh-standard-reports__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
}

.wh-standard-reports__select {
  width: 100%;
  border: 1px solid var(--wh-border);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wh-text);
  background: #fff;
}

.wh-standard-reports__select--lg {
  font-size: 0.95rem;
  font-weight: 500;
}

.wh-standard-reports__select:focus {
  outline: none;
  border-color: var(--wh-primary);
  box-shadow: 0 0 0 3px var(--wh-primary-50);
}

.wh-standard-reports__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.wh-standard-reports__date-trigger {
  width: 100%;
  justify-content: flex-start;
}

.wh-standard-reports__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
  border-top: 1px solid #f0f1f4;
}

@media (max-width: 1100px) {
  .wh-standard-reports__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wh-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wh-report-grid {
    grid-template-columns: 1fr;
  }

  .wh-standard-reports__grid {
    grid-template-columns: 1fr;
  }

  .wh-reports-page__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.wh-form-field {
  margin-bottom: 1rem;
}

.wh-form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.wh-form-field input,
.wh-form-field textarea,
.wh-form-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--wh-border);
  border-radius: 8px;
  font: inherit;
}

.wh-form-field--order-select .select2-container {
  width: 100% !important;
}

.wh-form-field--order-select .select2-container--default .select2-selection--single {
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--wh-border);
  border-radius: 8px;
}

.wh-form-field--order-select .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.6;
  padding-left: 0.25rem;
}

.wh-form-field--order-select .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.4rem;
}

.wh-form-field--order-select .order-bookmark-drawer__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--wh-muted, #667085);
}

.wh-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--wh-surface);
  border: 1px solid var(--wh-border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.1);
}

.login-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  text-align: center;
}

.login-sub {
  text-align: center;
  color: var(--wh-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.login-hint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--wh-muted);
  text-align: center;
}

.warehouse-flash-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

@media (max-width: 900px) {
  .warehouse-mobile-menu {
    display: inline-flex;
  }

  .warehouse-sidebar {
    position: fixed;
    z-index: 100;
    height: 100%;
    left: 0;
    top: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .warehouse-sidebar[hidden] {
    display: none;
  }
}
