/* =====================================================================
 * Phase 3b faces (R1/R2/R4/R5/R6 + J2/J3): the seven-tab bar that never
 * scrolls, and the template-shaped surfaces the frozen mock draws.
 * The look is the template's own — this file only carries the swap's
 * geometry and the new faces' shapes, in the template's skin tokens.
 *
 * Home conformance (2026-11-15): the faces' private furniture (folder
 * doors, snapshot figures, truck-card geometry, snap cards) is
 * retired — every face now renders in Home's hm grammar, styled in
 * futuristic-app.css. What remains here is the tab bar geometry, the
 * Loads calendar (an hm-panel's inner grid), and the snap guide.
 * ===================================================================== */

/* ---------- R2: the bar never scrolls ---------- */
#app .tabbar { overflow-x: hidden; overflow-y: hidden; }
#app .tab-btn { min-height: 62px; }
#app .tab-btn .tab-label { font-size: 11px; line-height: 1.2; white-space: normal; text-align: center; }

@media (max-width: 575px) {
  #app .tabbar { overflow-x: hidden; padding-right: 0; }
  #app .tab-btn { flex: 1 1 0; min-width: 0; padding: 8px 1px; }
  #app .tab-btn[data-tab="home"] { flex-grow: 1.0; }
  #app .tab-btn[data-tab="loads"] { flex-grow: 1.05; }
  #app .tab-btn[data-tab="inbox"] { flex-grow: 0.95; }
  #app .tab-btn[data-tab="money"] { flex-grow: 1.35; }
  #app .tab-btn[data-tab="trucks"] { flex-grow: 1.15; }
  #app .tab-btn[data-tab="documents"] { flex-grow: 1.9; }
  #app .tab-btn[data-tab="more"] { flex-grow: 1.0; }
  /* The assistant FAB floats above the bar instead of reserving its width. */
  #app .assistant-fab { bottom: 84px; }
}
@media (max-width: 359px) {
  #app .tab-btn .tab-label { font-size: 9.5px; }
}
@media (min-width: 1024px) {
  /* R1: the left sidebar is 236px, full height, as the mock draws it. */
  #app .tabbar { width: 236px; }
  #app { padding-left: 236px; }
  body.sidebar-rail #app { padding-left: 76px; }
  #app .tab-btn .tab-label { font-size: 15px; text-align: left; }
}

/* ---------- Home (mock shapes) ---------- */
.hm-tile .hm-tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-today-loads-card { cursor: pointer; }
.mc-compliance-strip { margin-top: 14px; }
.mc-compliance-strip .mc-comp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-comp-door { min-height: 44px; }

/* ---------- Loads calendar + day view (J3) — inside an hm-panel ---------- */
.ld-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ld-cal-head b { font-size: 15px; }
.ld-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ld-cal-dow { font-size: 11px; text-align: center; color: #6f84a3; padding: 2px 0; font-weight: 700; }
.ld-cal-day { min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: inherit; cursor: pointer; padding: 4px 1px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; font: inherit; }
.ld-cal-day .dnum { font-weight: 700; font-size: 13px; padding-left: 3px; }
.ld-cal-day.dim { opacity: .38; }
.ld-cal-day.today { outline: 2px solid var(--teal); outline-offset: -2px; }
.ld-cal-chip { font-size: 10px; line-height: 1.25; border-radius: 6px; padding: 1px 4px; background: rgba(56,225,255,.16); overflow: hidden; }
.ld-cal-mark { font-size: 10px; line-height: 1.25; border-radius: 6px; padding: 1px 4px; border: 1px dashed var(--teal); background: transparent; overflow: hidden; }
.ld-mark-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ld-mark-form input { flex: 1; min-width: 140px; min-height: 44px; }

/* ---------- Documents snap guide (R6) — accent border ---------- */
.mc-snap-guide { border: 2px solid var(--teal); border-radius: 12px; padding: 18px; text-align: center; margin: 12px 0; background: var(--surface); }
.mc-snap-guide p { margin: 0 0 6px; font-size: 14.5px; }
.mc-snap-guide p:last-child { margin-bottom: 0; }
/* The scanner's styles live with the paper view's in
   futuristic-app.css (#app .mc-scan-*) — the component sheet the
   snap-photo build added its rules to. */

/* ---------- Finance top zone (S12/C2): snapshot + bank tiles ---------- */
#fin-top-zone { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 768px) { #fin-top-zone { grid-template-columns: 1fr 1fr; } }

/* ---------- Finance lists: panels stacked with air ---------- */
#invoice-list, #expense-list { display: grid; gap: 10px; }
#invoice-list .hm-panel, #expense-list .hm-panel { margin-top: 0; }

/* ---------- Install doors (C1) ---------- */
.mc-install-door { margin-top: 14px; }

/* Folder/action tiles are real buttons (Documents, Trucks doors). */
button.hm-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
