/* ============================================================
   REPORTING (SEM) — Looker-mirrored styles
   ============================================================ */

/* report header */
.rep-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px 18px; flex-wrap: wrap; }
.rep-dealer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mb-star { flex: 0 0 auto; }
.rep-dealer-sel {
    appearance: none; border: 0; background: transparent; outline: none; cursor: pointer;
    font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
    padding: 2px 22px 2px 2px; max-width: 520px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center;
}
.rep-right { display: flex; align-items: center; gap: 14px; }
.rep-pager { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.rep-pager button { border: 1px solid var(--line); background: #fff; border-radius: 2px; width: 28px; height: 28px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.rep-pager button:disabled { opacity: 1; cursor: not-allowed; }
.rep-daterange { border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.rep-date-sel { appearance: none; border: 0; background: transparent; outline: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.rep-daterange .caret { color: var(--ink-3); font-size: 11px; }

/* section bar */
.rep-sectionbar { background: #d7d7d7; color: var(--ink); font-size: 18px; font-weight: 600; padding: 8px 18px; border-radius: 2px; margin: 0 0 22px; }
.rep-sectionbar.light { background: #eeeeee; height: 14px; padding: 0; margin: 26px 0; }

/* KPI groups */
.kpi-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@container (max-width: 1000px) { .kpi-groups { grid-template-columns: 1fr; } }
.kpi-group { display: flex; flex-direction: column; min-width: 0; }
.kpi-group .gt { font-size: 21px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em;
    line-height: 1.15; min-height: 48px; display: flex; align-items: flex-start; }
.kpi-group .gs { font-size: 13.5px; color: #000; margin-top: 3px; margin-bottom: 14px;
    line-height: 1.3; min-height: 36px; }
@container (max-width: 1000px) {
    .kpi-group .gt, .kpi-group .gs { min-height: 0; }
}
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--blue-soft); border: 1px solid #e4e4e4; border-radius: 2px; padding: 13px 8px 11px; text-align: center; }
.kpi-k { font-size: 12px; color: #000; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-size: 27px; color: var(--blue); font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; line-height: 1; }
.kpi-delta { font-size: 11.5px; margin-top: 7px; font-weight: 600; }
.kpi-delta.down { color: var(--ink); }
.kpi-delta.up { color: var(--ink); }
.kpi-delta.flat { color: var(--ink-3); }

/* chart — fixed height so all three columns match exactly */
.chart-card { border: 1px solid var(--line-soft); border-radius: 2px; padding: 10px 10px 4px; margin-top: 14px; background: #fff;
    height: 232px; display: flex; flex-direction: column; }
.legend { display: flex; justify-content: center; gap: 18px; margin-bottom: 4px; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--blue); font-weight: 500; }
.lg-dash { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-svg { width: 100%; flex: 1 1 auto; min-height: 0; display: block; }

/* bottom section */
.tc-loc-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; margin-top: 34px; }
@container (max-width: 1000px) { .tc-loc-grid { grid-template-columns: 1fr; } }
.blk-title { font-size: 21px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em; }
.blk-sub { font-size: 13.5px; color: #000; margin-top: 2px; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 52px; margin-bottom: 14px; flex-wrap: wrap; }
/* match Location Targeting header height to Top Campaigns header */
.loc-head { min-height: 52px; margin-bottom: 14px; }
.tc-filter { border: 1px solid var(--line); border-radius: 2px; padding: 11px 16px; min-width: 230px; display: flex; justify-content: space-between; align-items: center; color: var(--blue); font-size: 15px; box-shadow: var(--sh-1); }
.tc-filter .caret { color: var(--ink-3); font-size: 11px; }

/* heatmap tables */
.heat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.heat-table thead th { background: #5f6066; color: #fff; font-weight: 600; text-align: left; padding: 11px 12px; font-size: 13px; white-space: nowrap; }
.heat-table th.num { text-align: right; }
.heat-table th.sortable { cursor: pointer; user-select: none; transition: background 0.12s ease; }
.heat-table th.sortable:hover { background: #6c6d74; }
.heat-table th.sortable.sorted { background: #4a4b50; }
.heat-table th .th-in { display: inline-flex; align-items: center; gap: 3px; }
.heat-table th.num .th-in { flex-direction: row-reverse; }
.heat-table th .th-arr { font-size: 9px; opacity: 1; min-width: 8px; }
.heat-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.heat-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.heat-table .cmp { color: var(--blue); }
.heat-table tbody tr:hover td { filter: brightness(0.97); }
.tc-foot { text-align: right; font-size: 13px; color: var(--blue); padding: 10px 4px; }

/* location map */
.loc-map { position: relative; border: 1px dashed var(--line); border-radius: 2px; height: 380px; overflow: hidden;
    background: linear-gradient(180deg, #e7e7e7 0%, #dedede 100%); }
.loc-grid { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 38px 38px; }
.loc-blob { position: absolute; border-radius: 50%; background: rgba(113,113,113,0.45); filter: blur(2px); }
.loc-b1 { width: 90px; height: 90px; left: 22%; top: 38%; background: rgba(113,113,113,0.5); }
.loc-b2 { width: 54px; height: 54px; left: 40%; top: 30%; }
.loc-b3 { width: 30px; height: 30px; left: 33%; top: 54%; background: rgba(113,113,113,0.6); }
.loc-legend { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: rgba(255,255,255,0.8); padding: 5px 10px; border-radius: 2px; }
.loc-legend b { color: var(--blue); }
.loc-legend .lg-d1 { width: 8px; height: 8px; border-radius: 50%; background: rgba(113,113,113,0.5); }
.loc-legend .lg-d2 { width: 14px; height: 14px; border-radius: 50%; background: rgba(113,113,113,0.5); }

/* page 2 blocks */
.rep-block { margin-bottom: 34px; }
.blk-title-sub { font-size: 15px; font-weight: 600; color: #000; }
.heat-scroll { overflow-x: auto; border-radius: 2px; }
.heat-table tbody tr td:first-child { white-space: nowrap; }

/* pacing tracker */
.pace-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
@container (max-width: 1000px) { .pace-grid { grid-template-columns: 1fr; } }
.pace-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pace-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.change-metric { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--blue); align-self: flex-end; }
.cm-sel { min-width: 200px; box-shadow: var(--sh-1); }
.pace-donut { width: 180px; height: 180px; border-radius: 50%; position: relative;
    background: conic-gradient(#6b6b6b 0% 54%, #858585 54% 78%, #c4c4c4 78% 84%, #8d8d8d 84% 92%, #c6c6c6 92% 100%); }
.donut-hole { position: absolute; inset: 28%; background: #fff; border-radius: 50%; }

/* empty state + donut legend */
.no-data { text-align: center; color: var(--blue); padding: 34px; font-weight: 500; font-size: 14px; }
.donut-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.donut-legend { display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.dl-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.dl-label { color: var(--blue); font-weight: 500; }
.dl-pct { color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 4px; }
.pace-nodata { width: 100%; min-height: 180px; border: 1px solid var(--line-soft); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 15px; background: var(--bg-soft-2); }

/* section bar with note */
.rep-sectionbar.withnote { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sb-note { font-size: 12.5px; font-style: italic; font-weight: 400; color: #000; text-align: right; max-width: 360px; }

/* conversion action tables (green zebra) */
.conv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.conv-sub { font-size: 16px; font-weight: 700; color: var(--blue); }
.conv-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.conv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.conv-table thead th { background: #5f6066; color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; font-size: 12.5px; }
.conv-table thead th.num { text-align: right; }
.conv-table td { padding: 9px 12px; }
.conv-table td.num { text-align: right; }
.conv-table td.idx { color: var(--ink-3); width: 40px; }
.conv-table tr.green td { background: #e4e4e4; }
.conv-table tr:not(.green) td { background: #f3f4f6; }
.conv-table .ga-link { color: var(--blue); }

/* GA cards */
.ga-card { border: 1px solid var(--line-soft); border-radius: 2px; padding: 18px 20px; margin-bottom: 22px; background: #fff; }
.ga-card-t { font-size: 17px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.ga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ga-grid .ga-card { margin-bottom: 0; }
@container (max-width: 900px) { .ga-grid { grid-template-columns: 1fr; } }
.ga-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }
@container (max-width: 900px) { .ga-2col { grid-template-columns: 1fr; } }
.ga-chart { width: 100%; }
.ga-chart .chart-svg { height: 200px; }
.ga-chart.tall .chart-svg { height: 240px; }

/* GA summary */
.ga-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@container (max-width: 900px) { .ga-summary { grid-template-columns: repeat(3, 1fr); } }
.ga-stat { text-align: center; padding: 6px; }
.gs-k { font-size: 13px; color: #000; font-weight: 600; }
.gs-v { font-size: 30px; color: var(--blue); font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.gs-d { font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.gs-d.down { color: var(--ink); }
.gs-d.up { color: var(--ink); }

/* GA tables */
.ga-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ga-table thead th { background: #eef1f5; color: var(--blue); font-weight: 700; text-align: left; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
.ga-table th.num { text-align: right; }
.ga-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.ga-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.ga-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ga-link { color: var(--blue); }
.gs-pct { color: var(--blue); }
.ga-barcell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ga-barnum { color: var(--blue); font-variant-numeric: tabular-nums; }
.ga-bar { height: 11px; background: #7f7f7f; border-radius: 2px; display: inline-block; min-width: 2px; }

/* GA pie */
.ga-pie-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.ga-pie { border-radius: 50%; flex: 0 0 auto; }
.ga-pie-legend { display: flex; flex-direction: column; gap: 8px; }
.pl-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.pl-dot { width: 11px; height: 11px; border-radius: 50%; }
.pl-pct { color: var(--ink-2); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* GA horizontal bars */
.hbar { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 10px; }
.hbar-l { font-size: 13px; color: var(--blue); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { background: var(--surface-muted); border-radius: 3px; height: 16px; }
.hbar-fill { display: block; height: 100%; background: #7f7f7f; border-radius: 3px; }
.hbar-v { font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   REPORTING · SOCIAL (Meta)
   ============================================================ */
.meta-glyph { width: 34px; height: 34px; border-radius: 2px; background: #6c6c6c; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px;
    font-family: Georgia, serif; flex: 0 0 auto; }
.rep-dealer-static { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

/* social breadcrumb (SEM-style) */
.soc-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.soc-crumbs .cr { background: none; border: 0; cursor: pointer; color: var(--blue); font-size: 19px; font-weight: 600;
    letter-spacing: -0.01em; padding: 2px 6px; border-radius: 2px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-crumbs .cr:hover:not(:disabled) { background: var(--blue-soft); }
.soc-crumbs .cr.current { color: var(--ink); cursor: default; }
.soc-crumbs .cr:disabled { cursor: default; }
.soc-crumbs .sep { color: var(--ink); font-size: 16px; }

/* social account + campaign selectors */
.soc-toprow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 2px 0; margin-bottom: 18px; }
.soc-selectors { display: flex; flex-direction: column; gap: 18px; margin: 4px 2px 20px; }
.soc-sel-col { display: flex; flex-direction: column; gap: 8px; min-width: 280px; }
.soc-sel-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.soc-sel { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 2px;
    padding: 11px 36px 11px 14px; font-size: 15px; font-weight: 550; color: var(--ink); cursor: pointer; outline: none; max-width: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.soc-sel:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.soc-sel:disabled { background-color: var(--surface-muted); color: var(--ink-3); cursor: not-allowed; opacity: 1; }
.soc-sel-static { border: 1px solid var(--line); background: var(--surface-muted); border-radius: 2px; padding: 11px 14px;
    font-size: 15px; font-weight: 550; color: var(--ink-2); max-width: 420px; }

.scope-toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 2px; padding: 3px; gap: 2px; align-self: flex-start; }
.scope-toggle button { border: 0; background: transparent; cursor: pointer; padding: 6px 14px; border-radius: 2px;
    font-size: 13px; font-weight: 550; color: var(--ink-2); }
.scope-toggle button.on { background: var(--blue-soft); color: var(--blue); box-shadow: var(--sh-1); }

.rep-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.rep-subtabs button { border: 0; background: transparent; cursor: pointer; padding: 11px 20px;
    font-size: 14.5px; font-weight: 600; color: var(--ink); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.rep-subtabs button:hover { color: var(--blue); }
.rep-subtabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

.rep-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.rep-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 9px;
    border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; background: #fff; }
.rep-search .rs-ico { color: var(--ink-3); flex: 0 0 auto; display: flex; }
.rep-search input { border: 0; outline: none; flex: 1; font-size: 14px; color: var(--ink); background: transparent; }
.rep-statusfilter { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 2px; padding: 3px; gap: 2px; }
.rep-statusfilter button { border: 0; background: transparent; cursor: pointer; padding: 7px 16px; border-radius: 2px;
    font-size: 13px; font-weight: 550; color: var(--ink-2); }
.rep-statusfilter button.on { background: var(--blue-soft); color: var(--blue); box-shadow: var(--sh-1); }

.totals-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    border-top: 2px solid var(--line); padding: 14px 4px 2px; margin-top: 2px; }
.totals-bar .tb-lead { font-size: 13.5px; font-weight: 600; color: var(--ink-2); flex: 0 0 auto; }
.tb-cells { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.tb-cell { text-align: right; }
.tb-cell .tb-v { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-cell .tb-k { font-size: 11px; color: var(--ink-3); }
