﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f2f2f2;
    color: #111;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-y: contain;
}

input,
button,
textarea {
    font-family: inherit;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border: 2px solid #111;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

    .login-card h1 {
        margin: 0;
        font-size: 2rem;
        text-align: center;
    }

.login-subtitle {
    margin: 8px 0 22px 0;
    text-align: center;
    color: #555;
    font-size: 1rem;
}

.input-login {
    width: 100%;
    height: 54px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 2px solid #222;
    border-radius: 10px;
    font-size: 1.2rem;
    background: #fff;
}

.btn-principal {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
}

.msg-erro {
    display: block;
    color: #b00020;
    font-weight: bold;
    text-align: center;
    margin-bottom: 14px;
    min-height: 20px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #f2f2f2;
    padding: calc(12px + env(safe-area-inset-top)) 10px 10px 10px;
    border-bottom: 2px solid #111;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tab-btn {
    min-height: 48px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    font-weight: bold;
}

    .tab-btn.active {
        background: #111;
        color: #fff;
    }

.app-main {
    padding: 12px;
    padding-bottom: 210px;
}

  
.carrinho-box {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border-top: 3px solid #111;
    padding: 10px;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.15);
}

.carrinho-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.total-label {
    font-size: 1.3rem;
    font-weight: bold;
}

.cart-table {
    width: 100%;
    max-height: 120px;
    overflow: hidden;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .cart-table td {
        padding: 4px;
        border-bottom: 1px solid #ddd;
    }

    .cart-table input[type="button"] {
        min-width: 38px;
        min-height: 34px;
        border: 0;
        border-radius: 6px;
        background: #b00020;
        color: #fff;
        font-weight: bold;
    }

.mt10 {
    margin-top: 10px;
}

.local-box,
.confirmado-box {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 75px;
    bottom: 10px;
    z-index: 30;
    background: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    padding: 14px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

    .local-box h2,
    .confirmado-box h1 {
        margin: 0 0 12px 0;
        text-align: center;
    }

.local-atual {
    display: block;
    min-height: 64px;
    line-height: 64px;
    margin-bottom: 12px;
    border: 3px solid #111;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.local-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

    .local-row.numeros {
        grid-template-columns: repeat(4, 1fr);
    }

.local-btn {
    min-height: 54px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1.25rem;
    font-weight: bold;
}

    .local-btn:active {
        background: #111;
        color: #fff;
    }

.input-nota {
    width: 100%;
    height: 54px;
    margin: 8px 0 12px 0;
    padding: 0 12px;
    border: 2px solid #111;
    border-radius: 10px;
    font-size: 1.1rem;
}

.btn-finalizar {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 10px;
    background: #008527;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-secundario {
    width: 100%;
    min-height: 52px;
    border: 2px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 1.1rem;
    font-weight: bold;
}

.confirmado-box {
    text-align: center;
}

.pedido-novo {
    display: block;
    margin: 25px 0;
    font-size: 4rem;
    font-weight: bold;
}

@media (min-width: 700px) {
  

    .app-main {
        max-width: 760px;
        margin: 0 auto;
    }

    .local-box,
    .confirmado-box {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 699px) {
    .app-header {
        padding: calc(12px + env(safe-area-inset-top)) 8px 8px 8px;
    }

    .tabs {
        gap: 5px;
    }

    .tab-btn {
        min-height: 46px;
        font-size: 0.95rem;
    }

    .app-main {
        padding: 8px;
        padding-bottom: 185px;
    }
 

    .carrinho-box {
        padding: 8px;
    }

    .local-box,
    .confirmado-box {
        top: 62px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        padding: 10px;
    }
}

.disabled,
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-scroll {
    max-height: 95px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.cart-table td:first-child {
    font-weight: bold;
}

.cart-table td:nth-child(2) {
    width: 90px;
    text-align: right;
}

.cart-table td:nth-child(3) {
    width: 48px;
    text-align: right;
}

.menu-btn,
.tab-btn,
.local-btn,
.btn-principal,
.btn-finalizar,
.btn-secundario {
    touch-action: manipulation;
}
.resumo-scroll {
    max-height: 330px;
    overflow-y: auto;
    border: 2px solid #111;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
}

.resumo-table {
    width: 100%;
    font-size: 1.05rem;
}

    .resumo-table td {
        padding: 9px 6px;
        border-bottom: 1px solid #ddd;
    }

        .resumo-table td:first-child {
            font-weight: bold;
        }

        .resumo-table td:nth-child(2) {
            width: 95px;
            text-align: right;
        }

        .resumo-table td:nth-child(3) {
            width: 48px;
            text-align: right;
        }

    .resumo-table input[type="submit"],
    .resumo-table input[type="button"] {
        min-width: 38px;
        min-height: 34px;
        border: 0;
        border-radius: 6px;
        background: #b00020;
        color: #fff;
        font-weight: bold;
    }

.resumo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #111;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    background: #f5f5f5;
}

.confirmado-resumo {
    margin: 10px 0 16px 0;
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

    .confirmado-resumo h2 {
        margin: 0;
        padding: 10px;
        background: #111;
        color: #fff;
        font-size: 1.1rem;
        text-align: center;
    }

.confirmado-linha {
    display: grid;
    grid-template-columns: 1fr 85px;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

    .confirmado-linha span {
        font-weight: bold;
    }

    .confirmado-linha strong {
        text-align: right;
    }

.confirmado-total {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    background: #f2f2f2;
}

.confirmado-box .pedido-novo {
    margin: 8px 0 14px 0;
}

.ultimo-pedido-box {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 2px solid #111;
    border-radius: 10px;
    background: #fff7c2;
    color: #111;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.ultimo-pedido-numero {
    font-size: 1.35rem;
    font-weight: 900;
}

.menu-card {
    text-align: center;
    padding: 28px 24px;
}

.menu-user {
    display: block;
    margin: 18px 0 22px 0;
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
}

.btn-menu-modo {
    margin-bottom: 18px;
}

    .btn-menu-modo + .btn-menu-modo {
        margin-top: 4px;
    }

.btn-logout {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #e9e9e9;
    color: #111;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 20px;
}


.servico-main {
    padding: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.servico-header {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

    .servico-header h1 {
        margin: 0;
        font-size: 1.8rem;
        text-align: center;
    }

.servico-user {
    display: block;
    text-align: center;
    font-weight: bold;
    color: #444;
}

.btn-servico-voltar {
    min-height: 46px;
    border: 2px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: bold;
}

.servico-card {
    background: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

    .servico-card h2 {
        margin-top: 0;
        text-align: center;
    }

    .servico-card p {
        text-align: center;
        font-size: 1.05rem;
    }

.servico-topo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.servico-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    text-align: center;
    margin-bottom: 4px;
}

.servico-pedido,
.servico-local {
    display: block;
    border: 3px solid #111;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
}

.servico-local {
    background: #111;
    color: #fff;
}

.servico-obs {
    display: block;
    border: 2px solid #111;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    background: #fff7c2;
    font-weight: bold;
    text-align: center;
}

.servico-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .servico-table td {
        border-bottom: 1px solid #ddd;
        padding: 10px 6px;
        font-size: 1.1rem;
        font-weight: bold;
    }

        .servico-table td:first-child {
            width: auto;
        }

        .servico-table td:nth-child(2) {
            width: 110px;
            text-align: right;
        }

.btn-linha-servir {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #008527;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.btn-linha-ok {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #999;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.mt10 {
    margin-top: 10px;
}

.servico-header-simple {
    margin-bottom: 12px;
    text-align: center;
}

    .servico-header-simple h1 {
        margin: 0;
        font-size: 2rem;
        font-weight: 900;
    }


.outros-box {
    background: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    padding: 16px;
    margin-top: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

    .outros-box h2 {
        margin: 0 0 14px 0;
        text-align: center;
        font-size: 1.5rem;
    }

.btn-ir-servico {
    width: 100%;
    min-height: 38px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #fff7c2;
    color: #111;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.abandonar-box {
    margin-top: 18px;
    padding: 12px;
    border: 2px solid #b00020;
    border-radius: 10px;
    background: #fff2f2;
}

.chk-abandonar {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
}

    .chk-abandonar input {
        transform: scale(1.3);
        margin-right: 8px;
    }

.btn-abandonar {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #b00020;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-espera {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #f0a000;
    color: #111;
    font-size: 1.1rem;
    font-weight: bold;
}

.espera-card {
    margin-top: 14px;
    background: #fffdf2;
}

.espera-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #ddd;
    font-size: 1.05rem;
    font-weight: bold;
}

    .espera-table td:nth-child(2) {
        width: 110px;
        text-align: right;
    }

.btn-retomar {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

input.menu-item,
input[type="submit"].menu-item,
input[type="button"].menu-item {
    width: 100%;
    min-height: 64px;
    border: 2px solid #111 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 10px 12px !important;
    white-space: pre-line !important;
    line-height: 1.2 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

    input.menu-item:active,
    input[type="submit"].menu-item:active,
    input[type="button"].menu-item:active {
        background: #111 !important;
        color: #fff !important;
    }
.menu-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
    margin: 0 auto !important;
    max-width: 520px !important;
}