﻿/* ➜  Popup "Danh mục": icon + tên nhóm, bấm cả dòng để mở nhóm — không còn nút "+" */

.hp-pg-modal .modal-dialog {
    max-width: 500px;
}

.hp-pg-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}

.hp-pg-modal .modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.hp-pg-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.hp-pg-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #111;
    padding: 0 4px;
    cursor: pointer;
}

.hp-pg-modal .modal-body {
    padding: 4px 8px 8px;
}

.hp-pg-list, .hp-pg-list * {
    box-sizing: border-box;
}

.hp-pg-list {
    display: flex;
    flex-direction: column;
}

.hp-pg-modal .hp-pg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: background .15s;
}

    .hp-pg-modal .hp-pg-item:last-child {
        border-bottom: 0;
    }

    .hp-pg-modal .hp-pg-item:hover,
    .hp-pg-modal .hp-pg-item:focus-visible {
        background: #f6f8f6;
        color: #1f7a34;
        outline: none;
    }

.hp-pg-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ede6d3; /* cùng tông be của nút "+" cũ */
    color: #2e5a34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.hp-pg-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.35;
}

.hp-pg-count {
    flex: 0 0 auto;
    font-size: 12px;
    color: #999;
    background: #f3f3f3;
    border-radius: 10px;
    padding: 1px 8px;
}

/* Nhóm đang xem */
.hp-pg-modal .hp-pg-item.is-current {
    background: #eef6f0;
    color: #1f7a34;
}

    .hp-pg-modal .hp-pg-item.is-current .hp-pg-icon {
        background: #1f7a34;
        color: #fff;
    }

    .hp-pg-modal .hp-pg-item.is-current .hp-pg-name {
        font-weight: 700;
    }

.hp-pg-empty {
    padding: 30px 16px;
    text-align: center;
    color: #888;
}

.hp-pg-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.hp-pg-modal .modal-body::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    .hp-pg-modal .modal-dialog {
        margin: 12px;
    }

    .hp-pg-modal .modal-dialog-scrollable {
        height: calc(100% - 24px - 64px);
    }
    /* chừa chỗ bottom-nav */
}
