/* =========================================
   CORREÇÃO GLOBAL RESPONSIVA
========================================= */

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* CONTAINER */

.producao-container {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;

    padding:
        24px
        clamp(16px, 2vw, 32px);
}

/* GRID PRINCIPAL */

.op-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 1fr);

    gap: 20px;
}

/* GRID DOS CARDS */

.op-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;
}

/* FILTERS */

.filters-container {
    width: 100%;
    overflow: hidden;
}

/* SELECT */

.filter-box {
    flex: 1;
    min-width: 180px;
}

.filter-box select {
    width: 100%;
    min-width: unset;
}

/* SEARCH */

.search-box {
    width: 100%;
    max-width: 320px;
}

/* MOBILE / ZOOM */

@media (max-width: 1200px) {

    .op-content-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

}



/* ============================================================== BASE DA PÁGINA =========================================*/

.producao-container {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;

    padding-inline: clamp(20px, 2vw, 40px);
    padding-block: 24px;
}

.op-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}


@media (max-width: 900px) {
    .op-content-grid {
        grid-template-columns: 1fr;
    }
}

.header-actions {
    margin-bottom: 25px;
}



/* ============================================================== HEADER  =========================================*/

.header-left {
    display: flex;
    flex-direction: column;
}

.op-id {
    font-size: 0.9rem;
    color: var(--cor-destaque);
    margin-top: 2px;
}


/* ============================================================== SEARCH BOX  =========================================*/
/* CONTAINER */
.search-box {
    position: relative;
    display: flex;
    align-items: center;

    width: 320px;
}

/* ÍCONE */
.search-box svg {
    position: absolute;
    left: 14px;

    width: 18px;
    height: 18px;

    color: #777;

    transition: all 0.2s ease;
}

/* INPUT */
.search-box input {
    width: 100%;

    padding: 12px 16px 12px 42px;

    border-radius: 12px;

    background: linear-gradient(145deg, #141414, #0d0d0d);
    border: 1px solid rgba(255,255,255,0.06);

    color: #fff;
    font-size: 0.9rem;

    box-shadow:
        inset 0 0 8px rgba(0,0,0,0.6);

    transition: all 0.25s ease;
}

/* PLACEHOLDER */
.search-box input::placeholder {
    color: #666;
}

/* HOVER (leve, elegante) */
.search-box:hover input {
    border-color: rgba(255,255,255,0.12);
}

/* FOCUS (AQUI FICA PREMIUM) */
.search-box input:focus {
    outline: none;

    border-color: var(--cor-destaque);

    box-shadow:
        0 0 0 2px rgba(255, 0, 0, 0.15),
        inset 0 0 10px rgba(0,0,0,0.7);
}

/* ÍCONE REAGE AO FOCO */
.search-box input:focus + svg,
.search-box:focus-within svg {
    color: var(--cor-destaque);
    transform: scale(1.05);
}

/* ANIMAÇÃO SUTIL */
.search-box input:focus {
    transform: translateY(-1px);
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .search-box {
        width: 100%;
    }
}


/* =========================================================
   FILTERS CONTAINER
========================================================= */

.filters-container {
    display: flex;
    align-items: center;
    gap: 18px;

    flex-wrap: wrap;

    padding: 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(22,22,22,0.95),
            rgba(10,10,10,0.98)
        );

    border: 1px solid rgba(255,255,255,0.04);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.02);

    backdrop-filter: blur(12px);
}

/* =========================================================
   FILTER BOX
========================================================= */

.filter-box {
    position: relative;
}

/* =========================================================
   SELECT PREMIUM
========================================================= */

.filter-box select {
    min-width: 210px;
    height: 50px;

    padding:
        0 46px
        0 16px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #171717,
            #0e0e0e
        );

    border: 1px solid rgba(255,255,255,0.06);

    color: #ffffff;

    font-size: 0.92rem;
    font-weight: 500;

    letter-spacing: 0.2px;

    outline: none;
    cursor: pointer;

    appearance: none;

    transition:
        border-color 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    /* SETA CUSTOM */

    background-image:
        linear-gradient(
            145deg,
            transparent,
            transparent
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ff4d4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position:
        right 16px center;
}

/* =========================================================
   HOVER
========================================================= */

.filter-box select:hover {
    border-color: rgba(255, 77, 77, 0.25);

    background:
        linear-gradient(
            145deg,
            #1b1b1b,
            #101010
        );

    box-shadow:
        0 8px 22px rgba(0,0,0,0.28);
}

/* =========================================================
   FOCUS
========================================================= */

.filter-box select:focus {
    border-color: rgba(150, 6, 6, 0.815);

    box-shadow:
        0 0 0 4px rgba(255, 77, 77, 0.10),
        0 12px 28px rgba(0,0,0,0.35);

    transform: translateY(-1px);
}

/* =========================================================
   OPTIONS
========================================================= */

.filter-box select option {
    background: #121212;
    color: #fff;
}

/* =========================================================
   MICRO DETAIL
========================================================= */

.filter-box::after {
    content: "";

    position: absolute;

    inset: 1px;

    border-radius: 13px;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.03),
            transparent
        );

    opacity: 0.8;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .filters-container {
        flex-direction: column;
        align-items: stretch;

        padding: 16px;
    }

    .filter-box select {
        width: 100%;
        min-width: 100%;
    }
}



/* ============================================================== CARDS DE KPI  =========================================*/

/* ================= KPI GRID ================= */
.production-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

/* ================= CARD ================= */
.stat-card {
    position: relative;

    padding: 22px 20px;
    border-radius: 16px;

    background: linear-gradient(145deg, #141414, #0b0b0b);

    border: 1px solid rgba(160, 160, 160, 0.12);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 0, 0, 0.04);

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: all 0.25s ease;
    overflow: hidden;
}

/* LINHA DE DESTAQUE (topo) */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(90deg, #ff2a2a, #000000);
    opacity: 0.6;
}

/* GLOW SUTIL */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: radial-gradient(circle at top right, rgba(5, 0, 0, 0.253).08);
}

/* HOVER (leve, elegante) */
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.25);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 0, 0, 0.15);
}

/* ================= LABEL ================= */
.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;

    color: #666;

    margin-bottom: 6px;
}

/* ================= VALUE ================= */
.stat-value {
    font-size: 1.9rem;
    font-weight: 700;

    background: linear-gradient(135deg, #ffffff, #ff2a2a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    letter-spacing: 0.5px;
}

/* ============================================================== GRID DE OPs  =========================================*/

.op-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(340px, 1fr));

    gap: 24px;
}



/* ============================================================== CARD DE OP =========================================*/

.op-card {
    background: linear-gradient(145deg, #181818, #0d0d0d);
    border-radius: 16px;
    overflow: hidden;
    position: relative;

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.7);

    transition: all 0.25s ease;
}

.op-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.9),
        0 0 20px rgba(255, 0, 0, 0.15);
}





.op-cost-badge {

    padding: 6px 10px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    gap: 6px;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(167, 2, 2, 0.25);

    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

    transition: all 0.25s ease;
    z-index: 10;
}

/* hover sutil (efeito premium, não exagerado) */
.op-cost-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(167, 2, 2, 0.5);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}




/* =========================================
   HEADER ORGANIZADO
========================================= */

.op-card-header {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-bottom: 24px;
}

/* TOPO */

.op-header-main {
    display: flex;
    flex-direction: column;
}

/* META */

.op-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}


/* =========================================
   STATUS BADGE PREMIUM
========================================= */

.op-status-badge {

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(20, 20, 20, 0.78) 0%,
            rgba(10, 10, 10, 0.68) 100%
        );

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.03);

    color: #ffffff;

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    z-index: 20;

    transition:
        transform 0.22s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* HOVER SUAVE */

.op-status-badge:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.02);
}



@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 rgba(255,77,77,0.2);
    }

    50% {
        box-shadow: 0 0 14px rgba(255,77,77,0.35);
    }

    100% {
        box-shadow: 0 0 0 rgba(255,77,77,0.2);
    }
}

.status-producao {
    animation: pulseRed 1.7s infinite;
}


/* =========================================
   PONTO INDICADOR
========================================= */

.op-status-badge::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: currentColor;

    box-shadow:
        0 0 10px currentColor,
        0 0 18px currentColor;

    flex-shrink: 0;
}

/* =========================================
   STATUS: PRODUÇÃO
========================================= */

.status-producao {
    color: #ff4d4d;

    border-color: rgba(255, 77, 77, 0.22);

    background:
        linear-gradient(
            180deg,
            rgba(255, 77, 77, 0.12) 0%,
            rgba(20, 20, 20, 0.82) 100%
        );
}

.status-producao:hover {
    border-color: rgba(255, 77, 77, 0.4);

    box-shadow:
        0 10px 22px rgba(255, 77, 77, 0.12),
        0 0 0 1px rgba(255,255,255,0.02);
}

/* =========================================
   STATUS: FINALIZADO
========================================= */

.status-finalizado {
    color: #36ff9b;

    border-color: rgba(54, 255, 155, 0.22);

    background:
        linear-gradient(
            180deg,
            rgba(54, 255, 155, 0.12) 0%,
            rgba(20, 20, 20, 0.82) 100%
        );
}

.status-finalizado:hover {
    border-color: rgba(54, 255, 155, 0.4);

    box-shadow:
        0 10px 22px rgba(54, 255, 155, 0.12),
        0 0 0 1px rgba(255,255,255,0.02);
}





/* ============================================================== HEADER DO CARD =========================================*/

.op-card-header {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.op-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}




/* =========================================================
   STATUS TEXT
========================================================= */

.status-producao-text,
.status-finalizado-text {
    font-weight: 700;
    letter-spacing: 0.3px;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* =========================================================
   PRODUÇÃO
========================================================= */

.status-producao-text {
    color: #ff5a5a;

    text-shadow:
        0 0 10px rgba(255, 90, 90, 0.18);
}

.status-producao-text:hover {
    color: #ff7b7b;

    text-shadow:
        0 0 14px rgba(255, 90, 90, 0.28);
}

/* =========================================================
   FINALIZADO
========================================================= */

.status-finalizado-text {
    color: #36ff9b;

    text-shadow:
        0 0 10px rgba(54, 255, 155, 0.18);
}

.status-finalizado-text:hover {
    color: #5dffb0;

    text-shadow:
        0 0 14px rgba(54, 255, 155, 0.28);
}




/* ============================================================== STATUS =========================================*/


.op-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-em-producao {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}


/* ============================================================== BODY DO CARD =========================================*/

.op-card-body {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.info-row .label {
    color: #888;
    font-size: 0.85rem;
}

.info-row .value {
    font-weight: 600;
    color: #ddd;
}





.op-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff2a2a,
            transparent
        );

    opacity: 0.7;
}

/* ============================================================== BOTÃO (PADRÃO SISTEMA) =========================================*/

.op-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-detalhes {
    width: 100%;
    padding: 12px;

    border-radius: 10px;
    border: none;

    font-weight: 600;

    background: linear-gradient(135deg, #ff2a2a, #5a0000);
    color: white;

    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-detalhes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}







/* =========================================
   AÇÕES (BOTÕES PREMIUM)
========================================= */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;

    padding: 8px;
    border-radius: 8px;

    border: 1px solid #333;
    background: #111;
    color: #ccc;

    font-size: 0.75rem;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover padrão */
.action-btn:hover {
    background: linear-gradient(135deg, #ff2a2a, #8b0000);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Botão mais importante */
.action-btn.add-entry {
    border-color: rgba(255, 42, 42, 0.4);
}





/* ============================================================== MODAL DA OP =========================================*/

.modal-content.large {
    max-width: 900px;
    width: 95%;

    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 16px;

    border: 1px solid rgba(255,0,0,0.15);
}

#op-details-modal .modal-content.large {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 18px;

    border: 1px solid rgba(255,0,0,0.15);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.9),
        inset 0 0 30px rgba(255,0,0,0.05);

    overflow: hidden;
}

#op-details-modal .modal-header {
    padding: 20px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#op-details-modal h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

#op-details-modal h2 span {
    color: var(--cor-destaque);
}

#op-details-modal .modal-body {
    padding: 20px 24px;

    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}



/* ============================================================== AÇÕES NO MODAL =========================================*/



/* =========================================
   AÇÕES DO MODAL
========================================= */

.op-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: var(--space-6);

    padding: 14px;
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02) 0%,
            rgba(255,255,255,0.01) 100%
        );

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(10px);
}

/* =========================================
   BOTÕES DE AÇÃO
========================================= */

.op-modal-actions .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex: 1;

    min-height: 46px;
    padding: 12px 18px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.03) 0%,
            rgba(255,255,255,0.015) 100%
        );

    color: var(--text-secondary);

    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

/* HOVER */

.op-modal-actions .action-btn:hover {
    background:
        linear-gradient(
            180deg,
            rgba(230, 30, 30, 0.18) 0%,
            rgba(230, 30, 30, 0.08) 100%
        );

    border-color: rgba(230, 30, 30, 0.35);

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(230, 30, 30, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* CLICK */

.op-modal-actions .action-btn:active {
    transform: scale(0.985);
}

/* ÍCONE */

.op-modal-actions .action-btn svg {
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.op-modal-actions .action-btn:hover svg {
    transform: scale(1.08);
}


/* =========================================
   BOTÃO PEQUENO DE INFO
========================================= */

.btn-info-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04) 0%,
            rgba(255,255,255,0.015) 100%
        );

    color: #8f96a3;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease;
}

/* HOVER */

.btn-info-small:hover {
    background:
        linear-gradient(
            180deg,
            rgba(230, 30, 30, 0.22) 0%,
            rgba(230, 30, 30, 0.12) 100%
        );

    border-color: rgba(230, 30, 30, 0.4);

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(230, 30, 30, 0.18);
}

/* CLICK */

.btn-info-small:active {
    transform: scale(0.96);
}


/* =========================================
   DESTAQUE FINANCEIRO
========================================= */

.destaque-financeiro {
    color: #ff3636 !important;

    font-weight: 600;
    letter-spacing: 0.3px;

    text-shadow:
        0 0 10px rgba(255, 54, 54, 0.18),
        0 0 18px rgba(255, 54, 54, 0.08);
}





/* ============================================================== SUMMARY =========================================*/

.op-summary-top {
    display: flex;
    gap: 3rem;
    padding: 1rem;

    background: rgba(255, 0, 0, 0.05);
    border-radius: 10px;

    margin-bottom: 2rem;
}

.summary-item .label {
    font-size: 0.75rem;
    color: #888;
}

.summary-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cor-destaque);
}


.op-summary-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.summary-item {
    background: linear-gradient(145deg, #161616, #0b0b0b);

    padding: 16px;
    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.05);

    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 6px;
    color: var(--cor-destaque);
}











.op-summary {
    display: flex;
    gap: 16px;
}

.summary-card {
    flex: 1;

    padding: 14px 16px;
    border-radius: 12px;

    background: linear-gradient(145deg, #161616, #0d0d0d);
    border: 1px solid rgba(255,255,255,0.05);
}

.summary-card .label {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
}

.summary-card .value {
    margin-top: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}


/* ============================================================== BLOCO MATERIAIS (CAIXA VISUAL) =========================================*/

.materials-list-container {
    background: #111;
    border-radius: 14px;
    padding: 16px;

    border: 1px solid rgba(255,255,255,0.05);
}

.materials-list-container h3 {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 12px;
}


.content-block {
    background: #111;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.05);

    display: flex;
    flex-direction: column;
}

.block-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.block-header h3 {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.block-body {
    padding: 12px 16px;
}




/* ============================================================== TABELA =========================================*/

.production-table {
    width: 100%;
    border-collapse: collapse;
}

.production-table th {
    text-align: left;
    padding: 10px;

    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.production-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #ddd;
}

.production-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.production-table th {
    font-size: 0.7rem;
    color: #777;
}

.production-table td {
    font-size: 0.9rem;
    color: #ddd;
}




/* ============================================================== BLOCO HISTÓRICO =========================================*/


.withdrawal-history {
    background: #111;
    border-radius: 14px;
    padding: 16px;

    border: 1px solid rgba(255,255,255,0.05);
}

.withdrawal-history h3 {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 16px;
}


/* ============================================================== TIMELINE =========================================*/

.timeline {
    padding-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.08);
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 4px;

    width: 10px;
    height: 10px;

    background: var(--cor-destaque);
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(255,0,0,0.6);
}

.timeline-date {
    font-size: 0.75rem;
    color: #777;
}

.timeline-content {
    margin-top: 5px;
    color: #ddd;
    font-size: 0.9rem;
}

.timeline {
    max-height: 400px;
    overflow-y: auto;
}


/* ============================================================== SUMMARY =========================================*/




/* ============================================================== SUMMARY =========================================*/




/* ============================================================== SUMMARY =========================================*/




/* ============================================================== SUMMARY =========================================*/
/* ================= SHOWROOM LIST LAYOUT ================= */
.showroom-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.showroom-list-card {
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: all 0.3s ease;
}

.showroom-list-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.slc-photo {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: var(--cor-destaque, #e53935);
    font-size: 3.5rem;
    font-weight: 800;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.slc-content {
    flex: 1;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
}

.slc-title h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.slc-title p {
    font-size: 0.85rem;
    color: #888;
}

.slc-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.slc-info {
    display: flex;
    flex-direction: column;
}

.slc-info .label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.slc-info .value {
    font-size: 0.95rem;
    color: #e0e0e0;
    font-weight: 500;
}

.slc-actions {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.15);
}

.slc-actions button {
    background: var(--cor-destaque, #e53935);
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.slc-actions button:hover {
    background: #d32f2f;
}

/* =========================================
   RESPONSIVO GERAL (MOBILE & TABLET)
========================================= */
@media (max-width: 768px) {
    /* 1. Container base */
    .producao-container {
        padding: 10px;
    }

    /* 2. KPIs do Showroom */
    .production-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }

    /* 3. Filtros e Busca */
    .header-actions .filters-container {
        padding: 15px;
        gap: 12px;
    }
    
    .search-box, .filter-box, .filter-box select {
        width: 100%;
        max-width: 100%;
    }

    /* 4. Cards da Lista Showroom */
    .showroom-list-card {
        flex-direction: column;
    }

    .slc-photo {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .slc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .slc-body {
        gap: 10px;
        flex-direction: column;
    }

    .slc-content {
        padding: 1rem;
    }

    /* 5. Modal - Ajustes gerais */
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 95vh;
        overflow-y: auto;
    }

    /* Modal - Info Grid */
    .showroom-modal .info-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}
