/* Demo Shop Jobs panel — Business One POS Try demo */

.demo-shop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
}

.demo-shop-panel {
  position: fixed;
  inset: 3% 3%;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.demo-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fff8ef, #fff);
}

.demo-shop-toolbar h2 {
  margin: 0;
  font-size: 1.15rem;
}

.demo-shop-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.demo-shop-toolbar-actions [data-demo-shop-filter].active {
  background: #1f82ff;
  color: #fff;
}

/* Inline shop floor (replaces retail department tiles) */
.shop-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  flex: 1;
}

/* Parts tab: chrome only — do not leave a blank flex gap above the catalog */
.shop-workspace.is-catalog-tab {
  flex: 0 0 auto;
  gap: 0.35rem;
}

.shop-workspace.is-calendar-tab {
  flex: 1;
  min-height: 0;
}

.shop-workspace-calendar {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-workspace-calendar.hidden {
  display: none !important;
}

.shop-workspace-calendar .shop-calendar-panel {
  margin-top: 0;
  max-width: none;
}

.shop-calendar-date-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.shop-calendar-date-field input[type="date"] {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

/* Calendar tab: no register cart / checkout column */
body.pos-demo-shop-mode.pos-demo-shop-calendar-tab .main-grid {
  grid-template-columns: 1fr !important;
}
body.pos-demo-shop-mode.pos-demo-shop-calendar-tab #cart-panel {
  display: none !important;
}

.demo-fp-appt-form {
  align-items: start;
}
.demo-fp-appt-vin-field span,
.demo-fp-appt-form > .demo-ro-field > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.demo-fp-appt-vin-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.demo-fp-appt-vin-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.shop-calendar-vin-status,
.shop-calendar-vehicle-preview,
.shop-calendar-avail-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}
.shop-calendar-vehicle-preview.is-filled {
  color: #0f172a;
  font-weight: 600;
}
.shop-calendar-avail-msg.is-blocked {
  color: #b45309;
  font-weight: 600;
}
.demo-fp-appt-tech {
  color: #1d4ed8;
  font-weight: 600;
}
.demo-fp-appt-tech.is-unassigned {
  color: #b45309;
  font-weight: 500;
}
.demo-fp-appt-vin {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Type-to-search combobox used on Calendar booking */
.pos-search-select {
  position: relative;
  width: 100%;
}
.pos-search-select-input {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
}
.pos-search-select-input:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #60a5fa;
}
.pos-search-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.pos-search-select-list li {
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.pos-search-select-list li:hover,
.pos-search-select-list li[aria-selected="true"] {
  background: #eff6ff;
}
.pos-search-select-empty {
  color: #94a3b8;
  cursor: default;
  pointer-events: none;
}

.shop-workspace.hidden {
  display: none !important;
}

body.pos-demo-shop-mode .main-grid > .panel:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.pos-demo-shop-mode #browse-panel:not(.hidden) {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 0.35rem;
}

body.pos-demo-shop-mode .shop-workspace.is-catalog-tab + #browse-panel:not(.hidden),
body.pos-demo-shop-mode #shop-workspace.is-catalog-tab ~ #browse-panel:not(.hidden) {
  margin-top: 0.25rem;
}

body.pos-demo-shop-mode #search-form:not(.hidden) {
  margin-bottom: 0.25rem;
}

.shop-workspace-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.15rem;
}

.shop-workspace-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c56a00;
}

.shop-workspace-top h2 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.shop-workspace-tabs {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
}

.shop-workspace-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.shop-workspace-tab.is-active {
  background: #1f82ff;
  color: #fff;
  box-shadow: 0 1px 3px rgba(31, 130, 255, 0.35);
}

.demo-mode-banner-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.demo-pick-shop-start {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin: 1rem auto 0;
}

.demo-pick-screen .demo-pick-card {
  max-width: 40rem;
}

.demo-pick-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c56a00;
  text-align: center;
}

.demo-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.demo-pick-card-btn {
  appearance: none;
  text-align: left;
  border: 1px solid #dbe3ef;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 70%);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-pick-card-btn:hover,
.demo-pick-card-btn:focus-visible {
  border-color: #1f82ff;
  box-shadow: 0 0 0 3px rgba(31, 130, 255, 0.18);
  outline: none;
}

.demo-pick-card-btn.is-active {
  border-color: #ff9b1f;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 70%);
  box-shadow: 0 0 0 3px rgba(255, 155, 31, 0.22);
}

.demo-pick-card-btn strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.demo-pick-card-btn span {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .demo-pick-grid {
    grid-template-columns: 1fr;
  }
}

.shop-workspace-jobs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  flex: 1;
}

.shop-workspace-jobs.hidden {
  display: none !important;
}

.shop-workspace #shop-workspace-board {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem;
  overflow: auto;
  max-height: min(38vh, 360px);
}

.shop-workspace-jobs.is-composing {
  display: grid;
  grid-template-columns: minmax(200px, 34%) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.shop-workspace-jobs.is-composing #shop-workspace-board,
.shop-workspace #shop-workspace-board.is-compact {
  max-height: none;
  min-height: 0;
  align-self: stretch;
}

.shop-workspace-jobs.is-composing #shop-workspace-board {
  grid-template-columns: 1fr;
}

.shop-workspace-jobs.is-composing #shop-workspace-board .demo-shop-col h3 {
  font-size: 0.72rem;
}

.shop-workspace #shop-workspace-board.hidden {
  display: none !important;
}

.shop-workspace-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
  max-height: none;
}

.shop-workspace-jobs.is-composing {
  gap: 0;
}

.shop-workspace-detail.is-composing {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
  padding: 0;
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 64, 140, 0.12);
}

body.pos-demo-shop-mode #search-form.hidden {
  display: none !important;
}

body.pos-demo-shop-mode #browse-panel.hidden {
  display: none !important;
}

.demo-shop-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.demo-shop-board-wrap {
  overflow: auto;
  padding: 0.75rem;
  border-right: 1px solid #e5e7eb;
  background: #f8fafc;
}

.demo-shop-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.65rem;
  align-items: start;
}

.demo-shop-col h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.demo-shop-col h3 span {
  font-weight: 500;
}

.demo-shop-col-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-shop-card {
  text-align: left;
  border: 1px solid #dbe3ef;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.demo-shop-card strong {
  font-size: 0.92rem;
}

.demo-shop-card-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.demo-shop-card.is-active {
  border-color: #1f82ff;
  box-shadow: 0 0 0 2px rgba(31, 130, 255, 0.2);
}

.demo-shop-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.demo-shop-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.demo-shop-detail {
  padding: 0.9rem 1rem 1.1rem;
  flex: 1;
}

.demo-shop-detail-head h3 {
  margin: 0 0 0.35rem;
}

.demo-shop-detail-head p {
  margin: 0.2rem 0;
  color: #334155;
}

.demo-shop-talk {
  margin-top: 0.55rem !important;
  padding: 0.55rem 0.65rem;
  background: #eff6ff;
  border-radius: 8px;
  color: #1e3a8a !important;
  font-size: 0.9rem;
}

.demo-shop-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.demo-shop-detail-cols h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.demo-shop-detail-cols ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.demo-shop-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.demo-job-status-line {
  margin: 0.15rem 0 0.35rem !important;
  color: #64748b;
  font-size: 0.9rem;
}

.demo-job-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.demo-job-flow li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-job-flow li span {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
}

.demo-job-flow li.is-done {
  color: #15803d;
}

.demo-job-flow li.is-done span {
  background: #16a34a;
  color: #fff;
}

.demo-job-flow li.is-current {
  color: #1d4ed8;
}

.demo-job-flow li.is-current span {
  background: #1f82ff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(31, 130, 255, 0.2);
}

.demo-job-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  box-shadow: 0 8px 20px rgba(31, 130, 255, 0.08);
}

.demo-job-next-label {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.demo-job-next-copy strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.demo-job-next-copy p:last-child {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  max-width: 28rem;
}

.demo-job-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.demo-job-section-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.demo-job-secondary-actions,
.demo-job-more-body,
.demo-job-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-job-more {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.35rem 0.75rem 0.55rem;
}

.demo-job-more summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  padding: 0.35rem 0;
  list-style: none;
}

.demo-job-more summary::-webkit-details-marker {
  display: none;
}

.demo-job-more summary::after {
  content: '▾';
  float: right;
  color: #94a3b8;
}

.demo-job-more[open] summary::after {
  content: '▴';
}

.demo-job-more-body {
  padding-top: 0.35rem;
}

.demo-job-footer-actions {
  padding-top: 0.15rem;
}

.demo-wf-preview {
  margin: 0.35rem 0 0.65rem;
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.demo-wf-preview-note {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

.demo-wf-preview-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: #475569;
}

.demo-wf-preview-list li {
  padding: 0.2rem 0;
}

.demo-wf-preview-current {
  color: #c2410c;
  font-weight: 700;
}

.demo-wf-preview-done {
  color: #15803d;
}

.demo-job-approval-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.demo-job-approval-status {
  margin: 0;
}

.demo-job-track-links {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.demo-customer-portal-tools-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.demo-customer-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.demo-detail-workflow-panel .demo-workflow-guide {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

@media (max-width: 720px) {
  .demo-job-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    font-size: 0.6rem;
  }

  .demo-job-next {
    flex-direction: column;
    align-items: stretch;
  }
}

.demo-shop-customer-view {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.demo-shop-customer-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  position: relative;
}

.demo-shop-customer-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.demo-shop-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.demo-shop-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  font-size: 0.92rem;
}

.demo-shop-table th,
.demo-shop-table td {
  text-align: left;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}

.demo-shop-total {
  font-size: 1.15rem;
  font-weight: 700;
}

.demo-shop-status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
  text-transform: capitalize;
}

.shop-workspace-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.shop-jobs-action-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.1);
}

body.pos-demo-shop-mode .shop-jobs-action-bar.is-visible {
  display: flex !important;
}

.shop-jobs-new-btn {
  flex: 0 0 auto;
}

.shop-jobs-action-shortcuts {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.shop-jobs-action-link {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #ea580c;
  background: #fff;
  color: #9a3412;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(154, 52, 18, 0.08);
}

.shop-jobs-action-link:hover,
.shop-jobs-action-link:focus-visible {
  background: #fff7ed;
  border-color: #c2410c;
  color: #7c2d12;
}

.demo-shop-board-cta {
  grid-column: 1 / -1;
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.45rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.08);
}

.demo-shop-board-cta p {
  margin: 0;
}

.demo-shop-empty-start {
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(31, 130, 255, 0.14), transparent 42%),
    linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #0b1220 100%);
  color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.demo-shop-empty-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 155, 31, 0.18);
  color: #ffd089;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-shop-empty-start h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #fff;
}

.demo-shop-empty-start p {
  margin: 0 0 1.15rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 34rem;
}

.demo-shop-empty-start p:last-of-type {
  margin-bottom: 1rem;
}

.demo-shop-empty-start--board {
  grid-column: 1 / -1;
  min-height: min(42vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  body.pos-demo-shop-mode .shop-jobs-action-shortcuts {
    flex: 0 1 auto;
    width: 100%;
  }

  body.pos-demo-shop-mode .shop-jobs-action-link {
    flex: 1 1 0;
  }

  body.pos-demo-shop-mode .demo-shop-empty-start--board {
    min-height: 0;
    justify-content: flex-start;
  }

  body.pos-demo-shop-mode.shop-view-home .shop-workspace-jobs {
    flex: 0 1 auto;
  }
}

.demo-shop-access-demo-hint {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.demo-shop-detail.is-composing {
  padding: 0;
  background: linear-gradient(180deg, #e8eef8 0%, #f8fafc 28%, #f1f5f9 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.demo-ro-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
}

.demo-ro-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 155, 31, 0.28), transparent 36%),
    linear-gradient(135deg, #0b1f3a 0%, #134078 48%, #1f82ff 120%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 64, 140, 0.28);
}

.demo-ro-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd089;
}

.demo-ro-hero-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.demo-ro-hero-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  max-width: 28rem;
}

.demo-ro-hero-total {
  min-width: 7.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-ro-hero-total span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.demo-ro-hero-total strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.demo-ro-hero-total small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.demo-ro-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.demo-ro-steps li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dbe3ef;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-ro-steps li span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
}

.demo-ro-steps li.is-active {
  color: #0f172a;
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 6px 16px rgba(31, 130, 255, 0.12);
}

.demo-ro-steps li.is-active span {
  background: #1f82ff;
  color: #fff;
}

.demo-ro-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.demo-ro-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1f82ff, #ff9b1f);
}

.demo-ro-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.demo-ro-card-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.demo-ro-card-head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.demo-ro-step-badge {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #1f82ff, #1557b0);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(31, 130, 255, 0.35);
}

.demo-ro-card-total {
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f82ff;
  letter-spacing: -0.02em;
}

.demo-ro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.demo-ro-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-ro-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.demo-ro-field-wide {
  grid-column: 1 / -1;
}

.demo-ro-field input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #0f172a;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #dbe3ef;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.demo-ro-field input:hover {
  border-color: #93c5fd;
}

.demo-ro-field input:focus {
  outline: none;
  border-color: #1f82ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 130, 255, 0.16);
}

.demo-ro-select {
  appearance: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #0f172a;
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
  border: 1.5px solid #dbe3ef;
  border-radius: 11px;
  background:
    linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 14px) calc(1em + 2px) / 6px 6px no-repeat,
    linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 9px) calc(1em + 2px) / 6px 6px no-repeat,
    linear-gradient(180deg, #fff, #f8fafc);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-ro-select:hover:not(:disabled) {
  border-color: #93c5fd;
}

.demo-ro-select:focus {
  outline: none;
  border-color: #1f82ff;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 130, 255, 0.16);
}

.demo-ro-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-ro-ymm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.demo-ro-ymm-preview {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-ro-ymm-preview.is-filled {
  border-style: solid;
  border-color: #93c5fd;
  background: #eff6ff;
  color: #0f172a;
}

.demo-ro-vin-bar {
  margin-bottom: 0.75rem;
}

.demo-ro-item-kind {
  margin: 0.35rem 0 0.85rem;
}

.demo-ro-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.demo-ro-kind-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-ro-kind-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  cursor: pointer;
}

.demo-ro-kind-opt input {
  margin: 0;
}

.demo-ro-kind-opt.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 0 0 1px #93c5fd;
}

.demo-ro-optional {
  font-weight: 400;
  color: #64748b;
  font-size: 0.85em;
}

.demo-ro-req {
  color: #b91c1c;
  font-weight: 700;
}

.demo-ro-custom-piece {
  margin-top: 0.35rem;
}

.demo-workflow-steps li.is-blocked {
  opacity: 0.65;
}

.demo-workflow-steps li.is-blocked em {
  font-style: normal;
  font-size: 0.75em;
  color: #b45309;
}

.demo-fp-mat-lines {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #475569;
}

.demo-fp-mat-notes {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.demo-fp-materials-status {
  margin-left: auto;
}

.demo-ro-demo-vin-pick {
  margin-bottom: 0.65rem;
}

.demo-ro-demo-vin-pick .demo-ro-select {
  width: 100%;
}

.demo-ro-vin-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.demo-ro-vin-row input {
  flex: 1;
  min-width: 0;
}

.demo-ro-vin-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.demo-ro-suggest-chip {
  appearance: none;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.demo-ro-concern-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.demo-ro-concern-examples .demo-ro-suggest-chip {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.demo-ro-concern-examples .demo-ro-suggest-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.demo-ro-vehicle-summary {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-ro-vehicle-vin {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.demo-ro-vehicle-config {
  margin: 0.75rem 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.demo-ro-config-top {
  margin-bottom: 0.65rem;
}

.demo-ro-field-full {
  grid-column: 1 / -1;
}

.demo-ro-config-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.55rem;
}

.demo-ro-config-toggle,
.demo-ro-config-toggles .hm-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: inherit;
}

.demo-ro-config-toggle-copy,
.demo-ro-config-toggles .hm-choice-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.demo-ro-config-toggle-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.demo-ro-config-toggle-hint {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}

.demo-ro-config-toggles .hm-choice-toggle {
  flex: 0 0 auto;
}

.demo-ro-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.demo-ro-specs-panel {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.85rem;
}

.demo-ro-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.demo-ro-specs-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding: 0.25rem 0.5rem 0.25rem 0;
  width: 38%;
}

.demo-ro-specs-table td {
  padding: 0.25rem 0;
}

.demo-ro-catalog-tiers {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.demo-ro-catalog-tier {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.demo-ro-catalog-tier.is-active {
  border-color: #1f82ff;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.demo-ro-fit-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  vertical-align: middle;
}

.demo-ro-fit-tag.is-rec {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 720px) {
  .demo-ro-ymm {
    grid-template-columns: 1fr;
  }
}

.demo-ro-customer-search-wrap {
  margin-bottom: 0.35rem;
}

.demo-ro-customer-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 11rem;
  overflow: auto;
  margin-bottom: 0.55rem;
}

.demo-ro-customer-hit {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.demo-ro-customer-hit:hover,
.demo-ro-customer-hit:focus-visible,
.demo-ro-customer-hit.is-active {
  border-color: #1f82ff;
  box-shadow: 0 0 0 3px rgba(31, 130, 255, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.demo-ro-customer-hit.is-active {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.demo-ro-customer-hit strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.demo-ro-customer-hit span {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.12rem;
}

.demo-ro-customer-hint {
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.demo-ro-customer-walkin {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.demo-ro-hints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.demo-ro-chip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.demo-ro-chip:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(31, 130, 255, 0.12);
}

.demo-ro-chip.is-selected {
  border-color: #1f82ff;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(31, 130, 255, 0.15);
}

.demo-ro-chip-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #ff9b1f, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.demo-ro-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-ro-chip-text strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.demo-ro-chip-text small {
  font-size: 0.72rem;
  color: #64748b;
}

.demo-ro-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.demo-ro-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
}

.demo-ro-line-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.demo-ro-line-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
}

.demo-ro-line-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.demo-ro-line-amt {
  font-weight: 800;
  color: #0f172a;
  min-width: 4.5rem;
  text-align: right;
}

.demo-ro-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
}

.demo-ro-qty-btn {
  appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f82ff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.demo-ro-qty {
  width: 2.4rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
}

.demo-ro-qty-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #64748b;
}

.demo-ro-line.is-alignment-line .demo-ro-line-amt {
  color: #0f172a;
}

.demo-ro-line.is-intake-line {
  border-left: 3px solid #3b82f6;
  padding-left: 0.55rem;
}

.demo-ro-intake-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1d4ed8;
  background: #dbeafe;
}

.demo-ro-intake-live {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.demo-ro-intake-live[hidden] {
  display: none;
}

.demo-ro-line-remove {
  appearance: none;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.demo-ro-lines-empty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px dashed #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}

.demo-ro-lines-empty-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1f82ff;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-ro-lines-empty p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-ro-catalog {
  padding-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
}

.demo-ro-catalog-label {
  margin: 0.55rem 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.demo-ro-intake-only-note {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 0.92rem;
  line-height: 1.45;
}

.demo-ro-card-intake-only .demo-ro-card-head {
  margin-bottom: 0;
}

.demo-ro-cat-block {
  margin-bottom: 0.75rem;
}

.demo-ro-cat-block h5 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}

.demo-ro-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.5rem;
}

.demo-ro-part-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  min-height: 5.4rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.demo-ro-part-btn:hover {
  transform: translateY(-2px);
  border-color: #1f82ff;
  box-shadow: 0 12px 22px rgba(31, 130, 255, 0.16);
}

.demo-ro-part-btn.is-on-ticket {
  border-color: #ff9b1f;
  background: linear-gradient(165deg, #fff7ed, #fff);
  box-shadow: 0 0 0 3px rgba(255, 155, 31, 0.18);
}

.demo-ro-part-cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.demo-ro-part-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  flex: 1;
}

.demo-ro-part-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: auto;
}

.demo-ro-part-foot strong {
  color: #1f82ff;
  font-size: 0.9rem;
}

.demo-ro-part-add {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #1f82ff;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.demo-ro-part-btn.is-on-ticket .demo-ro-part-add {
  background: #ff9b1f;
  color: #0f172a;
}

.demo-ro-part-btn-readonly {
  cursor: default;
  pointer-events: none;
}

.demo-ro-part-btn-readonly:hover {
  transform: none;
  border-color: #dbe3ef;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.demo-ro-part-btn-diag-free {
  border-color: #86efac;
  background: linear-gradient(165deg, #f0fdf4 0%, #ffffff 100%);
}

.demo-ro-part-btn-diag-free:hover {
  border-color: #16a34a;
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.16);
}

.demo-ro-part-btn-diag-bill {
  border-color: #fdba74;
  background: linear-gradient(165deg, #fff7ed 0%, #ffffff 100%);
}

.demo-ro-part-btn-diag-bill:hover {
  border-color: #ea580c;
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.16);
}

.demo-ro-part-diag-for {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
}

.demo-ro-part-btn-diag-free.is-on-ticket {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.demo-ro-part-btn-diag-bill.is-on-ticket {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

.demo-ro-intake-diag-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.demo-ro-diag-summary {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
}

.demo-diag-findings-card .demo-diag-findings-input {
  width: 100%;
  min-height: 6.5rem;
  margin: 0.5rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.demo-diag-findings-hint,
.demo-diag-findings-sent {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-600, #4b5563);
}

.demo-diag-findings-sent {
  color: var(--green-700, #15803d);
}

.demo-diag-findings-label {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700, #374151);
}

.demo-diag-estimate-block {
  margin-top: 0.5rem;
}

.demo-diag-estimate-table {
  width: 100%;
  margin: 0.35rem 0 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.demo-diag-estimate-table th,
.demo-diag-estimate-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  text-align: left;
}

.demo-diag-estimate-table th:last-child,
.demo-diag-estimate-table td:last-child,
.demo-diag-estimate-table tfoot td:last-child {
  text-align: right;
  white-space: nowrap;
}

.demo-diag-estimate-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--gray-300, #d1d5db);
}

.demo-diag-findings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-diag-cart-tools {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.demo-diag-search-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700, #374151);
}

.demo-diag-search-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  font: inherit;
}

.demo-diag-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.45rem;
  max-height: 12rem;
  overflow: auto;
}

.demo-diag-search-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.demo-diag-search-item:hover {
  border-color: #1f82ff;
  box-shadow: 0 8px 18px rgba(31, 130, 255, 0.12);
}

.demo-diag-search-item-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.demo-diag-search-item-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.demo-ro-labor-wrap {
  margin: 0.75rem 0 0.35rem;
}

.demo-ro-line-labor-meta {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.15rem;
}

.demo-diag-labor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.demo-diag-labor-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-right: 0.25rem;
}

.demo-diag-labor-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}

.demo-diag-labor-field input {
  width: 4.25rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.demo-diag-line-qty {
  width: 4rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.demo-diag-line-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.demo-diag-line-meta {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 400;
}

.demo-diag-requests-banner {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(165deg, #eff6ff, #fff);
}

.demo-diag-requests-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #1e3a8a;
}

.demo-diag-requests-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #334155;
}

.demo-diag-type {
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-diag-type-free {
  color: #15803d;
}

.demo-diag-type-billable {
  color: #c2410c;
}

.demo-ro-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 0.15rem 0.25rem;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0), #f1f5f9 35%);
}

.demo-ro-save {
  min-width: 12rem;
  box-shadow: 0 10px 22px rgba(31, 130, 255, 0.28);
}

@media (max-width: 960px) {
  .demo-shop-body {
    grid-template-columns: 1fr;
  }

  .demo-shop-board {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .demo-shop-board-wrap {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    max-height: 42vh;
  }

  .demo-shop-detail-cols {
    grid-template-columns: 1fr;
  }

  .demo-ro-grid-2 {
    grid-template-columns: 1fr;
  }

  .demo-ro-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'main remove'
      'qty amt';
  }

  .demo-ro-line-main { grid-area: main; }
  .demo-ro-qty-stepper { grid-area: qty; }
  .demo-ro-line-amt { grid-area: amt; }
  .demo-ro-line-remove { grid-area: remove; justify-self: end; }
}

.demo-workflow-guide {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.demo-workflow-current {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #334155;
}

.demo-workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-workflow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.demo-workflow-steps li span {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 700;
}

.demo-workflow-steps li.is-done {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}

.demo-workflow-steps li.is-done span {
  background: #14b8a6;
  color: #fff;
}

.demo-workflow-steps li.is-current {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
  font-weight: 600;
}

.demo-workflow-steps li.is-current span {
  background: #f97316;
  color: #fff;
}

.demo-shop-type-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #fff7ed;
  color: #c2410c;
  vertical-align: middle;
}

.demo-workflow-steps li.is-skipped {
  opacity: 0.65;
  text-decoration: line-through;
}

.demo-workflow-note {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.demo-ro-field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.demo-ro-alignment-pick {
  margin-top: 0.25rem;
}

.demo-ro-alignment-pick .demo-ro-field-help {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #64748b;
}

/* ── Job detail panel — card-based layout ── */

.demo-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-detail-sticky-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.15rem;
  padding-bottom: 0.35rem;
  background: linear-gradient(180deg, #f8fafc 0%, rgba(248, 250, 252, 0.97) 80%, transparent);
}

.demo-detail-tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.22rem;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-detail-tabs::-webkit-scrollbar {
  display: none;
}

.demo-detail-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.demo-detail-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.demo-detail-tab.is-active {
  background: linear-gradient(180deg, #ffb24a 0%, #ff9b1f 100%);
  color: #1a2332;
  box-shadow: 0 1px 3px rgba(197, 106, 0, 0.35);
}

.demo-detail-tab:focus-visible {
  outline: 2px solid #1f82ff;
  outline-offset: 2px;
}

.demo-detail-tab-panels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.demo-detail-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-detail-tab-panel[hidden] {
  display: none !important;
}

.demo-detail-overview-meta {
  padding: 0.75rem 0.95rem;
}

.demo-detail-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.demo-detail-overview-item strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.demo-detail-workflow-panel {
  margin-top: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.demo-detail-header-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 155, 31, 0.22), transparent 38%),
    linear-gradient(135deg, #0b1f3a 0%, #134078 52%, #1f82ff 130%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 64, 140, 0.22);
}

.demo-detail-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.demo-detail-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd089;
}

.demo-detail-ro {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.demo-detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.demo-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

.demo-detail-badge.is-status {
  background: rgba(31, 130, 255, 0.35);
  border-color: rgba(147, 197, 253, 0.45);
}

.demo-detail-badge.is-vertical {
  background: rgba(255, 155, 31, 0.28);
  border-color: rgba(255, 208, 137, 0.45);
  color: #fff7ed;
}

.demo-detail-customer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.demo-detail-field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 0.2rem;
}

.demo-detail-customer-name,
.demo-detail-vehicle {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.demo-detail-phone {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 600;
}

.demo-detail-phone:hover {
  color: #fff;
  text-decoration: underline;
}

.demo-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.demo-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 0.95rem 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.demo-detail-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #1f82ff, #ff9b1f);
  opacity: 0.85;
}

.demo-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.demo-detail-card-head h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.demo-detail-card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f82ff;
}

.demo-estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.demo-estimate-table th {
  text-align: left;
  padding: 0.4rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid #e2e8f0;
}

.demo-estimate-table td {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.demo-estimate-table tbody tr:hover {
  background: #f8fafc;
}

.demo-estimate-name {
  font-weight: 600;
  color: #0f172a;
}

.demo-estimate-qty,
.demo-estimate-unit {
  color: #64748b;
  white-space: nowrap;
}

.demo-estimate-amt {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}

.demo-estimate-table tfoot td {
  border-bottom: 0;
  border-top: 2px solid #e2e8f0;
  padding-top: 0.65rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
}

.demo-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.35;
}

.demo-checklist-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 0.05rem;
}

.demo-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.demo-detail-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
}

.demo-detail-info-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.demo-detail-info-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.demo-detail-info-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.demo-detail-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.88rem;
}

/* Decision status chips */

.demo-decision-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-detail-header-card .demo-decision-chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.demo-decision-chip.is-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.demo-detail-header-card .demo-decision-chip.is-pending {
  background: rgba(254, 243, 199, 0.25);
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.45);
}

.demo-decision-chip.is-approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.demo-detail-header-card .demo-decision-chip.is-approved {
  background: rgba(220, 252, 231, 0.22);
  color: #bbf7d0;
  border-color: rgba(134, 239, 172, 0.45);
}

.demo-decision-chip.is-declined {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.demo-detail-header-card .demo-decision-chip.is-declined {
  background: rgba(254, 226, 226, 0.22);
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.45);
}

.demo-decision-chip.is-compact {
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
}

.demo-decision-detail {
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  box-shadow: 0 6px 16px rgba(31, 130, 255, 0.08);
}

.demo-decision-detail .demo-decision-chip {
  margin-bottom: 0.4rem;
}

.demo-decision-detail-note {
  margin: 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.demo-decision-detail-time {
  color: #64748b;
  font-size: 0.82rem;
}

.demo-decision-detail-notes {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #475569;
  font-style: italic;
}

.demo-decision-declined-lines {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.65rem 0.45rem 1.5rem;
  font-size: 0.85rem;
  color: #991b1b;
}

.demo-wf-outcome {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-wf-outcome.is-approved { background: #dcfce7; color: #166534; }
.demo-wf-outcome.is-declined { background: #fee2e2; color: #991b1b; }
.demo-wf-outcome.is-pending { background: #fef3c7; color: #92400e; }

/* Board card polish */

.demo-shop-card {
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.demo-shop-card:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(31, 130, 255, 0.12);
}

.demo-shop-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.demo-shop-card-customer {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.88rem;
}

.shop-workspace-detail {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 12%);
}

.demo-workflow-guide {
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.demo-wf-preview {
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.demo-job-next {
  backdrop-filter: blur(8px);
}

@media (max-width: 720px) {
  .demo-detail-customer-row,
  .demo-detail-grid,
  .demo-detail-overview-grid {
    grid-template-columns: 1fr;
  }

  .demo-detail-header-top {
    flex-direction: column;
  }

  .shop-workspace-jobs.is-composing {
    grid-template-columns: 1fr;
  }

  .shop-workspace-jobs.is-composing #shop-workspace-board {
    max-height: min(32vh, 280px);
  }
}

/* Shop floor navigation */

.demo-shop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 6px 16px rgba(31, 130, 255, 0.08);
}

.demo-shop-nav.is-compact {
  margin-bottom: 0.15rem;
}

.demo-shop-nav-start,
.demo-shop-nav-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.demo-shop-saved-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 155, 31, 0.2), transparent 40%),
    linear-gradient(135deg, #ecfdf5 0%, #eff6ff 55%, #fff 100%);
  border: 1px solid #86efac;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.12);
}

.demo-shop-saved-copy strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.demo-shop-saved-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  max-width: 28rem;
}

.demo-shop-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.demo-shop-board-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem 0.55rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
}

.demo-shop-board-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3412;
}

.demo-shop-board-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

body.pos-demo-shop-catalog-tab #browse-panel .browse-label {
  color: #1e40af;
  font-weight: 700;
}

body.pos-demo-shop-catalog-tab #category-home {
  border-radius: 12px;
  padding: 0.35rem 0.15rem 0.5rem;
}

body.pos-demo-shop-catalog-tab .category-tile-parent .category-tile-name {
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

/* ── Shop view modes: one full-width pane (jobs tab only; retail untouched) ── */

body.pos-demo-shop-mode.shop-view-home .shop-workspace-jobs,
body.pos-demo-shop-mode.shop-view-compose .shop-workspace-jobs,
body.pos-demo-shop-mode.shop-view-detail .shop-workspace-jobs,
body.pos-demo-shop-mode.shop-view-edit-estimate .shop-workspace-jobs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.pos-demo-shop-mode.shop-view-home #shop-workspace-board {
  max-height: none;
  flex: 1;
  min-height: 0;
}

body.pos-demo-shop-mode.shop-view-home #shop-workspace-board.demo-shop-board,
body.pos-demo-shop-mode.shop-view-home #shop-workspace-board .demo-shop-board {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Hide empty detail pane until a ticket is open (avoids blank white block on jobs home) */
body.pos-demo-shop-mode.shop-view-home #shop-workspace-detail:empty,
body.pos-demo-shop-mode:not(.shop-view-compose):not(.shop-view-detail):not(.shop-view-edit-estimate) #shop-workspace-detail:empty {
  display: none !important;
}

body.pos-demo-shop-mode.shop-view-compose #shop-workspace-board,
body.pos-demo-shop-mode.shop-view-detail #shop-workspace-board,
body.pos-demo-shop-mode.shop-view-edit-estimate #shop-workspace-board {
  display: none !important;
}

body.pos-demo-shop-mode.shop-view-home #shop-workspace-detail {
  display: none !important;
}

body.pos-demo-shop-mode.shop-view-compose #shop-workspace-detail,
body.pos-demo-shop-mode.shop-view-detail #shop-workspace-detail,
body.pos-demo-shop-mode.shop-view-edit-estimate #shop-workspace-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.pos-demo-shop-mode.shop-view-compose:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) .main-grid,
body.pos-demo-shop-mode.shop-view-detail:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) .main-grid,
body.pos-demo-shop-mode.shop-view-edit-estimate:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) .main-grid,
body.pos-demo-shop-mode.shop-view-home:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) .main-grid {
  grid-template-columns: 1fr;
}

body.pos-demo-shop-mode.shop-view-compose:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) #cart-panel,
body.pos-demo-shop-mode.shop-view-detail:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) #cart-panel,
body.pos-demo-shop-mode.shop-view-edit-estimate:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) #cart-panel,
body.pos-demo-shop-mode.shop-view-home:not(.shop-show-cart):not(.pos-demo-shop-catalog-tab) #cart-panel {
  display: none !important;
}

body.pos-demo-shop-mode.shop-show-cart #cart-panel {
  display: flex !important;
}

body.pos-demo-shop-mode.shop-show-cart .main-grid {
  align-items: stretch;
}

body.pos-demo-shop-mode.shop-show-cart .main-grid > .panel {
  min-width: 0;
}

body.pos-demo-shop-mode.shop-show-cart.shop-view-detail .main-grid,
body.pos-demo-shop-mode.shop-show-cart.shop-view-home .main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
}

body.pos-demo-shop-mode.shop-show-cart #cart-panel {
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0.85rem;
}

body.pos-demo-shop-mode.shop-show-cart #cart-panel .cart-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

body.pos-demo-shop-mode.shop-show-cart #cart-panel .cart-header h2 {
  font-size: 1.05rem;
  flex: 1 1 auto;
  min-width: 6rem;
}

body.pos-demo-shop-mode.shop-show-cart #cart-panel #cart-customer-bar {
  flex-shrink: 0;
}

body.pos-demo-shop-mode.shop-show-cart #cart-lines {
  flex: 1 1 auto;
  min-height: 4rem;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

body.pos-demo-shop-mode.shop-show-cart .cart-checkout-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

body.pos-demo-shop-mode.shop-show-cart .cart-checkout-bar .totals {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

body.pos-demo-shop-mode.shop-show-cart .cart-line {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 0.35rem 0.5rem;
  align-items: start;
}

body.pos-demo-shop-mode.shop-show-cart .cart-line-main {
  grid-column: 1 / -1;
  min-width: 0;
}

body.pos-demo-shop-mode.shop-show-cart .cart-line-main .name {
  overflow-wrap: anywhere;
}

body.pos-demo-shop-mode.shop-show-cart .qty-controls {
  grid-column: 1;
  grid-row: 2;
}

body.pos-demo-shop-mode.shop-show-cart .cart-line-total {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

body.pos-demo-shop-mode.shop-show-cart .cart-line-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  flex-direction: row;
  flex-wrap: wrap;
}

body.pos-demo-shop-mode.shop-show-cart .dual-totals {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
}

body.pos-demo-shop-mode.shop-show-cart .dual-total {
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
}

body.pos-demo-shop-mode.shop-show-cart .dual-total span:last-child {
  margin-left: auto;
  font-size: 1.05rem;
  white-space: nowrap;
}

body.pos-demo-shop-mode.shop-show-cart .totals-row.grand {
  font-size: 1.15rem;
  margin-top: 0.35rem;
}

body.pos-demo-shop-mode.shop-show-cart .cart-checkout-btn {
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  body.pos-demo-shop-mode.shop-show-cart .main-grid {
    grid-template-columns: 1fr !important;
  }

  body.pos-demo-shop-mode.shop-show-cart #cart-panel {
    max-height: min(52vh, 28rem);
  }

  body.pos-demo-shop-mode.shop-view-home #shop-workspace-board.demo-shop-board,
  body.pos-demo-shop-mode.shop-view-home #shop-workspace-board .demo-shop-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.demo-shop-home-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.demo-shop-home-search {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.demo-shop-home-search:focus {
  outline: 2px solid #1f82ff;
  outline-offset: 1px;
}

.demo-shop-status-chip {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.demo-shop-supplement-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.demo-shop-supplement-tag.is-pending {
  color: #92400e;
  background: #fef3c7;
}

.demo-detail-card-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.demo-detail-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.demo-supplement-pending-banner,
.demo-supplement-note {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

.demo-supplement-pending-banner {
  background: #fef3c7;
  color: #92400e;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.demo-supplement-note {
  background: #f0fdf4;
  color: #166534;
}

.demo-line-supplement-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.demo-estimate-table tr.is-supplement-line td {
  background: #fffbeb;
}

body.pos-demo-shop-mode.shop-view-compose .demo-ro-hero,
body.pos-demo-shop-mode.shop-view-edit-estimate .demo-ro-hero-compact {
  padding: 0.75rem 0.85rem;
}

body.pos-demo-shop-mode.shop-view-compose .demo-ro-hero h3,
body.pos-demo-shop-mode.shop-view-edit-estimate .demo-ro-hero h3 {
  font-size: 1.05rem;
  margin: 0.15rem 0;
}

body.pos-demo-shop-mode.shop-view-compose .demo-ro-hero p,
body.pos-demo-shop-mode.shop-view-edit-estimate .demo-ro-hero p {
  font-size: 0.85rem;
  margin: 0.15rem 0 0;
}

.demo-supplement-form .demo-supplement-approval-check {
  margin-top: 0.65rem;
}

/* Modal shop panel — same single-pane flow */
.demo-shop-panel.is-shop-view-home .demo-shop-body {
  grid-template-columns: 1fr;
}

.demo-shop-panel.is-shop-view-home .demo-shop-side {
  display: none;
}

.demo-shop-panel.is-shop-view-compose .demo-shop-body,
.demo-shop-panel.is-shop-view-detail .demo-shop-body {
  grid-template-columns: 1fr;
}

.demo-shop-panel.is-shop-view-compose .demo-shop-board-wrap,
.demo-shop-panel.is-shop-view-detail .demo-shop-board-wrap {
  display: none;
}

.demo-shop-panel.is-shop-view-detail .demo-shop-side {
  grid-column: 1;
}

/* ── Mobile shop demo ── */
@media (max-width: 640px) {
  body.pos-demo-shop-mode .main-grid {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    gap: 0.5rem;
    box-sizing: border-box;
  }

  body.pos-demo-shop-mode .main-grid > .panel {
    min-width: 0;
    width: 100%;
    padding: 0.65rem;
    box-sizing: border-box;
  }

  body.pos-demo-shop-mode .shop-workspace {
    width: 100%;
    min-width: 0;
  }

  body.pos-demo-shop-mode .shop-workspace-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.pos-demo-shop-mode .shop-workspace-top-actions {
    width: 100%;
  }

  body.pos-demo-shop-mode .shop-workspace-tabs {
    display: flex;
    width: 100%;
  }

  body.pos-demo-shop-mode .shop-workspace-tab {
    flex: 1 1 0;
    text-align: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
  }

  body.pos-demo-shop-mode .shop-jobs-action-bar.is-visible {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  body.pos-demo-shop-mode .shop-jobs-action-shortcuts {
    width: 100%;
  }

  body.pos-demo-shop-mode .shop-jobs-action-link {
    flex: 1 1 0;
    font-size: 0.78rem;
  }

  body.pos-demo-shop-mode .shop-jobs-new-btn {
    width: 100%;
  }

  body.pos-demo-shop-mode #shop-workspace-board,
  body.pos-demo-shop-mode .demo-shop-board {
    grid-template-columns: 1fr !important;
    max-height: none !important;
    overflow: visible;
  }

  body.pos-demo-shop-mode.shop-view-home #shop-workspace-board {
    flex: none;
  }

  body.pos-demo-shop-mode.shop-view-home .shop-workspace-jobs {
    flex: 0 1 auto;
  }

  body.pos-demo-shop-mode .demo-shop-empty-start--board {
    min-height: 0;
    justify-content: flex-start;
    padding: 1.1rem 0.9rem;
  }

  body.pos-demo-shop-mode .shop-workspace-detail,
  body.pos-demo-shop-mode .demo-shop-detail {
    padding: 0.35rem 0.15rem 0.75rem;
    overflow-x: hidden;
  }

  body.pos-demo-shop-mode .demo-shop-home-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.pos-demo-shop-mode .demo-shop-home-search {
    min-width: 0;
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-shop-nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.pos-demo-shop-mode .demo-shop-nav-start,
  body.pos-demo-shop-mode .demo-shop-nav-end {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-shop-nav .btn {
    width: 100%;
    justify-content: center;
  }

  body.pos-demo-shop-mode .demo-detail-header-card {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

  body.pos-demo-shop-mode .demo-detail-ro {
    font-size: 1.2rem !important;
  }

  body.pos-demo-shop-mode .demo-detail-badge-row {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-detail-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.pos-demo-shop-mode .demo-detail-card-head-actions {
    margin-left: 0;
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-detail-card-head-actions .btn {
    flex: 1 1 auto;
  }

  body.pos-demo-shop-mode .demo-job-next {
    padding: 0.75rem 0.85rem;
  }

  body.pos-demo-shop-mode .demo-job-next-actions {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-job-next-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  body.pos-demo-shop-mode .demo-job-next-actions .btn:only-child {
    flex: 1 1 100%;
  }

  body.pos-demo-shop-mode .demo-customer-portal-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  body.pos-demo-shop-mode .demo-workflow-steps li {
    font-size: 0.72rem;
  }

  body.pos-demo-shop-mode .demo-diag-findings-actions .btn {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-diag-estimate-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.pos-demo-shop-mode .demo-diag-labor-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.pos-demo-shop-mode .demo-diag-labor-row .btn {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-diag-search-results {
    grid-template-columns: 1fr;
    max-height: none;
  }

  body.pos-demo-shop-mode .demo-ro-form {
    padding: 0.45rem 0.15rem 0.75rem;
  }

  body.pos-demo-shop-mode .demo-ro-hero {
    flex-direction: column;
    padding: 0.85rem 0.9rem;
  }

  body.pos-demo-shop-mode .demo-ro-hero-copy h3 {
    font-size: 1.1rem;
  }

  body.pos-demo-shop-mode .demo-ro-hero-total {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-ro-steps {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.pos-demo-shop-mode .demo-ro-catalog-tiers {
    flex-wrap: wrap;
  }

  body.pos-demo-shop-mode .demo-ro-parts {
    grid-template-columns: 1fr;
  }

  body.pos-demo-shop-mode .demo-ro-footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.pos-demo-shop-mode .demo-ro-footer .btn {
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-ro-save {
    min-width: 0;
    width: 100%;
  }

  body.pos-demo-shop-mode .demo-pick-grid {
    grid-template-columns: 1fr;
  }

  body.pos-demo-shop-mode .demo-pick-card-btn {
    width: 100%;
  }

  body.pos-demo-shop-mode.shop-show-cart #cart-panel {
    max-height: none;
    padding: 0.65rem;
  }
}

@media (max-width: 400px) {
  body.pos-demo-shop-mode .demo-detail-tab {
    font-size: 0.75rem;
    padding: 0.38rem 0.65rem;
  }

  body.pos-demo-shop-mode .demo-job-next-actions .btn,
  body.pos-demo-shop-mode .demo-customer-portal-actions .btn {
    flex: 1 1 100%;
  }
}

/* First-party shop helpers */
.demo-ro-photo-strip, .scp-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.demo-ro-photo-thumb, .scp-photo-thumb {
  margin: 0;
  width: 72px;
}
.demo-ro-photo-thumb img, .scp-photo-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
}
.demo-ro-photo-thumb figcaption, .scp-photo-thumb figcaption {
  font-size: 0.68rem;
  color: var(--gray-600, #64748b);
  text-align: center;
  margin-top: 0.15rem;
}
.demo-detail-badge.is-express {
  background: #fff7ed;
  color: #c2410c;
}
.demo-detail-badge.is-express.is-late {
  background: #fef2f2;
  color: #b91c1c;
}
.demo-ro-tech-time, .demo-ro-uph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
  align-items: center;
}
.demo-ro-parts-form, .demo-ro-claim-form, .demo-ro-appt-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
  margin-top: 0.5rem;
}
.demo-ro-parts-list, .demo-ro-claim-list, .demo-ro-appt-list, .demo-ro-rec-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
.demo-ro-parts-item { margin-bottom: 0.35rem; }
.demo-ro-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.75rem;
}
.demo-ro-stage-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.demo-ro-stage-chip.is-done {
  background: #dcfce7;
  color: #166534;
}
.demo-ro-warranty-flags {
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  background: #fff7ed;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.demo-ro-dvi-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-ro-dvi-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.demo-ro-dvi-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  padding: 0.85rem 1rem 1rem;
}
.demo-ro-dvi-head, .demo-ro-dvi-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.demo-ro-dvi-head h3 { margin: 0; font-size: 1rem; }
.demo-ro-dvi-body {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0;
}
.demo-ro-dvi-canvas {
  width: 100%;
  max-height: 280px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
}
.demo-ro-dvi-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}
.demo-ro-appt-board {
  margin-top: 0.85rem;
  grid-column: 1 / -1;
}
.demo-fp-photo-strip, .demo-fp-appointments [data-fp-appt-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.demo-fp-photo {
  margin: 0;
  width: 72px;
}
.demo-fp-photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.demo-fp-photo figcaption {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}
.demo-fp-express-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
}
.demo-fp-express-badge.is-overdue {
  background: #fee2e2;
  color: #b91c1c;
}
.demo-fp-warn {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: #b45309;
}
.demo-fp-parts-list, .demo-fp-appt-list, .demo-fp-claim-list, .demo-fp-suggest-list, .demo-fp-warranty-list, .demo-fp-cycle-list {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
.demo-fp-parts-eta {
  color: #1d4ed8;
  font-weight: 600;
}
.demo-ro-field.is-hidden,
.demo-ro-parts-eta-custom.is-hidden {
  display: none;
}
.demo-fp-chip {
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
}
.demo-fp-appointments {
  margin-top: 0.75rem;
}
.shop-workspace-calendar .demo-fp-appointments {
  margin-top: 0;
}
.demo-fp-appointments .demo-detail-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.shop-calendar-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}
.shop-calendar-avail-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
}
.shop-calendar-avail-msg.is-blocked {
  color: #b45309;
  font-weight: 600;
}
.demo-fp-appt-tech {
  color: #334155;
  font-weight: 600;
}
.demo-fp-appt-form [data-fp-appt-create]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}