/* Tabelas e Cards Premium */

/* Container Principal */
.premium-container {
    padding: 1rem;
    background: transparent;
}

/* Accordion Estilizado */
.estoque-accordion-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.estoque-accordion-item:hover {
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.estoque-accordion-header {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 1px solid #333;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.estoque-accordion-header:hover {
    background: #333;
}

.estoque-accordion-header.active {
    background: #252525;
    border-bottom-color: #FFD700;
}

.estoque-accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700; /* Dourado */
    flex: 1;
    text-align: left;
}

.estoque-accordion-count {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 1rem;
}

.estoque-accordion-icon {
    color: #666;
    transition: transform 0.3s;
}

.estoque-accordion-header.active .estoque-accordion-icon {
    transform: rotate(180deg);
    color: #FFD700;
}

/* Corpo do Accordion */
.estoque-accordion-body {
    padding: 1.5rem;
    background: #121212;
}

/* Grid de Produtos */
.estoque-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Card de Produto */
.estoque-product {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.estoque-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    border-color: #444;
}

.estoque-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.estoque-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #eee;
    margin: 0;
    line-height: 1.4;
}

.estoque-unidade-badge {
    background: #333;
    color: #aaa;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Totais */
.estoque-geral-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: #161616;
    padding: 0.75rem;
    border-radius: 6px;
}

.total-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.total-item label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
}

.total-value.baixo {
    color: #dc3545; /* Vermelho alerta */
}

/* Breakdown por Loja */
.estoque-lojas-breakdown {
    background: #181818;
    border-radius: 6px;
    padding: 0.75rem;
}

.estoque-lojas-breakdown h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.loja-breakdown {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
    color: #ccc;
}

.loja-breakdown:last-child {
    border-bottom: none;
}

.loja-nome {
    color: #aaa;
}

/* Filtro de Data - alinhado ao tema (main.css já define base; reforço para .filter-input) */
input[type="date"].filter-input {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.9rem;
    padding-right: 2.5rem;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
}
input[type="date"].filter-input::-webkit-calendar-picker-indicator {
    filter: invert(0.9) sepia(0.3) saturate(5) hue-rotate(5deg);
    cursor: pointer;
    opacity: 0.9;
}
