.export_link {
    margin-left: 7px !important;
    margin-right: -7px !important;
    padding: 6.2px 10px !important;
}

.object-tools li {
    display: inline-flex !important;
    align-items: center !important;
}

.object-tools a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: normal !important;
    padding-right: 2px;
}

.page-actions a {
    padding-right: 2px;
}

.page-actions li {
    list-style-type: none;
}



/*@media {*/
/*    .col-lg-9 {*/
/*        max-width: 100% !important;*/
/*        flex: 0 0 100%;*/
/*    }*/
/*}*/

.col-sm-3 {
    text-align: right !important;
}

.col-sm-7 {
    flex: 1 0 58.333333%;
    max-width: 100%;
    margin-top: 2px;
}

.col-lg-9 {
    max-width: 100% !important;
    flex: 0 0 100%;
}


#fixed-submit-row {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #dee2e6;
    z-index: 1020; /* Below Jazzmin sidebar (1030) but above content */
    transition: left 0.3s ease, padding-left 0.3s ease;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: -7px;
}

/* Match Jazzmin sidebar width when expanded */
.jazzmin-sidebar-expanded #fixed-submit-row {
    left: 260px; /* Default expanded sidebar width */
    padding-left: 20px;
}

/* Match collapsed sidebar */
.jazzmin-sidebar-collapsed #fixed-submit-row {
    left: 70px; /* Collapsed sidebar width */
    padding-left: 20px;
}

/* Responsive: Mobile - full width */
@media (max-width: 992px) {
    #fixed-submit-row {
        left: 0 !important;
        padding-left: 20px;
        padding-right: 20px;
    }
    .jazzmin-sidebar-expanded #fixed-submit-row,
    .jazzmin-sidebar-collapsed #fixed-submit-row {
        left: 0 !important;
    }
}

/* Add bottom padding to main content to prevent overlap */
.content-wrapper {
    padding-bottom: 90px !important;
}

/* Optional: Improve button spacing on small screens */
#fixed-submit-row .btn {
    margin-bottom: 5px;
}


.fa-plus-circle, .fa-file-export, .fa-file-import, .fa-check, .fa-info {
    display: none;
}

.import_link {
    margin-left: 15px !important;
    margin-right: -2px !important;
    border-radius: 0;
    padding-right: 10px !important;
}

.alert .close {
    color: white;
    opacity: 1;
    text-shadow: none;
    top: 3px
}

.alert-dismissible {
    padding-right: 2.5rem;
}

.vTextField {
    width: 50% !important;
}


/* Remove the float from X button and position it next to sort icon */
.sorting_asc .fa-times,
.sorting .fa-times {
    float: none !important;
    display: inline-block !important;
    margin-top: 0 !important;
    margin-left: 5px !important;
    margin-right: 0 !important;
}

/* Make sure the container for sort icons stays on the right */
.sorting_asc .text > a:last-child,
.sorting_desc .text > a:last-child {
    float: right !important;
    display: inline-block !important;
}

/* Keep sort icon inline */
.sorting_asc .fa-sort-alpha-down,
.sorting_asc .fa-sort-alpha-up,
.sorting_desc .fa-sort-alpha-down,
.sorting_desc .fa-sort-alpha-up {
    display: inline-block !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
}

/* For RTL */
[dir="rtl"] .sorting_asc .fa-times,
[dir="rtl"] .sorting .fa-times {
    margin-left: 0 !important;
    margin-right: 3px !important;
}

[dir="rtl"] .sorting_asc .text > a:last-child,
[dir="rtl"] .sorting_desc .text > a:last-child {
    float: left !important;
}


/* Force active state for users on change form */
body.change-form .nav-link[href="{% url 'admin:users_user_changelist' %}"] {
    background-color: #007bff !important;  /* Blue background */
    color: white !important;
    border-left: 3px solid #007bff !important;  /* Active indicator */
}

/* For treeview parent (if any) */
body.change-form .nav-item.has-treeview > .nav-link[href*="/users/"] {
    background-color: #e3f2fd !important;
    border-left: 3px solid #007bff !important;
}

/* RTL adjustment */
[dir="rtl"] .nav-link[href="{% url 'admin:users_user_changelist' %}"] {
    border-right: 3px solid #007bff !important;
    border-left: none !important;
}

.field-name .row .col-sm-10 {
    text-align: right !important;
}

table.import-preview tr.new,
table.import-preview tr.skip,
table.import-preview tr.update {
    background-color: #ffffff !important;
}

table.import-preview tr.new td ins,
table.import-preview tr.skip td ins,
table.import-preview tr.update td ins{
    background-color: #e6ffe6 !important;
}

/* Login page logo styling */
.login-logo img,
.login-box .card-header img {
    max-width: 150px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
}

.small.quiet {
    margin-right: 15px;
}

.col-lg-9 .card {
    margin-bottom: 0rem;
}

.alert-success a {
    color: white !important;
}