/* ================================== */
/* CSS cho menu thả xuống */
/* ================================== */
body .my-custom-button-group.dropdown-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    font-family: inherit;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1;
    z-index: 9999 !important;
}

body .my-custom-button-group .button-dropdown-toggle {
    background-color: #01aa00;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    display: block;
    width: 220px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .my-custom-button-group .button-dropdown-toggle:hover,
body .my-custom-button-group .button-dropdown-toggle:focus {
    background-color: #005f7f;
}

body #my-custom-dropdown-container-footer .buttons-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 450px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 5px;
    text-align: left;
    box-sizing: border-box;
}

body .buttons-dropdown-content a.my-custom-button {
    color: black;
    background-color: #eee;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
    margin: 5px 0;
    font-size: 14px;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    position: relative;
    min-height: 1em; /* Đảm bảo nút có chiều cao ngay cả khi không có nội dung */
}

body .buttons-dropdown-content a.my-custom-button:hover {
    background-color: #ddd;
}

/* ================================== */
/* Media Query cho di động */
/* ================================== */
@media (max-width: 480px) {
    body .my-custom-button-group.dropdown-container {
        justify-content: flex-start;
    }
    body .my-custom-button-group .button-dropdown-toggle {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
    body #my-custom-dropdown-container-footer .buttons-dropdown-content {
        min-width: 100%;
        left: 0 !important;
        right: auto;
    }
}

/* ================================== */
/* CSS cho dạng lưới */
/* ================================== */
.my-custom-button-group.grid-container {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 20px;
    text-align: center;
    z-index: 9999 !important;
}

.my-custom-button-group.grid-container .button-group-title {
    margin-top: 0;
    font-size: 1.2em;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.my-custom-button-group.grid-container .buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.my-custom-button-group.grid-container .my-custom-button {
    display: inline-block;
    padding: 7px 10px;
    background-color: #01aa00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 1em; /* Đảm bảo nút có chiều cao ngay cả khi không có nội dung */
}

.my-custom-button-group.grid-container .my-custom-button:hover {
    background-color: #005f7f;
}