/* Chrome 131+ text selection fix for Django Grappelli Admin */
::selection {
    background-color: #79aec8 !important;
    color: white !important;
}

::-moz-selection {
    background-color: #79aec8 !important;
    color: white !important;
}

/* Specific fix for all form elements in Grappelli */
.grp-module ::selection,
.grp-row ::selection,
textarea::selection,
input[type="text"]::selection,
input[type="email"]::selection,
input[type="password"]::selection,
input[type="url"]::selection,
input[type="number"]::selection,
select::selection,
.vTextField::selection,
.vLargeTextField::selection,
.vURLField::selection,
.vIntegerField::selection,
.vBigIntegerField::selection,
.vEmailField::selection {
    background-color: #79aec8 !important;
    color: white !important;
}

/* Firefox compatibility */
.grp-module ::-moz-selection,
.grp-row ::-moz-selection,
textarea::-moz-selection,
input[type="text"]::-moz-selection,
input[type="email"]::-moz-selection,
input[type="password"]::-moz-selection,
input[type="url"]::-moz-selection,
input[type="number"]::-moz-selection,
select::-moz-selection,
.vTextField::-moz-selection,
.vLargeTextField::-moz-selection,
.vURLField::-moz-selection,
.vIntegerField::-moz-selection,
.vBigIntegerField::-moz-selection,
.vEmailField::-moz-selection {
    background-color: #79aec8 !important;
    color: white !important;
}

/* Grappelli-specific containers */
#grp-content ::selection,
#grp-context ::selection,
.grp-changelist-results ::selection {
    background-color: #79aec8 !important;
    color: white !important;
}

#grp-content ::-moz-selection,
#grp-context ::-moz-selection,
.grp-changelist-results ::-moz-selection {
    background-color: #79aec8 !important;
    color: white !important;
}

/* CodeMirror editor if used */
.CodeMirror ::selection {
    background-color: #79aec8 !important;
    color: white !important;
}

.CodeMirror ::-moz-selection {
    background-color: #79aec8 !important;
    color: white !important;
}
