.nk-menu-item+.nk-menu-heading {
    padding-top: 1.7rem !important;
}

.label-total-optimize {
    background-color: #0971fe;
    color: white;
    margin-right: 4px;
    margin-left: auto;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    border-radius: 50%;
    height: 24px;
    text-align: center;
    position: absolute;
    right: 20px;
}
/* ===== DESKTOP (mặc định) ===== */
.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-item {
    display: flex;
    align-items: center;   /* ÉP label nằm ngang với input */
    gap: 8px;
    white-space: nowrap;
}

.filter-label {
    margin-bottom: 0;      /* Bootstrap hay gán margin-bottom */
}

.filter-select {
    min-width: 180px;
}

.list-style-disc {
    padding-left: 20px;
}
.list-style-disc li {
    list-style-type: disc;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-item {
        flex-direction: row;   /* vẫn là row */
        align-items: center;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .filter-right {
        font-size: 0.85rem;
    }
}


/* ===== RESPONSIVE TOOLBAR stock_groups/detail.blade.php ===== */
.capital-range {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.capital-range .toolbar-input {
    min-width: 140px;
}
.range-separator {
    color: #8094ae;
    font-weight: 600;
}

.toolbar-responsive {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LEFT / RIGHT */
.toolbar-left,
.toolbar-right {
    display: flex;
}

/* FILTER */
.toolbar-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.toolbar-input {
    flex: 1 1 auto;
    min-width: 200px;
}

/* ACTION */
.toolbar-right {
    gap: 8px;
}


/* Mobile tối ưu */
@media (max-width: 767.98px) {
    .capital-range {
        width: 100%;
    }

    .capital-range .toolbar-input {
        flex: 1;
        min-width: 0;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
    .toolbar-responsive {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .toolbar-left {
        flex: 1;
    }

    .toolbar-filter {
        flex-wrap: nowrap;
    }

    .toolbar-input {
        flex: 0 0 240px;
    }

    .toolbar-right {
        flex-shrink: 0;
    }
}



/* ajax progesssbar*/

.ajax-progress {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    background: #ffffff;
    color: #111;                 /* chữ đen */
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 9999;
    animation: slideUp .25s ease-out;
}

.ajax-progress.hidden {
    display: none;
}

.ajax-progress .header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ajax-progress .text {
    flex: 1;
    font-weight: 500;
}

.ajax-progress .percent {
    font-weight: 500;
}

.ajax-progress.loading .percent {
    color: #2e7d32; /* xanh */
}

.ajax-progress.success .percent {
    color: #2e7d32;
}

.ajax-progress.error .percent {
    color: #e53935; /* đỏ */
}

.ajax-progress.loading .progress {
    background: linear-gradient(90deg, #66bb6a, #43a047);
}

.ajax-progress.success .progress {
    background: linear-gradient(90deg, #66bb6a, #2e7d32);
}

.ajax-progress.error .progress {
    background: #e53935;
}

.ajax-progress.error .percent,
.ajax-progress.error .text {
    color: #e53935;
}

/* Spinner */
.ajax-progress .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;   /* xám nhạt */
    border-top-color: #2e7d32;   /* xanh */
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* Progress bar */
.ajax-progress .progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**/
table thead th {
    vertical-align: middle !important;
    text-align: center;
    font-weight: 600;
}
.info-cell{
    display:grid;
    grid-template-columns: 100px auto;
    row-gap:2px;
}
.info-cell br{ display:none; }
