html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;   
}

body {
    margin-bottom: 60px;
    font-family: 'Inter', sans-serif; /* Ensure it's applied to body */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}



/* Global layout + navbar styles */
.navbar {
    background-color: #F1F8F9 !important;
    padding: 10px 20px;
}

.navbar-brand img {
    max-width: 100px;
}

.navbar-nav {
    justify-content: center;
    background-color: #F1F8F9;
    padding: 5px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .navbar-nav .nav-link {
        color: #333 !important;
        font-size: 16px;
        padding: 8px 15px;
        border-radius: 20px;
        margin: 0 5px;
        transition: background-color 0.3s;
    }

        .navbar-nav .nav-link.active {
            background-color: #007B83 !important;
            color: #fff !important;
        }

        .navbar-nav .nav-link:hover {
            background-color: #e0e0e0;
        }

.nav-item.dropdown {
    position: relative;
}

    .nav-item.dropdown .nav-link {
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .nav-item.dropdown .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        z-index: 1000;
        min-width: 150px;
    }

        .nav-item.dropdown .dropdown-content a {
            display: block;
            padding: 8px 15px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
        }

            .nav-item.dropdown .dropdown-content a:hover {
                background-color: #f1f1f1;
            }

/* Search bar styles */
/*.search-icon {
    display: none;
}*/

.search-box {
    width: 100%;
    overflow: visible;
    position: relative;
}

    .search-box .dx-texteditor {
        border: 1px solid #cfd8dc !important;
        background-color: #eef0f4 !important;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        height: 34px;
        padding: 0 10px;
    }

    .search-box .dx-texteditor-input {
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        color: #333;
        font-size: 14px;
        height: 100%;
        line-height: 34px;
    }

    .search-box .dx-texteditor-input-container {
        background-color: transparent !important;
    }

    .search-box .dx-icon-search {
        color: #007B83 !important;
    }

#suggestionsList {
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
}

    .suggestion-item:hover {
        background-color: #f1f1f1;
    }

.navbar-right-section {
    display: flex;
    align-items: center;
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 34px;
/*    width: 220px;
*/    margin-left: 10px;
      margin-right:10px
}

.dx-texteditor.dx-editor-outlined {
    border-radius: 0px !important;
}


.dx-datagrid {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


    .dx-datagrid .dx-header-row {
        background-color: #007b83 !important;
        font-weight: bold;
        color: white;
        border-bottom: 2px solid #007b83;
    }

    .dx-datagrid .dx-header-cell {
        padding: 10px;
        text-transform: uppercase;
        font-size: 13px;
        border-right: 2px solid #ddd;
    }
    /* Data row styling */
    .dx-datagrid .dx-row {
        background-color: #ffffff; /* White background for rows */
        border-bottom: 1px solid #e0e0e0; /* Light gray border */
    }

    .dx-datagrid .dx-row-alt {
        background-color: #f5f5f5; /* Light gray for alternate rows */
    }

    /* Hover effect on rows */
    .dx-datagrid .dx-row:hover {
        background-color: #e3f2fd; /* Light blue background on hover */
        cursor: pointer;
    }

    /* Data cell styling */
    .dx-datagrid .dx-data-row .dx-cell {
        padding: 12px; /* Add padding inside the cells */
        font-size: 14px;
        color: #424242; /* Darker text color */
        border-right: 1px solid #e0e0e0;
    }

    /* Footer summary row styling */
    .dx-datagrid .dx-footer-row {
        background-color: #e3f2fd; /* Light blue background for footer */
        color: #007b83; /* Dark blue text color for footer */
        font-weight: bold;
        border-top: 2px solid #007b83;
    }

    /* Align buttons inside the grid (like add/edit/delete) */
    .dx-datagrid .dx-command-edit {
        text-align: center;
    }

/* Add some padding to the popup form */
.dx-popup-content {
    padding: 20px;
    margin-top: 7px;
    margin-bottom: 7px;
}

.dx-button-mode-contained.dx-button-success {
    background-color: white !important;
    color: black !important
}

.dx-button-mode-contained.dx-button-success {
    background-color: ##007b83 !important;
    color: white !important;
}


    }
    .dx-button-mode-contained.dx-button-success.dx-state-hover {
        background-color: white !important;
    }

.dx-button-mode-contained {
    background: #007b83 !important;
    color: white
}
/*.dx-button-content {
    background: #007b83 !important;
    color: white
}*/

.dx-dropdowneditor-button {
    padding: 0px;
    background: white !important;
    color: #007b83 !important;
}

    .dx-dropdowneditor-button .dx-button-content {
        background: white !important;
        color: #007b83 !important;
    }

.dx-header-filter.dx-header-filter-empty {
    color: #f1f8f9 !important;
}

.dx-datagrid-header-panel {
    background-color: #f1f8f9 !important
}


.dx-toolbar.dx-widget.dx-visibility-change-handler.dx-collection {
    padding-top: 10px
}


.dx-datagrid-search-panel.dx-show-invalid-badge.dx-textbox.dx-texteditor.dx-editor-outlined.dx-searchbox.dx-show-clear-button.dx-texteditor-empty.dx-widget {
    width: 420px !important;
}


/* Ensure search box maintains its width when focused */
.dx-datagrid-search-panel.dx-show-invalid-badge.dx-textbox.dx-texteditor.dx-editor-outlined.dx-searchbox.dx-show-clear-button.dx-widget,
.dx-datagrid-search-panel.dx-show-invalid-badge.dx-textbox.dx-texteditor.dx-editor-outlined.dx-searchbox.dx-show-clear-button.dx-widget:focus {
    width: 420px !important; /* Maintain the width when focused */
}


.dx-icon.dx-icon-xlsxfile {
    color: white !important
}

.dx-dropdowneditor-icon {
    color: #007b83 !important;
    background-color: transparent !important;
}

.dx-button-mode-contained .dx-icon {
    color: white !important
}


.dx-button-mode-text .dx-icon {
    color: white !important
}

.dx-field-item-label-content {
    /*font-family: "Inter", sans-serif !important;*/
    font-optical-sizing: auto;
    font-style: normal;
}

.dx-toolbar.dx-widget.dx-visibility-change-handler.dx-collection.dx-popup-title.dx-has-close-button {
    background-color: #007b83 !important;
    color: white !important
}

.dx-toolbar-after {
    margin: 0px;
    margin-right: 10px;
}

.dx-widget.dx-button.dx-button-mode-contained.dx-button-success.dx-button-has-text {
    margin-left: 12px
}

.dx-checkbox-container {
    border: 1px solid #d5d3d3;
    border-radius: 2px;
}

.dx-checkbox {
    display: inline-block !important;
}


.title {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

.dx-button-text {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

.dx-widget .dx-datagrid-pager.dx-pager {
    background-color: #f1f8f9 !important
}

.dx-popup-wrapper .dx-closebutton .dx-button-content {
    background-color: #007b83 !important; /* Change to your desired color */
    color: white !important; /* Change text color */
}

.dx-box-item-content {
    max-width: 99% !important;
}

.wrap-text {
    white-space: normal;
    word-break: break-word;
}

.dx-datagrid .dx-link {
    color: #007b83 !important;
}



.dx-toolbar dx-widget dx-visibility-change-handler dx-collection dx-popup-title dx-has-close-button {
    background: #0678AC;
}


.dx-toolbar .dx-icon-edit-button-addrow {
    min-width: 80px; /* Adjust width as needed */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important
}




/* ===== DevExtreme Switch – Global Theme Color ===== */


.dx-switch-handle::before {
    background-color: rgba(0, 123, 131, 0.45) !important;
}

.dx-switch:hover .dx-switch-handle::before {
    background-color: #007B83 !important;
}

.dx-switch-on-value .dx-switch-handle::before {
    background-color: #007B83 !important;
}

.dx-switch-on-value:hover .dx-switch-handle::before {
    background-color: #007B83 !important;
}

.dx-state-disabled.dx-switch .dx-switch-handle::before,
.dx-switch.dx-state-disabled .dx-switch-handle::before {
    background-color: rgba(0, 123, 131, 0.45) !important;
    opacity: 1; 
    cursor: not-allowed;
}
