/* Skin visual del admin Jazzmin (menú + barra). No cambia la lógica de Favoritos. */

#jazzy-sidebar {
    box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
}

#jazzy-sidebar .brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .85rem 1rem;
}

#jazzy-logo .brand-text {
    font-weight: 600;
    letter-spacing: .02em;
}

#jazzy-sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin: .35rem .35rem 1rem;
    padding: .65rem .5rem .85rem;
}

#jazzy-sidebar .user-panel .user-profile {
    font-size: 2rem;
    opacity: .9;
}

#jazzy-sidebar .user-panel .info {
    overflow: hidden;
}

#jazzy-sidebar .user-panel .info a,
#jazzy-sidebar .user-panel .info span {
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#jazzy-sidebar .sidebar {
    padding-left: .55rem;
    padding-right: .55rem;
}

#jazzy-sidebar .nav-header {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .5;
    padding: .9rem .75rem .3rem;
}

#jazzy-sidebar .nav-sidebar > .nav-item {
    margin-bottom: .12rem;
}

#jazzy-sidebar .nav-sidebar .nav-link {
    border-radius: 10px;
    padding: .48rem .7rem;
    transition: background-color .15s ease, color .15s ease;
}

#jazzy-sidebar .nav-sidebar .nav-link p {
    font-size: .92rem;
    font-weight: 500;
}

#jazzy-sidebar .nav-sidebar .nav-link:not(.disabled):hover {
    background-color: rgba(255, 255, 255, .08);
}

#jazzy-sidebar .nav-sidebar .nav-link.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

#menu-favoritos-hint .nav-link:hover {
    background-color: transparent;
}

#jazzy-sidebar .menu-app-fold-toggle { cursor: pointer; }
#jazzy-sidebar .menu-app-fold-panel {
    padding: 0 0 .2rem;
    margin: 0;
    list-style: none;
}
#jazzy-sidebar .menu-app-fold-panel > .nav-item > .nav-link {
    padding-left: 2rem;
}
#jazzy-sidebar .menu-app-fold.is-closed > .menu-app-fold-panel {
    display: none !important;
}
#jazzy-sidebar .menu-app-fold:not(.is-closed) > .menu-app-fold-toggle .menu-app-fold-chevron {
    transform: rotate(-90deg);
}
.sidebar-mini.sidebar-collapse #jazzy-sidebar .menu-app-fold-panel {
    display: none !important;
}

#jazzy-navbar {
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .04);
}

#jazzy-navbar .nav-link[data-widget="pushmenu"],
#jazzy-navbar .navbar-nav.ml-auto .nav-link {
    width: 2.35rem;
    height: 2.35rem;
    margin: 0 .12rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: background-color .15s ease;
}

#jazzy-navbar .nav-link[data-widget="pushmenu"]:hover,
#jazzy-navbar .navbar-nav.ml-auto .nav-link:hover,
#jazzy-navbar .navbar-nav.ml-auto .nav-link:focus {
    background: rgba(255, 255, 255, .12);
}

#jazzy-navbar .navbar-nav.ml-auto .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

#jazzy-navbar .navbar-badge {
    font-size: .65rem;
    min-width: 1.05rem;
    padding: .15rem .28rem;
    border-radius: 999px;
}

#jazzy-navbar .navbar-nav:first-child .nav-link:not([data-widget="pushmenu"]) {
    border-radius: 999px;
    padding: .38rem .9rem;
    font-weight: 600;
    transition: background-color .15s ease;
}

#jazzy-navbar .navbar-nav:first-child .nav-link:not([data-widget="pushmenu"]):hover {
    background: rgba(255, 255, 255, .1);
}

#jazzy-navbar .form-inline .input-group {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

#jazzy-navbar .form-control-navbar {
    border: 0;
    background: transparent;
    box-shadow: none;
}

#jazzy-navbar .btn-navbar {
    border: 0;
    background: transparent;
    box-shadow: none;
}

#jazzy-navbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
    padding: .45rem;
    margin-top: .45rem;
}

#jazzy-navbar .dropdown-item {
    border-radius: 8px;
    padding: .45rem .7rem;
}

#jazzy-navbar .dropdown-header {
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .7rem;
}

.page-actions {
    gap: .4rem;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end !important;
    flex: 1 1 auto;
    max-width: 100%;
}

.page-actions > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-actions .btn,
.page-actions > a,
.object-tools .btn,
.object-tools a {
    float: none !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
    margin: 0;
}

.page-actions .btn-lg {
    padding: .42rem .95rem;
    font-size: .875rem;
    line-height: 1.25;
}

.content-wrapper {
    background: #f3f5f8;
}

.content-wrapper > .content.border-bottom {
    border-bottom: 0 !important;
    margin-bottom: .35rem !important;
}

.content-wrapper .content .h4 {
    font-weight: 700;
    letter-spacing: -.02em;
    color: #1e293b;
    border-right-color: #e2e8f0 !important;
}

.content-wrapper .breadcrumb {
    padding: 0;
    margin: 0;
    background: transparent;
}

.content-wrapper .breadcrumb-item,
.content-wrapper .breadcrumb-item a {
    font-size: .82rem;
    color: #64748b;
}

.card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

/* --- Listas (changelist) --- */

#change-list-filters {
    background: #fff;
    border-radius: 12px;
    padding: .9rem 1rem .45rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

#changelist-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

#changelist-search .form-group {
    margin: 0 .25rem .55rem 0;
}

#changelist-search .form-control,
#searchbar {
    min-width: 200px;
    height: 38px;
    border-radius: 8px;
    border-color: #e2e8f0;
}

#changelist-search .select2-container {
    min-width: 170px;
}

#changelist-search .select2-container .select2-selection--single {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    min-height: 38px;
}

.searchbar-ean-cam-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .4rem;
    flex: 1 1 20rem;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.searchbar-ean-cam-group #searchbar {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: auto !important;
}

.searchbar-ean-cam-group .btn[type="submit"],
.searchbar-ean-cam-group input[type="submit"] {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

#searchbar-ean-cam.ean-cam-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: none;
    position: relative;
    z-index: 3;
}

@media (max-width: 767.98px) {
    .searchbar-ean-cam-group {
        flex-wrap: wrap;
        flex: 1 1 100%;
    }
    .searchbar-ean-cam-group #searchbar {
        flex: 1 1 calc(100% - 52px);
        min-width: 0 !important;
        width: auto !important;
        max-width: calc(100% - 52px);
    }
    #searchbar-ean-cam.ean-cam-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .searchbar-ean-cam-group .btn[type="submit"],
    .searchbar-ean-cam-group input[type="submit"] {
        flex: 1 1 100%;
        width: 100%;
        min-height: 44px;
    }
}

#search_group .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .4rem 1rem;
}

#search_group .small.quiet {
    margin-left: .5rem;
    color: #64748b;
}

#change-list-date-hierarchy .date-hierarchy {
    background: #fff;
    border-radius: 12px;
    padding: .45rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

#change-list-date-hierarchy .date-hierarchy .btn {
    border-radius: 8px;
    font-weight: 600;
}

body.change-list .change-list-actions {
    padding-bottom: .75rem !important;
}

body.change-list .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

body.change-list .actions label {
    margin: 0;
}

body.change-list .actions select {
    min-width: 220px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

body.change-list .actions .btn {
    border-radius: 999px;
    font-weight: 600;
    margin: 0 !important;
}

body.change-list .action-counter {
    color: #64748b;
    font-size: .85rem;
}

body.change-list #result_list {
    margin-bottom: 0;
}

body.change-list #result_list thead th {
    background: #f8fafc;
    border-top: 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    padding: .7rem .85rem;
    vertical-align: middle;
}

body.change-list #result_list thead th a {
    color: inherit;
}

body.change-list #result_list tbody td,
body.change-list #result_list tbody th {
    padding: .7rem .85rem;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}

body.change-list #result_list.table-striped tbody tr:nth-of-type(odd),
body.change-list #result_list tbody tr.even,
body.change-list #result_list tbody tr.odd {
    background-color: #fff;
}

body.change-list #result_list tbody tr:hover {
    background-color: #f8fafc;
}

body.change-list #result_list tbody th a {
    font-weight: 600;
    color: #0f172a;
}

body.change-list #result_list input[type="text"],
body.change-list #result_list input[type="number"],
body.change-list #result_list select {
    height: 2rem;
    padding: .2rem .5rem;
    font-size: .875rem;
    border-radius: 8px;
    border-color: #e2e8f0;
}

body.change-list .dataTables_info {
    color: #64748b;
    font-size: .9rem;
    padding: .65rem 0;
}

body.change-list .pagination {
    gap: .2rem;
}

body.change-list .pagination .page-link {
    border: 0;
    border-radius: 8px;
    min-width: 2rem;
    text-align: center;
    color: #334155;
    margin: 0 .1rem;
}

body.change-list .pagination .page-item.active .page-link {
    background: #2c3e50;
    color: #fff;
}

body.change-list .pagination .page-item.disabled .page-link {
    background: transparent;
    color: #94a3b8;
}

/* --- Dashboard /admin/ --- */

body.dashboard .dash-app-card {
    overflow: hidden;
    margin-bottom: 1rem;
}

body.dashboard .dash-app-card__head {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: .7rem 1rem;
    cursor: pointer;
    user-select: none;
}

body.dashboard .dash-app-card__icon {
    color: #64748b;
    width: 1.1rem;
    text-align: center;
}

body.dashboard .dash-app-card__head h2 {
    flex: 1;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #475569;
}

body.dashboard .dash-app-card__chevron {
    margin-left: auto;
    color: #94a3b8;
    font-size: .85rem;
    transition: transform .15s ease;
}

body.dashboard .dash-app-card:not(.is-closed) .dash-app-card__chevron {
    transform: rotate(-90deg);
}

body.dashboard .dash-app-card.is-closed .dash-app-card__panel {
    display: none;
}

body.dashboard .dash-app-card.is-closed .dash-app-card__head {
    border-bottom: 0;
}

body.dashboard .dash-app-card__panel {
    background: #f8fafc;
}

body.dashboard .dash-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: .7rem;
    padding: .15rem 0 0;
}

body.dashboard .dash-model-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 5.1rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: .85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    color: #0f172a;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.dashboard a.dash-model-tile:hover,
body.dashboard a.dash-model-tile:focus {
    color: #0f172a;
    text-decoration: none;
    border-color: #c7d2fe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

body.dashboard .dash-model-tile__icon {
    flex: 0 0 3.15rem;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
    font-size: 1.25rem;
}

body.dashboard .dash-model-tile--c1 .dash-model-tile__icon { background: #dbeafe; color: #1d4ed8; }
body.dashboard .dash-model-tile--c2 .dash-model-tile__icon { background: #d1fae5; color: #047857; }
body.dashboard .dash-model-tile--c3 .dash-model-tile__icon { background: #fef3c7; color: #b45309; }
body.dashboard .dash-model-tile--c4 .dash-model-tile__icon { background: #ede9fe; color: #6d28d9; }
body.dashboard .dash-model-tile--c5 .dash-model-tile__icon { background: #ffe4e6; color: #be123c; }
body.dashboard .dash-model-tile--c6 .dash-model-tile__icon { background: #cffafe; color: #0e7490; }
body.dashboard .dash-model-tile--c7 .dash-model-tile__icon { background: #ffedd5; color: #c2410c; }
body.dashboard .dash-model-tile--c8 .dash-model-tile__icon { background: #e0e7ff; color: #3730a3; }

body.dashboard .dash-model-tile__name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dashboard .dash-model-tile.is-disabled {
    opacity: .45;
    cursor: default;
    box-shadow: none;
}

body.dashboard .dash-activity .dash-app-card__panel {
    background: #fff;
}

body.dashboard .dash-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.dashboard .dash-activity-empty {
    margin: 0;
    padding: 1.1rem 1rem;
    color: #94a3b8;
    font-size: .9rem;
}

body.dashboard .dash-activity-item {
    display: flex;
    gap: .7rem;
    padding: .75rem 1rem;
    border-top: 1px solid #f1f5f9;
}

body.dashboard .dash-activity-list li:first-child {
    border-top: 0;
}

body.dashboard .dash-activity-icon {
    flex: 0 0 1.85rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    margin-top: .1rem;
}

body.dashboard .dash-activity-icon.is-add {
    background: #dcfce7;
    color: #15803d;
}

body.dashboard .dash-activity-icon.is-edit {
    background: #e2e8f0;
    color: #475569;
}

body.dashboard .dash-activity-icon.is-del {
    background: #fee2e2;
    color: #b91c1c;
}

body.dashboard .dash-activity-title {
    display: block;
    font-weight: 600;
    font-size: .86rem;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}

body.dashboard a.dash-activity-title:hover {
    color: #1d4ed8;
}

body.dashboard .dash-activity-meta {
    display: block;
    margin-top: .15rem;
    font-size: .75rem;
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    body.dashboard .dash-activity {
        margin-top: .5rem;
    }
}

@media (max-width: 767.98px) {
    #jazzy-navbar .navbar-nav:first-child .nav-link:not([data-widget="pushmenu"]) {
        padding: .35rem .65rem;
    }

    #changelist-search .form-control,
    #searchbar {
        min-width: 100%;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-end !important;
        margin-top: .65rem;
    }

    body.change-form #jazzy-actions {
        position: static;
        margin-top: .75rem;
    }
}

/* --- Formularios (change_form) --- */

body.change-form #content-main > form > .row > .col-lg-9 > .card > .card-body {
    padding: 1rem 1.15rem 1.2rem;
}

body.change-form #jazzy-tabs {
    border: 0;
    gap: .35rem;
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
}

body.change-form #jazzy-tabs .nav-item {
    margin: 0;
}

body.change-form #jazzy-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    padding: .42rem .95rem;
    font-weight: 600;
    font-size: .84rem;
    color: #64748b;
    background: #f1f5f9;
    line-height: 1.2;
}

body.change-form #jazzy-tabs .nav-link:hover {
    color: #0f172a;
    background: #e2e8f0;
}

body.change-form #jazzy-tabs .nav-link.active {
    color: #fff;
    background: #2c3e50;
}

body.change-form .tab-content > .tab-pane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.change-form .tab-content > .tab-pane > .card {
    box-shadow: none;
    border: 1px solid #e8eef5;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

body.change-form .tab-content > .tab-pane > .card > .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: .7rem 1rem;
}

body.change-form .tab-content > .tab-pane > .card > .card-header .card-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #475569;
    margin: 0;
}

body.change-form .tab-content > .tab-pane > .card > .p-5,
body.change-form .tab-content > .tab-pane > .card > .card-body {
    padding: 1rem 1.15rem !important;
}

body.change-form .form-group {
    margin-bottom: .85rem;
}

body.change-form .form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    padding-top: .45rem;
}

body.change-form .form-control:not(.btn),
body.change-form input[type="text"],
body.change-form input[type="number"],
body.change-form input[type="email"],
body.change-form input[type="url"],
body.change-form input[type="password"],
body.change-form input[type="date"],
body.change-form input[type="datetime-local"],
body.change-form input[type="time"],
body.change-form textarea,
body.change-form select {
    border-radius: 8px;
    border-color: #e2e8f0;
    min-height: 38px;
    color: #0f172a;
}

body.change-form .form-control:not(.btn):focus,
body.change-form input[type="text"]:focus,
body.change-form input[type="number"]:focus,
body.change-form textarea:focus,
body.change-form select:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

body.change-form .select2-container--default .select2-selection--single,
body.change-form .select2-container--default .select2-selection--multiple {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    min-height: 38px;
}

body.change-form .select2-container--default.select2-container--focus .select2-selection--single,
body.change-form .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #c7d2fe !important;
}

body.change-form .readonly {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    padding: .45rem .7rem;
    color: #334155;
    min-height: 38px;
}

body.change-form .help-block {
    font-size: .8rem;
    color: #94a3b8;
    margin-top: .3rem;
}

body.change-form .help-block.text-red,
body.change-form .help-block.red,
body.change-form .errorlist {
    color: #b91c1c;
}

body.change-form #jazzy-actions {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
    position: sticky;
    top: 1rem;
}

body.change-form #jazzy-actions .form-group {
    margin-bottom: .55rem;
}

body.change-form #jazzy-actions .btn,
body.change-form #jazzy-actions .form-control.btn {
    border-radius: 999px;
    font-weight: 600;
    height: auto;
    min-height: 2.4rem;
    box-shadow: none;
}

body.change-form .object-tools .btn {
    border-radius: 999px;
    font-weight: 600;
}

body.change-form .inline-group,
body.change-form .inline-related {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

body.change-form .inline-related .tabular {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.change-form .inline-related .tabular table {
    width: max-content;
    min-width: 100%;
}

body.change-form .inline-related {
    padding: 0;
}

body.change-form .inline-group h2,
body.change-form .inline-related h3 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: .7rem 1rem;
    margin: 0;
}

body.change-form .inline-related .tabular table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

body.change-form .inline-related .tabular table tbody td {
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
}

body.change-form .add-row a {
    font-weight: 600;
    color: #1d4ed8;
}

body.change-form .ean-cam-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: 28rem;
}

body.change-form .ean-cam-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

body.change-form .ean-cam-btn.btn {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
    line-height: 1;
}

/* --- Login --- */

body.jazzmin-login-page {
    background: #f3f5f8;
}

body.jazzmin-login-page .login-box .card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

body.jazzmin-login-page .login-box-msg {
    color: #64748b;
    font-weight: 600;
}

body.jazzmin-login-page .input-group {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

body.jazzmin-login-page .input-group:focus-within {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

body.jazzmin-login-page .input-group .form-control {
    border: 0;
    min-height: 42px;
    box-shadow: none;
    color: #0f172a;
}

body.jazzmin-login-page .input-group .form-control:focus {
    box-shadow: none;
}

body.jazzmin-login-page .input-group-text {
    background: #f8fafc;
    border: 0;
    border-radius: 0;
    color: #64748b;
    min-width: 2.75rem;
    justify-content: center;
}

body.jazzmin-login-page button.input-group-text {
    cursor: pointer;
}

body.jazzmin-login-page button.input-group-text:hover,
body.jazzmin-login-page button.input-group-text:focus,
body.jazzmin-login-page button.input-group-text[aria-pressed="true"] {
    color: #0f172a;
    background: #f1f5f9;
    box-shadow: none;
}

body.jazzmin-login-page .btn-block {
    border-radius: 999px;
    font-weight: 600;
    min-height: 2.5rem;
    box-shadow: none;
}

body.jazzmin-login-page .password-reset-link a {
    color: #64748b;
    font-size: .85rem;
}

/* Promoción por cantidad: sucursales en checks (el filter_horizontal no cabe en móvil). */
#promocioncantidad_form .field-sucursales,
#promocioncantidad_form .form-group:has(#id_sucursales) {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    #alcance-por-sucursal-tab .p-5 {
        padding: 1rem !important;
    }

    #promocioncantidad_form .form-group:has(#id_sucursales) > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

#promocioncantidad_form ul.promocion-sucursales-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 36rem;
}

#promocioncantidad_form ul.promocion-sucursales-checks li {
    margin: 0 0 .45rem;
    padding: 0;
}

#promocioncantidad_form ul.promocion-sucursales-checks label {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: .55rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    float: none;
}

#promocioncantidad_form ul.promocion-sucursales-checks input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex-shrink: 0;
}
