#footer {
    display: none;
}

:root {
    --theme-color: var(--natural-diamond-color, #333);
    --modern-bg: #fff;
    --modern-text: #334155;
    --modern-muted: #94a3b8;
    --modern-border: #f1f5f9;
    --modern-radius: 12px;
    --modern-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.diamond-modern-table-wrapper {
    background: var(--modern-bg);
    border-radius: var(--modern-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--modern-border);
    overflow: hidden;
    margin-bottom: 30px;
    overflow-x: auto;
}

.modern-diamond-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Figtree', sans-serif;
}

.modern-diamond-table thead th {
    background-color: #fff !important;
    color: var(--modern-muted) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 12px;
    text-align: left;
    border-bottom: 2px solid var(--modern-border);
    border-top: none;
    white-space: nowrap;
}

.modern-row {
    transition: all 0.2s ease;
    background-color: #fff;
}

.modern-row td {
    padding: 16px 12px;
    vertical-align: middle;
    color: var(--modern-text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--modern-border);
    white-space: nowrap;
}

.modern-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
    background-color: #ffffff;
}

.col-lot {
    font-weight: 600;
    color: var(--theme-color);
}

.col-price {
    font-weight: 700;
    font-size: 1rem;
    color: #059669;
}

.icon-cell i {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-right: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-cell i:hover {
    color: var(--theme-color);
}

.modern-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
    text-align: center;
}

.status-available {
    background-color: #ecfdf5;
    color: #059669;
}

.status-hold {
    background-color: #fff7ed;
    color: #ea580c;
}

/* Modern Tabs */
.modern-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--modern-muted);
    font-weight: 600;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-tabs .nav-link.active,
.modern-tabs .nav-link:hover {
    color: var(--theme-color);
    border-bottom: 2px solid var(--theme-color);
    background: transparent !important;
}

.badge-count {
    background: var(--modern-border);
    color: var(--modern-muted);
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Controls Bar */
.modern-controls-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    gap: 10px;
}

.btn-customize {
    background: white;
    border: 1px solid #dfe6e9;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--modern-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-customize:hover,
.btn-customize[aria-expanded="true"] {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* --- REDESIGNED ACTION PANEL CSS --- */

/* The Toolbar Container */
.modern-actions-wrapper {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 25px;
}

/* The Buttons (Pills) */
.modern-actions-wrapper .dp_button {
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    border: none;
    background: #f8fafc;
    /* Very light gray bg by default */
    color: #64748b;
    /* Muted text */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Icon styling inside buttons */
.modern-actions-wrapper .dp_button i {
    font-size: 1.1em;
    transition: transform 0.2s;
}

/* Hover States */
.modern-actions-wrapper .dp_button:hover {
    background: #fff;
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.modern-actions-wrapper .dp_button:hover i {
    transform: scale(1.1);
}

/* Specific Button Colors (Optional: gives each button personality) */
.modern-actions-wrapper .dp_button:nth-child(1):hover {
    color: #e11d48;
}

/* Wishlist Red */
.modern-actions-wrapper .dp_button:nth-child(2):hover {
    color: #0891b2;
}

/* Compare Cyan */
.modern-actions-wrapper .dp_button:nth-child(5):hover {
    color: #16a34a;
}

/* Order Green */

/* Responsive layout */
@media (max-width: 768px) {
    .modern-actions-wrapper {
        padding: 10px;
        gap: 8px;
    }

    .modern-actions-wrapper .dp_button {
        padding: 8px 12px;
        font-size: 0.75rem;
        flex-grow: 1;
        /* Make buttons expand on mobile */
        justify-content: center;
    }
}

/* Hidden Column Utility */
.d-none-col {
    display: none !important;
}

/* Empty State Styles */
.dp-empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
}

.dp-empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: block;
}

.dp-empty-state h4 {
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.dp-empty-state p {
    color: #64748b;
    font-size: 0.9rem;
}

#diamond_actions {
    position: fixed !important;
    bottom: 20px !important;
    /* Floats 20px from bottom */
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Centers the element */
    width: auto !important;
    min-width: 85%;
    /* Minimum width */
    max-width: 95%;
    /* Prevent touching edges */
    z-index: 1050 !important;

    /* Visual Styling */
    background-color: #ffffff !important;
    /* Or use rgba(255,255,255,0.95) for glass effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e2e8f0;

    /* Keep Modern Radius */
    border-radius: 50px !important;
    margin: 0 !important;
    padding: 12px 25px !important;

    /* Layout */
    display: flex !important;
    justify-content: center !important;
    gap: 10px;
    flex-wrap: wrap;
}

/* Add padding to body */
/* body {
    padding-bottom: 100px !important;
} */

@media (max-width: 768px) {
    #diamond_actions {
        width: 100% !important;
        max-width: 100% !important;
        bottom: 0 !important;
        border-radius: 15px 15px 0 0 !important;
        /* Rounded top only */
        padding: 15px 10px !important;
    }
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    min-width: 220px !important;
}

/* The Header inside dropdown */
.dropdown-header {
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left: 10px;
}

/* Custom Checkbox Row Wrapper */
.custom-control.custom-checkbox {
    padding: 8px 10px 8px 2.75rem;
    /* Increase left padding for the box */
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px !important;
    /* Space between items */
    cursor: pointer;
    position: relative;
}

/* Hover Effect on the whole row */
.custom-control.custom-checkbox:hover {
    background-color: #f8fafc;
    /* Light gray background on hover */
}

/* The Label Text */
.custom-control-label {
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    /* Dark slate text */
    font-size: 0.9rem;
    width: 100%;
    user-select: none;
    vertical-align: middle;
}

/* The Box Styling (Unchecked) */
.custom-control-label::before {
    top: 50%;
    transform: translateY(-50%);
    left: -1.75rem;
    /* Adjust based on padding above */
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    /* Light gray border */
    box-shadow: none !important;
    /* Remove Bootstrap default glow */
    transition: all 0.2s ease;
}

/* The Box Styling (Checked) */
.custom-control-input:checked~.custom-control-label::before {
    background-color: var(--theme-color, #333);
    /* Use your theme variable */
    border-color: var(--theme-color, #333);
}

/* The Checkmark Icon */
.custom-control-label::after {
    top: 50%;
    transform: translateY(-50%);
    left: -1.75rem;
    width: 1.25rem;
    height: 1.25rem;
    background-size: 60% 60%;
    /* Adjust checkmark size */
}

/* Focus State (Accessibility) */
.custom-control-input:focus~.custom-control-label::before {
    border-color: var(--theme-color, #333);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05) !important;
}

.modern-tabs .nav-link {
    background-color: #f3f4f6 !important;
    /* Clear light grey bg */
    color: #4b5563 !important;
    /* Darker slate text (readable) */
    border: 1px solid #e5e7eb !important;
    /* Definition border */
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 4px !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

/* 2. Hover State */
.modern-tabs .nav-link:hover {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
    /* Even darker on hover */
    border-color: #d1d5db !important;
}

/* 3. Active Selected State */
.modern-tabs .nav-link.active {
    background-color: var(--theme-color, #8B7355) !important;
    /* Matches your brown theme */
    color: #ffffff !important;
    border-color: var(--theme-color, #8B7355) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 4. The Count Badge (Small number inside tab) */
.modern-tabs .nav-link .badge-count {
    background-color: var(--natural-diamond-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 6px;
}

.modern-tabs .nav-link.active .badge-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

#portal-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    justify-content: right;
}

#portal-toolbar a {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    /* Requested White Background */
    border: 1px solid #e2e8f0;
    color: #000;
    /* Slate text */
    padding: 8px 16px;
    border-radius: 50px;
    /* Modern Pill Shape matching bottom buttons */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
#portal-toolbar a:hover {
    border-color: var(--theme-color, #8B7355);
    color: var(--theme-color, #8B7355);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon Styling */
#portal-toolbar a i {
    margin-right: 8px;
    font-size: 1rem;
    color: #000;
    /* Subtle icon color */
    transition: color 0.2s;
}

#portal-toolbar a:hover i {
    color: var(--theme-color, #8B7355);
}

/* Count Span Styling */
#portal-toolbar a span {
    margin-left: 4px;
    font-size: 0.8em;
    opacity: 0.8;
}

@media (max-width: 991px) {
    #portal-toolbar {
        justify-content: center;
        gap: 8px;
    }

    #portal-toolbar a {
        font-size: 0 !important;
        /* Hack: Hides the text label */
        padding: 8px 12px;
        /* Adjust padding for compact look */
    }

    #portal-toolbar a i {
        font-size: 1.1rem !important;
        /* Restore Icon size */
        margin-right: 0 !important;
        /* Remove spacing since text is gone */
    }

    #portal-toolbar a span {
        font-size: 0.8rem !important;
        /* Restore Count size */
        margin-left: 6px !important;
        display: inline-block;
        vertical-align: middle;
    }
}

@media (max-width: 768px) {
    #diamond_actions {
        padding: 10px 5px !important;
        gap: 5px;
    }

    #diamond_actions .btn {
        flex-grow: 1;
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    #diamond_actions {
        padding: 10px 5px !important;
        gap: 5px;
    }

    /* Target the buttons */
    #diamond_actions .btn {
        display: flex !important;
        /* Ensure flex behavior for centering */
        align-items: center !important;
        /* Vertical center */
        justify-content: center !important;
        /* Horizontal center */
        flex-grow: 1;
        font-size: 0 !important;
        /* Hide the text */
        padding: 12px 0 !important;
        /* Adjust padding for icon-only look */
        margin: 0 !important;
    }

    /* Restore the Icon size and visibility */
    #diamond_actions .btn i {
        font-size: 1.25rem !important;
        /* Make icon larger */
        margin: 0 !important;
        /* Remove all margins to ensure perfect center */
        display: inline-block !important;
    }

    /* Fix for Hidden Tabs on Mobile */
    .modern-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 5px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .modern-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .modern-tabs::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    .modern-tabs .nav-item {
        flex: 0 0 auto;
    }

    .modern-tabs .nav-link {
        font-size: 13px !important;
        padding: 8px 12px !important;
        margin-right: 8px;
        margin-bottom: 0;
        white-space: nowrap;
    }
}

#dlg_cart .modal-content {
    border: none;
    border-radius: 16px;
    /* Modern large radius */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Modal Header */
#dlg_cart .modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 25px;
    align-items: center;
}

#dlg_cart .modal-title {
    color: #334155;
    /* Slate Dark */
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Close "X" Button */
#dlg_cart .close {
    opacity: 0.5;
    transition: opacity 0.2s;
    outline: none;
}

#dlg_cart .close:hover {
    opacity: 1;
}

/* Modal Body */
#dlg_cart .modal-body {
    padding: 25px;
    background-color: #ffffff;
}

/* Labels & Text */
#dlg_cart .font-semibold,
#dlg_cart label {
    color: #475569 !important;
    /* Muted Slate */
    font-size: 0.9rem;
    font-weight: 600 !important;
    margin-bottom: 6px;
    display: block;
}

/* Input Fields & Selects */
#dlg_cart .form-control {
    background-color: #f8fafc;
    /* Very light gray bg */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: none;
    height: auto;
    /* Fix for some bootstrap themes */
}

#dlg_cart .form-control:focus {
    background-color: #ffffff;
    border-color: var(--theme-color, #8B7355);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    /* Subtle theme glow */
}

/* Checkboxes (Custom styling to override Tailwind/Default) */
#dlg_cart input[type="checkbox"] {
    accent-color: var(--theme-color, #8B7355);
    /* Browsers that support accent-color */
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
    vertical-align: text-bottom;
    margin-right: 5px;
}

/* Checkbox Row Spacing */
#dlg_cart .space-y-1>div {
    margin-bottom: 10px;
}

#dlg_cart .ml-3 label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500 !important;
}

/* Modal Footer */
#dlg_cart .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 20px 25px;
    background-color: #f8fafc;
    justify-content: flex-end;
}

/* Buttons (White Background as requested) */
#dlg_cart .dp_button {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 50px !important;
    /* Pill Shape */
    padding: 10px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Button Hover State */
#dlg_cart .dp_button:hover {
    border-color: var(--theme-color, #8B7355) !important;
    color: var(--theme-color, #8B7355) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}