/* Vanilla Date Range Picker CSS - No Dependencies */
/* Responsive cho tất cả các thiết bị */

/* ========== TABOO FILTER MODAL STYLES ========== */

/* Container cho filter button cần có position relative */
.taboo-filter-container,
.position-relative {
    position: relative;
}

/* Button filter styles để đảm bảo positioning đúng */
.taboo-filter-btn {
    position: relative;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.taboo-filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.taboo-filter-modal {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    width: 320px;
    min-width: 300px;
    max-width: 90vw;
    animation: fadeInDown 0.2s ease;
    transform: translateZ(0);
    margin-top: 5px;
}

/* Container for relative positioning */
.position-relative {
    position: relative;
}

.taboo-filter-btn {
    position: relative;
}

.taboo-filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.taboo-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.taboo-filter-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.btn-close-filter {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close-filter:hover {
    background: #f0f0f0;
    color: #333;
}

.taboo-filter-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    display: flex;
    align-items: center;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.filter-section-title i {
    margin-right: 8px;
    color: #999;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0;
    position: relative;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-option:hover .checkmark {
    border-color: #3b82f6;
}

.filter-option input:checked~.checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-option input:checked~.checkmark:after {
    display: block;
}

.option-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.filter-quick-actions {
    display: flex;
    gap: 8px;
    /* margin-bottom: 10px; */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    /* padding-top: 16px; */
    /* margin-top: 16px; */
}

.btn-quick-action {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.btn-quick-action:hover {
    background: #e5e7eb;
    color: #374151;
}

.taboo-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.btn-cancel {
    background: none;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-apply {
    background: #dc2626;
    border: 1px solid #dc2626;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-apply:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.filter-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    font-size: 14px;
    color: #0369a1;
}

.btn-clear-status {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #64748b;
    margin-left: auto;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-clear-status:hover {
    background: #e2e8f0;
    color: #475569;
}

#filterBadge {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .taboo-filter-modal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 400px !important;
        max-height: 80vh !important;
        margin-top: 0 !important;
    }

    .taboo-filter-body {
        max-height: calc(80vh - 120px);
    }

    .filter-quick-actions {
        flex-wrap: wrap;
    }
}

/* Desktop - đảm bảo popup hiện dưới button */
@media (min-width: 769px) {
    .taboo-filter-modal {
        position: absolute !important;
        top: calc(100% + 5px) !important;

        left: 50% !important;
        /* đẩy popup về giữa cha */
        transform: translateX(-50%) !important;
        /* căn giữa chuẩn */

        right: auto !important;
        max-height: 500px !important;
    }
}

/* ========== END TABOO FILTER STYLES ========== */

/* Khóa scroll body khi modal filter mở */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: touch !important;
}


/* Khóa scroll body khi popup mở */
body.daterangepicker-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

html.daterangepicker-open {
    overflow: hidden !important;
}

.daterangepicker-container {
    width: 100%;
    position: fixed;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;
    display: none;
    /* min-width: 650px; */
    /* max-width: 90vw; */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: auto;
    touch-action: auto;
}

.daterangepicker-container * {
    pointer-events: auto;
}

.daterangepicker-container.show {
    display: grid;
    flex-direction: column;
    gap: 0;
}

.daterangepicker-content {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex: 1;
}

.daterangepicker-shortcuts {
    border-right: 1px solid #e0e0e0;
    padding-right: 15px;
    min-width: 150px;
    flex-shrink: 0;
}

.daterangepicker-shortcuts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.daterangepicker-shortcuts li {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.daterangepicker-shortcuts li:hover {
    background-color: #f0f0f0;
}

.daterangepicker-shortcuts li.active {
    background-color: #007bff;
    color: #fff;
}

.daterangepicker-calendars {
    display: flex;
    gap: 20px;
}

.daterangepicker-calendar {
    min-width: 250px;
}

.daterangepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.daterangepicker-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    color: #333;
}

.daterangepicker-header button:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.daterangepicker-header button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.daterangepicker-month-year {
    font-weight: 600;
    font-size: 14px;
}

.daterangepicker-table {
    width: 100%;
    border-collapse: collapse;
}

.daterangepicker-table th {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.daterangepicker-table td {
    padding: 0;
    text-align: center;
}

.daterangepicker-day {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    /* border-radius: 6px; */
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.daterangepicker-day:hover:not(.disabled):not(.other-month) {
    background-color: #fd7878;
}

.daterangepicker-day.other-month {
    color: #ccc;
}

.daterangepicker-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.daterangepicker-day.today {
    font-weight: 700;
    color: #007bff;
}

.daterangepicker-day.selected {
    background-color: #007bff;
    color: #fff;
}

.daterangepicker-day.in-range {
    background-color: #e3f2fd;
    color: #333;
}

.daterangepicker-day.hover-range {
    background-color: #e3f2fd;
    color: #333;
    opacity: 0.7;
}

.daterangepicker-day.start-date {
    background-color: #007bff;
    color: #fff;
    border-radius: 4px 0 0 4px;
}

.daterangepicker-day.end-date {
    background-color: #007bff;
    color: #fff;
    border-radius: 0 4px 4px 0;
}

.daterangepicker-day.start-date.end-date {
    border-radius: 4px;
}

.daterangepicker-footer {
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    flex-shrink: 0;
}

.daterangepicker-btn {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    background-color: #fff;
    width: 100%;
    font-weight: 600;
    transition: all 0.2s ease;
}

.daterangepicker-btn:hover {
    background-color: #f0f0f0;
}

.daterangepicker-btn.primary {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    order: 2;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.daterangepicker-btn.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
}

.daterangepicker-btn:not(.primary) {
    order: 1;
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.daterangepicker-btn:not(.primary):hover {
    background-color: #e9ecef;
    color: #495057;
}

.daterangepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
}

.daterangepicker-overlay.show {
    display: block;
    pointer-events: auto;
}

.daterangepicker-overlay.show * {
    pointer-events: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS - 7 Kích Thước
   ======================================== */

/* 4K & Ultra Wide Screens - 2560px+ */
@media screen and (min-width:2560px) {
    .daterangepicker-container {
        min-width: 750px;
        padding: 25px;
    }

    .daterangepicker-calendar {
        min-width: 300px;
    }

    .daterangepicker-day {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .form--submit-totxau {
        padding: 24px 40px;
    }

    .box--house-tot {
        display: flex;
        gap: 3px;
    }

    .box-dtl-pc {
        display: block;
    }

    .box-dtl-mb {
        display: none;
    }

    .diem-so {
        font-size: 18px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }

    .score-battery-mb {
        display: none;
    }

    .table-layout {
        table-layout: fixed;
    }

    .accordion-flush .accordion-button {
        font-size: 18.5px;
    }
}

/* Large Desktop - 1400px+ */
@media screen and (min-width:1400px) {
    .accordion-flush .accordion-button {
        font-size: 18.5px;
    }

    .daterangepicker-container {
        max-width: 500px;
    }

    .table-layout {
        table-layout: fixed;
    }

    .score-battery-mb {
        display: none;
    }

    .box--house-tot {
        display: flex;
        gap: 3px;
    }

    .daterangepicker-calendar {
        min-width: 270px;
    }

    .form--submit-totxau {
        /* padding: 32px 40px; */
        padding: 32px 0 30px 40px;
    }

    .box-dtl-pc {
        display: block;
    }

    .box-dtl-mb {
        display: none;
    }

    .diem-so {
        font-size: 18px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }
}

/* Desktop - 1200px to 1399.98px */
@media screen and (min-width:1200px) and (max-width:1399.98px) {
    .accordion-flush .accordion-button {
        font-size: 18.5px;
    }

    .daterangepicker-container {
        /* min-width: 450px; */
        max-width: 500px;
    }

    .table-layout {
        table-layout: fixed;
    }

    .score-battery-mb {
        display: none;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }

    .box--house-tot {
        display: flex;
        gap: 3px;
    }

    .form--submit-totxau {
        padding: 24px 20px;
    }

    .box-dtl-pc {
        display: block;
    }

    .box-dtl-mb {
        display: none;
    }

    .diem-so {
        font-size: 18px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
    }
}

/* Laptop / Small Desktop - 992px to 1199.98px */
@media screen and (min-width:992px) and (max-width:1199.98px) {
    .accordion-flush .accordion-button {
        font-size: 18.5px;
    }

    .daterangepicker-container {
        /* min-width: 500px; */
        max-width: 550px;
    }

    .table-layout {
        table-layout: fixed;
    }

    .score-battery-mb {
        display: none;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }

    .box--house-tot {
        display: flex;
        gap: 3px;
    }

    .daterangepicker-shortcuts {
        min-width: 140px;
    }

    .daterangepicker-calendar {
        min-width: 230px;
    }

    .form--submit-totxau {
        padding: 24px 24px;
    }

    .box-dtl-pc {
        display: block;
    }

    .box-dtl-mb {
        display: none;
    }

    .diem-so {
        font-size: 14px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
    }
}

/* Tablet - 768px to 991.98px */
@media screen and (min-width:768px) and (max-width:991.98px) {
    .accordion-flush .accordion-button {
        font-size: 18px;
    }

    .read-more-link-cotot {
        padding-right: 10px;
        padding-left: 10px;
        height: 48px;
    }

    .daterangepicker-container {
        min-width: 100px;
        max-width: 700px;
        padding: 18px;
    }

    .score-battery-mb {
        display: none;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }

    .form--submit-totxau {
        padding: 24px 40px;
    }

    .daterangepicker-content {
        flex-direction: column;
        gap: 0;
    }

    /* ẨN shortcuts trên tablet */
    .daterangepicker-shortcuts {
        /* display: flex !important; */
        justify-content: center;
    }

    .daterangepicker-shortcuts {
        display: none;
        border-bottom: 1px solid;
        border-right: unset;
    }

    .daterangepicker-shortcuts ul {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .box--house-tot {
        display: grid;
        gap: 3px;
    }

    .daterangepicker-shortcuts li {
        border: 1px solid;
    }

    .daterangepicker-calendar {
        width: 100%;
    }

    .daterangepicker-day {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .daterangepicker-footer {
        margin-top: 15px;
    }

    .daterangepicker-btn {
        min-height: 44px;
    }

    .box-dtl-pc {
        display: block;
    }

    .box-dtl-mb {
        display: none;
    }

    .diem-so {
        font-size: 14px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
    }
  
}

/* Large Phone - 480px to 767.98px */
@media screen and (min-width: 480px) and (max-width: 767.98px) {
    .accordion-flush .accordion-button {
        font-size: 18px;
    }
   .header-green,
    .header-red {
        height: 70px;
    }
    .read-more-link-cotot {
        padding-right: 10px;
        padding-left: 10px;
        height: 48px;
    }

    .daterangepicker-container {
        position: fixed !important;
        flex-direction: column;
        /* min-width: 300px; */
        /* max-width: 95vw; */
        width: 400px;
        padding: 15px;
        /* max-height: 90vh; */
        overflow: hidden;
    }

    .score-header {
        display: none;
    }

    .score-battery-pc {
        display: none;
    }

    .score-battery-mb {
        display: flex;
    }

    .box-title-goback {
        display: flex;
        justify-content: space-between;
    }

    .form--submit-totxau {
        padding: 24px 40px;
    }

    .daterangepicker-content {
        /* flex-direction: column; */
        /* gap: 0; */
        flex: 1;
        overflow-y: auto;
    }

    /* ẨN shortcuts */
    .daterangepicker-shortcuts {
        display: none !important;
    }

    .daterangepicker-calendars {
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    /* Chỉ hiển thị 1 tháng */
    .daterangepicker-calendar[data-position="right"] {
        /* display: none; */
    }

    .daterangepicker-calendar {
        width: 100%;
        overflow: hidden;
    }

    .daterangepicker-table {
        width: 100%;
        table-layout: fixed;
    }

    .daterangepicker-day {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .daterangepicker-header button {
        padding: 8px 12px;
        font-size: 20px;
    }

    .form--submit-totxau {
        padding: 24px 40px;
    }

    .daterangepicker-month-year {
        font-size: 16px;
        font-weight: 700;
    }

    .daterangepicker-footer {
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .daterangepicker-btn {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 50px;
    }

    .box-dtl-pc {
        display: none;
    }

    .box-dtl-mb {
        display: block;
    }

    .diem-so {
        font-size: 12px;
    }

    .battery-body {
        width: 108px;
    }

    .betwen-ds {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
}

@media (max-width:480px) {
    .accordion-flush .accordion-button {
        font-size: 17px;
    }

    .form--submit-totxau {
        padding: 14px 20px;
    }

    .read-more-link-cotot {
        padding-right: 10px;
        padding-left: 10px;
        height: 48px;
    }

    .score-header {
        display: none;
    }

    .score-battery-pc {
        display: none;
    }

    .box-dtl-pc {
        display: none;
    }

    .box-dtl-mb {
        display: block;
    }

    .diem-so {
        font-size: 12px;
    }

    .battery-body {
        width: 120px;
    }

    .betwen-ds {
        display: flex;
        justify-content: center;
        gap: 5px;
    }
    .table tbody td:first-child{
        max-width: 100px;
    }

}

@media (max-width:376px) {

    .header-green,
    .header-red {
        height: 130px;
    }
}

/* Unified styles for date range picker (both PC and mobile) */
.daterangepicker-container.mobile-view {
    width: 400px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow: hidden !important;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
    .daterangepicker-container.mobile-view {
        width: 390px !important;
    }
}

@media screen and (min-width: 1024px) {
    .daterangepicker-container.mobile-view {
        width: 500px !important;
    }
}

.mobile-calendar {
    width: 100%;
}

.mobile-calendar table {
    width: 100%;
    table-layout: fixed;
}

.mobile-calendar tbody td {
    padding: 0;
    text-align: center;
}

.mobile-header {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.mobile-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
}

.nav-btn:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.month-year-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid;
}

.month-year-display:hover {
    background: #f0f0f0;
}

.month-name {
    font-size: 16px;
    font-weight: 600;
}

.year-name {
    font-size: 14px;
    color: #666;
}

/* Month Year Selector Modal */
.month-year-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.month-year-selector {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 320px;
    max-width: 90vw;
    animation: slideUp 0.3s ease;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.selector-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.selector-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.year-section {
    margin-bottom: 20px;
}

.year-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.year-controls button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.year-controls button:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.year-input {
    width: 100px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.month-btn {
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.month-btn:hover {
    background: #f0f0f0;
    border-color: #007bff;
}

.month-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.selector-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.selector-footer button {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-cancel-selector {
    background: #f8f9fa;
    color: #6c757d;
}

.btn-cancel-selector:hover {
    background: #e9ecef;
}

.btn-today-selector {
    background: white;
    color: #007bff;
    border-color: #007bff;
}

.btn-today-selector:hover {
    background: #007bff;
    color: white;
}

.btn-apply-selector {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-apply-selector:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.mobile-selected-info {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    /* margin-top: 15px; */
}

.selected-dates-display {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.selected-date-item {
    flex: 1;
}

.selected-date-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.selected-date-item span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Small Phone - 479.98px and below */
@media screen and (max-width:479.98px) {
    .daterangepicker-container {
        position: fixed !important;
        flex-direction: column;
        min-width: 280px;
        /* max-width: 98vw; */
        /* width: 300px; */
        padding: 12px;
        max-height: 92vh;
        overflow: hidden;
    }

    .daterangepicker-content {
        flex-direction: column;
        gap: 0;
        flex: 1;
        overflow-y: auto;
    }

    /* ẨN shortcuts */
    .daterangepicker-shortcuts {
        display: none !important;
    }

    .daterangepicker-calendars {
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    /* Chỉ hiển thị 1 tháng */
    .daterangepicker-calendar[data-position="right"] {
        /* display: none; */
    }

    .daterangepicker-calendar {
        width: 100%;
        overflow: hidden;
    }

    .daterangepicker-table {
        width: 100%;
        table-layout: fixed;
    }

    .daterangepicker-day {
        width: 100%;
        height: 100%;
        font-size: 13px;
    }

    .daterangepicker-table th {
        font-size: 11px;
        padding: 6px 2px;
    }

    .daterangepicker-header button {
        padding: 6px 10px;
        font-size: 18px;
    }

    .daterangepicker-month-year {
        font-size: 14px;
    }

    .daterangepicker-footer {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .daterangepicker-btn {
        padding: 0px;
        font-size: 14px;
        min-height: 46px;
    }
}

/* Special Cases - Landscape & Touch Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .daterangepicker-container {
        max-height: 95vh !important;
        width: auto !important;
        min-width: 320px !important;
        padding: 10px !important;
    }

    .daterangepicker-shortcuts {
        display: none !important;
    }

    .daterangepicker-calendar[data-position="right"] {
        display: none !important;
    }

    .daterangepicker-content {
        overflow-y: auto !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .daterangepicker-day {
        min-width: 40px;
        min-height: 40px;
    }

    .daterangepicker-shortcuts li {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .daterangepicker-btn {
        min-height: 30px;
    }
}

/* Global Calendar Popup */
.global-calendar {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    animation: slideDown 0.3s ease-out;
    border: 1px solid #e9ecef;
    min-width: 280px;
}

/* Custom Calendar Popup */
.custom-calendar {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 20px;
    margin-top: 8px;
    animation: slideDown 0.3s ease-out;
    border: 1px solid #e9ecef;
}

/* .custom-calendar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
} */

.calendar-header-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.month-year {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.btn-nav {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: #f8f9fa;
    color: #4A90E2;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.calendar-day:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.calendar-day.selected {
    background: #4A90E2;
    color: white;
}

.calendar-day.today {
    background: #fff3e0;
    color: #f57c00;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.btn-calendar {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear {
    background: #f8f9fa;
    color: #666;
}

.btn-clear:hover {
    background: #e9ecef;
}

.btn-today {
    background: #4A90E2;
    color: white;
}

.btn-today:hover {
    background: #357ABD;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-calendar {
        /* margin: 10px; */
        padding: 10px;
    }
}

.font-tools {
    background: linear-gradient(180deg, #2254AB, #409BF1);
    border-radius: 32px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 400px;
}

.table {
    width: 100% !important;
    margin-bottom: 1rem;
    background-color: white;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    /* border-bottom: 2px solid #dee2e6; */
    font-weight: 600;
    border: 1px solid white;
    color: #212121;
    padding: 15px 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #C1C8D1;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}


.table tbody td {
    padding: 12px;
    border: 1px solid white;
    vertical-align: middle;
    background: #EDF0F3;
    /* border-bottom: 1px solid #f0f0f0; */
}


/* Responsive for Mobile */
@media (max-width: 768px) {
    .table {
        font-size: 13px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }

    .table tbody td {
        padding: 8px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }




    /* Stack date info vertically on mobile */
    .table tbody td:first-child {
        /* min-width: 120px; */
    }

    .table tbody td:first-child strong {
        font-size: 12px;
    }

    .table tbody td:first-child .text-muted {
        font-size: 10px;
    }

    /* Make select smaller on mobile */
    .sort-select {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }

    /* Adjust card padding on mobile */



}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 992px) {
    .table {
        font-size: 14px;
    }

    .table thead th {
        padding: 12px 10px;
    }

    .table tbody td {
        padding: 10px;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .table-responsive {
        overflow: visible;
    }

    .table {
        font-size: 15px;
    }

    .table thead th {
        padding: 5px;
    }

    .table tbody td {
        padding: 14px;
    }
}

/* Year tabs styles */
.year-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;

}

.box-tab-white {
    background: white;
    padding: 8px;
    border-radius: 12px;
}

.year-tabs .nav-pills {
    display: inline-flex;
    flex-wrap: nowrap;
    min-width: 100%;
    /* background: white;
    padding: 8px;
    border-radius: 12px; */
}

.year-tabs .nav-link {
    background-color: #f0f0f0;
    color: #666;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.year-tabs .nav-link.active {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.year-tabs .nav-link:hover:not(.active) {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Scrollbar styles */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.box-detial-year {
    background: white;
    border-radius: 12px;
}

/* Info grid responsive */
.info-grid {
    /* display: grid; */
    /* gap: 10px; */
}

@media (min-width: 768px) {
    .info-grid {
        /* grid-template-columns: 1fr 1fr; */
        /* gap: 15px; */
    }
}

/* Sort select custom style */
.sort-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    height: 40px;
}

.sort-select:hover {
    border-color: #999;
}

.sort-select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.box1-con-year {
    padding: 24px;
}

.calendar-picker {
    padding: 10px;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.picker-year {
    font-weight: bold;
    font-size: 16px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.month-item {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.month-item:hover {
    background-color: #f0f0f0;
}

.month-item.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.month-year {
    text-decoration: underline;
}

.--border-box-form {
   border: 1px solid #e1e5e9 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgb(0 0 0 / .02);
}

.btn-light-settup {
    border-radius: 12px;
    padding: 12px;
    background-color: rgba(43, 126, 229, 1);
    color: rgba(255, 255, 255, 1);
    border: none;
    /* box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25); */
    /* max-width: 260px; */
}

.--detail-success {
    margin-top: 33px;
}

.--padding-event-tot {
    padding: 8px;
}

.--padding-event-tot .event-name {
    font-weight: 500;
    font-size: 18px;
}

.btn-sm-settup {
    border: 1px solid rgba(34, 104, 211, 1);
    background: rgba(220, 238, 253, 1);
    width: 87px;
    border-radius: 8px;
    color: rgba(34, 104, 211, 1);
    font-weight: 500;
    font-size: 18px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.btn-sm-settup:hover {
    border: 1px solid rgba(34, 104, 211, 1);
    background: rgba(220, 238, 253, 1);
    color: rgba(34, 104, 211, 1);
}

.accordion-button {
    padding: 10px;

}

.accordion-button:not(.collapsed) {
    border-radius: 12px 12px 0 0 !important;
}

/* Universal Date Picker Styles */
.universal-date-picker-wrapper {
    position: relative;
}

.universal-date-picker-wrapper .custom-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    margin-top: 5px;
}

.universal-date-picker-wrapper .calendar-header-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.universal-date-picker-wrapper .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}

.universal-date-picker-wrapper .weekday {
    text-align: center;
    padding: 8px 0;
    color: #666;
}

.universal-date-picker-wrapper .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.universal-date-picker-wrapper .calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.universal-date-picker-wrapper .calendar-day:hover:not(.disabled):not(.empty) {
    background: #f0f8ff;
    transform: scale(1.05);
}

.universal-date-picker-wrapper .calendar-day.selected {
    background: #007bff;
    color: white;
}

.universal-date-picker-wrapper .calendar-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.universal-date-picker-wrapper .calendar-day.empty {
    cursor: default;
}

.universal-date-picker-wrapper .btn-nav {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: color 0.2s;
}

.universal-date-picker-wrapper .btn-nav:hover {
    color: #007bff;
}

.universal-date-picker-wrapper .calendar-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.universal-date-picker-wrapper .btn-calendar {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.universal-date-picker-wrapper .btn-calendar:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.universal-date-picker-wrapper .leap-month-selector,
.universal-date-picker-wrapper .leap-month-selector {
    padding: 10px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.universal-date-picker-wrapper .month-year {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Custom radio button styles */
.form-check-input[type="radio"] {
    border: 2px solid rgba(34, 84, 171, 1);
    background-color: #fff;
    transition: all 0.2s ease;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-check-input[type="radio"]:checked {
    background-color: #fff;
    border-color: rgba(34, 84, 171, 1);
    background-image: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(34, 84, 171, 1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-input[type="radio"]:hover:not(:checked) {
    border-color: #9ca3af;
}

.form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-check-label {
    user-select: none;
    font-weight: 500;
}

/* Calendar input styling */
#ngayXem {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

#ngayXem::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.active-tools .event-name {
    color: rgba(43, 126, 229, 1) !important;
    font-weight: 500;
}

.accordion-button:focus {
    border-color: unset;
    box-shadow: none
}


.battery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, sans-serif;
}

/* thân pin */
.battery-body {
    height: 28px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* phần màu fill */
.battery-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #10B981;
    /* xanh mặc định */
    transition: width 0.5s ease;
}

/* số % ở giữa thân pin */
.battery-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #000;
    /* chữ đen */
    z-index: 2;
    /* nằm trên fill */
    pointer-events: none;
    /* không bị ảnh hưởng khi hover/click */
}

th {
    text-align: center !important;
}


.mobile-date-range-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.mobile-popup-content-range {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.mobile-popup-header-range {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 18px;
    color: #2254AB;
}

.quick-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.quick-option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-option-btn:hover {
    background: #e9ecef;
    border-color: #2254AB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 84, 171, 0.2);
}

.quick-option-btn.selected {
    background: #2254AB;
    border-color: #2254AB;
    color: white;
}

.option-title {
    font-weight: 600;
    font-size: 14px;
    /* margin-bottom: 4px; */
}

.option-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

.quick-option-btn.selected .option-desc {
    color: rgba(255, 255, 255, 0.8);
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-settings {
    height: 40px;
    flex: 1;
    background: #2254AB;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 8px; */
}

.btn-settings:hover {
    background: #1e4a96;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 84, 171, 0.3);
}

.btn-cancel-range {
    padding: 10px !important;
    flex: 1;
    background: #f8f9fa;
    color: #46494E;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-range:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Hide mobile popup overlay from tablet up (768px+) */
@media (min-width: 768px) {

    .mobile-date-range-overlay,
    .mobile-quick-options-overlay,
    .mobile-date-range-popup {
        display: none !important;
    }
}

/* Mobile Date Range Popup Styles */
.mobile-date-range-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.3s ease; */
}

.mobile-date-range-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-date-range-popup {
    /* background: white; */
    width: 100%;
    /* max-width: 420px; */
    border-radius: 20px 20px 0 0;
    padding: 25px 20px 35px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-date-range-popup.show {
    display: flex;
    transform: translateY(0);
}

.mobile-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.mobile-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-option-btn {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
}

.mobile-option-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.option-icon {
    font-size: 24px;
    min-width: 30px;
}

.option-label {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.option-arrow {
    font-size: 18px;
    color: #999;
}

/* Quick Options Popup */
.mobile-quick-options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-quick-options-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-quick-options-popup {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 20px 20px 0 0;
    padding: 25px 20px 35px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-quick-options-popup.show {
    transform: translateY(0);
}

.mobile-quick-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-quick-btn {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
}

.mobile-quick-btn:hover {
    background: #f0f8ff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.15);
}

.quick-icon {
    font-size: 20px;
    min-width: 25px;
}

.quick-label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Single date mode styling */
.daterangepicker-container.mode-single .mobile-selected-info {
    display: none;
}

.daterangepicker-container.mode-single .selected-dates-display {
    justify-content: center;
}

.daterangepicker-container.mode-single .selected-date-item:last-child {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {

    .mobile-date-range-popup,
    .mobile-quick-options-popup {
        padding: 20px 15px 30px;
        border-radius: 15px 15px 0 0;
    }

    .mobile-popup-header h3 {
        font-size: 18px;
    }

    .mobile-option-btn,
    .mobile-quick-btn {
        padding: 16px;
    }

    .option-label,
    .quick-label {
        font-size: 15px;
    }

    .option-icon {
        font-size: 22px;
    }

    .quick-icon {
        font-size: 18px;
    }

    .score-battery-mb {
        display: flex;
        align-items: center;
        justify-content: start;
        height: 100%;
    }
}

.table-detail tbody td {
    border: 1px solid #000000 !important;
    background: white !important;
    border-color: #EDF0F3;
    vertical-align: top;
}

.table-detail {
    border-collapse: collapse;
}

#backToListBtn {
    background-color: #fff;
    color: #192E52;
    border: 0.5px solid #2254AB;
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 2px 2px 2px #00000026;
    color: #192E52;
    font-weight: 600;
}

.btn-light-settup:hover {
    background-color: rgba(34, 84, 171, 1);
    color: rgba(255, 255, 255, 1);
}

/* Wedding date range input styling - Ngăn hoàn toàn input text và keyboard trên mobile */
.wedding_date_range {
    /* Ngăn hoàn toàn text input và keyboard trên mobile */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;

    /* Ngăn zoom trên iOS */
    -webkit-text-size-adjust: 100% !important;

    /* Ngăn text cursor */
    caret-color: transparent !important;

    /* Pointer cursor */
    cursor: pointer !important;

    /* Ngăn outline khi focus */
    outline: none !important;

    /* Ngăn highlight */
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;

    /* Ngăn input mode và keyboard */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.wedding_date_range:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   MOBILE SCORE CIRCLE & TABLE PAGINATION
   ======================================== */

/* Mobile Score Circle Styles */
.score-circle-mobile {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    /* canh giữa hoàn hảo */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    /* bật flex để căn chữ giữa */
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #000 !important;
    z-index: 2;
}

/* Wedding - Dual Score Circles for Groom & Bride */
.score-circles-wedding {
    /* position: absolute;
    top: 0;
    right: 8px;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 0px;
    z-index: 2; */
    border-top: 2px solid #ffffff;
    display: flex;
    gap: 20px;
}

.score-circle-groom,
.score-circle-bride {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: #000 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid;
}

.score-circle-groom {
    background-color: #E3F2FD;
    /* Light blue for groom */
    border-color: #2196F3;
}

.score-circle-bride {
    background-color: #FCE4EC;
    /* Light pink for bride */
    border-color: #E91E63;
}


/* Table Pagination - Load More Button */
.load-more-btn {
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}



/* Animation cho việc hiển thị từng dòng */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive behavior for Score Circle */
@media (min-width: 768px) {

    /* Desktop - ẩn circle, hiện battery PC */
    .score-circle-mobile {
        display: none !important;
    }

    .score-battery-pc {
        display: table-cell !important;
    }

    .score-battery-mb {
        display: none !important;
    }
}

@media (max-width: 767px) {

    /* Mobile - hiện circle, ẩn battery PC */
    .score-circle-mobile {
        display: flex !important;
    }

    .score-battery-pc {
        display: none !important;
    }

    .score-battery-mb {
        display: none !important;
    }

    /* Đảm bảo td có position relative để circle có thể absolute */
    .table-responsive td {
        position: relative;
    }

    /* Tăng padding-right cho td chứa yếu tố hỗ trợ để tránh circle che text */
    .table-responsive td:nth-child(2) {
        padding-right: 45px !important;
    }

    .table-responsive th:nth-child(2) {
        border-radius: 0 8px 8px 0;

    }

    /* Ẩn cột điểm trên mobile vì đã có circle */
    .table-responsive th:nth-child(3),
    .table-responsive td:nth-child(3) {
        display: none !important;
    }
}

/* ========================================
   WEDDING - DUAL SCORE CIRCLES
   ======================================== */

/* Mobile responsive for wedding dual circles */
@media (max-width: 767px) {

    /* Wedding specific - hiện dual circles cho wedding page */
    .score-circles-wedding {
        display: flex !important;
        justify-content: space-evenly;
    }

    /* Tăng padding để chứa 2 circles wedding */
    .table-responsive td:nth-child(2):has(.score-circles-wedding) {
        padding-right: 0px !important;
    }
}

@media (min-width: 768px) {

    /* Desktop - ẩn wedding circles */
    .score-circles-wedding {
        display: none !important;
    }
}

.small {
    font-size: 13px;
}

.alert-success {
    background: #D1E7DD;
    border: 1px solid #A3CFBB;
    padding: 1rem;
    border-radius: 0.375rem;
}

.load-more-btn {
    padding-right: 20px;
    padding-left: 20px;
    /* max-width: 300px; */
    color: black;
    border: 1px solid;
    border-radius: 30px;
}



.style-input {
    border-radius: 10px;
    border: none;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.95);
}

/* Loading state cho submit button */
#submitBtn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Image zoom container for modal */


.laso-image {
    /* max-height: 80vh;
    max-width: 100%; */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Đảm bảo ảnh responsive với tỷ lệ khung hình khác nhau */
    display: block;
    margin: 0 auto;
}

/* Mobile responsive cho lá số */
@media (max-width: 768px) {
    .laso-image {
        max-height: 70vh;
        max-width: 95vw;
    }
}

/* Điều chỉnh zoom result cho ảnh dọc */

/* CSS cho personTab luôn nằm 1 hàng đẹp */
#personTab {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    gap: 15px;
}

#personTab .nav-item {
    flex: 1;
    min-width: 0;
}

#personTab .nav-link {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    margin: 0;
    position: relative;
}

#personTab .nav-link:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border-color: #2196f3;
}

#personTab .nav-link.active {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-color: #1565c0;
}

#personTab .nav-link.active:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #personTab {
        gap: 10px;
    }

    #personTab .nav-link {
        font-size: 12px;
        padding: 10px 8px;
        flex-direction: column;
        gap: 4px;
        margin: 0;
    }

    #personTab .nav-link i {
        margin-right: 0 !important;
        margin-bottom: 2px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    #personTab {
        gap: 8px;
    }

    #personTab .nav-link {
        font-size: 10px;
        padding: 8px 6px;
        margin: 0;
    }

    #personTab .nav-link i {
        font-size: 14px;
    }

    #personTab .nav-link span {
        display: none;
    }

    #personTab .nav-link:after {
        content: attr(data-short);
        font-weight: 600;
        font-size: 10px;
    }
}

table.table-detail,
table.table-detail td,
table.table-detail th {
    border: 1px solid #ccc !important;
    /* cam */
}

.content-title-home-lich-right {
    display: flex;
    align-items: center;
}

.content-title-home-lich-right::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 28px;
    background-color: #4299e1;
    border-radius: 999px;
    margin-right: 12px
}

.box-siderbar-index {
    border: 1px solid #2149874D;
    border-radius: 16px;
    background: #FFFFFF;
}

.box-siderbar-index .events-card {
    background: unset;
}


/* CSS tùy chỉnh để làm cho màu sắc gần với ảnh gốc hơn */
.header-green {
    background-color: #e6f7ef;
    /* Màu xanh nhạt */
    color: #28a745;
    /* Màu chữ xanh lá cây */
}

.header-red {
    background-color: #fff0f0;
    /* Màu đỏ nhạt */
    color: #dc3545;
    /* Màu chữ đỏ */
}

.content-green {
    background-color: #f7fffb;
    /* Rất nhạt, gần như trắng */
}

.content-red {
    background-color: #ffffff;
}

/* Đảm bảo đường viền cho toàn bộ khối */
.analysis-box {
    border: 1px solid #dee2e6;
}

/* Tăng cỡ font cho các icon check và x */
.list-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    /* Cố định chiều rộng để căn chỉnh */
    display: inline-block;
    text-align: center;
}

.accordion-flush .accordion-item {
    border-bottom: 1px solid #dee2e6 !important;
}

.accordion-flush .accordion-button {
    border-radius: 0 !important;
    /* border-bottom: 1px solid #dee2e6 !important; */
}

.accordion-flush .accordion-button:not(.collapsed) {
    background: #fff;
    /* giữ thuần, không đổ bóng */
    box-shadow: none !important;
}