﻿
.numeric-right input {
    text-align: right !important;
}

/*Grid Settings*/

/* 2. Target the individual cells, rows, and texts inside the rows */
.custom-grid .mud-table-row .mud-table-cell,
.custom-grid .mud-table-row {
    font-family: Segoe UI !important;
    color: #000000 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
}


/* Target all header cells when the grid header has 'my-custom-header' */
.custom-grid .my-custom-header .mud-table-cell {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #334155 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}



/* Style for Group Footer Summary Cells */
.custom-grid .mud-table-body .mud-table-cell.my-group-footer,
.custom-grid td.my-group-footer {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}


.custom-grid .my-grand-footer .mud-table-cell,
.custom-grid .my-grand-footer .mud-datagrid-footer-cell {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-top: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #64748b !important;
}



th.rl-header .mud-datagrid-header-cell,
th.rl-header .column-header {
    justify-content: flex-end !important;
    text-align: right !important;
    width: 100% !important;
    display: flex !important;
}






/* =========================================================
   MAIN GRID - MODERN BLUE THEME
   ========================================================= */

/* -------------------------
   ROWS & CELLS
   ------------------------- */

.main-grid .mud-table-row .mud-table-cell,
.main-grid .mud-table-row {
    font-family: "Segoe UI", sans-serif !important;
    color: #1e293b !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
}


/* -------------------------
   HEADER
   ------------------------- */

.main-grid .my-custom-header .mud-table-cell {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e3a8a !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #60a5fa !important;
}


/* -------------------------
   HOVER
   Very subtle blue
   ------------------------- */

.main-grid .mud-table-row:hover .mud-table-cell {
    background-color: #f0f7ff !important;
    color: #1e40af !important;
}


/* -------------------------
   SELECTED ROW
   Stronger blue
   ------------------------- */

.main-grid tbody tr.selected-category-row,
.main-grid tbody tr.selected-category-row > td,
.main-grid tbody tr.selected-category-row > td.mud-table-cell {
    background-color: #ccddff !important;
    font-size: 0.85rem !important;
    font-weight: 650 !important;
    color: #1e3a8a !important;
    /* subtle active indicator */
    border-top: 1px solid #93c5fd !important;
    border-bottom: 1px solid #93c5fd !important;
}


    /* Selected row + hover */

    .main-grid tbody tr.selected-category-row:hover,
    .main-grid tbody tr.selected-category-row:hover > td,
    .main-grid tbody tr.selected-category-row:hover > td.mud-table-cell {
        background-color: #c7ddfa !important;
        color: #1e3a8a !important;
    }


/* -------------------------
   GROUP FOOTER
   ------------------------- */

.main-grid .mud-table-body .mud-table-cell.my-group-footer,
.main-grid td.my-group-footer {
    background: linear-gradient( 180deg, #eff6ff 0%, #dbeafe 100% ) !important;
    color: #1e40af !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    border-top: 1px solid #93c5fd !important;
    border-bottom: 1px solid #bfdbfe !important;
}


/* -------------------------
   GRAND FOOTER / TOTAL
   Darker blue
   ------------------------- */

.main-grid .my-grand-footer .mud-table-cell,
.main-grid .my-grand-footer .mud-datagrid-footer-cell {
    background: linear-gradient( 180deg, #bfdbfe 0%, #93c5fd 100% ) !important;
    color: #172554 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-top: 2px solid #60a5fa !important;
    border-bottom: 2px solid #3b82f6 !important;
}


/* -------------------------
   GRAND FOOTER TEXT
   ------------------------- */

.main-grid .my-grand-footer {
    color: #172554 !important;
}


/* -------------------------
   EDIT ICON
   ------------------------- */

.main-grid .mud-icon-button {
    transition: all 0.15s ease-in-out;
}

    .main-grid .mud-icon-button:hover {
        background-color: #dbeafe !important;
        transform: scale(1.08);
    }













/* ================================
   SCM Dashboard
   ================================ */

.scm-dashboard-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .scm-dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }


/* Department Cards */

.scm-department-card {
    border-radius: 10px;
    border: 10px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

    .scm-department-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    }


/* Department title */

.scm-department-title {
    font-weight: 600;
    font-size: 0.95rem;
}


/* KPI labels */

.scm-kpi-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* KPI values */

.scm-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
}


/* Dashboard section card */

.scm-section-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}


/* Section header */

.scm-section-title {
    font-size: 1rem;
    font-weight: 600;
}


/* AI briefing */

.scm-ai-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}


/* Responsive */

@media (max-width: 768px) {

    .scm-kpi-value {
        font-size: 1.05rem;
    }

    .scm-department-title {
        font-size: 0.9rem;
    }
}


.scm-group-row {
    padding: 10px 4px;
    transition: background-color 0.15s ease;
}

    .scm-group-row:hover {
        background-color: #f7f8fa;
    }

    .scm-group-row .mud-progress-linear {
        border-radius: 4px;
    }

.scm-ranking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
}

.scm-ranking-number {
    font-size: 0.75rem;
}

.scm-cost-center-row {
    padding: 8px 4px 12px 4px;
}

    .scm-cost-center-row .mud-progress-linear {
        border-radius: 4px;
    }


