﻿/* ===========================
   # Typography & Titles
   =========================== */
.custom-title {
    position: absolute;
    top: 33px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

.modal-title-ch,
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
}
.custom-tab-active {
    color: #EB8435 !important;
}
.page-title {
    font-size: 22px;
    margin-bottom: 0;
}

/* ===========================
   # Buttons
   =========================== */
.btn_modal-success_chronicle {
    width: 127.5px;
    height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    background: #EB8435;
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_modal-close_chronicle {
    width: 127.5px;
    height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #D9DBDE !important;
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   # Modal: Slide from Right
   =========================== */
.modal.right .modal-dialog {
    width: 41vw;
    height: 100vh;
    max-width: none;
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease-out;
}

.modal.right.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

.modal.right .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.modal.right .modal-header,
.modal.right .modal-footer {
    flex-shrink: 0;
    padding: 1rem;
    background: #fff;
}

.modal.right .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}

.modal-footer.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid #dee2e6;
}

/* ===========================
   # Layout Utilities
   =========================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 10px;
}

.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===========================
   # Search Input
   =========================== */
.search-input {
    width: 322px;
    height: 40px;
    border-radius: 8px;
}

.search-group {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    border-radius: 8px;
}

    .search-group i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #A0A6B0;
    }

    .search-group input {
        padding-left: 36px;
    }

/* ===========================
   # Selected Bar (Multi-Select UI)
   =========================== */
.selectedBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #30434C;
    border-radius: 8px;
    height: 56px;
}

.selectedBar_container {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.selectedBar_deleteButton {
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .selectedBar_deleteButton:hover {
        text-decoration: underline;
    }

.selectedCount {
    font-weight: 700;
}

.selectedText {
    margin-right: 16px;
}

/* ===========================
   # Syncfusion Grid Customizations
   =========================== */
.e-grid {
    border: none !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(16, 30, 54, 0.08);
}

    .e-grid .e-headercell {
        height: 50px !important;
        background: #FCFCFD !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 16px !important;
        padding: 8px 8px !important;
        color: #0C111D !important;
        border-bottom: 1px solid #F2F4F7 !important;
    }

    .e-grid .e-headercelldiv {
        font-size: 12px !important;
        margin: -7px -7px -7px -6px !important;
    }

    .e-grid .e-rowcell {
        color: var(--Gray-400, #626468) !important;
        font-family: Montserrat !important;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 18px;
        border-left: 0;
        border-bottom: 1px solid var(--Gray-100, #F2F4F7);
    }

    .e-grid .e-row {
        height: 50px !important;
        border-bottom: 1px solid #ccc !important;
    }

        .e-grid .e-row.e-selectionbackground {
            background-color: #FFE6CC !important;
        }

    .e-grid .e-rowcell.e-check {
        text-align: center !important;
        vertical-align: middle !important;
    }

    .e-grid .e-row:hover {
        background-color: #f9f9f9 !important;
    }

.spinnerContainer {
    position: fixed !important;
    z-index: 500000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    /*background-color: #00000017 !important;*/
    background: rgba(0,0,0,0.30);
    backdrop-filter: blur(0.3px);
    /*    margin-top: 8px !important;*/
    user-select: none !important;
}

.spinnerIcon {
    width: 60px !important;
    height: 60px !important;
}

/* Responsive Grid Header */
.e-grid .e-gridheader {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-top-style: none;
    padding: 0 !important;
}

/* Rounded grid container with shadow */
.rounded-grid.responsive-grid-container {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-left: 12px !important;
    margin-right: 12px !important;
}
.rounded-grid.responsive-grid-container-modal {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-left: 0px !important;
    margin-right: 0px !important;
}
/* Responsive grid height */
.responsive-grid-container {
    max-height: calc(100vh - 150px) !important;
    min-height: 120px;
    overflow-y: auto;
}

/* Sticky pager at bottom */
.e-grid .e-gridpager {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
}

/* Pager container: remove border, add spacing */
.e-pager .e-pagercontainer {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 8px;
}

    /* Remove borders from pager navigation buttons */
    .e-pager .e-pagercontainer .e-firstpage,
    .e-pager .e-pagercontainer .e-prevpage,
    .e-pager .e-pagercontainer .e-firstpagedisabled,
    .e-pager .e-pagercontainer .e-prevpagedisabled,
    .e-pager .e-pagercontainer .e-nextpage,
    .e-pager .e-pagercontainer .e-lastpage,
    .e-pager .e-pagercontainer .e-nextpagedisabled,
    .e-pager .e-pagercontainer .e-lastpagedisabled {
        border-right-style: none;
        border-left-style: none;
    }

/* Remove border from pager number items */
.e-pager .e-numericitem {
    border-right-style: none;
    color: black;
}

/* Current page item styling */
.e-pager .e-currentitem,
.e-pager .e-currentitem:hover {
    color: black;
    border: none;
}

/* Pager icons color */
.e-pager div.e-icons.e-pager-default {
    color: black;
}

/* Remove focus shadow from grid cells */
.e-grid .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
    box-shadow: unset;
}

.e-pager .e-spacing, .e-pager .e-numericitem:hover, .e-pager .e-currentitem {
    padding: 7.4px 10.5px 8.4px 9.5px;
}

.e-pager .e-numericitem:hover {
    color: black;
}

.validation-message {
    color: var(--Brand-50, #FFAF80) !;
    font-size: 12px;
}

.invalid {
    outline: none !important;
    /* border: 1px solid var(--Brand-50, #FFAF80);
    box-shadow: 0px 0px 1px 2px rgba(255, 175, 128, 0.25);*/
}

.form-control:focus {
    border: 1px solid var(--Brand-50, #FFAF80);
    box-shadow: 0px 0px 1px 2px rgba(255, 175, 128, 0.25);
}

.valid.modified:not([type=checkbox]) {
    outline: none !important;
}

.form-control-lg {
    /*display: flex;*/
    padding: var(--spacing_12, 12px) !important;
    justify-content: center !important;
    align-items: center !important;
    gap: var(--spacing_8, 8px) !important;
    outline: 0 !important;
    border-radius: var(--radius_8, 7px) !important;
    border: 1px solid var(--Border-Button-Border, #D9DBDE) !important;
    /*background: var(--Background-Input-BG, #FFF);*/
    border-radius: var(--radius_8, 7px) !important;
    box-shadow: 0px 1px 2px 0px rgba(12, 17, 29, 0.05) !important;
}

.from-date {
    border: 0px !important;
    border-radius: 7px !important;
    height: auto !important;
}

.e-pager .e-numericitem:hover {
    color: black;
}

.cls-custom {
    width: 200px;
    height: 40px;
    border-radius: 8px;
}

.e-grid .e-dialog.e-checkboxfilter, .e-grid-popup .e-dialog.e-checkboxfilter {
    min-height: 211px !important;
    max-height: 224px !important;
}

.e-dialog .e-dlg-content {
    overflow: hidden;
}

.e-grid {
    /*min-width: 600px;*/
    width: 100% !important;
}

    .e-grid .e-headercell:first-child {
        padding-right: 0 !important;
    }

@media (max-width: 900px) {
    .e-grid {
        min-width: 700px;
    }
}

@media (max-width: 700px) {
    .e-grid {
        min-width: 500px;
    }
}

.chronic-bg-secondary {
    background-color: #80C0D3 !important;
    color: #FFFFFF !important;
    transition: background-color 0.2s ease-in-out !important;
}

    .chronic-bg-secondary:hover {
        background-color: #0281A7 !important;
        color: #FFFFFF !important;
    }

.actions .btn {
    height: 40px;
}

.e-grid .e-rowcell:first-child {
    padding-right: 0 !important;
}


.e-grid .e-headercell.auto-checkbox,
.e-grid .e-rowcell.auto-checkbox {
    width: 40px !important;
}


/* Center the Syncfusion DatePicker popup within the modal */
/*.e-popup {
    position: fixed !important;
    top: 16% !important;
    left: 65% !important;*/
/*transform: translate(-50%, -50%) !important;*/
/*z-index: 1055; 
}*/

.e-date-wrapper {
    border-radius: var(--radius_8, 7px) !important;
    box-shadow: 0px 1px 2px 0px rgba(12, 17, 29, 0.05) !important;
}

.e-input-group.e-success, .e-input-group.e-control-wrapper.e-success, .e-input-group.e-success:not(.e-float-icon-left), .e-input-group.e-control-wrapper.e-success:not(.e-float-icon-left) {
    border-color: #d9dbde !important;
}

    .e-input.e-success, .e-input.e-success:focus, .e-input-group.e-success input.e-input, .e-input-group.e-control-wrapper.e-success input.e-input, .e-input-group.e-success .e-input-group-icon, .e-input-group.e-control-wrapper.e-success .e-input-group-icon, .e-input-group.e-success textarea.e-input, .e-input-group.e-control-wrapper.e-success textarea.e-input {
        border-color: #d9dbde !important;
    }

    .e-input-group.e-success .e-input-group-icon, .e-input-group.e-control-wrapper.e-success .e-input-group-icon, .e-input-group.e-warning .e-input-group-icon, .e-input-group.e-control-wrapper.e-warning .e-input-group-icon, .e-input-group.e-error .e-input-group-icon, .e-input-group.e-control-wrapper.e-error .e-input-group-icon {
        color: #d9dbde !important;
    }

.e-input-group-icon.e-date-icon.e-icons {
    display: none !important;
}

/* Adjust width and height of the Bootstrap datepicker popup */
/*.datepicker-dropdown {
    min-width: 320px !important;*/ /* Set your preferred width */
/*min-height: 300px !important;*/ /* Set your preferred height */
/*font-size: 1.8rem !important;*/ /* Optional: make text larger */
/*}*/

/*color change form toggle button in system report*/
.e-switch-wrapper .e-switch-off, .e-css.e-switch-wrapper .e-switch-off {
    background-color: #e9ecef;
}

.e-switch-wrapper .e-switch-handle, .e-css.e-switch-wrapper .e-switch-handle {
    background-color: #fff;
}

.e-switch-wrapper.custom-iOS .e-switch-inner.e-switch-active,
.e-switch-wrapper.custom-iOS .e-switch-inner.e-switch-active .e-switch-on {
    background-color: #30434C !important;
    border-color: #30434C !important;
}

.e-switch-wrapper.custom-iOS .e-switch-inner,
.e-switch-wrapper.custom-iOS .e-switch-inner .e-switch-on,
.e-switch-wrapper.custom-iOS .e-switch.e-checked {
    background-color: #fff !important;
}

    .e-switch-wrapper.custom-iOS .e-switch.e-checked .e-switch-handle {
        background-color: #30434C !important;
    }

.e-switch-wrapper.custom-iOS .e-switch:not(.e-checked) .e-switch-handle {
    background-color: #fff !important;
}

.e-switch-wrapper.custom-iOS {
    width: 50px;
    height: 20px;
}

    .e-switch-wrapper.custom-iOS .e-switch-handle {
    }

        .e-switch-wrapper.custom-iOS .e-switch-handle.e-switch-active {
            margin-left: -18px;
        }

    .e-switch-wrapper.custom-iOS .e-switch-inner,
    .e-switch-wrapper.custom-iOS .e-switch-handle {
    }

@media (max-width: 1100px) {
    .modal.right .modal-dialog {
        width: 53vw !important;
    }
}
.nav-tabs .nav-link {
    color: black !important;
}

    .nav-tabs .nav-link.active {
        color: #EB8435 !important;
    }
.min-width-button {
    min-width: 126px;
}
   
/*datepicker*/
/* Modern, clean look for the datepicker popup */
.datepicker-dropdown {
    min-width: auto;
    max-width: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(60, 60, 90, 0.15), 0 1.5px 4px rgba(60, 60, 90, 0.08);
    border: none;
    padding: 0.75rem 1rem;
    background: #fff;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif !important;
    font-size: 1.1rem;
    color: #222;
    z-index: 1050; /* Ensure it stays above modals */
    animation: fadeInUp 0.22s cubic-bezier(.4,0,.2,1);
}

/* Center popup on laptop/tablet viewports */
/*@media screen and (min-width: 768px) and (max-width: 1366px) {
    .datepicker-dropdown {
        left: 80% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: absolute !important;
        min-width: auto;
        max-width: auto;
    }
}*/

/* Improve display on very small screens */
@media screen and (max-width: 767px) {
    .datepicker-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        min-width: auto;
        max-width: auto;
        width: auto;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        z-index: 9999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }

    .datepicker-days td,
    .datepicker-days th {
        padding: 0.4em 0.3em;
        font-size: 0.95em;
    }
}


/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header (month/year) styling */
.datepicker-days .datepicker-switch,
.datepicker-days .prev,
.datepicker-days .next {
    color: #30434C;
    letter-spacing: 0.5px; /* Slight spacing between characters */
    padding: 0.4rem 0.75rem; /* Adds padding around text */
    word-spacing: 4px; /* Adds spacing between month and year */
    font-weight: 600;
    font-size: 1.1rem;
    background: none;
    border-radius: 8px;
    transition: background 0.2s;
}

    .datepicker-days .datepicker-switch:hover,
    .datepicker-days .prev:hover,
    .datepicker-days .next:hover {
        background: #f0f4ff;
    }

.datepicker table tr td span {
    width: 31% !important;
}

.datepicker-months {
    width: 100% !important;
}

/* Day cells */
.datepicker-days td, .datepicker-days th {
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    padding: 0.6em 0.7em;
}

    /* Today highlight */
    .datepicker-days td.today {
        background: #e3f2fd;
        color: #1976d2;
        border-radius: 8px;
    }

    /* Selected day */
    .datepicker-days td.active, .datepicker-days td.active:hover {
        background: #EB8435 !important;
        color: #fff !important;
        border-radius: 8px;
        font-weight: bold;
    }

    /* Hover effect */
    .datepicker-days td:hover:not(.active):not(.disabled) {
        background: #f0f4ff;
        color: #1976d2;
        cursor: pointer;
    }

    /* Disabled days */
    .datepicker-days td.disabled, .datepicker-days td.disabled:hover {
        color: #b0b0b0;
        background: none;
        cursor: not-allowed;
    }

/* Input focus style */
input.form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
    outline: none;
}

/* Remove default Bootstrap datepicker arrow */
.datepicker-dropdown.datepicker-orient-bottom::after,
.datepicker-dropdown.datepicker-orient-bottom::before {
    display: none !important;
}

.datepicker {
    font-size: 13px !important;
}

    .datepicker table tr td span.active.active {
        background-color: #EB8435 !important;
        background-image: linear-gradient(to bottom, #EB8435, #EB8435) !important;
    }

    .datepicker table tr td.today {
        background-image: linear-gradient(to bottom, #fdd49a, #fdd49a) !important;
    }
.e-grid .e-spinner-pane {
    display: none !important;
}

.custom-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: none; 
    z-index: 2000;
}

