@import url(../../admin/css/base.css);

@font-face {
    font-family: Exo2;
    font-weight: normal;
    src: url("/static/core/fonts/Exo2-Regular.woff2");
}
@font-face {
    font-family: Exo2;
    font-weight: bold;
    src: url("/static/core/fonts/Exo2-Bold.woff2");
}
@font-face {
    font-family: Exo2;
    font-style: italic;
    src: url("/static/core/fonts/Exo2-Italic.woff2");
}
@font-face {
    font-family: Exo2;
    font-weight: bold;
    font-style: italic;
    src: url("/static/core/fonts/Exo2-BoldItalic.woff2");
}
@font-face {
    font-family: Exo2Light;
    src: url("/static/core/fonts/Exo2-Light.woff2");
}
@font-face {
    font-family: Exo2Light;
    font-style: italic;
    src: url("/static/core/fonts/Exo2-LightItalic.woff2");
}

:root {
    --header-height: 43px;
    --footer-height: 0px;
    --nav-bar-width: 54px;
    --nav-bar-width-extended: 220px;
    --drivendt-theme-bg: #417690;
    --drivendt-theme-fg: #fff;
}

body {
    background: var(--body-bg);
}

.dNDT-release-notes-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.dNDT-release-notes-version-badge {
    background: #edf7fb;
    border: 1px solid #d7ebf3;
    background: color-mix(in srgb, var(--primary) 14%, var(--body-bg));
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--body-bg));
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    font-size: 0.90rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 10px;
    text-transform: uppercase;
}

.dNDT-release-notes-title-suffix {
    color: var(--body-quiet-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.dNDT-release-notes-page {
    max-width: 960px;
    margin: 16px 0;
}

.dNDT-release-notes-content {
    max-height: 58vh;
    overflow: auto;
}

.dNDT-release-notes-page .dNDT-release-notes-content {
    max-height: none;
    overflow: visible;
}

.dNDT-release-notes-content ul,
.dNDT-release-notes-content li {
    list-style-type: disc;
}

.dNDT-release-notes-content ul {
    padding-left: 24px;
}

.dNDT-release-notes-content h3,
.dNDT-changelog h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 14px 0 8px;
}

.dNDT-changelog {
    max-width: 1100px;
}

.dNDT-changelog h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dNDT-changelog p,
.dNDT-changelog li {
    font-size: 1.05rem;
    line-height: 1.55;
}

.dNDT-changelog-version {
    border-top: 1px solid var(--border-color);
    padding: 14px 0;
}

.dNDT-changelog-version summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    color: var(--body-fg);
    list-style: none;
}

.dNDT-changelog-version summary::-webkit-details-marker {
    display: none;
}

.dNDT-changelog-version summary::before {
    color: var(--body-quiet-color);
    content: "\f054";
    flex: 0 0 auto;
    font-family: "Font Awesome 7 Free";
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.15s ease;
}

.dNDT-changelog-version summary .dNDT-release-notes-title {
    margin: 0;
}

.dNDT-changelog-version[open] summary::before {
    transform: rotate(90deg);
}

.dNDT-changelog-version summary:hover {
    color: var(--link-fg);
}

.dNDT-changelog-version-current .dNDT-release-notes-title {
    margin-top: 0;
}

ul,
ul li {
    list-style-type: none;
}

ul.dNDT-link-list li a {
    font-weight: bold;
}

ul.dNDT-link-list li a:hover {
    text-decoration: underline;
}

#content-main-change-form {
    padding-right: 25px;
}

#changelist .actions {
    padding: 0;
    border-top: none;
    border-bottom: none;
    line-height: 24px;
    color: #999;
}

#changelist .actions select {
    height: 40px;
    background-color: var(--body-bg);
    border-radius: 0;
    font-size: 14px;
    padding: 0 10px 0 10px;
    margin-left: 0;
}

#changelist .actions span.all,
#changelist .actions span.action-counter,
#changelist .actions span.clear,
#changelist .actions span.question {
    font-size: 14px;
}

#changelist td,
th {
    vertical-align: middle;
}

#searchbar {
    color: var(--body-quiet-color);
    background: var(--darkened-bg);
}

.object-tools a {
    border-radius: 5px;
}

.aligned label + p,
.aligned label + div.help,
.aligned label + div.readonly {
    margin-left: 0;
    padding: 0;
}

.aligned label + div.readonly {
    margin-left: 0;
}

.help::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f05a";
    display: inline-block;
    margin-right: 0.5em;
}

.selector .help-icon {
    background: none;
}

.selector .selector-chosen .help-icon {
    background: none;
    color: #fff;
}

.aligned .form-row:has(.selector) > div {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
}

.aligned .form-row:has(.selector) > div > label {
    flex: 0 0 100%;
    margin: 0 0 6px;
    order: 0;
    width: auto;
}

.aligned .form-row:has(.selector) > div > .selector,
.aligned .form-row:has(.selector) > div > .related-widget-wrapper {
    flex: 0 0 auto;
    margin-left: 0;
    max-width: 1000px;
    order: 1;
    width: min(100%, 1000px);
}

.aligned .form-row:has(.selector) .selector {
    display: inline-flex;
    width: 100% !important;
}

.aligned .form-row:has(.selector) .related-widget-wrapper-link {
    margin-left: 8px;
    vertical-align: top;
}

.aligned .form-row:has(.selector) > div > .help {
    flex: 0 0 100%;
    margin: 6px 0 0;
    order: 2;
    padding: 0;
}

.selector-available,
.selector-chosen {
    flex: 1 1 0 !important;
    min-width: 0;
}

.selector-chosen-title,
.selector-chosen .list-footer-display {
    background-color: var(--drivendt-theme-bg) !important;
    color: var(--drivendt-theme-fg) !important;
}

.selector-chosen-title label,
.selector-chosen-title .helptext,
.selector-chosen .list-footer-display__clear {
    color: var(--drivendt-theme-fg) !important;
}

.required label::after,
label.required::after {
    content: "*" !important;
    color: red;
    vertical-align: baseline !important;
}

.aligned p.file-upload {
    margin-left: 0;
}

.login #container {
    width: 30em;
    min-width: 100px;
    margin: 100px auto;
}

#client-container {
    width: 30em;
    min-width: 100px;
    margin: 100px auto;
}

.client-select {
    width: 100%;
}

.paginator {
    font-size: 14px;
    display: block;
}

.paginator a:link,
.paginator a:visited {
    background: lightgrey;
}

.paginator a:focus,
.paginator a:hover {
    color: white;
    background: grey;
}

.paginator a.showall,
a.showall:focus,
.paginator a.showall:hover {
    background: none;
}

.paginator .this-page {
    font-size: 14px;
}

/* MODULES */

.module p,
.module ul,
.module h3,
.module h4,
.module dl,
.module pre {
    padding-left: 0;
}

.module h2,
.module caption {
    color: var(--body-fg);
    background-color: var(--body-bg);
    margin-top: 5px;
}

.calendarbox caption {
    text-align: center;
    background: #9e9e9e;
}

/* Modernized single- and multi-select related widgets. */
.related-widget-wrapper.dNDT-related-select-widget {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    vertical-align: middle;
    white-space: nowrap;
}

.dNDT-related-select-widget > select,
.dNDT-related-select-widget > .select2-container {
    /* Keep the width declared by the widget (or DAL's 20em default).
       The action buttons extend the wrapper instead of reducing the input. */
    flex: 0 0 auto;
}

.dNDT-related-select-widget > .related-widget-wrapper-link {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 30px;
    width: 30px;
    min-height: 28px;
    margin-left: 4px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--body-bg);
    color: var(--body-quiet-color);
    filter: none;
    font-size: 14px;
    opacity: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dNDT-related-select-widget > .related-widget-wrapper-link[href]:hover,
.dNDT-related-select-widget > .related-widget-wrapper-link[href]:focus {
    border-color: var(--drivendt-theme-bg, var(--primary));
    background: var(--darkened-bg);
    color: var(--drivendt-theme-bg, var(--primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 20%, transparent);
    text-decoration: none;
}

.dNDT-related-select-widget > .related-widget-wrapper-link[aria-disabled="true"] {
    color: var(--body-quiet-color);
    opacity: 0.35;
    pointer-events: none;
}

.dNDT-related-select-widget--multiple > .related-widget-wrapper-link {
    min-height: 32px;
}

/* Modernized Django admin date/time shortcuts. */
.split-datetime-input-widget {
    display: inline-grid;
    align-items: center;
    grid-template-columns: max-content auto;
    gap: 6px 8px;
    max-width: 100%;
    vertical-align: middle;
}

.split-datetime-input-widget-label {
    color: var(--body-quiet-color);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.split-datetime-input-widget > .datetime-input-widget {
    display: flex;
    box-sizing: border-box;
    width: 100%;
}

.datetime-input-widget {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--darkened-bg);
    vertical-align: middle;
    white-space: nowrap;
}

.datetime-input-widget:focus-within {
    border-color: var(--body-quiet-color);
}

.errors .datetime-input-widget {
    border-color: var(--error-fg);
}

.datetime-input-widget > input.vDateField,
.datetime-input-widget > input.vTimeField {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.datetime-input-widget > .datetimeshortcuts {
    align-self: stretch;
    flex: 0 0 auto;
    gap: 0;
    margin-left: 0;
    min-height: 0;
    color: transparent;
    font-size: 0;
}

.datetime-input-widget > .datetimeshortcuts > a:first-child {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 8px;
    border-left: 1px solid var(--border-color);
    background: var(--body-bg);
    font-size: 0.78rem;
    line-height: 1;
}

.datetime-input-widget > .datetimeshortcuts > a:first-child:hover,
.datetime-input-widget > .datetimeshortcuts > a:first-child:focus {
    background: var(--darkened-bg);
    text-decoration: none;
}

.datetime-input-widget > .datetimeshortcuts > a:last-child {
    box-sizing: border-box;
    width: 34px;
    height: auto;
    border: 0;
    border-left: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--body-bg);
}

.datetime-input-widget > .datetimeshortcuts > a:last-child:hover,
.datetime-input-widget > .datetimeshortcuts > a:last-child:focus {
    box-shadow: none;
}

.datetimeshortcuts {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    min-height: 28px;
    vertical-align: middle;
    white-space: nowrap;
}

.datetimeshortcuts a {
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.datetimeshortcuts a:hover,
.datetimeshortcuts a:focus {
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    text-decoration: underline;
}

.datetimeshortcuts a:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--drivendt-theme-bg, var(--primary));
    border-radius: 5px;
    background: var(--body-bg);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.datetimeshortcuts a:last-child:hover,
.datetimeshortcuts a:last-child:focus {
    background: var(--darkened-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 20%, transparent);
}

.datetimeshortcuts .clock-icon,
.datetimeshortcuts .date-icon {
    top: 0;
    width: 18px;
    height: 18px;
    background-size: 18px auto;
}

.datetimeshortcuts a:focus .clock-icon,
.datetimeshortcuts a:hover .clock-icon,
.datetimeshortcuts a:focus .date-icon,
.datetimeshortcuts a:hover .date-icon {
    background-position: 0 -18px;
}

.date-input-widget .date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: none;
}

.date-input-widget .date-icon::before {
    color: var(--drivendt-theme-bg, var(--primary));
    content: "\f073";
    font-family: "Font Awesome 7 Free";
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.time-input-widget .clock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: none;
}

.time-input-widget .clock-icon::before {
    color: var(--drivendt-theme-bg, var(--primary));
    content: "\f017";
    font-family: "Font Awesome 7 Free";
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.calendarbox.module,
.clockbox.module {
    width: min(18.5rem, calc(100vw - 2rem));
    margin: 8px auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--body-bg);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    color: var(--body-fg);
    font-size: 0.82rem;
    z-index: 1000 !important;
}

.clockbox.module {
    width: 14rem;
}

.clockbox.module.dNDT-time-picker {
    width: min(18rem, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
}

.clockbox.module.dNDT-time-picker > h2 {
    margin-right: 8px;
    margin-left: 8px;
}

.dNDT-time-picker-body {
    padding: 12px 14px;
    background: var(--body-bg);
}

.dNDT-time-picker-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.clockbox.module .dNDT-time-picker-display-value {
    min-width: 48px;
    padding: 3px 5px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--body-quiet-color);
    cursor: pointer;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
}

.clockbox.module .dNDT-time-picker-display-value:hover,
.clockbox.module .dNDT-time-picker-display-value:focus,
.clockbox.module .dNDT-time-picker-display-value-active {
    border-bottom-color: var(--drivendt-theme-bg, var(--primary));
    color: var(--drivendt-theme-bg, var(--primary));
    outline: 0;
}

.dNDT-time-picker-display-separator {
    color: var(--body-fg);
    font-size: 1.35rem;
    font-weight: 800;
}

.dNDT-time-picker-period {
    display: grid;
    gap: 1px;
    margin-left: 7px;
}

.clockbox.module .dNDT-time-picker-period button {
    padding: 1px 4px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--body-quiet-color);
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 700;
}

.clockbox.module .dNDT-time-picker-period button.active {
    background: var(--drivendt-theme-bg, var(--primary));
    color: var(--drivendt-theme-fg, var(--button-fg));
}

.dNDT-time-picker-dial {
    position: relative;
    width: min(14rem, calc(100vw - 4rem));
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid var(--hairline-color);
    border-radius: 50%;
    background: var(--darkened-bg);
    cursor: crosshair;
    touch-action: none;
    user-select: none;
}

.dNDT-time-picker-dial:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 18%, transparent);
    outline: 0;
}

.dNDT-time-picker-number {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: var(--body-fg);
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.dNDT-time-picker-number-inner {
    width: 23px;
    height: 23px;
    color: var(--body-quiet-color);
    font-size: 0.62rem;
}

.dNDT-time-picker-number-selected {
    background: var(--drivendt-theme-bg, var(--primary));
    color: var(--drivendt-theme-fg, var(--button-fg));
}

.dNDT-time-picker-hand {
    position: absolute;
    bottom: 50%;
    left: calc(50% - 1px);
    z-index: 1;
    width: 2px;
    height: var(--dNDT-hand-length, 40%);
    border-radius: 2px;
    background: var(--drivendt-theme-bg, var(--primary));
    pointer-events: none;
    transform: rotate(var(--dNDT-hand-angle, 0deg));
    transform-origin: center bottom;
    transition: height 0.12s ease, transform 0.08s ease;
}

.dNDT-time-picker-dial-dragging .dNDT-time-picker-hand {
    transition: none;
}

.dNDT-time-picker-hand::before {
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--drivendt-theme-bg, var(--primary));
    content: "";
}

.dNDT-time-picker-center {
    position: absolute;
    top: calc(50% - 4px);
    left: calc(50% - 4px);
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--drivendt-theme-bg, var(--primary));
    pointer-events: none;
}

.clockbox.module .dNDT-time-picker-now {
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    font-weight: 700;
}

.dNDT-time-picker-now .fa-clock {
    margin-right: 6px;
}

.dNDT-time-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--darkened-bg);
}

.clockbox.module .dNDT-time-picker-actions .w3-button {
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.clockbox.module .dNDT-time-picker-cancel {
    border: 1px solid var(--border-color) !important;
    background: var(--body-bg) !important;
    color: var(--body-fg) !important;
}

.calendarbox.module .calendar,
.clockbox.module .timelist {
    background: var(--body-bg);
}

.calendarbox.module .calendar {
    padding: 4px 8px 8px;
}

.calendarbox.module .calendar table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 3px;
    background: var(--body-bg);
}

.calendarbox.module .calendar caption,
.calendarbox.module .calendarbox h2,
.calendarbox.module h2,
.clockbox.module h2 {
    padding: 12px 40px;
    border-bottom: 1px solid var(--hairline-color);
    background: color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 9%, var(--body-bg));
    color: var(--body-fg);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
}

.calendarbox.module .calendar th {
    padding: 7px 3px 5px;
    border-bottom: 0;
    background: var(--body-bg);
    color: var(--body-quiet-color);
    font-size: 0.78rem;
    font-weight: 700;
}

.calendarbox.module .calendar td {
    height: 30px;
    border: 0;
    background: var(--body-bg);
    color: var(--body-fg);
    font-size: 0.82rem;
}

.calendarbox.module .calendar td.nonday {
    background: transparent;
}

.calendarbox.module .calendar td a,
.clockbox.module .timelist a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0;
    border-radius: 6px;
    color: var(--body-fg) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.clockbox.module .timelist a {
    min-height: 34px;
    justify-content: flex-start;
    padding: 0 14px;
}

.calendarbox.module .calendar td a:hover,
.calendarbox.module .calendar td a:focus,
.clockbox.module .timelist a:hover,
.clockbox.module .timelist a:focus {
    background: var(--darkened-bg);
    color: var(--drivendt-theme-bg, var(--primary)) !important;
}

.calendarbox.module .calendar td.selected a,
.calendarbox.module .calendar td.selected a:hover,
.calendarbox.module .calendar td.selected a:focus {
    background: var(--drivendt-theme-bg, var(--primary));
    color: var(--drivendt-theme-fg, var(--button-fg)) !important;
}

.calendarbox.module .calendar td.today a {
    box-shadow: inset 0 0 0 1px var(--drivendt-theme-bg, var(--primary));
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    font-weight: 800;
}

.calendarbox.module .calendar td.today.selected a {
    color: var(--drivendt-theme-fg, var(--button-fg)) !important;
}

.calendarbox.module .calendarnav-previous,
.calendarbox.module .calendarnav-next {
    top: 20px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--drivendt-theme-bg, var(--primary));
    background-image: none;
    color: transparent !important;
    display: block;
    text-indent: 0;
}

.calendarbox.module .calendarnav-previous {
    left: 16px;
}

.calendarbox.module .calendarnav-next {
    right: 16px;
}

.calendarbox.module .calendarnav-previous::before,
.calendarbox.module .calendarnav-next::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-color: var(--drivendt-theme-fg, var(--button-fg));
    border-style: solid;
    border-width: 0 3px 3px 0;
    content: "";
}

.calendarbox.module .calendarnav-previous::before {
    transform: translate(-35%, -50%) rotate(135deg);
}

.calendarbox.module .calendarnav-next::before {
    transform: translate(-65%, -50%) rotate(-45deg);
}

.calendarbox.module .calendarnav-previous:hover,
.calendarbox.module .calendarnav-previous:focus,
.calendarbox.module .calendarnav-next:hover,
.calendarbox.module .calendarnav-next:focus {
    background-color: color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 84%, black);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 18%, transparent);
}

.calendarbox.module .calendar-shortcuts {
    padding: 8px 10px;
    border-top: 1px solid var(--hairline-color);
    background: var(--darkened-bg);
    color: var(--body-quiet-color);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.calendarbox.module .calendar-shortcuts a {
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    text-decoration: none;
}

.calendarbox.module .calendar-shortcuts a:hover,
.calendarbox.module .calendar-shortcuts a:focus {
    text-decoration: underline;
}

.calendarbox.module .calendar-cancel,
.clockbox.module .calendar-cancel {
    padding: 0;
    border-top: 1px solid var(--border-color);
    background: var(--darkened-bg);
    color: var(--body-quiet-color);
    font-size: 0.82rem;
}

.calendarbox.module .calendar-cancel a,
.clockbox.module .calendar-cancel a {
    padding: 9px 10px;
    color: var(--drivendt-theme-bg, var(--primary)) !important;
    font-weight: 700;
    text-decoration: none;
}

.calendarbox.module .calendar-cancel:hover,
.calendarbox.module .calendar-cancel:focus,
.clockbox.module .calendar-cancel:hover,
.clockbox.module .calendar-cancel:focus {
    background: var(--body-bg);
}

#dNDT-scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.15s ease;
    text-decoration: none;
}

#dNDT-scroll-to-top:hover,
#dNDT-scroll-to-top:hover {
    transform: scale(1.25);
    border: 0 !important;
}

/*---      FontAwesome Enhancement       ---*/
/*--- CSS for changing fa-icons on hover ---*/

* > .fas.fa-hover-show,
*:hover > .fas.fa-hover-hidden {
    display: none;
}

*:hover > .fas.fa-hover-show {
    display: inline-block;
}

div.breadcrumbs {
    padding: 10px 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea,
select,
.vTextField {
    background-color: var(--darkened-bg);
}

input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #aaa;
    cursor: not-allowed;
}

fieldset {
    /* FIXED: reverted min-width of django3 base.css */
    min-width: revert !important;
}

/* SUBMIT ICON BAR */

.submit-iconbar {
    position: fixed;
    top: 50%;
    right: -310px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: 0.4s;
    z-index: 99;
}

.submit-iconbar button {
    display: block;
    text-align: left;
    padding: 10px;
    font-size: 18px;
    width: 350px;
    text-transform: uppercase;
}

.submit-iconbar button i {
    margin-right: 4px;
}

.submit-iconbar span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.4s;
}

.submit-iconbar span:hover {
    padding-right: 265px;
}

@media (max-width: 767px) {
    .submit-iconbar {
        position: static; /* Reset the position */
        transform: none; /* Remove any transformations */
        z-index: auto; /* Reset z-index */
    }

    .submit-iconbar button,
    .submit-iconbar button {
        font-size: 16px;
        width: 100%;
    }

    .submit-iconbar span {
        display: inline; /* Adjust display */
    }

    .submit-iconbar span:hover {
        padding-right: 0; /* Reset padding */
    }
}

.related-widget-wrapper {
    overflow: visible;
}

.aligned label {
    float: none;
    width: 250px;
}

.errors .select2-selection {
    border: 1px solid var(--error-fg) !important;
}

/* FORM ROWS */

input:disabled,
select:disabled,
textarea:disabled {
    color: var(--body-fg);
    background-color: #aaa;
    opacity: 60%;
    border: 1px solid var(--body-fg);
}

/* Keep checkbox text consistently to the right, including legacy labels
   whose text is rendered before the checkbox input. */
form label:has(> input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 0;
    line-height: 22px;
    cursor: pointer;
}

form label:has(> input[type="checkbox"]) > input[type="checkbox"] {
    order: -1;
    margin: 0;
}

/* Django's default selected-row color is pale yellow. Use the active DRIVE
   theme for readable selections in every native multiple-select widget. */
form select[multiple] option:checked {
    color: var(--drivendt-theme-fg, #fff) !important;
    background-color: var(--drivendt-theme-bg, var(--primary)) !important;
}

/* Modern checkbox control with a distinct, framework-standard form shape. */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-grid;
    place-content: center;
    flex: 0 0 22px;
    inline-size: 22px;
    block-size: 22px;
    min-inline-size: 22px;
    margin: 0 6px 0 0;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--body-bg);
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    color: #fff;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="checkbox"]:hover {
    border-color: var(--drivendt-theme-bg, var(--primary));
    background-color: var(--darkened-bg);
}

input[type="checkbox"]:focus-visible {
    border-color: var(--drivendt-theme-bg, var(--primary));
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--drivendt-theme-bg, var(--primary)) 20%, transparent);
}

input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate {
    border-color: var(--drivendt-theme-bg, var(--primary));
    background-color: var(--drivendt-theme-bg, var(--primary));
}

input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5'/%3E%3C/svg%3E");
}

input[type="checkbox"]:indeterminate {
    background-image: linear-gradient(#fff, #fff);
    background-size: 10px 2px;
}

input[type="checkbox"]:disabled {
    border-color: var(--border-color);
    background-color: var(--darkened-bg);
    color: var(--body-quiet-color);
    cursor: not-allowed;
    opacity: 0.5;
}

input[type="checkbox"]:disabled:checked,
input[type="checkbox"]:disabled:indeterminate {
    background-color: var(--body-quiet-color);
    color: var(--body-bg);
}

.errors input[type="checkbox"] {
    border-color: var(--error-fg);
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"] {
        transition: none;
    }
}

form fieldset legend {
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    min-width: 500px;
    padding: 4px 8px;
    margin: 5px 0 5px 0;
    text-transform: uppercase;
}

form fieldset legend.w3-border {
    border-left-width: 4px !important;
}

.form-row {
    border-bottom: none;
}

.form-row label input[type="checkbox"] {
    vertical-align: middle;
}

.aligned .checkbox-row,
.aligned .fieldBox.checkbox-row,
.aligned .field-box.checkbox-row {
    align-items: center;
    column-gap: 5px;
    display: inline-grid !important;
    grid-template-columns: auto 1fr;
    row-gap: 4px;
}

.aligned .checkbox-row input[type="checkbox"] {
    grid-column: 1;
    margin: 0;
}

.aligned .checkbox-row .vCheckboxLabel {
    grid-column: 2;
    line-height: normal;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    width: auto;
}

.aligned .checkbox-row > .help {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 0;
}

.aligned .form-row > div > .checkbox-row + .help {
    margin-top: 8px;
    padding-top: 0;
}

.aligned .form-row:has(.fieldBox + .fieldBox) .fieldBox:has(> input[type="checkbox"] + .vCheckboxLabel),
.aligned .form-row:has(.field-box + .field-box) .field-box:has(> input[type="checkbox"] + .vCheckboxLabel) {
    padding-top: 22px;
}

/* FORMS */

form .wide p,
form .wide ul.errorlist,
form .wide input + p.help,
form .wide input + div.help {
    margin-left: 0;
}

form .aligned p.help,
form .aligned div.help {
    margin-left: 2px;
    padding-left: 0;
}

form .aligned input + p.help,
form .aligned textarea + p.help,
form .aligned select + p.help,
form .aligned input + div.help,
form .aligned textarea + div.help,
form .aligned select + div.help {
    margin-left: 2px;
    padding-left: 0;
}

form .aligned ul {
    margin-left: 0;
    padding-left: 0;
}

.aligned .vCheckboxLabel {
    margin-top: 0;
    vertical-align: -2px;
}

.aligned select[style*="width:425px"]:not([style*="-width"]) + .select2,
.aligned select[style*="width:425px"]:not([style*="-width"]) ~ .select2,
.aligned select[style*="width: 425px"]:not([style*="-width"]) + .select2,
.aligned select[style*="width: 425px"]:not([style*="-width"]) ~ .select2 {
    width: 425px !important;
}

.aligned select[style*="width:325px"]:not([style*="-width"]) + .select2,
.aligned select[style*="width:325px"]:not([style*="-width"]) ~ .select2,
.aligned select[style*="width: 325px"]:not([style*="-width"]) + .select2,
.aligned select[style*="width: 325px"]:not([style*="-width"]) ~ .select2 {
    width: 325px !important;
}

.aligned select[style*="min-width:325px"] + .select2,
.aligned select[style*="min-width:325px"] ~ .select2,
.aligned select[style*="min-width: 325px"] + .select2,
.aligned select[style*="min-width: 325px"] ~ .select2 {
    min-width: 325px !important;
}

fieldset.collapsed {
    border: 0;
    border-radius: 0;
}

fieldset .fieldBox {
    float: left;
}

form .aligned div.help {
    clear: left;
}

.dNDT-range-slider-wrapper{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  column-gap:6px;
  row-gap:4px;
  width:100%;
}

.dNDT-range-slider-wrapper input[type="range"]{
  grid-column:1;
  width:100%;
}

.dNDT-range-slider-output{
  grid-column:2;
  min-width:45px;
  text-align:right;
  font-weight:500;
}

.dNDT-range-slider-quality-scale{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:2px;
  margin:0 2px;
}

.dNDT-range-slider-quality-scale-segment{
  --dpi-quality-color:var(--body-quiet-color);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:18px;
  padding:2px 1px;
  border:1px solid var(--border-color);
  border-top:2px solid var(--dpi-quality-color);
  border-radius:3px;
  background:var(--body-bg);
  background:color-mix(in srgb, var(--dpi-quality-color) 8%, var(--body-bg));
  color:var(--dpi-quality-color);
  color:color-mix(in srgb, var(--dpi-quality-color) 72%, var(--body-fg));
  font-size:9px;
  line-height:1.05;
  text-align:center;
  text-shadow:none;
}

.dNDT-range-slider-quality-scale-segment-excellent{
  --dpi-quality-color:#166534;
}

.dNDT-range-slider-quality-scale-segment-good{
  --dpi-quality-color:#65a30d;
}

.dNDT-range-slider-quality-scale-segment-caution{
  --dpi-quality-color:#a16207;
}

.dNDT-range-slider-quality-scale-segment-risky{
  --dpi-quality-color:#c2410c;
}

.dNDT-range-slider-quality-scale-segment-bad{
  --dpi-quality-color:#b91c1c;
}

.dNDT-range-slider-quality-scale-segment strong,
.dNDT-range-slider-quality-scale-segment small{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:clip;
  white-space:nowrap;
}

.dNDT-range-slider-quality-scale-segment small{
  font-size:9px;
  font-weight:500;
}

.dNDT-range-slider-quality-excellent input[type="range"]{
  accent-color:#166534;
}

.dNDT-range-slider-quality-excellent .dNDT-range-slider-output{
  color:#166534;
  font-weight:700;
}

.dNDT-range-slider-quality-good input[type="range"]{
  accent-color:#65a30d;
}

.dNDT-range-slider-quality-good .dNDT-range-slider-output{
  color:#4d7c0f;
  font-weight:700;
}

.dNDT-range-slider-quality-caution input[type="range"]{
  accent-color:#eab308;
}

.dNDT-range-slider-quality-caution .dNDT-range-slider-output{
  color:#a16207;
  font-weight:700;
}

.dNDT-range-slider-quality-risky input[type="range"]{
  accent-color:#f97316;
}

.dNDT-range-slider-quality-risky .dNDT-range-slider-output{
  color:#c2410c;
  font-weight:700;
}

.dNDT-range-slider-quality-bad input[type="range"]{
  accent-color:#dc2626;
}

.dNDT-range-slider-quality-bad .dNDT-range-slider-output{
  color:#b91c1c;
  font-weight:700;
}

.custom-upload-button {
    text-transform: uppercase;
    min-width: 260px;
    min-height: 36px;
    border-radius: 5px;
}

.custom-upload-filename {
    background-color: var(--body-bg);
    min-width: 260px;
}

.inline-column-title th {
    font-weight: normal;
    font-size: 11px;
    padding: 5px 10px;
    line-height: normal;
    text-transform: uppercase;
    color: var(--body-quiet-color);
    background: var(--body-bg);
    border: none;
    border-top: 1px solid var(--hairline-color);
    border-bottom: 1px solid var(--hairline-color);
}

.inline-column-title th.required {
    color: var(--body-loud-color);
    font-weight: 600;
}

.hidden {
    visibility: hidden; /* fix for safari browser */
}

.fieldBox p {
    font-family: Exo2;
}

#content {
    padding: 0;
}

#breadcrumb {
    z-index: 9999;
    max-height: var(--header-height);
    overflow: visible !important;
}

#driveMain {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    margin-left: var(--nav-bar-width);
}

#dNDT-nav-sidebar {
    z-index: 999;
    max-width: var(--nav-bar-width);
    margin-top: var(--header-height);
    padding-bottom: calc(var(--header-height) * 3);
}

#dNDT-nav-sidebar-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    max-width: var(--nav-bar-width-extended);
    background: var(--darkened-bg);
    opacity: 0.9;
}

#dNDT-nav-sidebar-button {
    max-width: var(--nav-bar-width);
}

#dNDT-show-sidebar-button,
#dNDT-hide-sidebar-button {
    position: fixed;
    top: calc(var(--header-height) + 11px);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.15s ease;
    text-decoration: none;
}

#dNDT-show-sidebar-button {
    left: calc(var(--nav-bar-width) - 13px);
}

#dNDT-hide-sidebar-button {
    left: calc(var(--nav-bar-width-extended) - 13px);
}

#dNDT-show-sidebar-button:hover,
#dNDT-hide-sidebar-button:hover {
    transform: scale(1.15);
    border: 0 !important;
}

#dNDT-show-sidebar-button:hover i,
#dNDT-hide-sidebar-button:hover i {
    color: var(--breadcrumbs-link-fg);
}

.dNDT-sidebar-pinned #driveMain {
    margin-left: 220px;
}

.dNDT-user-settings-wrap {
    align-items: center;
    display: flex;
    height: var(--header-height);
}

.dNDT-user-settings-name {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    gap: 0.45rem;
    height: var(--header-height);
    max-width: 360px;
    overflow: hidden;
    padding: 8px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dNDT-user-settings-name span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dNDT-user-settings-menu {
    position: relative;
}

.w3-bar .dNDT-user-settings-menu {
    float: none;
    position: relative;
}

.dNDT-user-settings-button {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: var(--header-height);
    justify-content: center;
    min-width: var(--header-height);
}

.dNDT-user-settings-dropdown {
    max-width: calc(100vw - 16px);
    min-width: 280px;
    padding: 8px 0;
    right: 0;
}

.dNDT-user-settings-dropdown .w3-bar-item,
.dNDT-user-settings-dropdown .w3-button {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    white-space: nowrap;
}

.dNDT-user-settings-dropdown .w3-bar-item i,
.dNDT-user-settings-dropdown .w3-button i {
    min-width: 1rem;
    text-align: center;
}

.dNDT-user-settings-section-title {
    color: var(--breadcrumbs-link-fg);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.72;
    padding: 8px 16px 5px;
}

.dNDT-user-settings-account {
    padding: 0 16px 10px;
}

.dNDT-user-settings-primary {
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dNDT-user-settings-secondary,
.dNDT-user-settings-meta {
    font-size: 0.78rem;
    opacity: 0.72;
}

.dNDT-user-settings-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.dNDT-user-settings-badge {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    opacity: 0.8;
    padding: 0 8px;
    text-transform: uppercase;
}

.dNDT-user-settings-meta {
    margin-top: 7px;
}

.dNDT-user-settings-footer {
    align-items: center;
    box-sizing: border-box;
    color: var(--breadcrumbs-link-fg);
    display: flex;
    font-size: 0.78rem;
    font-weight: 500;
    justify-content: center;
    line-height: 1.2;
    opacity: 0.68;
    padding: 9px 16px 8px;
    text-decoration: none;
    white-space: nowrap;
}

.dNDT-user-settings-footer:hover {
    opacity: 1;
    text-decoration: none;
}

.dNDT-nav-subtitle.is-hidden {
    visibility: hidden;
}

#language-sidebar {
    z-index: 999;
    display: none;
    min-width: 250px;
    right: 0;
    padding-bottom: 25px;
    margin-top: var(--header-height);
    -webkit-overflow-scrolling: touch;
}

#client-sidebar {
    z-index: 999;
    display: none;
    min-width: 250px;
    right: 0;
    padding-bottom: 25px;
    margin-top: var(--header-height);
    -webkit-overflow-scrolling: touch;
}

#content-overlay {
    cursor: pointer;
}

#spinner {
    display: none;
}

.dNDT-chart {
    height: 500px;
}

.dNDT-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30em;
}

.dNDT-changelist-title {
    background-color: var(--darkened-bg) !important;
}

.dNDT-object-tools-items-dropdown {
    max-height: 500px !important;
    overflow: auto !important;
    overflow-x: hidden !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 1000 !important;
}

.dNDT-nav-dropdown {
    position: fixed !important;
    margin-left: 50px !important;
    min-width: 180px !important;
    overflow: auto !important;
}

.dNDT-action-dropdown {
    background-color: var(--body-bg) !important;
}

.w3-sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.w3-sidebar::-webkit-scrollbar {
    display: none;
}

.dNDT-nav-item {
    padding-left: 10px;
    display: none;
}

.dNDT-object-hover:hover {
    cursor: pointer;
    background: var(--selected-bg);
}

.dNDT-list-object {
    height: 40px;
}

.dNDT-list-object-archived {
    font-style: italic;
}

/* Keep changelist selection controls compact enough for the table header. */
#result_list input#action-toggle,
#result_list input.action-select,
.floatThead-table input#action-toggle {
    display: inline-grid;
    place-content: center;
    flex: 0 0 18px;
    inline-size: 18px;
    block-size: 18px;
    min-inline-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 3px;
    vertical-align: middle;
}

#result_list input#action-toggle:checked,
#result_list input.action-select:checked,
.floatThead-table input#action-toggle:checked {
    background-size: 12px 12px;
}

#result_list input#action-toggle:indeterminate,
#result_list input.action-select:indeterminate,
.floatThead-table input#action-toggle:indeterminate {
    background-size: 8px 2px;
}

#result_list .action-checkbox,
#result_list .action-checkbox-column {
    vertical-align: middle;
}

#result_list tbody tr > th:first-child a,
#result_list tbody tr > td:first-child a,
#result_list tbody tr > td.action-checkbox + th a,
#result_list tbody tr > td.action-checkbox + td a {
    font-weight: 700;
}

.dNDT-without-original td,
th {
    vertical-align: middle;
}

.dNDT-toggle-bookmark {
    cursor: pointer;
}

.dNDT-footer {
    z-index: 9991 !important;
    position: fixed;
    width: 100%;
    bottom: 0;
    height: var(--footer-height);
}

.dNDT-toggle-content-collapse,
.dNDT-toggle-content-finished {
    cursor: pointer;
}

.dNDT-preview-iframe {
    width: 100%;
    max-height: 960px;
    overflow: hidden;
}

.dNDT-preview-iframe iframe {
    width: 100%;
    height: 960px;
    border: 1px solid #ccc;
}

.dNDT-dropdown-horizontal {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

.dNDT-dropdown-horizontal .dNDT-dropdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dNDT-btn-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 6px 0;
    overflow: hidden;
}

.dNDT-btn-group .dNDT-btn-segment {
    flex: 1;
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    text-align: center;
    border-right: 1px solid #ccc;
    white-space: nowrap;
    color: var(--body-fg);
}

.dNDT-btn-group .dNDT-btn-segment:last-of-type {
    border-right: none;
}

.dNDT-btn {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin: 6px 0;
    cursor: pointer;
}

.dNDT-legend-wide {
    width: 100%;
}

button[type=button]:hover {
    cursor: pointer;
}

button[type=button]:disabled,
button[type=button]:disabled:hover {
    cursor: not-allowed; /* oder default */
}
