/* Disable dark mode and set var values */
:root {
    --primary: #f3a533;
    --secondary: #FFFFFF;
    --accent: #ffcb63;
    --primary-fg: #333333;
    --active-primary: var(--accent-color);
    --sub-primary: #c98219;
    --body-fg: #333;
    --body-bg: #FFF;
    --body-quiet-color: #666;
    --body-loud-color: #000;
    --header-color: #FFF;
    --header-branding-color: var(--accent);
    --header-bg: var(--secondary);
    --header-link-color: var(--primary-fg);
    --breadcrumbs-fg: #FFFFFF;
    --breadcrumbs-link-fg: var(--body-bg);
    --breadcrumbs-bg: var(--primary);
    --admin-nav-sidebar-width: 276px;
    --admin-nav-sidebar-bg: var(--sub-primary);
    --admin-header-height: 56px;
    --admin-breadcrumbs-height: 44px;
    --admin-chrome-height: calc(var(--admin-header-height) + var(--admin-breadcrumbs-height));
    /*--link-fg: #447e9b;*/
    --link-fg: var(--active-primary);
    --link-hover-color: #036;
    --link-selected-fg: var(--primary);
    --hairline-color: #e8e8e8;
    --border-color: #ccc;
    --error-fg: #ba2121;
    --message-success-bg: #dfd;
    --message-warning-bg: #ffc;
    --message-error-bg: #ffefef;
    --darkened-bg: #f8f8f8;
    --selected-bg: #e4e4e4;
    --selected-row: #609ab6;
    --button-fg: #fff;
    --button-bg: var(--primary);
    --button-hover-bg: #00507B;
    --default-button-bg: #000000;
    --default-button-hover-bg: #222222;
    --close-button-bg: #888;
    --close-button-hover-bg: #747474;
    --delete-button-bg: #ba2121;
    --delete-button-hover-bg: #a41515;

    --header-bg: #ffffff;
    --header-color: #1e2d3f;
    --header-link-color: #1e2d3f;
}


/* Other */
html,
body {
    color: #1E2227;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

/*#container {
    min-height: 100vh;
}*/

a {
    color: var(--link-fg);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

a:hover {
    color: var(--link-fg);
    text-decoration: underline;
}

#user-tools a {
    font-size: 15px;
}

.main>#nav-sidebar+.content {
    margin-left: 23px;
}

div .wide label {
    width: 160px;
}

h1 {
    color: #1E2227;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

div table thead th .text span {
    font-family: 'Open Sans';
    padding: 8px 10px;
    display: block;
    font-weight: 600;
}

div#changelist-filter a {
    color: #758093;
    display: block;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

div.submit-row {
    text-align: left;
}

div.submit-row input {
    margin: 0;
    margin-left: 5px;
    margin-right: -5px;
}

div.submit-row input.default {
    float: left;
    margin: 0 5px 0 0;
}

div.submit-row input.default:last-of-type {
    margin: 0;
}

div.submit-row p.deletelink-box {
    float: right;
}

div label {
    font-weight: normal;
    color: #1e2227;
    font-size: 13px;
}

div label:empty {
    display: none;
}

/*div.submit-row a.deletelink {
    display: block;
    background: #ba2121;
    border-radius: 0px;
    padding: 10px 15px;
    height: 15px;
    font-weight: normal;
    font-family: 'Roboto';
    font-size: 13px;
    line-height: 15px;
    color: #fff;
}*/

#content-related,
#content-related .module {
    background: #F3F4F7;
}

div#changelist {
    min-height: 0;
    position: relative;
    width: auto;
}

div#changelist .actions {
    box-sizing: border-box;
}

div#changelist #toolbar {
    background: var(--primary);
    border: none;
    color: #FFFFFF;
    margin-bottom: 0;
    padding: 8px 10px;
}

#changelist-search .quiet,
a.quiet:link,
a.quiet:visited {
    color: #fff;
    font-weight: normal;
}

#changelist-search a:link,
#changelist-search a:visited {
    color: #FFF;
    font-family: 'Open Sans';
    font-weight: 500;
    text-decoration: underline;
}

#changelist-search a:hover {
    color: #3777FF;
    font-family: 'Open Sans';
    font-weight: 500;
}

thead th,
tfoot td {
    color: #1e2227;
    padding: 5px 10px;
    font-size: 11px;
    background: #fff;
    border: none;
    border-top: 1px solid #e7eaf1;
    border-bottom: 1px solid #e7eaf1;
}

#changelist #toolbar {
    padding: 8px 10px;
    margin-bottom: 15px;
    border-top: 1px solid #e7eaf1;
    border-bottom: 1px solid #e7eaf1;
    background: #F3F4F7;
    color: #666;
}

div#changelist #toolbar form #searchbar {
    height: 18px;
    border: 2px solid #758093;
    outline: none;
    padding: 2px 5px;
    margin: 0 0 0 25px;
    vertical-align: top;
    font-size: 13px;
}

div#changelist #toolbar form #searchbar:focus {
    border: 2px solid #3f5371;
}

label[for="searchbar"] img {
    display: none;
}

.module h2 {
    background: var(--primary);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    color: #FFF;
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    padding: 8px;
    text-align: left;
}

.inline-group .tab-notes-inline h2 {
    display: none;
}

.row2 {
    background: #f7f8fb;
}

thead th.sorted {
    background: #eff1f4;
}

table thead th .text a:focus,
table thead th .text a:hover {
    background: #eff1f4;
}

thead th a:link,
thead th a:visited {
    color: #1e2227;
}

thead th {
    padding: 10px;
    line-height: normal;
    text-transform: uppercase;
    background: #f7f8fb;
}

#header #user-tools {
    flex-shrink: 0;
    font-size: 13px;
    color: #3d4d5c;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

#header #user-tools a {
    font-size: 13px;
}

#user-tools strong {
    color: #141414;
    font-weight: 700;
}

/* Admin header bar: full-width sticky strip, logo flush left */
#header {
    align-items: center;
    background-color: var(--header-bg, #ffffff);
    border-bottom: 3px solid #f3a533;
    box-shadow: 0 1px 0 rgba(30, 34, 39, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 24px;
    height: var(--admin-header-height);
    justify-content: space-between;
    left: 0;
    margin: 0;
    min-height: var(--admin-header-height);
    padding: 0 28px;
    position: sticky;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 110;
}

#branding {
    flex: 0 1 auto;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

#branding .branding-container {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0 12px;
    height: var(--admin-header-height);
}

#branding .branding-container > a.branding-avitms-link {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

#branding .branding-container > a img {
    display: block;
    height: 32px;
    width: auto;
}

.branding-divider {
    background: rgba(30, 34, 39, 0.14);
    flex-shrink: 0;
    height: 22px;
    width: 1px;
}

.branding-recharged {
    background: #f3a533;
    border-radius: 999px;
    color: #141414;
    flex-shrink: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 6px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.branding-client-logo-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    max-height: 48px;
    padding: 6px 12px;
}

.branding-client-logo {
    display: block;
    max-height: 36px;
    max-width: 200px;
    object-fit: contain;
    width: auto;
}

.client-logo-admin-preview {
    margin-top: 1.5rem;
    max-width: 640px;
}

.client-logo-admin-preview h3 {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.client-logo-admin-preview__bar {
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-bottom: 3px solid #f3a533;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px 18px;
}

#user-tools {
    float: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

#user-tools a:link,
#user-tools a:visited {
    border-bottom: none !important;
    color: #3d4d5c;
    font-weight: 500;
    text-decoration: none;
}

#user-tools a:hover,
#user-tools a:focus {
    border-bottom: none !important;
    color: #c67608;
    text-decoration: underline;
}

#logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

#logout-form button {
    background: none;
    border: none;
    border-bottom: none !important;
    color: #3d4d5c;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

#logout-form button:hover,
#logout-form button:focus {
    color: #c67608;
    text-decoration: underline;
}

#branding #site-name {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 45px;
    margin: 0 20px 0 0;
    padding: 0;
    text-transform: uppercase;
}

#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
    color: #1e2d3f;
}

#site-name a {
    display: flex;
}

#site-name #site-logo {
    background-image: url('/static/icons/logo-light.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 45px;
    margin: 0 10px 0 0;
    transition: 0.2s;
    width: 45px;
}

div#changelist-filter h2 {
    border-bottom: 1px solid #e7eaf1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 14px 15px 14px 15px;
    text-transform: uppercase;
}

div input[type=text],
div input[type=password],
div input[type=email],
div input[type=url],
div input[type=number],
div input[type=tel],
div textarea,
div select,
div .vTextField {
    border-radius: 3px;
    padding: 5px 6px;
    margin-top: 0;
}

div select {
    width: 274px;
}

input.primary {
    border-color: #333;
}

input.small {
    width: 50px;
}

input.margin-left {
    margin-left: 20px;
}

div .form-row {
    overflow: hidden;
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #e7eaf1;
}

div#changelist-filter h3 {
    color: #1e2227;
    font-weight: 600;
    font-size: 10px;
    padding: 0 15px;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
}

div#changelist-filter li.selected {
    border-left: 0;
    padding-left: 10px;
    margin-left: -10px;
}

a.section:link,
a.section:visited {
    color: #FFF;
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    text-transform: initial;
    text-decoration: none;
}

body div.module caption.admin-index-app-icon,
nav#nav-sidebar caption.admin-index-app-icon {
    background-position: 10px 10px;
    background-repeat: no-repeat;
    background-size: 18px;
    margin-left: 0;
    padding: 9px 10px 8px 34px;
}

body div.module caption.admin-index-app-icon a.section,
body div.module a.sub-section {
    pointer-events: none;
}

/* Django 4+ nav sidebar: same .module markup lives under nav#nav-sidebar — clicks
   must reach a.section so built-in nav_sidebar.js can toggle .active / tbody. */
nav#nav-sidebar div.module caption.admin-index-app-icon a.section,
nav#nav-sidebar div.module a.sub-section,
nav#nav-sidebar div.module tbody th a {
    pointer-events: auto !important;
    cursor: pointer;
}

nav#nav-sidebar.sticky {
    align-self: flex-start;
    box-sizing: border-box;
    height: calc(100vh - var(--admin-chrome-height));
    max-height: calc(100vh - var(--admin-chrome-height));
    padding-top: 0;
    top: var(--admin-chrome-height);
    z-index: 80;
}

nav#nav-sidebar .inner {
    box-sizing: border-box;
    height: calc(100vh - var(--admin-chrome-height) - 72px);
    overflow-y: auto;
    margin-bottom: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

nav#nav-sidebar .inner::-webkit-scrollbar {
    display: none;
}

nav#nav-sidebar caption.admin-index-app-icon {
    min-height: 20px;
}

nav#nav-sidebar caption.admin-index-app-icon:hover,
nav#nav-sidebar .active caption.admin-index-app-icon {
    opacity: 0.75;
}

nav#nav-sidebar tbody {
    display: none;
}

nav#nav-sidebar div.module {
    margin-bottom: 0;
}

nav#nav-sidebar div.module.active tbody,
nav#nav-sidebar div.module.current-app tbody {
    display: table;
    width: 100%;
}

nav#nav-sidebar div.module tbody th {
    padding: 0;
}

nav#nav-sidebar div.module tbody th a {
    box-sizing: border-box;
    display: block;
    padding: 9px 12px 9px 34px;
    width: 100%;
}

nav#nav-sidebar div.module.current-app .current-model {
    background: var(--active-primary);
}

nav#nav-sidebar div.module tr.sub {
    background: var(--sub-primary);
}

nav#nav-sidebar div.module.current-app .current-model a {
    font-weight: bold;
}

nav#nav-sidebar div.current-app a.section:link,
nav#nav-sidebar div.current-app a.section:visited {
    color: #ffffff;
}

#nav-sidebar .nav-sidebar-search {
    background: var(--admin-nav-sidebar-bg);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    left: -270px;
    padding: 10px 10px 30px 10px;
    position: fixed;
    transition: left 0.2s;
    width: 270px;
}

.shifted #nav-sidebar .nav-sidebar-search {
    left: 0;
}

nav#nav-sidebar .nav-sidebar-search input[type="submit"] {
    border-radius: 0;
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
    box-sizing: border-box;
    font-weight: 600;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0 5px;
}

nav#nav-sidebar .nav-sidebar-search input[type="text"] {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    box-sizing: border-box;
    flex: 1;
    height: 30px;
    line-height: 30px;
    outline: none;
    padding: 0 8px !important;
}

nav#nav-sidebar .nav-sidebar-toggle {
    background: var(--primary);
    color: var(--darkened-bg);
    cursor: pointer;
    bottom: 0;
    display: block;
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    height: 30px;
    left: 0px;
    line-height: 30px;
    position: fixed;
    text-align: center;
    transition: left 0.2s;
    width: 30px;
}

.shifted #nav-sidebar .nav-sidebar-toggle {
    background: var(--admin-nav-sidebar-bg);
    color: var(--primary);
    left: 240px;
    transform: rotate(180deg);
}

nav#nav-sidebar a.addlink {
    display: none;
}

.changelist-form-container {
    box-shadow: 0px 0px 18px -3px rgb(30 34 39 / 8%);
}

.filtered .changelist-form-container {
    margin-right: 260px !important;
}

fieldset a.collapse-toggle {
    color: #FFF;
}

div fieldset.collapsed .collapse-toggle {
    background: transparent;
    display: inline;
    color: #3777FF;
}

.inline-related fieldset {
    margin: 0;
    background: #fff;
    border: none;
    width: calc(100% - 30px);
}

.module caption span {
    color: #FFF;
    float: right;
    font-size: 0.8em;
    line-height: 21px;
    text-decoration: none;
}

th[scope='row'] {
    font-weight: 500;
}

div.breadcrumbs {
    background: var(--primary);
    border: none;
    box-sizing: border-box;
    color: var(--breadcrumbs-fg);
    display: flex;
    align-items: center;
    font-size: 13px;
    left: 0;
    line-height: 1.4;
    margin: 0;
    min-height: var(--admin-breadcrumbs-height);
    padding: 0 28px;
    position: sticky;
    right: 0;
    text-align: left;
    top: var(--admin-header-height);
    width: 100%;
    z-index: 105;
}

#content {
    background: #f3f4f7;
    box-sizing: border-box;
    min-height: calc(100vh - var(--admin-header-height));
    padding: 24px 32px 40px;
}

.main > #nav-sidebar + .content {
    background: #f3f4f7;
    flex: 1;
    min-width: 0;
}

#content h1 {
    color: #1e2227;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 20px;
}

.admin-calendar-shell {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(30, 34, 39, 0.06);
    overflow: hidden;
    padding: 16px 18px 20px;
}

.admin-calendar-shell #calendar,
#calendar.admin-calendar {
    min-height: 720px;
}

.admin-calendar-shell .fc {
    --fc-border-color: #e8ebf0;
    --fc-button-bg-color: #f3a533;
    --fc-button-border-color: #e09420;
    --fc-button-hover-bg-color: #e09420;
    --fc-button-hover-border-color: #c98219;
    --fc-button-active-bg-color: #c98219;
    --fc-button-active-border-color: #b87415;
    --fc-today-bg-color: #fff4df;
}

.admin-calendar-empty {
    color: #5c6778;
    font-size: 0.95rem;
    margin: 0 0 12px;
    padding: 0 4px;
}

.calendar-report-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.calendar-report-card {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(30, 34, 39, 0.05);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    text-decoration: none;
}

.calendar-report-card:hover {
    border-color: #f3a533;
    text-decoration: none;
}

.calendar-report-card span {
    color: #5c6778;
    font-size: 0.92rem;
}

.admin-calendar-table {
    background: #fff;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.admin-calendar-table th,
.admin-calendar-table td {
    border-bottom: 1px solid #e8ebf0;
    padding: 10px 12px;
    text-align: left;
}

.admin-calendar-table th {
    background: #f7f8fb;
    font-weight: 600;
}

.calendar-report-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

body.change-list.model-trainingcalendar #content-main {
    max-width: none;
    width: 100%;
}

body.change-list.model-trainingcalendar .object-tools {
    margin-bottom: 12px;
}

div.breadcrumbs a {
    color: rgba(255, 255, 255, 0.75);
}

div.breadcrumbs a:focus,
div.breadcrumbs a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

fieldset.module.aligned.wide {
    background: white;
    padding: 0;
}

fieldset.module.aligned[class*="tab"] {
    box-shadow: none;
}

fieldset.module.aligned[class*="tab"]:last-child {
    margin-bottom: 0;
}

fieldset.module.aligned[class*="tab"] .form-row:last-child {
    border-bottom: none;
}

fieldset.module.aligned[class*="tab"] h2 {
    background: #F6F6F6;
    color: #333;
    font-size: 18px;
}

fieldset.module.aligned[class*="tab"] .selector h2 {
    background: #f8f8f8;
    color: #666;
    font-size: 11px;
}

fieldset.module.aligned[class*="tab"] .selector .selector-chosen h2 {
    background: var(--primary);
    color: #fff;
}

.django-tabbed-changeform-admin-content>.inline-group:only-child fieldset.module h2 {
    display: none;
}

ul.messagelist li {
    background-size: 16px auto;
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 10px 0;
    padding: 10px 10px 10px 65px;
}

div fieldset.collapsed h2 {
    background: #f8f8f8;
    color: #1e2227;
}

.dashboard .module table td a {
    display: block;
    padding-right: .6em;
    font-family: 'Open Sans';
    padding-left: 18px;
}

div.module table {
    width: calc(100%) !important;
}

.object-tools a {
    text-transform: none !important;
}

.object-tools a:link,
.object-tools a:visited,
.object-tools a.addlink {
    display: block;
    float: left;
    padding: 3px 12px;
    background: var(--primary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFF;
}

#result_list a {
    font-weight: 600;
}

div .inline-group div.add-row,
div .inline-group .tabular tr.add-row td {
    color: #666;
    background: #f7f8fb;
    padding: 8px 10px;
    border-bottom: 1px solid #e7eaf1;
}

div .calendar td.selected a {
    background: var(--primary);
    color: #fff;
}

div .object-tools a.import_link:hover,
div .object-tools a.historylink:hover {
    background-color: #626D7F;
    transition: 0.2s;
    text-decoration: none;
}

div .object-tools a.import_link,
div .object-tools a.historylink {
    background: var(--primary);
}

a.button.check-address {
    background: #5C8FFF;
    border-radius: 3px;
    color: #FFF;
    font-family: 'Open Sans';
    font-size: 11px;
    font-weight: 600;
    margin-left: 20px;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.check-address-result {
    margin-left: 10px;
}

.module caption span a:focus,
.module caption span a:hover {
    color: #FFF !important;
    text-decoration: underline;
}

.button.disabled {
    background: var(--primary);
    cursor: not-allowed;
    opacity: 0.3;
    user-select: none;
}

.button.disabled:hover {
    background: var(--primary);
    text-decoration: none;
}

.select2-container--admin-autocomplete .select2-results__option--highlighted {
    background-color: #288DCD !important;
    color: white;
}

.selector-chosen h2 {
    color: #FFFFFF !important;
}

.errornote {
    font-size: 14px;
    font-weight: 700;
    display: block;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    color: #B33951 !important;
    border: 1px solid #B33951 !important;
    border-radius: 0px;
    background-color: #fff;
    background-position: 5px 12px;
}

ul.errorlist {
    margin: 0 0 4px;
    padding: 0;
    color: #B33951 !important;
    background: #fff;
}

.errors input,
.errors select,
.errors textarea {
    border: 1px solid #B33951;
}

#changelist-filter li.selected a {
    padding-left: 10px
}

#changelist-filter li.selected a:before {
    content: '';
    height: 6px;
    width: 6px;
    position: absolute;
    background: var(--link-selected-fg);
    border-radius: 3px;
    left: 15px;
    margin-top: 7px;
}

#changelist-filter a:focus,
#changelist-filter a:hover,
#changelist-filter li.selected a:focus,
#changelist-filter li.selected a:hover {
    color: #12457C;
}

div#changelist-filter {
    border-left: none;
    box-shadow: 0px 0px 18px -3px rgb(30 34 39 / 8%);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 240px;
    background: #ffffff;
    margin: 0 0 25px 0;
}

@media (max-width: 767px) {

    div .aligned .form-row,
    .aligned .form-row>div {
        display: flex;
        flex-wrap: wrap;
        max-width: calc(100vw - 70px);
    }

    div .form-row {
        padding: 15px;
    }
}

#changelist-filter {
    min-height: 600px;
}

#changelist-form .paginator {
    box-sizing: border-box;
}

.django-tabbed-changeform-admin-content {
    padding: 1em 0 !important;
}

#content-main caption {
    border-radius: 4px 4px 0px 0px;
}

body.dashboard div.module table {
    border-radius: 0px 0px 4px 4px;
    border: 1px solid var(--primary);
    border-collapse: unset;
}

#nav-sidebar .current-app .section:link {
    color: #FFF;
}

#nav-sidebar,
nav#nav-sidebar {
    background-color: var(--admin-nav-sidebar-bg);
    border-right: none;
    border-top: none;
    box-sizing: border-box;
    flex: 0 0 var(--admin-nav-sidebar-width);
    left: calc(-1 * var(--admin-nav-sidebar-width));
    margin-left: calc(-1 * var(--admin-nav-sidebar-width));
    margin-right: 0;
    max-width: var(--admin-nav-sidebar-width);
    overflow: auto;
    padding-top: 0;
    transition: left 0.2s;
    width: var(--admin-nav-sidebar-width);
    z-index: 80;
}

.main.shifted nav#nav-sidebar {
    background-color: var(--admin-nav-sidebar-bg);
    left: 0;
    transition: 0.2s;
}

nav#nav-sidebar:hover a.section,
nav#nav-sidebar:hover th a {
    display: inline;
}

#toggle-nav-sidebar.sticky,
button.toggle-nav-sidebar.sticky {
    align-self: flex-start;
    max-height: calc(100vh - var(--admin-chrome-height));
    top: var(--admin-chrome-height);
    z-index: 85;
}

div.module th,
div.module td {
    border-bottom: 0;
}

#content-related {
    display: none;
}

h1 {
    margin: 0 0 20px;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

#nav-sidebar .current-app a.section:link {
    color: #FFF;
}

.brand-logo {
    cursor: pointer;
    height: 80px;
    margin: 25px 0;
    width: auto;
}

@media screen and (max-width: 767px) {
    #header {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--admin-header-height);
        padding: 10px 16px;
    }

    #branding .branding-container {
        height: auto;
    }

    #header #user-tools {
        white-space: normal;
    }

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

    .main>#nav-sidebar+.content {
        margin-left: 0;
    }

    #nav-sidebar {
        display: block;
        height: 100%;
        max-width: 100% !important;
        padding-top: 0;
        position: fixed !important;
        transition: ;
        width: 100% !important;
    }

    #nav-sidebar .nav-sidebar-search {
        left: -100%;
        padding-bottom: 40px;
        width: 100%;
    }

    .shifted #nav-sidebar .nav-sidebar-toggle {
        background: var(--primary);
        color: var(--darkened-bg);
        left: auto;
        right: 0;
    }

    #toggle-nav-sidebar {
        display: block;
    }

    .filtered .changelist-form-container {
        margin-right: 0px !important;
    }

    div#changelist-filter {
        margin-top: 15px;
        min-height: auto;
        position: relative;
        width: 100%;
        z-index: 1;
    }

    div#changelist .actions {
        padding: 15px 5px;
    }

    div#changelist #toolbar form #searchbar {
        margin: 0;
    }

    div.submit-row input {
        margin: 0;
        margin-bottom: 5px;
    }

    div.submit-row input.default {
        margin-bottom: 5px;
    }
}

/* Organization feature toggles (Tenancy & access) */
.feature-toggle-inline .feature-toggle-module h2 {
    margin-bottom: 0.5rem;
}

.feature-toggle-intro {
    color: var(--body-quiet-color);
    margin: 0 0 1.25rem;
}

.feature-pack-group {
    margin-bottom: 1.75rem;
}

.feature-pack-group h3 {
    border-bottom: 1px solid var(--hairline-color);
    font-size: 1rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.35rem;
}

.feature-toggle-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-toggle-item {
    border: 1px solid var(--hairline-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.feature-toggle-item--unavailable {
    background: var(--darkened-bg);
    opacity: 0.75;
}

.feature-toggle-label {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    gap: 0.5rem;
}

.feature-toggle-name {
    flex: 1 1 auto;
}

.feature-toggle-default {
    color: var(--body-quiet-color);
    font-size: 0.8rem;
    font-weight: normal;
}

.feature-toggle-description,
.feature-toggle-code,
.feature-toggle-edition-note {
    font-size: 0.85rem;
    margin: 0.35rem 0 0 1.65rem;
}

.feature-toggle-code code {
    font-size: 0.8rem;
}

.feature-toggle-edition-note {
    color: var(--error-fg);
}

.feature-catalog-overview {
    margin-bottom: 1.5rem;
}

.feature-catalog-pack h2 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.feature-catalog-table {
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    width: 100%;
}

.feature-catalog-table th,
.feature-catalog-table td {
    border-bottom: 1px solid var(--hairline-color);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.feature-catalog-table th[scope="row"] {
    font-weight: 600;
    width: 45%;
}

/* Scheduled course admin: hints & trainer availability */
.scheduled-course-flow-hints {
    margin-bottom: 1.25rem;
}

.scheduled-course-workflow-hints {
    margin-bottom: 1rem;
}

.scheduled-course-hint {
    background: var(--darkened-bg);
    border-left: 4px solid var(--primary);
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.85rem;
}

.scheduled-course-hint h3 {
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}

.scheduled-course-hint p {
    margin: 0;
}

.scheduled-course-status-guide summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scheduled-course-status-table {
    border-collapse: collapse;
    width: 100%;
}

.scheduled-course-status-table th,
.scheduled-course-status-table td {
    border-bottom: 1px solid var(--hairline-color);
    padding: 0.45rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.scheduled-course-status-table__current {
    background: #fff8e6;
}

.scheduled-course-trainer-availability {
    margin-bottom: 1.25rem;
}

.scheduled-course-availability-intro {
    color: var(--body-quiet-color);
    margin-top: 0;
}

.scheduled-course-availability-result {
    border: 1px solid var(--hairline-color);
    border-radius: 4px;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
}

.scheduled-course-availability-result--available {
    border-color: #3a8f3a;
    background: #f4fff4;
}

.scheduled-course-availability-result--conflict {
    border-color: var(--error-fg);
    background: var(--message-error-bg);
}

.scheduled-course-availability-result--request {
    border-color: #c98219;
    background: #fff8e6;
}

.scheduled-course-availability-headline {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.scheduled-course-availability-details {
    margin: 0 0 0.65rem;
    padding-left: 1.2rem;
}

.scheduled-course-availability-actions {
    margin: 0;
}

.scheduled-course-request-availability {
    margin-top: 0.25rem;
}

.scheduled-course-availability-pending {
    color: var(--body-quiet-color);
    font-style: italic;
}

/* AviTMS Module Management */
.module-management-page {
    max-width: 960px;
}

.module-management-header h1 {
    margin-bottom: 0.35rem;
}

.module-management-lead {
    color: var(--body-quiet-color);
    margin-top: 0;
}

.module-management-org-picker,
.module-management-org-name {
    margin-bottom: 1.25rem;
}

.module-management-presets {
    margin-bottom: 2rem;
}

.module-preset-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-top: 0.75rem;
}

.module-preset-form {
    background: var(--darkened-bg);
    border: 1px solid var(--hairline-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
}

.module-preset-button {
    background: var(--primary);
    border: none;
    border-radius: 4px;
    color: var(--primary-fg);
    cursor: pointer;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    text-align: left;
}

.module-preset-button:hover {
    filter: brightness(1.05);
}

.module-preset-description {
    color: var(--body-quiet-color);
    font-size: 0.88rem;
    line-height: 1.35;
}

.module-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}