/* Data report form (/report): dispensaries and brands self-report sales. Loaded only on that page. */
.report-hero .page-title { max-width: 14ch; }
.report-draft { display: table; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; background: var(--yellow); color: var(--navy); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.report-form legend { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg); letter-spacing: .12em; }
.report-form legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 12px/1 var(--mono); letter-spacing: 0; }
.report-form legend small, .f span small { font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12px; }
.report-form fieldset { padding: 26px 0 30px; border-top: 1px solid var(--line); margin: 0; }
.report-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.report-form .hint { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.report-form em { font-style: normal; }
.f-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

/* Show only what applies: dispensary vs brand, year-to-date vs weekly. */
.report-form[data-kind="dispensary"] [data-for="brand"],
.report-form[data-kind="brand"] [data-for="dispensary"] { display: none !important; }
.report-form[data-mode="ytd"] .wk,
.report-form[data-mode="weekly"] .ytd { display: none !important; }

/* Bubble choices (radio and checkbox) */
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; }
.bubbles.stack { flex-direction: column; align-items: stretch; }
.bubble { position: relative; cursor: pointer; }
.bubble input { position: absolute; opacity: 0; pointer-events: none; }
.bubble span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font: 600 15px/1.2 var(--sans); transition: border-color .2s, background .2s, color .2s; }
.bubble span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .45; flex: none; transition: all .2s; }
.bubble input[type="checkbox"] + span::before { border-radius: 4px; }
.bubble:hover span { border-color: var(--navy); }
.bubble input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.bubble input:checked + span::before { opacity: 1; background: var(--yellow); border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--navy); }
.bubble input:focus-visible + span { box-shadow: 0 0 0 4px rgba(5,10,48,.15); }
.bubbles.small .bubble span { min-height: 40px; font-size: 14px; padding: 0 14px; }
.bubble.wide span { width: 100%; min-height: 54px; border-radius: 16px; padding: 12px 18px; }

/* Tables for categories, stores, top sellers, prices */
.table-wrap { overflow-x: auto; margin: 4px 0 2px; }
.r-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.r-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 0 8px 2px 0; white-space: nowrap; }
.r-table tbody th { font-size: 14px; color: var(--fg); padding-right: 12px; }
.r-table td { padding: 0 6px 0 0; }
.r-table input, .r-table select { width: 100%; min-width: 92px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: 500 15px var(--sans); outline: none; }
.r-table input:focus, .r-table select:focus { border-color: var(--navy); }
.r-table td:first-child input { min-width: 170px; }
.r-table .auto { color: var(--muted); font-size: 13px; text-align: right; min-width: 70px; }
.r-table.prices td input { max-width: 160px; }
.row-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.row-x:hover { background: #fde8ea; color: #a51c28; }
.add-row { margin-top: 6px; justify-self: start; grid-column: 1 / -1; }
.btn-line { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--navy); }
.calc-line { margin: 4px 0 0; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.calc-line:empty { display: none; }
.attest { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); }
.r-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 10px; }

@media (max-width: 720px) {
  .report-form fieldset { grid-template-columns: 1fr; }
  .bubble span { min-height: 44px; font-size: 14px; }
  .r-table input, .r-table select { min-width: 84px; }
}
.page-report .aside-card.on-dark { background: var(--navy); }
.page-report .aside-card.on-dark li { color: #C3C7E6; }
.report-form input::placeholder, .report-form textarea::placeholder { color: #A9AECA; opacity: 1; }

/* Go deeper (collapsible) */
.deeper { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.deeper summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.deeper summary::-webkit-details-marker { display: none; }
.deeper summary b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 700 12px/1 var(--mono); letter-spacing: 0; }
.deeper summary small { font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.deeper summary::after { content: "+"; margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font: 600 18px/1 var(--sans); transition: transform .2s; }
.deeper[open] summary::after { transform: rotate(45deg); }
.deeper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.deeper-grid .full { grid-column: 1 / -1; }
.deeper-grid .sub { font-weight: 700; font-size: 15px; margin-top: 8px; }
.deeper-grid .sub small { font-weight: 400; color: var(--muted); }
.big-form.is-done .deeper { display: none; }

/* Upload + months */
.upload input[type="file"] { min-height: 0; padding: 16px; border-style: dashed; cursor: pointer; }
.r-table.months { max-width: 520px; }
.r-table input[type="month"] { min-width: 150px; }
.f > small.hint { font-size: 13px; margin: 0; }

@media (max-width: 720px) { .deeper-grid { grid-template-columns: 1fr; } }
