
/* =========================================
   STOCK
   Mengikuti tampilan PEMBELIAN
========================================= */

.stock-container {
    padding: 20px;
}


/* ================= HEADER ================= */

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.stock-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.stock-subtitle {
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

.stock-header-actions {
    display: flex;
    gap: 8px;
}


/* ================= FILTER ================= */

.stock-filter {
    display: flex;
    align-items: flex-end;
    gap: 15px;

    padding: 15px;

    margin-bottom: 20px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 6px;
}

.stock-filter .filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stock-filter label {
    font-size: 13px;
    font-weight: 600;
}

.stock-filter input,
.stock-filter select {
    height: 36px;

    padding: 0 10px;

    border: 1px solid #ccc;
    border-radius: 5px;

    min-width: 220px;

    box-sizing: border-box;
}


/* ================= SECTION ================= */

.stock-section {
    margin-bottom: 25px;
}

.stock-section-title {
    font-size: 17px;
    font-weight: 600;

    margin-bottom: 10px;
}


/* ================= TABLE ================= */

.stock-table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 6px;
}

.stock-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.stock-table thead th {
    background: #f5f5f5;

    border-bottom: 1px solid #ddd;

    padding: 10px 8px;

    font-weight: 600;

    text-align: left;

    white-space: nowrap;
}

.stock-table tbody td {
    padding: 9px 8px;

    border-bottom: 1px solid #eee;

    vertical-align: middle;
}

.stock-table tbody tr:hover {
    background: #fafafa;
}

.stock-table tbody tr:last-child td {
    border-bottom: none;
}


/* ================= EMPTY ================= */

.stock-empty {
    text-align: center;

    color: #888;

    padding: 25px !important;
}


/* ================= DETAIL ================= */

.stock-detail-section {
    margin-top: 25px;
}

.stock-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-detail-subtitle {
    margin-top: -5px;
    margin-bottom: 10px;

    font-size: 13px;
    color: #888;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 800px) {

    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stock-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .stock-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .stock-filter input,
    .stock-filter select {
        width: 100%;
    }

}
