

/*********************************************************

 Django admin fixes

 */


div.breadcrumbs {
    background: none;
    padding: 0;
    border: none;
    font-size: default;
    color: #ffffff;
    text-align: left;
}


div.col-colM div.admin-content{
    width: 100%;
}


div.col-colM div.admin-sidebar{
    width: 0%;
    display: none;
}

div.django-admin .selector h2{
    margin: 0;
    padding: 10px 0;
    font-size: 15px;
}

div.django-admin fieldset.module h3{
    background: #EFEFEF;
}


div.django-admin div.form-row{
    padding: 3px;
}
div.django-admin div.form-row div.readonly{
    font-weight: 600;
    min-width: 250px;
}

/* #changelist-filter */
div.django-admin #toolbar{
    margin-right: 0;
}
div.django-admin #changelist #toolbar form #searchbar{
    height: 27px;
}
div.django-admin #changelist-filter{
    position: relative;
    background: none;
    width: 100%;
    margin: 0;

}
div.django-admin #changelist-filter h2{
    font-size: 15px;
}
div.django-admin #changelist-filter li.selected a{
    font-weight: bold;
}
div.django-admin #changelist-filter details > summary::before{
    content: none;
}
div.django-admin #changelist-filter details > summary{
    font-weight: 500;
}
div.django-admin #changelist-filter #changelist-filter-clear{
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    margin: 0 0 10px;
    padding: 0 15px;
}
/* Each filter's list is the last child of its <details>, which Django's ul:last-child rule strips of the separator */
div.django-admin #changelist-filter details > ul{
    border-bottom: 1px solid var(--hairline-color);
}
div.django-admin #changelist-filter details:last-of-type > ul{
    border-bottom: none;
}

div.django-admin #changelist table thead th {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    padding: 8px;
}
div.django-admin #changelist table td,
div.django-admin #changelist table th{
    padding: 8px;
}



.inline-group .tabular td.original p{
    position: relative;
    padding: 0;
    font-weight: normal;
    font-size: inherit;
    height: inherit;
    line-height: 35px;
}
.inline-group .tabular tr.has_original td {
    padding-top: 0;
}
.inline-group .tabular td{
    height: 35px;
}

#changelist .toplinks{
    display: flex;
    flex-wrap: wrap;
    gap: 3px 17px;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    border-bottom: 1px solid #EFEFEF;
}

.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered nav.toplinks{
    margin-right: 0;
}

fieldset.module{
    border-top: 1px solid #eee;
}

fieldset.module h2{
    font-size: 16px;
    background-color: #f8f8f8;
    padding: 10px 10px;
    border: 1px solid #eee;
}

fieldset.module table {
    border: 1px solid #eee;
}

fieldset.module table thead th{
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

ul.object-tools{
    margin-bottom: 15px;
}

ul.object-tools li{
    padding-right: 15px;
}

ul.object-tools a {
    padding: 6px 12px;
    background: #999;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 15px;
    border: none;
    line-height: 26px;
    cursor: pointer;
}

ul.object-tools button{
    margin-right: 10px;
}

div.module table{
    width: 100%;
}
div.module table caption{
    border: 1px solid #eee;
    background-color: #f8f8f8;
    margin: 30px 0 0 0;
    padding: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

div.module table th[scope]{
    width: 400px;
    padding-left: 20px;
}

div.module table tr{
    height: 40px;
    border-bottom: 1px solid #eee;
}

/*********************************************************

 Main theme fixes

 */

.page-title a{
    color: #ffffff;
}

.app-content header.widget-header{
    padding-left: 12px;
}
.app-content header.widget-header h1{
    padding-left: 5px;
    font-size: 24px;
}
.app-content div.title-row div.widget{
    /*margin-bottom: 0;*/
}
.app-content div.body-row div.widget{
    /*padding: 0 !important;*/
}


/*
    Hide some options
*/
.viewsitelink, .historylink{
    display: none;
}
.related-widget-wrapper a.change-related,
.related-widget-wrapper a.delete-related,
.related-widget-wrapper a.add-related,
.related-widget-wrapper a.edit-related{
    display: none;
}






@media print {
    body * {
      /* visibility: hidden; */
    }
    .print-content, .print-content * {
      visibility: visible;
    }
    .print-content {
      position: absolute;
      left: 0;
      top: 0;
    }
  }

/* Django 5 draws these icons at 24px; text-sized as before the upgrade */
.related-widget-wrapper-link img{
    width: 1em;
    height: 1em;
}
.datetimeshortcuts .date-icon, .datetimeshortcuts .clock-icon{
    width: 1em;
    height: 1em;
    background-size: 1em auto;
}
.datetimeshortcuts a:focus .date-icon, .datetimeshortcuts a:hover .date-icon,
.datetimeshortcuts a:focus .clock-icon, .datetimeshortcuts a:hover .clock-icon{
    background-position: 0 -1em;
}

/* Pagination: page links spaced out, the count on the right */
div.django-admin .paginator{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
}
div.django-admin .paginator a, div.django-admin .paginator .this-page{
    padding: 2px 6px;
}
div.django-admin .paginator .this-page{
    font-weight: 600;
}
div.django-admin .paginator .paginator-count{
    margin-left: auto;
}

/* The sidebar scrolls to the bottom of the window; the space after the last item scrolls with it */
body.menubar-left aside#menubar{
    padding-bottom: 0;
}
@media (min-width: 768px){
    body.menubar-unfold .menubar-scroll{
        height: 100%;
    }
}
aside#menubar .app-menu{
    padding-bottom: 20px;
}

/* Logout is a POST form; its button looks like the menu links */
.app-menu .logout-form{
    margin: 0;
}
.app-menu .logout-form button{
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    background: none;
    font: inherit;
    font-size: .875rem;
    color: #6a6c6f;
    text-align: left;
    cursor: pointer;
}
.app-menu li:hover > .logout-form button{
    color: #188ae2;
}
@media (min-width: 768px){
    body.menubar-fold .app-menu .logout-form .menu-text{
        display: none;
    }
    body.menubar-fold .app-menu .logout-form .menu-icon{
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
    }
}
