.dashboard {
    display: grid;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-header h1 {
    margin: .2rem 0 .35rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: #29342d;
}

.dashboard-header > div > p:last-child {
    margin: 0;
    color: #8b877f;
}

.dashboard-section {
    display: grid;
    gap: 1rem;
}

.dashboard-section__title h2,
.dashboard-card__header h2 {
    margin: .15rem 0 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: #29342d;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.dashboard-action-card {
    display: flex;
    flex-direction: column;
    min-height: 135px;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
}

.dashboard-action-card > span {
    font-size: .7rem;
    font-weight: 700;
    color: #7c7972;
}

.dashboard-action-card > strong {
    margin: auto 0 .15rem;
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 400;
    color: #29342d;
}

.dashboard-action-card small {
    font-size: .65rem;
    color: #9b968e;
}

.dashboard-action-card.is-warning {
    background: #fbf7ed;
    border-color: #eadfbd;
}

.dashboard-action-card.is-danger {
    background: #fbf1ef;
    border-color: #e8cbc5;
}

.dashboard-action-card.is-danger > strong {
    color: #a65348;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.dashboard-kpi {
    display: flex;
    flex-direction: column;
    min-height: 165px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
}

.dashboard-kpi--featured {
    background: #41594a;
    border-color: #41594a;
}

.dashboard-kpi__label {
    font-size: .67rem;
    font-weight: 700;
    color: #8b877f;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dashboard-kpi__value {
    margin: auto 0 .3rem;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: #29342d;
}

.dashboard-kpi__value small {
    font-family: inherit;
    font-size: .7rem;
}

.dashboard-kpi > small {
    font-size: .65rem;
    color: #99948c;
}

.dashboard-kpi--featured .dashboard-kpi__label,
.dashboard-kpi--featured .dashboard-kpi__value,
.dashboard-kpi--featured > small {
    color: #fff;
}

.dashboard-progress {
    height: 5px;
    margin: .7rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: inherit;
}

.dashboard-card {
    min-width: 0;
    padding: 1.35rem;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
}

.dashboard-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-card__header > span,
.dashboard-card__header > a {
    font-size: .67rem;
    color: #8b877f;
}

.dashboard-card__header > a {
    color: #41594a;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1rem;
}

.dashboard-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    height: 240px;
    padding-top: 1rem;
}

.dashboard-chart__item {
    display: grid;
    grid-template-rows: 20px minmax(0, 1fr) auto auto;
    gap: .3rem;
    text-align: center;
}

.dashboard-chart__value {
    font-size: .58rem;
    color: #938f87;
}

.dashboard-chart__bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    background: #f5f3ee;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 5px;
}

.dashboard-chart__bar span {
    display: block;
    width: 60%;
    min-height: 3px;
    background: #637969;
    border-radius: 6px 6px 0 0;
}

.dashboard-chart__item > strong {
    font-size: .7rem;
    color: #3c463f;
}

.dashboard-chart__item > small {
    font-size: .58rem;
    color: #aaa59d;
}

.dashboard-booking-list {
    display: grid;
}

.dashboard-booking {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .8rem 0;
    color: inherit;
    border-bottom: 1px solid #efede8;
    text-decoration: none;
}

.dashboard-booking:last-child {
    border-bottom: 0;
}

.dashboard-booking:hover .dashboard-booking__guest strong {
    color: #41594a;
}

.dashboard-booking__date {
    display: grid;
    place-items: center;
    width: 42px;
    height: 48px;
    background: #f3f1ec;
    border-radius: 9px;
}

.dashboard-booking__date strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1;
    color: #29342d;
}

.dashboard-booking__date span {
    font-size: .55rem;
    color: #8c887f;
}

.dashboard-booking__guest {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .15rem;
}

.dashboard-booking__guest strong {
    overflow: hidden;
    font-size: .75rem;
    color: #354039;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-booking__guest span {
    font-size: .62rem;
    color: #99948c;
}

.dashboard-mini-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.dashboard-mini-kpis > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .9rem;
    background: #f8f7f3;
    border-radius: 10px;
}

.dashboard-mini-kpis span {
    font-size: .62rem;
    color: #8f8b83;
}

.dashboard-mini-kpis strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: #354039;
}

.dashboard-notice {
    margin-top: .8rem;
    padding: .75rem;
    font-size: .65rem;
    line-height: 1.5;
    border-radius: 9px;
}

.dashboard-notice--warning {
    color: #776131;
    background: #faf5e9;
    border: 1px solid #eadfbd;
}

.dashboard-loyalty {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 1rem;
}

.dashboard-loyalty__rate {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 160px;
    background: #41594a;
    border-radius: 14px;
}

.dashboard-loyalty__rate strong {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: #fff;
}

.dashboard-loyalty__rate span {
    font-size: .63rem;
    color: rgba(255, 255, 255, .65);
}

.dashboard-loyalty__stats {
    display: grid;
}

.dashboard-loyalty__stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid #efede8;
}

.dashboard-loyalty__stats > div:last-child {
    border-bottom: 0;
}

.dashboard-loyalty__stats span {
    font-size: .65rem;
    color: #858078;
}

.dashboard-loyalty__stats strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: #354039;
}

.dashboard-ranking {
    display: grid;
}

.dashboard-ranking__row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .7rem 0;
    border-bottom: 1px solid #efede8;
}

.dashboard-ranking__row:last-child {
    border-bottom: 0;
}

.dashboard-ranking__position {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: .6rem;
    font-weight: 700;
    color: #65736a;
    background: #edf1ed;
    border-radius: 50%;
}

.dashboard-ranking__row > div {
    display: flex;
    flex-direction: column;
}

.dashboard-ranking__row > div strong {
    font-size: .7rem;
    color: #354039;
}

.dashboard-ranking__row small {
    font-size: .58rem;
    color: #99948c;
}

.dashboard-ranking__row > strong {
    font-size: .7rem;
    color: #41594a;
}

.dashboard-empty {
    padding: 2rem 1rem;
    font-size: .7rem;
    color: #99948c;
    text-align: center;
    background: #f8f7f3;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .dashboard-action-grid,
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-action-grid,
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart {
        gap: .4rem;
        height: 190px;
    }

    .dashboard-chart__bar span {
        width: 72%;
    }

    .dashboard-mini-kpis,
    .dashboard-loyalty {
        grid-template-columns: 1fr;
    }

    .dashboard-booking {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .dashboard-booking .booking-status {
        grid-column: 2;
        justify-self: start;
    }
}
