﻿/* Two coordinated table modes for the weather-demand forecast. */
.business-table-container {
    overflow-x: auto;
    border-radius: 12px;
}

.business-demand-table {
    width: 100%;
    table-layout: fixed;
    transition: min-width .25s ease;
}

.business-demand-table .weather-primary-col {
    width: 82px !important;
}

.business-demand-table .weather-time-col {
    width: 68px !important;
    min-width: 68px;
    padding: .25rem !important;
    font-size: .82rem !important;
    line-height: 1.15;
}

.business-demand-table .compact-date,
.business-demand-table .compact-time {
    display: block;
    white-space: nowrap;
}

.business-demand-table .compact-date {
    color: #b9d9e8;
    font-size: .88em;
}

.business-demand-table .compact-time {
    margin-top: .2rem;
    color: #fff;
    font-size: 1.08em;
}

.business-demand-table .sales-impact-col {
    width: 82px !important;
    min-width: 82px;
}

.business-demand-table .sales-category-col {
    width: 140px !important;
    min-width: 140px;
}

.business-demand-table.demand-expanded {
    min-width: 760px;
}

.business-demand-table.demand-expanded .sales-copy-col {
    width: calc((100% - 410px) / 2);
    min-width: 150px;
}

.business-demand-table.weather-expanded {
    min-width: 1000px;
}

.business-demand-table.weather-expanded .weather-detail-col {
    width: 88px !important;
    min-width: 76px;
}

.business-demand-table .forecast-table-toggle-cell,
.business-demand-table .forecast-table-toggle-rail {
    width: 38px !important;
    min-width: 38px;
    padding: 0 !important;
    border: 0 !important;
    background: linear-gradient(180deg, #0891b2, #2563eb) !important;
}

.business-demand-table .forecast-table-toggle-cell {
    position: relative;
    overflow: visible;
}

.business-demand-table .forecast-table-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    height: 100%;
    min-height: 94px;
    margin: 0;
    padding: .35rem .15rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #06b6d4, #2563eb);
    box-shadow: 0 0 18px rgba(34, 211, 238, .38);
    color: #fff;
    cursor: pointer;
}

.business-demand-table .forecast-table-toggle:hover,
.business-demand-table .forecast-table-toggle:focus-visible {
    background: linear-gradient(180deg, #22d3ee, #3b82f6);
    box-shadow: 0 0 24px rgba(34, 211, 238, .68);
    outline: 2px solid #bae6fd;
    outline-offset: -3px;
}

.business-demand-table .forecast-toggle-arrow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(7, 25, 48, .38);
    font-size: 1.45rem;
    line-height: 1;
}

.business-demand-table .forecast-toggle-label {
    display: inline-flex !important;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.business-demand-table .forecast-table-toggle-rail {
    opacity: .82;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, .16);
    cursor: pointer;
}

.business-demand-table .forecast-table-toggle-rail:hover {
    opacity: 1;
    background: linear-gradient(180deg, #22d3ee, #3b82f6) !important;
}

.business-demand-table th.sales-col small {
    display: inline !important;
    font-size: 1em;
}

.business-demand-table th.sales-col {
    padding: .3rem .4rem !important;
    font-size: .9rem !important;
    line-height: 1.3;
    text-align: center !important;
    vertical-align: middle;
}

.business-demand-table td.sales-col {
    padding: .08rem .15rem !important;
    color: #e2e8f0;
    font-size: .84rem !important;
    font-weight: 700;
    line-height: 1.3;
    text-align: center !important;
    vertical-align: middle;
}

.business-demand-table td.sales-col.demand-positive {
    color: #4ade80 !important;
}

.business-demand-table td.sales-col.demand-negative {
    color: #f87171 !important;
}

.business-demand-table td.sales-col.demand-positive .positive,
.business-demand-table td.sales-col.demand-negative .negative {
    color: inherit;
    font-weight: 700;
}

.business-demand-table td.sales-col .zero {
    color: #dbe4ec;
    font-weight: 700;
}

.business-demand-table .sales-header-text {
    display: inline;
}

.business-demand-table .sales-header-icon {
    display: none;
}
@media (max-width: 768px) {
    .business-demand-table th.sales-col {
        padding: .1rem !important;
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .business-demand-table td.sales-col {
        padding: .1rem !important;
        font-size: .84rem !important;
    }

    .business-demand-table th.sales-col .sales-header-text {
        display: none !important;
    }

    .business-demand-table th.sales-col .sales-header-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #e0e0e0;
        font-size: 1.65rem;
        line-height: 1;
    }

    .business-demand-table.demand-expanded {
        min-width: 700px;
    }

    .business-demand-table.weather-expanded {
        min-width: 930px;
    }

    .business-demand-table .weather-primary-col {
        width: 62px !important;
    }

    .business-demand-table .weather-time-col {
        width: 56px !important;
        min-width: 56px;
        font-size: .74rem !important;
    }

    .business-demand-table .sales-impact-col {
        width: 76px !important;
        min-width: 76px;
    }

    .business-demand-table .sales-category-col {
        width: 130px !important;
        min-width: 130px;
    }

    .business-demand-table.demand-expanded .sales-copy-col {
        width: 155px !important;
        min-width: 155px;
    }

    .business-demand-table.weather-expanded .weather-detail-col {
        width: 72px !important;
        min-width: 72px;
    }

    .business-demand-table .forecast-table-toggle-cell,
    .business-demand-table .forecast-table-toggle-rail {
        width: 34px !important;
        min-width: 34px;
    }

    .business-demand-table .forecast-table-toggle span {
        display: inline-flex !important;
    }

    .business-demand-table th.weather-primary-col > span {
        display: none;
    }

    .business-demand-table th.weather-time-col > span,
    .business-demand-table th.sales-col small {
        display: inline !important;
    }

    .business-demand-table .weather-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .business-demand-table.demand-expanded {
        width: 100%;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .sales-recommendation-col {
        display: none !important;
    }

    .business-demand-table.demand-expanded .weather-primary-col {
        width: 15% !important;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .weather-time-col {
        width: 14% !important;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .forecast-table-toggle-cell,
    .business-demand-table.demand-expanded .forecast-table-toggle-rail {
        width: 8% !important;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .sales-impact-col {
        width: 14% !important;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .sales-category-col {
        width: 23% !important;
        min-width: 0 !important;
    }

    .business-demand-table.demand-expanded .sales-reason-col {
        width: 26% !important;
        min-width: 0 !important;
        max-width: none;
    }

    .business-demand-table.demand-expanded .weather-icon {
        width: 42px;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 360px) {
    .business-demand-table.demand-expanded td.sales-col {
        font-size: .78rem !important;
        line-height: 1.2;
    }

    .business-demand-table.demand-expanded .weather-icon {
        width: 36px;
    }

    .business-demand-table.demand-expanded .forecast-toggle-label {
        font-size: .58rem;
    }
}
@media (max-width: 768px) {
    .business-demand-table.weather-expanded {
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
    }

    .business-demand-table.weather-expanded th,
    .business-demand-table.weather-expanded td {
        box-sizing: border-box;
        min-width: 0 !important;
        padding: .05rem !important;
        line-height: 1.1;
    }

    .business-demand-table.weather-expanded .weather-primary-col {
        width: 9% !important;
    }

    .business-demand-table.weather-expanded .weather-time-col {
        width: 9% !important;
        font-size: .66rem !important;
    }

    .business-demand-table.weather-expanded .weather-detail-col {
        width: 7.5% !important;
        font-size: .7rem !important;
    }

    .business-demand-table.weather-expanded .forecast-table-toggle-cell,
    .business-demand-table.weather-expanded .forecast-table-toggle-rail {
        width: 7% !important;
    }

    .business-demand-table.weather-expanded .sales-impact-col {
        width: 10% !important;
        font-size: .72rem !important;
        white-space: nowrap;
    }

    .business-demand-table.weather-expanded .sales-category-col {
        width: 20% !important;
        font-size: .7rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .business-demand-table.weather-expanded .weather-icon {
        width: 30px;
        max-width: 100%;
        height: auto;
    }

    .business-demand-table.weather-expanded .wind-icon,
    .business-demand-table.weather-expanded .uv-icon {
        width: 26px;
        max-width: 100%;
        height: auto;
    }

    .business-demand-table.weather-expanded .table-header-icon {
        width: 24px;
        max-width: 100%;
        height: 24px;
    }

    .business-demand-table.weather-expanded th.sales-col .sales-header-icon {
        font-size: 1rem;
    }

    .business-demand-table.weather-expanded .forecast-table-toggle {
        min-height: 72px;
        padding: .15rem 0;
    }

    .business-demand-table.weather-expanded .forecast-toggle-arrow {
        width: 18px;
        height: 18px;
        font-size: 1rem;
    }

    .business-demand-table.weather-expanded .forecast-toggle-label {
        font-size: .52rem;
    }
}

@media (max-width: 360px) {
    .business-demand-table.weather-expanded .weather-time-col,
    .business-demand-table.weather-expanded .weather-detail-col,
    .business-demand-table.weather-expanded .sales-impact-col,
    .business-demand-table.weather-expanded .sales-category-col {
        font-size: .62rem !important;
    }

    .business-demand-table.weather-expanded .weather-icon,
    .business-demand-table.weather-expanded .wind-icon,
    .business-demand-table.weather-expanded .uv-icon {
        width: 22px;
    }

    .business-demand-table.weather-expanded .table-header-icon {
        width: 20px;
        height: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .business-demand-table,
    .business-demand-table .forecast-table-toggle {
        transition: none;
    }
}








