/* CommerceFlow — espace boutique connecté. Complète style.css. */

[hidden] {
  display: none !important;
}

.bq-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;
}

.bq-skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.bq-skip:focus {
  top: 12px;
}

.bq-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bq-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bq-connected {
  font-size: 8px;
  letter-spacing: 1.2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  color: var(--muted);
}

.bq-account {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bq-side-link,
.bq-side-button {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.bq-side-button {
  color: var(--muted);
}

.bq-side-link:hover,
.bq-side-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bq-footer {
  margin-top: auto;
  padding: 18px 38px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.bq-footer p {
  margin: 0;
}

.bq-center {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.bq-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bq-spin 0.8s linear infinite;
}

@keyframes bq-spin {
  to { transform: rotate(360deg); }
}

.bq-gate-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(16, 34, 28, 0.08);
  text-align: left;
}

.bq-gate-card h1 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.bq-gate-card p {
  line-height: 1.6;
}

.bq-eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}

.bq-primary-link {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.bq-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.bq-heading h1 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 34px);
}

.bq-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bq-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bq-primary,
.bq-secondary,
.bq-danger {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bq-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.bq-danger {
  background: transparent;
  color: #a12d2d;
  border-color: #d9a7a7;
}

.bq-primary:disabled,
.bq-secondary:disabled,
.bq-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bq-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.bq-panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.bq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bq-panel-head h2 {
  margin: 0;
}

.bq-muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.bq-alert {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.bq-alert-error {
  border-color: #e3b4b4;
  background: #fdf3f3;
  color: #7d2323;
}

.bq-alert-success {
  border-color: #b4d8c7;
  background: #f1faf5;
  color: #14543f;
}

.bq-alert-info {
  background: var(--soft);
  color: var(--ink);
}

.bq-alert-warning {
  border-color: #e4d2a5;
  background: #fdf9ed;
  color: #6d5416;
}

.bq-form {
  display: grid;
  gap: 13px;
}

.bq-grid-2,
.bq-grid-3,
.bq-grid-4 {
  display: grid;
  gap: 12px;
}

.bq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bq-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bq-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bq-field label,
.bq-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bq-field input,
.bq-field select,
.bq-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  font-size: 13px;
}

.bq-field textarea {
  min-height: 74px;
  resize: vertical;
}

.bq-field input:focus,
.bq-field select:focus,
.bq-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.bq-field-error {
  min-height: 15px;
  margin: 0;
  color: #943030;
  font-size: 11px;
}

.bq-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.bq-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bq-toolbar label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bq-toolbar select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.bq-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bq-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  font: inherit;
}

button.bq-row {
  cursor: pointer;
}

button.bq-row:hover {
  border-color: var(--accent);
}

.bq-row-main {
  min-width: 0;
}

.bq-row-main strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-row-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.bq-row-value {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bq-row-meta {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.bq-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.bq-badge-cancel {
  background: #f8e4e4;
  color: #7d2323;
}

.bq-badge-done {
  background: #e2f3e9;
  color: #14543f;
}

.bq-empty {
  margin: 8px 0;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.bq-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.bq-pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.bq-pagination-actions {
  display: flex;
  gap: 7px;
}

.bq-pagination-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.bq-pagination-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bq-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(12, 30, 24, 0.28);
}

.bq-dialog::backdrop {
  background: rgba(11, 27, 22, 0.5);
}

.bq-dialog #modal-body {
  padding: 22px;
  overflow: auto;
  max-height: calc(100vh - 80px);
}

.bq-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bq-dialog-head h2 {
  margin: 0;
  font-size: 21px;
}

.bq-dialog-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bq-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.bq-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.bq-summary-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.bq-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bq-summary-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.bq-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.bq-table th,
.bq-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.bq-table th {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.bq-table tr:last-child td {
  border-bottom: 0;
}

.bq-table td.bq-wrap {
  white-space: normal;
  min-width: 150px;
}

.bq-items {
  display: grid;
  gap: 8px;
}

.bq-item-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 80px 120px auto;
  gap: 8px;
  align-items: end;
}

.bq-item-row .bq-field input {
  padding: 8px 9px;
}

.bq-item-remove {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: #943030;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.bq-preview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
}

.bq-preview strong {
  font-size: 15px;
}

.bq-preview-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.bq-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bq-check input {
  width: auto;
}

.bq-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(12, 30, 24, 0.18);
  font-size: 12px;
}

.bq-toast.bq-toast-error {
  border-color: #e3b4b4;
  color: #7d2323;
}

.bq-toast.bq-toast-success {
  border-color: #b4d8c7;
  color: #14543f;
}

.bq-loading-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.bq-loading-line .bq-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.bq-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bq-nowrap {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .bq-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bq-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .bq-heading h1 { font-size: 25px; }
  .bq-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bq-row-value { grid-column: 2; }
  .bq-row-meta { grid-column: 1 / -1; }
  .bq-grid-2,
  .bq-grid-3,
  .bq-grid-4 { grid-template-columns: 1fr; }
  .bq-item-row { grid-template-columns: minmax(0, 1fr) 72px 105px auto; }
  .bq-footer { flex-direction: column; padding: 16px; }
  .bq-dialog #modal-body { padding: 16px; }
  .bq-toast { bottom: 84px; }
  .bq-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .bq-item-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .bq-item-row .bq-field:nth-child(3) { grid-column: 2; }
  .bq-item-remove { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------------- */
/* Navigation mobile — lot UI 01                                             */
/* ------------------------------------------------------------------------- */

.bq-header-shop-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bq-header-shop-link:hover {
  border-color: var(--accent);
}

.mobile-add {
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(18, 58, 44, 0.24);
}

.mobile-add svg {
  width: 24px;
  height: 24px;
}

#toast.bq-toast {
  right: 18px;
  bottom: 18px;
  left: auto;
  display: block;
  transform: none;
}

.bq-view-enter {
  animation: bq-view-enter 200ms ease-out both;
}

@keyframes bq-view-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bq-tab-bump {
  0% { transform: translateY(1px) scale(0.94); }
  55% { transform: translateY(-1px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
    gap: 10px;
  }

  .breadcrumb {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .breadcrumb span {
    margin: 0 6px;
  }

  .bq-top-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .bq-connected {
    display: none;
  }

  .bq-header-shop-link {
    display: inline-flex;
  }

  .bq-main {
    --bq-bottom-clearance: calc(160px + env(safe-area-inset-bottom, 0px));
    min-height: calc(100vh - var(--bq-bottom-clearance));
    min-height: calc(100dvh - var(--bq-bottom-clearance));
    padding-bottom: var(--bq-bottom-clearance);
  }

  .content {
    padding: 20px 16px 24px;
  }

  .bq-footer {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 18px;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    min-height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -10px 30px rgba(20, 45, 35, 0.06);
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
  }

  .mobile-nav button {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    transition: background-color 140ms ease-out, color 140ms ease-out;
  }

  .mobile-nav button:active {
    background: var(--bg);
  }

  .mobile-nav button span {
    margin-top: 0;
  }

  .mobile-nav-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 30px;
    border-radius: 999px;
    background: transparent;
    color: inherit;
  }

  .mobile-nav-icon svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .mobile-nav-label {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav button.active {
    color: var(--accent);
  }

  .mobile-nav button.active .mobile-nav-icon {
    background: var(--soft);
  }

  .mobile-nav button.active .mobile-nav-label {
    font-weight: 700;
  }

  .mobile-nav button.bq-tab-bump .mobile-nav-icon svg {
    animation: bq-tab-bump 210ms ease-out;
  }

  .mobile-add {
    position: fixed;
    right: 18px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 61;
    display: grid;
  }

  .mobile-add:active {
    box-shadow: 0 4px 14px rgba(18, 58, 44, 0.28);
  }

  #toast.bq-toast {
    right: 12px;
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    left: auto;
    max-width: calc(100vw - 24px);
    transform: none;
  }

  .bq-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .bq-dialog #modal-body {
    max-height: calc(100dvh - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bq-view-enter,
  .mobile-nav button.bq-tab-bump .mobile-nav-icon svg {
    animation: none !important;
  }

  .mobile-nav button {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------------- */
/* Accueil — lot UI 02                                                       */
/* ------------------------------------------------------------------------- */

.shell.bq-home-shell,
.shell.bq-home-shell .bq-main {
  background: #f4f4ec;
}

.shell.bq-home-shell .bq-footer {
  border-top-color: #e4e3d8;
  color: #64736b;
}

.content.bq-home-page {
  max-width: 1240px;
  padding-top: 26px;
}

.bq-home {
  --home-cream: #f4f4ec;
  --home-green: #17614a;
  --home-green-ink: #103f31;
  --home-orange: #b05a0d;
  --home-blue: #1c5fac;
  --home-border: #eae9e2;
  --home-ink: #20362d;
  --home-muted: #687970;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--home-ink);
  font-size: 16px;
  line-height: 1.45;
}

.bq-home-intro {
  max-width: 720px;
  margin: 0 0 24px;
}

.bq-home-shop {
  margin: 0 0 10px;
  color: #5f7168;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.15px;
  line-height: 1.3;
  text-transform: uppercase;
}

.bq-home-title {
  margin: 0;
  color: #1d382e;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.03;
}

.bq-home-greeting {
  max-width: 620px;
  margin: 10px 0 0;
  color: #50645a;
  font-size: 16px;
  line-height: 1.5;
}

.bq-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bq-home-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bq-home-status-note {
  margin: 0 0 9px;
  color: #5f7168;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.05px;
  line-height: 1.3;
  text-transform: uppercase;
}

.bq-home-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bq-stat {
  --tone: var(--home-green);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 55, 45, 0.045);
  color: var(--home-ink);
  text-align: left;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}

.bq-stat::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--tone);
}

.bq-stat-orange { --tone: var(--home-orange); }
.bq-stat-blue { --tone: var(--home-blue); }
.bq-stat-green { --tone: var(--home-green); }

.bq-stat:hover {
  border-color: #d9d9ce;
  box-shadow: 0 10px 26px rgba(33, 55, 45, 0.075);
  transform: translateY(-2px);
}

.bq-stat-label {
  display: block;
  max-width: 100%;
  color: var(--tone);
  font-size: clamp(10px, 2.9vw, 11.5px);
  font-weight: 750;
  letter-spacing: 0.05px;
  line-height: 1.18;
}

.bq-stat-value {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #1e382e;
  font-size: clamp(30px, 4vw, 40px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
}

.bq-stat-unit {
  display: block;
  margin-top: 5px;
  color: #5f7168;
  font-size: 10px;
  line-height: 1.2;
}

.bq-stat-arrow {
  position: absolute;
  top: 13px;
  right: 13px;
  color: var(--tone);
  font-size: 16px;
  line-height: 1;
  opacity: 0.75;
}

.bq-finance {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  background: var(--home-green);
  box-shadow: 0 14px 34px rgba(23, 97, 74, 0.17);
  color: #fff;
}

.bq-finance::after {
  content: '';
  position: absolute;
  top: -72px;
  right: -60px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.bq-finance-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.bq-finance-copy {
  flex: 1 1 230px;
  min-width: 0;
}

.bq-finance-kicker {
  margin: 0 0 5px;
  color: #b7d5c8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.bq-finance-title {
  margin: 0;
  color: #f7fbf8;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.bq-finance-help {
  margin: 5px 0 0;
  color: #bdd8cc;
  font-size: 12px;
  line-height: 1.4;
}

.bq-finance-amount {
  flex: 1 1 100%;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 3.3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.02;
}

.bq-finance-amount-negative {
  color: #ffd3a8;
}

.bq-finance-negative {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #ffd3a8;
  font-size: 11.5px;
  line-height: 1.4;
}

.bq-periods {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.bq-period {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dcebe4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

.bq-period[aria-pressed='true'] {
  background: var(--home-cream);
  color: var(--home-green);
}

.bq-period:hover {
  color: #fff;
}

.bq-period[aria-pressed='true']:hover {
  color: var(--home-green);
}

.bq-finance-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bq-finance-metric {
  min-width: 0;
}

.bq-finance-metric dt {
  color: #bdd8cc;
  font-size: 11.5px;
  line-height: 1.35;
}

.bq-finance-metric dd {
  min-width: 0;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.bq-finance-metric dd strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.25px;
  line-height: 1.25;
}

.bq-finance-metric dd small {
  display: block;
  margin-top: 4px;
  color: #bdd8cc;
  font-size: 10px;
  line-height: 1.35;
}

.bq-home-tasks {
  min-width: 0;
}

.bq-home-tasks-title {
  margin: 0;
  color: #1f382f;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.bq-home-tasks-subtitle {
  margin: 5px 0 13px;
  color: #5f7168;
  font-size: 12.5px;
  line-height: 1.4;
}

.bq-task-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bq-task {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 55, 45, 0.04);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.bq-task:focus-within {
  border-color: #c9d7cf;
  box-shadow: 0 9px 26px rgba(33, 55, 45, 0.07);
}

.bq-task-open {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.bq-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bq-task-ref {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1d382e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.15px;
  line-height: 1.2;
}

.bq-task-top .bq-badge {
  flex: 0 0 auto;
  font-size: 9.5px;
  line-height: 1.2;
}

.bq-task-customer {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #566a60;
  font-size: 16px;
  line-height: 1.35;
}

.bq-task-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
}

.bq-task-total-label {
  color: #5f7168;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bq-task-total-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1e382e;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.25;
}

.bq-task-actions {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #f0efe8;
}

.bq-task-deliver {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c5ddd1;
  border-radius: 11px;
  background: #eef7f2;
  color: var(--home-green);
  font-size: 13px;
  font-weight: 750;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out;
}

.bq-task-deliver:hover {
  border-color: #9ec7b4;
  background: #e4f2ea;
}

.bq-task-feedback {
  margin: 9px 0 0;
  color: #8a2e2e;
  font-size: 11.5px;
  line-height: 1.4;
}

.bq-task-feedback-error {
  color: #8a2e2e;
}

.bq-home-more {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  background: #fff;
  color: var(--home-green);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 200ms ease-out, background-color 200ms ease-out;
}

.bq-home-more:hover {
  border-color: #c7d8cf;
  background: #fbfbf7;
}

.bq-home-empty {
  padding: 24px 20px;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 55, 45, 0.04);
  text-align: center;
}

.bq-home-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e7f2ec;
  color: var(--home-green);
  font-size: 20px;
  font-weight: 800;
}

.bq-home-empty h3 {
  margin: 0 0 6px;
  color: #1f382f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.bq-home-empty p {
  max-width: 320px;
  margin: 0 auto 14px;
  color: #687970;
  font-size: 13px;
  line-height: 1.5;
}

.bq-home-primary,
.bq-home-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}

.bq-home-primary {
  background: var(--home-green);
  color: #fff;
}

.bq-home-primary:hover {
  background: var(--home-green-ink);
}

.bq-home-secondary {
  border-color: var(--home-border);
  background: #fff;
  color: var(--home-green);
}

.bq-home-secondary:hover {
  border-color: #c7d8cf;
  background: #fbfbf7;
}

.bq-home-error {
  max-width: 720px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 55, 45, 0.05);
}

.bq-home-error-title {
  margin: 0 0 8px;
  color: #1f382f;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.bq-home-error-text {
  margin: 0;
  color: #5f7168;
  font-size: 14px;
  line-height: 1.55;
}

.bq-home-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.bq-skeleton-bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e5e4da;
}

.bq-skeleton-greeting {
  width: min(300px, 68%);
  height: 14px;
  margin-top: 13px;
}

.bq-stat-skeleton {
  pointer-events: none;
}

.bq-stat-skeleton::before {
  background: #e5e4da;
}

.bq-skeleton-stat-label {
  width: 68%;
  height: 10px;
  margin-bottom: 15px;
}

.bq-skeleton-stat-value {
  width: 52%;
  height: 32px;
}

.bq-finance-skeleton {
  min-height: 210px;
}

.bq-finance-skeleton::after {
  display: none;
}

.bq-finance-skeleton .bq-skeleton-bar {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.22);
}

.bq-skeleton-finance-kicker {
  width: 94px;
  height: 9px;
}

.bq-skeleton-finance-title {
  width: 170px;
  height: 20px;
  margin-top: 11px;
}

.bq-skeleton-finance-value {
  width: min(280px, 72%);
  height: 44px;
  margin-top: 18px;
  border-radius: 8px;
}

.bq-finance-skeleton .bq-finance-metrics {
  display: grid;
}

.bq-skeleton-finance-metric {
  width: 100%;
  height: 42px;
  border-radius: 8px;
}

.bq-task-skeleton {
  pointer-events: none;
}

.bq-skeleton-task-title {
  width: 44%;
  height: 14px;
}

.bq-skeleton-task-line {
  width: 66%;
  height: 12px;
  margin-top: 11px;
}

.bq-skeleton-task-total {
  width: 36%;
  height: 15px;
  margin-top: 13px;
}

@media (min-width: 1180px) {
  .bq-home-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  }
}

@media (max-width: 767px) {
  .content.bq-home-page {
    padding: 18px 16px 22px;
  }

  .bq-home-intro {
    margin-bottom: 21px;
  }

  .bq-home-title {
    font-size: clamp(31px, 9vw, 38px);
  }

  .bq-home-layout,
  .bq-home-main {
    gap: 15px;
  }

  .bq-home-status-grid {
    gap: 8px;
  }

  .bq-stat {
    min-height: 116px;
    padding: 12px;
    border-radius: 15px;
  }

  .bq-stat::before {
    margin-bottom: 12px;
  }

  .bq-stat-arrow {
    top: 11px;
    right: 11px;
    font-size: 14px;
  }

  .bq-finance {
    padding: 19px;
    border-radius: 20px;
  }

  .bq-finance-amount {
    margin-top: 9px;
  }

  .bq-home-tasks-title {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .bq-periods {
    width: 100%;
    margin-left: 0;
  }

  .bq-period {
    padding: 0 5px;
    font-size: 10.5px;
  }

  .bq-finance-metrics {
    gap: 12px;
  }

  .bq-finance-metric dt {
    font-size: 10.5px;
  }

  .bq-finance-metric dd strong {
    font-size: 16px;
  }

  .bq-finance-metric dd small {
    font-size: 9.5px;
  }

  .bq-home-empty {
    padding: 22px 16px;
  }

  .bq-home-error {
    padding: 21px 18px;
  }
}

@media (max-width: 350px) {
  .bq-stat {
    min-height: 108px;
    padding: 10px;
  }

  .bq-stat::before {
    width: 22px;
    margin-bottom: 10px;
  }

  .bq-stat-unit {
    font-size: 9px;
  }

  .bq-finance {
    padding: 16px;
  }

  .bq-home-error-actions .bq-home-primary,
  .bq-home-error-actions .bq-home-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bq-stat,
  .bq-period,
  .bq-task,
  .bq-task-deliver,
  .bq-home-more,
  .bq-home-primary,
  .bq-home-secondary {
    transition: none !important;
  }

  .bq-stat:hover {
    transform: none;
  }
}


/* ------------------------------------------------------------------------- */
/* Commandes - lot UI 03                                                     */
/* ------------------------------------------------------------------------- */

.shell.bq-orders-shell,
.shell.bq-orders-shell .bq-main {
  background: #f4f4ec;
}

.shell.bq-orders-shell .bq-footer {
  border-top-color: #e4e3d8;
  color: #64736b;
}

.content.bq-orders-page {
  max-width: 1080px;
  padding-top: 26px;
}

.bq-orders {
  --orders-cream: #f4f4ec;
  --orders-surface: #fffef9;
  --orders-ink: #20362d;
  --orders-muted: #6b7a72;
  --orders-line: #e7e6dc;
  --orders-green: #17614a;
  --orders-green-ink: #103f31;
  --orders-soft: #edf4ee;
  --orders-orange: #a8590d;
  --orders-blue: #1c5fac;
  --orders-red: #8c3030;
  --orders-warm: #fbf2df;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  color: var(--orders-ink);
  font-size: 15px;
}

.bq-orders button,
.bq-orders input {
  letter-spacing: 0;
}

.bq-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bq-orders-head-copy {
  min-width: 0;
}

.bq-orders-title {
  margin: 0 0 5px;
  font-size: clamp(29px, 4.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 760;
}

.bq-orders-subtitle {
  max-width: 520px;
  margin: 0;
  color: var(--orders-muted);
  font-size: 13px;
  line-height: 1.55;
}

.bq-orders-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bq-orders-head-actions .bq-primary,
.bq-orders-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.bq-orders-refresh {
  border: 1px solid var(--orders-line);
  background: var(--orders-surface);
  color: var(--orders-green-ink);
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.bq-orders-refresh:hover {
  background: var(--orders-soft);
  border-color: #cbdccb;
}

.bq-orders-refresh:active {
  transform: scale(0.985);
}

.bq-orders-refresh-icon {
  width: 16px;
  height: 16px;
}

.bq-orders-controls {
  display: grid;
  gap: 11px;
  padding: 13px;
  margin-bottom: 16px;
  background: var(--orders-surface);
  border: 1px solid var(--orders-line);
  border-radius: 18px;
  box-shadow: 0 9px 30px rgba(28, 56, 43, 0.045);
}

.bq-orders-search {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.bq-orders-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.bq-orders-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #708078;
  pointer-events: none;
}

.bq-orders-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 48px 0 42px;
  border: 1px solid var(--orders-line);
  border-radius: 999px;
  background: #fbfbf6;
  color: var(--orders-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}

.bq-orders-search input::placeholder {
  color: #86928b;
  opacity: 1;
}

.bq-orders-search input::-webkit-search-cancel-button {
  display: none;
}

.bq-orders-search input:focus {
  border-color: #8eb5a3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 97, 74, 0.12);
}

.bq-orders-clear {
  position: absolute;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7a72;
}

.bq-orders-clear:hover {
  background: #eef1ea;
  color: var(--orders-green-ink);
}

.bq-orders-clear svg {
  width: 16px;
  height: 16px;
}

.bq-orders-filters {
  display: flex;
  gap: 7px;
  max-width: 100%;
  margin: 0;
  padding: 1px 1px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cfd5cb transparent;
}

.bq-order-filter {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--orders-line);
  border-radius: 999px;
  background: #fffef9;
  color: #607168;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.bq-order-filter:hover {
  border-color: #cbdccb;
  background: var(--orders-soft);
}

.bq-order-filter:active {
  transform: scale(0.985);
}

.bq-order-filter[aria-pressed='true'] {
  border-color: var(--orders-green);
  background: var(--orders-green);
  color: #fff;
}

.bq-orders-results {
  min-width: 0;
}

.bq-orders-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin: 0 4px 8px;
}

.bq-orders-summary {
  margin: 0;
  color: var(--orders-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bq-orders-summary.is-pending {
  color: #8a5d22;
}

.bq-orders-summary.is-error {
  color: var(--orders-red);
}

.bq-orders-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bq-order-item {
  min-width: 0;
}

.bq-order-swipe {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  touch-action: pan-y;
}

.bq-order-swipe-action {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: stretch;
  width: 104px;
  border-radius: 18px 0 0 18px;
  background: var(--orders-green);
}

.bq-order-swipe-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 100%;
  padding: 14px 8px;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.bq-order-swipe-button svg {
  width: 20px;
  height: 20px;
}

.bq-order-swipe-button.is-busy {
  cursor: wait;
}

.bq-order-swipe-button.is-busy::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bq-spin 0.8s linear infinite;
}

.bq-order-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--orders-line);
  border-radius: 18px;
  background: var(--orders-surface);
  box-shadow: 0 5px 20px rgba(28, 56, 43, 0.035);
  transition: transform 210ms ease-out, box-shadow 210ms ease-out;
}

.bq-order-swipe.is-dragging .bq-order-card {
  transition: none;
}

.bq-order-swipe.is-revealed .bq-order-card {
  transform: translateX(104px);
  box-shadow: -8px 8px 28px rgba(28, 56, 43, 0.1);
}

.bq-order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.bq-order-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.bq-order-ref {
  min-width: 0;
  color: var(--orders-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bq-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.bq-order-status-prepare {
  background: #fbeedd;
  color: var(--orders-orange);
}

.bq-order-status-deliver {
  background: #e8effa;
  color: var(--orders-blue);
}

.bq-order-status-done {
  background: #e5f2e8;
  color: #14573f;
}

.bq-order-status-cancel {
  background: #f5e5e3;
  color: var(--orders-red);
}

.bq-order-total {
  flex: 0 0 auto;
  color: var(--orders-ink);
  font-size: clamp(19px, 2.8vw, 23px);
  font-weight: 790;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.bq-order-customer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 9px;
  color: #425a4f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bq-order-meta-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #7c8b83;
}

.bq-order-meta {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--orders-muted);
  font-size: 11px;
}

.bq-order-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bq-order-date .bq-order-meta-icon {
  margin-top: 0;
  width: 14px;
  height: 14px;
}

.bq-order-payment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.bq-order-payment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bq-order-payment-paid {
  background: #e5f2e8;
  color: #14573f;
}

.bq-order-payment-unpaid {
  background: #fbeedd;
  color: var(--orders-orange);
}

.bq-order-payment-partial {
  background: #fff4d7;
  color: #785500;
}

.bq-order-payment-cancelled {
  background: #f0f0ea;
  color: #5d6a63;
}

.bq-order-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #f0efe8;
}

.bq-order-details,
.bq-order-deliver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 41px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.bq-order-details {
  border: 1px solid var(--orders-line);
  background: transparent;
  color: var(--orders-green-ink);
}

.bq-order-details:hover {
  background: var(--orders-soft);
  border-color: #cbdccb;
}

.bq-order-deliver {
  border: 1px solid var(--orders-green);
  background: var(--orders-green);
  color: #fff;
}

.bq-order-deliver:hover {
  background: #12523e;
}

.bq-order-deliver:active,
.bq-order-details:active {
  transform: scale(0.985);
}

.bq-order-deliver:disabled {
  cursor: wait;
  opacity: 0.68;
}

.bq-order-deliver.is-busy::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bq-spin 0.8s linear infinite;
}

.bq-order-deliver.is-success {
  border-color: #b9dcc6;
  background: #e5f2e8;
  color: #14573f;
  cursor: default;
  opacity: 1;
}

.bq-order-deliver.is-success svg,
.bq-order-swipe-button.is-success svg {
  width: 15px;
  height: 15px;
}

.bq-order-swipe-button.is-success::before {
  display: none;
}

.bq-order-feedback {
  margin: 8px 14px 0;
  color: var(--orders-red);
  font-size: 11px;
  line-height: 1.5;
}

.bq-order-feedback-success {
  color: #14573f;
}

.bq-orders-empty {
  list-style: none;
}

.bq-orders-empty-card,
.bq-orders-error-card {
  padding: 42px 22px;
  border: 1px dashed #d9d9cd;
  border-radius: 18px;
  background: var(--orders-surface);
  text-align: center;
}

.bq-orders-empty-icon,
.bq-orders-error-icon {
  width: 31px;
  height: 31px;
  margin: 0 auto 14px;
  color: #87958d;
}

.bq-orders-empty-card h2,
.bq-orders-error-card h2 {
  margin: 0 0 7px;
  color: var(--orders-ink);
  font-size: 18px;
  line-height: 1.3;
}

.bq-orders-empty-card p,
.bq-orders-error-card p {
  max-width: 470px;
  margin: 0 auto 17px;
  color: var(--orders-muted);
  font-size: 12px;
  line-height: 1.6;
}

.bq-orders-empty-card .bq-primary,
.bq-orders-error-card .bq-order-error-retry {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.bq-orders-error-card {
  border-style: solid;
  border-color: #ecd7d4;
  background: #fffaf8;
}

.bq-orders-error-icon {
  color: var(--orders-red);
}

.bq-order-error-retry {
  border: 1px solid var(--orders-green);
  background: var(--orders-green);
  color: #fff;
}

.bq-orders-skeleton-card {
  padding: 16px;
  border: 1px solid var(--orders-line);
  border-radius: 18px;
  background: var(--orders-surface);
}

.bq-skeleton-order-ref {
  width: 104px;
  height: 13px;
}

.bq-skeleton-order-line {
  width: min(230px, 62%);
  height: 11px;
  margin-top: 14px;
}

.bq-skeleton-order-total {
  width: 132px;
  height: 20px;
  margin-top: 12px;
}

.bq-skeleton-order-actions {
  width: 190px;
  height: 38px;
  margin-top: 14px;
  border-radius: 999px;
}

.bq-orders-pagination {
  margin-top: 14px;
  padding: 0 4px;
}

.bq-orders-pagination p {
  font-size: 11px;
  font-weight: 600;
}

.bq-orders-pagination .bq-pagination-actions button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.bq-orders-pagination .bq-pagination-actions button:not(:disabled):hover {
  border-color: #cbdccb;
  background: var(--orders-soft);
}

/* Le balayage est un raccourci tactile. Sur ordinateur, l'action reste dans
   la carte et le panneau latéral est masqué pour éviter toute découpe. */
@media (min-width: 761px) {
  .bq-order-swipe {
    overflow: visible;
  }

  .bq-order-swipe-action {
    display: none;
  }

  .bq-order-swipe.is-revealed .bq-order-card {
    transform: none;
  }
}

@media (max-width: 600px) {
  .content.bq-orders-page {
    padding: 18px 13px 118px;
  }

  .bq-orders-head {
    gap: 13px;
    margin-bottom: 15px;
  }

  .bq-orders-title {
    font-size: clamp(29px, 9vw, 35px);
  }

  .bq-orders-subtitle {
    font-size: 12px;
  }

  .bq-orders-head-actions {
    width: 100%;
    flex-wrap: nowrap;
  }

  .bq-orders-head-actions .bq-primary {
    flex: 1 1 auto;
  }

  .bq-orders-refresh {
    flex: 0 0 auto;
    padding: 0 13px;
  }

  .bq-orders-controls {
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 13px;
  }

  .bq-orders-search-field {
    min-width: 0;
  }

  .bq-orders-search input {
    min-height: 46px;
    padding-right: 44px;
    font-size: 16px;
  }

  .bq-orders-filters {
    margin-right: -10px;
    padding-right: 10px;
  }

  .bq-order-filter {
    min-height: 44px;
    padding: 0 12px;
  }

  .bq-order-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .bq-order-swipe,
  .bq-order-swipe-action,
  .bq-order-swipe-button {
    border-radius: 16px;
  }

  .bq-order-swipe-action {
    width: 96px;
  }

  .bq-order-swipe.is-revealed .bq-order-card {
    transform: translateX(96px);
  }

  .bq-order-card-top {
    flex-direction: column;
    gap: 5px;
  }

  .bq-order-total {
    font-size: 24px;
  }

  .bq-order-customer {
    margin-top: 9px;
    font-size: 13px;
  }

  .bq-order-meta {
    gap: 7px 10px;
  }

  .bq-order-card-actions {
    margin-top: 11px;
    padding-top: 11px;
  }

  .bq-order-details,
  .bq-order-deliver {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .bq-orders-empty-card,
  .bq-orders-error-card {
    padding: 30px 16px;
    border-radius: 16px;
  }

  .bq-orders-empty-card h2,
  .bq-orders-error-card h2 {
    font-size: 16px;
  }

  .bq-orders-pagination {
    align-items: flex-start;
  }

  .bq-orders-pagination .bq-pagination-actions {
    width: 100%;
  }

  .bq-orders-pagination .bq-pagination-actions button {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .bq-orders-head-actions {
    flex-wrap: wrap;
  }

  .bq-orders-head-actions .bq-primary,
  .bq-orders-refresh {
    flex: 1 1 100%;
  }

  .bq-order-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bq-order-details,
  .bq-order-deliver {
    width: 100%;
    flex: 0 0 auto;
  }

  .bq-order-ref {
    font-size: 13px;
  }

  .bq-order-total {
    font-size: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bq-order-customer,
  .bq-order-date {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Chargement discret de la période financière de l'accueil. */
.bq-home-period-updating .bq-home-tasks {
  opacity: 0.9;
}

.bq-finance-loading {
  min-height: 0;
}

.bq-finance-loading-state {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4faf6;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.bq-finance-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

.bq-finance-loading-note {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #dbe9df;
  font-size: 10px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .bq-orders-refresh,
  .bq-order-filter,
  .bq-order-card,
  .bq-order-details,
  .bq-order-deliver,
  .bq-order-swipe-button,
  .bq-orders-pagination .bq-pagination-actions button {
    transition: none !important;
  }

  .bq-order-deliver.is-busy::before,
  .bq-order-swipe-button.is-busy::before,
  .bq-finance-spinner {
    animation: none !important;
  }
}

/* ------------------------------------------------------------------------- */
/* Nouvelle commande — parcours UI 04                                        */
/* ------------------------------------------------------------------------- */

.bq-order-dialog {
  height: min(884px, calc(100dvh - 24px));
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: min(884px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  border: 1px solid #e3e1d5;
  border-radius: 24px;
  background: #ffffff;
  color: #15201b;
  box-shadow: 0 30px 90px rgba(20, 40, 32, 0.28);
  overflow: hidden;
  animation: bq-order-dialog-in 200ms ease-out;
}

.bq-order-dialog::backdrop {
  background: rgba(64, 70, 65, 0.55);
}

.bq-order-dialog #modal-body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: none;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.bq-order-dialog .bq-dialog-head {
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 18px 22px 10px;
}

.bq-order-dialog .bq-dialog-head h2 {
  color: #15201b;
  font-size: 22px;
  line-height: 1.15;
}

.bq-order-dialog .bq-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #667069;
  font-size: 28px;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.bq-order-dialog .bq-dialog-close:hover {
  background: #f2f0e8;
  color: #15201b;
}

.bq-order-dialog .bq-dialog-close:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-dialog .bq-dialog-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.bq-order-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.bq-order-progress-head {
  flex: 0 0 auto;
  padding: 0 22px 12px;
}

.bq-order-step-label {
  margin: 0 0 9px;
  color: #69736c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bq-order-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bq-order-progress li {
  height: 4px;
  border-radius: 999px;
  background: #e3e1d5;
  transition: background-color 220ms ease-out;
}

.bq-order-progress li.is-current,
.bq-order-progress li.is-done {
  background: #17604a;
}

.bq-order-progress li.is-current {
  box-shadow: 0 0 0 1px rgba(23, 96, 74, 0.16);
}

.bq-order-message {
  flex: 0 0 auto;
  margin: 0 22px 10px;
  padding: 10px 12px;
  border: 1px solid #e3b4b4;
  border-radius: 10px;
  background: #fff5f4;
  color: #7d2323;
  font-size: 12px;
  line-height: 1.45;
}

.bq-order-message-warning {
  border-color: #e6cf9c;
  background: #fffaf0;
  color: #6d4d12;
}

.bq-order-message-success {
  border-color: #b4d8c7;
  background: #f0faf5;
  color: #14543f;
}

.bq-order-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.bq-order-step {
  padding-bottom: 4px;
}

.bq-order-step h3:focus {
  outline: none;
}

.bq-order-step-enter {
  animation: bq-order-step-in 200ms ease-out both;
}

@keyframes bq-order-step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bq-order-dialog .bq-sr-only:focus {
  outline: none;
}

.bq-order-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 13px;
  background: #f2f0e8;
}

.bq-order-mode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5f6962;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

.bq-order-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}

.bq-order-mode.is-selected {
  border-color: #e3e1d5;
  background: #ffffff;
  color: #17604a;
  box-shadow: 0 1px 4px rgba(27, 55, 44, 0.1);
}

.bq-order-mode:focus-within {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-customer-panel {
  display: grid;
  gap: 12px;
}

.bq-order-search-label {
  margin-bottom: -4px;
  color: #4b554f;
  font-size: 12px;
  font-weight: 700;
}

.bq-order-search {
  position: relative;
}

.bq-order-search .bq-order-search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #778078;
  transform: translateY(-50%);
  pointer-events: none;
}

.bq-order-search input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 12px 11px 42px;
  border: 1px solid #e3e1d5;
  border-radius: 11px;
  background: #faf9f4;
  color: #15201b;
  font: inherit;
  font-size: 15px;
}

.bq-order-search input::placeholder {
  color: #8a918c;
}

.bq-order-search input:focus {
  border-color: #17604a;
  outline: 2px solid rgba(23, 96, 74, 0.2);
  outline-offset: 1px;
}

.bq-order-dialog .bq-order-help {
  margin: 0;
  color: #778078;
  font-size: 11px;
  line-height: 1.45;
}

.bq-order-selected:empty {
  display: none;
}

.bq-order-selected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #b8d7c9;
  border-radius: 12px;
  background: #e4f1ea;
}

.bq-order-selected-card:focus {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-selected-label {
  margin-left: auto;
  color: #17604a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bq-order-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e4f1ea;
  color: #17604a;
  font-size: 14px;
  font-weight: 800;
}

.bq-order-pick-results,
.bq-order-product-results {
  display: grid;
  gap: 3px;
}

.bq-order-pick-list {
  display: grid;
  gap: 2px;
}

.bq-order-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #15201b;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.bq-order-pick:hover {
  border-color: #e3e1d5;
  background: #faf9f4;
}

.bq-order-pick.is-chosen {
  border-color: #b8d7c9;
  background: #e4f1ea;
}

.bq-order-pick:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: 1px;
}

.bq-order-pick-main {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.bq-order-pick-main strong {
  overflow: hidden;
  color: #15201b;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-order-pick-main small {
  overflow: hidden;
  color: #6f7871;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-order-pick-check {
  display: none;
  color: #17604a;
}

.bq-order-pick.is-chosen .bq-order-pick-check {
  display: block;
}

.bq-order-pick-check svg {
  display: block;
  width: 18px;
  height: 18px;
}

.bq-order-add-label {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #e4f1ea;
  color: #17604a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.bq-order-link {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #17604a;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.bq-order-link:hover {
  text-decoration: underline;
}

.bq-order-link:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-empty {
  margin-top: 6px;
  padding: 18px 14px;
  border: 1px dashed #d9d6c9;
  border-radius: 12px;
  background: #fcfbf7;
  text-align: center;
}

.bq-order-empty p {
  margin: 0 0 6px;
  color: #4e5852;
  font-size: 12px;
  line-height: 1.45;
}

.bq-order-empty .bq-order-secondary {
  margin-top: 9px;
}

.bq-order-empty-items {
  padding: 22px 14px;
}

.bq-order-pager {
  margin-top: 8px;
}

.bq-order-pager:empty {
  display: none;
}

.bq-order-pager-label {
  margin: 0 0 5px;
  color: #778078;
  font-size: 10px;
  text-align: center;
}

.bq-order-pager-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.bq-order-dialog .bq-field {
  gap: 6px;
}

.bq-order-dialog .bq-field label,
.bq-order-dialog .bq-field-label {
  color: #4b554f;
  font-size: 11.5px;
  font-weight: 750;
}

.bq-order-dialog .bq-field input,
.bq-order-dialog .bq-field select,
.bq-order-dialog .bq-field textarea {
  min-height: 45px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #e3e1d5;
  border-radius: 11px;
  background: #faf9f4;
  color: #15201b;
  font-size: 15px;
}

.bq-order-dialog .bq-field textarea {
  min-height: 82px;
  resize: vertical;
}

.bq-order-dialog .bq-field input:focus,
.bq-order-dialog .bq-field select:focus,
.bq-order-dialog .bq-field textarea:focus {
  border-color: #17604a;
  outline: 2px solid rgba(23, 96, 74, 0.2);
  outline-offset: 1px;
}

.bq-order-dialog .bq-field input[aria-invalid='true'],
.bq-order-dialog .bq-field textarea[aria-invalid='true'],
.bq-order-search input[aria-invalid='true'] {
  border-color: #b34a4a;
  background: #fff8f7;
}

.bq-order-dialog .bq-field-error {
  min-height: 0;
  color: #943030;
  font-size: 10.5px;
  line-height: 1.4;
}

.bq-order-dialog .bq-field-error:empty {
  display: none;
}

.bq-order-inline-error {
  margin: 4px 0 0;
  color: #943030;
  font-size: 11px;
  line-height: 1.45;
}

.bq-order-inline-error:empty {
  display: none;
}

.bq-order-section-title {
  margin: 0 0 10px;
  color: #15201b;
  font-size: 14px;
  font-weight: 800;
}

.bq-order-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
}

.bq-order-list-title {
  margin: 0;
  color: #3f4943;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.bq-order-list-count {
  color: #7a837c;
  font-size: 10px;
  white-space: nowrap;
}

.bq-order-command-head {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ece9df;
}

.bq-order-lines {
  display: grid;
  gap: 8px;
}

.bq-order-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 82px 122px 44px;
  grid-template-areas: 'avatar main price stepper remove';
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #e3e1d5;
  border-radius: 13px;
  background: #ffffff;
}

.bq-order-line.has-error {
  border-color: #c97a7a;
  background: #fffafa;
}

.bq-order-line > .bq-order-avatar {
  grid-area: avatar;
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.bq-order-line-main {
  display: grid;
  grid-area: main;
  min-width: 0;
  gap: 1px;
}

.bq-order-line-main strong,
.bq-order-line-name {
  overflow: hidden;
  color: #15201b;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-order-line-main small {
  color: #7a837c;
  font-size: 9.5px;
}

.bq-order-line-main .bq-order-line-total {
  color: #17604a;
  font-size: 10px;
  font-weight: 750;
}

.bq-order-line-name-input {
  width: 100%;
  min-width: 0;
  min-height: 34px !important;
  padding: 5px 7px !important;
  font-size: 13px !important;
}

.bq-order-line-price {
  display: grid;
  grid-area: price;
  gap: 2px;
  min-width: 0;
}

.bq-order-line-price > span {
  color: #7a837c;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.bq-order-line-price input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 4px;
  border: 1px solid #e3e1d5;
  border-radius: 9px;
  background: #faf9f4;
  color: #15201b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.bq-order-line-price input:focus,
.bq-order-stepper input:focus,
.bq-order-line-name-input:focus {
  border-color: #17604a;
  outline: 2px solid rgba(23, 96, 74, 0.2);
  outline-offset: 1px;
}

.bq-order-stepper {
  display: grid;
  grid-area: stepper;
  grid-template-columns: 44px 34px 44px;
  align-items: center;
  justify-content: end;
  border: 1px solid #e3e1d5;
  border-radius: 10px;
  background: #faf9f4;
  overflow: hidden;
}

.bq-order-stepper input {
  width: 34px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  color: #15201b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.bq-order-stepper input::-webkit-outer-spin-button,
.bq-order-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.bq-order-step-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17604a;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}

.bq-order-step-button:hover {
  background: #e4f1ea;
}

.bq-order-step-button:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: -2px;
}

.bq-order-remove {
  display: grid;
  grid-area: remove;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #8b7773;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.bq-order-remove:hover {
  border-color: #eccfca;
  background: #fff5f3;
  color: #8b3030;
}

.bq-order-remove:focus-visible {
  outline: 2px solid #8b3030;
  outline-offset: 1px;
}

.bq-order-free-toggle {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #bfc6bf;
  border-radius: 11px;
  background: #fcfbf7;
  color: #17604a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.bq-order-free-toggle:hover {
  border-color: #17604a;
  background: #f2f8f5;
}

.bq-order-free-toggle:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-free-panel {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e3e1d5;
  border-radius: 13px;
  background: #fcfbf7;
}

.bq-order-free-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 72px;
  gap: 9px;
}

.bq-order-free-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
}

.bq-order-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d9e8e0;
  border-radius: 13px;
  background: #f2f8f5;
}

.bq-order-estimate > div {
  display: grid;
  gap: 1px;
}

.bq-order-estimate span {
  color: #5e6c64;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.bq-order-estimate strong {
  color: #17604a;
  font-size: 21px;
  line-height: 1.1;
}

.bq-order-estimate small {
  max-width: 220px;
  color: #6f7c74;
  font-size: 9.5px;
  line-height: 1.4;
  text-align: right;
}

.bq-order-payment-section {
  margin-bottom: 20px;
}

.bq-order-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bq-order-methods {
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.bq-order-methods legend {
  margin-bottom: 7px;
  padding: 0;
}

.bq-order-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bq-order-method {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #e3e1d5;
  border-radius: 10px;
  background: #faf9f4;
  color: #36423b;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 650;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.bq-order-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
}

.bq-order-method::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1.5px solid #aeb6b0;
  border-radius: 50%;
  background: #ffffff;
}

.bq-order-method.is-selected {
  border-color: #17604a;
  background: #e4f1ea;
  color: #14543f;
}

.bq-order-method.is-selected::before {
  border-color: #17604a;
  box-shadow: inset 0 0 0 3.5px #ffffff;
  background: #17604a;
}

.bq-order-method:focus-within {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-other-method {
  margin-top: 8px;
}

.bq-order-summary {
  padding: 14px;
  border: 1px solid #e3e1d5;
  border-radius: 14px;
  background: #faf9f4;
}

.bq-order-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e3d8;
}

.bq-order-summary-top > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.bq-order-summary-top strong {
  overflow: hidden;
  color: #15201b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-order-summary-top span {
  color: #778078;
  font-size: 10px;
}

.bq-order-summary-lines {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.bq-order-summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5c665f;
  font-size: 10.5px;
}

.bq-order-summary-lines li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-order-summary-amounts {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.bq-order-summary-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #5c665f;
  font-size: 11.5px;
}

.bq-order-summary-amount strong {
  color: #26312b;
  font-size: 12px;
  white-space: nowrap;
}

.bq-order-summary-amount.is-total {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid #e7e3d8;
  color: #15201b;
  font-size: 13px;
  font-weight: 750;
}

.bq-order-summary-amount.is-total strong {
  color: #17604a;
  font-size: 19px;
}

.bq-order-summary-error {
  margin: 2px 0 0;
  color: #943030;
  font-size: 10.5px;
}

.bq-order-summary > .bq-order-help {
  margin-top: 9px;
}

.bq-order-foot {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 13px 22px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ece9df;
  background: #ffffff;
  box-shadow: 0 -10px 24px rgba(28, 45, 37, 0.045);
}

.bq-order-foot.is-uncertain {
  flex-wrap: wrap;
}

.bq-order-foot.is-uncertain .bq-order-primary,
.bq-order-foot.is-uncertain .bq-order-secondary {
  flex: 1 1 100%;
}

.bq-order-primary,
.bq-order-secondary {
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.bq-order-primary {
  flex: 1 1 auto;
  border: 1px solid #17604a;
  background: #17604a;
  color: #ffffff;
}

.bq-order-primary:hover:not(:disabled) {
  background: #124d3b;
  border-color: #124d3b;
}

.bq-order-secondary {
  flex: 0 0 auto;
  border: 1px solid #d8d5c9;
  background: #ffffff;
  color: #26312b;
}

.bq-order-secondary:hover:not(:disabled) {
  border-color: #17604a;
  background: #f7faf8;
}

.bq-order-primary:active:not(:disabled),
.bq-order-secondary:active:not(:disabled) {
  transform: translateY(1px);
}

.bq-order-primary:focus-visible,
.bq-order-secondary:focus-visible {
  outline: 2px solid #17604a;
  outline-offset: 2px;
}

.bq-order-primary:disabled,
.bq-order-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bq-order-danger {
  border-color: #8b3030;
  background: #8b3030;
  color: #ffffff;
}

.bq-order-secondary.bq-order-danger {
  border-color: #cfa9a4;
  background: #ffffff;
  color: #7d2323;
}

.bq-order-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 40, 35, 0.55);
  animation: bq-order-confirm-in 180ms ease-out both;
}

.bq-order-confirm {
  width: min(390px, 100%);
  padding: 20px;
  border: 1px solid #e3e1d5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 36, 29, 0.3);
}

.bq-order-confirm h2 {
  margin: 0 0 8px;
  color: #15201b;
  font-size: 19px;
}

.bq-order-confirm p {
  margin: 0;
  color: #5c665f;
  font-size: 12px;
  line-height: 1.55;
}

.bq-order-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bq-order-confirm-actions .bq-order-primary,
.bq-order-confirm-actions .bq-order-secondary {
  flex: 1 1 140px;
}

@keyframes bq-order-confirm-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .bq-order-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 22px;
  }

  .bq-order-dialog .bq-dialog-head {
    padding: 15px 16px 8px;
  }

  .bq-order-dialog .bq-dialog-head h2 {
    font-size: 20px;
  }

  .bq-order-progress-head {
    padding: 0 16px 10px;
  }

  .bq-order-body {
    padding: 0 16px 14px;
    scrollbar-gutter: auto;
  }

  .bq-order-message {
    margin: 0 16px 9px;
  }

  .bq-order-foot {
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  }

  .bq-order-line {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
    grid-template-areas:
      'avatar main remove'
      '. price stepper';
    gap: 6px 8px;
    padding: 9px 8px;
  }

  .bq-order-line > .bq-order-avatar {
    align-self: start;
    width: 34px;
    height: 34px;
  }

  .bq-order-line-price {
    grid-template-columns: auto 78px;
    align-items: center;
    justify-content: start;
  }

  .bq-order-line-price > span {
    text-align: left;
  }

  .bq-order-stepper {
    justify-self: end;
  }

  .bq-order-stepper {
    grid-template-columns: 44px 44px 44px;
  }

  .bq-order-stepper input {
    width: 44px;
  }

  .bq-order-step-button {
    width: 44px;
  }

  .bq-order-free-grid {
    grid-template-columns: minmax(0, 1fr) 90px;
    grid-template-areas:
      'name name'
      'price qty';
  }

  .bq-order-free-grid > .bq-field:first-child {
    grid-area: name;
  }

  .bq-order-free-grid > .bq-field:nth-child(2) {
    grid-area: price;
  }

  .bq-order-free-grid > .bq-field:nth-child(3) {
    grid-area: qty;
  }

  .bq-order-estimate {
    align-items: flex-end;
  }

  .bq-order-estimate small {
    max-width: 150px;
  }
}

@media (max-width: 360px) {
  .bq-order-dialog {
    width: 100vw;
    max-height: calc(100dvh - 6px);
    border-radius: 18px 18px 0 0;
    margin-bottom: 0;
  }

  .bq-order-dialog .bq-dialog-head {
    padding: 13px 14px 7px;
  }

  .bq-order-progress-head {
    padding: 0 14px 9px;
  }

  .bq-order-body {
    padding: 0 14px 12px;
  }

  .bq-order-message {
    margin: 0 14px 8px;
  }

  .bq-order-foot {
    gap: 6px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  }

  .bq-order-primary,
  .bq-order-secondary {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .bq-order-pick-main strong {
    font-size: 12px;
  }

  .bq-order-selected-label {
    display: none;
  }

  .bq-order-method {
    padding: 8px;
    font-size: 12px;
  }

  .bq-order-estimate {
    padding: 11px;
  }

  .bq-order-estimate strong {
    font-size: 19px;
  }

  .bq-order-estimate small {
    display: none;
  }

  .bq-order-summary {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bq-order-dialog *,
  .bq-order-confirm-backdrop {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes bq-order-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* UI-05: readable recap on narrow screens, no animation required. */
.bq-whatsapp-section { min-width: 0; margin: 18px 0; }
.bq-whatsapp-preview { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: inherit; font-size: 16px; line-height: 1.5; background: #f5f5ee; padding: 14px; border-radius: 12px; user-select: text; }
.bq-whatsapp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bq-whatsapp-actions > * { min-height: 44px; min-width: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.bq-whatsapp-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 12px 16px; border-radius: 10px; }
