/* Cozinha: topo enxuto, selo de impressão, cores por tempo e cards de entrega em grade. */

/* 1. Barra fina */
.cozinha-layout-novo .cozinha-topo {
    display: flex !important; align-items: center !important; justify-content: space-between;
    flex-wrap: wrap; gap: 12px !important; padding: 10px clamp(12px, 2.5vw, 28px) !important;
}
.cozinha-layout-novo .cozinha-orientacao,
.cozinha-layout-novo .cozinha-modo-barra { display: none !important; }
.cozinha-layout-novo .cozinha-topo-esquerda { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.cozinha-layout-novo .marca-controller { margin: 0; }
.cozinha-layout-novo .marca-controller h1 { font-size: 1.35rem; margin: 0; }
.cozinha-layout-novo .marca-controller img { width: 34px; height: 34px; }
.cozinha-linha-resumo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cozinha-layout-novo .cozinha-resumo { margin: 0; font-size: 1rem; font-weight: 700; }
.cozinha-layout-novo .cozinha-acoes {
    display: flex !important; align-items: center; gap: 8px !important; flex-wrap: wrap; justify-content: flex-end;
}
.cozinha-layout-novo .cozinha-atualizacao { font-size: .85rem; opacity: .8; white-space: nowrap; }
.cozinha-layout-novo .cozinha-acoes > #cozinhaEstacaoImpressao { display: none !important; }
.cozinha-layout-novo .cozinha-acoes > #cozinhaStatusImpressao { flex: 1 0 100%; text-align: right; font-size: .85rem; }
.cozinha-status-oculto { display: none !important; }

.pagina-cozinha .cozinha-acoes .cozinha-icone-btn, .cozinha-icone-btn {
    width: 40px !important; min-width: 40px !important; height: 40px; min-height: 40px !important; padding: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto !important;
}
.cozinha-icone-btn .icone-sistema { width: 20px; height: 20px; margin: 0; }

/* Menu da engrenagem */
.cozinha-menu { position: relative; }
.cozinha-menu-painel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
    display: flex; flex-direction: column; gap: 6px; min-width: 220px; padding: 8px;
    background: var(--cor-superficie, #1b2438); border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.cozinha-menu-painel[hidden] { display: none; }
.cozinha-menu-painel > button { width: 100%; justify-content: flex-start; text-align: left; min-height: 40px; flex: none !important; }

/* 2. Seletor Lista/Colunas */
.cozinha-seletor { display: inline-flex; border: 1px solid rgba(127,140,170,.4); border-radius: 10px; padding: 2px; }
.cozinha-seletor[hidden] { display: none; }
.cozinha-seletor button {
    display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: inherit;
    padding: 5px 12px; border-radius: 10px; font: inherit; font-size: .85rem; cursor: pointer;
}
.cozinha-seletor button .icone-sistema { width: 16px; height: 16px; margin: 0; }
.cozinha-seletor button[aria-pressed="true"] { background: #2f6bff; color: #fff; }
.cozinha-seletor button:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 1px; }

/* 3. Selo de impressão */
.cozinha-selo-impressao {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px;
    background: #fff3cd; color: #6b4e00; border: 1px solid #f0c94a; border-radius: 10px; font-size: .85rem; font-weight: 600;
}
.cozinha-selo-impressao[hidden] { display: none; }
.cozinha-selo-impressao .icone-sistema { width: 18px; height: 18px; margin: 0; }
.cozinha-selo-btn { min-height: 30px !important; height: 30px; padding: 0 14px !important; border-radius: 10px !important; font-size: .85rem; }

/* 4. Estado vazio leve */
.cozinha-layout-novo .cozinha-vazio {
    grid-column: 1 / -1; margin: 8px 0; padding: 14px 16px !important; min-height: 0 !important;
    font-size: 1rem !important; text-align: center; opacity: .75;
    display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent !important;
}
.cozinha-layout-novo .cozinha-vazio .icone-sistema { width: 18px; height: 18px; color: #3fbf7f; }

/* 6. Cor por tempo de espera */
.cozinha-card[data-cor] { border-left-width: 6px !important; border-left-style: solid !important; }
.cozinha-card[data-cor="verde"] { border-left-color: #2fb36d !important; }
.cozinha-card[data-cor="amarelo"] { border-left-color: #f0b429 !important; }
.cozinha-card[data-cor="vermelho"] { border-left-color: #e5484d !important; }
.cozinha-card[data-cor="verde"] .cozinha-tempo b { color: #2fb36d; }
.cozinha-card[data-cor="amarelo"] .cozinha-tempo b { color: #f0b429; }
.cozinha-card[data-cor="vermelho"] .cozinha-tempo b { color: #e5484d; }
.cozinha-card[data-cor="vermelho"] { box-shadow: 0 0 0 1px rgba(229,72,77,.35); }
.cozinha-mesa .icone-sistema, .cozinha-tempo .icone-sistema { width: 1em; height: 1em; vertical-align: -.15em; }

/* 5. Prontos para entrega */
.cozinha-layout-novo .cozinha-entregas { padding: 8px clamp(12px, 2.5vw, 28px) 24px; }
.cozinha-layout-novo .cozinha-entregas h2 { font-size: 1.2rem; margin: 8px 0 2px; }
.cozinha-layout-novo .cozinha-entregas > p:not(#cozinhaProntosStatus) { font-size: .85rem; opacity: .7; margin: 0 0 8px; }
#cozinhaProntosGrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 8px 0 !important; }
.cozinha-entrega-card {
    display: flex; flex-direction: column; gap: 10px; padding: 14px 16px !important;
    border: 1px solid rgba(127,140,170,.35) !important; border-radius: 12px !important;
}
.entrega-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.entrega-topo h3 { margin: 0 !important; font-size: 1.15rem; }
.entrega-tempo { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; opacity: .8; white-space: nowrap; }
.entrega-tempo .icone-sistema { width: 14px; height: 14px; margin: 0; }
.entrega-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.entrega-itens li { margin: 0 !important; white-space: normal !important; }
.entrega-itens small { display: block; opacity: .7; padding-left: 1.6em; }
.entrega-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.entrega-selo { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.entrega-selo-pendente, .entrega-selo-reservada { background: #fff3cd; color: #6b4e00; }
.entrega-selo-solicitada, .entrega-selo-ok { background: #d9f7e6; color: #11633a; }
.entrega-selo-falha { background: #ffe0e0; color: #8a1c1c; }
.entrega-reimprimir { min-height: 32px !important; height: 32px; padding: 0 12px !important; font-size: .85rem; display: inline-flex !important; align-items: center; gap: 6px; }
.entrega-reimprimir .icone-sistema { width: 16px; height: 16px; margin: 0; }

@media (max-width: 700px) {
    .cozinha-layout-novo .cozinha-atualizacao { display: none; }
    .cozinha-selo-impressao span { display: none; }
}
