/* MES Melt Orders - AG Grid styles */

/* AG Grid: header background + line below (matches caster-production) */
.ag-theme-alpine .ag-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #babfc7;
}

/* Second header row (leaf columns under groups): separator line */
.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),
.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
    border-top: 1px solid #babfc7;
}

/* AG Grid: centered headers (group and column) */
.ag-theme-alpine .ag-header-group-cell-label,
.ag-theme-alpine .ag-header-cell-label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* AG Grid: header padding */
.ag-theme-alpine .ag-header-cell,
.ag-theme-alpine .ag-header-group-cell {
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
}

/* AG Grid loading overlay (white, matches caster-production) */
.ag-theme-alpine .ag-overlay-loading-center {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

/* Row drag handle cursor */
.ag-theme-alpine .ag-row-drag {
    cursor: grab;
}

.ag-theme-alpine .ag-row-dragging {
    opacity: 0.5;
}

/* Details modal: Backgrid table inside modal */
.melt-order-details .backgrid th {
    font-size: 12px !important;
}

.melt-order-details .backgrid tr td {
    font-size: 12px !important;
}

.melt-order-details .modal-body {
    max-height: 350px;
}

.no-margin-bottom {
    margin-bottom: 0px !important;
}

.modal {
    width: 650px !important;
}
