:root {
  --color-primary: #b00020;
  --color-primary-strong: #8a0019;
  --color-highlight-bg: #f3f4f6;
  --color-highlight-border: #d0d5dd;
  --color-background: #f2f2f2;
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #595959;
  --color-border: #e0e0e0;
  --color-error: #c62828;
  --color-success: #2e7d32;
  --color-attention-bg: #fff4e5;
  --color-attention-border: #f2b266;
  --color-focus-ring: #1f6feb;
  --color-on-primary: #ffffff;
  --color-icon-muted-bg: rgba(43, 43, 43, 0.08);
  --color-subtle-surface: rgba(43, 43, 43, 0.05);
  --shadow-sm: 0 4px 12px rgba(43, 43, 43, 0.08);
  --shadow-md: 0 10px 24px rgba(43, 43, 43, 0.12);
  --shadow-lg: 0 16px 36px rgba(43, 43, 43, 0.18);
  --radius-sm: 8px;
  --radius-md: 10px;
  color-scheme: light;
}

/* --- Application specific helpers ------------------------------------- */

.tab-active {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}

.modal {
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.show {
  display: flex;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:root[data-theme="dark"] {
  --color-highlight-bg: #1f2733;
  --color-highlight-border: #303b4b;
  --color-background: #101418;
  --color-surface: #1a1f25;
  --color-text: #f5f7fa;
  --color-muted: #aeb7c4;
  --color-border: #2b323c;
  --color-error: #f28b82;
  --color-success: #81c995;
  --color-attention-bg: rgba(242, 178, 102, 0.16);
  --color-attention-border: #c9863a;
  --color-focus-ring: #5b8def;
  --color-on-primary: #ffe5eb;
  --color-icon-muted-bg: rgba(255, 255, 255, 0.12);
  --color-subtle-surface: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 16px 30px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 26px 56px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 15px/1.5 "Roboto", "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

:where(
    a:not(.btn),
    input,
    select,
    textarea,
    summary,
    [role="button"],
    [role="link"],
    [role="menuitem"],
    [role="option"],
    [tabindex]:not([tabindex="-1"])
  ):focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

h1,
 h2,
 h3,
 h4 {
  color: var(--color-text);
  margin-top: 0;
  font-weight: 600;
}

h1,
 h2,
 h3 {
  margin-bottom: 12px;
}

h4 {
  margin: 20px 0 10px;
}

.section-title {
  color: var(--color-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.small {
  font-size: 13px;
}

.muted {
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  padding: 24px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.sub {
  color: var(--color-muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-text);
  background: var(--color-highlight-bg);
  border-color: var(--color-border);
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.main-nav a.active {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(176, 0, 32, 0.3);
}

.main-nav .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.main-nav .nav-icon svg {
  width: 18px;
  height: 18px;
}

.main-nav .nav-label {
  white-space: nowrap;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-muted);
}

.auth-area .auth-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.auth-area .auth-user {
  font-weight: 600;
  color: var(--color-text);
}

.auth-area .auth-role {
  text-transform: capitalize;
  color: var(--color-muted);
}

.auth-area .btn {
  margin-left: 4px;
}

.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-highlight-bg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.theme-toggle__icon {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle__label {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .theme-toggle {
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }
}


.wrap {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.wrap.orders-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.orders-page .filters-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.orders-page .filters-grid {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.orders-page .filters-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.orders-page .filters-card input,
.orders-page .filters-card select {
  width: 100%;
  min-height: 38px;
}

.orders-page .filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-page .filters-actions .btn {
  flex: 0 0 auto;
}

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

.page,
.home-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.nav-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-card h3 {
  margin-bottom: 8px;
}

.hero p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.collapsible {
  padding: 0;
}

.collapsible summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.collapsible summary::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.collapsible[open] summary::before {
  transform: rotate(45deg);
}

.collapsible summary h2 {
  margin: 0;
}

.collapsible .collapsible-content {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--color-border);
}

.order-card {
  background: var(--color-highlight-bg);
  border-color: var(--color-highlight-border);
  border-left: 4px solid var(--color-primary);
  padding-left: 22px;
}

.order-card .bar h2 {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
  }

  .site-header h1 {
    font-size: 24px;
  }

  .sub {
    font-size: 14px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 10px;
  }

  .main-nav .nav-label {
    font-size: 12px;
  }

  .auth-area {
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .page,
  .home-page {
    padding: 24px 16px 56px;
  }

  .card {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .nav-card {
    text-align: left;
  }

  .nav-card h3 {
    font-size: 18px;
  }

  .nav-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .plan-controls {
    width: 100%;
  }

  .plan-controls label,
  .plan-controls input,
  .plan-controls select {
    width: 100%;
    min-width: 0;
  }

  .orders-page .filters-grid {
    grid-template-columns: 1fr;
  }

  .orders-page .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-page .filters-actions .btn {
    width: 100%;
  }
}

.card.attention {
  background: var(--color-attention-bg);
  border-color: var(--color-attention-border);
}

.card.narrow {
  max-width: 420px;
  margin: 0 auto;
}

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.section-grid-balanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@media (max-width: 768px) {
  .section-grid,
  .section-grid-balanced {
    grid-template-columns: 1fr;
  }
}

.form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.form-panel .stack {
  gap: 12px;
}

.form-panel-secondary {
  background: var(--color-highlight-bg);
  border-color: var(--color-highlight-border);
}

.panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.article-import {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
}

.article-import__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.article-import__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-import__file input[type="file"] {
  max-width: 100%;
}

.article-import-preview .table-wrap {
  box-shadow: none;
}

.article-import-preview table tr.is-invalid {
  background: var(--color-highlight-bg);
  border-left: 4px solid var(--color-error);
}

.article-import-preview table tr.is-invalid th,
.article-import-preview table tr.is-invalid td {
  border-bottom-color: var(--color-highlight-border);
  color: var(--color-error);
}

.article-import-preview table tr.is-invalid td:last-child {
  font-weight: 600;
}

.article-import-preview table tr td:last-child,
.article-import-preview table tr th:last-child {
  width: 30%;
}

.article-row .article-row-actions {
  display: flex;
  justify-content: flex-end;
}

.article-row .quantity-field.is-readonly input {
  background: var(--color-background);
  cursor: not-allowed;
  color: var(--color-muted);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-section details summary {
  cursor: pointer;
  font-weight: 600;
}

.form-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
}

.toggle-label {
  font-size: 13px;
  color: var(--color-muted);
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-option {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-muted);
  background: var(--color-surface);
}

.toggle-option input[type="radio"] {
  margin: 0;
  accent-color: var(--color-primary);
}

.toggle-option span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .form-toggle {
    flex-direction: column;
    align-items: flex-start;
  }
  .toggle-group {
    justify-content: flex-start;
  }
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-stepper {
  margin-bottom: 24px;
}

.order-mini-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 20px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-subtle-surface);
}

.order-mini-summary__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-mini-summary__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.order-mini-summary__value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word;
}

@media (max-width: 768px) {
  .order-mini-summary {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px 14px;
    margin-bottom: 12px;
    padding: 8px 10px;
  }
}

.wizard-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wizard-progress__label {
  font-weight: 600;
  color: var(--color-text);
}

.wizard-progress__track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.wizard-progress__indicator {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.stepper-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.stepper-label {
  font-size: 14px;
  white-space: nowrap;
}

.stepper-item.is-current {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-highlight-bg);
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.18);
}

.stepper-item.is-current .stepper-index,
.stepper-item.is-complete .stepper-index {
  background: var(--color-primary);
  color: #ffffff;
}

.stepper-item.is-complete {
  border-color: rgba(176, 0, 32, 0.35);
  background: var(--color-highlight-bg);
  color: var(--color-primary);
}

.wizard-panel[hidden] {
  display: none !important;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.wizard-actions-final {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.wizard-actions-final #btnCreate {
  margin-left: auto;
}

.wizard-actions-final #createStatus {
  flex: 1 1 100%;
}

@media (max-width: 520px) {
  .wizard-actions,
  .wizard-actions-final {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions .btn,
  .wizard-actions-final .btn {
    width: 100%;
  }

  .stepper {
    flex-direction: column;
    align-items: stretch;
  }

  .stepper-item {
    width: 100%;
    justify-content: flex-start;
  }
}

.summary-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-card h5 {
  margin: 0;
  font-size: 16px;
}

.summary-card-full {
  grid-column: 1 / -1;
}

.summary-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: grid;
  gap: 4px;
}

.summary-row dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.summary-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

.summary-meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.summary-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 280px;
}

.summary-table th,
.summary-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}

.summary-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .wizard-panel {
    padding-bottom: 112px;
  }

  .wizard-actions,
  .wizard-actions-final {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: inherit;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 18px rgba(43, 43, 43, 0.12);
    justify-content: flex-start;
    z-index: 5;
  }

  .wizard-actions .btn,
  .wizard-actions-final .btn {
    flex: 1 1 auto;
  }

  .wizard-actions-final {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions-final #btnCreate,
  .wizard-actions-final .btn {
    margin-left: 0;
    width: 100%;
  }

  .stepper {
    gap: 8px;
  }

  .stepper-item {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.is-hidden-role {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions .btn {
  flex: 0 0 auto;
}

.role-select {
  min-width: 140px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  color: var(--color-muted);
  font-weight: 500;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18);
}

.field-error {
  color: var(--color-error);
  font-size: 12px;
  line-height: 1.3;
  margin-top: -2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.2);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn[disabled]:hover,
.btn:disabled:hover {
  box-shadow: none;
  transform: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--color-primary-strong);
  border-color: var(--color-primary-strong);
  color: var(--color-on-primary);
}

.btn.ghost {
  background: var(--color-background);
}

.btn--icon-leading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px;
  min-height: 36px;
  min-width: 36px;
  width: 36px;
}

.btn.icon-only .btn__icon {
  width: 100%;
  height: 100%;
  background: transparent;
}

.btn.icon-only .btn__icon svg {
  width: 18px;
  height: 18px;
}

.btn.icon-only:hover .btn__icon,
.btn.icon-only:focus-visible .btn__icon {
  background: var(--color-icon-muted-bg);
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-icon-muted-bg);
  color: inherit;
  flex-shrink: 0;
}

.btn__icon svg {
  width: 16px;
  height: 16px;
}

.btn__label {
  display: inline-flex;
  align-items: center;
}

.btn.primary .btn__icon {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-on-primary);
}

.btn.primary:hover .btn__icon,
.btn.primary:focus-visible .btn__icon {
  background: var(--color-on-primary);
  color: var(--color-primary-strong);
}

.btn.small {
  padding: 6px 10px;
  font-size: 13px;
  min-height: 36px;
}

.status {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 6px;
}

.status.status-error {
  color: var(--color-error);
}

.status.status-success {
  color: var(--color-success);
}

.error-text {
  color: var(--color-error);
}

.audit-log-section h4 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.audit-log-list {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.audit-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-log__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.audit-log__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.audit-log__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.audit-log__time {
  font-variant-numeric: tabular-nums;
}

.audit-log__action {
  font-weight: 600;
  color: var(--color-text);
}

.audit-log__details {
  background: var(--color-subtle-surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.audit-log__changes {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px 12px;
  font-size: 13px;
}

.audit-log__changes dt {
  font-weight: 600;
  color: var(--color-text);
}

.audit-log__changes dd {
  margin: 0;
  color: var(--color-muted);
}

.audit-log__message {
  margin: 0;
  font-size: 13px;
}

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

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

.grid2 .checkbox,
.grid2 .form-actions {
  grid-column: 1 / -1;
}

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

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

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

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

@media (max-width: 1100px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.orders-card table {
  table-layout: fixed;
}

.orders-card th,
.orders-card td {
  padding: 8px 10px;
  font-size: 14px;
  word-break: break-word;
  white-space: normal;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.orders-table-skeleton-row {
  pointer-events: none;
}

.orders-table-skeleton-row td {
  border-bottom-color: transparent;
}

.orders-table-skeleton-cell {
  padding: 12px;
}

.orders-table-skeleton-shimmer {
  display: block;
  width: 100%;
  height: 12px;
  margin: 4px 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(226, 226, 226, 0.35) 0%,
    rgba(226, 226, 226, 0.8) 50%,
    rgba(226, 226, 226, 0.35) 100%
  );
  background-size: 200% 100%;
  animation: orders-skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes orders-skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.orders-empty-state-cell {
  padding: 36px;
  text-align: left;
  border-bottom: none;
}

.orders-empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.orders-empty-state__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.orders-empty-state__description {
  margin: 0;
  color: var(--color-muted);
  max-width: 38ch;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
}

.bar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.bar-actions .muted {
  margin-right: auto;
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 200px;
}

.orders-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orders-search__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.15);
  outline: none;
}

.orders-search__input::placeholder {
  color: var(--color-muted);
  opacity: 0.8;
}

@media (max-width: 720px) {
  .orders-search {
    flex-basis: 100%;
  }

  .bar-actions .muted {
    order: 3;
    margin-right: 0;
  }
}

.export-menu {
  position: relative;
}

.export-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.export-menu__toggle::after {
  content: "▾";
  font-size: 0.75em;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.export-menu.is-open .export-menu__toggle::after {
  transform: rotate(180deg);
}

.export-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  min-width: 180px;
  padding: 6px 0;
  z-index: 20;
}

.export-menu__panel[hidden] {
  display: none;
}

.export-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.export-menu__item:hover,
.export-menu__item:focus-visible {
  background: rgba(26, 86, 219, 0.08);
  color: var(--color-primary, #1a56db);
  outline: none;
}

.export-menu__item:active {
  background: rgba(26, 86, 219, 0.16);
}

th[data-sort] {
  white-space: nowrap;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.orders-card th[data-sort] {
  white-space: normal;
}

.orders-card .table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
}

.orders-card .table-sort-button::after {
  margin-left: 0;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  color: var(--color-primary);
}

.table-sort-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.table-sort-button::after {
  content: "↕";
  font-size: 0.75em;
  opacity: 0.36;
  transition: opacity 0.2s ease;
}

th.is-sorted .table-sort-button {
  font-weight: 600;
}

th.is-sorted-asc .table-sort-button::after {
  content: "↑";
  opacity: 1;
}

th.is-sorted-desc .table-sort-button::after {
  content: "↓";
  opacity: 1;
}

dialog {
  border: none;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(43, 43, 43, 0.4);
}

.document-mail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.document-mail {
  max-width: 520px;
  width: min(520px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-mail__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.document-mail__header h3 {
  margin: 0;
}

.document-mail__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}

.document-mail__field input,
.document-mail__field textarea,
.document-mail__field select {
  width: 100%;
}

.document-mail__status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #555;
}

.document-mail__status.is-error {
  color: #b3261e;
}

.document-mail__status.is-success {
  color: #1b5e20;
}

.document-mail__actions {
  justify-content: flex-end;
}

.menu {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.carrier-list,
.truck-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carrier-form-actions,
.truck-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.carrier-list li,
.truck-list li {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.carrier-list li.is-editing,
.truck-list li.is-editing {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.18);
}

.carrier-list li.is-editing strong,
.truck-list li.is-editing strong {
  color: var(--color-primary);
}

.carrier-list li header,
.truck-list li header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.carrier-actions,
.truck-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.carrier-meta,
.truck-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-bar-text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.plan-controls label {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.plan-controls input,
.plan-controls select {
  min-width: 180px;
}

.board-status-row {
  display: flex;
  justify-content: flex-start;
}

.board-status-row .status {
  flex: 1;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: flex-start;
}

.plan-lane {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  min-height: 220px;
}

.plan-lane.lane-unplanned {
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.9), rgba(243, 244, 246, 0.7));
  border-style: dashed;
}

.lane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lane-header h3 {
  margin: 0;
  font-size: 18px;
}

.lane-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.lane-count {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-background);
  color: var(--color-text);
  font-weight: 600;
  font-size: 12px;
}

.capacity-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.capacity-label {
  font-size: 12px;
  color: var(--color-muted);
}

.capacity-bar {
  width: 120px;
  height: 8px;
  background: var(--color-background);
  border-radius: 999px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.capacity-fill.is-warning {
  background: #F29F05;
}

.capacity-fill.is-critical {
  background: var(--color-error);
}

.lane-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  padding: 6px 0 8px;
}

.lane-body.is-drop-target,
.lane-body.is-drop-target::before {
  outline: 2px dashed var(--color-primary);
  outline-offset: 4px;
}

.lane-body .empty-hint {
  border: 1px dashed var(--color-border);
  background: transparent;
  color: var(--color-muted);
  padding: 14px;
  text-align: center;
}

.assignment {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.assignment strong {
  font-size: 14px;
}

.assignment.is-unplanned {
  background: var(--color-highlight-bg);
  border-color: var(--color-highlight-border);
}

.assignment.is-dragging {
  opacity: 0.6;
  box-shadow: var(--shadow-sm);
  cursor: grabbing;
}

.assignment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.route-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.route-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.route-controls .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.map-shell {
  position: relative;
}

.map-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.map-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  color: var(--color-muted);
  pointer-events: none;
}

.map-empty-state__content {
  max-width: 420px;
  display: grid;
  gap: 12px;
}

.map-empty-state h3 {
  margin: 0;
  color: var(--color-text);
}

.map-empty-state p {
  margin: 0;
  font-size: 14px;
}

.route-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.route-summary-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-summary-card.unplanned {
  border-style: dashed;
  background: rgba(89, 89, 89, 0.08);
}

.route-summary-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-summary-card h3 {
  margin: 0;
}

.route-summary-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-summary-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-summary-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.route-summary-step--start,
.route-summary-step--return {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-highlight-bg);
  border: 1px solid rgba(176, 0, 32, 0.35);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .route-controls .btn,
  .auth-area,
  .main-nav,
  .toast-container,
  .status {
    display: none !important;
  }

  .page.route-page {
    padding: 0;
  }

  .card {
    box-shadow: none !important;
    border: none;
  }

  .map-container {
    height: 360px;
    border: 1px solid var(--color-border);
  }

  .map-empty-state {
    position: static;
    background: none;
    pointer-events: auto;
    padding: 16px 0;
  }

  .route-summary {
    grid-template-columns: 1fr;
  }

  .route-summary-card {
    box-shadow: none;
  }

  .route-summary-card ul {
    gap: 4px;
  }

  @page {
    margin: 12mm;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.status-badge.neutral {
  background: rgba(89, 89, 89, 0.12);
  color: var(--color-muted);
  border-color: rgba(89, 89, 89, 0.24);
}

.status-badge.info {
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
  border-color: rgba(26, 115, 232, 0.24);
}

.status-badge.success {
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-success);
  border-color: rgba(46, 125, 50, 0.24);
}

.status-badge.warning {
  background: rgba(242, 178, 102, 0.2);
  color: #B85C00;
  border-color: rgba(242, 178, 102, 0.32);
}

.status-badge.danger {
  background: rgba(198, 40, 40, 0.12);
  color: var(--color-error);
  border-color: rgba(198, 40, 40, 0.24);
}

#ordersTable tbody tr.order-row {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

#ordersTable tbody tr.order-row:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  background: var(--color-highlight-bg);
}

#ordersTable tbody tr.order-row:hover {
  background: var(--color-highlight-bg);
}

#ordersTable tbody tr.order-row.is-readonly-order {
  cursor: not-allowed;
  opacity: 0.68;
}

#ordersTable tbody tr.order-row.is-readonly-order:hover {
  background: var(--color-highlight-bg);
}

.cell-status {
  white-space: nowrap;
}

.improvement-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text);
}

nav.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

nav.pager.is-hidden {
  display: none;
}

nav.pager .pager-info {
  font-size: 0.875rem;
  color: var(--muted-text, #555);
}

nav.pager .pager-size {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

nav.pager select {
  min-width: 4.5rem;
}

@media (max-width: 720px) {
  .status-filter-label {
    width: 100%;
    justify-content: space-between;
  }

  .status-filter {
    width: 100%;
  }
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 11px;
  margin-right: 4px;
}

.empty-hint {
  color: var(--color-muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .board-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(360px, 90vw);
  z-index: 1100;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.toast-message {
  font-size: 0.95rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: var(--color-subtle-surface);
}

.toast-success {
  border-left-color: var(--color-success);
}

.toast-error {
  border-left-color: var(--color-error);
}

.toast-info {
  border-left-color: var(--color-primary);
}

@media (max-width: 600px) {
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 1rem;
  }
}
.responsive-table {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .responsive-table {
    overflow: visible;
    padding: 0;
  }

  .responsive-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }

  .responsive-table tbody tr:last-child {
    border-bottom: none;
  }

  .responsive-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    text-align: left;
  }

  .responsive-table tbody td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .responsive-table tbody td[data-label='Acties'] {
    align-items: flex-end;
  }

  .responsive-table tbody td:not([data-label])::before {
    display: none;
  }

  .responsive-table tbody td:not([data-label]) {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
