:root {
    --ui-navy: #14213a;
    --ui-green: #0a9b68;
    --ui-blue: #1769e0;
    --ui-danger: #d92d20;
    --ui-border: #d7dee8;
    --ui-bg: #eef2f7;
    --ui-text: #172033;
}

body.pdv-page {
    color: var(--ui-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--ui-bg);
}

.pdv-page input[type="text"],
.pdv-page input[type="password"],
.pdv-page input[type="number"],
.pdv-page select,
.pdv-page textarea {
    border-color: var(--ui-border);
    border-radius: 7px;
    outline: none;
    font-family: inherit;
}

.pdv-page input[type="text"]:focus,
.pdv-page input[type="password"]:focus,
.pdv-page input[type="number"]:focus,
.pdv-page select:focus,
.pdv-page textarea:focus {
    border-color: var(--ui-blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .12);
}

.pdv-page button,
.pdv-page input[type="button"],
.pdv-page input[type="submit"],
.pdv-page a.fundomenubotaoc,
.pdv-page .bottonconfecha,
.pdv-page .bottoncanfecha,
.pdv-page .confifechadeta,
.pdv-page .confifechatransf {
    border-radius: 7px;
    font-family: inherit;
    font-weight: 700;
    transition: filter .15s, transform .15s, box-shadow .15s;
}

.pdv-page button:hover,
.pdv-page input[type="button"]:hover,
.pdv-page input[type="submit"]:hover,
.pdv-page a.fundomenubotaoc:hover,
.pdv-page .bottonconfecha:hover,
.pdv-page .bottoncanfecha:hover {
    filter: brightness(.96);
    box-shadow: 0 4px 10px rgba(16, 24, 40, .14);
}

.pdv-page table {
    border-collapse: collapse;
    font-family: inherit;
}

.pdv-page th {
    color: var(--ui-navy);
    font-weight: 800;
}

.pdv-page #listitensmesa,
.pdv-page #listitenstransfemesa,
.pdv-page #listbuscamesa,
.pdv-page #listeprodmultpg,
.pdv-page #corpolistitenspg {
    scrollbar-color: #9aa8ba transparent;
    scrollbar-width: thin;
}

.pdv-page #toplistitensmesa,
.pdv-page #toporecebe,
.pdv-page #listbuscamesacorpmenu,
.pdv-page #listeprodmultpgrodmenu {
    color: #fff;
    background: var(--ui-navy);
}

.pdv-page #itensmesa,
.pdv-page #itensmesatranfd {
    border-color: var(--ui-border);
}

.pdv-page .easy-numpad-frame {
    background: rgba(16, 24, 40, .58);
    backdrop-filter: blur(3px);
}

.pdv-page .easy-numpad-container {
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(16, 24, 40, .25);
}

.pdv-page fieldset {
    border-color: var(--ui-border);
    border-radius: 10px;
}

.pdv-page legend {
    color: var(--ui-navy);
    font-family: inherit;
    font-weight: 800;
}

/* Telas internas mantêm as medidas legadas, evitando que o painel inicial
   altere pedidos, recebimentos, transferências e múltiplos pagamentos. */
.pdv-page:not(.pdv-view-inicio):not(.pdv-view-mesas):not(.pdv-view-entrega):not(.pdv-view-entregas) #pai {
    width: 100%;
    max-width: 1024px;
    height: 100%;
    max-height: 768px;
    margin: 0 auto;
}

.pdv-page:not(.pdv-view-inicio):not(.pdv-view-mesas):not(.pdv-view-entrega):not(.pdv-view-entregas) #principal {
    width: 100%;
    height: 100%;
    padding: 0;
}

.pdv-page:not(.pdv-view-inicio):not(.pdv-view-mesas):not(.pdv-view-entrega):not(.pdv-view-entregas) #corpopdv {
    width: 100%;
    height: 100%;
    max-width: 1004px;
    max-height: 748px;
    margin: 0 auto;
    overflow: visible;
    border: 10px solid #ccd4df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .12);
}

/* Recebimento múltiplo: mesma linguagem visual de Pedidos e Entregas. */
.pdv-layout-recebimento #corpopdv {
    overflow: hidden !important;
    border-width: 1px !important;
    border-radius: 14px !important;
}

.pdv-layout-recebimento .recebimento-multiplo {
    width: 100%;
    height: 100%;
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
    gap: 14px;
    padding: 14px;
    box-sizing: border-box;
    background: #f5f7fb;
}

.pdv-layout-recebimento .recebimento-multiplo > #corpoitenspedido,
.pdv-layout-recebimento .recebimento-multiplo > #corpomoedaspg {
    width: auto;
    height: 100%;
    min-width: 0;
    float: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .07);
}

.pdv-layout-recebimento .recebimento-cabecalho {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: #fff;
    background: var(--ui-navy);
    box-sizing: border-box;
}

.pdv-layout-recebimento .recebimento-cabecalho h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
}

.pdv-layout-recebimento .recebimento-etiqueta {
    color: #9ec5ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pdv-layout-recebimento .pagamento-cabecalho {
    background: linear-gradient(135deg, #087a54, #0a9b68);
}

.pdv-layout-recebimento .pagamento-cabecalho .recebimento-etiqueta {
    color: #c6f7e5;
}

.pdv-layout-recebimento #corpolistitenspg {
    width: 100%;
    height: auto;
    max-height: none;
    flex: 1;
    float: none;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0;
    background: #fff;
    box-sizing: border-box;
    white-space: normal;
}

.pdv-layout-recebimento #corporesultlistitenspg,
.pdv-layout-recebimento #corpooplistitenspg {
    width: 100%;
    height: auto;
    max-height: none;
    float: none;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--ui-border);
    background: #f8fafc;
    box-sizing: border-box;
}

.pdv-layout-recebimento #corpooplistitenspg { min-height: 150px; }

.pdv-layout-recebimento #itensmesa {
    width: 100%;
    min-height: 36px;
    height: auto;
    padding: 8px 10px;
    margin: 0 0 6px;
    float: none;
    overflow: hidden;
    border: 1px solid #e4e9f0;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}

.pdv-layout-recebimento .moedas {
    width: 100%;
    height: 54px;
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #f8fafc;
    box-sizing: border-box;
    font: 800 17px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}

.pdv-layout-recebimento .moedas input {
    width: 155px !important;
    height: 38px !important;
    float: none !important;
    color: var(--ui-navy);
    background: #fff;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.pdv-layout-recebimento .confireceber {
    color: #fff;
    background: var(--ui-danger);
}

.pdv-layout-recebimento .confireceberpg {
    color: #fff;
    background: var(--ui-green);
}

@media (max-width: 850px) {
    .pdv-layout-recebimento .recebimento-multiplo {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .pdv-layout-recebimento .recebimento-multiplo > #corpoitenspedido,
    .pdv-layout-recebimento .recebimento-multiplo > #corpomoedaspg {
        min-height: 520px;
    }
}

/* Tela de pedidos. */
.pdv-view-pedidos #corpopdv {
    overflow: hidden !important;
    border-width: 1px !important;
    border-radius: 14px !important;
}

.pdv-view-pedidos #corpogeralinicio {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 78px minmax(0, 1fr) 38px;
    background: #f5f7fb;
}

.pdv-view-pedidos #corpotopoinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    border: 0;
    background: var(--ui-navy);
}

.pdv-view-pedidos #corpomenutopo {
    width: auto;
    height: 100%;
    flex: 1;
    float: none;
    padding: 6px;
    box-sizing: border-box;
}

.pdv-view-pedidos #corpolinktopo {
    width: 70px;
    height: 64px;
    float: left;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
}

.pdv-view-pedidos #corpolinktopo input[type="image"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
}

.pdv-view-pedidos #corporelogio {
    width: 145px;
    height: 100%;
    flex: 0 0 145px;
    float: none;
}

.pdv-view-pedidos #divrelogio {
    height: 100%;
    padding: 7px 12px;
    border: 0;
    color: #d0d5dd;
    background: #101828;
    box-sizing: border-box;
    text-align: center;
}

.pdv-view-pedidos #divrelogio input {
    height: 32px;
    padding: 2px 0;
    color: #fff;
    background: transparent;
    font-size: 22px;
    text-align: center;
}

.pdv-view-pedidos #corpocentroinicioped {
    width: 100%;
    height: auto;
    min-height: 0;
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr);
    gap: 12px;
    padding: 12px;
    border: 0;
    background: #f5f7fb;
    box-sizing: border-box;
}

.pdv-view-pedidos #corpocentroinicioped > #corpoitenspedido,
.pdv-view-pedidos #corpocentroinicioped > #corpoitensmesa {
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    float: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16,24,40,.07);
}

.pdv-view-pedidos #listcatitens {
    width: 100%;
    height: 70px;
    flex: 0 0 70px;
    float: none;
    padding: 6px 6px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--ui-border);
    background: #f8fafc;
    box-sizing: border-box;
}

.pdv-view-pedidos #listcat {
    height: 44px;
    margin: 0 4px 0 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.pdv-view-pedidos #listcat .inputbutton {
    width: 100%;
    height: 100%;
    padding: 3px 6px;
    color: var(--ui-navy);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.pdv-view-pedidos #corpolistitens {
    width: 100%;
    height: auto;
    flex: 1;
    float: none;
    overflow: auto;
    border: 0;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-pedidos #buscaitens {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    min-height: 60px;
    float: none;
    clear: both;
    margin-bottom: 8px;
    padding: 8px 8px 12px;
    box-sizing: border-box;
    background: #fff;
}

.pdv-view-pedidos #buscarprod {
    display: block;
    float: none !important;
    height: 40px !important;
    padding: 0 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    box-sizing: border-box;
}

.pdv-view-pedidos #retornoitens { padding: 6px 8px 12px; }

.pdv-view-pedidos .produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 7px;
    width: 100%;
}

.pdv-view-pedidos .produto-card {
    position: relative;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid #e0a3af;
    border-radius: 11px;
    color: var(--ui-text);
    background: linear-gradient(145deg, #fff4f6, #ffe1e7);
    box-shadow: 0 3px 8px rgba(85, 31, 43, .08);
    text-align: left;
    cursor: pointer;
}

.pdv-view-pedidos .produto-card:hover,
.pdv-view-pedidos .produto-card:focus-visible {
    border-color: #cf6d82;
    background: linear-gradient(145deg, #fff, #ffd6df);
    box-shadow: 0 7px 16px rgba(85, 31, 43, .16);
    transform: translateY(-2px);
    outline: 0;
}

.pdv-view-pedidos .produto-card-nome {
    width: 100%;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.pdv-view-pedidos .produto-card-preco {
    color: #9f1239;
    font-size: 16px;
    font-weight: 900;
}

.pdv-view-pedidos .produto-card-codigo {
    padding: 2px 6px;
    border-radius: 20px;
    color: #667085;
    background: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 700;
}

.pdv-view-pedidos .produtos-vazio {
    margin: 20px 8px;
    padding: 24px;
    border: 1px dashed var(--ui-border);
    border-radius: 10px;
    color: #667085;
    background: #f8fafc;
    text-align: center;
}

.pdv-view-pedidos #opadd,
.pdv-view-pedidos #opitens {
    width: 100%;
    min-height: 72px;
    float: none;
    padding: 8px;
    border-top: 1px solid var(--ui-border);
    background: #f8fafc;
    box-sizing: border-box;
}

.pdv-view-pedidos #opadd {
    flex: 0 0 auto;
    max-height: 118px;
    overflow-y: auto;
    overflow-x: hidden;
}

.pdv-view-pedidos #opitens {
    min-height: 70px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
}

.pdv-view-pedidos #opitens .addCount {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
    float: none;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
}

.pdv-view-pedidos #opitens .qtd {
    width: 48px;
    height: 42px;
    flex: 0 0 48px;
    float: none;
    margin: 0;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    color: var(--ui-navy);
    background: #fff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.pdv-view-pedidos #opitens .inser-put {
    width: auto;
    min-width: 100px;
    height: 42px;
    flex: 1 1 auto;
    float: none;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    color: var(--ui-navy);
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
}

.pdv-view-pedidos #opitens #delCount {
    border: 1px solid #fecaca;
    background: #fff1f2;
}

.pdv-view-pedidos #opitens #confiCount {
    width: 112px !important;
    height: 46px !important;
    flex: 0 0 112px;
    float: none;
    margin: 0;
    padding: 0;
    border: 1px solid #86d6b9;
    border-radius: 9px;
    object-fit: fill;
    background: #ecfdf5;
}

.pdv-view-pedidos #opitens input[type="image"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(16,24,40,.14);
}

.pdv-view-pedidos #opadd .acoes-pedido-grid {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid form {
    min-width: 0;
    display: block;
    flex: 1 1 84px;
    margin: 0;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid form:has(> input[type="submit"][style*="display:none"]),
.pdv-view-pedidos #opadd .acoes-pedido-grid form:has(> input[type="submit"][style*="display: none"]) {
    display: none;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid > a,
.pdv-view-pedidos #opadd .acoes-pedido-grid > input,
.pdv-view-pedidos #opadd .acoes-pedido-grid form > input {
    width: auto;
    min-width: 76px;
    max-width: 130px;
    flex: 1 1 84px;
    height: 44px;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    box-sizing: border-box;
    color: #fff;
    font: 800 13px/1 Inter, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid > .confiCount {
    min-width: 104px;
    flex: 0 0 104px;
    padding: 0;
    overflow: hidden;
    border-color: #86d6b9;
    background: #ecfdf5;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid > .confiCount img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
}

.pdv-view-pedidos #opadd #imprimir {
    color: #344054;
    border-color: #cfd7e3;
    background: #fff;
}

.pdv-view-pedidos #opadd .confitransf {
    background: #1769e0;
}

.pdv-view-pedidos #opadd .confidetalhes {
    background: #6941c6;
}

.pdv-view-pedidos #opadd .confireceber {
    background: #0a9b68;
}

.pdv-view-pedidos #opadd #liberarmesa {
    background: #d97706;
}

.pdv-view-pedidos #opadd #cancelar {
    color: #b42318;
    border-color: #fda29b;
    background: #fff1f0;
}

.pdv-view-pedidos #opadd .acoes-pedido-grid > a:hover,
.pdv-view-pedidos #opadd .acoes-pedido-grid > input:hover,
.pdv-view-pedidos #opadd .acoes-pedido-grid form > input:hover {
    transform: translateY(-1px);
    filter: brightness(.97);
    box-shadow: 0 5px 12px rgba(16,24,40,.15);
}

.pdv-view-pedidos #toplistitensmesa {
    width: 100%;
    min-height: 48px;
    height: auto;
    flex: 0 0 auto;
    float: none;
    padding: 8px;
    color: #fff;
    background: var(--ui-navy);
    box-sizing: border-box;
}

.pdv-view-pedidos #listitensmesa {
    width: 100%;
    height: auto;
    flex: 1;
    float: none;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-pedidos #itensmesa {
    width: 100%;
    min-height: 38px;
    height: auto;
    float: none;
    margin-bottom: 5px;
    padding: 8px;
    border: 1px solid #e4e9f0;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-pedidos #listitensmesa #itensmesa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.pdv-view-pedidos #listitensmesa #itensmesa p {
    width: auto;
    float: none !important;
    margin: 0 !important;
    line-height: 1.35;
}

.pdv-view-pedidos #listitensmesa #itensmesa p:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #344054;
    font-weight: 700;
}

.pdv-view-pedidos #listitensmesa #itensmesa p:last-child {
    color: #475467;
    white-space: nowrap;
    text-align: right;
}

.pdv-view-pedidos #listitensmesa #itensmesa p:last-child font {
    color: var(--ui-navy);
    font-weight: 900 !important;
}

.pdv-view-pedidos #vertotalitens {
    width: 100%;
    height: auto;
    min-height: 34px;
    float: none;
    padding: 7px 10px;
    border-top: 1px solid var(--ui-border);
    background: #f8fafc;
    box-sizing: border-box;
}

.pdv-view-pedidos #corporodapeinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-top: 1px solid var(--ui-border);
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Detalhes da mesa. */
.pdv-view-detalhesdamesa #corpopdv {
    overflow: hidden !important;
    border-width: 1px !important;
    border-radius: 14px !important;
}

.pdv-view-detalhesdamesa #corpogeralinicio {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 78px minmax(0, 1fr) 62px 38px;
    background: #f5f7fb;
}

.pdv-view-detalhesdamesa #corpotopoinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    border: 0;
    background: var(--ui-navy);
}

.pdv-view-detalhesdamesa #corpomenutopo {
    width: auto;
    height: 100%;
    flex: 1;
    float: none;
    padding: 6px;
    box-sizing: border-box;
}

.pdv-view-detalhesdamesa #corpolinktopo {
    width: 70px;
    height: 64px;
    float: left;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
}

.pdv-view-detalhesdamesa #corpolinktopo input[type="image"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
}

.pdv-view-detalhesdamesa #corporelogio {
    width: 145px;
    height: 100%;
    flex: 0 0 145px;
    float: none;
}

.pdv-view-detalhesdamesa #divrelogio {
    height: 100%;
    padding: 7px 12px;
    border: 0;
    color: #d0d5dd;
    background: #101828;
    box-sizing: border-box;
    text-align: center;
}

.pdv-view-detalhesdamesa #divrelogio input {
    height: 32px;
    padding: 2px 0;
    color: #fff;
    background: transparent;
    font-size: 22px;
    text-align: center;
}

.pdv-view-detalhesdamesa #corpocentrodetamesa {
    width: auto;
    height: auto;
    min-height: 0;
    float: none;
    margin: 12px 12px 0;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16,24,40,.07);
}

.pdv-view-detalhesdamesa .detalhes-cabecalho {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: #fff;
    background: var(--ui-navy);
    box-sizing: border-box;
}

.pdv-view-detalhesdamesa .detalhes-cabecalho span {
    color: #9ec5ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pdv-view-detalhesdamesa .detalhes-cabecalho h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 21px;
}

.pdv-view-detalhesdamesa .detalhes-cabecalho small { color: #d0d5dd; font-size: 12px; }

.pdv-view-detalhesdamesa .detalhes-tabela-wrap {
    height: calc(100% - 68px);
    overflow: auto;
}

.pdv-view-detalhesdamesa .detalhes-tabela { width: 100%; border-collapse: collapse; }

.pdv-view-detalhesdamesa .detalhes-tabela tr:first-child {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #344054;
    background: #eef4fb;
}

.pdv-view-detalhesdamesa .detalhes-tabela td,
.pdv-view-detalhesdamesa .detalhes-tabela th {
    height: auto;
    padding: 10px 9px;
    border-bottom: 1px solid #e4e9f0;
    font-size: 12px;
}

.pdv-view-detalhesdamesa .detalhes-tabela tr:not(:first-child):hover { background: #f8fafc; }
.pdv-view-detalhesdamesa .detalhes-tabela tr.item-cancelado { background: #fff1f0; opacity: .78; }

.pdv-view-detalhesdamesa .cancelaritem {
    width: 24px !important;
    height: 24px !important;
    padding: 4px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff1f2;
}

.pdv-view-detalhesdamesa #corpomenurodadeta {
    width: auto;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 12px;
    padding: 9px 12px;
    border: 1px solid var(--ui-border);
    border-top: 0;
    border-radius: 0 0 11px 11px;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-detalhesdamesa .confifechadeta {
    padding: 11px 22px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: var(--ui-blue);
    text-decoration: none;
}

.pdv-view-detalhesdamesa #corporodapeinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-top: 1px solid var(--ui-border);
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Transferência de itens. */
.pdv-view-transfeitem #corpopdv {
    overflow: hidden !important;
    border-width: 1px !important;
    border-radius: 14px !important;
}

.pdv-view-transfeitem #corpogeralinicio {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 78px minmax(0, 1fr) 38px;
    background: #f5f7fb;
}

.pdv-view-transfeitem #corpotopoinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    border: 0;
    background: var(--ui-navy);
}

.pdv-view-transfeitem #corpomenutopo {
    width: auto;
    height: 100%;
    flex: 1;
    float: none;
    padding: 6px;
    box-sizing: border-box;
}

.pdv-view-transfeitem #corpolinktopo {
    width: 70px;
    height: 64px;
    float: left;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
}

.pdv-view-transfeitem #corpolinktopo input[type="image"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
}

.pdv-view-transfeitem #corporelogio {
    width: 145px;
    height: 100%;
    flex: 0 0 145px;
    float: none;
}

.pdv-view-transfeitem #divrelogio {
    height: 100%;
    padding: 7px 12px;
    border: 0;
    color: #d0d5dd;
    background: #101828;
    box-sizing: border-box;
    text-align: center;
}

.pdv-view-transfeitem #divrelogio input {
    height: 32px;
    padding: 2px 0;
    color: #fff;
    background: transparent;
    font-size: 22px;
    text-align: center;
}

.pdv-view-transfeitem #corpocentrotransfemesa {
    width: 100%;
    height: auto;
    min-height: 0;
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 0;
    background: #f5f7fb;
    box-sizing: border-box;
}

.pdv-view-transfeitem #corpotransitensmesa {
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    float: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16,24,40,.07);
}

.pdv-view-transfeitem #toplistitensmesa {
    width: 100%;
    min-height: 62px;
    height: auto;
    flex: 0 0 auto;
    float: none;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #fff;
    background: var(--ui-navy);
    box-sizing: border-box;
}

.pdv-view-transfeitem #toplistitensmesa form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 800;
}

.pdv-view-transfeitem .postmesa {
    width: 90px;
    height: 38px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #475467;
    color: #fff;
    background: #263548;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.pdv-view-transfeitem .inputpostmesa {
    width: auto;
    height: 38px;
    padding: 0 13px;
    color: #fff;
    border: 0;
    background: var(--ui-green);
}

.pdv-view-transfeitem #listitenstransfemesa {
    width: 100%;
    height: auto;
    flex: 1;
    float: none;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-transfeitem #corpocentrotransfemesa > #corpotransitensmesa:first-child #listitenstransfemesa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-auto-rows: minmax(46px, auto);
    align-content: start;
    gap: 7px;
}

.pdv-view-transfeitem #corpocentrotransfemesa > #corpotransitensmesa:last-child #listitenstransfemesa {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-auto-rows: minmax(46px, auto);
    align-content: start;
    gap: 7px;
}

.pdv-view-transfeitem #itensmesatranfd {
    width: 100%;
    min-height: 44px;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.pdv-view-transfeitem #itensmesatranfd p {
    width: auto;
    float: none !important;
    margin: 0 !important;
    line-height: 1.3;
}

.pdv-view-transfeitem #itensmesatranfd p:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.pdv-view-transfeitem #itensmesatranfd p:last-child {
    white-space: nowrap;
    text-align: right;
}

.pdv-view-transfeitem #botonmesatranfd {
    width: 42px;
    height: 44px;
    float: none;
    margin: 0;
}

.pdv-view-transfeitem #botonmesatranfd .transf {
    width: 38px !important;
    height: 38px !important;
    float: none;
    margin: 3px 0;
    padding: 5px;
    border: 1px solid #b2ccff;
    border-radius: 8px;
    background: #eff6ff;
    object-fit: contain;
}

.pdv-view-transfeitem #centrotransmesa {
    width: auto;
    height: 100%;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdv-view-transfeitem #centrocorpotransmesa { display: none; }

.pdv-view-transfeitem #centrobototransmesa {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    justify-content: center;
}

.pdv-view-transfeitem .confifechatransf {
    padding: 12px 18px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: var(--ui-danger);
    text-decoration: none;
}

.pdv-view-transfeitem #corporodapeinicio {
    width: 100%;
    height: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-top: 1px solid var(--ui-border);
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Avisos, confirmações e teclado numérico do PDV. */
.pdv-page .easy-numpad-frame {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(16, 24, 40, .62) !important;
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
}

.pdv-page .easy-numpad-container,
.pdv-page .easy-numpad-container2 {
    position: relative;
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    max-height: calc(100vh - 40px);
    padding: 0 !important;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 24px 65px rgba(16,24,40,.34) !important;
}

.pdv-page .easy-numpad-container2 {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
}

.pdv-page .easy-numpad-container fieldset,
.pdv-page .easy-numpad-container2 fieldset {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.pdv-page .easy-numpad-container legend,
.pdv-page .easy-numpad-container2 legend {
    width: 100% !important;
    margin: 0 !important;
    padding: 17px 22px !important;
    box-sizing: border-box;
    color: #fff !important;
    background: var(--ui-navy) !important;
    font: 800 20px/1.2 Inter, "Segoe UI", Arial, sans-serif !important;
}

.pdv-page .easy-numpad-output-container {
    width: 100%;
    padding: 24px !important;
    box-sizing: border-box;
    color: #344054;
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.pdv-page .easy-numpad-output-container > div {
    margin: 0 0 18px !important;
    color: #344054 !important;
    font: 600 16px/1.5 Inter, "Segoe UI", Arial, sans-serif !important;
}

.pdv-page .easy-numpad-output {
    min-height: 58px;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    color: var(--ui-navy);
    background: #f8fafc;
    font-size: 21px;
    font-weight: 800;
}

.pdv-page .easy-numpad-output-container form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.pdv-page .easy-numpad-output-container input[type="submit"],
.pdv-page .easy-numpad-output-container input[type="button"],
.pdv-page .easy-numpad-output-container button,
.pdv-page .easy-numpad-output-container a.fundomenubotaoc,
.pdv-page .easy-numpad-output-container a.bottoncanfecha {
    width: auto !important;
    min-width: 92px;
    height: 42px !important;
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    color: #fff !important;
    background: var(--ui-blue) !important;
    font: 800 14px/1 Inter, "Segoe UI", Arial, sans-serif !important;
    text-decoration: none;
    cursor: pointer;
}

.pdv-page .easy-numpad-output-container .bottoncanfecha,
.pdv-page .easy-numpad-output-container button.bottoncanfecha {
    color: #fff !important;
    border-color: #d92d20 !important;
    background: #d92d20 !important;
}

.pdv-page .easy-numpad-output-container .bottonconfecha {
    color: #fff !important;
    border-color: #0a9b68 !important;
    background: #0a9b68 !important;
}

.pdv-page .easy-numpad-output-container .bottonconfecha:hover {
    background: #087a54 !important;
}

.pdv-page .easy-numpad-output-container .bottoncanfecha:hover {
    background: #b42318 !important;
}

/* Prioridade final das ações: cores visíveis mesmo sem hover. */
.pdv-page #easy-numpad-frame .easy-numpad-output-container input.bottonconfecha,
.pdv-page #easy-numpad-frame .easy-numpad-output-container button.bottonconfecha,
.pdv-page #easy-numpad-frame .easy-numpad-output-container a.bottonconfecha {
    color: #fff !important;
    border-color: #0a9b68 !important;
    background-color: #0a9b68 !important;
    background-image: none !important;
}

.pdv-page #easy-numpad-frame .easy-numpad-output-container input.bottoncanfecha,
.pdv-page #easy-numpad-frame .easy-numpad-output-container button.bottoncanfecha,
.pdv-page #easy-numpad-frame .easy-numpad-output-container a.bottoncanfecha {
    color: #fff !important;
    border-color: #d92d20 !important;
    background-color: #d92d20 !important;
    background-image: none !important;
}

.pdv-page .easy-numpad-number-container { padding: 0 18px 18px; }

.pdv-page .easy-numpad-number-container > table {
    width: 100%;
    left: 0;
    margin-top: 10px;
    border-collapse: separate !important;
    border-spacing: 6px !important;
    table-layout: fixed;
    background: transparent;
}

.pdv-page .easy-numpad-number-container > table td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.pdv-page .easy-numpad-number-container > table a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    background: #344054;
    font-weight: 800;
}

.pdv-page .easy-numpad-number-container > table a.clear {
    background: #d97706;
}

.pdv-page .easy-numpad-number-container > table a.cancel {
    background: var(--ui-danger);
}

.pdv-page .easy-numpad-number-container > table a.del {
    background: #475467;
}

.pdv-page .easy-numpad-number-container > table a.tota {
    background: #6941c6;
}

.pdv-page .easy-numpad-number-container input,
.pdv-page .easy-numpad-number-container .done {
    border-radius: 8px;
    color: #fff;
    background: var(--ui-green);
    font-weight: 800;
}

.pdv-page a#easy-numpad-close {
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--ui-danger);
}

/* Busca e formulário de clientes. */
.pdv-page #innomecadreturn {
    width: 100%;
    height: 250px;
    float: none;
    clear: both;
    margin: 10px 0 14px;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    background: #f8fafc;
    box-sizing: border-box;
}

.pdv-page .clientes-lista { width: 100%; padding: 6px; box-sizing: border-box; }

.pdv-page .cliente-resultado {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
    margin-bottom: 6px;
}

.pdv-page .easy-numpad-output-container #innomecadreturn button.cliente-selecionar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 8px !important;
    color: #172033 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-align: left !important;
}

.pdv-page .easy-numpad-output-container #innomecadreturn button.cliente-selecionar:hover {
    border-color: #84adff !important;
    background: #f5f8ff !important;
}

.pdv-page .easy-numpad-output-container #innomecadreturn button.cliente-editar {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid #f5cf65 !important;
    border-radius: 8px !important;
    background: #fffbeb !important;
    box-shadow: none !important;
}

.pdv-page .cliente-selecionar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #d6e4ff;
    border-radius: 8px;
    color: var(--ui-navy);
    background: #fff;
    text-align: left;
}

.pdv-page .cliente-selecionar strong {
    width: 100%;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdv-page .cliente-selecionar small {
    width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #667085;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdv-page #innomecadreturn .cliente-selecionar small { display: none; }

.pdv-page .cliente-editar {
    width: 44px;
    height: 52px;
    padding: 8px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
}

.pdv-page .cliente-editar img { width: 100%; height: 100%; object-fit: contain; }
.pdv-page .clientes-vazio { padding: 24px; color: #667085; text-align: center; }

.pdv-page .cliente-modal {
    width: min(94vw, 720px) !important;
    max-width: 720px !important;
}

.pdv-page .cliente-modal .easy-numpad-output-container { padding: 18px 24px 22px !important; }

.pdv-page .cliente-modal #formulario-login form {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.pdv-page .cliente-modal .lbnomecad {
    width: 100%;
    float: none;
    display: block;
    margin: 0;
    color: #344054;
    font-size: 12px;
    text-align: left;
}

.pdv-page .cliente-modal .lbnomecad:nth-of-type(1),
.pdv-page .cliente-modal .lbnomecad:nth-of-type(5),
.pdv-page .cliente-modal .lbnomecad:nth-of-type(7),
.pdv-page .cliente-modal .lbnomecad:last-of-type {
    grid-column: 1 / -1;
}

.pdv-page .cliente-modal .lbnomecad span {
    float: none;
    display: block;
    margin-bottom: 5px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.pdv-page .cliente-modal .innomecad {
    width: 100%;
    height: 40px;
    float: none;
    padding: 0 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 13px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow:
        inset 0 1px 2px rgba(20, 33, 58, .07),
        0 2px 5px rgba(20, 33, 58, .06);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pdv-page .cliente-modal .innomecad:focus {
    background: #ffffff;
    box-shadow:
        inset 0 1px 2px rgba(20, 33, 58, .05),
        0 0 0 3px rgba(23, 105, 224, .12),
        0 4px 9px rgba(20, 33, 58, .08);
}

.pdv-page .cliente-modal #retornos,
.pdv-page .cliente-modal center,
.pdv-page .cliente-modal br {
    grid-column: 1 / -1;
}

.pdv-page .cliente-modal input.bottonconfecha,
.pdv-page .cliente-modal input.bottoncanfecha,
.pdv-page .cliente-modal button.bottonconfecha,
.pdv-page .cliente-modal button.bottoncanfecha {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.pdv-page .cliente-modal br { display: none; }

.pdv-page .confirmacao-whatsapp-acoes {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 18px 0 0 !important;
}

@media (max-width: 600px) {
    .pdv-page .cliente-modal #formulario-login form { grid-template-columns: 1fr; }
    .pdv-page .cliente-modal .lbnomecad { grid-column: 1 !important; }
}
