/* Ensure user/group changelist tables are white with black text. */
body.app-auth.model-user .results,
body.app-auth.model-group .results {
	background: #ffffff !important;
	color: #000000 !important;
}

/* Make all changelist sections white/black for User and Group. */
body.app-auth.model-user #content,
body.app-auth.model-group #content,
body.app-auth.model-user #content-main,
body.app-auth.model-group #content-main,
body.app-auth.model-user #changelist,
body.app-auth.model-group #changelist,
body.app-auth.model-user #changelist-form,
body.app-auth.model-group #changelist-form,
body.app-auth.model-user #changelist-search,
body.app-auth.model-group #changelist-search,
body.app-auth.model-user #changelist-filter,
body.app-auth.model-group #changelist-filter,
body.app-auth.model-user .module,
body.app-auth.model-group .module,
body.app-auth.model-user .breadcrumbs,
body.app-auth.model-group .breadcrumbs,
body.app-auth.model-user .actions,
body.app-auth.model-group .actions,
body.app-auth.model-user .paginator,
body.app-auth.model-group .paginator,
body.app-auth.model-user .object-tools,
body.app-auth.model-group .object-tools,
body.app-auth.model-user #toolbar,
body.app-auth.model-group #toolbar {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth.model-user #changelist-filter h2,
body.app-auth.model-group #changelist-filter h2,
body.app-auth.model-user #changelist-filter h3,
body.app-auth.model-group #changelist-filter h3,
body.app-auth.model-user #changelist-filter li,
body.app-auth.model-group #changelist-filter li,
body.app-auth.model-user #changelist-search label,
body.app-auth.model-group #changelist-search label,
body.app-auth.model-user #changelist-search input,
body.app-auth.model-group #changelist-search input,
body.app-auth.model-user #changelist-search input[type="search"],
body.app-auth.model-group #changelist-search input[type="search"],
body.app-auth.model-user #changelist-search select,
body.app-auth.model-group #changelist-search select,
body.app-auth.model-user #changelist-search option,
body.app-auth.model-group #changelist-search option,
body.app-auth.model-user #toolbar label,
body.app-auth.model-group #toolbar label,
body.app-auth.model-user #toolbar input,
body.app-auth.model-group #toolbar input,
body.app-auth.model-user #toolbar select,
body.app-auth.model-group #toolbar select,
body.app-auth.model-user #toolbar option,
body.app-auth.model-group #toolbar option,
body.app-auth.model-user .actions select,
body.app-auth.model-group .actions select,
body.app-auth.model-user .actions option,
body.app-auth.model-group .actions option,
body.app-auth.model-user .actions label,
body.app-auth.model-group .actions label,
body.app-auth.model-user .paginator a,
body.app-auth.model-group .paginator a,
body.app-auth.model-user .paginator span,
body.app-auth.model-group .paginator span {
	color: #000000 !important;
}

body.app-auth.model-user #changelist-search input,
body.app-auth.model-group #changelist-search input,
body.app-auth.model-user #changelist-search select,
body.app-auth.model-group #changelist-search select,
body.app-auth.model-user #toolbar input,
body.app-auth.model-group #toolbar input,
body.app-auth.model-user #toolbar select,
body.app-auth.model-group #toolbar select,
body.app-auth.model-user .actions select,
body.app-auth.model-group .actions select {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth.model-user .results table,
body.app-auth.model-group .results table {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth.model-user .results thead th,
body.app-auth.model-group .results thead th,
body.app-auth.model-user .results tbody td,
body.app-auth.model-group .results tbody td,
body.app-auth.model-user .results tbody th,
body.app-auth.model-group .results tbody th {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth.model-user .results tbody tr:nth-child(odd) td,
body.app-auth.model-user .results tbody tr:nth-child(even) td,
body.app-auth.model-group .results tbody tr:nth-child(odd) td,
body.app-auth.model-group .results tbody tr:nth-child(even) td {
	background: #ffffff !important;
}

body.app-auth.model-user .results a,
body.app-auth.model-group .results a {
	color: #000000 !important;
}

body.app-auth.model-user #changelist-filter a,
body.app-auth.model-group #changelist-filter a {
	background: #ffffff !important;
	color: #0066cc !important;
}

/* Keep links blue in User/Group admin pages. */
body.app-auth.model-user a,
body.app-auth.model-group a {
	color: #0066cc !important;
}

body.app-auth.model-user a:hover,
body.app-auth.model-group a:hover,
body.app-auth.model-user a:focus,
body.app-auth.model-group a:focus {
	color: #0052a3 !important;
}

/* Ensure User/Group change form inputs are white with black text. */
body.app-auth.model-user.change-form .form-row input,
body.app-auth.model-group.change-form .form-row input,
body.app-auth.model-user.change-form .form-row select,
body.app-auth.model-group.change-form .form-row select,
body.app-auth.model-user.change-form .form-row textarea,
body.app-auth.model-group.change-form .form-row textarea {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth.model-user.change-form .form-row,
body.app-auth.model-user.change-form .form-row *,
body.app-auth.model-group.change-form .form-row,
body.app-auth.model-group.change-form .form-row * {
	background: #ffffff !important;
	color: #000000 !important;
}

/* Ensure User/Group change form labels are black. */
body.app-auth.model-user.change-form .form-row label,
body.app-auth.model-group.change-form .form-row label,
body.app-auth.model-user.change-form .aligned label,
body.app-auth.model-group.change-form .aligned label {
	color: #000000 !important;
}

/* Ensure Auth app index table (/auth/) is white with black text. */
body.app-auth #content-main .module,
body.app-auth #content-main .module table,
body.app-auth #content-main .module thead th,
body.app-auth #content-main .module tbody td,
body.app-auth #content-main .module tbody th {
	background: #ffffff !important;
	color: #000000 !important;
}

body.app-auth #content-main .module a {
	color: #000000 !important;
}

/* Ensure all labels in Auth admin pages are black. */
body.app-auth label,
body.app-auth .form-row label,
body.app-auth .aligned label {
	color: #000000 !important;
}

/* Ensure titles/headers in Auth admin pages are black. */
body.app-auth h1,
body.app-auth h2,
body.app-auth h3,
body.app-auth caption,
body.app-auth .module caption,
body.app-auth #content h1,
body.app-auth #content h2,
body.app-auth #content h3,
body.app-auth .breadcrumbs {
	color: #000000 !important;
}

body.app-auth .module h2 {
	color: #ffffff !important;
}

body.app-auth.model-user .breadcrumbs a {
	color: #0066cc !important;
}

body.app-auth.model-user .breadcrumbs a:hover,
body.app-auth.model-user .breadcrumbs a:focus {
	color: #0052a3 !important;
}

/* User change form: keep fieldset titles white. */
body.app-auth.model-user.change-form fieldset h2,
body.app-auth.model-user.change-form fieldset h2 *,
body.app-auth.model-user.change-form .module h2,
body.app-auth.model-user.change-form .module h2 *,
body.app-auth.model-user.change-form .inline-group h2 {
	color: #ffffff !important;
}

/* Center Estacion changelist row content vertically. */
body.app-main.model-estacion.change-list .results tbody td,
body.app-main.model-estacion.change-list .results tbody th {
	vertical-align: middle;
}

/* Final override: User edit form section headers must be white. */
body.app-auth.model-user.change-form {
	--header-link-color: #ffffff;
}

body.app-auth.model-user.change-form #content-main fieldset h2,
body.app-auth.model-user.change-form #content-main fieldset h2 *,
body.app-auth.model-user.change-form #content-main .module h2,
body.app-auth.model-user.change-form #content-main .module h2 *,
body.app-auth.model-user.change-form #content-main .inline-group h2,
body.app-auth.model-user.change-form #content-main .inline-group h2 * {
	color: #ffffff !important;
}

/* Keep header user-tools links white. */
#user-tools a,
#user-tools a:visited,
#user-tools a:hover,
#user-tools a:focus,
#user-tools a:active {
	color: #ffffff !important;
}

/* Filter section headings: force white text in all admin changelists. */
body #changelist-filter h2,
body #changelist-filter h2 *,
body #changelist-filter h2 a,
body #changelist-filter h2 a:visited,
body #changelist-filter h2 a:hover,
body #changelist-filter h2 a:focus,
body #changelist-filter h2 a:active {
	color: #ffffff !important;
}

/* Extra override: many admin filters render section headers as h3. */
html body #changelist-filter h3,
html body #changelist-filter h3 *,
html body #changelist-filter h3 a,
html body #changelist-filter h3 a:visited,
html body #changelist-filter h3 a:hover,
html body #changelist-filter h3 a:focus,
html body #changelist-filter h3 a:active {
	color: #ffffff !important;
}

/* Keep 'Borrar todos los filtros' black across all admin changelists. */
body #changelist-filter #changelist-filter-clear,
body #changelist-filter #changelist-filter-clear *,
body #changelist-filter #changelist-filter-clear a,
body #changelist-filter #changelist-filter-clear a:visited,
body #changelist-filter #changelist-filter-clear a:hover,
body #changelist-filter #changelist-filter-clear a:focus,
body #changelist-filter #changelist-filter-clear a:active {
	color: #000000 !important;
}

/* Exact target requested: auth/user filter box title. */
body.app-auth.model-user.change-list div#changelist-filter > h2 {
	color: #ffffff !important;
}

/* auth/user and auth/group: keep add button text white. */
body.app-auth.model-user.change-list .object-tools a.addlink,
body.app-auth.model-user.change-list .object-tools a.addlink:visited,
body.app-auth.model-user.change-list .object-tools a.addlink:hover,
body.app-auth.model-user.change-list .object-tools a.addlink:focus,
body.app-auth.model-user.change-list .object-tools a.addlink:active,
body.app-auth.model-group.change-list .object-tools a.addlink,
body.app-auth.model-group.change-list .object-tools a.addlink:visited,
body.app-auth.model-group.change-list .object-tools a.addlink:hover,
body.app-auth.model-group.change-list .object-tools a.addlink:focus,
body.app-auth.model-group.change-list .object-tools a.addlink:active {
	color: #ffffff !important;
}

body.app-auth.model-user.change-form .object-tools a,
body.app-auth.model-user.change-form .object-tools a:visited,
body.app-auth.model-user.change-form .object-tools a:hover,
body.app-auth.model-user.change-form .object-tools a:focus,
body.app-auth.model-user.change-form .object-tools a:active,
body.app-auth.model-group.change-form .object-tools a,
body.app-auth.model-group.change-form .object-tools a:visited,
body.app-auth.model-group.change-form .object-tools a:hover,
body.app-auth.model-group.change-form .object-tools a:focus,
body.app-auth.model-group.change-form .object-tools a:active,
body.app-auth .object-tools a,
body.app-auth .object-tools a:visited,
body.app-auth .object-tools a:hover,
body.app-auth .object-tools a:focus,
body.app-auth .object-tools a:active {
	color: #ffffff !important;
}

/* password_change/: keep content/table with white background and black text. */
body.change-password #content,
body.change-password #content-main,
body.change-password #content-main table,
body.change-password #content-main table th,
body.change-password #content-main table td,
body.change-password #content-main .module,
body.change-password #content-main fieldset,
body.change-password #content-main .form-row,
body.password-change #content,
body.password-change #content-main,
body.password-change #content-main table,
body.password-change #content-main table th,
body.password-change #content-main table td,
body.password-change #content-main .module,
body.password-change #content-main fieldset,
body.password-change #content-main .form-row {
	background: #ffffff !important;
	color: #000000 !important;
}

body.change-password .form-row,
body.change-password .form-row *,
body.password-change .form-row,
body.password-change .form-row * {
	background: #ffffff !important;
	color: #000000 !important;
}

/* Strong override for Django theme vars on password_change page. */
body.change-password,
body.password-change {
	--body-bg: #ffffff;
	--darkened-bg: #ffffff;
	--body-fg: #000000;
	--hairline-color: #d9d9d9;
}

body.change-password #container,
body.change-password #main,
body.change-password .breadcrumbs,
body.password-change #container,
body.password-change #main,
body.password-change .breadcrumbs {
	background: #ffffff !important;
	color: #000000 !important;
}

/* /auth/ app card: section title in white. */
#content-main .app-auth.module caption,
#content-main .app-auth.module caption a.section,
#content-main .app-auth.module caption a.section:visited,
#content-main .app-auth.module caption a.section:hover,
#content-main .app-auth.module caption a.section:focus,
#content-main .app-auth.module caption a.section:active {
	color: #ffffff !important;
}

/* Breadcrumbs: keep text and links white. */
.breadcrumbs,
.breadcrumbs *,
.breadcrumbs a,
.breadcrumbs a:visited,
.breadcrumbs a:hover,
.breadcrumbs a:focus,
.breadcrumbs a:active {
	color: #ffffff !important;
}

/* Django admin uses CSS vars for breadcrumbs colors; force them to white. */
html,
body {
	--breadcrumbs-fg: #ffffff;
	--breadcrumbs-link-fg: #ffffff;
}

/* Exact breadcrumb block override requested by user. */
body div.breadcrumbs,
body div.breadcrumbs a,
body div.breadcrumbs a:visited,
body div.breadcrumbs a:hover,
body div.breadcrumbs a:focus,
body div.breadcrumbs a:active {
	color: #ffffff !important;
}
body.app-main.model-estacion.change-form .tipo-calculo-select select {
	width: 100%;
	max-height: 50px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}