/* Container Spacing */
/*.hms-customers-wrapper {*/
/*    padding: 10px;*/
/*}*/

/* Header Styling */
.hms-customers-wrapper .hms-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hms-customers-wrapper .header-left h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.hms-customers-wrapper .header-left p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

/* Professional Search Box */
.hms-search-box {
    position: relative;
    width: 350px;
}

.hms-search-box .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.hms-search-box input {
    width: 100%;
    padding: 10px 10px 10px 40px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    font-size: 14px;
    transition: all 0.2s;
}

.hms-search-box input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    outline: none;
}

/* Table Styling */
.hms-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hms-table {
    width: 100%;
    border-collapse: collapse;
}

.hms-table th {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.hms-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #334155;
}

/* Guest Name with Initials Avatar */
.guest-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-avatar {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.guest-name-meta {
    display: flex;
    flex-direction: column;
}

.guest-name-meta strong {
    color: #0f172a;
    font-size: 15px;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-vip { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-loyal { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-new { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Action Buttons */
.hms-btn-icon {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 6px;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
}

.hms-btn-icon:hover {
    background: #f1f5f9;
    color: #3498db;
    border-color: #cbd5e1;
}

/* Slide-over Panel */
/* Center Modal Container */
.hms-detail-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -45%) !important; /* Start slightly lower for effect */
    width: 600px !important; /* Wider for profile details */
    max-width: 95vw !important;
    max-height: 85vh !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    z-index: 999999 !important;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.hms-detail-panel.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) !important; /* Move to center */
}

/* Background Overlay */
#hms-panel-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999998 !important;
    display: none;
}

.flatpickr-calendar {
    z-index: 9999999999 !important;
}


.hms-custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.hms-custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.hms-custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}
.hms-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

#hms-quickbook-modal {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Above standard WP menus */
}

#hms-quickbook-modal.active {
    display: flex;
}


















/* ==========================================================================
   HEADER & FILTER TOOLBAR (SAAS DESIGN)
   ========================================================================== */

/* ==========================================================================
   CUSTOMER HEADER & FILTER TOOLBAR (MATCHING BOOKING TAB)
   ========================================================================== */

/* Header Area */
.hms-section-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
}

.hms-header-actions {
    display: flex; 
    gap: 10px;
}

/* Push dropdowns to the right inside the toolbar */
.hms-toolbar-right-group {
    display: flex;
    gap: 15px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* Adjust the Date Picker to match the search bar wrapper */
.hms-date-picker-input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: 100% !important;
    width: 150px;
    font-size: 14px;
    color: #1e293b;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}


/* Remove default browser outlines from the search input */
.hms-search-bar-wrapper input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
}

.hms-search-bar-wrapper input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}






















/* ==========================================================================
   CUSTOMER STATS GRID (PREMIUM 4-CARD LAYOUT)
   ========================================================================== */
.hms-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.hms-stat-card {
    background: var(--hms-white);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hms-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.1);
}

/* Subtle left border accent */
.hms-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.hms-stat-card.accent-primary::before { background: var(--hms-primary); }
.hms-stat-card.accent-green::before { background: #10b981; }
.hms-stat-card.accent-orange::before { background: #f59e0b; }
.hms-stat-card.accent-purple::before { background: #8b5cf6; }

.hms-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hms-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hms-stat-icon svg {
    width: 18px;
    height: 18px;
}

/* Icon Colors */
.accent-primary .hms-stat-icon { background: var(--hms-primary-glow); color: var(--hms-primary); }
.accent-green .hms-stat-icon { background: #ecfdf5; color: #10b981; }
.accent-orange .hms-stat-icon { background: #fff7ed; color: #f59e0b; }
.accent-purple .hms-stat-icon { background: #f3e8ff; color: #8b5cf6; }

.hms-stat-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.hms-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--hms-black);
    line-height: 1;
    margin-left: 2px;
}

/* ==========================================================================
   1. FIX: FORCE TABLE ICONS TO SHOW (OVERRIDE THEME)
   ========================================================================== */
/* ==========================================================================
   1. FIX: FORCE TABLE ICONS TO SHOW (OVERRIDE THEME)
   ========================================================================== */
.hms-btn-icon-table {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important; /* Space between icon and text */
    padding: 6px 12px !important; /* Wider padding for text */
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.hms-btn-icon-table:hover {
    background: var(--hms-primary) !important;
    border-color: var(--hms-primary) !important;
    color: #ffffff !important;
}

.hms-btn-icon-table svg {
    width: 14px !important; /* Slightly smaller icon to balance with text */
    height: 14px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
}


/* ==========================================================================
   2. FIX: ALIGN STAT CARDS PROPERLY (STRIPE-STYLE)
   ========================================================================== */
.hms-stat-card {
    text-align: left !important; /* Stops the theme from centering the number */
    align-items: flex-start !important;
    padding: 22px 24px !important;
}

.hms-stat-header {
    margin-bottom: 8px !important;
}

.hms-stat-value {
    font-size: 32px !important; /* Makes the number a bit larger and bolder */
    margin-top: 5px !important;
    margin-left: 0 !important;
    color: var(--hms-black) !important;
}





/* ==========================================================================
   CUSTOMER PREMIUM PAGINATION
   ========================================================================== */

.hms-customer-pagination {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hms-customer-page-number-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.hms-customer-page-number {
    min-width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.hms-customer-page-number:hover,
.hms-customer-page-number.active {
    background: var(--hms-primary);
    color: #ffffff;
    border-color: var(--hms-primary);
    box-shadow: 0 8px 18px rgba(20, 120, 73, 0.18);
}

.hms-customer-page-dots {
    padding: 0 6px;
    color: #94a3b8;
    font-weight: 800;
}

.hms-customer-pagination .hms-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 640px) {
    .hms-customer-pagination {
        gap: 6px;
        padding: 14px 10px;
    }

    .hms-customer-pagination .hms-page-btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    .hms-customer-page-number {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}