@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 1000;
    src: url("/eeshops/jakarta.faces.resource/dm-sans-latin-wght-normal.woff2.xhtml?ln=fonts") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 1000;
    src: url("/eeshops/jakarta.faces.resource/dm-sans-latin-ext-wght-normal.woff2.xhtml?ln=fonts") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --eshop-font: "DM Sans", system-ui, sans-serif;
    --eb-page-bg: #FFF6EC;
    --eb-card-bg: #FFFFFF;
    --eb-t1: #5A3A2E;
    --eb-t2: #7E655C;
    --eb-t3: #9C8982;
    --eb-line: rgba(90, 58, 46, 0.12);
    --eb-soft: #F5F3F2;
    --eb-main: #B8D8A8;
    --eb-main-text: #5A3A2E;
    --eb-secondary: #F4A6B8;
    --eb-secondary-text: #5A3A2E;
    --eb-action-bg: #7CC6B6;
    --eb-action-text: #5A3A2E;
    --sh-bg: #B8D8A8;
    --sh-text: #5A3A2E;
    --sh-velo: rgba(255, 255, 255, .6);
    --sh-borde: rgba(0, 0, 0, .15);
    --eb-tinte: #B8D8A8;
    --eb-tinte-base: #FFFFFF;

    --ok: #1F7A4D;
    --ok-bg: #E6F4EC;
    --aviso: #8A5A00;
    --aviso-bg: #FFF3D6;
    --error: #B3261E;
    --error-bg: #FCE8E6;
    --error-texto: #FFFFFF;
    --velo: rgba(255, 255, 255, .7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--eb-page-bg);
    color: var(--eb-t1);
    font-family: var(--eshop-font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

.pos {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pos-top {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 20px;
    flex: none;
    background: var(--sh-bg);
    color: var(--sh-text);
}

.pos-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--sh-velo);
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.pos-brand {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/*
 * Botón de menú y logo (elegido el 14/11, docs/prototipos/venta-renglon-y-barra.html,
 * opción B): el botón abre un panel al costado con los destinos del inicio;
 * al lado, el logo de Empresa → Marca (sin logo, el nombre escrito).
 */
.pos-menu-btn {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px 0 12px;
    border: 1px solid var(--sh-borde);
    border-radius: 12px;
    background: var(--sh-velo);
    color: inherit;
    font-size: 15px;
    font-weight: 600;
}

.pos-menu-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.pos-marca {
    display: block;
    flex: none;
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.pos-menu-velo {
    position: fixed;
    inset: 64px 0 0;
    z-index: 40;
    background: rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility 0s .2s;
}

.pos-menu {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 41;
    width: min(300px, 85vw);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--eb-card-bg);
    color: var(--eb-t1);
    border-right: 1px solid var(--eb-line);
    box-shadow: 8px 0 24px rgba(0, 0, 0, .16);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease-out, visibility 0s .2s;
}

.pos-menu.is-abierto,
.pos-menu-velo.is-abierto {
    visibility: visible;
    transition: transform .2s ease-out, opacity .2s;
}

.pos-menu.is-abierto {
    transform: none;
}

.pos-menu-velo.is-abierto {
    opacity: 1;
}

.pos-menu-op {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
    padding: 6px 14px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.pos-menu-op b {
    font-size: 16px;
    font-weight: 600;
}

.pos-menu-op span {
    font-size: 13px;
    color: var(--eb-t2);
}

.pos-menu-op.is-on {
    background: color-mix(in srgb, var(--eb-tinte) 35%, var(--eb-tinte-base));
}

@media (hover: hover) {
    .pos-menu-op:hover {
        background: color-mix(in srgb, currentColor 8%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pos-menu,
    .pos-menu-velo {
        transition: none;
    }
}

.pos-mode {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sh-velo);
    font-size: 13px;
    font-weight: 600;
}

.pos-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.pos-salir {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--sh-borde);
    border-radius: 12px;
    background: var(--sh-velo);
    font-size: 14px;
    font-weight: 600;
}

.pos-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: var(--eb-action-bg);
    color: var(--eb-action-text);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.pos-btn-sec {
    background: var(--eb-card-bg);
    color: var(--eb-t1);
    border: 1px solid var(--eb-line);
    font-weight: 600;
}

.pos-msgs {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.pos-msgs li {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
}

.pos-msgs .pos-msg-error {
    background: var(--error-bg);
    color: var(--error);
}

.pos-msgs .pos-msg-info {
    background: var(--ok-bg);
    color: var(--ok);
}

.pos-accion {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

/* Botones de perfil y puesto en la barra de arriba, con su lista (venta y Ventas del día). */
.pos-perfil {
    position: relative;
    flex: none;
    min-width: 0;
}

.pos-perfil-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--sh-borde);
    border-radius: 12px;
    background: var(--sh-velo);
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.pos-perfil-nom {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pos-perfil-lista {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(360px, 90vw);
    padding: 6px;
    border-radius: 14px;
    background: var(--eb-card-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.pos-perfil-op {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 56px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--eb-t1);
    text-align: left;
    font-size: 16px;
}

.pos-perfil-op small {
    font-size: 12px;
    color: var(--eb-t2);
}

.pos-perfil-op.is-on {
    border-color: var(--eb-t1);
    background: color-mix(in srgb, var(--eb-tinte) 30%, var(--eb-tinte-base));
}

.pos-perfil-btn .ic {
    width: 18px;
    height: 18px;
    flex: none;
}

/*
 * Menú de la cuenta (barra.js): las iniciales de quien atiende abren
 * Mi contraseña, pantalla completa, el modo y Salir. Las acciones
 * pos-plegable ("Ventas de hoy") pasan al menú cuando la barra es angosta.
 */
.pos-cta-btn {
    gap: 6px;
    padding: 0 10px 0 7px;
}

.pos-cta-ini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sh-text);
    color: var(--sh-bg);
    font-size: 13px;
    font-weight: 700;
}

.pos-cta-nom {
    max-width: 160px;
}

.pos-cta-menu {
    left: auto;
    right: 0;
    width: min(320px, 92vw);
    gap: 2px;
}

.pos-cta-menu[hidden] {
    display: none;
}

.pos-cta-cab {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 6px;
    color: var(--eb-t1);
    white-space: normal;
}

.pos-cta-cab b {
    font-size: 16px;
}

.pos-cta-cab span {
    font-size: 13px;
    color: var(--eb-t2);
}

.pos-cta-acc {
    display: none;
    flex-direction: column;
    gap: 2px;
}

.pos-cta-op {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--eb-t1);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.pos-cta-op .ic {
    width: 22px;
    height: 22px;
    flex: none;
    fill: currentColor;
}

.pos-pantalla[hidden] {
    display: none;
}

.pos-cta-salir {
    color: var(--error);
    font-weight: 600;
}

html[data-modo="oscuro"] .pos-cta-salir {
    color: #FF9C94;
}

.pos-noche {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0;
    padding: 8px 12px 10px;
    border-top: 1px solid var(--eb-line);
    border-bottom: 1px solid var(--eb-line);
    white-space: normal;
}

.pos-noche:empty {
    display: none;
}

.pos-noche-t {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--eb-t2);
}

.pos-noche-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 3px;
    border-radius: 12px;
    background: var(--eb-page-bg);
}

.pos-noche-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--eb-t1);
    font-size: 14px;
    font-weight: 600;
}

.pos-noche-op.is-on {
    background: var(--eb-card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.pos-noche-ic {
    font-size: 17px;
    line-height: 1;
}

.pos-noche-ex {
    font-size: 12px;
    color: var(--eb-t2);
}

/* Barra angosta (tablet vertical, ~800 px): sin nombre del local ni del puesto. En el teléfono (< 600 px), tampoco el logo. */
@media (max-width: 1279px) {
    .pos-cta-nom {
        display: none;
    }
}

@media (max-width: 1023px) {
    .pos-brand,
    .pos-mode,
    .pos-plegable,
    #pos-puesto .pos-perfil-nom,
    .cj-barra-l {
        display: none;
    }

    .pos-cta-acc {
        display: flex;
    }

    .pos-menu-txt {
        display: none;
    }

    .pos-menu-btn {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .pos-perfil-btn {
        max-width: 180px;
    }
}

@media (max-width: 599px) {
    .pos-top,
    .pos-user {
        gap: 6px;
    }

    .pos-top {
        padding: 0 12px;
    }

    .pos-perfil-btn {
        max-width: 120px;
        padding: 0 10px;
    }

    .pos-salir {
        padding: 0 12px;
    }

    .pos-marca {
        display: none;
    }
}

/*
 * Efecto de los botones (elegido el 12/11, docs/prototipos/botones-y-barra.html):
 * al pasar el mouse un velo del color del texto; al tocar, un velo más
 * fuerte y se achica un 3 %. Se usa "scale" (no "transform", que algunos
 * botones ya usan para ubicarse). El hover sólo con mouse, para que no
 * quede pegado en la tablet. Los deshabilitados no reaccionan.
 */
:where(button, input[type="submit"], input[type="button"], input[type="reset"], a.pos-btn, a.pos-salir, a.pos-logo,
    a.pos-cta-op, a.ti-btn, a.ti-btn-sec, a.adm-tab, a.emp-subt, a.vds-tarjeta, a.tda-suc, a.loc-paleta) {
    transition: scale .1s;
}

@media (hover: hover) {
    :is(button, input[type="submit"], input[type="button"], input[type="reset"], a.pos-btn, a.pos-salir, a.pos-logo,
        a.pos-cta-op, a.ti-btn, a.ti-btn-sec, a.adm-tab, a.emp-subt, a.vds-tarjeta, a.tda-suc, a.loc-paleta):not(:disabled):hover {
        background-image: linear-gradient(color-mix(in srgb, currentColor 8%, transparent), color-mix(in srgb, currentColor 8%, transparent));
    }
}

:is(button, input[type="submit"], input[type="button"], input[type="reset"], a.pos-btn, a.pos-salir, a.pos-logo,
    a.pos-cta-op, a.ti-btn, a.ti-btn-sec, a.adm-tab, a.emp-subt, a.vds-tarjeta, a.tda-suc, a.loc-paleta):not(:disabled):active {
    scale: .97;
    background-image: linear-gradient(color-mix(in srgb, currentColor 16%, transparent), color-mix(in srgb, currentColor 16%, transparent));
}

:where(button, input[type="submit"], input[type="button"], input[type="reset"], a, select):focus-visible {
    outline: 3px solid var(--eb-accent, var(--eb-t1));
    outline-offset: 2px;
}

:where(.pos-top) :where(button, input[type="submit"], a):focus-visible {
    outline-color: var(--sh-text);
}

:where(.pos-perfil-lista) :where(button, input[type="submit"], a):focus-visible {
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    html :is(button, input[type="submit"], input[type="button"], input[type="reset"], a):not(:disabled):active {
        scale: 1;
    }
}

html[data-modo="oscuro"] {
    scrollbar-color: color-mix(in srgb, var(--eb-t1) 35%, transparent) var(--eb-page-bg);
}
