@font-face {
    font-family: "Manrope";
    src: url("../assets/fonts/manrope-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/montserrat-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --app-header-height: 64px;
}

[data-role-permission][hidden] { display: none !important; }

/* =========================================
   BASE
========================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;
}

body {
    min-height: 100%;
    font-family: "Manrope", sans-serif;
}

button,
input,
textarea,
select {
    font-family: "Manrope", sans-serif;
}

#app {
    width: 100%;
    height: 100%;
}

/* =========================================
   LOADING SCREEN
========================================= */

#app-loading {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    background: #ffffff;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease;
}


#app-loading.app-loading--visible {
    opacity: 1;

    pointer-events: auto;
}


.app-loading__logo {
    display: block;

    width: 72px;
    height: 72px;

    margin: 0;

    object-fit: contain;
}

/* =========================================
   APP HEADER
========================================= */

.app-header {
    font-family: "Manrope", sans-serif;

    position: fixed;

    top: var(--offline-banner-height, 0px);
    left: 0;
    right: 0;

    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 24px;

    z-index: 100;
    background:
        linear-gradient(
            90deg,
            #002A4A 0%,
            #001B31 55%,
            #000F1E 100%
        );
}

.app-header__brand-altabra {
    color: #FFF;
     font-weight: 600;
    letter-spacing: 0.02em;
}

.app-header__brand-punto {
        text-transform: lowercase;

    color: #D4A84F;
    font-size: 0.85em;
}

/* =========================================
   MARCA
========================================= */

.app-header__brand {

    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

}


/* LOGO */

.app-header__logo {

    width: 32px;
    height: 32px;

    object-fit: contain;

    flex-shrink: 0;

}


/* NOMBRE */

.app-header__name {

    display: flex;
    align-items: baseline;

    line-height: 1;

    white-space: nowrap;

}


/* ALTABRA */

.app-header__name-main {

    color: #0077B6;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.04em;

}


/* PUNTO */

.app-header__name-product {

    color: #D6A84F;

    margin-left: 4px;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.08em;

}


/* =========================================
   VISTA / ESTADO
========================================= */

.app-header__right {

    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;

}


.app-header__title {

    color: #FFFFFF;

    font-size: 17px;
    font-weight: 500;

    white-space: nowrap;

}


/* =========================================
   ESTADO DE CAJA
========================================= */

.app-header__cash-status {

    display: flex;
    align-items: center;

    gap: 7px;

    padding:
        7px 11px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    color: #FFFFFF;

    font-size: 13px;

    cursor: pointer;

    user-select: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;

}


.app-header__cash-status:hover {

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.18);

}


/* LUZ */

.app-header__cash-indicator {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4CAF50;

    box-shadow:
        0 0 8px rgba(76, 175, 80, 0.8);

    flex-shrink: 0;

}


/* =========================================
   ESPACIO PARA EL HEADER
========================================= */

.app-header-spacer {

    height: 64px;

    flex-shrink: 0;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .app-header {

        height: 58px;

        padding:
            0 16px;

    }


    .app-header__logo {

        width: 28px;
        height: 28px;

    }


    .app-header__name-main {

        font-size: 16px;

    }


    .app-header__name-product {

        font-size: 12px;

    }


    .app-header__title {

        font-size: 15px;

    }


    .app-header__cash-status {

        padding:
            6px 9px;

        font-size: 12px;

    }


    .app-header-spacer {

        height: 58px;

    }

}

.app-header__back {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #d6a83d;
    border-radius: 7px;
    background: #fff8e6;
    color: #263746;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.app-header__back:hover { background: #ffefbf; }
.app-header__back:focus-visible { outline: 3px solid #7fb5ff; outline-offset: 3px; }

.app-header__brand-name {
    font-family: "Montserrat", sans-serif;
}
