/* My Dashboard (rooftop/home.js, Oct 31, 2026) */
html.hm-on .lp { display: none !important; }
#rooftop-home { --ink: var(--rt-ink, #1B2333); --muted: var(--rt-muted, #5B6475); --line: var(--rt-line, #E1E5EE); --card: var(--rt-card, #fff);
  --page: var(--rt-page, #F4F6FA); --brand: var(--rt-brand, #1F3A93); --soft: #E8ECF7; --up: #1F7A3E; --down: #B42318;
  font: 13px Roboto, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--page); min-height: 100vh; }
.hm-page { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.hm-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.hm-head p { margin: 2px 0 0; color: var(--muted); }
.hm-bar0, .hm-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.hm-edit { background: #FFF8E6; border-color: #F3E2B3; position: sticky; top: 8px; z-index: 30; box-shadow: 0 6px 18px rgba(17, 24, 39, .08); }
.hm-bar0 label, .hm-edit label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.hm-bar0 select, .hm-edit select, .hm-edit input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); max-width: 340px; }
.hm-src { color: var(--muted); }
.hm-sp { flex: 1; }
.hm-btn { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.hm-btn:hover { border-color: #B8C2D6; }
.hm-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.hm-btn.ghost { background: transparent; }

.hm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-flow: row dense; }
.hm-w { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.hm-w.s-s { grid-column: span 3; } .hm-w.s-m { grid-column: span 6; } .hm-w.s-l { grid-column: span 9; } .hm-w.s-w { grid-column: span 12; }
.hm-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hm-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.hm-sub { color: var(--muted); font-size: 12px; }
.hm-b { min-width: 0; overflow-x: auto; }
.hm-empty { color: var(--muted); margin: 6px 0; }
.hm-off { opacity: .55; }
.hm-num b { display: block; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.hm-tgt { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.hm-prog { flex: 1; height: 6px; background: #EEF1F6; border-radius: 999px; overflow: hidden; max-width: 160px; }
.hm-prog i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.hm-ch { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hm-ch.up { color: var(--up); } .hm-ch.down { color: var(--down); }
.hm-sub2 { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.hm-bars { display: grid; gap: 7px; }
.hm-bar { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; align-items: center; gap: 8px; }
.hm-bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-bt { position: relative; height: 12px; background: #EEF1F6; border-radius: 999px; }
.hm-bt i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 999px; }
.hm-bt b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #22324F; border-radius: 1px; }
.hm-bv { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 56px; text-align: right; }
.hm-chart { width: 100%; height: auto; display: block; }
.hm-chart text { font-size: 9px; fill: var(--muted); }
.hm-col { fill: #B9C6E6; } .hm-col.on { fill: var(--brand); } .hm-col.fut { fill: #EEF1F6; }
.hm-l1 { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; }
.hm-l2 { fill: none; stroke: #B8C0CE; stroke-width: 1.6; stroke-dasharray: 4 3; }
.hm-dot { fill: var(--brand); }
.hm-key { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.hm-key span::before { content: ''; display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--brand); margin-right: 5px; vertical-align: middle; }
.hm-key .k2::before { border-top: 2px dashed #B8C0CE; }
.hm-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hm-t th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hm-t td { padding: 7px 8px; border-bottom: 1px solid #EEF1F6; white-space: nowrap; }
.hm-t .n { text-align: right; }
.hm-t tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.hm-note { white-space: normal; line-height: 1.5; font-size: 14px; }

/* customizing */
.hm-page.editing .hm-w { border-style: dashed; border-color: #B8C2D6; cursor: grab; }
.hm-page.editing .hm-w.dragging { opacity: .4; }
.hm-page.editing .hm-w.over { border-color: var(--brand); box-shadow: 0 0 0 2px var(--soft); }
.hm-tools { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.hm-slot .hm-tools { position: absolute; top: 8px; right: 10px; }
.hm-tb { font: inherit; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; line-height: 1; padding: 0; }
.hm-tb:hover { border-color: var(--brand); color: var(--brand); }
.hm-size { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.hm-slot { min-height: 110px; justify-content: center; align-items: center; background: transparent; }
.hm-add { font: inherit; font-weight: 600; color: var(--brand); background: transparent; border: 0; cursor: pointer; padding: 18px; }

/* Add a widget */
.hm-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 9300; }
.hm-modal { position: fixed; z-index: 9310; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fff; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(17, 24, 39, .3); }
.hm-mh { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hm-mh h2 { margin: 0; font-size: 16px; }
.hm-mt { display: flex; gap: 4px; }
.hm-mt button { font: inherit; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.hm-mt button[aria-selected="true"] { background: var(--soft); color: var(--brand); font-weight: 600; }
.hm-x { margin-left: auto; font-size: 22px; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.hm-mb { padding: 14px 18px; overflow: auto; }
.hm-mf { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.hm-lg { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hm-lg:first-child { margin-top: 0; }
.hm-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hm-li { font: inherit; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.hm-li:hover { border-color: var(--brand); color: var(--brand); }
.hm-build { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.hm-form { display: grid; gap: 10px; }
.hm-f { display: flex; flex-direction: column; gap: 4px; }
.hm-f > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.hm-f select, .hm-f input, .hm-f textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; cursor: pointer; }
.hm-pill.on { border-color: var(--brand); background: var(--soft); color: var(--brand); }
.hm-pill input { margin: 0; }
.hm-prev { background: var(--page); border-radius: 12px; padding: 12px; position: sticky; top: 0; }
.hm-prevlab { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.hm-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1B2333; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 9400; }

/* Settings › Dashboard and Admin › Dashboards */
.hm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-width: 920px; }
.hm-card { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line, #E1E5EE); border-radius: 12px; background: #fff; cursor: pointer; }
.hm-card:hover:not([disabled]) { border-color: #B8C2D6; }
.hm-card.on { border-color: var(--brand, #1F3A93); box-shadow: inset 0 0 0 1px var(--brand, #1F3A93); }
.hm-card[disabled] { opacity: .55; cursor: default; }
.hm-card small { color: var(--muted, #5B6475); }
.hm-thumb { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; background: #F4F6FA; border-radius: 8px; padding: 6px; margin-bottom: 4px; }
.hm-thumb i { height: 14px; background: #C9D4F0; border-radius: 3px; }
.hm-thumb i.s-s { grid-column: span 3; } .hm-thumb i.s-m { grid-column: span 6; } .hm-thumb i.s-l { grid-column: span 9; } .hm-thumb i.s-w { grid-column: span 12; height: 20px; }
.hm-thumb.own i { background: repeating-linear-gradient(45deg, #C9D4F0 0 4px, #DCE3F5 4px 8px); }
.hm-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hm-tr { display: inline-flex; align-items: center; gap: 10px; }
.hm-tr .hm-thumb { width: 84px; margin: 0; padding: 4px; gap: 2px; }
.hm-tr .hm-thumb i { height: 6px; } .hm-tr .hm-thumb i.s-w { height: 8px; }
.hm-acts { white-space: nowrap; display: flex; gap: 12px; }
.hm-adm select { font: inherit; padding: 6px 8px; border: 1px solid var(--line, #E1E5EE); border-radius: 8px; background: #fff; max-width: 100%; }

@media (max-width: 1100px) { .hm-w.s-s { grid-column: span 6; } .hm-w.s-l { grid-column: span 12; } }
@media (max-width: 760px) {
  .hm-page { padding: 12px 16px 24px; }
  .hm-w.s-s, .hm-w.s-m, .hm-w.s-l, .hm-w.s-w { grid-column: span 12; }
  .hm-build { grid-template-columns: 1fr; }
  .hm-edit { position: static; }
}
.hm-key .k0::before { display: none; }
.hm-page.editing .hm-h { padding-right: 150px; min-height: 26px; }
.hm-page.editing .hm-w > .hm-h .hm-tools { position: absolute; top: 9px; right: 10px; }

/* store manager widgets (Nov 1, 2026) */
.hm-prog { position: relative; overflow: visible; }
.hm-prog i { overflow: hidden; }
.hm-prog em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #22324F; border-radius: 1px; }
.hm-pace { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hm-pace.up { color: var(--up); } .hm-pace.down { color: var(--down); }
.hm-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-bottom: 8px; background: #F4F6FA; }
.hm-seg button { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.hm-seg button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(17, 24, 39, .12); }
.hm-t tr.hm-top td { background: #FFF8E6; }
.hm-good { color: var(--up); font-weight: 600; margin: 6px 0; }
.hm-att-sum { margin: 0 0 6px; color: var(--muted); }
.hm-att, .hm-shout { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hm-attb { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 7px 9px; border-radius: 8px; background: #FFF4F2; }
.hm-attb:hover { background: #FDE8E4; }
.hm-attk { font-weight: 600; color: var(--down); white-space: nowrap; }
.hm-atto { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hm-more { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.hm-shout li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: #F2F7EE; line-height: 1.4; }
.hm-si { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #B07A00; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 1px #E5D9A8; }
.hm-chart { max-height: 220px; }
.hm-chg { font-weight: 600; } .hm-chg.up { color: var(--up); } .hm-chg.down { color: var(--down); }
/* sold, waiting to deliver, and the GM KPI as tiles for one store (Nov 1, 2026) */
.hm-pend-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hm-pend-head b { font-size: 26px; font-weight: 600; line-height: 1; }
.hm-pend-head span { color: var(--muted); }
.hm-pend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hm-pendb { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n w" "v w"; column-gap: 10px; padding: 7px 10px; border-radius: 8px; background: #F7F8FB; }
.hm-pendb:hover { background: #EEF2FB; }
.hm-pn { grid-area: n; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pv { grid-area: v; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pw { grid-area: w; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; }
.hm-pw.late { color: var(--down); }
.hm-pw i { font-style: normal; color: var(--up); font-size: 12px; }
.hm-kts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hm-kt { background: #F7F8FB; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.hm-kt span { font-size: 12px; color: var(--muted); }
.hm-kt b { font-size: 20px; font-weight: 600; }
.hm-kt b.neg { color: var(--down); }
.hm-kt small { color: var(--muted); font-size: 12px; }
.hm-chart { max-height: none; }

.hm-dim { color: var(--muted, #6B7280); font-size: 13px; margin: 6px 0; }
.hm-link { all: unset; cursor: pointer; color: var(--brand, #1F3A93); }
.hm-link:hover { text-decoration: underline; }
.hm-col.part { opacity: .55; }
[data-hm-drill] { cursor: pointer; }
.hm-num b[data-hm-drill]:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hm-bar[data-hm-drill]:hover .hm-bl, tr[data-hm-drill]:hover td { color: var(--brand, #1F3A93); }
tr[data-hm-drill]:hover td { background: #F3F6FC; }
.hm-cover { display: block; margin-top: 2px; font-size: 12px; color: var(--muted, #6B7280); }
.hm-uf { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; color: var(--muted, #6B7280); }
