
/* =========================================
   TELAS INTERNAS
   ========================================= */

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 22px;
}

.view-title {
    margin: 0;

    font-size: 32px;
}

.view-subtitle {
    margin-top: 6px;

    color: #667085;
}


/* filtros produtos */

.product-filters {
    display: grid;

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

    gap: 10px;

    padding: 18px;

    margin-bottom: 18px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 2px 7px rgba(0,0,0,.04);
}

.product-filter label {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;

    color: #667085;
}

.product-filter input,
.product-filter select {
    width: 100%;
    height: 40px;

    padding: 0 9px;

    border: 1px solid #d8dde5;
    border-radius: 6px;

    background: white;
}

.product-filter-button {
    display: flex;
    align-items: flex-end;
}

.product-filter-button button {
    height: 40px;

    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background: #14213d;
    color: white;

    font-weight: 700;

    cursor: pointer;
}


/* resumo produtos */

.products-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;

    color: #667085;

    font-size: 13px;
}


/* tabela produtos */

.products-panel {
    overflow-x: auto;

    padding: 18px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 2px 7px rgba(0,0,0,.04);
}

.products-table {
    width: 100%;

    min-width: 1180px;

    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 10px 9px;

    border-bottom: 1px solid #edf0f4;

    font-size: 13px;

    vertical-align: middle;
}

.products-table th {
    color: #667085;

    font-size: 11px;

    text-transform: uppercase;
}

.products-table .numero {
    text-align: right;
}

.products-table tbody tr {
    cursor: pointer;
}

.products-table tbody tr:hover {
    background: #f7f8fa;
}

.product-sku {
    font-weight: 700;
}

.product-description {
    max-width: 330px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.stock-positive {
    font-weight: 700;

    color: #08783e;
}

.stock-zero {
    font-weight: 700;

    color: #b54708;
}

.stock-unknown {
    color: #98a2b3;
}


/* paginação */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 18px;
}

.pagination button {
    padding: 8px 14px;

    border: 1px solid #d8dde5;
    border-radius: 6px;

    background: white;

    cursor: pointer;
}

.pagination button:disabled {
    opacity: .4;

    cursor: default;
}

.pagination-info {
    min-width: 130px;

    text-align: center;

    color: #667085;

    font-size: 13px;
}


/* telas ainda em construção */

.placeholder-view {
    padding: 40px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 2px 7px rgba(0,0,0,.04);
}

.placeholder-view h2 {
    margin-top: 0;
}


/* responsivo */

@media(max-width:1200px) {

    .product-filters {
        grid-template-columns:
            repeat(3,1fr);
    }
}



/* COLUNAS DA LISTAGEM DE PRODUTOS - V2 */

.products-table {
    width: 100%;
    min-width: 1100px;
    table-layout: fixed;
}

.products-table th,
.products-table td {
    overflow-wrap: anywhere;
}

.products-table th:nth-child(1) { width: 16%; }
.products-table th:nth-child(2) { width: 24%; }
.products-table th:nth-child(3) { width: 9%; }
.products-table th:nth-child(4) { width: 8%; }
.products-table th:nth-child(5) { width: 10%; }
.products-table th:nth-child(6) { width: 8%; }
.products-table th:nth-child(7) { width: 9%; }
.products-table th:nth-child(8) { width: 9%; }
.products-table th:nth-child(9) { width: 7%; }

.products-table .product-description {
    max-width: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
