/* 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;
}

/* Simple History - object history list */
#change-history td {
    padding: 8px 10px;
    vertical-align: top;
}
#change-history .history-changes-list {
    margin: 0;
    padding-left: 1.1em;
    list-style: disc;
}
#change-history .history-changes-list li {
    margin-bottom: 4px;
    line-height: 1.45;
}
#change-history .history-changes-list li:last-child {
    margin-bottom: 0;
}
#change-history .history-old {
    color: #c0392b;
    text-decoration: line-through;
    margin-right: 2px;
}
#change-history .history-new {
    color: #27ae60;
    font-weight: 600;
    margin-left: 2px;
}
#change-history .history-arrow {
    color: #888;
    margin: 0 2px;
}
#change-history .history-system {
    color: #888;
    font-style: italic;
}
