/* Shared by the website and the native workspace, without a new app bundle. */
a, button, input, select, textarea, summary, label { touch-action: manipulation; }
a:active, button:active, summary:active { -webkit-tap-highlight-color: #294b3926; }
.button:active, .record-open a:active, .nav-item:active { filter: brightness(.92); }
.navigation-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 150; pointer-events: none; opacity: 0; background: #cbd9c5; }
.navigation-progress::after { content: ''; display: block; width: 35%; height: 100%; background: var(--green); }
.navigation-pending .navigation-progress { opacity: 1; }
.navigation-pending .navigation-progress::after { animation: navigation-progress 1s ease-in-out infinite alternate; }
[data-navigation-pending] { opacity: .65; }
@keyframes navigation-progress { to { transform: translateX(185%); } }
.order-board-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin: 0 0 20px; border: 1px solid #d6e2ce; border-radius: 14px; background: #edf3e8; color: var(--green); }
.order-board-link span:first-child { display: grid; gap: 3px; }
.order-board-link small { color: #52654e; }
.order-board-link > span:last-child { font-size: 24px; }
.order-next-step { padding: 22px; border-top: 1px solid var(--line); background: #f3f7ef; border-radius: 0 0 16px 16px; }
.order-next-step h3 { margin: 0 0 8px; font-size: 17px; }
.order-next-step p { margin: 0 0 16px; max-width: 70ch; }
.order-primary-action { min-height: 48px; }
.order-other-actions { margin-top: 16px; }
.order-other-actions summary, .website-shipping summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.order-other-actions form { margin-top: 10px; }
#order-preparation { scroll-margin-top: 84px; }
.website-order-panel { overflow: hidden; }
.website-order-panel > .panel-heading { padding: 0; flex-wrap: wrap; }
.website-order-panel .eyebrow { margin: 0 0 6px; }
.website-order-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.website-order-total strong { font-size: 21px; }
.website-order-total span { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.website-shipping { border-top: 1px solid var(--line); margin-top: 16px; overflow-wrap: anywhere; }
.website-shipping-print { display: none; }
.website-shipping p { margin: 8px 0 16px; }
.website-lines-table { min-width: 0; }
@media screen and (max-width: 1100px), screen and (pointer: coarse) {
  .button, summary, .back-link { min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px; }
  .page-heading, .panel-heading { gap: 14px; }
  .page-heading .actions { flex-wrap: wrap; }
  .assistant-fab { position: static; width: fit-content; margin: 0 16px 24px auto; padding: 12px 16px; }
  .assistant-fab span { display: inline; }
}
@media screen and (max-width: 760px) {
  .main-content { padding-top: 16px; }
  .page-heading { margin-bottom: 20px; gap: 14px; }
  .page-heading h1 { font-size: clamp(25px, 6.7vw, 32px); line-height: 1.18; overflow-wrap: anywhere; }
  .page-heading .muted { margin-bottom: 0; }
  .page-heading .actions { gap: 8px; }
  .back-link { display: inline-flex; align-items: center; margin-bottom: 12px; }
  .order-summary { padding: 18px; }
  .order-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .order-summary dd { overflow-wrap: anywhere; }
  .order-detail-workspace .panel-heading { flex-direction: column; align-items: stretch; padding: 18px; }
  .order-detail-workspace .panel-heading .actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .order-detail-workspace .panel-heading .button { flex: 1; white-space: normal; text-align: center; }
  .website-order-panel { padding: 18px; }
  .order-detail-workspace .website-order-panel > .panel-heading { padding: 0; flex-direction: row; align-items: center; }
  .order-detail-workspace .website-order-panel h2 { font-size: 19px; }
  .order-next-step { padding: 18px; }
  .order-next-step .button { width: 100%; white-space: normal; text-align: center; }
  .order-lines-table td { overflow-wrap: anywhere; padding: 6px 0; }
  .order-billing { flex-wrap: wrap; gap: 12px; }
  .order-billing .button { white-space: normal; }
  .filters { padding: 16px; gap: 12px; }
}
@media screen and (max-width: 1100px) {
  /* Show each record in place, preserving one copy of its links and values. */
  .mobile-record-table, .mobile-record-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .mobile-record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-record-table tbody { padding: 0 12px 12px; }
  .mobile-record-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .mobile-record-table td, .mobile-record-table td.name-column { display: block; min-width: 0; max-width: none; width: auto; border: 0; padding: 0; overflow-wrap: anywhere; white-space: normal; }
  .mobile-record-table td::before { content: attr(data-label); display: block; color: #647160; font-size: 11px; font-weight: 500; margin-bottom: 3px; }
  .mobile-record-table .name-column, .mobile-record-table .record-open { grid-column: 1 / -1; }
  .mobile-record-table .name-column::before, .mobile-record-table .record-open::before { display: none; }
  .table-scroll .mobile-record-table td.name-column > a { display: block; min-width: 0; max-width: none; padding: 4px 0; font-size: 17px; font-weight: 650; -webkit-line-clamp: unset; overflow: visible; }
  .table-scroll .mobile-record-table td.record-open a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 9px; background: var(--sage); text-decoration: none; }
  .website-lines-table tbody { padding: 0; }
  .website-lines-table tr { padding: 14px; background: var(--paper); }
  .website-lines-table .name-column { font-size: 16px; }
  .website-order-panel .table-scroll { border: 0; }
}
@media screen and (min-width: 761px) and (max-width: 1100px) {
  .mobile-record-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
  .mobile-record-table tr { margin: 0; align-content: start; }
  .website-lines-table tbody { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .navigation-pending .navigation-progress::after { animation: none; width: 100%; } }
@media print {
  .navigation-progress, .order-board-link, .order-next-step { display: none !important; }
  .website-shipping { display: none !important; }
  .website-shipping-print { display: block !important; }
}
