/* :root {
  --body: #434343;
  --primary: #0C2340;
  --secondary: #00629B;
  --accentA: #D6A461;
  --accentB: #BA0C2F;
  --accentC: #00859B;
  --accentD: #BBBCBC;
  --hover: #74A9C8;
  --White: #ffffff;
  --Black: #000;
  --bgPrimary: #F4F4F4;
  --bgA: #E8F4F6;
  --bgB: #F4F4F4;
  --bgC: #CDDFEB;
  --error: #ff0000;
  --addbtn: #018409;
  Heading Font
  --headingFont: "Poppins", sans-serif;
  --paraFont: "Open Sans", sans-serif;


  both Poppins & Open Sans
  --light: 300;
  --regular: 400;
  --medium: 500;
  --semiBold: 600;
  --Bold: 700;
  --ExtraBold: 800;
  styles italic or normal

} */
/* Above are the global root colors for the site. Please do not add any colors that are not apart of the this root. 
If we need to add a color it must be approved and added to the root.
How to use root color. 

.example{
    color: var(--accentA);
} */

/* Users login attempts _SearchFilter for users  */
.mainCon .inputunset {
    width: unset;
}

.admin-actions-section .button-wrapper button {
    margin-right: .5rem;
}

.ui-dialog-buttonset button {
    padding: .5rem 1rem;
    border-radius: 0;
    margin-right: .5rem;
}

.Users-modal .ui-dialog-titlebar-close:hover::before,
.Users-modal .ui-dialog-titlebar-close:hover {
    color: white;
    background: transparent;
}

/* Fix jQuery UI Dialog transparent background */

.ui-dialog {
    z-index: 1;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: fixed !important;
    top: 44px !important;
    left: 0px !important;
    right: 0 !important;
    margin: auto !important;
    background: var(--White);
}

/* CSS-driven sizing for user dialogs (no JS width math) */
.user-form-dialog {
    width: 100% !important;
    max-width: 1100px !important;
}

.user-form-dialog .ui-dialog-content {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.ui-dialog .ui-dialog-titlebar {
    /* background-color: #f5f5f5 !important;
        border-bottom: 1px solid #ddd !important; */
    padding: 12px 15px;
    border-radius: 5px 5px 0 0;
}

.ui-dialog .ui-dialog-title {
    color: var(--White);

}

.ui-dialog .ui-dialog-content {
    background-color: var(--White);
    padding: 15px;
    overflow: scroll;
    scroll-behavior: auto;
}

.ui-dialog .ui-dialog-buttonpane {
    /* background-color: #f5f5f5 !important;
        border-top: 1px solid #ddd !important; */
    padding: 10px 15px;
}

/* Dialog overlay/backdrop */
.ui-widget-overlay {
    /* background: #000000 !important; */
    opacity: 0.5 !important;
    z-index: 0;
}

/* Fix autocomplete dropdown transparency for Organization Name lookup */
.ui-autocomplete {
    /* background-color: #ffffff !important;
        border: 1px solid #ccc !important; */
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1 !important;
}

.ui-autocomplete .ui-menu-item {
    background-color: #ffffff;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-menu-item.ui-state-focus,
.ui-autocomplete .ui-menu-item.ui-state-active {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper {
    padding: 5px 0;
    color: #333;
}

.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background-color: transparent !important;
    border: none !important;
}

/* Autocomplete item styling for organization display */
.ui-autocomplete .autocomplete-item-name {
    display: block;
}

.ui-autocomplete .autocomplete-item-detail {

    display: block;
}

/* Bulk Password Reset Dialog Styles */
.bulk-pwd-reset-dialog {
    display: none;
}



.bulk-pwd-reset-dialog .dialog-header {

    margin-bottom: 15px;

}

.bulk-pwd-reset-dialog .dialog-message {
    margin-bottom: 15px;
    line-height: 1.5;
}

.bulk-pwd-reset-dialog .warning-text {
    color: #d9534f;

}

.bulk-pwd-reset-dialog .progress-container {
    display: none;
    margin: 15px 0;
}

.bulk-pwd-reset-dialog .progress-bar-wrapper {
    background-color: #e9ecef;
    border-radius: 4px;
    height: 25px;
    overflow: hidden;
}

.ui-dialog-titlebar-close {
    position: absolute;
    right: 0;
    width: 38px;
    height: 33px;
}

.bulk-pwd-reset-dialog .progress-bar {
    background-color: #28a745;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.bulk-pwd-reset-dialog .progress-text {
    margin-top: 5px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.bulk-pwd-reset-dialog .result-container {
    display: none;
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
}

.bulk-pwd-reset-dialog .result-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bulk-pwd-reset-dialog .result-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.bulk-pwd-reset-dialog .dialog-buttons {
    margin-top: 20px;
    text-align: right;
}

.bulk-pwd-reset-dialog .dialog-buttons button {
    margin-left: 10px;
    padding: 8px 20px;
}

/* Active Sessions Dialog Styles */
.active-sessions-dialog {
    display: none;
}


.active-sessions-dialog .sessions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}

.active-sessions-dialog .sessions-table th,
.active-sessions-dialog .sessions-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.active-sessions-dialog .sessions-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.active-sessions-dialog .sessions-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.active-sessions-dialog .sessions-table tr:hover {
    background-color: #f1f1f1;
}

.active-sessions-dialog .session-actions {
    white-space: nowrap;
}

.active-sessions-dialog .session-actions button {
    margin: 2px;
    padding: 4px 8px;
    font-size: 0.85em;
}

.active-sessions-dialog .session-info {
    font-size: 0.85em;
    color: #666;
}

.active-sessions-dialog .session-user-info {
    display: flex;
    flex-direction: column;
}

.active-sessions-dialog .session-username {
    font-weight: 600;
}

.active-sessions-dialog .session-email {
    font-size: 0.85em;
    color: #666;
}

.active-sessions-dialog .session-locked {
    color: #d9534f;
    font-weight: bold;
}

.active-sessions-dialog .no-sessions-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.active-sessions-dialog .loading-sessions {
    text-align: center;
    padding: 30px;
}

.active-sessions-dialog .refresh-button {
    margin-bottom: 10px;
}

.active-sessions-count-badge {
    background-color: var(--accClght);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Login Attempts Dialog Styles */
.login-attempts-dialog {
    display: none;
}

/* .login-attempts-dialog .dialog-content {
        padding: 15px;
        overflow: hidden;
        max-width: 100%;
    }  */

.login-attempts-dialog .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.login-attempts-dialog .filter-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.login-attempts-dialog .filter-item label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.login-attempts-dialog .filter-item select,
.login-attempts-dialog .filter-item input {
    padding: 6px 10px;

}

.login-attempts-dialog .summary-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.login-attempts-dialog .summary-card {
    background-color: #f5f5f5;
    padding: 12px 20px;
    border-radius: 6px;
    max-width: 250px;
    text-align: center;
    flex: 0 0 auto;
    width: 100%;
}

.login-attempts-dialog .summary-card.success {
    background-color: var(--bgPrimary);
}

.login-attempts-dialog .summary-card.failed {
    background-color: var(--bgA);
}

.login-attempts-dialog .summary-card.locked {
    background-color: var(--bgB);
}

.login-attempts-dialog .summary-card.total {
    background-color: var(--bgC);
}

.login-attempts-dialog .summary-number {
    font-size: 1.5em;
    font-weight: bold;
}

.login-attempts-dialog .summary-label {
    font-size: 0.8em;
    color: #666;
}

.login-attempts-dialog .login-attempts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    table-layout: fixed;
}

.login-attempts-dialog .login-attempts-table th,
.login-attempts-dialog .login-attempts-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-attempts-dialog .login-attempts-table th {
    background-color: #f4f4f4;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.login-attempts-dialog .login-attempts-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.login-attempts-dialog .login-attempts-table tr:hover {
    background-color: #f1f1f1;
}

.login-attempts-dialog .status-success {
    color: #28a745;
    font-weight: 600;
}

.login-attempts-dialog .status-failure {
    color: #dc3545;
    font-weight: 600;
}

.login-attempts-dialog .status-locked {
    color: #fd7e14;
    font-weight: 600;
}

.login-attempts-dialog .status-warning {
    color: #ffc107;
    font-weight: 600;
}

.login-attempts-dialog .status-info {
    color: #17a2b8;
    font-weight: 600;
}

.login-attempts-dialog .pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.login-attempts-dialog .pagination-info {
    font-size: 0.9em;
    color: #666;
}

.login-attempts-dialog .pagination-buttons button {
    margin: 0 2px;
    padding: 5px 10px;
}

.login-attempts-dialog .loading-data {
    text-align: center;
    padding: 30px;
}

.login-attempts-dialog .no-data-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.login-attempts-dialog .grouped-user-row {
    cursor: pointer;
}

.login-attempts-dialog .grouped-user-row:hover {
    background-color: #e9ecef !important;
}

/* User info cell styling */
.login-attempts-dialog .user-info-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.login-attempts-dialog .user-info-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: baseline;
}

.login-attempts-dialog .user-info-label {
    font-size: 0.7em;
    color: #888;
    font-weight: 600;
    min-width: 50px;
    flex-shrink: 0;
}

.login-attempts-dialog .user-info-value {
    font-size: 0.85em;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-attempts-dialog .user-info-value.name {
    font-weight: 600;
    color: #000;
}

.login-attempts-dialog .user-info-value.username {
    color: #0066cc;
}

.login-attempts-dialog .user-info-value.email {
    color: #666;
    font-style: italic;
}

.login-attempts-dialog .user-info-value.org {
    color: #28a745;
}

/* Table container for proper scrolling */
.login-attempts-dialog .table-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}


/* Application Page */

/* Add this to your existing <style> section */
.verification-container {
    text-align: center;
    padding: 20px;
}

.character-counter,
.character-counter span {
    font-size: 12px;
}

.thank-you-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0078d4;
    margin-bottom: 10px;
}

.verification-instruction {
    margin-bottom: 20px;
}

.verification-inputs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.verification-digit {
    width: 40px;
    height: 40px;
    margin: 0 6px;
    border: 2px solid #0078d4;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
}

.action-buttons {
    margin-top: 20px;
}

/* Popup styling */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loading-spinner {
    width: 64px;
    height: 64px;
}

.success-container,
.error-container {
    padding: 20px;
}

.success-icon,
.error-icon {
    margin: 20px 0;
}

/* Support popup styling */
.support-container {
    padding: 20px;
}

#supportIssueDescription {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
}

.alert-info {
    background-color: #e8f4fd;
    border-color: #b8daff;
    color: #004085;
    padding: 10px 15px;
    border-radius: 4px;
}

.dx-icon-info {
    color: #0078d4;
    margin-right: 8px;
}

.text-right {
    text-align: right;
}

.newsletter-actions {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.newsletter-subscription-description {
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}

/* Articles of Incorporation popup styling */
.articles-of-incorporation-container {
    padding: 20px;
}

.upload-info {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
}

.upload-description {
    display: flex;
}

.info-icon {
    margin-right: 10px;
    color: #0078d4;
}

.file-uploader-container {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
}

.dx-fileuploader-wrapper {
    padding: 0;
}

.dx-fileuploader-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dx-fileuploader-input-wrapper::before {
    content: "Drop file here";
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 16px;
}

.dx-fileuploader-input-wrapper::after {
    content: "OR";
    display: block;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.action-buttons {
    text-align: center;
}

.dx-button {
    margin: 0 5px;
}

.MemberApp .eyebrow {
    font-size: 12px;
    margin-bottom: 0;
}

/* Custom hint styling for organization field */
.organization-id-field-with-hint .dx-field-item-hint {
    position: absolute;
    left: -220px;
    /* Adjust as needed based on your layout */
    top: 30px;
    width: 200px;
    text-align: right;
    padding-right: 10px;
    color: #6c757d;
    font-style: italic;
    z-index: 1;
}

/* Container needs position relative for absolute positioning to work */
.organization-id-field-with-hint {
    position: relative;
}

/* Make sure there's enough space on the left for the hint */
@media (max-width: 992px) {
    .organization-id-field-with-hint .dx-field-item-hint {
        position: static;
        text-align: left;
        width: 100%;
        margin-bottom: 5px;
    }

}


/* Card styling */
.access-level-card {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.card-header {
    padding: 10px 15px;
    font-weight: bold;
    font-size: 18px;
}

.getstarted-card-header {
    background-color: #0078d4;
    color: white;
}

.limited-card-header {
    background-color: #f0ad4e;
    color: white;
}

.full-card-header {
    background-color: #5cb85c;
    color: white;
}

.card-body {
    padding: 15px;
    background-color: #f9f9f9;
}


#form-container {
    padding: 20px;
}


/* Styling for radio groups */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


/* Code of Conduct styles */
.code-of-conduct-container {
    width: 100%;
    margin-bottom: 20px;
}

.code-of-conduct-content {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.code-of-conduct-content h1 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.code-of-conduct-content h2 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 8px;
}

.mss-header-bar {
    display: block;
    height: 3px;
    width: 80px;
    background-color: #ffc107;
    margin-bottom: 15px;
}

/* Style the checkbox */
.dx-checkbox-text {
    font-weight: var(--regular);
    color: var(--secondary);
}


    .content-section-header {
        font-weight: bold;
        color: var(--primary);
        margin-bottom: 10px;
        margin-top: 15px;
        font-size: 1rem;
    }

    /* Styling for the "All" button to differentiate it slightly */
    .content-category-btn-all {
        font-weight: bold;
    }
    
    /* Search button loading state */
    #btnSearch.is-searching #btnSearchText {
        display: none;
    }
    
    #btnSearch.is-searching #btnSearchLoading {
        display: inline !important;
    }
    
    #btnSearch.is-searching {
        pointer-events: none;
        opacity: 0.8;
    }
    
    /* Search icon in text input loading state */
    #btnSearchFields.is-searching #searchIcon {
        display: none;
    }
    
    #btnSearchFields.is-searching #searchSpinnerIcon {
        display: inline !important;
    }
    
    /* Action buttons container */
    .mss-search-filter_actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .mss-search-filter_actions .btn-primary {
        min-width: 100px;
    }
    
    .mss-search-filter_actions .refresh {
        background: transparent;
        border: 1px solid #6c757d;
        color: #6c757d;
        padding: 8px 16px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mss-search-filter_actions .refresh:hover {
        background: #6c757d;
        color: #fff;
    }
