/* Dial Haul CRM, the look layer (design/crm-from-prototype/CHANGES.md): rules of ours that sit on top of the prototype's four
   style sheets in both modes (the sample CRM and live). Button hierarchy and phone shell pass of Nov 9 2026 (CRM expert review of
   Nov 8, items 6 and 7). Only the tokens of style.css, no new colors; motion is transform and opacity only. */

/* ---------- one tab style: text tabs with the blue underline (review finding 25) ---------- */
.section-tabs, .queue-pills { margin: -5px 0 23px; display: flex; gap: 6px; padding: 0; background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
/* audit Nov 13: the tab underline sits 1px low (margin-bottom: -1px), which made the row 1px taller than its box: Windows drew a
   small up/down scroll bar at its right end. Sideways scroll only, and no bar */
.section-tabs::-webkit-scrollbar, .queue-pills::-webkit-scrollbar { display: none; }
.section-tabs button, .queue-pills button { margin-bottom: 0 !important; }
.section-tabs button, .queue-pills button { background: transparent; border: 0; border-radius: 0; padding: 13px 10px; margin-bottom: -1px; font-size: 13px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.section-tabs button.selected, .queue-pills button.selected { background: transparent; color: var(--ink); box-shadow: none; border-bottom-color: var(--blue); }
.section-tabs button:hover, .queue-pills button:hover { background: transparent; color: var(--ink); }
.queue-pills { margin: 0; width: auto; border-bottom: 0; }
.queue-pills button { border-bottom: 2px solid transparent; }
.modal .section-tabs { margin: 0 0 20px; }

/* ---------- one End call style at both widths: the ink button (finding 11) ---------- */
.call-button.live, .mobile-callbar button.live { background: var(--ink); border-color: var(--ink); color: #fff; }
.mobile-callbar { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: 0 8px 25px #12203420; }
.mobile-callbar small { color: var(--muted); }
.mobile-callbar button:disabled { opacity: .6; }

/* ---------- white pack cards in the sample CRM: no gradient, no circle, no repeated logo (finding 6) ---------- */
.pack-face, .producer .pack-face, .starter .pack-face, .pro .pack-face, .agency .pack-face, .brand-pack.ones .pack-face, .brand-pack.twos .pack-face,
.brand-pack.threes .pack-face, .brand-pack.sale .pack-face, .brand-pack.fresh .pack-face, .brand-pack.fe .pack-face { background: var(--panel); color: var(--ink); min-height: 0; padding: 22px 23px 0; border-bottom: 0; }
.pack-face:after, .pack-face .pack-brand-logo, .pack-face > span { display: none; }
.pack-face h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; line-height: 1.3; }
.pack-count strong { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.pack-count span, .pack-face-foot { color: var(--muted); }
.pack-content { padding-top: 16px; }
.pack-content button.ui-demoted { border-color: var(--line); color: var(--blue); }

/* ---------- a demoted button: the plain outline button (finding 5) ---------- */
button.ui-demoted { background: var(--panel); border-color: var(--line); color: var(--ink); }
button.ui-demoted:hover { background: var(--paper); }
.crm-offer button.link { font-size: 13px; min-height: 0; padding: 6px 0; }
.crm-offer button.link .ui-icon { width: 15px; height: 15px; }

/* ---------- arrows are the SVG icon, never a text glyph (finding 12) ---------- */
.positive .ui-icon, .chart-total small .ui-icon { width: 12px; height: 12px; min-width: 12px; vertical-align: -1px; margin-right: 2px; }
.pagination .actions button.small .ui-icon { width: 15px; height: 15px; min-width: 15px; }

/* ---------- removed decoration: the orbit art, the sidebar tip card, the spreadsheet drawing (findings 17 to 19) ---------- */
.invite-art, .side .support, .spreadsheet-preview { display: none; }
.export-illustration .square.ui-file { width: 44px; height: 44px; }

/* ---------- the settings switch (finding 24): one switch for every screen, in crm-theme.css "switches" ---------- */

/* ---------- pipeline columns: no tall blank, a one line empty state (finding 22) ---------- */
.column { min-height: 0; }
.column .ui-empty { font-size: 12px; color: var(--muted); padding: 6px 2px 10px; }
@media (min-width: 1200px) { .column { min-height: 200px; } }

/* ---------- wide tables fade at the edge that still has columns, in both modes (finding 15) ---------- */
.table-wrap.dh-more-r:not(.dh-pin) { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px); mask-image: linear-gradient(to left, transparent 0, #000 36px); }

/* ---------- the toast sits at the top, under the top bar, so it never lands on the call bar or the dock (finding 10) ---------- */
#toast { top: 90px; bottom: auto; transform: translate(-50%, -10px); max-width: calc(100vw - 24px); }
#toast.show { transform: translate(-50%, 0); }

/* ---------- the phone menu: above the dock, with a close X and a real backdrop (finding 9) ---------- */
.side-close { display: none; }
.side-backdrop { display: none; }
@media (max-width: 600px) {
  .side.open { z-index: 60; box-shadow: none; }
  .side-close { display: inline-flex; position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; min-height: 40px; padding: 8px; color: #fff; background: transparent; border-color: transparent; z-index: 1; }
  .side-close:hover { background: #ffffff14; }
  .side.open ~ .side-backdrop { display: block; position: fixed; inset: 0; background: #101b2a55; z-index: 55; }
  #toast { top: 80px; }
  /* a call in progress: the dock goes, the call bar takes its place (finding 10) */
  body.ui-call .mobile-dock { display: none; }
  body.ui-call .mobile-callbar { bottom: 12px; }
  body.ui-call.calling-page .content { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { #toast, .side, .side.open { transition: none; } }

/* ---------- the money map (live/money.js, 0330): the split bar, the people lines, Payouts and the owner card ---------- */
.dh-mm-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 14px 0 10px; }
.dh-mm-seg { display: block; height: 100%; }
.dh-mm-seg.fee, .dh-mm-dot.fee { background: var(--line); }
.dh-mm-seg.ppl, .dh-mm-dot.ppl { background: var(--blue); }
.dh-mm-seg.ppl2, .dh-mm-dot.ppl2 { background: var(--blue); opacity: .6; }
.dh-mm-seg.dev, .dh-mm-dot.dev { background: var(--muted); }
.dh-mm-seg.co, .dh-mm-dot.co { background: var(--ink); }
.dh-mm-line, .dh-mm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dh-mm-line:first-of-type { border-top: 0; }
.dh-mm-line .grow, .dh-mm-row .grow { flex: 1; min-width: 0; }
.dh-mm-line strong, .dh-mm-row strong { display: block; font-size: 13px; color: var(--ink); }
.dh-mm-line small, .dh-mm-row small { display: block; font-size: 11px; color: var(--muted); }
.dh-mm-dot { display: inline-block; width: 34px; height: 34px; border-radius: 50%; flex: none; border: 1px solid var(--line); }
.dh-mm-face { flex: none; }
.dh-mm-pct { font-size: 12px; color: var(--muted); min-width: 44px; text-align: right; }
.dh-mm-amt { min-width: 78px; text-align: right; font-variant-numeric: tabular-nums; }
.dh-mm-none, .dh-mm-foot { font-size: 12px; color: var(--muted); margin-top: 10px; }
.dh-mm-pick { display: grid; gap: 6px; margin-bottom: 8px; }
.dh-mm-pick select { width: 100%; }
.dh-mm-check { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink); margin-top: 4px; }
.dh-mm-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dh-mm-price strong { font-size: 22px; color: var(--ink); }
.dh-mm-list { padding: 0 20px 8px; }
.dh-mm-st { display: grid; gap: 6px; justify-items: end; min-width: 220px; }
.dh-mm-tot { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.dh-mm-tot b { color: var(--ink); font-weight: 600; }
.dh-mm-due { margin-top: 2px; }
.dh-mm-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dh-mm-panel, .dh-mm-card, .dh-mm-mine { margin-top: 20px; }
.dh-mm-mine { padding-bottom: 14px; }
.dh-mm-mine > .dh-mm-bar, .dh-mm-mine > .dh-mm-line, .dh-mm-mine > .dh-mm-foot, .dh-mm-mine > .dh-mm-none { margin-left: 20px; margin-right: 20px; }
.dh-mm-kpis { padding: 0 20px; }
.dh-mm-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 6px 20px 18px; }
.dh-mm-cols h3 { font-size: 13px; margin: 12px 0 4px; color: var(--ink); }
.dh-mm-sale { padding: 10px 0; border-top: 1px solid var(--line); }
.dh-mm-sale:first-of-type { border-top: 0; }
.dh-mm-sale-h { display: flex; gap: 10px; align-items: baseline; }
.dh-mm-sale-h strong:first-child { flex: 1; font-size: 13px; }
.dh-mm-sale-h small { font-size: 11px; color: var(--muted); }
.dh-mm-sale .dh-mm-bar { margin: 8px 0 6px; height: 8px; }
.dh-mm-sale-l { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .dh-mm-cols { grid-template-columns: 1fr; }
  .dh-mm-row { flex-wrap: wrap; }
  .dh-mm-st { justify-items: start; min-width: 0; width: 100%; padding-left: 46px; }
  .dh-mm-row .actions { width: 100%; justify-content: flex-start; padding-left: 46px; }
  .dh-mm-tot { flex-wrap: wrap; }
  .dh-mm-list { padding: 0 14px 8px; }
}
.dh-mm-kpis { grid-template-columns: repeat(5, 1fr); }
.dh-mm-kpis strong { font-size: 20px; }
@media (max-width: 900px) { .dh-mm-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- confirm your phone, in the CRM (live/agent.js needPhone, owner P0 Nov 13) ---------- */
.modal.dh-ph .dh-ph-in { display: grid; gap: 8px; }
.modal.dh-ph .dh-ph-in input { width: 100%; font-size: 16px; }
.modal.dh-ph .dh-ph-err { color: #b42318; font-size: 13px; margin: 2px 0 0; }
.modal.dh-ph .dh-ph-alt { background: none; border: 0; padding: 6px 0; min-height: 40px; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.modal.dh-ph .dh-ph-alt[disabled] { opacity: .5; cursor: default; }
.modal.dh-ph .dh-ph-small { margin: 0; }
.modal.dh-ph .dh-ph-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
#fb-otp-box { position: absolute; width: 1px; height: 1px; overflow: hidden; }
