/* ============================================================
   GIROO V14.1 - CAMADA VISUAL ISOLADA
   Nao altera estilos globais antigos.
   ============================================================ */

.g-v141-menu {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.g-v141-menu a {
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e8e1;
    border-radius: 12px;
    background: #fff;
    color: #171a1d;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.g-v141-menu a:hover {
    background: #f1ffd9;
    border-color: #cfe7a9;
}

/* MESAS */

.g-table-summary {
    max-width: 1460px;
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.g-table-summary-card {
    padding: 15px;
    border: 1px solid #e4e8e1;
    border-radius: 15px;
    background: #fff;
}

.g-table-summary-card span,
.g-table-summary-card strong {
    display: block;
}

.g-table-summary-card span {
    color: #7c858b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.g-table-summary-card strong {
    margin-top: 6px;
    font-size: 22px;
}

.g-table-summary-card.green {
    background: #f1ffd9;
    border-color: #d7ecb7;
}

.g-table-summary-card.red {
    background: #fff1f1;
    border-color: #efcdcd;
}

.g-new-table-form {
    display: grid;
    grid-template-columns: 72px minmax(140px, 180px) auto;
    gap: 7px;
}

.g-new-table-form input {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #e4e8e1;
    border-radius: 10px;
    background: #fff;
}

.g-table-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.g-table-card {
    min-height: 145px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 17px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.g-table-card.free {
    color: #172012;
    border: 1px solid #cae7aa;
    background: linear-gradient(145deg, #f6ffe9, #fff);
}

.g-table-card.occupied {
    color: #241717;
    border: 1px solid #efc5c5;
    background: linear-gradient(145deg, #fff2f2, #fff);
}

.g-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20,24,27,.07);
}

.g-table-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.g-table-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
}

.g-table-state {
    min-height: 25px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.g-table-card.free .g-table-state {
    background: #dff7c4;
    color: #4f8210;
}

.g-table-card.occupied .g-table-state {
    background: #ffdede;
    color: #a64242;
}

.g-table-order span,
.g-table-order strong {
    display: block;
}

.g-table-order span {
    color: #7c858b;
    font-size: 8px;
}

.g-table-order strong {
    margin-top: 5px;
    font-size: 13px;
}

.g-table-free-text {
    color: #6a8d3d;
    font-size: 8px;
}

/* COMANDA */

.g-command-layout {
    max-width: 1460px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 13px;
    align-items: start;
}

.g-command-side {
    position: sticky;
    top: 18px;
}

.g-command-open {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.g-command-items {
    margin-top: 15px;
    display: grid;
    gap: 7px;
}

.g-command-item {
    min-height: 58px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e4e8e1;
    border-radius: 12px;
    background: #f8f9f6;
}

.g-command-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.g-command-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid #e4e8e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.g-command-history {
    margin-top: 13px;
    display: grid;
    gap: 6px;
}

.g-command-history-row {
    min-height: 45px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: .4fr 1fr .8fr .7fr;
    gap: 8px;
    align-items: center;
    border: 1px solid #e4e8e1;
    border-radius: 10px;
    font-size: 8px;
}

/* LOJA INATIVA */

.g-offline-store {
    max-width: 620px;
    margin: 60px auto 0;
    padding: 32px;
    text-align: center;
    border: 1px solid #e4e8e1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(20,24,27,.07);
}

.g-offline-store-logo {
    width: 86px;
    height: 86px;
    margin: 0 auto 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 23px;
    background: #b8ff39;
    color: #171a1d;
    font-size: 32px;
    font-weight: 900;
}

.g-offline-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE */

@media (max-width: 1100px) {
    .g-table-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .g-command-layout {
        grid-template-columns: 1fr;
    }

    .g-command-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .g-v141-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .g-table-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .g-new-table-form {
        width: 100%;
        grid-template-columns: 70px 1fr;
    }

    .g-new-table-form .g-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .g-table-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .g-command-item {
        grid-template-columns: 1fr auto;
    }

    .g-command-item > strong:last-child {
        grid-column: 1 / -1;
        padding-top: 7px;
        border-top: 1px solid #e4e8e1;
    }

    .g-command-history-row {
        grid-template-columns: .5fr 1fr .8fr;
    }

    .g-command-history-row > strong:last-child {
        grid-column: 2 / -1;
    }
}

/* V14.2 - menu rapido superior descontinuado */
.g-v141-menu {
    display: none !important;
}

/* Dashboard: icones seguros sem dependencia de emoji/fontes */
.nav-icon-safe {
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.07) !important;
    color: #c5cbd0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.nav-item.active .nav-icon-safe,
.nav-item:hover .nav-icon-safe {
    background: rgba(21,24,27,.12) !important;
    color: #171a1d !important;
}
