/* BMCH Page – Loose items + Bundles (uses dossier-table.css, mch.css, page-header.css) */

.bmch-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.bmch-controls .search-wrapper {
    width: 280px;
    max-width: 350px;
    flex: 0 0 auto;
}

.bmch-controls .page-header-export-btn,
.bmch-controls .bmch-add-loose-btn,
.bmch-controls .bmch-create-bundle-btn {
    flex-shrink: 0;
}

.bmch-add-loose-btn,
.bmch-create-bundle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bmch-add-loose-btn {
    background: var(--accent-color, #0066cc);
    color: #fff;
}

.bmch-add-loose-btn:hover {
    background: var(--accent-color-dark, #0052a5);
    transform: translateY(-1px);
}

.bmch-create-bundle-btn {
    background: #5c6bc0;
    color: #fff;
}

.bmch-create-bundle-btn:hover {
    background: #3949ab;
    transform: translateY(-1px);
}

.bmch-loose-section {
    margin-bottom: 2.5rem;
}

.bmch-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.bmch-table {
    min-width: 900px;
}

.bmch-table .bmch-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bmch-table .bmch-status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.bmch-table .bmch-status-low {
    background: #fff3e0;
    color: #e65100;
}

.bmch-table .bmch-status-reserved {
    background: #e3f2fd;
    color: #1565c0;
}

.bmch-no-results {
    text-align: center;
    padding: 2rem;
    color: #888;
    display: none;
}

.bmch-no-results i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.bmch-no-results p {
    margin: 0;
    font-size: 1rem;
}

/* Bundles section */
.bmch-bundles-section {
    margin-top: 0.5rem;
}

.bmch-no-bundles {
    text-align: center;
    padding: 2.5rem 2rem;
    color: #888;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
}

.bmch-no-bundles i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.bmch-no-bundles.hidden {
    display: none;
}

.bmch-bundle {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bmch-bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.bmch-bundle-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.bmch-bundle-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bmch-bundle-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--accent-color, #0066cc);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bmch-bundle-add-btn:hover {
    background: var(--accent-color-dark, #0052a5);
}

.bmch-bundle-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.bmch-bundle-remove-btn:hover {
    color: #c62828;
    background: #ffebee;
}

.bmch-bundle .table-wrapper {
    margin: 0;
}

.bmch-bundle .bmch-table {
    margin: 0;
}

.bmch-bundle-empty {
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* BMCH Add/Edit form (same as MCH, FIV Number label) */
.bmch-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.25rem 0;
}

.bmch-form .bmch-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bmch-form .bmch-form-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.bmch-form .bmch-form-row input,
.bmch-form .bmch-form-row select {
    padding: 0.6rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.bmch-form .bmch-form-row input:focus,
.bmch-form .bmch-form-row select:focus {
    outline: none;
    border-color: var(--accent-color, #0066cc);
}

.bmch-form .bmch-form-row input[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}
