﻿body {
    background-color: #F2F4F5 !important;
}
/* Forecast fullscreen: hide app chrome so only the graph shows. */
.hana-app-layout:has(.forecast-fullscreen) .hana-side-nav,
.hana-app-layout:has(.forecast-fullscreen) .hana-top-nav-2 {
    display: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.remaris-svg {
    width: 100%;
    max-width: 300px;
}

/* Boot Splash Styles */
.app-splash {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(120% 60% at 50% 18%, rgba(73, 174, 241, 0.35) 0%, rgba(0, 78, 134, 0) 60%), #004E86;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-splash__curve {
    position: absolute;
    top: 0;
    right: 0;
    width: 258px;
    height: 111px;
    pointer-events: none;
}

.app-splash__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.app-splash__name {
    color: #fff;
    font-family: "Eudoxus Sans";
    font-size: 28px;
    font-weight: 800;
    line-height: 32px;
}

.app-splash__subtitle {
    color: #DEDEDE;
    font-family: "Eudoxus Sans";
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 24px;
}

.app-splash__logo {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.app-splash .loading-progress {
    position: relative;
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 48px auto 0.5rem auto;
}

    .app-splash .loading-progress circle {
        fill: none;
        stroke: rgba(255, 255, 255, 0.25);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .app-splash .loading-progress circle:last-child {
            stroke: #ffffff;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.app-splash .loading-progress-text {
    position: static;
    text-align: center;
    font-family: "Eudoxus Sans";
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

    .app-splash .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }



.auth-main-content {
    background: #f1f1f1;
}

.auth-layout-container {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.auth-layout-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hana-app-layout {
    min-height: 100vh;
}

.hana-app-layout__main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right 220ms ease;
}

.hana-app-layout__content {
    flex: 1;
    position: relative;
    z-index: 101;
}

@media (min-width: 1080px) {
    .hana-app-layout:has(.hana-side-nav--open) .hana-app-layout__main {
        margin-right: 280px;
    }
}

/* Legend row under reservation lists (Reservations, TodayArrivals, TodayDepartures, GuestsInHotel) */
.hana-reservation__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding-bottom: 12px;
    margin-top: 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.hana-reservation__legend-item {
    align-items: center;
    gap: 5px;
    display: flex;
}

.hana-reservation__legend .hana-indicator__top {
    font-size: 9px;
}

/* The brand block and the nav rows moved to Shared/NavMenu.razor.css — they belong to
   the component that renders them. Only the footer below is MainLayout's own markup. */
.hana-side-nav__footer {
    padding: 12px 8px;
    border-top: 1px solid var(--hana-color-gray-200);
    background-color: #F2F4F5;
}

.hana-side-nav__logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--hana-color-gray-800);
    text-align: left;
    border-radius: 4px;
    transition: background 160ms ease, color 160ms ease;
}

    .hana-side-nav__logout-btn:hover {
        background: var(--hana-color-gray-100);
        color: var(--hana-color-red-500);
    }

.hana-report-table {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    color: var(--hana-color-black);
}

.hana-report-table__head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    padding-bottom: 12px;
    font-size: var(--hana-metric-label-size);
    font-weight: 800;
}

.hana-report-table__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hana-color-gray-200);
}

.hana-report-table__label {
    font-size: var(--hana-metric-label-size);
    font-weight: 800;
    text-transform: uppercase;
}

.hana-report-table__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
}

.hana-report-table__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hana-report-table__current {
    font-size: var(--hana-metric-value-size);
    font-weight: 800;
}

.hana-report-table__previous {
    font-size: var(--hana-metric-value-size);
    font-weight: 800;
    color: var(--hana-color-gray-450);
}

.tbb-card {
    width: 100%;
    margin: 0 0 16px;
}

/* Two-segment tab on top of the card: booker id (light) + amount (dark). Mirrors
   RoomsAvailability's .rooms-card__header — a plain inline-flex chip, not routed
   through HanaSectionCard, so there is no flex-column stretch to fight. */
.tbb-card__header {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
}

/* min-width: 0 lets this shrink below its content width, so a long booker name
   wraps inside the tab instead of pushing the amount past the card edge. */
.tbb-card__id {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px 6px 8px;
    min-width: 0;
    background: var(--hana-gradient-main);
    border-top-left-radius: 10px;
}

/* Each booker icon SVG is a self-contained badge (own colored square + glyph baked in) — no wrapper bg/filter needed. */
.tbb-card__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Header name + amount are this card's total tier — same weight as
   HanaPaymentMethods' total row, via the shared --hana-metric-* tokens. */
.tbb-card__name {
    font-size: var(--hana-metric-total-label-size);
    font-weight: var(--hana-metric-total-label-weight);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--hana-color-white);
    white-space: normal;
    overflow-wrap: anywhere;
    font-style: normal;
    line-height: 13.783px
}

.tbb-card__amount {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 18px;
    font-size: var(--hana-metric-total-label-size);
    font-weight: var(--hana-metric-total-value-weight);
    color: var(--hana-color-white);
    background: var(--hana-color-blue-800);
    border-top-right-radius: 10px;
}

.tbb-card__body {
    background: var(--hana-color-white);
    border-radius: 10px;
    border-top-left-radius: 0;
    box-shadow: var(--hana-shadow-blue);
    padding: 8px 16px 10px 9px;
}

/* Metric row: "label value" pairs on a single wrapping line — one row when
   the card is wide enough, wrapping onto more as it narrows. */
.tbb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 24px;
    row-gap: 4px;
}

.tbb-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.tbb-pair__label {
    font-size: var(--hana-metric-label-size);
    font-weight: 500;
    color: var(--hana-color-black);
    font-style: normal;    
    line-height: 13.783px;
}

.tbb-pair__value {
    font-size: var(--hana-metric-value-size);
    font-weight: var(--hana-metric-value-weight);
    color: var(--hana-color-black);
}

/* Totals row: amount sits inline in the tab (no separate dark box), and the
   whole body goes solid blue with white text instead of white-with-black. */
.tbb-card--total .tbb-card__id {
    border-top-right-radius: 10px;    
}

.tbb-card--total .tbb-card__amount {
    padding: 0;
    background: none;
}

.tbb-card--total .tbb-card__body {
    background: var(--hana-color-blue-800);
}

.tbb-card--total .tbb-pair__label,
.tbb-card--total .tbb-pair__value {
    color: var(--hana-color-white);
}

/* Expanded breakdown: raw booker rows nested under the group card they belong
   to. Inset 20px on both sides so they read as children, not siblings. */
.tbb-detail {
    margin: -8px 20px 16px;
}

.tbb-detail .tbb-card {
    margin-bottom: 8px;
}

.tbb-detail .tbb-card:last-child {
    margin-bottom: 0;
}

/* Sub-row header: one flat blue bar across the card, name + amount split by a thin
   divider. Intentionally unlike the parent's gradient two-segment tab. */
.tbb-card--detail .tbb-card__header {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    background: var(--hana-color-blue-500);    
    border-top-right-radius: 10px;
}

.tbb-card--detail .tbb-card__id {
    padding: 8px 16px;
    background: none;
    border-radius: 0;
}

.tbb-card--detail .tbb-card__amount {
    position: relative;
    padding: 8px 16px;
    background: none;
    border-radius: 0;
}

.tbb-card--detail .tbb-card__amount::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: rgba(255, 255, 255, 0.6);
}
