body {
    background: #f6f7fb
}

.sidebar {
    min-height: 100vh;
    background: #212529
}

.sidebar a {
    color: #d7dbe0;
    text-decoration: none;
    display: block;
    padding: .65rem 1rem
}

.sidebar a:hover,
.sidebar a.active {
    background: #343a40;
    color: #fff
}

.card-kpi {
    border: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.table td,
.table th {
    vertical-align: middle
}

.small-muted {
    font-size: .82rem;
    color: #6c757d
}

.error-trace {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .375rem;
    color: #212529;
    font-size: .86rem;
    max-height: 52vh;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word
}

.order-manager-table {
    font-size: .92rem
}

.order-manager-table td:first-child {
    min-width: 180px
}

.calendar-scroll {
    overflow-x: auto;
    padding-bottom: .25rem
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    min-width: 784px;
    border-radius: .375rem;
    overflow: hidden
}

.calendar-weekday {
    background: #f1f3f5;
    border-right: 1px solid #dee2e6;
    color: #495057;
    font-size: .78rem;
    font-weight: 700;
    padding: .65rem;
    text-align: center;
    text-transform: uppercase
}

.calendar-weekday:nth-child(7n) {
    border-right: 0
}

.calendar-day {
    background: #fff;
    border-right: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    color: #212529;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    justify-content: space-between;
    min-height: 118px;
    padding: .75rem;
    text-decoration: none
}

.calendar-day:nth-child(7n) {
    border-right: 0
}

.calendar-day:hover {
    background: #f8f9fa;
    color: #212529
}

.calendar-day-empty {
    background: #f8f9fa
}

.calendar-day-today {
    box-shadow: inset 0 0 0 2px #0d6efd
}

.calendar-day-number {
    font-weight: 700;
    line-height: 1
}

.calendar-session-count {
    align-self: flex-start;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: .375rem;
    color: #6c757d;
    font-size: .82rem;
    line-height: 1.2;
    padding: .28rem .45rem;
    white-space: nowrap
}

.calendar-session-count.has-sessions {
    background: #e7f1ff;
    border-color: #b6d4fe;
    color: #084298
}

@media (max-width:767.98px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 104px);
        min-width: 728px
    }

    .calendar-weekday {
        font-size: .7rem;
        padding: .45rem
    }

    .calendar-day {
        min-height: 92px;
        padding: .5rem
    }

    .calendar-session-count {
        font-size: .74rem;
        padding: .22rem .35rem
    }
}
