.btn-primary-custom {
    height: 44px;
    min-height: 44px;
    gap: 10px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: #1d4c8d;
    border-color: #1d4c8d;
    color: var(--white-color);
}

.btn-primary-custom-reverse {
    height: 44px;
    min-height: 44px;
    gap: 10px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    background-color: var(--white-color);
    color: #525e7d;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn-primary-custom-reverse:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    border-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#mobileMenu {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.sidebar {
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    border-radius: 6px;
    color: var(--primary-color);
}

.sidebar .nav-link .acive {
    color: var(--white-color);
}

.sidebar .nav-link .fa,
.sidebar .nav-link .fas {
    margin-right: 6px;
}

.logo-container {
    border-right: 1px solid var(--border-color);
}

.logo {
    max-height: 40px;
}

.brand-context {
    max-width: 70%;
}

.brand-context > .title {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    color: var(--primary-color) !important;
}

.brand-context > .subtitle {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
}

.topbar-user-email {
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px;
    letter-spacing: 0;
    margin-right: 10px;
}

.swal2-container {
    font-family: "Montserrat", sans-serif;
}

.swal2-popup.swal2-toast,
.toastr {
    margin-top: 75px;
}

.swal2-container .select-chevron-wrap::after {
    display: none;
}

.back-button {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--primary-color);
    text-decoration: none;
}

.btn-danger-custom {
    background-color: #e30613;
    color: var(--white-color);
    border: 1px solid #e30613;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: center;
}

.btn-danger-custom:hover {
    background-color: #e30613;
    border-color: #bd2130;
    color: var(--white-color);
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #ffc9c9;
    color: #9f0712;
    border-radius: 8px;
    font-weight: 400;
    font-size: 14px;
}

.group-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.group-1 {
    background-color: #28594a;
}
.group-2 {
    background-color: #67d1b0;
}
.group-3 {
    background-color: #d6c6aa;
}
.group-4 {
    background-color: #8b9d83;
}
.group-5 {
    background-color: #a5c4b5;
}

.base-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 20px;
}

.base-fieldset legend,
.chart-section-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #121312;
    margin-bottom: 20px;
}

.stats-card {
    background: var(--card-background);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.stats-card__label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.stats-card__value {
    font-size: 30px;
    font-weight: 700;
    color: #161c27;
    line-height: 1;
    margin: 0;
}

.stats-card__trend {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    margin-top: 4px;
}
.stats-card__trend--percentage {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-card__progress {
    width: 100%;
    height: 5px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background-color: #edf2fb;
}

.stats-card__progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: #64748b;
}

.stats-card-group {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.stats-card-group .stats-card {
    flex: 1;
}

/* Tablet */
@media (max-width: 1024px) {
    .stats-card-group {
        flex-wrap: wrap;
    }

    .stats-card-group .stats-card {
        flex: 1 1 calc(50% - 8px);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .stats-card-group {
        flex-direction: column;
    }

    .stats-card-group .stats-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 991.98px) {
}

@media (max-width: 767.98px) {
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge--ok {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge--over {
    background-color: #fee2e2;
    color: #dc2626;
}

.stats-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-image: url("/images/icons/icon-background.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.crud-action-btn--delete:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.dropdown-toggle:not(.header-nav-link)::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border: 0;
    background-image: var(--select-chevron-icon);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px 8px;
    transform: translateY(1px);
    vertical-align: 0;
    transition: transform 0.18s ease;
}

.dropdown-toggle:not(.header-nav-link)[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(180deg);
}
