/* Closed Tickets styles extracted from provided markup */
:root {
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --border: #e8eaed;
    --text-primary: #1a1d26;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent-green: #22c55e;
    --accent-green-bg: #dcfce7;
    --accent-green-ring: #bbf7d0;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --radius: 4px;
    --radius-sm: 4px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border: #e8eaed;
    --text-primary: #1a1d26;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent-green: #22c55e;
    --accent-green-bg: #dcfce7;
    --accent-orange: #f97316;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/*body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}*/

._giftcard-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.giftcardmanager-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #fff;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.giftcardmanager-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    /* overflow: hidden; */
}

.giftcardmanager-main {
    display: flex;
    flex: 1;
    min-width: 0;
    /* overflow: hidden; */
}

.giftcardmanager-sidebar {
    display: flex;
    flex-direction: column;
    width: 320px;
    flex: 0 0 auto;
    border-right: 1px solid var(--bs-border-color);
    background: #ffffff;
    transition: width 0.18s ease;
    position: relative;
}

.giftcardmanager-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background-color: var(--bs-body-bg);
    min-height: 100vh;
}

.giftcardmanager-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

    .giftcardmanager-body .giftcardmanager-content-wrapper {
        flex: 1;
        min-width: 0;
    }

.giftcardmanager-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--bs-border-color);
    padding: var(--px-16) var(--px-24);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
    height: auto;
    min-height: 0;
}



/* responsive */
@media (max-width: 598px) {
    .giftcardmanager-header {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 8px !important;
        gap: 16px; 
    }
    .giftcardmanager-header-left,
    .giftcardmanager-header-right {
        width: 100% !important;
        margin: 0 !important;
    }
    .giftcardmanager-header-left {
        margin-bottom: 0; 
    }
    .giftcardmanager-header-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .search-wrapper {
        width: 100%;
    }
    .search-bar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .date-nav-filter-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }
    .date-navigation-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between; 
        gap: 8px;
        width: 100%;
        flex: 1 1 100%;
    }
    .date-navigation-bar {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start; 
    }
    .filter-dropdown-wrapper {
        flex-shrink: 0;
        margin-left: auto;
        margin-top: 0;
    }
    .ticket-load-more-wrapper {
        display: none;
        margin-top: -55px !important; 
    }

    .giftcardmanager-content-wrapper {
        padding: 0 24px calc(175px + 80px) !important;
    }

}

.giftcardmanager-header-left {
    display: flex;
    align-items: center;
    gap: var(--px-16);
}

.giftcardmanager-back-btn {
    position: static;
    padding: var(--px-8, 8px);
    background: none;
    border: none;
    border-radius: var(--px-8, 8px);
    cursor: pointer;
    transition: background-color 0.2s;
    color: #6b7280;
}

    .giftcardmanager-back-btn:hover {
        background-color: var(--bs-body-bg);
    }

.giftcardmanager-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-text);
}

.giftcardmanager-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: var(--px-2, 2px);
    font-weight: 400;
}

.giftcardmanager-header-right {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.date-nav-filter-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; 
    gap: 12px; 
    width: auto;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.toolWrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.giftcardmanager-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 175px;
    background-color: #ffffff;
    max-height: 100vh;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-closed-ticket {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    width: 20px;
    height: 20px;
}

.search-bar {
    width: 280px;
    height: 40px;
    padding: 0 12px 0 40px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: #f9f9f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

    .search-bar:focus {
        outline: none;
        border-color: #10b981;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

.search-wrapper:focus-within .search-icon-closed-ticket {
    color: #10b981;
}


/* Calendar picker wrapper & button */
.calendar-picker-wrapper {
    position: relative;
}

.date-calendar-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}

    .date-calendar-btn:hover {
        background-color: var(--bs-body-bg);
        border-color: var(--accent-orange);
        color: var(--accent-orange);
    }

    .date-calendar-btn:active {
        transform: scale(0.95);
    }

/* Calendar dropdown (cuá»‘n lá»‹ch) */
.calendar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

    .calendar-dropdown.is-open {
        display: flex;
    }

/* Calendar header: prev / month-year / next */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 4px 0;
}

.calendar-month-year {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

/* Reset override tá»« site.css button cho nÃºt thÃ¡ng */
.calendar-dropdown .calendar-prev-btn,
.calendar-dropdown .calendar-next-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    background: transparent !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

    .calendar-dropdown .calendar-prev-btn:hover,
    .calendar-dropdown .calendar-next-btn:hover {
        background-color: var(--bs-body-bg) !important;
        border-color: var(--accent-orange);
        color: var(--accent-orange) !important;
    }

    .calendar-dropdown .calendar-prev-btn:active,
    .calendar-dropdown .calendar-next-btn:active {
        transform: scale(0.95);
        background: #e5e7eb !important;
    }

/* Weekday labels */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    text-align: center;
}

    .calendar-weekdays span {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
    }

/* Calendar days grid - trÃ¡nh chá»“ng cháº¥t, Ã´ rÃµ rÃ ng */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    min-width: 0;
}

/* Reset override tá»« site.css button (mÃ u xanh, height cá»‘ Ä‘á»‹nh): Ã´ lá»‹ch dÃ¹ng style riÃªng */
.calendar-dropdown .calendar-day {
    /* Reset global button (site.css) */
    height: auto;
    min-height: 32px;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    aspect-ratio: 1;
    min-width: 32px;
    box-sizing: border-box;
}

    .calendar-dropdown .calendar-day:hover {
        background-color: var(--bs-body-bg) !important;
        color: var(--accent-orange) !important;
    }

    .calendar-dropdown .calendar-day.other-month {
        color: var(--text-muted) !important;
    }

    /* Today: xanh dÆ°Æ¡ng Ä‘á»ƒ phÃ¢n biá»‡t vá»›i selected (cam) */
    .calendar-dropdown .calendar-day.today {
        background-color: var(--bs-main, #1877f3) !important;
        color: #fff !important;
    }

        .calendar-dropdown .calendar-day.today:hover {
            background-color: var(--bs-main-700, #1562e0) !important;
            color: #fff !important;
        }

    /* Selected (Today btn / Yesterday btn / pick tá»« lá»‹ch): cam nháº¡t */
    .calendar-dropdown .calendar-day.selected {
        background-color: rgba(249, 115, 22, 0.15) !important;
        color: var(--accent-orange) !important;
        font-weight: 700;
    }

        .calendar-dropdown .calendar-day.selected:hover {
            background-color: rgba(249, 115, 22, 0.25) !important;
            color: var(--accent-orange) !important;
        }

    /* Today Ä‘á»“ng thá»i Ä‘Æ°á»£c selected â†’ giá»¯ xanh dÆ°Æ¡ng (today tháº¯ng) */
    .calendar-dropdown .calendar-day.today.selected {
        background-color: var(--bs-main, #1877f3) !important;
        color: #fff !important;
        font-weight: 700;
    }

    .calendar-dropdown .calendar-day.empty {
        cursor: default;
        visibility: hidden;
        pointer-events: none;
    }

.calendar-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #acaeb1;
    border-radius: 8px;
    background-color: #f9ff31;
    color: #728098;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}

    .calendar-btn:hover {
        background-color: var(--bs-body-bg);
        border-color: var(--accent-orange);
        color: var(--accent-orange);
    }

    .calendar-btn:active {
        transform: scale(0.95);
    }

/* Date Navigation Wrapper */
.date-navigation-wrapper {
    position: relative;
}

/* Date Navigation Bar */
.date-navigation-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: auto;
    max-width: 100%;
    flex-shrink: 1;
    justify-self: end;
    overflow: visible;
    height: 40px;
}

.date-nav-btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-right: 1px solid var(--bs-border-color);
    border-radius: 0;
    background-color: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    overflow: visible;
    /* override site.css button overflow:hidden */
}

    .date-nav-btn:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .date-nav-btn:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        border-right: none;
        border-left: 1px solid var(--bs-border-color);
    }

    .date-nav-btn:hover {
        background-color: var(--bs-body-bg);
        color: #f97316;
    }

    .date-nav-btn:active {
        transform: scale(0.95);
    }

.date-today-btn {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-right: 1px solid var(--bs-border-color);
    border-radius: 0;
    background-color: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: visible;
    /* override site.css button overflow:hidden */
}

    .date-today-btn:hover {
        background-color: var(--bs-body-bg);
        color: #1e293b;
    }

    .date-today-btn.active {
        background-color: transparent;
        color: #1e293b;
    }

.date-display {
    font-size: 14px;
    font-weight: 500;
    color: #f97316;
    padding: 0 16px;
    white-space: nowrap;
    user-select: none;
    /* Responsive width inside the bar */
    flex: 1 1 auto;
    min-width: 210px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-display-clickable {
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

    .date-display-clickable:hover {
        background-color: rgba(249, 115, 22, 0.1);
    }

    .date-display-clickable:focus {
        outline: none;
        /* box-shadow: 0 0 0 2px var(--accent-orange); */
    }

.filter-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background-color: #22c55e;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .filter-icon-btn svg {
        stroke: #ffffff;
    }

    .filter-icon-btn:hover {
        background-color: #16a34a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .filter-icon-btn:active {
        transform: scale(0.95);
    }

.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    max-height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

    .filter-dropdown.is-open {
        display: flex;
    }

    /* Custom scrollbar styling */
    .filter-dropdown::-webkit-scrollbar {
        width: 8px;
    }

    .filter-dropdown::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
        margin: 10px 0;
    }

    .filter-dropdown::-webkit-scrollbar-thumb {
        background: #d6d6d6;
        border-radius: 10px;
        transition: background 0.2s;
    }

        .filter-dropdown::-webkit-scrollbar-thumb:hover {
            background: #888282;
        }

.filter-section {
    padding: 15px;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
}

    .filter-section:last-of-type {
        border-bottom: none;
    }

.filter-section-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .filter-section-header span {
        display: flex;
        align-items: center;
    }

    .filter-section-header:hover {
        background: var(--bs-body-bg);
    }

.section-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.filter-options:not(.is-expanded) ~ .filter-section-header .section-arrow,
.filter-options.is-expanded + .filter-section-header .section-arrow {
    transform: rotate(0deg);
}

.filter-section-header + .filter-options:not(.is-expanded) {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
}

.filter-section-header:has(+ .filter-options:not(.is-expanded)) .section-arrow {
    transform: rotate(-90deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

    .filter-options.is-expanded {
        max-height: 500px;
        opacity: 1;
    }

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .filter-option:hover {
        background: var(--bs-body-bg);
    }

    .filter-option input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        visibility: visible !important;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        border: 2px solid var(--bs-border-color);
        border-radius: 4px;
        background-color: #ffffff;
        position: relative;
        transition: all 0.2s;
        flex-shrink: 0;
    }

        .filter-option input[type="checkbox"]:hover {
            border-color: var(--accent-green);
        }

        .filter-option input[type="checkbox"]:checked {
            background-color: var(--accent-green);
            border-color: var(--accent-green);
        }

            .filter-option input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                left: 5px;
                top: 2px;
                width: 4px;
                height: 8px;
                border: solid white;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }

    .filter-option span {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        user-select: none;
    }

.filter-apply-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--accent-green);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .filter-apply-btn:hover {
        background: #16a34a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }

    .filter-apply-btn:active {
        transform: translateY(0);
    }

/* Date Filter Buttons */
.date-filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .date-filter-btn:hover {
        border-color: var(--accent-orange);
        color: var(--accent-orange);
    }

    .date-filter-btn.active {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
        color: #ffffff;
    }

        .date-filter-btn.active:hover {
            background-color: var(--accent-orange-hover);
            border-color: var(--accent-orange-hover);
        }

/* Date Filter Buttons */
.date-filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .date-filter-btn:hover {
        border-color: var(--accent-orange);
        color: var(--accent-orange);
    }

    .date-filter-btn.active {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
        color: #ffffff;
    }

        .date-filter-btn.active:hover {
            background-color: var(--accent-orange-hover);
            border-color: var(--accent-orange-hover);
        }


/* Loading indicator */
.ticket-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Empty state */
.ticket-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* List wrapper */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 60px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: 100%;
}

/* Single ticket card */
.ticket-card {
    background: #ffffff;
    border-bottom: 1px solid #c8cbd0;
    padding: 14px 20px;
    transition: background 0.15s;
    position: relative; /* anchor for tip popup */
}

    .ticket-card.ticket-card--cancelled {
        background: #fff6f6
    }

    .ticket-card.ticket-card--voided {
        background: #fffbe5;
    }

    .ticket-card:first-child {
        border-top: 1px solid #c8cbd0;
    }

    .ticket-card:hover {
        background: #fafafa;
    }

    .ticket-card.ticket-card--cancelled:hover {
        background: #ffdede;
    }

    .ticket-card.ticket-card--voided:hover {
        background: #fff3b3;
    }

/* Load More Button Wrapper */
.ticket-load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 5px 0;
    margin-top: 10px;
}

.ticket-load-more-btn {
    padding: 10px 24px;
    background-color: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .ticket-load-more-btn:hover {
        background-color: var(--bs-body-bg);
        border-color: #cbd5e1;
        color: #1e293b;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .ticket-load-more-btn:active {
        transform: scale(0.98);
    }

.ticket-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticket-appt-badge {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5dd33e;
    background: #deffd7;
    color: #21b206;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    user-select: none;
}

.ticket-info-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ticket-id {
    color: #343b43;
    font-weight: 400;
}

.ticket-customer-name {
    color: var(--bs-text);
    font-weight: 700;
    opacity: 1;
}

.ticket-subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.ticket-subtitle-value {
    color: #64748b;
    font-weight: 500;
}

.ticket-info-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
}

.ticket-tip {
    font-size: 13px;
    font-weight: 500;
    color: #000000eb;
}

.ticket-tip--clickable {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .ticket-tip--clickable:hover {
        color: var(--bs-text);
    }

.ct-tip-popup {
    position: absolute;
    z-index: 2200;
    top: 0;
    left: 0;
}

.ct-tip-popup-inner {
    min-width: 140px;
    max-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.18);
    font-size: 12px;
    line-height: 1.3;
    color: var(--bs-text);
}

.ct-tip-line {
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-tip-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ct-tip-divider {
    height: 1px;
    background: rgba(17, 24, 39, 0.12);
    margin: 8px 0;
}

.ct-tip-k {
    font-weight: 800;
}

.ct-tip-v {
    font-weight: 600;
}

.ct-tip-sep {
    margin-top: 6px;
    opacity: 0.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-tip-empty {
    font-weight: 600;
    opacity: 0.8;
}

.ticket-payment-mode {
    font-size: 12px;
    color: #030405;
}

.ticket-meta {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* -------------------------------------------------------
   Receipt modal (Closed Tickets - View Details)
------------------------------------------------------- */
.ct-receipt-lock {
    overflow: hidden !important;
}

.ct-receipt-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

    .ct-receipt-modal.is-open {
        display: block;
    }

.ct-receipt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ct-receipt-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ct-receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
}

.ct-receipt-header-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--bs-text);
}

.ct-receipt-close {
    width: 32px;
    height: 32px;
    border: 1px solid #111827;
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--bs-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* override site.css */
}

    .ct-receipt-close:hover {
        background: var(--bs-body-bg);
        color: var(--bs-text);
    }

.ct-receipt-body {
    padding: 14px;
    overflow: auto;
    /* background: #fafafa; */
}

.ct-receipt-footer {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--bs-border-color);
    background: #fff;
}

.ct-receipt-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    overflow: visible;
    /* override site.css */
}

.ct-receipt-btn-secondary {
    background: #ffffff;
    color: var(--bs-text);
    border: 1px solid #c7cbd1;
}

.ct-receipt-btn-primary {
    background: var(--bs-main);
    color: #fff;
}

.ct-receipt-loading,
.ct-receipt-error {
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

/* Receipt paper */
.ct-receipt-paper {
    background: #fff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 12px;
    padding: 14px 14px 12px;
    color: var(--bs-text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.ct-receipt-logo {
    display: flex;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 8px;
}

    .ct-receipt-logo img {
        max-width: 120px;
        max-height: 40px;
        object-fit: contain;
    }

.ct-receipt-points-earned {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    margin-top: 2px;
}

.ct-receipt-points-current {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.05;
    margin-top: 6px;
}

    .ct-receipt-points-current span {
        display: block;
        font-size: 20px;
        font-weight: 600;
        color: var(--bs-text);
        margin-top: 2px;
    }

.ct-receipt-member {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.ct-receipt-sep {
    border-top: 1px dashed var(--bs-border-color);
    margin: 10px 0;
}

.ct-receipt-sep-light {
    border-top-style: solid;
    border-top-color: var(--bs-border-color);
    margin: 8px 0;
}

.ct-receipt-kv {
    font-size: 12px;
    color: var(--bs-text);
    display: grid;
    gap: 6px;
}

.ct-receipt-kv-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ct-receipt-kv-label {
    min-width: 90px;
    flex-shrink: 0;
}

.ct-receipt-kv-value {
    flex: 1;
}

.ct-receipt-table-header {
    display: grid;
    grid-template-columns: 1fr 48px 107px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    align-items: center;
}

.ct-receipt-row {
    display: grid;
    grid-template-columns: 1fr 48px 96px;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--bs-text);
    align-items: start;
}

.ct-receipt-item-desc {
    font-weight: 700;
}

.ct-receipt-item-tech {
    color: #6b7280;
    margin-top: 2px;
}

.ct-receipt-total-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 3px 0;
    font-size: 12px;
}

.ct-receipt-total-strong {
    font-weight: 800;
    font-size: 13px;
    margin-top: 4px;
}

.ct-receipt-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    margin-bottom: 6px;
}

.ct-receipt-store {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.ct-muted {
    color: #6b7280;
    font-weight: 500;
}

.ct-right {
    text-align: right;
    white-space: nowrap;
    min-width: 96px;
    font-variant-numeric: tabular-nums;
}

.ct-center {
    text-align: center;
    white-space: nowrap;
    min-width: 48px;
    font-variant-numeric: tabular-nums;
}

/* Action buttons row */
.ticket-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-left: 50px;
}

.ticket-action-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: auto !important;
    min-height: unset !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-text) !important;
    cursor: pointer;
    transition: all 0.15s;
}

    .ticket-action-btn svg {
        width: 15px;
        height: 15px;
        stroke: #212529;
    }

    .ticket-action-btn:hover {
        border-color: #cbd5e1 !important;
        color: #1e3a8a !important;
        background-color: var(--bs-body-bg) !important;
    }

        .ticket-action-btn:hover svg {
            stroke: #1e3a8a;
        }

    .ticket-action-btn:active {
        transform: scale(0.98);
        background-color: var(--bs-body-bg) !important;
    }

.ticket-action-refund {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

    .ticket-action-refund svg {
        stroke: #dc2626;
    }

    .ticket-action-refund:hover {
        border-color: #fca5a5 !important;
        color: #b91c1c !important;
        background-color: #fee2e2 !important;
    }

        .ticket-action-refund:hover svg {
            stroke: #b91c1c;
        }

    .ticket-action-refund:active {
        background-color: #fecaca !important;
    }

/* Scrollable content area */
.giftcardmanager-body {
    overflow-y: auto;
}

.giftcardmanager-content-wrapper {
    overflow-y: auto;
}

/* -------------------------------------------------------
   Calendar: Week Range Highlight (This Week) â€” cam nháº¡t Ä‘á»“ng Ä‘á»u
------------------------------------------------------- */

.calendar-dropdown .calendar-day.week-range {
    background-color: rgba(249, 115, 22, 0.15) !important;
    color: var(--accent-orange) !important;
    font-weight: 600;
    border-radius: 8px !important;
}

    .calendar-dropdown .calendar-day.week-range:hover {
        background-color: rgba(249, 115, 22, 0.25) !important;
        color: var(--accent-orange) !important;
    }

/* Today náº±m trong tuáº§n â†’ giá»¯ xanh dÆ°Æ¡ng */
.calendar-dropdown .calendar-day.today.week-range {
    background-color: var(--bs-main, #1877f3) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Ticket Details Modal (slide from right) */
.ct-ticket-details-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

    .ct-ticket-details-modal.is-open {
        display: block;
    }

.ct-ticket-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.2s ease-out;
}

.ct-ticket-details-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(500px, calc(100vw - 40px));
    max-width: 90vw;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ct-ticket-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
}

.ct-ticket-details-header-content {
    flex: 1;
}

.ct-ticket-details-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--bs-text);
    margin: 0 0 8px 0;
}

.ct-ticket-details-id {
    font-size: 14px;
    color: #f97316;
    font-weight: 600;
}

.ct-ticket-details-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bs-body-bg);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: background 0.2s, color 0.2s;
}

    .ct-ticket-details-close:hover {
        background: #e5e7eb;
        color: var(--bs-text);
    }

.ct-ticket-details-body {
    padding: 24px;
    overflow-y: auto;
    background: #f5f6fa;
    flex: 1;
}

.ct-ticket-details-loading,
.ct-ticket-details-error {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.ct-ticket-status-badge {
    display: inline-block;
    padding: 8px 193px; /* Desktop look (fixed width) */
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 24px;
}

.ct-ticket-status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.ct-ticket-status-voided {
    background: #fee2e2;
    color: #dc2626;
}

.ct-ticket-status-not-payment {
    background: #fee2e2;
    color: #dc2626;
}

.ct-ticket-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.ct-ticket-section-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--bs-text);
    margin: 0 0 16px 0;
}

.ct-ticket-reason-box {
    background: var(--bs-body-bg);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .ct-ticket-reason-box input[type="checkbox"] {
        margin-top: 2px;
        cursor: default;
    }

    .ct-ticket-reason-box span {
        font-size: 14px;
        color: var(--bs-text);
        line-height: 1.5;
    }

.ct-ticket-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .ct-ticket-info-row:last-child {
        margin-bottom: 0;
    }

.ct-ticket-info-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 120px;
}

.ct-ticket-info-value {
    font-size: 14px;
    color: #111827;
    text-align: right;
    flex: 1;
}

.ct-ticket-info-value-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

    .ct-ticket-info-value-group strong {
        font-size: 14px;
        color: #111827;
        font-weight: 700;
    }

.ct-ticket-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.ct-ticket-badge-appointment {
    background: #dbeafe;
    color: #1e40af;
}

.ct-ticket-badge-tech {
    background: #f3f4f6;
    color: #374151;
}

.ct-ticket-service-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ct-ticket-service-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ct-ticket-service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ct-ticket-service-name {
    font-size: 14px;
    color: #222428c9;
    font-weight: 500;
}

.ct-ticket-service-time {
    font-size: 13px;
    color: #6b7280;
}

.ct-ticket-service-price {
    font-size: 14px;
    color: var(--bs-text);
    font-weight: 600;
    white-space: nowrap;
}

.ct-ticket-amount-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .ct-ticket-amount-section .ct-ticket-section-title {
        margin: 0;
    }

.ct-ticket-amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-text);
}

.ct-ticket-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--bs-border-color);
}

.ct-ticket-footer-text {
    font-size: 14px;
    color: #76797e;
    margin-bottom: 4px;
    text-align: center;
}

    .ct-ticket-footer-text:last-child {
        margin-bottom: 0;
    }

body.ct-ticket-details-lock {
    overflow: hidden;
}


/* Receipt Action Modal UI */
.ct-receipt-action-modal-popup {
    position: fixed;
    z-index: 2105;
    top: 0;
    left: 0;
}

.ct-receipt-action-popover {
    width: 110px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    position: relative;
}

.ct-receipt-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    text-align: left;
}

    .ct-receipt-action-item:hover {
        background: rgba(17, 24, 39, 0.04);
    }

    .ct-receipt-action-item:active {
        transform: translateY(1px);
    }

.ct-receipt-action-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ct-receipt-action-icon svg {
        width: 18px;
        height: 18px;
        display: block;
        color: #6b7280;
    }

.ct-receipt-action-label {
    font-size: 13px;
    color: var(--bs-text);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* SMS Popup (Receipt -> SMS) */
.ct-sms-popup {
    position: absolute;
    left: 50%;
    bottom: 62px; /* sits above footer buttons */
    transform: translateX(-50%);
    z-index: 2110;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 10px 12px 12px;
    min-width: 220px;
    text-align: center;
}

.ct-sms-popup-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-text);
    margin-bottom: 2px;
}

.ct-sms-popup-phone {
    font-size: 14px;
    font-weight: 800;
    color: var(--bs-text);
    margin-bottom: 10px;
}

.ct-sms-popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ct-sms-btn {
    height: 26px;
    padding: 0 10px;
    border-radius: 9999px;
    border: 0;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.4px;
    cursor: pointer;
}

    .ct-sms-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.ct-sms-btn-cancel {
    background: #f59e0b;
    color: #111827;
}

.ct-sms-btn-change {
    background: var(--bs-main);
    color: #ffffff;
}

.ct-sms-btn-confirm {
    background: #22c55e;
    color: #ffffff;
}

/* SMS Change Popup (Submit Your Phone Number) */
.ct-sms-change-popup {
    position: absolute;
    inset: 0;
    z-index: 2120;
}

.ct-sms-change-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.ct-sms-change-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 28px));
    background: #fff;
    border-radius: 10px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
    text-align: center;
}

.ct-sms-change-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--bs-text);
    margin-bottom: 18px;
}

.ct-sms-change-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 18px;
    outline: none;
}

    .ct-sms-change-input:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
    }

.ct-sms-change-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.ct-sms-change-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 4px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ct-sms-change-btn-send {
    background: var(--bs-main);
    color: #fff;
}

.ct-sms-change-btn-cancel {
    background: #9ca3af;
    color: #fff;
}

/* Email Popup (Receipt -> Email) */
.ct-email-popup {
    position: absolute;
    left: 50%;
    bottom: 62px;
    transform: translateX(-50%);
    z-index: 2110;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 10px 12px 12px;
    min-width: 260px;
    text-align: center;
}

.ct-email-popup-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-text);
    margin-bottom: 2px;
}

.ct-email-popup-email {
    font-size: 14px;
    font-weight: 800;
    color: var(--bs-text);
    margin-bottom: 10px;
    word-break: break-word;
}

.ct-email-popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ct-email-btn {
    height: 26px;
    padding: 0 10px;
    border-radius: 9999px;
    border: 0;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.4px;
    cursor: pointer;
}

    .ct-email-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.ct-email-btn-cancel {
    background: #f59e0b;
    color: #111827;
}

.ct-email-btn-change {
    background: var(--bs-main);
    color: #ffffff;
}

.ct-email-btn-confirm {
    background: #22c55e;
    color: #ffffff;
}

/* Email Change Popup (Submit Your Email) */
.ct-email-change-popup {
    position: absolute;
    inset: 0;
    z-index: 2120;
}

.ct-email-change-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.ct-email-change-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 28px));
    background: #fff;
    border-radius: 10px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
    text-align: center;
}

.ct-email-change-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--bs-text);
    margin-bottom: 18px;
}

.ct-email-change-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 18px;
    outline: none;
}

    .ct-email-change-input:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
    }

.ct-email-change-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.ct-email-change-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 4px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ct-email-change-btn-send {
    background: var(--bs-main);
    color: #fff;
}

.ct-email-change-btn-cancel {
    background: #9ca3af;
    color: #fff;
}

/* =====================================================
   GIFT CARD MANAGER — New UI
   ===================================================== */

/* ---- Toolbar ---- */
.gcm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
    flex-wrap: wrap;
    min-height: 48px;
}

.gcm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gcm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gcm-date-nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.gcm-filters-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* ---- Date Nav Bar ---- */
.gcm-date-nav-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    background: #fff;
    height: 36px;
    position: relative;
    overflow: visible;
}

.gcm-date-nav-btn {
    width: 32px;
    height: 36px;
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
    overflow: visible;
}

    .gcm-date-nav-btn:first-child {
        border-right: 1px solid var(--bs-border-color);
        border-radius: 4px 0 0 4px;
    }

    .gcm-date-nav-btn:last-child {
        border-left: 1px solid var(--bs-border-color);
        border-radius: 0 4px 4px 0;
    }

    .gcm-date-nav-btn:hover {
        background: var(--bs-body-bg);
        color: var(--bs-text);
    }

.gcm-today-btn {
    height: 36px;
    padding: 0 10px;
    border: none;
    border-right: 1px solid var(--bs-border-color);
    background: transparent;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: visible;
}

    .gcm-today-btn:hover {
        background: var(--bs-body-bg);
    }

.gcm-date-display {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8; /* sky-blue like in image */
    white-space: nowrap;
    user-select: none;
    height: 36px;
    display: flex;
    align-items: center;
}

.gcm-date-display-clickable {
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s;
}

    .gcm-date-display-clickable:hover {
        background: rgba(56, 189, 248, 0.08);
    }


/* ---- Period Select ---- */
.gcm-period-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.gcm-period-select {
    height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    background: #fff;
    color: var(--bs-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.15s;
    min-width: 80px;
}

    .gcm-period-select:hover,
    .gcm-period-select:focus {
        border-color: #9ca3af;
    }

.gcm-select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: #6b7280;
}

/* ---- Filter select buttons ---- */
.gcm-dropdown-wrapper {
    position: relative;
}

.gcm-filter-select-btn {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    background: #fff;
    color: var(--bs-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
    overflow: visible;
}

    .gcm-filter-select-btn:hover {
        background: var(--bs-body-bg);
        border-color: #9ca3af;
    }

    .gcm-filter-select-btn.is-active {
        border-color: #38bdf8;
        color: #0284c7;
    }

.gcm-filter-select-btn--payment {
    min-width: 120px;
}

/* ---- Dropdown menu ---- */
.gcm-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 6px;
    display: none;
    flex-direction: column;
    z-index: 1100;
}

    .gcm-dropdown-menu.is-open {
        display: flex;
    }

.gcm-dropdown-menu--right {
    left: auto;
    right: 0;
}

.gcm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-text);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

    .gcm-dropdown-item:hover {
        background: var(--bs-body-bg);
    }

    .gcm-dropdown-item input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        visibility: visible !important;
        display: inline-block !important;
        accent-color: #22c55e !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        position: static !important;
        opacity: 1 !important;
        appearance: auto !important;
        -webkit-appearance: checkbox !important;
    }

/* ---- Activate Gift Card button ---- */
.gcm-activate-btn {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 4px;
    background: #84cc16; /* lime green like image */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    overflow: visible;
}

    .gcm-activate-btn:hover {
        background: #65a30d;
    }

    .gcm-activate-btn:active {
        transform: scale(0.97);
    }

/* ---- Icon buttons (Search, More) ---- */
.gcm-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 44px;
    padding: 0 6px;
    border: none;
    background: transparent;
    color: var(--bs-text);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    overflow: visible;
}

    .gcm-icon-btn:hover {
        background: var(--bs-body-bg);
    }

.gcm-icon-label {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
}

/* ---- Search bar row ---- */
.gcm-search-bar-row {
    padding: 6px 12px;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
}

.gcm-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    padding: 0 10px;
    height: 36px;
    background: var(--bs-body-bg);
}

    .gcm-search-inner svg {
        color: #9ca3af;
        flex-shrink: 0;
    }

.gcm-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--bs-text);
    outline: none;
}

    .gcm-search-input::placeholder {
        color: #9ca3af;
    }

.gcm-search-close-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

    .gcm-search-close-btn:hover {
        color: var(--bs-text);
    }

/* ---- Table ---- */
.gcm-table-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.gcm-gift-setup-panel {
    display: none;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
    background: #f4f7f7;
    border-top: 1px solid #dfe7ea;
    color: var(--bs-text);
}

.gcm-gift-setup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    background: #dff6ff;
    border-bottom: 1px solid #d2ebf3;
}

.gcm-gift-setup-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gcm-gift-setup-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1ea8c6;
    text-transform: uppercase;
}

.gcm-gift-setup-reload,
.gcm-gift-setup-close {
    border: none;
    background: rgba(255,255,255,0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gcm-gift-setup-reload {
    background: rgba(255,255,255,0.7);
    color: #475569;
}

.gcm-gift-setup-reload svg {
    width: 16px;
    height: 16px;
    display: block;
}

.gcm-gift-setup-reload:hover,
.gcm-gift-setup-reload:focus-visible,
.gcm-gift-setup-close:hover,
.gcm-gift-setup-close:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.12);
    outline: none;
}

.gcm-gift-setup-body {
    display: flex;
    height: calc(100% - 64px);
    min-height: 0;
    background: #f4f7f7;
}

.gcm-gift-setup-sidebar {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    box-sizing: border-box;
    background: #f6f7f8;
    border-right: 1px solid #dfe7ea;
    padding: 16px 14px 24px;
}

.gcm-gift-setup-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bs-text);
    margin-bottom: 10px;
}

.gcm-gift-add-btn {
    border: none;
    background: transparent;
    color: #1ea8c6;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.gcm-gift-setup-section-label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 18px 0 10px;
}

.gcm-gift-setup-section-label--muted {
    margin-top: 22px;
}

.gcm-gift-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-text);
    text-transform: uppercase;
    margin-bottom: 4px;
    cursor: pointer;
}

.gcm-gift-category-item.is-selected {
    background: #eaf9ff;
    color: #0ea5e9;
    font-weight: 800;
}

.gcm-gift-category-item strong {
    font-size: 12px;
    color: inherit;
    font-weight: inherit;
}

.gcm-gift-setup-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 22px 24px 30px;
}

.gcm-gift-setup-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.gcm-gift-setup-main-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--bs-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gcm-gift-setup-main-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.gcm-gift-edit-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcm-gift-edit-btn:hover,
.gcm-gift-edit-btn:focus-visible {
    border-color: #cfe9f5;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.08);
    outline: none;
}

.gcm-gift-setup-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.gcm-gift-setup-content.is-active-collapsed {
    grid-template-columns: 180px minmax(0, 1fr);
}

.gcm-gift-setup-content.is-inactive-collapsed {
    grid-template-columns: minmax(0, 1fr) 180px;
}

.gcm-gift-view-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: width 0.18s ease, min-width 0.18s ease, opacity 0.18s ease;
}

.gcm-gift-view-panel.is-collapsed {
    min-height: 42px;
    height: 42px;
}

.gcm-gift-view-panel.is-collapsed .gcm-gift-view-grid {
    display: none;
}

.gcm-gift-view-panel:not(.is-collapsed) .gcm-gift-view-grid {
    display: block;
}

.gcm-gift-view-panel.is-collapsed .gcm-gift-view-header {
    padding: 8px 10px 8px 12px;
    min-height: 42px;
    cursor: pointer;
}

.gcm-gift-view-panel.is-collapsed .gcm-gift-view-header span {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcm-gift-view-panel.is-collapsed .gcm-gift-view-collapse-btn {
    /* width: 18px; */
    height: 18px;
    flex-shrink: 0;
}

.gcm-gift-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    background: var(--bs-body-bg);
}

.gcm-gift-view-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gcm-gift-view-collapse-btn:hover,
.gcm-gift-view-collapse-btn:focus-visible {
    background: #e2e8f0;
    color: var(--bs-text);
    outline: none;
}

.gcm-gift-view-collapse-icon {
    font-size: 12px;
    line-height: 1;
}

.gcm-gift-view-grid {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 28px 16px;
    overscroll-behavior: contain;
}

.gcm-gift-card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.gcm-gift-card-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcm-gift-card-group-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bs-text);
    margin-top: 2px;
}

.gcm-gift-card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.gcm-gift-card-item {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 0 0 180px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gcm-gift-empty-state {
    width: 100%;
    padding: 24px 16px;
    border: 1px dashed #d9e2ea;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    background: var(--bs-body-bg);
}

.gcm-gift-card-item:hover,
.gcm-gift-card-item:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    outline: none;
}

.gcm-gift-add-btn--main {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 8px;
    line-height: 1.4;
}

.gcm-gift-item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.16);
    z-index: 9999;
}

.gcm-gift-item-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: calc(100vw - 28px);
}

.gcm-gift-category-modal-dialog {
    width: 420px;
}

.gcm-gift-item-modal-content {
    background: #ffffff;
    border: 1px solid #dfe7ea;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    padding: 0 0 18px;
}

.gcm-gift-item-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--bs-text);
    text-transform: uppercase;
    padding: 10px 44px 12px;
    border-bottom: 1px solid #edf1f3;
    text-align: center;
}

.gcm-gift-item-modal-header span {
    display: block;
    line-height: 1.2;
}

.gcm-gift-item-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gcm-gift-item-modal-close:hover,
.gcm-gift-item-modal-close:focus-visible {
    border-color: #dfe7ea;
    background: var(--bs-body-bg);
    outline: none;
}

.gcm-gift-item-design-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 8px;
    color: var(--bs-text);
}

.gcm-gift-item-label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    margin-right: 4px;
    text-transform: capitalize;
}

.gcm-gift-item-design-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bs-text);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fff;
    min-width: 118px;
}

.gcm-gift-item-design-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #475569;
}

.gcm-gift-item-design-toggle.is-selected {
    border-color: #dce2e7;
    background: var(--bs-body-bg);
}

.gcm-gift-item-grid-wrap {
    padding: 0 18px;
}

.gcm-gift-category-template-panel {
    padding: 6px 18px 0;
}

.gcm-gift-category-default-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 8px;
}

.gcm-gift-category-default-item {
    position: relative;
    display: block;
    width: 100%;
    height: 76px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151 40%, #cbd5e1 100%);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gcm-gift-category-default-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcm-gift-category-default-item.is-fallback {
    background: linear-gradient(135deg, #d4d4d8, #6b7280 45%, var(--bs-body-bg));
}

.gcm-gift-category-default-item.is-selected {
    border-color: #00b7d6;
    box-shadow: 0 0 0 2px rgba(0, 183, 214, 0.12);
}

.gcm-gift-category-photo-upload {
    padding: 8px 18px 0;
}

.gcm-gift-item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 0 10px;
    min-height: 170px;
}

.gcm-gift-photo-upload {
    padding: 8px 0 8px;
}

.gcm-gift-photo-upload-btn {
    display: inline-block;
    margin-bottom: 8px;
    padding: 7px 12px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: var(--bs-body-bg);
    color: var(--bs-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gcm-gift-photo-preview {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gcm-gift-photo-preview img {
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

.gcm-gift-item-template {
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gcm-gift-item-template.is-selected {
    border-color: #00b7d6;
    box-shadow: 0 0 0 2px rgba(0, 183, 214, 0.12);
}

.gcm-gift-item-template-thumb {
    width: 100%;
    height: 76px;
    background-size: cover;
    background-position: center;
}

.gcm-gift-item-form {
    padding: 8px 18px 0;
}

.gcm-gift-item-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
}

.gcm-gift-item-input {
    width: 100%;
    height: 34px;
    border: 1px solid #dfe7ea;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--bs-text);
    background: #fff;
}

.gcm-gift-item-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px 8px;
    color: #1f2937;
}

.gcm-gift-item-status-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 22px;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gcm-gift-item-status-toggle.is-active {
    background: #0ea5e9;
}

.gcm-gift-item-status-dot {
    position: absolute;
    left: 4px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    transition: left 0.2s ease;
}

.gcm-gift-item-status-toggle.is-active .gcm-gift-item-status-dot {
    left: 26px;
}

.gcm-gift-item-status-label {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.gcm-gift-item-actions {
    display: flex;
    gap: 10px;
    padding: 16px 18px 0;
}

.gcm-gift-item-btn {
    flex: 1;
    height: 38px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
}

.gcm-gift-item-btn--cancel {
    background: #ff9800;
    color: #fff;
}

.gcm-gift-item-btn--save {
    background: #00bed6;
    color: #fff;
}

@media (max-width: 900px) {
    .gcm-gift-item-modal-dialog {
        width: 90vw;
    }

    .gcm-gift-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gcm-gift-card-item.is-dark { background: #111827; }
.gcm-gift-card-item.is-light { background: var(--bs-body-bg); }
.gcm-gift-card-item.is-rose { background: #fff1f2; }
.gcm-gift-card-item.is-purple { background: #f5f3ff; }
.gcm-gift-card-item.is-green { background: #fef3c7; }

.gcm-gift-card-image {
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gcm-gift-card-photo {
    width: 100%;
    height: 110px;
    display: block;
    object-fit: cover;
    background: var(--bs-body-bg);
}

.gcm-gift-card-content {
    padding: 12px 12px 10px;
}

.gcm-gift-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-text);
    text-transform: capitalize;
    margin-bottom: 4px;
}

.gcm-gift-card-store {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gcm-gift-card-item.is-dark .gcm-gift-card-name,
.gcm-gift-card-item.is-dark .gcm-gift-card-store { color: #f8fafc; }

.image-birthday {
    background: linear-gradient(135deg, #0f172a, #111827 40%, #60a5fa 100%);
}

.image-christmas {
    background: linear-gradient(135deg, var(--bs-body-bg), #dde7f1 35%, #f1cde8 100%);
}

.image-newyear {
    background: linear-gradient(135deg, #e5e7eb, var(--bs-body-bg) 35%, #fef3c7 100%);
}

.image-mother {
    background: linear-gradient(135deg, #ec4899, #f9a8d4 35%, #f5d0fe 100%);
}

.image-birthday2 {
    background: linear-gradient(135deg, #f472b6, #a78bfa 35%, #ddd6fe 100%);
}

.image-gift {
    background: linear-gradient(135deg, #fbbf24, #f59e0b 35%, #fef3c7 100%);
}

.gcm-gift-mobile-back-btn {
    display: none !important;
}

@media (max-width: 900px) {
    .gcm-gift-setup-body {
        flex-direction: column;
    }

    .gcm-gift-setup-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #dfe7ea;
    }

    .gcm-gift-setup-content {
        grid-template-columns: 1fr;
    }

    .gcm-gift-card-item {
        width: calc(50% - 10px);
        min-width: 0;
        max-width: none;
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .gcm-gift-mobile-back-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #dfe7ea;
        background: #fff;
        color: #475569;
        border-radius: 999px;
        padding: 8px 10px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .gcm-gift-setup-panel {
        height: auto;
        min-height: calc(100vh - 90px);
    }

    .gcm-gift-setup-header {
        padding: 12px 14px 10px;
        align-items: flex-start;
        gap: 10px;
    }

    .gcm-gift-setup-title {
        font-size: 26px;
        line-height: 1.1;
        letter-spacing: 0.02em;
    }

    .gcm-gift-setup-header-actions {
        gap: 8px;
    }

    .gcm-gift-setup-reload,
    .gcm-gift-setup-close {
        width: 30px;
        height: 30px;
    }

    .gcm-gift-setup-body {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .gcm-gift-setup-sidebar {
        padding: 12px 12px 16px;
    }

    .gcm-gift-setup-subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .gcm-gift-category-item {
        padding: 10px 8px;
        font-size: 11px;
    }

    .gcm-gift-setup-main {
        padding: 12px 12px 18px;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .gcm-gift-setup-main-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
    }

    .gcm-gift-setup-main-title {
        font-size: 14px;
        line-height: 1.3;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gcm-gift-setup-main-actions {
        justify-content: flex-end;
    }

    .gcm-gift-setup-content,
    .gcm-gift-setup-content.is-active-collapsed,
    .gcm-gift-setup-content.is-inactive-collapsed {
        display: flex;
        flex-direction: column;
        gap: 12px;
        grid-template-columns: none;
    }

    .gcm-gift-view-panel {
        min-height: 0;
        height: auto;
        max-height: none;
        border-radius: 12px;
        flex: 1 1 auto;
    }

    .gcm-gift-view-header {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .gcm-gift-view-grid {
        padding: 12px;
        max-height: calc(100vh - 240px);
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gcm-gift-card-row {
        justify-content: flex-start;
        gap: 10px;
    }

    .gcm-gift-card-item {
        width: calc(50% - 5px);
        min-height: 150px;
        flex: 1 1 calc(50% - 5px);
    }

    .gcm-gift-card-image,
    .gcm-gift-card-photo {
        height: 96px;
    }

    .gcm-gift-card-content {
        padding: 10px 10px 8px;
    }

    .gcm-gift-card-name {
        font-size: 13px;
    }

    .gcm-gift-card-store {
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .gcm-gift-setup-panel {
        min-height: 100vh;
    }

    .gcm-gift-setup-header {
        padding: 10px 12px 8px;
    }

    .gcm-gift-setup-title {
        font-size: 16px;
    }

    .gcm-gift-card-item {
        width: 100%;
        flex-basis: 100%;
    }

    .gcm-gift-card-row {
        gap: 12px;
    }

    .gcm-gift-setup-main-actions {
        gap: 6px;
    }
}

.gcm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--bs-text);
    min-width: 1200px;
}

    .gcm-table thead tr {
        border-bottom: 2px solid var(--bs-border-color);
    }

    .gcm-table th {
        padding: 8px 10px;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        color: #6b7280;
        white-space: nowrap;
        background: #fff;
        border-bottom: 2px solid var(--bs-border-color);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .gcm-table td {
        padding: 8px 10px;
        border-bottom: 1px solid var(--bs-border-color);
        vertical-align: top;
        font-size: 12px;
    }

    .gcm-table tbody tr:hover td {
        background: var(--bs-body-bg);
    }

.gcm-empty-row {
    text-align: center;
    padding: 60px 20px !important;
    color: #9ca3af;
    font-size: 14px;
}

/* Status badges */
.gcm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

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

.gcm-badge--used {
    background: #dbeafe;
    color: #1d4ed8;
}

.gcm-badge--expired {
    background: #fef3c7;
    color: #d97706;
}

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

/* ---- Table Row Accordion & Action Menu ---- */
.gcm-row-parent {
    cursor: pointer;
    transition: background 0.15s;
}

.gcm-row-parent.is-expanded {
    background-color: #f0fdfa !important;
}

.gcm-row-child {
    background-color: #fafafa;
    border-bottom: 1px dashed var(--bs-border-color);
}

.gcm-row-child td {
    padding: 6px 10px !important;
    font-size: 11px;
    color: #4b5563;
}

.gcm-status-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.gcm-status-text {
    font-weight: 600;
    font-size: 12px;
}

.gcm-status-text--current {
    color: #06b6d4; /* cyan */
}

.gcm-status-text--used {
    color: #3b82f6;
}

.gcm-status-text--expired {
    color: #f59e0b;
}

.gcm-status-text--voided {
    color: #ef4444;
}

.gcm-row-actions-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gcm-row-more-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
}

.gcm-row-more-btn:hover {
    background: var(--bs-body-bg);
    border-color: #9ca3af;
    color: var(--bs-text);
}

.gcm-row-toggle-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #06b6d4;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s, background 0.15s;
}

.gcm-row-toggle-btn:hover {
    background: #0891b2;
}

.gcm-row-toggle-btn.is-rotated {
    transform: rotate(180deg);
}

.gcm-action-popover {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 4px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.gcm-action-popover.is-open {
    display: flex;
}

.gcm-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.gcm-action-item--deduct {
    color: #ef4444;
}

.gcm-action-item--deduct:hover {
    background: #fee2e2;
}

.gcm-action-item--reset {
    color: #2563eb;
    border-top: 1px solid var(--bs-border-color);
}

.gcm-action-item--reset:hover {
    background: #eff6ff;
}

.gcm-reset-settings-card {
    width: min(520px, calc(100vw - 32px));
}

.gcm-reset-settings-body {
    padding-top: 20px;
}

.gcm-reset-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
}

.gcm-reset-settings-copy {
    flex: 1;
}

.gcm-reset-settings-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bs-text);
    margin-bottom: 4px;
}

.gcm-reset-settings-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.gcm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.gcm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gcm-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gcm-toggle-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.gcm-toggle-switch input:checked + .gcm-toggle-slider {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.gcm-toggle-switch input:checked + .gcm-toggle-slider::before {
    transform: translateX(22px);
}

.gcm-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.38);
    z-index: 2000;
    padding: 24px;
    box-sizing: border-box;
}

.gcm-modal-card-container {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
    box-sizing: border-box;
    transition: width 0.25s ease;
}

.gcm-modal-card-container.has-calendar {
    width: 740px;
}

.gcm-modal-form-panel {
    flex: 1 1 420px;
    min-width: 0;
    padding: 28px 26px 22px;
    background: #ffffff;
    box-sizing: border-box;
}

.gcm-modal-title {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--bs-text);
    text-transform: uppercase;
}

.gcm-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dfe7ea;
    padding: 0 0 10px;
    margin-bottom: 18px;
}

.gcm-input-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gcm-underline-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-text);
    padding: 4px 0;
    outline: none;
}

.gcm-underline-input::placeholder {
    color: #94a3b8;
}

.gcm-refresh-code-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: var(--bs-body-bg);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gcm-refresh-code-btn:hover {
    background: var(--bs-body-bg);
    border-color: #cbd5e1;
}

.gcm-refresh-code-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.gcm-field-group {
    margin-top: 18px;
}

.gcm-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gcm-custom-select-wrap {
    position: relative;
}

.gcm-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    background: #fff;
    border: 1px solid #dfe7ea;
    border-radius: 10px;
    padding: 0 12px;
    color: var(--bs-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gcm-custom-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    z-index: 5;
}

.gcm-custom-option {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.gcm-custom-option:hover {
    background: var(--bs-body-bg);
}

.gcm-date-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 0 0 2px;
}

.gcm-date-info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.gcm-date-info-val {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.gcm-exp-picker-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #dfe7ea;
    background: #fff;
    color: var(--bs-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    gap: 8px;
}

.gcm-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.gcm-btn-cancel,
.gcm-btn-submit {
    min-width: 120px;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.gcm-btn-cancel {
    background: #fbbf24;
    color: #fff;
}

.gcm-btn-submit {
    background: #00b7d6;
    color: #fff;
}

.gcm-modal-calendar-panel {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
    background: var(--bs-body-bg);
    border-left: 1px solid #edf2f7;
    padding: 20px 18px 18px;
    display: none;
    box-sizing: border-box;
    flex-direction: column;
}

.gcm-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    width: 100%;
}

.gcm-cal-back-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gcm-cal-back-btn:hover {
    background: var(--bs-body-bg);
    color: var(--bs-text);
    border-color: #cbd5e1;
}

.gcm-cal-header-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1e293b;
    text-transform: uppercase;
}

.gcm-cal-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
}

.gcm-cal-nav-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dfe7ea;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.gcm-cal-nav-btn:hover {
    background: var(--bs-body-bg);
    border-color: #cbd5e1;
    color: var(--bs-text);
}

.gcm-cal-current-month {
    font-size: 14px;
    font-weight: 800;
    color: var(--bs-text);
    text-align: center;
    flex: 1;
}

.gcm-cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    width: 100%;
}

.gcm-cal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.gcm-cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.gcm-cal-day:hover:not(.is-disabled):not(.is-empty) {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
}

.gcm-cal-day.is-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    visibility: hidden;
}

.gcm-cal-day.is-disabled {
    background: var(--bs-body-bg);
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.gcm-cal-day.is-today {
    border-color: #00b7d6;
    color: #00b7d6;
}

.gcm-cal-day.is-selected {
    background: #00b7d6;
    border-color: #00b7d6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 183, 214, 0.35);
}

@media (max-width: 768px) {
    .gcm-modal-card-container {
        width: 100%;
        max-width: 420px;
    }

    .gcm-modal-card-container.has-calendar {
        width: 100%;
        max-width: 420px;
    }

    .gcm-modal-form-panel {
        width: 100%;
        flex: 1 1 100%;
    }

    .gcm-modal-calendar-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        background: #ffffff;
        border-left: none;
        border-radius: 18px;
        padding: 24px 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
}

.gcm-action-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.38);
    z-index: 2000;
    padding: 24px;
}

.gcm-action-modal-card {
    width: min(560px, 100%);
    max-width: 100%;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gcm-action-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #eef2f7;
}

.gcm-action-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: var(--bs-text);
    text-transform: uppercase;
}

.gcm-action-modal-desc {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.gcm-action-modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gcm-action-modal-close:hover {
    background: var(--bs-body-bg);
    color: var(--bs-text);
}

.gcm-action-modal-body {
    padding: 20px 22px 8px;
}

.gcm-action-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.gcm-action-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-text);
}

.gcm-req-star {
    color: #dc2626;
}

.gcm-action-input,
.gcm-action-textarea {
    width: 100%;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    background: #fff;
    color: var(--bs-text);
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.gcm-action-input:focus,
.gcm-action-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.gcm-action-input--readonly {
    background: var(--bs-body-bg);
    color: var(--bs-text);
}

.gcm-action-textarea {
    min-height: 86px;
    resize: vertical;
}

.gcm-action-hint {
    font-size: 11px;
    color: #6b7280;
}

.gcm-action-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 22px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

.gcm-action-btn-cancel,
.gcm-action-btn-confirm {
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.gcm-action-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.gcm-action-btn-cancel:hover {
    background: #e5e7eb;
}

.gcm-action-btn-confirm {
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #fff;
    border: none;
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.2);
}

.gcm-action-btn-confirm:hover {
    background: linear-gradient(135deg, #059669, #16a34a);
}

.more-dropdown {
    position: fixed;
    display: none;
    min-width: 230px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 8px;
    z-index: 99999;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.more-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 26px);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
    z-index: -1;
}

.more-dropdown.active {
    display: block;
}

.more-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    color: var(--bs-text);
}

.more-drop-item:hover {
    background: var(--bs-body-bg);
    transform: translateX(1px);
}

.more-drop-item img,
.more-drop-item svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    color: #5e6a7d;
}

.more-drop-item i {
    width: 22px;
    text-align: center;
    color: #5e6a7d;
    font-size: 15px;
    flex-shrink: 0;
}

.more-drop-item p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #334155;
    line-height: 1.2;
    text-transform: uppercase;
}

.export-excell-gift-card {
    color: var(--bs-text);
}

.btn-config {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.gc-auto-reset-settings-trigger {
    color: var(--bs-text);
}

/* ---- Table Sticky / Fixed Footer ---- */
.gcm-footer-fixed-bar {
    width: 100%;
    overflow-x: hidden;
    background: #ffffff;
    border-top: 2px solid var(--bs-border-color);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.gcm-table--footer {
    table-layout: fixed;
    min-width: 1200px;
    width: 100%;
}

.gcm-table tfoot tr,
.gcm-footer-fixed-bar tfoot tr {
    background: #ffffff;
}

.gcm-table tfoot td,
.gcm-footer-fixed-bar tfoot td {
    background: #ffffff;
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-text);
    border: none;
    vertical-align: middle;
}

.gcm-tfoot-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-text);
    text-transform: capitalize;
}

.gcm-tfoot-total {
    font-size: 13px;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
}

.gcm-tfoot-total--balance {
    color: #e74c3c;
}

/* ---- Page Header (Back + Title) ---- */
.gcm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--bs-border-color);
    background: #fff;
    flex-shrink: 0;
}

.gcm-page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gcm-back-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 0;
    margin-right: 2px;
}

    .gcm-back-btn:hover {
        background: var(--bs-body-bg);
        color: var(--bs-text);
        border-color: #9ca3af;
    }

.gcm-page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-text);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.gcm-page-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .gcm-toolbar-left,
    .gcm-toolbar-right {
        width: 100% !important;
        display: flex !important;
    }
    
    .gcm-date-nav-group {
        flex: 1 !important;
    }
    
    .gcm-date-nav-bar {
        flex: 1 !important;
        display: flex !important;
    }
    
    .gcm-date-display {
        flex: 1 !important;
    }
    
    .gcm-filters-group {
        flex: 1 !important;
        display: flex !important;
    }
    
    .gcm-filters-group .gcm-dropdown-wrapper {
        flex: 1 !important;
    }
    
    .gcm-filters-group .gcm-filter-select-btn {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 576px) {
    .gcm-toolbar {
        padding: 4px 6px !important;
        gap: 6px !important;
    }
    
    .gcm-toolbar-left,
    .gcm-toolbar-right {
        gap: 4px !important;
    }
    
    .gcm-date-display {
        font-size: 11px !important;
        padding: 0 4px !important;
    }
    
    .gcm-today-btn {
        padding: 0 6px !important;
        font-size: 10px !important;
        height: 30px !important;
    }
    
    .gcm-date-nav-btn {
        width: 28px !important;
        height: 30px !important;
    }
    
    .gcm-back-btn {
        width: 30px !important;
        height: 30px !important;
        margin-right: 0 !important;
    }
    
    .gcm-date-nav-bar {
        height: 30px !important;
    }
    
    .gcm-period-select {
        height: 30px !important;
        font-size: 11px !important;
        padding: 0 20px 0 6px !important;
        min-width: 60px !important;
    }
    
    .gcm-filter-select-btn {
        height: 30px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
    }
    
    .gcm-activate-btn {
        height: 30px !important;
        font-size: 11px !important;
        padding: 0 8px !important;
    }
    
    .gcm-icon-btn {
        height: 36px !important;
        padding: 0 4px !important;
    }
    
    .gcm-icon-label {
        font-size: 8px !important;
    }
}


/* =========================================================
   GIFT CARD RECORD MODAL & CARD# LINK STYLES
   ========================================================= */
.gcm-card-no-link {
    color: #0284c7 !important;
    cursor: pointer !important;
    font-weight: 600;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.gcm-card-no-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.gcm-record-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gcm-record-card-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 340px;
    max-width: 95vw;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: gcmFadeInScale 0.2s ease;
    font-family: inherit;
}

@keyframes gcmFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gcm-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
}

.gcm-record-title {
    font-size: 14px;
    font-weight: 700;
    color: #2b3648;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.gcm-record-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcm-record-icon-btn,
.gcm-record-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.gcm-record-icon-btn:hover,
.gcm-record-close-btn:hover {
    background: var(--bs-body-bg);
    color: var(--bs-text);
}

.gcm-record-close-btn {
    font-size: 16px;
    line-height: 1;
}

.gcm-record-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 14px;
}

.gcm-record-dashed-box {
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.gcm-record-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gcm-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.gcm-record-used-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gcm-record-used-header {
    font-size: 13px;
}

.gcm-record-used-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.gcm-record-used-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    gap: 8px;
}

.gcm-record-used-desc {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bs-text);
    font-family: monospace, sans-serif;
    font-size: 11.5px;
}

.gcm-record-used-amt {
    font-weight: 600;
    color: var(--bs-text);
    white-space: nowrap;
    font-family: monospace, sans-serif;
    font-size: 12px;
    text-align: right;
    min-width: 50px;
}

.gcm-record-inner-line {
    height: 1px;
    background-color: #2b3648;
    margin: 2px 0 6px;
}

.gcm-record-dashed-line {
    border-top: 1px dashed var(--bs-border-color);
    margin: 4px 0;
}

.gcm-record-label-bold {
    font-weight: 800;
    color: var(--bs-text);
    font-size: 14px;
}

.gcm-record-value-bold {
    font-weight: 800;
    color: var(--bs-text);
    font-size: 14px;
}

.gcm-record-label {
    color: #4b5563;
    font-weight: 500;
}

.gcm-record-value {
    color: var(--bs-text);
    font-weight: 500;
    text-align: right;
}

.gcm-record-row--balance {
    margin-top: 2px;
}
