/* Dark mode — account settings modal/page styles load with !important above */

html[data-theme="dark"] #myModalclo {
    background: var(--dm-bg, #1c1c1e) !important;
}


html[data-theme="dark"] #myModalclo.account-settings-page {
    background: var(--dm-bg, #1c1c1e) !important;
}


html[data-theme="dark"] #myModalclo .modal-content,

html[data-theme="dark"] #myModalclo.account-settings-page .modal-content {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

html[data-theme="dark"] #myModalclo.account-settings-page .modal-content:has(.custom-dropdown-trigger.open),
html[data-theme="dark"] #myModalclo.account-settings-page .modal-content:has(.custom-dropdown-trigger-input.open) {
    overflow: visible !important;
}

html[data-theme="dark"] #myModalclo.account-settings-page.account-settings-layout-ready .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
}


html[data-theme="dark"] #myModalclo .modal-header,

html[data-theme="dark"] .account-settings-card-header {
    background: var(--dm-surface, #242428) !important;
    border-bottom-color: var(--dm-border, #3a3a3f) !important;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}


html[data-theme="dark"] #myModalclo .modal-header h2,

html[data-theme="dark"] .account-settings-card-header h1 {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .modal-header h2 i,

html[data-theme="dark"] .account-settings-card-header h1 i {
    color: #4ade80 !important;
}


html[data-theme="dark"] #myModalclo .closeclo {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .closeclo:hover {
    color: #4ade80 !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}


html[data-theme="dark"] .verification-back-btn {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] .verification-back-btn:hover,

html[data-theme="dark"] .verification-back-btn:focus {
    background: var(--dm-border, #3a3a3f) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] .settings-modal-body {
    border-left-color: var(--dm-border, #3a3a3f) !important;
    border-right-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] .settings-sidebar {
    background: var(--dm-bg, #1c1c1e) !important;
    border-right-color: var(--dm-border, #3a3a3f) !important;
    border-bottom-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] .settings-sidebar .tab-link {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] .settings-sidebar .tab-link:hover {
    color: #4ade80 !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}


html[data-theme="dark"] .settings-sidebar .tab-link.active,

html[data-theme="dark"] .settings-sidebar .tab-link.active:hover {
    color: #4ade80 !important;
    background: var(--dm-surface, #242428) !important;
    border-left-color: var(--tab-accent, #F0C040) !important;
    border-bottom-color: var(--tab-accent, #F0C040) !important;
}


html[data-theme="dark"] .settings-content {
    background: var(--dm-surface, #242428) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] .settings-split-divider {
    background: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #depFormActions {
    background: transparent !important;
    border-top-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] .settings-section-title {
    color: var(--dm-text, #f5f5f5) !important;
    border-bottom-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] .settings-section-title i {
    color: #4ade80 !important;
}


html[data-theme="dark"] .settings-section-subtitle {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .settings-field-label,

html[data-theme="dark"] .wrapperdt h3,

html[data-theme="dark"] .wrapperdt h5 {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-discount-detail-muted):not(.account-static-field):not(.account-age-input):not(#depPatientIdInput),

html[data-theme="dark"] #myModalclo #sec-account .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-discount-detail-muted),

html[data-theme="dark"] #myModalclo #sec-address .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input),

html[data-theme="dark"] #myModalclo #sec-payments .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input),

html[data-theme="dark"] #myModalclo #sec-dependents .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-age-input):not(.account-discount-detail-muted),

html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input),

html[data-theme="dark"] .wrapperdt .form-control {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):focus,

html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):focus-visible,

html[data-theme="dark"] #myModalclo #sec-account .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#accountAgeInput):not(#accountEmailInput):focus,

html[data-theme="dark"] #myModalclo #sec-account .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#accountAgeInput):not(#accountEmailInput):focus-visible,

html[data-theme="dark"] #myModalclo #sec-address .form-control:not(.custom-dropdown-select):focus,

html[data-theme="dark"] #myModalclo #sec-address .form-control:not(.custom-dropdown-select):focus-visible,

html[data-theme="dark"] #myModalclo #sec-payments .form-control:not(.custom-dropdown-select):focus,

html[data-theme="dark"] #myModalclo #sec-payments .form-control:not(.custom-dropdown-select):focus-visible,

html[data-theme="dark"] #myModalclo #sec-dependents .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-age-input):not(.account-discount-detail-muted):focus,

html[data-theme="dark"] #myModalclo #sec-dependents .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-age-input):not(.account-discount-detail-muted):focus-visible,

html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):focus,

html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):focus-visible,

html[data-theme="dark"] .wrapperdt .form-control:focus,

html[data-theme="dark"] .wrapperdt .form-control:focus-visible {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .settings-content .form-control.account-static-field[readonly],

html[data-theme="dark"] #myModalclo #sec-account .form-control.account-static-field[readonly],

html[data-theme="dark"] #myModalclo #sec-account #accountAgeInput,

html[data-theme="dark"] #myModalclo #sec-account #accountEmailInput,

html[data-theme="dark"] #myModalclo #sec-account #accountPatientIdInput,

html[data-theme="dark"] #myModalclo #sec-account #accountUsernameInput,

html[data-theme="dark"] #myModalclo #sec-dependents #depResult,
html[data-theme="dark"] #myModalclo #sec-dependents #depPatientIdInput,

html[data-theme="dark"] .wrapperdt .form-control[readonly] {
    background: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .custom-dropdown-trigger,

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .custom-dropdown-trigger.is-placeholder:not(.open),

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input.is-placeholder:not(.open):not(:focus) {
    background: var(--dm-bg, #1c1c1e) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .custom-dropdown-trigger.open,

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input.open,

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input:focus,

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input:focus-visible {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .custom-dropdown-trigger::after,

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-wrap::after {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .account-date-input.is-placeholder {
    background: var(--dm-bg, #1c1c1e) !important;
}


html[data-theme="dark"] #myModalclo .account-date-input.is-placeholder + .custom-date-display {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .account-date-input:not(.is-placeholder),

html[data-theme="dark"] #myModalclo .account-date-input:focus,

html[data-theme="dark"] #myModalclo .account-date-input:focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .account-date-input:not(.is-placeholder) + .custom-date-display {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-dependents .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap .patient-mobile-input,
html[data-theme="dark"] #myModalclo #sec-dependents .mobile-input-wrap .patient-mobile-input {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo .sec-password-requirements {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .sec-password-requirements-title {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .sec-password-requirement {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .sec-password-requirement.met {
    color: #4ade80 !important;
}


/* Match order details modal Cancel (Patient_orders .order-info-modal-footer .btn-gray) */
html[data-theme="dark"] .settings-content .btn-gray {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border: 1.5px solid var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] .settings-content .btn-gray:hover,
html[data-theme="dark"] .settings-content .btn-gray:focus,
html[data-theme="dark"] .settings-content .btn-gray:focus-visible,
html[data-theme="dark"] .settings-content .btn-gray:active {
    background: var(--dm-border, #3a3a3f) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-content .btn-filter-light {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] .settings-content .btn-filter-light:hover,
html[data-theme="dark"] .settings-content .btn-filter-light:focus,
html[data-theme="dark"] .settings-content .btn-filter-light:active {
    background: var(--dm-border, #3a3a3f) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] .settings-content .btn-sm-outline {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] .settings-content .btn-sm-outline:not(:disabled):not(.danger):hover,
html[data-theme="dark"] .settings-content .btn-sm-outline:not(:disabled):not(.danger):hover:focus,
html[data-theme="dark"] .settings-content .btn-sm-outline:not(:disabled):not(.danger):hover:active {
    border-color: var(--dm-primary, #1a6b3c) !important;
    color: #4ade80 !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}

html[data-theme="dark"] .settings-content .btn-sm-outline.danger {
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .settings-content .btn-sm-outline.danger:not(:disabled):hover,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:not(:disabled):hover:focus,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:not(:disabled):hover:active {
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
    background: rgba(220, 38, 38, 0.15) !important;
}

html[data-theme="dark"] .settings-content .btn-sm-outline:disabled,
html[data-theme="dark"] .settings-content .btn-sm-outline:disabled:hover,
html[data-theme="dark"] .settings-content .btn-sm-outline:disabled:focus,
html[data-theme="dark"] .settings-content .btn-sm-outline:disabled:focus-visible,
html[data-theme="dark"] .settings-content .btn-sm-outline:disabled:active {
    opacity: 0.45 !important;
    cursor: default !important;
    pointer-events: none !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] .settings-content .btn-sm-outline.danger:disabled,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:disabled:hover,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:disabled:focus,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:disabled:focus-visible,
html[data-theme="dark"] .settings-content .btn-sm-outline.danger:disabled:active {
    opacity: 0.45 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #f87171 !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-existing-actions .btn-sm-outline,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-existing-actions .btn-sm-outline:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-preview-actions .btn-sm-outline,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-preview-actions .btn-sm-outline:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-existing-actions .btn-sm-outline,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-existing-actions .btn-sm-outline:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-preview-actions .btn-sm-outline,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-preview-actions .btn-sm-outline:hover {
    opacity: 0.45 !important;
    cursor: default !important;
    pointer-events: none !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-existing-actions .btn-sm-outline.danger,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-existing-actions .btn-sm-outline.danger:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-preview-actions .btn-sm-outline.danger,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .discount-id-preview-actions .btn-sm-outline.danger:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-existing-actions .btn-sm-outline.danger,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-existing-actions .btn-sm-outline.danger:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-preview-actions .btn-sm-outline.danger,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .discount-id-preview-actions .btn-sm-outline.danger:hover {
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #f87171 !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}


html[data-theme="dark"] .addr-add-btn {
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] .addr-add-btn:hover {
    border-color: var(--dm-primary, #1a6b3c) !important;
    color: #4ade80 !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}


html[data-theme="dark"] #myModalclo .addr-card-inner {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .addr-card-inner.is-default {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
}


html[data-theme="dark"] #myModalclo .pm-card > div {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .pm-card > div[style*="#f0fdf4"] {
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
}


html[data-theme="dark"] #myModalclo .addr-text,

html[data-theme="dark"] #myModalclo #sec-payments ul,

html[data-theme="dark"] #myModalclo #sec-payments p {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo .addr-card .fw-semibold,

html[data-theme="dark"] #myModalclo .pm-card .fw-semibold {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo #autoDebitToggleWrap,
html[data-theme="dark"] #myModalclo .auto-debit-toggle-wrap {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo #autoDebitToggleWrap .fw-semibold,
html[data-theme="dark"] #myModalclo .auto-debit-toggle-title {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] #myModalclo #autoDebitToggleWrap label span > span:last-child,
html[data-theme="dark"] #myModalclo .auto-debit-toggle-desc {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}


html[data-theme="dark"] #myModalclo #sec-dependents .order-detail-medicines-table-shell {
    border-color: var(--dm-border, #3a3a3f) !important;
    background: var(--dm-surface, #242428);
}

html[data-theme="dark"] #myModalclo #sec-dependents .order-detail-medicines-table tbody tr td {
    border-top: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    background: var(--dm-surface, #242428) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sec-dependents .order-detail-medicines-table tbody tr:not(.blank-row):hover td {
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo #sec-dependents .order-detail-medicines-table-shell:not(.is-empty) .order-detail-medicines-table tbody tr.blank-row td {
    color: transparent !important;
    user-select: none !important;
}

html[data-theme="dark"] #myModalclo #sec-dependents .order-detail-medicines-table-shell.is-empty .order-detail-medicines-table tbody tr.blank-row td {
    opacity: 1 !important;
    color: transparent !important;
    user-select: none !important;
    border-bottom: 1px solid #dee2e6 !important;
}


html[data-theme="dark"] .drop-zone {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] #myModalclo .drop-zone:not(.has-file-preview):hover,
html[data-theme="dark"] #myModalclo .drop-zone:not(.has-file-preview).drag-over {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}

html[data-theme="dark"] .drop-zone.has-file-preview,
html[data-theme="dark"] .drop-zone.has-file-preview:hover,
html[data-theme="dark"] .drop-zone.has-file-preview.drag-over {
    border: none !important;
    background: transparent !important;
}

html[data-theme="dark"] #myModalclo #idUploadContainer,
html[data-theme="dark"] #myModalclo #depIdUploadContainer {
    border: none !important;
    background: transparent !important;
}

html[data-theme="dark"] #myModalclo #idUploadContainer.has-id-preview,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.has-id-preview,
html[data-theme="dark"] #myModalclo #idUploadContainer.has-id-preview:hover,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.has-id-preview:hover {
    border: none !important;
    background: transparent !important;
}

html[data-theme="dark"] #myModalclo #idUploadContainer.has-id-preview #display_image:hover,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.has-id-preview #depDisplayImage:hover,
html[data-theme="dark"] #myModalclo .discount-id-upload-block.has-id-preview .file-preview-image-wrap:hover {
    border-color: var(--dm-border, #3a3a3f) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo .discount-id-existing-state,
html[data-theme="dark"] #myModalclo #idUploadContainer.discount-id-existing-state,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.discount-id-existing-state,
html[data-theme="dark"] #myModalclo .discount-id-existing-state:hover,
html[data-theme="dark"] #myModalclo #idUploadContainer.discount-id-existing-state:hover,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.discount-id-existing-state:hover,
html[data-theme="dark"] #myModalclo #accountDiscountUploadBlock.has-id-preview #idUploadContainer,
html[data-theme="dark"] #myModalclo #accountDiscountUploadBlock.has-id-preview #idUploadContainer:hover,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountDiscountUploadBlock.has-id-preview #idUploadContainer,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountDiscountUploadBlock.has-id-preview #idUploadContainer:hover,
html[data-theme="dark"] #myModalclo #idUploadContainer.discount-id-existing-state.drop-zone,
html[data-theme="dark"] #myModalclo #idUploadContainer.discount-id-existing-state.drop-zone:hover,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.discount-id-existing-state.drop-zone,
html[data-theme="dark"] #myModalclo #depIdUploadContainer.discount-id-existing-state.drop-zone:hover {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: default !important;
}

html[data-theme="dark"] #myModalclo .discount-id-existing-actions {
    border: none !important;
    background: transparent !important;
}


html[data-theme="dark"] .file-preview {
    background: transparent !important;
    border: none !important;
}

html[data-theme="dark"] .file-preview-img {
    border-color: var(--dm-border, #3a3a3f) !important;
    background: var(--dm-surface, #242428) !important;
}

html[data-theme="dark"] .upload-modal-overlay::before {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}


html[data-theme="dark"] .upload-modal {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}


html[data-theme="dark"] .upload-modal-header h4 {
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] .upload-option {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}


html[data-theme="dark"] .upload-option:hover {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}

html[data-theme="dark"] .sig-reg-upload-modal-overlay::before {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] .sig-reg-upload-modal {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .sig-reg-upload-option {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] .sig-reg-upload-option:hover {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}

html[data-theme="dark"] .sig-reg-upload-option i {
    color: #4ade80 !important;
}

@media (max-width: 991.98px) {
    html[data-theme="dark"] .settings-split-col-left {
        border-bottom-color: var(--dm-border, #3a3a3f) !important;
    }
}

/* Doctor account settings — light-mode filled/static #fff rules are more specific */
html[data-theme="dark"] #myModalclo #sec-account .acc-field-label,
html[data-theme="dark"] #myModalclo #sec-account .acc-section-title {
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sec-account .acc-section-title i,
html[data-theme="dark"] #myModalclo #sec-account h3 i {
    color: #4ade80 !important;
}

html[data-theme="dark"] #myModalclo #sec-account h3[style*="color:#1a1a2e"],
html[data-theme="dark"] #myModalclo #sec-account h3[style*="color: #1a1a2e"] {
    color: var(--dm-text, #f5f5f5) !important;
    border-bottom-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sec-account .acc-col-divider {
    background: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sec-account .acc-actions,
html[data-theme="dark"] #myModalclo #doctorProfileActions,
html[data-theme="dark"] #myModalclo #sec-security [style*="border-top"] {
    border-top-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #doctorProfileActions {
    background: var(--dm-surface, #242428) !important;
}

html[data-theme="dark"] #myModalclo #sec-security .sec-form-actions {
    border-top-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sec-account small,
html[data-theme="dark"] #myModalclo #sec-security p,
html[data-theme="dark"] #myModalclo #sec-security strong {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field),
html[data-theme="dark"] #myModalclo #sec-account .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field),
html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field) {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.account-date-input):not(.account-static-field):not(.account-age-input):not(.account-email-input):focus,
html[data-theme="dark"] #myModalclo #sec-account .form-control:not(.account-date-input):not(.account-static-field):not(.account-age-input):not(.account-email-input):focus,
html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.account-date-input):not(.account-static-field):focus,
html[data-theme="dark"] #myModalclo .settings-content input.form-control:not(.account-date-input):not(.account-static-field):focus,
html[data-theme="dark"] #myModalclo .settings-content select.form-control:focus,
html[data-theme="dark"] #myModalclo .settings-content textarea.form-control:focus,
html[data-theme="dark"] #myModalclo .settings-content input.form-control:not(.account-date-input):not(.account-static-field):focus-visible,
html[data-theme="dark"] #myModalclo .settings-content select.form-control:focus-visible,
html[data-theme="dark"] #myModalclo .settings-content textarea.form-control:focus-visible,
html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):focus,
html[data-theme="dark"] #myModalclo .settings-content .form-control:not(.custom-dropdown-select):focus-visible,
html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):focus,
html[data-theme="dark"] #myModalclo #sec-security .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):focus-visible,
html[data-theme="dark"] #myModalclo #sec-security .sec-pw-field .form-control:focus,
html[data-theme="dark"] #myModalclo #sec-security .sec-pw-field .form-control:focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
}

html[data-theme="dark"] #myModalclo #sec-security .form-control::placeholder {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    opacity: 0.75;
}

html[data-theme="dark"] #myModalclo #sec-security .form-control:placeholder-shown {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
    opacity: 0.75;
}

html[data-theme="dark"] #myModalclo #sec-account .form-control.account-static-field[readonly],
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountDoctorNoInput,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountUsernameInput,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountAgeInput,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountPartnerClinicsInput,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountEmailInput,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountDoctorNoInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountDoctorNoInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountUsernameInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountUsernameInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountAgeInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountAgeInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountPartnerClinicsInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountPartnerClinicsInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountEmailInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #doctorAccountEmailInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #accountEmailInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #accountEmailInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #accountPatientIdInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #accountPatientIdInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account #accountUsernameInput:focus,
html[data-theme="dark"] #myModalclo #sec-account #accountUsernameInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .form-control.account-static-field:focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .form-control.account-static-field:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountAgeInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountAgeInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountPartnerClinicsInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountPartnerClinicsInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountDoctorNoInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountDoctorNoInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountUsernameInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountUsernameInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountEmailInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountEmailInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountPatientIdInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountPatientIdInput:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountUsernameInput:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountUsernameInput:focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sec-account #doctorAccountPartnerClinicsInput {
    pointer-events: none;
    cursor: default !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorProfileAccountForm .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput)[readonly],
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorProfileAccountForm .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput)[readonly]:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorProfileAccountForm .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput)[readonly]:focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorProfileAccountForm .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput)[readonly]:focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorProfileAccountForm .form-control.is-empty-display[readonly] {
    color: var(--dm-text-muted, #94a3b8) !important;
    -webkit-text-fill-color: var(--dm-text-muted, #94a3b8) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .form-control:not(.custom-dropdown-select):not(.account-date-input):not(.patient-mobile-input):not(.account-static-field):not(#accountAgeInput):not(#doctorAccountAgeInput):not(#accountEmailInput):not(#accountPatientIdInput):not(#accountUsernameInput):not(#doctorAccountEmailInput):not(#doctorAccountDoctorNoInput):not(.account-discount-detail-muted) {
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    background: var(--dm-bg, #1c1c1e) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput):not(#doctorAccountDoctorNoInput):not(#doctorAccountUsernameInput):not(#accountAgeInput):not(#accountEmailInput):not(#accountPatientIdInput):not(#accountUsernameInput):focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#doctorAccountAgeInput):not(#doctorAccountPartnerClinicsInput):not(#doctorAccountEmailInput):not(#doctorAccountDoctorNoInput):not(#doctorAccountUsernameInput):not(#accountAgeInput):not(#accountEmailInput):not(#accountPatientIdInput):not(#accountUsernameInput):focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .account-date-input:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .account-date-input:focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

/* Date of birth */
html[data-theme="dark"] #myModalclo .account-date-input {
    color-scheme: dark;
}

html[data-theme="dark"] #myModalclo .account-date-input::-webkit-calendar-picker-indicator,
html[data-theme="dark"] #myModalclo #doctorAccountBirthdayInput.account-date-input::-webkit-calendar-picker-indicator,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #doctorAccountBirthdayInput.account-date-input::-webkit-calendar-picker-indicator,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1) !important;
    opacity: 0.92 !important;
    cursor: pointer;
}

html[data-theme="dark"] #myModalclo .account-date-input.is-placeholder,
html[data-theme="dark"] #myModalclo .account-date-input.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input.is-placeholder,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input.is-placeholder:focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input.is-placeholder:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly].is-placeholder {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo .account-date-input:not(.is-placeholder),
html[data-theme="dark"] #myModalclo .account-date-input:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo .account-date-input:focus,
html[data-theme="dark"] #myModalclo .account-date-input:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly]:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly]:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly]:not(.is-placeholder):focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly]:not(.is-placeholder):focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder):focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder):focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder):disabled,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountBirthdayInput.account-date-input:not(.is-placeholder):read-only,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountBirthdayInput.account-date-input:not(.is-placeholder):read-only:hover,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountBirthdayInput.account-date-input:not(.is-placeholder):read-only:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #accountBirthdayInput.account-date-input:not(.is-placeholder):read-only:focus-visible {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    border: 1.5px solid var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo .account-date-input.is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly].is-placeholder + .custom-date-display {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo .account-date-input:not(.is-placeholder) + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .account-date-input[readonly]:not(.is-placeholder) + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) #doctorAccountBirthdayInput.account-date-input:not(.is-placeholder) + .custom-date-display {
    color: var(--dm-text, #f5f5f5) !important;
}

/* Mobile number — edit mode (view uses unified .mobile-input-wrap border below) */
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap .patient-mobile-input {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap:has(.patient-mobile-input[readonly]:placeholder-shown) .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap .patient-mobile-input[readonly]:placeholder-shown,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap:focus-within:has(.patient-mobile-input[readonly]:placeholder-shown) .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap:focus-within .patient-mobile-input[readonly]:placeholder-shown,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap .patient-mobile-input[readonly]:placeholder-shown:focus {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:has(.patient-mobile-input[readonly]:not([value=""])),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:has(.patient-mobile-input:not([value=""])) {
    background: var(--dm-bg, #1c1c1e) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:has(.patient-mobile-input[readonly]:not([value=""])) .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap .patient-mobile-input[readonly]:not([value=""]),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap:focus-within:has(.patient-mobile-input[readonly]:not([value=""])) .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap:focus-within .patient-mobile-input[readonly]:not([value=""]),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .mobile-input-wrap .patient-mobile-input[readonly]:not([value=""]):focus {
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap .patient-mobile-input {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap:focus-within .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap:focus-within .patient-mobile-input,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing .mobile-input-wrap .patient-mobile-input:focus {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

/* Locked dropdowns — filled values (Sex, Suffix) match editable field text in view mode */
html[data-theme="dark"] #myModalclo .custom-dropdown-trigger.is-disabled:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):focus-visible {
    background: var(--dm-bg, #1c1c1e) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger:not(.is-disabled):hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.open,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger:not(.is-disabled):focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger:not(.is-disabled):focus-visible {
    background: var(--dm-surface-raised, #2c2c30) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo .custom-dropdown-trigger.is-placeholder:not(.open):hover,
html[data-theme="dark"] #myModalclo .custom-dropdown-trigger-input.is-placeholder:not(.open):not(:focus):hover {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

/* Doctor profile (view mode) — beats doctor_account_tab.php #f8fafc placeholder rules */
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus-visible {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo .custom-dropdown-trigger:hover:not(.open):not(.is-placeholder) {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

/* Signature upload — highlight/border on #sigUploadContainer only (inner #sigDropZone is transparent in light mode) */
html[data-theme="dark"] #myModalclo #sigUploadContainer {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #sigUploadContainer:not(.has-signature-preview):hover,
html[data-theme="dark"] #myModalclo #sigUploadContainer:not(.has-signature-preview):has(#sigDropZone.drag-over) {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-primary-subtle, rgba(26, 107, 60, 0.18)) !important;
}

html[data-theme="dark"] #myModalclo #sigUploadContainer #sigDropZone,
html[data-theme="dark"] #myModalclo #sigUploadContainer .drop-zone,
html[data-theme="dark"] #myModalclo #sigUploadContainer #sigDropZone:hover,
html[data-theme="dark"] #myModalclo #sigUploadContainer #sigDropZone.drag-over,
html[data-theme="dark"] #myModalclo #sigUploadContainer .drop-zone:hover,
html[data-theme="dark"] #myModalclo #sigUploadContainer .drop-zone.drag-over {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

html[data-theme="dark"] #myModalclo #sigUploadContainer.has-signature-preview,
html[data-theme="dark"] #myModalclo #sigUploadContainer.has-signature-preview:hover,
html[data-theme="dark"] #myModalclo #sigUploadContainer.has-signature-preview:has(#sigDropZone.drag-over) {
    border: none !important;
    background: transparent !important;
}

html[data-theme="dark"] #myModalclo #sigDisplayImage,
html[data-theme="dark"] #myModalclo #sigDisplayImageSaved,
html[data-theme="dark"] #myModalclo #display_image,
html[data-theme="dark"] #myModalclo #depDisplayImage,
html[data-theme="dark"] #myModalclo .file-preview-image-wrap {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    isolation: isolate;
}

html[data-theme="dark"] #myModalclo #display_image .discount-id-viewer-frame,
html[data-theme="dark"] #myModalclo #depDisplayImage .discount-id-viewer-frame,
html[data-theme="dark"] #myModalclo .file-preview-image-wrap .discount-id-viewer-frame {
    background: transparent !important;
    border: none !important;
}

html[data-theme="dark"] #myModalclo [data-discount-id-side-label],
html[data-theme="dark"] #myModalclo .discount-id-viewer-side-label,
html[data-theme="dark"] #myModalclo #display_image > .discount-id-side-tag,
html[data-theme="dark"] #myModalclo #depDisplayImage > .discount-id-side-tag,
html[data-theme="dark"] #myModalclo .discount-id-viewer-stack > .discount-id-side-tag {
    color: #fff !important;
}

html[data-theme="dark"] #myModalclo #sigDisplayImage img,
html[data-theme="dark"] #myModalclo #sigDisplayImageSaved img,
html[data-theme="dark"] #myModalclo #sigPreview,
html[data-theme="dark"] #myModalclo .sig-preview-image {
    mix-blend-mode: normal;
    filter: invert(1);
}

html[data-theme="dark"] #myModalclo #iconimg,
html[data-theme="dark"] #myModalclo #depIconImg,
html[data-theme="dark"] #myModalclo .discount-id-viewer-img,
html[data-theme="dark"] #myModalclo .file-preview-img.discount-id-viewer-img {
    mix-blend-mode: normal;
}

html[data-theme="dark"] #myModalclo .discount-id-page-arrow {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] #myModalclo .discount-id-page-arrow:hover:not(:disabled) {
    background: var(--dm-border, #3a3a3f) !important;
    border-color: var(--dm-primary, #1a6b3c) !important;
    color: #4ade80 !important;
}

html[data-theme="dark"] #myModalclo .drop-zone-content p {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo .drop-zone-content p[style*="font-weight:500"] {
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #sigFileName,
html[data-theme="dark"] #myModalclo .file-preview span {
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo .settings-content .btn-gray,
html[data-theme="dark"] #myModalclo .acc-actions .btn-gray {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border: 1.5px solid var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo .settings-content .btn-gray:hover,
html[data-theme="dark"] #myModalclo .settings-content .btn-gray:focus,
html[data-theme="dark"] #myModalclo .settings-content .btn-gray:focus-visible,
html[data-theme="dark"] #myModalclo .settings-content .btn-gray:active,
html[data-theme="dark"] #myModalclo .acc-actions .btn-gray:hover,
html[data-theme="dark"] #myModalclo .acc-actions .btn-gray:focus,
html[data-theme="dark"] #myModalclo .acc-actions .btn-gray:focus-visible,
html[data-theme="dark"] #myModalclo .acc-actions .btn-gray:active {
    background: var(--dm-border, #3a3a3f) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #myModalclo .acc-actions .btn-filter-light {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo .acc-actions .btn-filter-light:hover,
html[data-theme="dark"] #myModalclo .acc-actions .btn-filter-light:focus {
    background: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo .form-control:-webkit-autofill,
html[data-theme="dark"] #myModalclo .form-control:-webkit-autofill:hover,
html[data-theme="dark"] #myModalclo .form-control:-webkit-autofill:focus,
html[data-theme="dark"] #myModalclo .form-control:-webkit-autofill:active,
html[data-theme="dark"] #myModalclo .patient-mobile-input:-webkit-autofill,
html[data-theme="dark"] #myModalclo .patient-mobile-input:-webkit-autofill:hover,
html[data-theme="dark"] #myModalclo .patient-mobile-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    caret-color: var(--dm-text, #f5f5f5);
    box-shadow: 0 0 0 1000px var(--dm-surface-raised, #2c2c30) inset !important;
    -webkit-box-shadow: 0 0 0 1000px var(--dm-surface-raised, #2c2c30) inset !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    transition: background-color 99999s ease-out 0s;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-dialog {
    background: var(--dm-surface, #242428) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-dialog .modal-header {
    background: var(--dm-surface, #242428) !important;
    border-bottom-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-dialog .modal-header h3 {
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-dialog .modal-header h3 i {
    color: #4ade80 !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-actions {
    background: var(--dm-surface, #242428) !important;
    border-top-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-actions .btn-filter-light {
    background: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-actions .btn-filter-light:hover,
html[data-theme="dark"] #sigDrawModal .sig-draw-actions .btn-filter-light:focus,
html[data-theme="dark"] #sigDrawModal .sig-draw-actions .btn-filter-light:active {
    background: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-hint {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #sigDrawModal .sig-draw-canvas-wrap {
    border-color: var(--dm-border, #3a3a3f) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

/* Draw in black on canvas (correct PNG export); invert only for on-screen contrast */
html[data-theme="dark"] #sigDrawModal #sigDrawCanvas {
    filter: invert(1);
}

/* Profile mobile — unified view + edit (40px, single border, no transition flash) */
html[data-theme="dark"] #myModalclo #sec-account :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border: 1.5px solid var(--dm-border, #3a3a3f) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--dm-bg, #1c1c1e) !important;
    transition: none !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:focus-within {
    border-color: var(--dm-primary, #1a6b3c) !important;
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:has(.patient-mobile-input[readonly][value=""]),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:has(.patient-mobile-input[readonly]:placeholder-shown) {
    background: var(--dm-surface-raised, #2c2c30) !important;
}

html[data-theme="dark"] #myModalclo #sec-account :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap .patient-mobile-input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    transition: none !important;
}

html[data-theme="dark"] #myModalclo #sec-account :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap .mobile-input-prefix {
    border-right: 1px solid var(--dm-border, #3a3a3f) !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:focus-within .mobile-input-prefix,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:focus-within .patient-mobile-input,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap .patient-mobile-input:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#profileAccountForm, #doctorProfileAccountForm) .mobile-input-wrap:focus-within .mobile-input-prefix {
    border-right: 1px solid var(--dm-border, #3a3a3f) !important;
}

/* Keep native date value invisible in dark mode (overlay span shows formatted date) */
html[data-theme="dark"] #myModalclo .account-date-input,
html[data-theme="dark"] #myModalclo .account-date-input:hover,
html[data-theme="dark"] #myModalclo .account-date-input:focus,
html[data-theme="dark"] #myModalclo .account-date-input:focus-visible,
html[data-theme="dark"] #myModalclo .account-date-input:disabled,
html[data-theme="dark"] #myModalclo .account-date-input[readonly] {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit,
html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit-text,
html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit-month-field,
html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit-day-field,
html[data-theme="dark"] #myModalclo .account-date-input::-webkit-datetime-edit-year-field {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* View mode — discount ID detail fields when type is None (readonly chrome, not profile field --dm-bg) */
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput),
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput):hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:hover,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput):focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:focus,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput):focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput):disabled,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:disabled,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput)[readonly],
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted[readonly],
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing).discount-type-none :is(#depIdNumbers, #depDateIss, #depExpDate),
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing).discount-type-none :is(#depIdNumbers, #depDateIss, #depExpDate):disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing).discount-type-none :is(#depIdNumbers, #depDateIss, #depExpDate)[readonly],
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .settings-form-grid.discount-id-none :is(#depIdNumbers, #depDateIss, #depExpDate),
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .settings-form-grid.discount-id-none :is(#depIdNumbers, #depDateIss, #depExpDate):disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .settings-form-grid.discount-id-none :is(#depIdNumbers, #depDateIss, #depExpDate)[readonly],
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) :is(#depIdNumbers, #depDateIss, #depExpDate).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) :is(#depIdNumbers, #depDateIss, #depExpDate).account-discount-detail-muted:disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) :is(#depIdNumbers, #depDateIss, #depExpDate).account-discount-detail-muted[readonly],
html[data-theme="dark"] #myModalclo #sec-dependents .settings-form-grid.discount-id-none :is(#depIdNumbers, #depDateIss, #depExpDate),
html[data-theme="dark"] #myModalclo #sec-dependents #depIdNumbers.account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-dependents #depIdNumbers.account-discount-detail-muted:disabled,
html[data-theme="dark"] #myModalclo #sec-dependents #depIdNumbers.account-discount-detail-muted[readonly] {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: default !important;
    opacity: 1 !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depIdNumbers.account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing).discount-type-none #depIdNumbers,
html[data-theme="dark"] #myModalclo #sec-dependents #depIdNumbers.account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-dependents .settings-form-grid.discount-id-none #depIdNumbers {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountIdNumberInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none #accountIdNumberInput {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountDateIssInput, #accountExpDateInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountDateIssInput, #accountExpDateInput) {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountDateIssInput, #accountExpDateInput).account-discount-detail-muted.is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountDateIssInput, #accountExpDateInput).is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing) :is(#accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:not(.is-placeholder) + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account:not(.is-profile-editing).discount-type-none :is(#accountDateIssInput, #accountExpDateInput):not(.is-placeholder) + .custom-date-display,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) :is(#depDateIss, #depExpDate).account-discount-detail-muted.is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) :is(#depDateIss, #depExpDate).account-discount-detail-muted:not(.is-placeholder) + .custom-date-display {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

/* Edit mode — discount ID details when type is None (locked; override light #f8fafc modal rules) */
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput),
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input),
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input):disabled,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input):hover,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input):focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input):focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted:disabled,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted:hover,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted:focus,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted:focus-visible,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput):disabled,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted:disabled,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput)[readonly],
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountIdNumberInput, #accountDateIssInput, #accountExpDateInput).account-discount-detail-muted[readonly],
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing .settings-form-grid.discount-id-none :is(#depIdNumbers, #depDateIss, #depExpDate),
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing :is(#depIdNumbers, #depDateIss, #depExpDate).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing :is(#depIdNumbers, #depDateIss, #depExpDate).account-discount-detail-muted:disabled {
    background: var(--dm-surface-raised, #2c2c30) !important;
    background-color: var(--dm-surface-raised, #2c2c30) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: default !important;
    opacity: 1 !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountIdNumberInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none #accountIdNumberInput,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input),
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .form-control.account-discount-detail-muted:not(.account-date-input):disabled {
    color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountDateIssInput, #accountExpDateInput).account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none :is(#accountDateIssInput, #accountExpDateInput),
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing #profileAccountForm .account-date-input.account-discount-detail-muted:disabled {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing :is(#accountDateIssInput, #accountExpDateInput).account-discount-detail-muted.is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #sec-account.is-profile-editing.discount-type-none :is(#accountDateIssInput, #accountExpDateInput).is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing :is(#depDateIss, #depExpDate).account-discount-detail-muted.is-placeholder + .custom-date-display {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

/* Address tab — default delivery preview (disabled fieldset) matches profile view filled/empty */
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown-trigger.is-disabled:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown-trigger-input.is-disabled:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown:has(select option:disabled:checked) .custom-dropdown-trigger:not(.open):not(:focus):not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown:has(select option:disabled:checked) .custom-dropdown-trigger-input:not(.open):not(:focus):not(.is-placeholder),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] input.form-control:not(.custom-dropdown-select),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] input.form-control:not(.custom-dropdown-select):disabled {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown-trigger.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown-trigger-input.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown:has(select option:disabled:checked) .custom-dropdown-trigger.is-placeholder:not(.open):not(:focus),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] .custom-dropdown:has(select option:disabled:checked) .custom-dropdown-trigger-input.is-placeholder:not(.open):not(:focus),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] input.form-control.is-empty-display,
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset[disabled] input.form-control.is-empty-display:disabled {
    color: var(--dm-text-muted, #94a3b8) !important;
    -webkit-text-fill-color: var(--dm-text-muted, #94a3b8) !important;
}

html[data-theme="dark"] #myModalclo #sec-address #addrFieldset:not([disabled]) input.form-control:not(.custom-dropdown-select),
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset:not([disabled]) input.form-control:not(.custom-dropdown-select):hover,
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset:not([disabled]) input.form-control:not(.custom-dropdown-select):focus,
html[data-theme="dark"] #myModalclo #sec-address #addrFieldset:not([disabled]) input.form-control:not(.custom-dropdown-select):focus-visible {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

/* Dependents tab — view / edit field chrome (override modal inline --dm-surface-raised) */
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-discount-detail-muted)[readonly],
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-discount-detail-muted)[readonly]:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-discount-detail-muted)[readonly]:focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-discount-detail-muted)[readonly]:focus-visible,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled:not(.is-placeholder):focus-visible,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder):disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder):hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder):focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder):focus-visible,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depIdNumbers:not(.account-discount-detail-muted)[disabled],
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDateIss:not(.account-discount-detail-muted):disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depExpDate:not(.account-discount-detail-muted):disabled {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus-visible,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .form-control.is-empty-display[readonly] {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) .custom-dropdown-trigger.is-disabled.is-placeholder:focus-visible,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:disabled,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:hover,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:focus,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:focus-visible {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder + .custom-date-display,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input.is-placeholder:disabled + .custom-date-display {
    color: var(--dm-text-secondary, #a1a1aa) !important;
    -webkit-text-fill-color: var(--dm-text-secondary, #a1a1aa) !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder) + .custom-date-display,
html[data-theme="dark"] #myModalclo #dependentAccountForm:not(.is-dep-editing) #depDOB.account-date-input:not(.is-placeholder):disabled + .custom-date-display {
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}

html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing .form-control:not(.custom-dropdown-select):not(.account-date-input):not(#depResult):not(#depPatientIdInput):not(.account-static-field):not(.account-discount-detail-muted),
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing .custom-dropdown-trigger:not(.is-placeholder),
html[data-theme="dark"] #myModalclo #dependentAccountForm.is-dep-editing .custom-dropdown-trigger-input:not(.is-placeholder):not(:focus) {
    background: var(--dm-bg, #1c1c1e) !important;
    background-color: var(--dm-bg, #1c1c1e) !important;
    border-color: var(--dm-border, #3a3a3f) !important;
    color: var(--dm-text, #f5f5f5) !important;
    -webkit-text-fill-color: var(--dm-text, #f5f5f5) !important;
}
