* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f4f9;
}

/* =========================
   MENU LATERAL
========================= */

.menu-latel {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
    min-height: 100vh;

    background-color: #ffffff;

    padding: 16px 5px;

    display: flex;
    flex-direction: column;

    height: 100vh;

    position: sticky;
    top: 0;
    left: 0;

    gap: 12px;

    box-shadow: 0 0 20px rgba(0,0,0,0.05);

    z-index: 100;

    overflow-y: auto;
}

.logodiv{
    width: 240px;

    display: flex;
    align-items: flex-start;

    border-bottom: 1px solid #ececec;

    padding-bottom: 10px;
}

.logo{
    width: 140px;

    margin-bottom: 15px;

    padding-left: 15px;
}

.menu-latel p{
    font-size: 1rem;

    color: #9a9a9a;

    margin: 15px 0 10px 10px;

    font-weight: 500;
}

.menu-latel div{
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.sidebar-user-box {
    margin-top: 0;

    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-user-box:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}


.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #ff355d;
    flex-shrink: 0;
    display: block;
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-user-text {
    display: flex;
    flex-direction: column;
    gap: 6px !important; 
    justify-content: center;
    flex: 1;
    min-width: 0;
}



.sidebar-user-text strong {
    font-size: 0.95rem;
    color: #333;
}

.sidebar-user-text small {
    font-size: 0.8rem;
    color: #777;
}

/* Ajustes para alinhar o sino ao lado do nome do usuário */
.sidebar-user-row .sidebar-user-box.sidebar-link {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
}

.notification-wrapper {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.menu-latel a {
    color: inherit;
    text-decoration: none;
}

.menu-latel button,
.menu-latel .sidebar-link,
.menu-latel a#btn-inicio {
    width: 100%;
    min-height: 48px;

    border: none;
    outline: none;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 14px;

    padding: 0 14px;

    border-radius: 14px;

    font-size: 16px;
    font-weight: 500;
    color: #222;

    cursor: pointer;

    transition: 0.3s ease;

    text-align: left;
}

.menu-latel button img,
.menu-latel .sidebar-link img,
.menu-latel a#btn-inicio img {
    width: 20px;

    opacity: 0.7;

    padding-left: 4px;
}

.menu-latel button:hover,
.menu-latel .sidebar-link:hover,
.menu-latel a#btn-inicio:hover {
    background-color: #ececec;
}

#btn-sair {
    margin-top: 0;

    background-color: #fff0f0;
}
.notification-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: 6px;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notification-panel {
    position: fixed;
    top: -6px;
    right: -2px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
    z-index: 9999;
    font-size: 0.62rem;
    overflow: hidden;
}

@media (max-width: 900px) {
    .notification-panel {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff8f9;
}

.notification-mark-read {
    border: none;
    background: transparent;
    color: #d9304a;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
}

.notification-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #f6e4e8;
    background: #fff;
    margin-bottom: 8px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    margin-top: 6px;
    flex-shrink: 0;
}

.notification-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.86rem;
    color: #222;
}

.notification-item p {
    color: #555;
    font-size: 0.75rem;
    line-height: 1.4;
}

.notification-empty {
    padding: 16px 12px;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

#btn-perfil {
    display: flex;
    flex-direction: row;
}
/* =========================
   CONTEÚDO PRINCIPAL
========================= */

.conteudo {
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* =========================
   SEÇÕES
========================= */

.caixa {
    background-color: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

    margin: 20px 30px;
    min-width: 0;
}

.caixa h2 {
    margin-bottom: 20px;

    border-bottom: 1px solid #ecf0f1;

    padding-bottom: 10px;
}

.ocultar {
    display: none !important;
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.perfil-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
    padding: 16px;
}

.perfil-card h3 {
    margin-bottom: 12px;
}

.perfil-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perfil-form input,
.perfil-token-box input {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.perfil-token-box {
    margin-top: 4px;
}

.perfil-file-input-wrapper {
    width: 100%;
    max-width: 100%;
}

.perfil-file-input-wrapper input[type="file"] {
    width: 100%;
    min-height: 52px;
    padding: 12px;
}

.perfil-foto-preview-box {
    margin-top: 10px;
    width: 100%;
    min-height: 120px;
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.perfil-foto-preview {
    width: 140px;
    max-width: 70%;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

.perfil-copy-btn {
    margin-top: 10px;
    width: fit-content;
}

.perfil-token-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.perfil-copy-feedback {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #1f7a43;
}

.perfil-token-box small {
    display: block;
    margin-top: 8px;
    color: #666;
}

.perfil-flash {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.perfil-flash-success {
    background: #e8f6ed;
    color: #1f7a43;
}

.perfil-flash-error {
    background: #fdecec;
    color: #8d1f1f;
}

/* =========================
   CARDS
========================= */

.cards-container{
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 25px;
}

.card{
    flex: 1;

    min-width: 220px;

    background: linear-gradient(135deg, #ff355d, #ff5f7f);

    color: white;

    padding: 25px;

    border-radius: 18px;

    border: none;

    box-shadow: 0 6px 15px rgba(255, 53, 93, 0.15);

    transition: 0.3s ease;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 53, 93, 0.2);
}

.caixa-custo{
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

.mensagem-sucesso{
    background-color: #ff8800;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.grupo-form{
    margin-bottom: 25px;
}

.grupo-form label{
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.caixa-custo{
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    color: #444;
    box-sizing: border-box;
    transition: 0.2s ease;
}

#sliderPreco{
    width: 100%;
    margin-top: 10px;
}

.info-lucro{
    margin-top: 10px;
    font-size: 18px;
}

/* Centralizar footer das páginas principais (início/index e similares) */
.conteudo footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    text-align: center;
}

#valorLucro{
    color: #27ae60;
    font-size: 30px;
    font-weight: bold;
}

.lucro-reais{
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

.resultado-preco{
    margin-top: 30px;
    padding: 25px;
    border-radius: 14px;
    background: #f4fdf7;
    border: 4px solid #27ae60;
    text-align: center;
    transition: 0.2s ease;
}

.resultado-preco span{
    font-size: 16px;
    color: #666;
}

.resultado-preco h2{
    color: #27ae60;
    font-size: 36px;
    margin-top: 10px;
}

.btn-salvar{
    width: 100%;
    margin-top: 25px;
}

.card:hover{
    transform: translateY(-5px);
}

.card h3{
    margin-bottom: 10px;

    font-size: 20px;
}

.card p{
    font-size: 16px;
}

/* =========================
   FORMULÁRIOS
========================= */

.caixa label {
    font-weight: bold;

    color: #34495e;

    margin-top: 15px;

    display: block;
}

.caixa input[type="text"],
.caixa input[type="number"],
.caixa select {
    width: 50%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-size: 1em;

    margin-top: 5px;

    transition: 0.3s ease;
}

.caixa input[type="file"] {
    width: 50%;
    
    padding: 10px;
    
    border: 1px solid #ccc;
    
    border-radius: 8px;
    
    font-size: 0.95em;
    
    margin-top: 5px;
    
    background-color: #fff;
}

.file-input-wrapper {
    width: 100%;
    max-width: 480px;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

.file-info {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #444;
}

.file-info .file-name {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.file-info .file-time {
    display: inline-block;
    margin-left: 10px;
    color: #777;
    font-size: 0.8rem;
}

.caixa input:focus,
.caixa select:focus{
    outline: none;

    border-color: #ff355d;

    box-shadow: 0 0 0 3px rgba(255,53,93,0.1);
}

.container-acoes {
    width: 100%;

    display: flex;

    justify-content: flex-start;

    padding-left: 0;

    margin-top: 20px;
}

.btn-salvar {
    background: linear-gradient(135deg, #ff355d, #ff5f7f);

    color: white;

    padding: 12px 25px;

    border: none;

    border-radius: 10px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-salvar:hover{
    transform: translateY(-2px);
}
.resultado-preco{
    margin-top: 25px;
    padding: 25px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #ffffff
    );

    font-size: 35px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(241, 240, 240, 0.25);

    color: rgb(255, 255, 255, 0.08);

    transition: 0.3s ease;
}

.resultado-preco:hover{
    transform: translateY(-3px);
}

.resultado-preco p{
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 15px 0;

    padding-bottom: 10px;

    border-bottom: 1px solid rgb(123, 123, 123);

    color: rgba(44,44,44);

    font-size: 20px;
    font-weight: 500;
}

.resultado-preco p:last-child{
    border-bottom: none;
    margin-top: 25px;
    padding-top: 10px;

    font-size: 22px;
    font-weight: bold;

}

.resultado-preco span{
    color: rgb(58, 58, 58);
    font-weight: bold;
}

#lucroPreview{
    color: #38d67a;
}

#precoFinalPreview{
    font-size: 32px;
}

#btn-sair {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    background: linear-gradient(135deg, #ff355d, #ff5f7f);
    color: white;

    text-decoration: none;
    border-radius: 8px;

    width: 14.5rem;
}

#btn-sair img {
    width: 18px;
    height: 18px;
}

.flash-success{
    background-color: #27ae60;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.flash-erro{
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}
/* =========================
   TABELA
========================= */

.tabela-container {
    margin-top: 20px;

    overflow-x: auto;
}

.unidade_exibicao{
    margin-top: 8px;
    font-weight: bold;
    color: green;
}

.tabela-estoque {
    width: 100%;

    border-collapse: collapse;

    background-color: white;

    border-radius: 8px;

    overflow: hidden;

    margin-top: 10px;
}

.tabela-estoque th,
.tabela-estoque td {
    padding: 14px 15px;

    text-align: left;

    border-bottom: 1px solid #ddd;
}

.tabela-estoque th {
    background-color: #f4f4f4;

    color: #333;

    font-weight: bold;
}

.tabela-estoque tr:hover {
    background-color: #f9f9f9;
}

.estoque-foto {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.sem-foto-mini {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #888;
    font-size: 12px;
    border-radius: 8px;
}

.btn-editar,
.btn-excluir {
    padding: 7px 12px;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;

    margin-right: 5px;

    transition: 0.3s ease;
}

.btn-editar{
    background: #ececec;
}

.btn-excluir{
    background: #fff0f0;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 20px;

    color: #7f8c8d;

    border-top: 1px solid #ecf0f1;

    margin-top: auto;
}

/* =========================
   FORM GROUP
========================= */

.form-group {
    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee;
}

.radio-group {
    margin: 10px 0;
    accent-color: #ff355d;
}

.radio-group input {
    margin-right: 5px;

    margin-left: 15px;
}

#taxa_slider{
    accent-color: #ff355d;
}

.campo-input{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.campo-input label{
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.input-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 15px;

    margin-top: 10px;
}

#taxa_slider{
    accent-color: #ff355d;
}


.sub-caixa {
    background: #f9f9f9;

    padding: 15px;

    border-radius: 8px;

    margin-top: 10px;
}

.texto-ajuda {
    margin: 6px 0 10px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.clock-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    border: 2px solid #ffb7c7;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 10px 20px rgba(255, 53, 93, 0.10);
    min-height: 62px;
}

.clock-icon {
    font-size: 1.5rem;
    color: #ff355d;
    line-height: 1;
}

.input-clock {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: #222;
    font-weight: 700;
    letter-spacing: 0.08em;
    outline: none;
    min-width: 0;
    padding: 0;
    height: 100%;
}

.input-clock::placeholder {
    color: #b7b7b7;
    letter-spacing: 0.04em;
}

.input-clock::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(25%) sepia(80%) saturate(3000%) hue-rotate(320deg) brightness(95%) contrast(100%);
    transform: scale(1.2);
}

.maquininha-box,
.comissao-box,
.lucro-box {
    background: linear-gradient(135deg, #fffaf5 0%, #fff1f4 100%);
    border: 1px solid #ffd8e0;
}

.taxa-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.taxa-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
}

.input-taxa {
    flex: 1;
    accent-color: #ff355d;
    height: 6px;
}

.valor-taxa-box {
    min-width: 86px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #ffd2dd;
    text-align: center;
    font-weight: 700;
    color: #ff355d;
    box-shadow: 0 6px 18px rgba(255, 53, 93, 0.08);
}

.slider {
    width: 100%;

    margin: 15px 0;

    cursor: pointer;
}

/* =========================
   HOME
========================= */

.home-hero{
    background: linear-gradient(135deg, #ff355d, #ff5f7f);

    color: white;

    padding: 50px;

    border-radius: 24px;

    margin-bottom: 30px;

    box-shadow: 0 10px 25px rgba(255, 53, 93, 0.2);
}

.home-hero h1{
    font-size: 42px;

    margin-bottom: 15px;

    font-weight: bold;
}

.home-hero p{
    font-size: 18px;

    max-width: 700px;

    line-height: 1.7;
}

/* =========================
   HOME BOXES
========================= */

.home-box{
    background: white;

    padding: 30px;

    border-radius: 20px;

    margin-top: 30px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.home-box h2{
    margin-bottom: 25px;

    color: #222;
}

/* =========================
   PASSOS
========================= */

.passos-container{
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

.passo{
    background: #f8f9fc;

    padding: 25px;

    border-radius: 18px;

    transition: 0.3s ease;
}

.passo:hover{
    transform: translateY(-5px);
}

/* =========================
   FORMULÁRIO DE CATEGORIAS (AJUSTES)
========================= */

.campo-input-categoria {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.campo-input-categoria label {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 8px;
}

.campo-input-categoria input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: 0.3s ease;
}

.campo-input-categoria input:focus {
    outline: none;
    border-color: #ff355d;
    box-shadow: 0 0 0 3px rgba(255, 53, 93, 0.1);
}

.ajuda-input {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 500;
}

/* =========================
   BENEFÍCIOS
========================= */

.beneficios-container{
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.beneficio{
    background: #f8f9fc;

    padding: 25px;

    border-radius: 18px;

    transition: 0.3s ease;
}

.beneficio:hover{
    transform: translateY(-5px);
}

/* =========================
   DICA
========================= */

.dica-box{
    background: #fff7db;

    border-left: 6px solid #f1c40f;

    padding: 25px;

    border-radius: 14px;

    margin-top: 30px;
}

.dica-box h2{
    margin-bottom: 10px;
}

.grid-produtos-finais {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 18px;
}

.card-produto-final {
    border: 1px solid #f0d7dd;

    border-radius: 14px;

    overflow: hidden;

    background: #fff;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.capa-produto-final {
    width: 100%;

    height: 180px;

    background: #f7f7f7;
}

.capa-produto-final img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.miniaturas-galeria {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 10px;

    border-top: 1px solid #f3e7ea;

    border-bottom: 1px solid #f3e7ea;
}

.miniatura-item {
    display: flex;

    flex-direction: column;

    gap: 6px;

    align-items: center;
}

.miniatura-foto {
    border: 2px solid transparent;

    border-radius: 8px;

    padding: 0;

    cursor: pointer;

    background: transparent;
}

.miniatura-foto.ativa {
    border-color: #d91f4f;
}

.miniatura-foto.capa {
    border-color: #2a9d4b;
}

.miniatura-foto img {
    width: 64px;

    height: 64px;

    object-fit: cover;

    border-radius: 6px;
}

.btn-remover-foto {
    border: none;

    border-radius: 8px;

    padding: 4px 8px;

    background: #ffe5ec;

    color: #9f1336;

    font-size: 0.75rem;

    cursor: pointer;
}

.btn-capa-foto {
    border: none;

    border-radius: 8px;

    padding: 4px 8px;

    background: #e8f7ed;

    color: #236f3e;

    font-size: 0.75rem;

    cursor: pointer;
}

.badge-capa {
    font-size: 0.72rem;

    font-weight: 700;

    color: #236f3e;

    background: #e8f7ed;

    padding: 3px 8px;

    border-radius: 999px;
}

.form-galeria {
    margin: 12px 0;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-galeria .btn-salvar {
    width: auto;

    margin-top: 0;
}

.sem-foto {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #888;

    font-weight: 600;
}

.corpo-produto-final {
    padding: 14px;
}

.corpo-produto-final h3 {
    margin-bottom: 8px;
}

.corpo-produto-final p {
    margin-bottom: 10px;

    color: #666;
}

.corpo-produto-final details summary {
    cursor: pointer;

    color: #d91f4f;

    font-weight: 600;
}

.corpo-produto-final ul {
    margin-top: 8px;

    padding-left: 18px;
}




/* #Relatorio{
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
}

#Relatorio > div{
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

#graficoVendas{
    width: 100%;
} */

.resumo-financeiro-6m {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.resumo-relatorio-mensal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.resumo-relatorio-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fff8fa 0%, #ffffff 100%);
}

.resumo-relatorio-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.resumo-relatorio-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resumo-relatorio-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.resumo-relatorio-card table {
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.resumo-relatorio-card th,
.resumo-relatorio-card td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.resumo-relatorio-card th {
    text-align: left;
    font-weight: 700;
    color: #444;
    border-bottom: 1px solid #ddd;
}

.resumo-relatorio-card td:nth-child(2),
.resumo-relatorio-card th:nth-child(2) {
    text-align: center;
}

.resumo-relatorio-card td:nth-child(3),
.resumo-relatorio-card th:nth-child(3) {
    text-align: right;
}

.resumo-mes-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
}

.resumo-mes-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.resumo-mes-card ul {
    list-style: none;
    margin: 6px 0 8px;
    padding: 0;
}

.resumo-mes-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
    margin: 3px 0;
}

.resumo-totais {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e2e2;
    font-weight: 700;
}

.modal-categoria {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-categoria-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.modal-categoria-card {
    position: relative;
    width: min(92vw, 460px);
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-categoria-card h3 {
    margin-bottom: 8px;
}

.modal-categoria-card p {
    margin-bottom: 10px;
    color: #555;
}

.modal-categoria-card input[type="text"] {
    width: 100%;
}

.erro-categoria-modal {
    margin-top: 8px;
    color: #8d1f1f;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-categoria-acoes {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-modal-secundario {
    background: #ececec;
    color: #333;
}

.pesquisa-filtro{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filtro{
    border: black solid 1px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.filtro h1{
    font-size: 1rem;
    color: #ff355d;
}

.filtros-box{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.estoque-head{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contato-dropdown{
    position: absolute;
    top: 40px;
    right: 0;
    margin-top:50px;
    margin-right: 200px;

    width: 280px;
    padding: 20px;

    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);

    display: none;
    flex-direction: column;
    gap: 12px;

    z-index: 1000;
}

.contato-dropdown h3{
    margin: 0;
    color: #000000;
}

.contato-dropdown p{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.contato-dropdown a{
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    padding: 8px 0;
    border-top: 1px solid #e5e5e5;
}

.contato-dropdown a:hover{
    color: #ff355d;
}

.contato-dropdown.ativo{
    display: flex;
}

/* Limita a coluna de quantidade */
#tabela-caixa th.quantidade,
#tabela-caixa td:has(.frente-td) {
    width: 160px;
}

#tabela-caixa .qty-input,
#tabela-caixa .discount-input {
    width: 100%;
    min-width: 70px;
}

/* Faz o bloco encolher para o tamanho do conteúdo, em vez de virar um bloco gigante */
.frente-td {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.frente-td .qty-input {
    width: 50px;
    text-align: center;
}

.frente-td button {
    width: 28px;
    height: 28px;
}


#perguntas_forno_receita{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#perguntas_forno_receita input{
    width: 250px;
    padding: 5px;
    font-size: 1.2rem;
}

.logo-cell{
    display: none;
}
