html,
body,
button,
input,
textarea,
select,
option {
    font-family: var(--app-font-family) !important;
}

html,
body {
    height: 100%;
}

/* Syncfusion text controls */
.e-control,
.e-input,
.e-input-group input,
.e-input-group textarea,
.e-float-input input,
.e-float-input textarea,
.e-ddl .e-input,
.e-dropdownbase .e-list-item,
.e-popup,
.e-grid,
.e-grid .e-headertext,
.e-grid .e-rowcell,
.e-toolbar,
.e-toolbar .e-tbar-btn-text,
.e-pager,
.e-dialog,
.e-btn {
    font-family: var(--app-font-family) !important;
}

:root {
    --app-font-family: 'Montserrat', sans-serif;
    --bs-primary: #7319ba !important;
    --bs-primary-rgb: 115, 25, 186;
    --bs-secondary: #2E3192;
    --bs-secondary-rgb: 46, 49, 146;
    --bs-success: #22c55e; 
    --bs-info: #38bdf8; 
    --bs-warning: #f59e0b; 
    --bs-danger: #ef4444; 
    --bs-light: #f5f3ff;
    --bs-dark: #1e1b4b;
    --bs-body-bg: #f8f9ff;
    --bs-body-color: #1f2937;
    --bs-border-color: #e0e7ff;
    --bs-secondary-color: #6b7280;
    --bs-link-color: #7319ba;
    --bs-link-hover-color: #5b1394;
}
:root {
    --sf-primary: var(--bs-primary); /* App primary (violet) */
    --sf-secondary: var(--bs-secondary); /* App secondary (blue) */
    --sf-success: var(--bs-success); /* App success */
    --sf-info: var(--bs-info); /* App info */
    --sf-warning: var(--bs-warning); /* App warning */
    --sf-danger: var(--bs-danger); /* App danger */
    --sf-light: var(--bs-light); /* App light */
    --sf-dark: var(--bs-dark); /* App dark */
    --sf-white: #fff;
}

.e-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}
.text-success {
    color: var(--bs-success) !important;
}
.invoice-filter-container > button {
    width:100px !important;
}
.btn-primary {
    background-color: var( --bs-primary);
    border-color: var( --bs-primary);
}

    .btn-primary:hover {
        background-color: #62159e;
        border-color: #62159e;
    }

.btn-secondary {
    background-color: #2E3192;
    border-color: #2E3192;
}

.btn-info {
    background-color: #6b9bd1;
    border-color: #6b9bd1;
}

.btn-success {
    background-color: #5eb103;
    border-color: #5eb103;
}

.btn-warning {
    background-color: #ffc470;
    border-color: #ffc470;
    color: #000;
}

.btn-danger {
    background-color: #f70165;
    border-color: #f70165;
}

.bg-primary {
    background-color: var( --bs-primary) !important;
}

.text-primary {
    color: var( --bs-primary) !important;
}
.text-secondary {
    color: var( --bs-secondary) !important;
}
.text-info {
    color: var(--bs-info) !important;
}

.text-success {
    color: var(--bs-success) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-light {
    color: var(--bs-light) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

.border-primary {
    border-color: var( --bs-primary) !important;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


/* Custom Styles */
.img-brand {
    height: 35px;
    margin-left:10px;
}
#main-content {
    padding:0 2vw;
}
.nav-container {
    min-width: 1330px;
    max-width: 100vw;
    padding:0 2vw;
}
.app-navbar {
    display: flex;
    justify-content: space-between;
    height: 50px;
}
.nav-buttons{
    display:flex;
    height:50px;
    max-width:300px;
    min-width:0;
}
.container {
    min-width: 1330px;
    max-width: 100vw;
}
body {
    color: #565859;
    color: #2c3137;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    background-color: #d1d5da;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1 0 auto;
}


/* Syncfusion Grid Styles */
.e-grid .e-headercell {
    background-color: var( --bs-primary) !important;
    color: white;
}

.e-headercell .e-icons {
    color: white !important;
}

.e-pdfexport.e-icons {
    color: #f70165 !important;
}

button:hover:has(.e-pdfexport) {
    background-color: #f70165 !important;
}

.e-excelexport.e-icons {
    color: #5eb103 !important;
}

button:hover:has(.e-excelexport) {
    background-color: #5eb103 !important;
    color: white;
}

    button:hover:has(.e-excelexport) .e-excelexport,
    button:hover:has(.e-pdfexport) .e-pdfexport {
        color: white !important;
    }

.e-grid .e-row:hover .e-rowcell {
    background-color: #faf7f2 !important;
}

.e-grid .e-row.e-altrow {
    background-color: #f5f1ea;
}

.e-grid .e-toolbar-items .e-toolbar-item.e-search-wrapper .e-search {
    width: 30vw !important;
}

.e-grid {
    font-family: "Montserrat", sans-serif !important;
}

    .e-grid.e-resize-lines .e-headercell .e-rhandler,
    .e-grid.e-resize-lines .e-headercell .e-rsuppress {
        border: 1px solid #7319ba !important;
    }

    .e-grid .italic-row td {
        font-style: italic;
    }

#searchPatientsGrid_searchbar, #priorAuthGrid_searchbar {
    height: 40px !important;
    font-size: 18px;
    padding: 6px 10px;
}

#searchPatientsGrid_toolbarItems, #priorAuthGrid_toolbarItems {
    height: 60px !important;
}
    
#historyGrid_ccdlg, #prescriberGrid_ccdlg, #routingGrid_ccdlg,
#backOfficeGrid_ccdlg, #patientInvoiceGrid_ccdlg, #authorizationGrid_ccdlg {
    z-index: 999999 !important;
    top: -370px !important;
    bottom: auto !important;
}

/* Search Icon */
.e-btn-icon.e-search-icon:before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

#notdefined-details.tab-pane.fade {
    opacity: 1 !important;
}

#account-management .tab-pane.fade {
    opacity: 1 !important;
}

#account-management .tab-pane.fade.show {
    opacity: 1 !important;
}

#account-management-sidebar .nav a.tab.disabled {
    color: var(--bs-secondary-color) !important;
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Turn bootstrap-switch controls into small, flat, color-state pills */
#invoiceStatusSwitchGroup .invoice-status-switch.bootstrap-switch,
#invoiceStatusSwitchGroup .bootstrap-switch {
    border: none;
    border-radius: 16px;
    background-color: #c7c9cc;
    box-shadow: none;
}

    #invoiceStatusSwitchGroup .bootstrap-switch .bootstrap-switch-handle-on,
    #invoiceStatusSwitchGroup .bootstrap-switch .bootstrap-switch-handle-off {
        background-color: transparent !important;
        color: transparent !important;
        width: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    #invoiceStatusSwitchGroup .bootstrap-switch .bootstrap-switch-label {
        background-color: #e9e9e9;
        color: #555;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .3px;
        padding: 6px 12px;
        border-radius: 16px;
        white-space: nowrap;
        transition: background-color .2s ease-in-out, color .2s ease-in-out;
    }

    #invoiceStatusSwitchGroup .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label {
        background-color: var(--bs-primary, #7319ba);
        color: #fff;
    }

    #invoiceStatusSwitchGroup .bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label,
    #invoiceStatusSwitchGroup .bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
        font-size: 11px;
        padding: 5px 10px;
        line-height: 1.3;
        white-space: nowrap;
    }

/* Legal Center modal */
#legalCenterModal .modal-dialog {
    max-width: 900px;
    width: 90vw;
}

#legalCenterModal .modal-body {
    padding: 0;
    overflow: hidden;
}

.legal-center-modal-body .legal-center-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    height: 70vh;
    max-height: 70vh;
    border: none;
    background: #fff;
}

.legal-center-modal-body .legal-center-sidebar {
    border-right: 1px solid #eceff6;
    background: #fafbff;
    padding: 16px 0;
    overflow-y: auto;
}

.legal-center-modal-body .legal-center-title {
    padding: 0 18px 12px 18px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a7f8a;
}

.legal-center-modal-body .legal-center-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: #7a7f8a;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

    .legal-center-modal-body .legal-center-link i {
        width: 18px;
        text-align: center;
        color: #9aa3b2;
    }

    .legal-center-modal-body .legal-center-link:hover {
        color: #4c5668;
        background: #f5f7fc;
        text-decoration: none;
    }

    .legal-center-modal-body .legal-center-link.active {
        color: #333;
        border-left-color: var(--bs-primary);
        background: #fff;
    }

        .legal-center-modal-body .legal-center-link.active i {
            color: var(--bs-primary);
        }

.legal-center-modal-body .legal-center-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
    scroll-behavior: smooth;
}

#contact-management, #account-management {
    margin: -55px -40px -40px -40px;
}