/* Shared dashboard primitives.
   Originally duplicated between Dashboard.razor (Consult Volume Data) and
   Dashboard2.razor (Compliance Overview). Hoisted to a single static file
   linked once from App.razor so the same byte-equivalent rules don't get
   redefined per page. Loaded after shared/dashboard2.css and before any
   per-page CSS so individual pages can still override specifics. */

.dashboard-popout-top-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 6px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #d8dde6;
}

.dashboard-popout-top-strip-ops {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.analytics-popout-btn,
.analytics-export-icon-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
}

.period-refreshing .dashboard-row-cards {
    animation: period-pulse 0.85s ease-in-out infinite;
    pointer-events: none;
}

.period-refreshing .dashboard-row-label {
    opacity: 0.4;
}

/* Animation used by .period-refreshing (was previously in Dashboard.razor.css) */
@keyframes period-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.dashboard-grid-scroll {
    overflow-y: visible;
}

.dashboard-grid-inner {
    padding: 0 12px;
}

.dashboard-row-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.dashboard-row-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
    width: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    opacity: 1;
    position: relative;
    padding-left: 8px;
    padding-right: 4px;
}

.dashboard-row-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2.5%;
    height: 95%;
    width: 2px;
    background: currentColor;
    border-radius: 2px;
}

.dashboard-row-label.no-bar::before {
    display: none;
}

.row-label-help-icon {
    writing-mode: horizontal-tb;
    transform: rotate(180deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    opacity: 0.55;
    cursor: help;
    flex-shrink: 0;
}

.row-label-help-icon:hover {
    opacity: 0.9;
}

.dashboard-row-cards {
    flex: 1;
    min-width: 0;
}

/* Volume-grid trial lockdown is now scoped to the chart wrap inside
   ConsultVolumePanel (see ConsultVolumePanel.razor + trial-lockdown.css's
   `.trial-watermark` rules). The previous `.dashboard-trial-watermark*`
   page-level overlay rules were removed because they covered the headline
   KPI strip and the Service Provisioning P&L row in addition to the chart,
   which the user wanted to keep readable. */

.dashboard-grid-inner-fill-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-grid-inner-fill-panel .dashboard-col-headers {
    flex-shrink: 0;
}

.dashboard-grid-inner-fill-panel .dashboard-row-wrapper {
    flex: 1;
    min-height: 0;
}

.dashboard-grid-inner-fill-panel .dashboard-row-cards {
    display: flex;
    flex-direction: column;
}

.dashboard-grid-inner-fill-panel .dashboard-row-cards > .mud-grid {
    height: 100%;
    width: 100%;
    min-width: 0;
}

.dashboard-grid-inner-fill-panel .mud-grid-item {
    display: flex;
    min-width: 0;
}

.dashboard-grid-inner-fill-panel .mud-grid-item > .mud-paper,
.dashboard-grid-inner-fill-panel .dashboard-cell-paper {
    height: 100%;
    width: 100%;
}

/* Column header row (shares flex layout with row wrappers) */
.dashboard-col-headers {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Spacer that aligns column headers with the card grid (same width as the row label + its margin) */
.dashboard-row-label-spacer {
    width: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ── Seasonal background overlay (Row 1 cards) ── */
.seasonal-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
    z-index: 0;
    border-radius: 8px;
    overflow: hidden;
}

.seasonal-bg-block {
    height: 100%;
    position: relative;
    border-right: 1px dashed rgba(0, 0, 0, 0.11);
    flex-shrink: 0;
}

.seasonal-bg-block:last-child {
    border-right: none;
}

.seasonal-bg-label {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    pointer-events: auto;
    cursor: default;
    opacity: 0.7;
    user-select: none;
    white-space: nowrap;
}

.v-section-hdr {
    display: none;
}

/* DashboardCell wrappers inside a column take equal flex height for the data cards */
.cg-column > .mud-paper:not(.dashboard-cell-short) {
    flex: 1;
}
