﻿/* ---------------------------------------- */
/* Global font family and size across everything */
/* Global font — EXCLUDE Syncfusion icons */
body,
.e-grid,
.e-grid *:not(.e-icons):not(.e-sortfilterdiv):not([class*="e-icon"]) {
    font-family: var(--font-family);
}


    /* ---------------------------------------- */
    /* Fix ONLY DataGrid header text */
    .e-grid .e-gridheader .e-headercell .e-headertext {
        font-family: "Open Sans", sans-serif !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #A5A5A5 !important;
        background-color: #F9F9F9 !important;
        line-height: normal !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Grid header cell background */
    .e-grid .e-gridheader .e-headercell {
        background-color: #dae4ed !important;
    }

    /* ---------------------------------------- */
    /* Alternating grid row colors */
    .e-grid .e-gridcontent tr.e-row:nth-child(odd) .e-rowcell {
        background-color: #FFFFFF !important; /* White rows */
    }

    .e-grid .e-gridcontent tr.e-row:nth-child(even) .e-rowcell {
        background-color: #F9F9F9 !important; /* Light grey rows */
    }

    /* Grid content row text color */
    .e-grid .e-gridcontent .e-rowcell {
        color: #333333;
        border-bottom: 1px solid #ddd;
    }

    /* Hover row styling */
    .e-grid .e-gridcontent .e-row:hover .e-rowcell {
        background-color: #f0f4ff !important;
    }

/* ---------------------------------------- */
/* Status filter chips (white background, coloured border and text) */
    .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 0.8rem;
    font-weight: 400;
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 12px;
    border-width: 2px;
    border-style: solid;
    border-color: initial;
    border-image: initial;
    text-decoration: none;
}


    /* Specific chip colours */
    .chip.approved {
        border-color: #28a745;
        color: #28a745;
    }

    .chip.draft {
        border-color: #ffc107;
        color: #ffc107;
    }

    .chip.archived {
        border-color: #dc3545;
        color: #dc3545;
    }



/* Used in list boxes for + / - */
.btn-icon-small {
    padding: 2px 6px;
    font-size: 0.8rem;
    height: 24px;
    width: 30px;
    text-align: center;
    line-height: 1.2;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ---------------------------------------- */
/* Icon-only buttons (Edit icon) */
.btn-icon {
    background-color: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}

    .btn-icon img {
        display: block;
    }

/* Placeholder badge list container - max height with scroll */
.placeholder-scroll-container {
    max-height: 6.5rem; /* approx. 3 rows of wrapped pills */
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.e-grid .e-headercelldiv .e-icons,
.e-sortfilterdiv.e-icons {
    font-family: 'e-icons' !important;
    display: inline-block;
    font-size: 12px;
    vertical-align: middle;
}

/* Optional - tighter layout */
.placeholder-pill {
    background-color: #6c757d;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.grid-chip-column {
    display: flex;
    justify-content: center;
}

.grid-chip-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .grid-chip-column .chip {
        flex: 0;
    }



    /* Status filter chips */
    .chip.approved {
        border-color: #28a745;
        color: #28a745;
    }

    .chip.draft {
        border-color: #ffc107;
        color: #ffc107;
    }

    .chip.archived {
        border-color: #dc3545;
        color: #dc3545;
    }

    /* Subscription chips */
    .chip.foundations {
        border-color: #974789;
        color: #974789;
    }

    .chip.individual {
        border-color: #d03b6b;
        color: #d03b6b;
    }

    .chip.visions {
        border-color: #d96252;
        color: #d96252;
    }

.toast-message {
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    color: white;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: fadeInOut 0.5s ease-in-out;
}

.toast-message.success {
    background-color: #28a745;
}

.toast-message.error {
    background-color: #dc3545;
}

.toast-message.info {
    background-color: #007bff;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}




/*.chip {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}*/

    /*.chip.status-active {
        color: #28a745;
        border-color: #28a745;
        background-color: white;
    }

    .chip.status-inactive {
        color: #dc3545;
        border-color: #dc3545;
        background-color: white;
    }*/

   /*Chips*/

    .chip.approved {
        background-color: #e6f4ea;
        color: #1e7e34;
    }

    .chip.archived {
        background-color: #fdecea;
        color: #b02a37;
    }

    .chip.draft {
        background-color: #fff8e1;
        color: #9c7a00;
    }

    .chip.foundations {
        background-color: #f4eaf2;
        color: #6d2f62;
    }

    .chip.individual {
        background-color: #fdeaf0;
        color: #a12b52;
    }

    .chip.visions {
        background-color: #fff0eb;
        color: #b14a3d;
    }


h5 {
    font-family: var(--font-family);
    font-size: 25px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.25;
}




    /* ---------------------------------------- */
    /* Fix ONLY DataGrid header text */
    .e-grid .e-gridheader .e-headercell .e-headertext {
        font-family: "Open Sans", sans-serif !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #A5A5A5 !important;
        background-color: #F9F9F9 !important;
        line-height: normal !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Grid header cell background */
    .e-grid .e-gridheader .e-headercell {
        background-color: #F9F9F9 !important;
    }

    /* ---------------------------------------- */
    /* Alternating grid row colors */
    .e-grid .e-gridcontent tr.e-row:nth-child(odd) .e-rowcell {
        background-color: #FFFFFF !important; /* White rows */
    }

    .e-grid .e-gridcontent tr.e-row:nth-child(even) .e-rowcell {
        background-color: #F9F9F9 !important; /* Light grey rows */
    }

    /* Grid content row text color */
    .e-grid .e-gridcontent .e-rowcell {
        color: #333333;
        border-bottom: 1px solid #ddd;
    }

    /* Hover row styling */
    .e-grid .e-gridcontent .e-row:hover .e-rowcell {
        background-color: #f0f4ff !important;
    }

/* ---------------------------------------- */
/* Status filter chips (white background, coloured border and text) */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 0.8rem;
    font-weight: 400;
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 12px;
    border-width: 2px;
    border-style: solid;
    border-color: initial;
    border-image: initial;
    text-decoration: none;
}


    /* Specific chip colours */
    .chip.approved {
        border-color: #28a745;
        color: #28a745;
    }

    .chip.draft {
        border-color: #ffc107;
        color: #ffc107;
    }

    .chip.archived {
        border-color: #dc3545;
        color: #dc3545;
    }




/* Used in list boxes for + / - */
.btn-icon-small {
    padding: 2px 6px;
    font-size: 0.8rem;
    height: 24px;
    width: 30px;
    text-align: center;
    line-height: 1.2;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ---------------------------------------- */
/* Icon-only buttons (Edit icon) */
.btn-icon {
    background-color: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}

    .btn-icon img {
        display: block;
    }

/* Placeholder badge list container - max height with scroll */
.placeholder-scroll-container {
    max-height: 6.5rem; /* approx. 3 rows of wrapped pills */
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.e-grid .e-headercelldiv .e-icons,
.e-sortfilterdiv.e-icons {
    font-family: 'e-icons' !important;
    display: inline-block;
    font-size: 12px;
    vertical-align: middle;
}

/* Optional - tighter layout */
.placeholder-pill {
    background-color: #6c757d;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.grid-chip-column {
    display: flex;
    justify-content: center;
}


/* Status filter chips */
.chip.approved {
    border-color: #28a745;
    color: #28a745;
}

.chip.draft {
    border-color: #ffc107;
    color: #ffc107;
}

.chip.archived {
    border-color: #dc3545;
    color: #dc3545;
}

/* Subscription chips */
.chip.foundations {
    border-color: #974789;
    color: #974789;
}

.chip.individual {
    border-color: #d03b6b;
    color: #d03b6b;
}

.chip.visions {
    border-color: #d96252;
    color: #d96252;
}

.toast-message {
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    color: white;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: fadeInOut 0.5s ease-in-out;
}

    .toast-message.success {
        background-color: #28a745;
    }

    .toast-message.error {
        background-color: #dc3545;
    }

    .toast-message.info {
        background-color: #007bff;
    }

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}




/*.chip {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}*/

/*.chip.status-active {
        color: #28a745;
        border-color: #28a745;
        background-color: white;
    }

    .chip.status-inactive {
        color: #dc3545;
        border-color: #dc3545;
        background-color: white;
    }*/

/*Chips*/
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    min-height: 34px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    border-radius: 6px;
    white-space: nowrap;
    user-select: none;
    border: none;
}



    .chip.approved {
        background-color: #e6f4ea;
        color: #1e7e34;
    }

    .chip.archived {
        background-color: #fdecea;
        color: #b02a37;
    }

    .chip.draft {
        background-color: #fff8e1;
        color: #9c7a00;
    }

    .chip.foundations {
        background-color: #f4eaf2;
        color: #6d2f62;
    }

    .chip.individual {
        background-color: #fdeaf0;
        color: #a12b52;
    }

    .chip.visions {
        background-color: #fff0eb;
        color: #b14a3d;
    }


h5 {
    font-family: var(--font-family);
    font-size: 25px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.25;
}



/*Report Filters/Buttons*/
.report-controls-inner {
    width: fit-content; 
}


.report-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}


.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}


.filter-actions-left,
.filter-actions-right {
    display: flex;
    gap: 8px;
}


.filter-actions .btn,
.filter-actions .e-btn {
    height: 44px;
    min-width: 120px;
}

/*Dashboard*/
.dashboard-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    .dashboard-stat h6 {
        min-height: 44px; 
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .dashboard-stat .display-6 {
        line-height: 1.1;
        margin: 0;
    }

.users-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.users-page {
    overflow: hidden;
}

.users-grid-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}


.organisations-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden; 
}


.organisations-grid-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto; 
}

/*Logout*/

.user-info {
    font-family: var(--font-family);
    line-height: 1.25;
}

    .user-info span:first-child {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
    }

    .user-info span:last-child {
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.75);
    }

.account-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 240px;
    background-color: var(--secondary-color);
    border-radius: 6px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 0;
    overflow: hidden; 
}


.account-header {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    background-color: var(--e-grid-header-bg);
    padding: 13px 14px;
    line-height: 18px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--e-grid-header-border-color);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.account-menu .dropdown-item {
    display: block; 
    width: 100%;
    margin: 0; 
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    border-radius: 0; 
    text-align: left;
    cursor: pointer;
}

    .account-menu .dropdown-item i {
        font-size: 16px;
        margin-right: 10px;
        color: inherit;
    }

    .account-menu .dropdown-item:hover {
        background-color: rgba(64, 128, 160, 0.15);
    }

    .account-menu .dropdown-item.text-danger {
        color: #dc3545;
    }

        .account-menu .dropdown-item.text-danger:hover {
            background-color: rgba(220, 53, 69, 0.12);
        }

    .account-menu .dropdown-item:last-child {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }

.sidebar,
.sidebar * {
    font-size: 18px; 
    line-height: 1.4;
}

/*Logout*/
.app-sfmodal.e-dialog {
    font-family: var(--font-family);
    background-color: #ffffff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

    .app-sfmodal.e-dialog .e-dlg-header-content {
        background-color: var(--e-grid-header-bg);
        border-bottom: 1px solid var(--e-grid-header-border-color);
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .app-sfmodal.e-dialog .e-dlg-header {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-color);
        letter-spacing: 0.05em;
        margin: 0;
        text-align: center;
    }

    .app-sfmodal.e-dialog
    .e-dlg-header-content
    .e-btn.e-dlg-closeicon-btn {
        position: absolute !important;
        right: 12px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px;
        height: 32px;
        padding: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        cursor: pointer;
    }

        .app-sfmodal.e-dialog
        .e-dlg-header-content
        .e-btn.e-dlg-closeicon-btn:hover {
            background-color: rgba(0, 0, 0, 0.06);
            border-radius: 4px;
            color: #343a40;
        }

    .app-sfmodal.e-dialog .e-dlg-content {
        padding: 0;
    }

.modal-body-custom {
    padding: 20px 20px 28px 20px;
    text-align: center;
}

.logout-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-body-custom h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.modal-body-custom p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    margin: 0;
}

.modal-body-custom .btn {
    height: 44px;
    min-width: 120px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: none !important;
    transform: none !important; 
}

    .modal-body-custom .btn.btn-light {
        background-color: #dc3545 !important; 
        color: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        transition: background-color 0.15s ease-in-out;
    }

        .modal-body-custom .btn.btn-light:hover {
            background-color: #c82333 !important; 
        }

        .modal-body-custom .btn.btn-light:active {
            background-color: #a71d2a !important;
        }

        .modal-body-custom .btn.btn-light:focus,
        .modal-body-custom .btn.btn-light:focus-visible {
            outline: none !important;
            box-shadow: none !important;
        }


.modal-body-custom .btn-danger {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none !important;
}

    .modal-body-custom .btn-danger:hover,
    .modal-body-custom .btn-danger:focus,
    .modal-body-custom .btn-danger:active {
        background-color: #356c87; 
        color: #ffffff;
        border: none !important;
    }

.e-dlg-overlay {
    background-color: rgba(0, 0, 0, 0.45);
}



