/* ==========================================================
   forms.css
   NOTE: This file must NOT redefine classes owned by layout.css
   (.erp-form-row, .erp-label, .erp-input/.erp-select/.erp-textarea,
   .master-card*, .btn-erp, .erp-form-actions). layout.css is the
   single source of truth for those. Only page-specific / additive
   rules belong here.
========================================================== */

/* =========================
   INDEX TOOLBAR / SEARCH
========================= */
.index-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.index-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .index-search input {
        min-width: auto;
    }

        .index-search input[type=date] {
            width: 140px;
        }

        .index-search input[type=text] {
            width: 300px;
        }

    .index-search select {
        width: 250px;
    }

.index-pagesize {
    width: 100px;
}

/* =========================
   ERP FORM (page-specific extras only)
========================= */
.erp-form {
    width: 100%;
    max-width: 1200px;
}

.erp-row-group {
    display: flex;
    gap: 5px;
    flex: 1;
}

@media (max-width:768px) {
    .erp-row-group {
        flex-direction: column;
    }
}
