/* Daily work surfaces. This file owns the home desk, receipt and shared shell;
   entry.css owns the editable order. No marketing cards or decorative status. */
.home-desk {
  --desk-ink: #232824;
  --desk-muted: #747a75;
  --desk-line: #e9ece9;
  --desk-accent: #25634e;
  max-width: 980px; margin: 0 auto; padding: 12px 24px 24px;
  background: #fff; color: var(--desk-ink);
}
.home-desk :is(a, button) { color: inherit; font: inherit; text-decoration: none; }
.home-desk button { cursor: pointer; }
.home-desk :is(a, button):focus-visible { outline: 2px solid #25634e; outline-offset: 3px; }
.desk-account { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 28px; }
.desk-account > a { display: grid; gap: 6px; min-width: 0; }
.desk-account strong { font-size: 21px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.desk-account a > span { font-size: 12px; color: var(--desk-muted); }
.desk-account i { margin-left: 8px; font-style: normal; }
.desk-sync { flex-shrink: 0; color: var(--desk-muted); font-size: 11px; }
.desk-balances { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-bottom: 24px; }
.desk-balances a { min-width: 0; display: grid; gap: 9px; }
.desk-balances small { color: var(--desk-muted); font-size: 13px; }
.desk-balances em { font-size: 11px; font-style: normal; margin-left: 5px; }
.desk-balances strong { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; font-weight: 650; letter-spacing: -.6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.desk-command { margin: 0 0 14px; }
.home-desk .desk-new-sale { display: flex; align-items: center; width: 100%; min-height: 50px; gap: 10px; padding: 10px 16px; border: 0; border-radius: 8px; color: #fff; background: var(--desk-accent); box-shadow: none; }
.desk-new-sale strong { flex: 1; font-size: 16px; font-weight: 600; text-align: left; }
.desk-new-sale b { font-size: 23px; font-weight: 400; }
.home-desk .desk-new-sale .v2-icon { margin: 0; width: 22px; height: 22px; border: 0; background: none; color: #fff; box-shadow: none; }
.desk-tools { padding: 2px 0 12px; }
.desk-tools nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-desk .desk-tool { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 10px; min-height: 76px; padding: 10px 0 4px; border: 0; border-radius: 0; background: none; text-align: center; }
.desk-tool strong { font-size: 13px; font-weight: 500; white-space: nowrap; }
.home-desk .desk-tool .v2-icon { width: 25px; height: 25px; margin: 0; color: #35433b; background: none; box-shadow: none; }
.home-desk .desk-tool .v2-icon svg { width: 23px; height: 23px; }
.desk-tool-settings { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.desk-tool-settings :is(button, a) { min-height: 32px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--desk-muted); font-size: 12px; }
.desk-tasks { display: flex; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--desk-line); border-bottom: 1px solid var(--desk-line); }
.desk-tasks a { display: inline-flex; justify-content: center; align-items: center; flex: 1; min-height: 38px; gap: 7px; font-size: 13px; color: #5c635e; }
.desk-tasks a + a { border-left: 1px solid var(--desk-line); }
.desk-tasks b { color: var(--desk-ink); font-size: 15px; font-weight: 650; }
.home-desk .desk-warning { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: #805c28; font-size: 12px; }
.desk-warning > span:not(.v2-icon) { flex: 1; }
.home-desk .desk-warning .v2-icon { width: 16px; height: 16px; margin: 0; background: none; color: inherit; }
.desk-warning b { font-size: 12px; font-weight: 500; }
.desk-section { padding-top: 18px; }
.desk-section > header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 0 8px; }
.desk-section h2 { margin: 0; font-size: 16px; font-weight: 650; }
.desk-section h2 small { margin-left: 5px; color: var(--desk-muted); font-size: 12px; font-weight: 400; }
.desk-section > header :is(a, button) { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--desk-muted); font-size: 12px; }
.home-desk .desk-draft-row { display: grid; width: 100%; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--desk-line); background: none; text-align: left; }
.desk-draft-row > span { display: grid; gap: 5px; min-width: 0; }
.desk-draft-row strong { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-draft-row small { font-size: 11px; color: var(--desk-muted); }
.desk-draft-row b { font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }
.desk-draft-row i { font-style: normal; font-size: 12px; color: var(--desk-accent); }
.home-desk .v233-operation-row { display: grid; width: 100%; min-height: 72px; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; margin: 0; border: 0; border-bottom: 1px solid var(--desk-line); border-radius: 0; background: #fff; box-shadow: none; text-align: left; }
.home-desk .v233-operation-row > i { display: grid; width: 28px; height: 30px; place-items: center; background: #f1f3f1; border-radius: 4px; color: #667068; font-size: 12px; font-style: normal; }
.home-desk .v233-operation-row > span { display: grid; gap: 5px; min-width: 0; }
.home-desk .v233-operation-row > span:nth-of-type(2) { text-align: right; }
.home-desk .v233-operation-row :is(strong, b) { font-size: 15px; font-weight: 600; color: var(--desk-ink); }
.home-desk .v233-operation-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-desk .v233-operation-row small { font-size: 11px; color: var(--desk-muted); }
.home-desk .v233-operation-row > em { display: none; }
.desk-empty { padding: 24px 0; color: var(--desk-muted); font-size: 14px; }

/* Receipt: the business data is the emphasis, not its container. */
.app-shell .sidebar :is(.brand strong, #sidebar-tenant) { color: #f2f5f3; }
.app-shell .sidebar .tenant-card .text-button { color: #b6dccb; }
.order-review-page .mobile-order-review-summary { border: 0; border-radius: 0; box-shadow: none; }
.order-review-page .mobile-order-review-summary > header { padding: 22px 18px; background: #fff; color: #232824; border-bottom: 1px solid #e8ece9; }
.order-review-page .mobile-order-review-summary > header > span { color: #6e766f; font-size: 12px; font-weight: 400; }
.order-review-page .mobile-order-review-summary > header > strong { color: #232824; font-size: 28px; font-weight: 650; }
.order-review-page .mobile-order-party { padding: 18px; }
.order-review-page .mobile-order-line { padding: 18px; border-color: #e8ece9; }
.order-review-page .mobile-order-line > header { align-items: start; gap: 14px; }
.order-review-page .mobile-order-line > header strong { overflow: visible; text-overflow: clip; white-space: normal; font-size: 16px; line-height: 1.5; font-weight: 600; }
.order-review-page .mobile-order-line > header b { color: #232824; font-size: 16px; font-weight: 650; flex-shrink: 0; }
.order-review-page .mobile-order-line > div:not(.mobile-clothing-review) > span > strong { font-weight: 500; }
.order-review-page .mobile-clothing-review { gap: 10px; }
.order-review-page .mobile-clothing-review section { min-width: 120px; border: 0; border-radius: 0; padding: 8px 0; background: none; }
.order-review-page .mobile-clothing-review section > div { gap: 0; }
.order-review-page .mobile-clothing-review section > div > span { min-width: 46px; padding: 6px; border: 1px solid #e6ebe7; border-radius: 0; background: #fff; }
.order-review-page .mobile-measurement-review { background: #fff; border: 1px solid #e6ebe7; border-radius: 4px; }
.order-review-page .mobile-order-review-summary > footer { background: #fff; border-top: 1px solid #e8ece9; padding: 18px; }
.order-review-page .order-lifecycle { margin: 0; border: 0; border-radius: 0; background: #f5f6f4; box-shadow: none; }
.order-review-page .order-lifecycle > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 10px; border: 0; border-bottom: 0; box-shadow: none; }
.order-review-page .order-lifecycle i { display: none; }
.order-review-page .order-lifecycle small { font-size: 11px; color: #727a73; }
.order-review-page .order-lifecycle strong { overflow: visible; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.order-review-page :is(.order-next-action, .delivery-workflow, .order-audit-trail, .print-document-disclosure) { border: 0; border-radius: 0; box-shadow: none; background: #fff; border-top: 1px solid #e8ece9; }
.order-review-page .delivery-channel { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.order-review-page .delivery-channel-icon { display: none; }
.order-review-page :is(.delivery-workflow, .review-actions, .order-next-action) .button { border-radius: 7px; box-shadow: none; font-size: 14px; }
.order-review-page .review-actions { padding: 12px 18px; gap: 10px; }
.order-review-page .order-audit-trail > summary { min-height: 58px; }
.order-review-page .review-line-edit { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 40px; min-width: 56px; float: right; margin-top: 4px; color: #25634e; font-size: 14px; text-decoration: none; }
.order-review-page .mobile-order-line::after { content: ''; display: block; clear: both; }
.review-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-top: 1px solid #e0e6e2; background: #fff; }
.review-action-total { display: grid; gap: 4px; min-width: 0; }
.review-action-total span { color: #68716b; font-size: 12px; }
.review-action-total strong { font-size: 23px; color: #232824; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.review-action-buttons { display: flex; gap: 10px; }
.review-action-buttons .button { border-radius: 8px; min-height: 46px; box-shadow: none; font-size: 15px; }
.review-draft-tools { display: flex; justify-content: flex-end; padding: 4px 18px 14px; }
.review-draft-tools button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: #8c554e; font-size: 13px; }
.review-edit-notice { margin: 0; padding: 12px 18px; background: #faf5e8; color: #705925; font-size: 14px; }

@media (max-width: 900px) {
  #app[data-route="dashboard"] .main-content { padding: 0 0 20px !important; background: #fff; }
  .home-desk { padding: 10px 20px 24px; }
  .app-shell:not(.menu-open) .sidebar { visibility: hidden; pointer-events: none; box-shadow: none; }
  .app-shell.menu-open .sidebar { visibility: visible; pointer-events: auto; }
  #app .bottom-nav { box-shadow: none; border-top: 1px solid #e5e9e5; background: #fff; backdrop-filter: none; }
  #app .bottom-nav .bottom-create-item { transform: none; color: #6d776f; }
  #app .bottom-nav .bottom-create-item svg { width: 25px; height: 25px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; box-shadow: none; transform: none; }
  #app .bottom-nav .bottom-create-item::before { display: none; }
  #app .mobile-header { background: #fff; box-shadow: none; backdrop-filter: none; border-bottom: 1px solid #e8ece9; }
  #app[data-route="review"] .main-content { padding: 0 0 20px !important; background: #fff; }
  #app[data-route="review"] .order-review-page { gap: 0; }
}
@media (min-width: 901px) {
  .home-desk { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0 32px; padding: 26px 36px; }
  .home-desk > :not(.desk-drafts):not(.desk-recent) { grid-column: 1 / -1; }
  .home-desk > .desk-drafts { grid-column: 1; }
  .home-desk > .desk-recent { grid-column: 2; }
  .home-desk:not(:has(.desk-drafts)) > .desk-recent { grid-column: 1 / -1; }
  .desk-tools nav { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .desk-command { max-width: 380px; }
  .desk-balances { max-width: 640px; }
}
@media (max-width: 760px) {
  #app.has-review-action-dock .bottom-nav { display: none !important; }
  #app.has-review-action-dock[data-route="review"] .main-content { padding-bottom: calc(160px + env(safe-area-inset-bottom)) !important; }
  #app > [data-review-action-dock] { position: fixed; z-index: 55; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); border-radius: 0; box-shadow: none; }
  [data-review-action-dock] .review-action-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  [data-review-action-dock] .review-action-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  [data-review-action-dock] .review-action-buttons > :only-child { grid-column: 1 / -1; }
  [data-review-action-dock] .button { width: 100%; padding: 10px; }
}
@media (max-width: 350px) {
  .home-desk { padding-inline: 16px; }
  .desk-account { gap: 8px; }
  .desk-account strong { font-size: 19px; }
  .desk-tools nav { column-gap: 3px; }
  .desk-tool strong { font-size: 12px; }
  .desk-draft-row { column-gap: 8px; }
}
