/* ==========================================================
   CIBM Studio Pro
   Ribbon UI
   Version 9.1
========================================================== */

/* ----------------------------------------------------------
   Ribbon Container
---------------------------------------------------------- */

#ribbon {

    display: flex;
    flex-direction: column;

    background: var(--surface);

    user-select: none;

}

/* ----------------------------------------------------------
   Ribbon Tabs
---------------------------------------------------------- */

#ribbonTabs {

    display: flex;
    align-items: center;

    height: 36px;

    border-bottom: 1px solid var(--border);

    background: var(--surface);

}

.ribbon-tab {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 18px;

    height: 100%;

    cursor: pointer;

    transition: .15s;

    font-size: 13px;

    font-weight: 500;

}

.ribbon-tab:hover {

    background: rgba(0,0,0,.05);

}

.ribbon-tab.active {

    background: white;

    border-bottom: 3px solid var(--accent);

    color: var(--accent);

}

/* ----------------------------------------------------------
   Ribbon Content
---------------------------------------------------------- */

#ribbonContent {

    display: flex;

    align-items: stretch;

    height: calc(100% - 36px);

    overflow-x: auto;

    overflow-y: hidden;

}

/* ----------------------------------------------------------
   Ribbon Group
---------------------------------------------------------- */

.ribbon-group {

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    padding: 8px;

    border-right: 1px solid var(--border);

    min-width: 160px;

    position: relative;

}

.ribbon-group:last-child {

    border-right: none;

}

.ribbon-group-title {

    position: absolute;

    bottom: 4px;

    left: 0;

    right: 0;

    text-align: center;

    font-size: 11px;

    color: #666;

}

/* ----------------------------------------------------------
   Ribbon Buttons
---------------------------------------------------------- */

.ribbon-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 4px;

    width: 100%;

    padding-bottom: 18px;

}

/* ----------------------------------------------------------
   Large Button
---------------------------------------------------------- */

.ribbon-button-large {

    width: 72px;

    height: 72px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    border-radius: 4px;

    transition: .15s;

}

.ribbon-button-large:hover {

    background: rgba(0,0,0,.06);

}

.ribbon-button-large:active {

    background: rgba(0,0,0,.12);

}

.ribbon-button-large .icon {

    font-size: 28px;

    margin-bottom: 6px;

}

.ribbon-button-large .label {

    text-align: center;

    font-size: 11px;

}

/* ----------------------------------------------------------
   Small Button
---------------------------------------------------------- */

.ribbon-button-small {

    display: flex;

    align-items: center;

    gap: 6px;

    height: 28px;

    padding: 0 8px;

    border-radius: 4px;

    cursor: pointer;

    transition: .15s;

    white-space: nowrap;

}

.ribbon-button-small:hover {

    background: rgba(0,0,0,.06);

}

.ribbon-button-small:active {

    background: rgba(0,0,0,.12);

}

.ribbon-button-small .icon {

    width: 16px;

    text-align: center;

}

/* ----------------------------------------------------------
   Toggle Buttons
---------------------------------------------------------- */

.ribbon-button-checked {

    background: rgba(0,102,204,.15);

    border: 1px solid var(--accent);

}

/* ----------------------------------------------------------
   Disabled
---------------------------------------------------------- */

.ribbon-button-disabled {

    opacity: .45;

    pointer-events: none;

}

/* ----------------------------------------------------------
   Contextual Tabs
---------------------------------------------------------- */

.ribbon-tab.contextual {

    background: #fff6d8;

}

.ribbon-tab.contextual.active {

    background: white;

}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width:1200px) {

    .ribbon-group {

        min-width: 130px;

    }

    .ribbon-button-large {

        width: 64px;

        height: 64px;

    }

}

@media (max-width:900px) {

    #ribbonContent {

        overflow-x: auto;

    }

}