/* MasterBinder 0.0.16b — Set / Master Set / Grand Master Set separati */

.binder-title-with-mode {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.binder-current-mode {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9dc6ff;
    white-space: nowrap;
}

.binder-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(132, 174, 236, .28);
    border-radius: 7px;
    background: rgba(10, 18, 32, .78);
}

.binder-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 5px;
    color: #c8d8ef;
    text-decoration: none;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.binder-mode-button:hover {
    color: #fff;
    background: rgba(74, 124, 196, .24);
}

.binder-mode-button.active {
    color: #fff;
    background: rgba(63, 126, 220, .52);
    box-shadow: inset 0 0 0 1px rgba(150, 196, 255, .24);
}

.frontispiece-mode-summary {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(220, 232, 248, .72);
}

.binder-page-mode {
    margin-right: 4px;
    color: #9dc6ff;
    font-weight: 750;
}

.binder-mode-progress {
    display: grid;
    gap: 3px;
    line-height: 1.15;
}

.binder-progress-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 10px;
}

.binder-progress-label {
    min-width: 39px;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9dc6ff;
}

.binder-progress-label.grand {
    color: #d1b7ff;
}

@media (min-width: 901px) {
    body.binder-detail-view .binder-detail-toolbar {
        min-height: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    body.binder-detail-view .binder-detail-tools {
        gap: 5px !important;
    }

    body.binder-detail-view .binder-mode-button {
        min-height: 25px !important;
        height: 25px !important;
        padding: 3px 7px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 900px) {
    .binder-detail-toolbar {
        flex-wrap: wrap;
        height: auto !important;
    }

    .binder-title-with-mode {
        order: 1;
        width: 100%;
    }

    .binder-detail-left-tools {
        order: 0;
    }

    .binder-detail-tools {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
    }

    .binder-mode-switch {
        order: -1;
    }
}


/* 0.0.16b — primo livello: Set base */
.binder-progress-label.set {
    color: #a9e0bd;
}

.binder-mode-progress {
    gap: 2px;
}

.frontispiece-mode-summary {
    flex-wrap: wrap;
    row-gap: 3px;
}

@media (max-width: 640px) {
    .binder-mode-switch {
        width: 100%;
    }
    .binder-mode-button {
        flex: 1 1 0;
    }
}
