﻿/* =========================================================
   Reusable Form Layout
   ========================================================= */

.form-page {
    padding-bottom: 10px;
}

.form-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0 10px;
}

.form-title {
    margin: 0;
    font-weight: 600;
    color: #343a40;
}

.form-subtitle {
    margin-top: 5px;
    color: #87909a;
    font-size: 13px;
}

.form-header-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4f8;
    color: #3b7ddd;
    font-size: 22px;
}


/* =========================================================
   Form Card
   ========================================================= */

.form-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10), 0 5px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
}

    .form-card-header h5 {
        font-weight: 600;
        color: #343a40;
    }

    .form-card-header span {
        color: #8a9299;
        font-size: 13px;
    }


/* =========================================================
   Form Sections
   ========================================================= */

.form-section {
    padding: 5px 0 2px;
    margin-bottom: 10px;
    border-bottom: 1px solid #edf0f2;
}

    .form-section:last-of-type {
        margin-bottom: 10px;
    }

.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.form-section-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 7px;
    background: #f0f4f8;
    color: #3b7ddd;
    font-size: 18px;
}

.form-section-header h6 {
    color: #343a40;
    font-weight: 600;
    font-size: 15px;
}

.form-section-header small {
    display: block;
    margin-top: 3px;
    color: #8a9299;
    font-size: 12px;
}


/* =========================================================
   Form Controls
   ========================================================= */

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.form-required {
    color: #dc3545 !important;
    font-weight: 600;
}

.form-page .form-control {
    min-height: 40px;
    border-color: #dfe4e8;
    border-radius: 5px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-page .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.15rem rgba(59, 125, 221, 0.10);
    }

.form-page textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-page .form-control::placeholder {
    color: #adb5bd;
}


/* =========================================================
   Input Groups
   ========================================================= */

.form-page .input-group-text {
    min-width: 45px;
    justify-content: center;
    background: #f8f9fa;
    border-color: #dfe4e8;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   Help / Validation
   ========================================================= */

.form-help {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: #6c757d;
    font-weight: 600;
}

    .form-help i {
        margin-right: 3px;
    }

.form-page .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}


/* =========================================================
   Form Actions
   ========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.form-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-buttons .btn {
        min-height: 40px;
        padding: 8px 18px;
        border-radius: 5px;
        font-size: 13px;
        font-weight: 500;
    }

.btn-submit {
    min-width: 105px;
}

.btn-cancel {
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
}

    .btn-cancel:hover {
        background: #f8f9fa;
        color: #343a40;
    }

.btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
}


/* =========================================================
   Alerts
   ========================================================= */

.alert {
    border-radius: 6px;
}

.alert-info {
    border: 1px solid rgba(13, 202, 240, 0.25);
}

.alert-success {
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.alert-warning {
    border: 1px solid rgba(255, 193, 7, 0.30);
}

.alert-danger {
    border: 1px solid rgba(220, 53, 69, 0.25);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {

    .form-page-header {
        align-items: flex-start;
    }

    .form-header-icon {
        display: none;
    }

    .form-card-header {
        padding: 16px;
    }

    .form-card .card-body {
        padding: 16px;
    }

    .form-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .form-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .form-buttons {
        width: 100%;
        flex-direction: column-reverse;
    }

        .form-buttons .btn {
            width: 100%;
        }
}


/* =========================================================
   Search Group
   ========================================================= */
.search-group {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 5px;
    overflow: hidden;
}

    .search-group .form-control {
        border: 0;
        box-shadow: none;
    }

    .search-group .btn {
        border: 0;
        border-radius: 0;
    }

    .search-group:focus-within {
        border-color: rgba(59, 125, 221, 0.35);
    }





/* =========================================================
   Modal
   ========================================================= */
.modal-details {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10), 0 5px 12px rgba(0, 0, 0, 0.05);
}

.modal-details-alt {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10), 0 5px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.modal-details-dialog {
    width: 500px;
    max-width: calc(100% - 30px);
}

.modal-details-dialog-footer {
    margin-bottom: 0rem !important;
}

.modal-details-table {
    border-collapse: collapse;
    margin-bottom: 0;
    background-color: #fff;
}

    .modal-details-table th,
    .modal-details-table td {
        padding: 8px 12px;
        vertical-align: middle;
        border-bottom: 1px solid #edf0f2;
        background-color: #fff !important;
    }

    .modal-details-table th {
        width: 38%;
        color: #6c757d;
        font-size: 11px;
        font-weight: 600;
    }

    .modal-details-table td {
        width: 62%;
        color: #343a40;
        font-size: 12px;
        font-weight: 500;
    }

    /* Keep all rows white */
    .modal-details-table tbody tr,
    .modal-details-table tbody tr:hover,
    .modal-details-table tbody tr:nth-of-type(odd),
    .modal-details-table tbody tr:nth-of-type(even) {
        background-color: #fff !important;
    }

    .modal-details-table tr:last-child th,
    .modal-details-table tr:last-child td {
        border-bottom: 0;
    }

/* Status */
.modal-details-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.modal-details-status-active {
    background-color: #eaf7ef !important;
    color: #198754;
}

.modal-details-status-inactive {
    background-color: #fbeaec !important;
    color: #dc3545;
}

/* =========================================================
   Modal Header
   ========================================================= */

.modal-header-compact {
    padding: 10px 16px;
    background-color: white;
    border-bottom: 1px solid #edf0f2;
}

    .modal-header-compact .modal-title {
        display: inline-block;
        margin: 0;
        padding: 5px 10px;
        color: black !important;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
    }

    .modal-header-compact .close {
        padding: 0;
        margin: 0;
        color: #6c757d;
        font-size: 15px;
        font-weight: 400;
        line-height: 1;
        opacity: 0.8;
    }

        .modal-header-compact .close:hover {
            color: #17496D;
            opacity: 1;
        }


/* =========================================================
   Tree
   ========================================================= */

.permissions-card {
    border: 1px solid #e6e9ed;
    border-radius: 6px;
    background: #fff;
    margin-top: 10px;
}

.permissions-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e6e9ed;
}

    .permissions-card-header h6 {
        font-weight: 600;
    }

.permissions-card-description {
    font-size: 13px;
    color: #7a7f85;
}

.permissions-tree-actions {
    display: flex;
    gap: 6px;
}

.permissions-tree-wrapper {
    padding: 20px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: auto;
}

.permissions-tree {
    margin: 0;
    padding: 0;
}

    .permissions-tree li {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .permissions-tree input[type="checkbox"] {
        margin-right: 7px;
        vertical-align: middle;
    }

.permissions-node-name {
    margin-left: 4px;
    vertical-align: middle;
}

.permissions-folder {
    margin-right: 5px;
}

.permissions-file {
    margin-right: 5px;
    opacity: 0.75;
}

.tree-toggle {
    cursor: pointer;
    width: 14px;
    margin-right: 4px;
}

.permissions-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #7a7f85;
}

.permissions-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.permissions-empty-state h6 {
    font-weight: 600;
    margin-bottom: 6px;
}

.permissions-empty-state p {
    margin-bottom: 0;
    font-size: 14px;
}



/* =========================================================
   Dashboards
   ========================================================= */

.dashboard-section-height {
    height: 600px;
}

.dashboard-section-height-alt {
    height: 450px;
}

.dashboard-section-height-sm {
    height: 300px;
}

.dashboard-section-height .card {
    height: 100%;
}

.dashboard-section-height .card-body {
    overflow: hidden;
}

.dashboard-section-height .table-responsive {
    height: 100%;
    overflow: auto;
    min-height: 200px !important;
}

.dashboard-metric-label {
    color: #003DA5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.dashboard-page {
    width: 100%;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0 10px;
}

.dashboard-title {
    margin: 0;
    font-weight: 700;
    color: #003DA5;
}

.dashboard-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6c757d;
}

.dashboard-kpi-row {
    margin-bottom: 5px;
}

.dashboard-kpi-card {
    height: 150px;
    display: flex;
    align-items: center;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-kpi-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    border-radius: 50%;
    background: #eef6fa;
    color: #003DA5;
    font-size: 27px;
}

.dashboard-kpi-content {
    min-width: 0;
}

.dashboard-kpi-label {
    display: block;
    color: #003DA5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-kpi-value {
    margin-top: 5px;
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.2;
}

.dashboard-kpi-description {
    display: block;
    margin-top: 5px;
    color: #868e96;
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f2;
}

    .dashboard-section-header h5 {
        margin: 0;
        color: #343a40;
        font-size: 16px;
        font-weight: 700;
    }

    .dashboard-section-header span {
        display: block;
        margin-top: 4px;
        color: #868e96;
        font-size: 12px;
    }

.dashboard-section-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef6fa;
    color: #003DA5;
    font-size: 20px;
}

.dashboard-chart-card {
    height: 350px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 7px;
}

.dashboard-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-bottom: 5px;
}

    .dashboard-chart-header h6 {
        margin: 0;
        color: #343a40;
        font-size: 14px;
        font-weight: 700;
    }

    .dashboard-chart-header span {
        display: block;
        margin-top: 3px;
        color: #868e96;
        font-size: 11px;
    }

    .dashboard-chart-header > i {
        color: #003DA5;
        font-size: 21px;
    }

.dashboard-donut-chart {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .dashboard-donut-chart > div {
        width: 100% !important;
        height: 260px !important;
    }

.dashboard-wide-chart {
    width: 100%;
    height: 500px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 10px 15px;
}

    .dashboard-wide-chart > div {
        height: 450px;
        min-width: 100%;
    }

.dashboard-scroll-chart {
    width: 100%;
    max-height: 450px;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
}

    .dashboard-scroll-chart > div {
        height: 450px;
    }

    .dashboard-scroll-chart::-webkit-scrollbar,
    .dashboard-wide-chart::-webkit-scrollbar {
        height: 7px;
    }

    .dashboard-scroll-chart::-webkit-scrollbar-thumb,
    .dashboard-wide-chart::-webkit-scrollbar-thumb {
        background: #ced4da;
        border-radius: 10px;
    }

    .dashboard-scroll-chart::-webkit-scrollbar-track,
    .dashboard-wide-chart::-webkit-scrollbar-track {
        background: #f8f9fa;
    }

.morris-hover {
    z-index: 9999;
}

    .morris-hover.morris-default-style {
        border-radius: 5px;
        border: 1px solid #dee2e6;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

.morris-item-barchart {
    height: 450px;
}




#morris-partner-distribution-barchart svg {
    width: 100% !important;
    min-height: 800px !important;
    height: 1000px !important;
}

#morris-partner-distribution-barchart svg text {
    font-family: Calibri, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    fill: #003366 !important;
}

#morris-item-barchart svg {
    width: 100% !important;
    min-height: 800px !important;
    height: 1000px !important;
}

#morris-item-barchart svg text {
    font-family: Calibri, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    fill: #003366 !important;
}

#morris-barchart svg {
    width: 100% !important;
    min-height: 800px !important;
    height: 1000px !important;
}

#morris-barchart svg text {
    font-family: Calibri, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    fill: #003366 !important;
}

#morris-barchart svg {
    width: 100% !important;
    min-height: 800px !important;
    height: 1000px !important;
}

#morris-barchart svg text {
    font-family: Calibri, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    fill: #003366 !important;
}



#morris-request-linechart svg {
    width: 100% !important;
    min-height: 800px !important;
}

#morris-request-linechart svg text {
    font-family: Calibri, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    fill: #003366 !important;
}

@media (max-width: 991.98px) {
    .dashboard-kpi-card {
        height: 140px;
    }

    .dashboard-chart-card {
        height: 340px;
    }

    .dashboard-donut-chart {
        height: 260px;
    }

        .dashboard-donut-chart > div {
            height: 250px !important;
        }
}

@media (max-width: 767.98px) {
    .dashboard-kpi-card {
        height: auto;
        min-height: 135px;
    }

    .dashboard-section {
        padding: 15px;
    }

    .dashboard-chart-card {
        height: 330px;
    }

    .dashboard-wide-chart,
    .dashboard-scroll-chart {
        height: 450px;
    }

        .dashboard-wide-chart > div,
        .dashboard-scroll-chart > div {
            height: 400px;
        }
}


.dashboard-chart-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #003DA5;
    font-size: 13px;
}

    .dashboard-chart-loading i {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .dashboard-chart-loading span {
        font-weight: 600;
    }


.dashboard-chart-scroll-container {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    margin: 0;
    padding: 0;
}

    .dashboard-chart-scroll-container .morris-item-barchart,
    .dashboard-chart-scroll-container .morris-donut {
        margin: 0;
        padding: 0;
        position: relative;
        left: 0;
        display: block;
        /* Important */
        direction: ltr;
    }

.card-body:has(.dashboard-chart-scroll-container) {
    display: block;
}



/* =========================================================
   Tabs
   ========================================================= */
/* Request 360° Overview Tabs */
.nav-tabs.tabs-bordered.nav-justified {
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
}

    /* Individual tab */
    .nav-tabs.tabs-bordered.nav-justified .nav-item {
        margin-bottom: -1px;
    }

    /* Tab link */
    .nav-tabs.tabs-bordered.nav-justified .nav-link {
        position: relative;
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 12px 8px;
        color: #6c757d;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

        /* Hover */
        .nav-tabs.tabs-bordered.nav-justified .nav-link:hover {
            color: #1f5fbf;
            background-color: #f8fafc;
            border-bottom-color: #d9e5f5;
        }

        /* Active */
        .nav-tabs.tabs-bordered.nav-justified .nav-link.active {
            color: #1f5fbf;
            background-color: #fff;
            border-bottom: 3px solid #1f5fbf;
            font-weight: 600;
        }

        /* Icons */
        .nav-tabs.tabs-bordered.nav-justified .nav-link i {
            vertical-align: middle;
        }

/* Small screens */
@media (max-width: 767.98px) {
    .nav-tabs.tabs-bordered.nav-justified .nav-link {
        padding: 10px 6px;
    }

        .nav-tabs.tabs-bordered.nav-justified .nav-link .font-18 {
            font-size: 18px !important;
        }
}



/* =========================================================
   Texts
   ========================================================= */
.iom-text-teal {
    color: #00A99D !important;
}



/* =========================================================
   Dashboard Tables
   ========================================================= */
.table-soft-border {
    border: 1px solid #f1f3f5;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .table-soft-border th,
    .table-soft-border td {
        border-color: #f1f3f5 !important;
    }

    .table-soft-border thead tr:first-child th:first-child {
        border-top-left-radius: 6px;
    }

    .table-soft-border thead tr:first-child th:last-child {
        border-top-right-radius: 6px;
    }

    .table-soft-border tbody tr:last-child td:first-child {
        border-bottom-left-radius: 6px;
    }

    .table-soft-border tbody tr:last-child td:last-child {
        border-bottom-right-radius: 6px;
    }


/* =========================================================
   Pivot Dashboard Tables
   ========================================================= */
/* Pivot overall container */
.pivot-container {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    max-height: 750px;
    min-height: 750px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
}

/* Keep pivot controls compact */
.pivot-container .pvtUi {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/*
     * Put unused fields horizontally instead of
     * taking up a large vertical column.
     */
.pivot-container .pvtUnused {
    min-width: 100%;
    width: auto;
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.pivot-container .pvtAxisContainer {
    padding: 6px;
    background: #f8f9fa;
}

.pivot-container .pvtVals {
    padding: 6px;
    background: #f8f9fa;
    vertical-align: middle;
}

/* Pivot dropdown buttons */
.pivot-container .pvtAttr {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    background: #fff;
    color: #495057;
    font-size: 12px;
    font-weight: 900;
}

    .pivot-container .pvtAttr:hover {
        background: #f8f9fa;
    }

/* Renderer / aggregator controls */
.pivot-container select {
    height: 30px;
    padding: 3px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 12px;
    background: #fff;
}

/* Pivot table */
.pivot-container .pvtTable {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin: 0;
}

    .pivot-container .pvtTable th,
    .pivot-container .pvtTable td {
        border: 1px solid #dee2e6;
        padding: 6px 8px;
        white-space: nowrap;
    }

    /* Table headers */
    .pivot-container .pvtTable thead th {
        background: #f1f5f7;
        color: #1f3c88;
        font-weight: 1000;
        text-align: center;
        vertical-align: middle;
    }

    /* Row labels */
    .pivot-container .pvtTable tbody th {
        background: #f8f9fa;
        color: #1f3c88;
        font-weight: 600;
        text-align: left;
    }

    /* Numeric values */
    .pivot-container .pvtTable tbody td {
        text-align: center;
        color: #343a40;
    }

    /* Hover */
    .pivot-container .pvtTable tbody tr:hover td,
    .pivot-container .pvtTable tbody tr:hover th {
        background: #f8f9fa;
    }

    /* Sticky header while scrolling vertically */
    .pivot-container .pvtTable thead th {
        position: sticky;
        top: 0;
        z-index: 5;
    }

/* Better scrollbar */
.pivot-container::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.pivot-container::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.pivot-container::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 5px;
}

    .pivot-container::-webkit-scrollbar-thumb:hover {
        background: #868e96;
    }





.table-rounded {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

    .table-rounded table {
        border: 0;
    }



.table-height {
    min-height: 200px !important;
}






.distribution-filter {
    position: relative;
    min-width: 190px;
}

    .distribution-filter select {
        height: 36px;
        padding: 6px 36px 6px 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background-color: #fff;
        color: #495057;
        font-size: 13px;
        font-weight: 500;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .distribution-filter select:hover {
            border-color: #003DA5;
        }

        .distribution-filter select:focus {
            border-color: #003DA5;
            box-shadow: 0 0 0 2px rgba(0, 61, 165, 0.10);
            outline: none;
        }


/* =========================================================
   Configuration Image Preview
   ========================================================= */
.config-image-preview {
    max-height: 400px;
    max-width: 400px;
}


/* =========================================================
   USER DETAILS VIEW
   ========================================================= */

.user-details {
    padding: 22px 25px;
    background: #fff;
}

/* =========================================================
   PROFILE HEADER
   ========================================================= */

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 5px 0 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9edf2;
}

.user-profile-avatar {
    width: 68px;
    height: 68px;
    min-width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #003da5;
    color: #fff;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 1px;
}

.user-profile-info {
    min-width: 0;
}

    .user-profile-info h5 {
        margin: 0 0 5px;
        color: #263445;
        font-size: 19px;
        font-weight: 600;
    }

.user-profile-email {
    color: #718096;
    font-size: 13px;
    word-break: break-word;
}

/* =========================================================
   USER DETAILS SECTIONS
   ========================================================= */

.user-details-section {
    margin-bottom: 22px;
}

.user-details-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf0f4;
    color: #003da5;
    font-size: 14px;
    font-weight: 600;
}

    .user-details-heading i {
        font-size: 19px;
    }

/* =========================================================
   DETAILS GRID
   ========================================================= */

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 25px;
}

.user-detail-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .user-detail-item label {
        margin: 0;
        color: #8491a3;
        font-size: 12px;
        font-weight: 500;
    }

    .user-detail-item > span {
        color: #344054;
        font-size: 14px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

/* =========================================================
   STATUS BADGES
   ========================================================= */

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .user-status i {
        font-size: 13px;
    }

    .user-status.active {
        color: #16834a;
        background: #e9f7ef;
    }

    .user-status.inactive {
        color: #c0392b;
        background: #fceeed;
    }

/* =========================================================
   SCROLLABLE TEAM USERS
   ========================================================= */

.team-users-scroll {
    max-height: 65vh;
    min-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 0 0;
    scrollbar-width: thin;
    scrollbar-color: #c5ceda transparent;
    overscroll-behavior: contain;
}

    /* Chrome, Edge, Safari */
    .team-users-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .team-users-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .team-users-scroll::-webkit-scrollbar-thumb {
        background: #c5ceda;
        border-radius: 10px;
    }

        .team-users-scroll::-webkit-scrollbar-thumb:hover {
            background: #003da5;
        }

/* =========================================================
   TEAM USERS LIST
   ========================================================= */

.team-users-list {
    display: flex;
    flex-direction: column;
}

/* Individual User */
.team-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 5px;
    border-bottom: 1px solid #edf0f4;
    transition: background-color .2s ease;
}

    .team-user-item:last-child {
        border-bottom: none;
    }

    .team-user-item:hover {
        background: #f8faff;
    }

/* User Avatar */
.team-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf0fc;
    color: #003da5;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* User Information */
.team-user-content {
    flex: 1;
    min-width: 0;
}

.team-user-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.team-user-name {
    color: #263445;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Role Badge */
.team-user-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    background: #edf3ff;
    color: #003da5;
    font-size: 11px;
    font-weight: 600;
}

    .team-user-role i {
        font-size: 13px;
    }

/* Contact Information */
.team-user-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.team-user-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #718096;
    font-size: 12px;
}

    .team-user-contact-item i {
        color: #9aa6b5;
        font-size: 15px;
        flex-shrink: 0;
    }

    .team-user-contact-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* User Indicator */
.team-user-indicator {
    color: #16a36a;
    font-size: 19px;
    padding: 0 8px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.team-users-empty {
    padding: 55px 20px;
    text-align: center;
}

.team-users-empty-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f1f4f8;
    color: #8291a5;
}

    .team-users-empty-icon i {
        font-size: 32px;
    }

.team-users-empty h6 {
    color: #344054;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.team-users-empty p {
    color: #8491a3;
    font-size: 13px;
    margin: 0;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */

.modal-details-dialog-footer {
    border-top: 1px solid #edf0f4;
    padding: 12px 25px;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 576px) {

    /* User Details */
    .user-details {
        padding: 18px;
    }

    .user-details-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .user-profile-avatar {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 19px;
    }

    .user-profile-info h5 {
        font-size: 16px;
    }

    /* Team Users */
    .team-users-scroll {
        max-height: 60vh;
        padding-right: 5px;
    }

    .team-user-item {
        gap: 11px;
        padding: 15px 0;
        align-items: flex-start;
    }

    .team-user-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 13px;
    }

    .team-user-contact {
        flex-direction: column;
        gap: 5px;
    }

    .team-user-indicator {
        display: none;
    }

    .modal-details-dialog-footer {
        padding: 12px 18px;
    }
}




