.maximum-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
}

.maximum-brand-mark {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin: 0 auto;
}

/* Laranja sólido já utilizado nos SVGs oficiais da marca. */
.maximum-text-brand {
    color: #ff8c00;
}

.maximum-brand-name {
    font-weight: 800;
    letter-spacing: .08em;
}

.maximum-logo-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--bs-topbar-height);
}

.maximum-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.logo-box .maximum-logo-sm {
    width: 32px;
    height: 32px;
}

.logo-box .maximum-logo-lg {
    width: 146px;
    height: auto;
    margin-left: 0;
}

.maximum-logo-lg img {
    width: 100%;
    height: auto;
}

.maximum-theme-login {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1050;
}

.maximum-auth-side {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maximum-auth-side img {
    max-height: 410px;
}

/*
 * Agenda do DJ
 * Mantém a linguagem visual já usada em "Programação agendada" das Playlists:
 * blocos compactos, borda simples, dias em caixas e formulário curto.
 */
.modal[id^="dj-schedule-modal-"] .modal-dialog {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 920px;
    min-height: calc(100% - 1.5rem);
    margin: .75rem auto;
}

.modal[id^="dj-schedule-modal-"] .modal-dialog.modal-dialog-scrollable {
    height: calc(100% - 1.5rem);
}

.modal[id^="dj-schedule-modal-"] .modal-content {
    width: 100%;
    max-height: min(760px, calc(100vh - 1.5rem));
}

.modal[id^="dj-schedule-modal-"] .modal-header,
.modal[id^="dj-schedule-modal-"] .modal-footer {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.modal[id^="dj-schedule-modal-"] .modal-body > .card:first-of-type {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal[id^="dj-schedule-modal-"] form[id^="schedule-create-"] > .row.g-2.mb-3 {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem !important;
}

.modal[id^="dj-schedule-modal-"] form[id^="schedule-create-"] > .row.g-2.mb-3 > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

.modal[id^="dj-schedule-modal-"] label[for^="schedule-day-"] {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-height: 38px;
    padding: .45rem .75rem !important;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500;
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color) !important;
    transition: border-color .15s ease, background-color .15s ease;
}

.modal[id^="dj-schedule-modal-"] label[for^="schedule-day-"]:hover {
    background: var(--bs-secondary-bg);
    border-color: rgba(var(--bs-primary-rgb), .45) !important;
}

.modal[id^="dj-schedule-modal-"] label[for^="schedule-day-"]:has(.schedule-day:checked) {
    background: rgba(var(--bs-primary-rgb), .12);
    border-color: rgba(var(--bs-primary-rgb), .55) !important;
}

.modal[id^="dj-schedule-modal-"] .table-responsive.border.rounded {
    max-height: 285px;
    overflow-y: auto;
    border: 0 !important;
}

.modal[id^="dj-schedule-modal-"] .table {
    border-collapse: separate;
    border-spacing: 0 .45rem;
}

.modal[id^="dj-schedule-modal-"] .table thead th {
    padding-top: .25rem;
    padding-bottom: .35rem;
    border: 0;
    color: var(--bs-secondary-color);
    font-size: .78rem;
    font-weight: 600;
}

.modal[id^="dj-schedule-modal-"] .table tbody td {
    padding: .55rem .4rem;
    background: rgba(var(--bs-body-color-rgb), .018);
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.modal[id^="dj-schedule-modal-"] .table tbody td:first-child {
    padding-left: .7rem;
    border-left: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

.modal[id^="dj-schedule-modal-"] .table tbody td:last-child {
    padding-right: .7rem;
    border-right: 1px solid var(--bs-border-color);
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

@media (max-width: 767.98px) {
    .modal[id^="dj-schedule-modal-"] .modal-dialog {
        max-width: none;
        min-height: calc(100% - 1rem);
        margin: .5rem;
    }

    .modal[id^="dj-schedule-modal-"] .modal-dialog.modal-dialog-scrollable {
        height: calc(100% - 1rem);
    }

    .modal[id^="dj-schedule-modal-"] .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .modal[id^="dj-schedule-modal-"] .modal-body {
        padding: .8rem;
    }

    .modal[id^="dj-schedule-modal-"] .card-body {
        padding: .9rem;
    }

    .modal[id^="dj-schedule-modal-"] form[id^="schedule-create-"] > .row.g-2.mb-3 > [class*="col-"] {
        flex: 1 1 calc(50% - .5rem);
    }

    .modal[id^="dj-schedule-modal-"] label[for^="schedule-day-"] {
        width: 100% !important;
    }

    .modal[id^="dj-schedule-modal-"] .table-responsive.border.rounded {
        max-height: 360px;
        overflow-x: visible;
    }

    .modal[id^="dj-schedule-modal-"] .table,
    .modal[id^="dj-schedule-modal-"] .table tbody,
    .modal[id^="dj-schedule-modal-"] .table tr,
    .modal[id^="dj-schedule-modal-"] .table td {
        display: block;
        width: 100%;
    }

    .modal[id^="dj-schedule-modal-"] .table thead {
        display: none;
    }

    .modal[id^="dj-schedule-modal-"] .table {
        border-spacing: 0;
    }

    .modal[id^="dj-schedule-modal-"] .table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .55rem;
        padding: .7rem;
        margin-bottom: .65rem;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
    }

    .modal[id^="dj-schedule-modal-"] .table tbody td {
        padding: 0 !important;
        background: transparent;
        border: 0 !important;
    }

    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(1),
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(6) {
        grid-column: 1 / -1;
    }

    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(1)::before,
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(2)::before,
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(3)::before,
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(4)::before,
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(5)::before {
        display: block;
        margin-bottom: .25rem;
        color: var(--bs-secondary-color);
        font-size: .72rem;
        font-weight: 600;
    }

    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(1)::before { content: "Dia"; }
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(2)::before { content: "Início"; }
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(3)::before { content: "Fim"; }
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(4)::before { content: "Corte"; }
    .modal[id^="dj-schedule-modal-"] .table tbody td:nth-child(5)::before { content: "Ativo"; }

    .modal[id^="dj-schedule-modal-"] .table tbody td:last-child {
        text-align: left !important;
    }
}

/* Reback vector-map controls, scoped to the client live-audience map. */
.maximum-live-audience-map .jvm-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}

.maximum-live-audience-map .jvm-zoom-btn.jvm-zoomout {
    top: 54px;
}
