:root {
    --fonte-padrao: 12px;
    --altura-topo: 60px;
    --cor-cinza-escuro: #8a8888;
    --cor-cinza-claro: #e3e3e3;
}

.barra-azul {
    width: 100%;
    background: linear-gradient(to bottom, #00c6ff, #0072ff);
    padding: 8px 20px;
    /* 🔽 altura e largura internas reduzidas */
    max-height: 45px;
    /* 🔽 faixa azul mais estreita */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* Ajustes visuais internos */
.barra-azul h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.barra-azul .navbar-brand img {
    height: 32px;
    margin-right: 8px;
}

.barra-azul .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.titulo-central {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    margin: 0;
    color: white;
    white-space: nowrap;
}

.form-label {
    font-weight: bold;
}

/**Barra de menu lateral***/
/* Sidebar styles */

#sidebar {
    width: 250px;
    min-height: 100vh;
    transition: width 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background-color: #1d9df2;
    /* azul similar à navbar */
    color: #fff;
    transition: background 0.3s, width 0.3s;

}

#sidebar .nav-link {
    color: #fff;
}

#sidebar.collapsed {
    width: 70px;
    background-color: #1d9df2;
    /* mantém azul quando recolhida */
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* hover suave */
}

#sidebar.collapsed {
    width: 50px;
}

#sidebar .nav-link span {
    transition: opacity 0.3s, margin 0.3s;
    opacity: 1;
    margin-left: 10px;
}

#sidebar.collapsed .nav-link span {
    opacity: 0;
    margin-left: 0;
    width: 0;
    display: inline-block;
}

#sidebar .sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

#sidebar ul.menu-lateral {
    position: relative;
    top: 40px;
}

#sidebar.collapsed .nav-link span {
    display: none;
    /* esconde o texto quando recolhido */
    position: absolute;
    left: 46px;
    background: #40a6f2;
    padding: 9px 14px;
    border-radius: 4px;
    white-space: nowrap;
    color: #fff;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s, margin 0.3s;
    opacity: 1;
    width: 165px;
    height: 45px;
    margin-top: -7px;
}

#sidebar.collapsed .nav-link:hover span {
    display: inline-block;
    opacity: 1;
}

#main-navbar {
    z-index: 1050;
}


/* Mobile (até 768px) */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 35px;
        /* abaixo do navbar */
        left: -250px;
        /* escondida fora da tela */
        width: 250px;
        height: calc(100vh - 60px);
        transition: left 0.3s;
        z-index: 1050;
    }

    #sidebar ul.menu-lateral {
        position: relative;
        top: 5px;
    }


    #sidebar.active {
        left: 0;
        /* aparece quando tiver a classe active */
    }

    #main-navbar .titulo-central {
        font-size: 1rem;
        max-width: 60%;
        /* limita largura para não quebrar */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #main-navbar .btn,
    #main-navbar .text-light {
        font-size: 0.9rem;
    }

    .nome-funcionario {
        display: none;
    }

    .content {
        margin-left: 0;
        /* ocupa 100% da tela */
    }
}

#main-navbar .titulo-central {
    font-size: 1.2rem;
    /* menor no mobile */
}

.clientes-table {
    white-space: nowrap;
}

/**pagina de pedido**/
.pedido {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    padding: 20px;
}

.pedido .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}


.pedido .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 10px;
    margin-bottom: 10px;
}

.pedido .info-row p {
    margin: 0;
}

.pedido .info-row strong {
    color: #555;
}

.pedido .valor-total {
    color: green;
    font-weight: bold;
    padding: 0 10px;
}

.pedido .scroll-box {
    max-height: 300px;
    overflow-y: auto;
}

.pedido table {
    width: 100%;
    border-collapse: collapse;
}

.pedido th,
.pedido td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.pedido th {
    background-color: #f0f0f0;
    color: #333;
    position: sticky;
    top: 0;
}

.pedido td {
    background-color: #fff;
}

.pedido .no-itens {
    font-style: italic;
    color: #777;
}

.pedido .btn-voltar {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

.pedido .btn-voltar:hover {
    background-color: #5a6268;
}

.btn-default {
    background-color: #f4f4f4 !important;
    color: #444 !important;
    border-color: #ddd !important;
    font-weight: 500 !important
}


.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.hover {
    background-color: #e7e7e7 !important
}


/***producao***/

.producao {
    font-size: var(--fonte-padrao);
}


.producao th,
.producao td {
    word-break: break-word;
    text-align: center;
}


.producao .scroll-box {
    overflow-x: auto;
}

/***painel de pedidos***/

.faixa-label {
    font-weight: bold;
    background-color: #f2f2f2;
    font-size: 0.75em;

}

.linha-azul {
    background-color: #e0f0ff;
}

.linha-amarela {
    background-color: #fff8dc;
}

.linha-vermelha {
    background-color: #f8d7da;
}

.linha-marrom {
    background-color: #8b4513;
}

.linha-cinza {
    background-color: #a9a9a9;
}


.pedido {
    margin-bottom: 4px;
    padding: 6px;
    border-radius: 4px;
    font-weight: bold;
}

.linha-verde {
    background-color: #16c22d;
}


.linha-azul {
    background-color: #28bee4;
}

.linha-amarela {
    background-color: #f7e330;
}

.linha-vermelha {
    background-color: #e71123;
}

.linha-marrom {
    background-color: #b85c1b;
}

.linha-cinza {
    background-color: #a9a9a9;
}

.painel-pedidos {
    font-family: Arial, sans-serif;
}

.tbl-painel-pedido tr>th {
    background-color: var(--cor-cinza-escuro);
}

.tbl-painel-pedido tr>td:first-child {
    background-color: var(--cor-cinza-claro);
}

/*** alerta de notificação ***/


#alerta-notificacao {
    animation: piscarAlerta 1s infinite;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 10px;
    transition: opacity 0.5s ease-out;


    display: inline-block !important;
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    animation: piscarAlerta 1s infinite;
    transition: opacity 0.5s ease-out;

}

@keyframes piscarAlerta {
    0% {
        background-color: #ffc107;
    }

    50% {
        background-color: #ffecb3;
    }

    100% {
        background-color: #ffc107;
    }
}

.flleft div {
    display: inline-block;
    margin-right: 10px;
}

  .tooltip-inner {
    background-color: #0d6efd; /* azul Bootstrap */
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 250px;
    text-align: center;
  }

  .tooltip.bs-tooltip-top .tooltip-arrow::before,
  .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-top-color: #0d6efd !important;
    border-bottom-color: #0d6efd !important;
  }

  .tooltip.bs-tooltip-start .tooltip-arrow::before,
  .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-left-color: #0d6efd !important;
    border-right-color: #0d6efd !important;
  }

.tbl-nowrap {
    white-space: nowrap;
}