.volo-logo{
    height: 28px;
    padding: 5px 0;
    margin-left: -1px;
}
.position{
    display: none !important;
}

a:link, 
a:visited {
  color: var(--link-fg);
}

a.button:link,
a.button:visited {
  color: var(--button-fg);
}

login #branding {
    float: none;
    padding: 7px 0px;
}

.login .volo-logo {
    margin: 0 auto;
    display: block;
}

.model-location #id_token {
    width: 200px;
}
.model-location .field-token strong a {
    width: 10em;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    font-family: monospace;
    position: relative;
    top: 3px;
}

.model-location .field-token strong a:after {
    content:"";
    position:absolute;
    top: 0px;
    right:0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, rgba(0,0,0,0), #fff);
}

/* Date time icons visually too large, make them smaller, still WCAG 2.5.8 compliant*/
#main .datetimeshortcuts .clock-icon, 
#main .datetimeshortcuts .date-icon {
  padding: 7px 7px 7px 0;
  background-size: 1rem;
  background-position: 1px 7px;
  height: 16px;
  background-clip: content-box;
}

#main .datetimeshortcuts a:focus .date-icon, 
#main .datetimeshortcuts a:hover .date-icon, 
#main .datetimeshortcuts a:focus .clock-icon,
#main .datetimeshortcuts a:hover .clock-icon {
  background-position: 1px -9px;
}

/* Hide FK tools we don't like*/
.view-related,
.delete-related {
    display: none;
}

/* Delete link for unsaved inlines: make it smaller */
.delete .inline-deletelink {
  padding: 7px 7px 0 0;
  background-size: 1rem;
  background-position: 62% 45%;
  margin-right: -7px;
}


/* Tighten up layout of sortable inlines. */
.related-widget-wrapper-link img {
    width: 13px;
    height: 13px;
    padding: 7px 6px;
}

.inline-group .tabular .sortable .has_original td {
    padding: 8px 8px 3px 8px;
}

fieldset.sortable table tr.form-row.has_original td.original p {
    position: static;
    text-indent: -9999px;
    font-size: 1px;
    padding: 20px 18px;
    margin: -7px 0 -2px -7px;
}

.tabular .sortable th.original::before {
    content: "Sort";
    padding: 8px;
    display: block;
    color: transparent;
}

.tabular .sortable:has(input[type=checkbox]) th.original::before {
    color: inherit;
}

.inline-group .tabular .sortable td.delete {
    padding: 11px 24px 0 8px;
}

td.delete:has(input) {
    text-align: right;
}

fieldset.sortable span.sort {
    display: none;
}

.tabular.inline-related th:last-of-type {
    text-align: right;
    padding-right: 1em;
}

.sortable-ghost { /* Row while being dragged */
    box-shadow: 4px 5px 10px -6px rgba(0,0,0,.5);
    background-color: #ffffcf !important;
    z-index: 99 !important;
    position: relative;
}


/* Django File Browser */
.fb_show img {
    margin: 5px 0 0 8px;
    vertical-align: top !important;
}

.qq-upload-drop-area {
    display: block !important;
    padding: 10px 5px;
    background: rgb(238, 238, 238) none repeat scroll 0% 0%;
    width: 50%;
    margin-bottom: 10px;
    border: 1px dashed rgb(221, 221, 221);
}

.qq-upload-drop-area-active {
    background: #FFFCC9;
    border: 1px dashed #ccc;
}

#container p.preview {
    display: inline !important;
    margin-left: 0px;
}
.preview img {
    height: 48px;
    margin: -16px 0 -15px 7px;
}

.preview img[src=""] {
    display: none;
}

.inline-group .aligned label {
    width: auto !important;
}

/* Checkbox labels fix for 5.1+ 
   Delete when we reach 6.2 LTS. See backend/test/django-admin-css-overrides.md */
.aligned .vCheckboxLabel {
    width: auto;
    min-width: auto;
}

.description {
    padding: 15px 0 15px 12px;
}

.import-preview ins {
    text-decoration: none;
}

#content .import-preview tr.new,
#content .import-preview tr.update {
    color: #000;
} 

#content .import-preview tr.new ins {
    text-decoration: none;
    background-color: transparent !important;
}

#content table.import-preview tr.skip {
    background-color: #e0e0e0;
    color: #666;
}    

.import-preview .import-type,
.import-preview thead th:first-of-type {
    display: none;
}

/* Remove if enabling update imports */
#content .import-preview tr.new,
#content .import-preview tr.update,
#content table.import-preview tr.skip {
    background-color: transparent !important;
    color: inherit !important;
} 

.change-form code {
    color: inherit;
    font-size: inherit;
}

/* Newer Django adds the object name below the h1, it's redundant. */
.change-form #content > h2 {
    display: none;
}

#changelist-filter-extra-actions {
    border-bottom: none;
}
#changelist-filter-extra-actions h3:has(.viewlink) {
    display: none;
}

/* Changelist bold in links as in older Django */
th a {
    font-weight: 600;
}


#container .field-details ol, 
#container .field-details ol ul {
    margin: 0;
    padding: 0;
}

#container .field-details ol ul li {
    list-style: square;
    margin: 0 0 0 1em;
}

#container .field-details ol>li {
    margin-bottom: .4em !important;
}

#container .field-details code strong {
    color: inherit;
}

/* Select2 vertically center text */
#main .select2-selection__rendered {
    line-height: 26px;
}
