:root {
    /* Colors */
    --color-bg-main: #0C001C;
    --color-bg-card: #180D2C;
    --color-purple: #A641EF;
    --color-purple-gradient: linear-gradient(180deg, #A641EF 0%, #D046F0 100%);
    --color-text-white: #FFFFFF;
    --color-text-gray: #A0A0A0;
    --color-border: rgba(166, 65, 239, 0.15);

    /* Global Status Colors */
    --color-status-paid: #2ECC71;
    /* Green */
    --color-status-processing: #3498DB;
    /* Blue */
    --color-status-shipped: #F39C12;
    /* Orange/Yellow */

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Layout Sizes */
    --sidebar-width: 20rem;
    /* Increased Sidebar Width (320px) */
}

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

.hidden {
    display: none !important;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll issues */
    font-family: var(--font-family);
    background-color: var(--color-bg-main);
    color: var(--color-text-white);
    line-height: 1.4;
}

/* Enable Option A (scrollbar starts below header) for dashboard pages */
body:has(.dashboard-container),
html:has(.dashboard-container) {
    overflow: hidden !important;
    height: 100% !important;
}

body:has(.dashboard-container) .dashboard-container {
    height: calc(100vh - 7rem);
    margin-top: 7rem;
    overflow: hidden;
}

body:has(.dashboard-container) .main-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Top Header Bar */
.top-header {
    width: 100%;
    height: 7rem;
    /* 112px - matched to h-28 */
    background: var(--color-bg-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    /* Adjusted for desktop balance */
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    flex-wrap: wrap;
    /* Critical for mobile stacking */
    transition: all 0.3s ease;
}

.top-header__logo {
    width: var(--sidebar-width);
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-main {
    width: 110px;
    /* Slightly larger on desktop */
    height: auto;
}

.top-header__welcome {
    flex-grow: 1;
    text-align: left;
    padding-left: 0;
}

@media (min-width: 768px) {
    .top-header__welcome {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.top-header__welcome .header__title {
    font-size: 1.5rem;
    font-weight: 900;
}

.header__subtitle {
    color: var(--color-text-gray);
    font-size: 0.875rem;
    /* sm */
    margin-top: 0.3125rem;
    opacity: 0.8;
}

.top-header__profile {
    width: auto;
    display: flex;
    justify-content: flex-end;
}

.header__avatar {
    width: 3.5rem;
    /* 56px */
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Tablet Layout (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .top-header {
        gap: 2.25rem;
    }

    .top-header__logo,
    .top-header__profile {
        width: auto;
    }
}

/* Mobile Layout (Below 768px) */
@media (max-width: 767px) {
    .top-header {
        height: 7rem;
        padding: 0 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }

    .top-header__logo {
        width: auto;
        padding-right: 0;
    }

    .logo-main {
        width: 80px;
    }

    .top-header__welcome {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-grow: 1;
        margin: 0;
        padding: 0;
    }

    .top-header__profile {
        width: auto;
    }

    .header__avatar {
        width: 2.75rem;
        height: 2.75rem;
    }

    .header__welcome-text {
        display: none !important;
    }
}


/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 7rem);
    padding: 0;
    /* Set to 0 as requested */
    position: relative;
    width: 100%;
    margin-top: 7rem;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #140926;
    height: 100vh;
    /* Lock to viewport height */
    position: fixed;
    /* Keep fixed relative to the screen */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 8.75rem;
    /* Clear the 7rem header with a balanced space */
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Independent vertical scrolling if items overflow */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar__logo-area {
    padding: 1.25rem 0.625rem 1.25rem 0;
    display: flex;
    justify-content: flex-end;
}

.sidebar__logo-tiny {
    width: 5.625rem;
    height: auto;
    object-fit: contain;
}

.sidebar__nav {
    flex-grow: 1;
}

.sidebar__list {
    list-style: none;
}

.sidebar__item {
    padding: 0.8rem 2.5rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    color: var(--color-text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.3s;
    white-space: nowrap;
    /* Keep on 1 line for Desktop/1440p/2560p */
    line-height: 1.2;
    width: 100%;
    align-items: center;
    /* Center icon with potentially 2 lines of text */
}

.sidebar__icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 1.25rem;
    filter: brightness(0) invert(1);
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar__icon-small {
    width: 1rem;
    height: 1rem;
    margin-right: 1.25rem;
    filter: brightness(0) invert(1);
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar__item--active .sidebar__link {
    color: var(--color-purple);
}

.sidebar__item--active .sidebar__icon,
.sidebar__item--active .sidebar__icon-small {
    filter: invert(36%) sepia(94%) saturate(4649%) hue-rotate(258deg) brightness(97%) contrast(96%);
}

.sidebar__footer {
    margin-top: auto;
    padding-bottom: 30px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 0 3rem 1.5625rem 3rem;
    min-width: 0;
    /* Critical: allow content to shrink/not push parent */
    overflow-x: hidden;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    /* Removed margin to pull content up */
}

.header__title {
    font-size: 1.4rem;
    font-weight: 700;
}

.header__subtitle {
    color: var(--color-text-gray);
    font-size: 0.875rem;
}

.header__avatar {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 50%;
    object-fit: cover;
}

/* Section Hub */
 .section-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

/* Align cards with the header: remove the extra side indentation so
   card elements span the same left/right edges as the header across
   all breakpoints. The header (`.card-header-bar`) already has
   no side margin so this keeps it unchanged. */
.section-hub > * {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.card-header-bar {
    background: #191029;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    margin: 0;
    margin-right: 0;
    /* Removed overhang to ensure consistent right-side space */
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.header-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    /* Reduced gap as requested */
}

.btn-add-device {
    background: var(--color-purple-gradient);
    color: white;
    border: none;
    padding: 0.625rem 1.375rem;
    border-radius: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 65, 239, 0.3);
}

.btn-add-device:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 65, 239, 0.4);
}

.btn-add-device img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Cards */
.card {
    background: #180D2C;
    /* Glassy background */
    padding: 0.75rem;
    margin-bottom: 10px !important;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Glassy border */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align to top to ensure text lines up perfectly */
    margin-bottom: 8px;
}

.card__title {
    font-size: 1rem;
    font-weight: 700;
}

/* Reduced */

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.summary-card {
    background: #180D2C;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Glassy border */
    backdrop-filter: blur(0.5rem);
    min-width: 0;
}

.summary-card__icon-wrapper img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.summary-card__label {
    font-size: 0.875rem;
    color: var(--color-text-gray);
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.summary-card__value {
    font-weight: 700;
}

/* Increased */

/* Content Row Split */
.content-row-split {
    display: flex;
    flex-wrap: wrap;
    /* Allow cards to wrap on mid-sized screens */
    gap: 16px;
    align-items: stretch;
}

.content-row-split>section {
    flex: 1;
    min-width: 420px;
    /* Force wrap if container is too narrow */
}

/* Status Colors - Increased specificity to override global td color */
.data-table td.status-paid,
.status-paid,
.status-active {
    color: var(--color-status-paid) !important;
    font-weight: 700;
    font-size: 0.875rem;
}

.data-table td.status-processing,
.status-processing {
    color: var(--color-status-processing) !important;
    font-weight: 700;
    font-size: 0.8125rem;
}

.data-table td.status-shipped,
.status-shipped {
    color: var(--color-status-shipped) !important;
    font-weight: 700;
    font-size: 14px;
}

.status-out-of-stock {
    color: #E74C3C !important;
    font-weight: 700;
    font-size: 15px;
}

.status-draft {
    color: #F1C40F !important;
    font-weight: 700;
    font-size: 15px;
}

.status-inactive {
    color: #95A5A6 !important;
    font-weight: 700;
    font-size: 15px;
}

/* Order List */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #180D2C;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Glassy border */
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.order-item__user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.order-item__name {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* Increased */
.order-item__device {
    font-size: 13px;
    color: #FFFFFF;
}

/* White color & increased size */

/* Tables */
.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on mobile */
}

.data-table {
    width: 100%;
    min-width: 900px;
    /* Increased to ensure all columns fit on one line */
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    /* Locked layout for perfect column control */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.data-table th {
    text-align: center;
    padding: 0.75rem 0.5rem;
    color: var(--color-text-gray);
    font-weight: 700;
    background: rgba(29, 18, 43, 0.8);
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Specific Column Widths for Device Management */
.data-table th:nth-child(1) {
    width: 8%;
}

/* S.No */
.data-table th:nth-child(2) {
    width: 25%;
}

/* Device */
.data-table th:nth-child(3) {
    width: 20%;
}

/* Model No. */
.data-table th:nth-child(4) {
    width: 12%;
}

/* Price */
.data-table th:nth-child(5) {
    width: 15%;
}

/* Status */
.data-table th:nth-child(6) {
    width: 20%;
}

/* Action */

/* Specific Column Widths for Orders Page */
.table-orders th:nth-child(1) {
    width: 12%;
}

/* Order Id */
.table-orders th:nth-child(2) {
    width: 18%;
}

/* Customer */
.table-orders th:nth-child(3) {
    width: 20%;
}

/* Device */
.table-orders th:nth-child(4) {
    width: 18%;
}

/* Model No. */
.table-orders th:nth-child(5) {
    width: 15%;
}

/* Status */
.table-orders th:nth-child(6) {
    width: 17%;
}

/* Action */

/* condensed 3-column tables for Dashboard */
.table-condensed {
    min-width: unset !important;
    width: 100% !important;
    table-layout: auto !important;
    /* Allow columns to fit content on smaller screens */
}

.table-condensed th,
.table-condensed td {
    padding: 0.6rem 0.4rem !important;
    font-size: 0.875rem !important;
}

.table-condensed th:nth-child(1),
.table-condensed td:nth-child(1) {
    width: 35% !important;
}

.table-condensed th:nth-child(2),
.table-condensed td:nth-child(2) {
    width: 35% !important;
}

.table-condensed th:nth-child(3),
.table-condensed td:nth-child(3) {
    width: 30% !important;
}

/* Add Device Page Specifics */
.header-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-gray);
    text-decoration: underline;
    /* Added underline as requested */
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.header-back-link:hover {
    color: var(--color-text-white);
}

.header-back-link img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.8);
}

.form-section {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group--horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    /* Reduced gap to pull input left */
}

.form-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-white);
    min-width: 150px;
    /* Reduced to start input further left */
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--color-text-white);
    font-size: 11px;
    flex: 1;
    /* Stretch to fill all available space on the same line */
    min-width: 0;
    /* Allow it to shrink if needed instead of wrapping */
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--color-purple);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.form-select {
    appearance: none;
    background-color: #1D122B;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    color: var(--color-text-white);
    transition: none !important;
    /* Removes all animation effects */
}

/* Status Specific Colors for standard Select Options and Main Selector */
.form-select option {
    background-color: #1D122B;
    color: white;
}

.option-active,
.status-active {
    color: #2ecc71 !important;
    font-weight: 500;
}

.option-out,
.status-out {
    color: #e67e22 !important;
    font-weight: 500;
}

.option-draft,
.status-draft {
    color: #f1c40f !important;
    font-weight: 500;
}

.option-inactive,
.status-inactive {
    color: #95a5a6 !important;
    font-weight: 500;
}

/* Image Upload Section */
.upload-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    /* Align form to the top of the image box */
    gap: 60px;
    /* Refined gap for closer proximity */
}

.upload-column {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-column {
    flex: 1;
    /* Allow column to take remaining width */
    display: flex;
    flex-direction: column;
    gap: 53px;
    /* Precise gap to match bottom of 360px image box */
    padding-top: 10px;
}

.main-upload-box {
    width: 280px;
    height: 360px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.main-upload-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-purple);
}

.upload-icon-circle {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-text {
    font-size: 11px;
    color: var(--color-text-gray);
    font-weight: 500;
}

.thumbnail-slider-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.dropdown-themed {
    width: 100%;
    /* Fill the wrapper completely */
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-white);
    font-size: 13px;
    appearance: none;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
}

.thumbnail-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.thumbnail-box:hover {
    border-color: var(--color-purple);
    background: rgba(255, 255, 255, 0.05);
}

.slider-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.slider-arrow:hover {
    opacity: 1;
}

/* Footer Buttons */
.form-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 50px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text-white);
}

.btn-submit {
    background: var(--color-purple-gradient);
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(166, 65, 239, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 65, 239, 0.5);
}

/* Orders Page Specific Controls */
.orders-controls {
    display: flex;
    justify-content: space-between;
    /* Back to extreme ends */
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Filter group always right-aligned on all breakpoints */
.orders-controls .filter-wrapper,
.orders-controls .filter-wrapper--calendar {
    margin-left: auto;
}

.search-box-themed {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.search-box-themed:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.search-input-themed {
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-size: 12px;
    width: 100%;
    outline: none;
}

.search-input-themed::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.orders-search-wrapper {
    max-width: 500px;
    min-width: 180px;
}

.orders-controls .orders-search-wrapper {
    height: 44px;
}

/* Table Status Badges */
.status-badge {
    font-weight: 600;
    font-size: 12px;
}

.status-paid {
    color: #2ecc71;
}

.status-processing {
    color: #3498db;
}

.status-shipped {
    color: #f1c40f;
}

.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    white-space: nowrap;
}

.view-spec-link {
    color: var(--color-purple);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
}

.action-icon {
    width: 22px;
    /* Increased for better visibility and touch */
    height: 22px;
    cursor: pointer;
    filter: brightness(0) invert(0.8);
    transition: 0.2s;
}

.action-icon:hover {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5625rem;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.data-table th:first-child {
    padding-left: 40px;
    /* Aligned with td:first-child */
}

.data-table td:first-child {
    padding-left: 40px;
    /* Data content stays same */
}

.pagination__btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    width: 42px;
    /* Increased for better touch target */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.pagination__btn--active {
    background: rgba(166, 65, 239, 0.2);
    border-color: var(--color-purple);
    color: var(--color-purple);
}

.pagination__btn:hover:not(.pagination__btn--active) {
    background: rgba(255, 255, 255, 0.05);
}

.pagination__arrow {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.data-table th:first-child {
    background-size: calc(100% - 35px) 1px;
    background-position: right bottom;
}

.data-table th:last-child {
    background-size: calc(100% - 35px) 1px;
    background-position: left bottom;
}

.data-table td {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #FFFFFF;
    /* Line that doesn't reach the edges */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 0.0625rem;
}

.data-table td:first-child {
    background-size: calc(100% - 35px) 1px;
    background-position: right bottom;
}

.data-table td:last-child {
    background-size: calc(100% - 35px) 1px;
    background-position: left bottom;
}

.data-table tr:last-child td {
    background-image: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.card__footer {
    padding: 25px 0 0 0;
    display: flex;
    justify-content: flex-end;
}

/* Sales Overview Actions */
.card__actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
    flex-shrink: 0;
    /* Prevent squashing on smaller screens */
}

/* Universal filter/controls row — always right-align filter group */
.orders-controls,
.report-controls,
.report-header-toolbar {
    gap: 8px;
    flex-wrap: wrap;
}

/* Search box never grows to push filters off-screen */
.orders-controls .search-box-themed {
    flex: 1 1 180px;
    min-width: 140px;
}

/* Filter wrappers always auto-margin to right */
.report-controls .filter-wrapper,
.report-header-toolbar .filter-wrapper,
.report-header-toolbar .filter-wrapper--calendar {
    margin-left: auto;
    flex-shrink: 0;
}

.filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    /* Shrink to fit content */
    flex-shrink: 0;
}

.filter-icon-left {
    position: absolute;
    left: 12px;
    pointer-events: none;
    z-index: 2;
    width: 16px;
    height: 16px;
}

.filter-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    z-index: 2;
    width: 16px;
    height: 16px;
}

.dropdown-themed {
    background: rgba(25, 16, 41, 0.85) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 34px 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    /* Ensure padding is included in width */
    font-weight: 700;
    /* Bold */
    appearance: none;
    cursor: pointer;
    width: 100%;
    flex: 1;
    /* Force to fill container */
    min-width: 110px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    outline: none;
    text-align: left;
}

.dropdown-themed:hover,
.dropdown-themed:focus {
    border-color: rgba(255, 255, 255, 0.3);
    /* Subtler white highlight instead of purple glow */
}

/* Styling the options as much as browser allows */
.dropdown-themed option {
    background: #191029;
    color: white;
    text-align: center;
}

.dropdown-themed--calendar {
    padding-left: 0;
    text-indent: 36px;
    /* Indent for left icon spacing */
    padding-right: 44px;
    /* Padding for right arrow spacing */
    width: 100%;
}

.filter-wrapper--calendar {
    width: auto;
    min-width: 270px;
    /* Increased to ensure the entire date is fully visible on one line */
    display: flex;
    /* Ensure select can fill via flex: 1 */
}

/* Chart */
.chart-container {
    margin-top: 30px;
    padding: 30px 20px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Slightly more prominent glassy border */
    border-radius: 12px;
    background: rgba(25, 16, 41, 0.7);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    /* Slider behavior for chart */
    -webkit-overflow-scrolling: touch;
}

.chart-body {
    display: flex;
    height: 240px;
    gap: 15px;
    position: relative;
    align-items: flex-start;
    /* Fix for bar alignment */
    min-width: 500px;
    /* Force slider width like earnings report */
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-gray);
    width: 35px;
    text-align: right;
    padding-bottom: 30px;
    /* Offset for X-axis labels */
    height: 100%;
}

.chart-grid-lines {
    position: absolute;
    left: 45px;
    right: 0;
    top: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.chart-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.chart-bars-pill {
    flex-grow: 1;
    height: calc(100% - 30px);
    /* Exactly matching the grid height */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
    gap: 12px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 32px;
    position: relative;
}

.chart-bar-pill {
    width: 100%;
    background: #000000;
    border-radius: 20px;
    transition: height 0.6s ease;
}

.chart-label {
    font-size: 11px;
    color: var(--color-text-gray);
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
}

/* Revenue Grid Themed */
.revenue-grid-themed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.revenue-item-themed {
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Glassy border */
    background: rgba(25, 16, 41, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5625rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: 0.3s;
    word-break: break-word;
}

.revenue-item-themed:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.rev-label {
    font-size: 16px;
    color: var(--color-text-gray);
    font-weight: 700;
}

.rev-value {
    font-weight: 700;
}

/* Buttons */
.btn-view {
    background: var(--color-purple-gradient);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-view-all {
    background: var(--color-purple-gradient);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view-all:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Quick Actions body centered */
.actions-body-centered {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.action-pill-themed {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glassy background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* High contrast glassy border */
    color: white;
    padding: 16px 30px;
    /* Reduced */
    border-radius: 12px;
    font-size: 16px;
    /* Reduced */
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}

/* Hamburger Toggle */
.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    z-index: 1002;
}

.sidebar-toggle:hover .hamburger-line {
    background-color: white;
    opacity: 0.8;
}

/* Sidebar collapsed states for desktop */
@media (min-width: 1024px) {
    body.sidebar-collapsed .sidebar {
        left: calc(-1 * var(--sidebar-width)) !important;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}


/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Much lighter tint */
    backdrop-filter: blur(8px);
    /* Increased blur for premium feel */
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay--active {
    display: none;
    opacity: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Isolated Device Categories)
   ========================================================================== */



/* 2. TABLET SCREENS (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {


    .main-content {
        padding: 0 20px 25px 20px;
        /* Further reduced padding for tablets */
    }

    .summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2x2 Grid */
        gap: 25px;
    }

    .content-row-split {
        grid-template-columns: 1fr 1fr;
    }

    .revenue-grid-themed {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .revenue-item-themed {
        padding: 1.25rem !important;
    }

    .actions-body-centered {
        gap: 20px !important;
        flex-wrap: wrap;
    }

    .action-pill-themed {
        min-width: 180px !important;
        padding: 12px 20px !important;
    }
}

/* 2. TABLET SCREENS (768px to 1023px) handled by the main responsive section above */

/* 3. MOBILE SCREENS (1023px and below) - Layout & Sidebar */
@media (max-width: 1023px) {
    .sidebar-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar--open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 0 1.25rem 2.5rem 1.25rem;
    }

    .top-header__profile {
        width: auto;
    }

    .section-title {
        font-size: 20px;
    }

    .card__title {
        font-size: 18px;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2x2 Fluid Grid */
        gap: 15px;
        /* Tighter gap for mobile */
    }

    .summary-card {
        min-width: 0;
        padding: 15px;
        flex-direction: column;
        /* Stack icon above text to save width */
        align-items: flex-start;
        gap: 10px;
    }

    .summary-card__label {
        font-size: 12px;
        /* Slightly smaller to fit */
    }

    .summary-card__value {
        font-size: 18px;
    }

    .content-row-split {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .content-row-split>.card {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }

    .revenue-grid-themed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .action-pill-themed {
        width: fit-content;
        min-width: 120px;
        /* Reduced min-width to fit better on small lines */
        padding: 8px 20px;
        /* More compact for header placement */
        font-size: 14px;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }

    .actions-body-centered {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 30px;
        gap: 20px !important;
    }

    .action-pill-themed {
        min-width: 180px !important;
        padding: 12px 20px !important;
    }
}

/* 4. MOBILE SPECIFIC (600px and below) - Layout & Sidebar */
@media (max-width: 600px) {
    .actions-body-centered {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 20px;
        gap: 15px !important;
    }

    .action-pill-themed {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
}

::-webkit-scrollbar-thumb {
    background: #2D1442;
    border-radius: 10px;
}

/* --- Add Device Responsiveness (1024px and below) --- */
/* Order Details Specific Styles */
.details-section {
    width: 100%;
}

.details-header-bar {
    background: rgba(29, 18, 43, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    /* Rounded all corners since there's a margin now */
    margin-bottom: 15px;
    /* Added margin for breathing room */
}

.details-header-bar h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.details-card {
    background: rgba(25, 16, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.details-row {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: -1px;
    /* Collapse borders */
}

.details-label {
    flex: 0 0 250px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}

.details-value {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

/* Status Actions */
.status-actions-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.status-btn {
    background: rgba(29, 18, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 25px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
    min-width: 220px;
    justify-content: center;
}

.status-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.status-btn--accept {
    color: #3498db;
}

.status-btn--ship {
    color: #f1c40f;
}

.status-btn--deliver {
    color: #c52eff;
}

@media (max-width: 1024px) {
    .upload-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .upload-column {
        flex: 0 0 auto;
        width: 100%;
    }

    .form-column {
        width: 100%;
        padding-top: 20px;
        gap: 30px;
    }

    /* Orders Page Specific Controls */
    .orders-controls {
        justify-content: space-between;
        margin-bottom: 0;
        gap: 10px;
        /* Tighter gap for small screens */
    }

    .dropdown-themed {
        min-width: 160px !important;
        width: 160px !important;
        padding: 10px 12px;
    }

    .filter-wrapper:not(.filter-wrapper--calendar) {
        width: 160px !important;
    }

    /* Reverted collapsed state for tablets/laptops */

    /* Order Details - Narrow for tablet and below */
    .details-section {
        width: 100% !important;
        margin: 0 !important;
    }

    .details-row {
        flex-direction: row !important;
        /* Force horizontal on tablet */
    }

    .details-label {
        flex: 0 0 180px !important;
        /* Narrower label for tablet */
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .details-value {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .status-actions-container {
        flex-direction: row !important;
        /* Keep on one line */
        gap: 10px !important;
        /* Minimal gap to fit everything */
        padding: 15px 0;
        justify-content: space-between;
    }

    .status-btn {
        flex: 1;
        /* Each takes equal space */
        min-width: 0 !important;
        /* Allow them to shrink */
        padding: 12px 5px !important;
        /* Slim padding for mobile */
        font-size: 13px !important;
        /* Smaller text for mobile */
        gap: 6px !important;
    }

    .status-btn img {
        width: 14px !important;
        height: 14px !important;
    }

    .form-group--horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-label {
        min-width: 0;
    }

    .form-input {
        width: 100% !important;
    }

    /* Adjust button dimensions for tablets - Ultra Slim */
    .btn-outline,
    .btn-submit {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 80px;
    }
}

.nowrap {
    white-space: nowrap !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

/* 4. MOBILE SPECIFIC (768px and below) */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        /* Stack specs in 1 column */
        gap: 20px;
    }

    .form-footer-actions {
        flex-direction: row;
        justify-content: flex-end;
        /* Align to the right side */
        gap: 15px;
        width: 100%;
        margin-top: 30px;
    }

    .form-footer-actions button {
        width: auto;
        /* Buttons take only needed slim width */
        padding: 8px 15px;
        min-width: 80px;
    }

    .card {
        padding: 20px 15px !important;
    }

    .content-row-split>section {
        min-width: 100% !important;
    }

    .table-condensed th,
    .table-condensed td {
        font-size: 13px !important;
        padding: 12px 8px !important;
    }

    /* Make upload box fluid for small mobiles */
    .main-upload-box {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 280 / 360;
    }

    .thumbnail-slider-wrap {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        /* Prevent wrapping to keep arrows in place */
        gap: 10px;
        /* Tighter gap for small screens */
    }

    .thumbnail-box {
        width: 60px;
        /* Reduced size to fit in one line */
        height: 60px;
    }

    /* Order Details Responsive Adjustments */
    .details-row {
        flex-direction: row !important;
        /* Keep horizontal columns */
        min-width: 500px;
        /* Ensure it's wide enough to scroll */
    }

    .details-label {
        flex: 0 0 150px;
        width: 150px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
        padding: 10px 15px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.04);
    }

    .details-value {
        padding: 12px 15px !important;
        font-size: 14px !important;
        white-space: nowrap;
        /* Prevent text wrapping to trigger scroll */
    }

    .details-card {
        padding: 15px;
        width: 100%;
        overflow-x: auto;
        /* Enable horizontal 'slider' scroll */
        -webkit-overflow-scrolling: touch;
    }

    .card-header-bar h2.section-title {
        font-size: 20px;
    }

    .header-back-link span {
        display: none;
        /* Hide 'Back to Orders' text on very small screens, icon only */
    }

    /* 4. MOBILE SPECIFIC (425px and below) */
    @media (max-width: 425px) {

        /* Collapse Calendar on Mobile ONLY */
        .filter-wrapper--calendar {
            width: 75px !important;
            /* Slightly wider to fit icon + arrow */
            min-width: 75px !important;
        }

        .dropdown-themed--calendar {
            width: 75px !important;
            min-width: 75px !important;
            color: transparent !important;
            padding-right: 0 !important;
            text-indent: 0 !important;
        }

        .dropdown-themed--calendar .selected-date {
            display: none !important;
        }

        .filter-wrapper--calendar .filter-arrow {
            display: block !important;
            right: 10px !important;
            width: 12px !important;
            /* Smaller arrow for compact view */
        }

        .filter-wrapper--calendar .filter-icon-left {
            left: 12px !important;
            transform: none !important;
        }

        /* Removed Peeking Slider for Content Cards to ensure vertical stacking on all devices */

        /* Ensure Order Items stay vertical inside the slider */
        .order-list {
            display: flex !important;
            flex-direction: column !important;
            gap: 15px !important;
        }
    }
}

.metrics-row-container {
    margin-bottom: 0 !important;
    /* Space between metrics and chart/table */
}

/* --- Payments Page Specific Styles --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.metric-card-glass {
    background: rgba(25, 16, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    backdrop-filter: blur(0.625rem);
    width: 100%;
    word-break: break-word;
}

.metric-card-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.metric-card-value {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.download-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.download-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.table-payments td {
    padding: 0.75rem 1rem;
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .metric-card-glass {
        padding: 20px 15px;
    }
}

@media (max-width: 500px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .metric-card-glass {
        padding: 30px 15px;
    }
}

/* Fix for Card Header on Tablets/Mobiles */
@media (max-width: 1024px) {
    .card__header {
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 12px;
    }

    .card__actions-stack {
        align-items: flex-end;
        flex: 1;
        min-width: 0;
        /* Remove restrictive min-width to prevent overflow */
    }

    /* Handle mobile specifically */
    @media (max-width: 600px) {
        .card__header {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
        }

        .card__actions-stack {
            align-items: flex-end;
            width: auto;
            margin-left: auto;
        }
    }
}

/* --- Notifications Page Specific Styles --- */
.notifications-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px 15px 2px 45px;
    display: flex;
    align-items: center;
    height: 44px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.6;
}

.search-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.notification-header-actions {
    display: flex;
    gap: 15px;
}

.btn-action-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
}

.btn-action-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.notification-item-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-item {
    flex: 1;
    background: #180D2C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(166, 65, 239, 0.05);
    border-color: #A641EF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.notif-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
}

.notif-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.notif-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.notif-dot--unread {
    background: #0085FF;
    box-shadow: 0 0 8px rgba(0, 133, 255, 0.5);
}

.btn-delete-notif {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.btn-delete-notif:hover {
    opacity: 1;
    transform: scale(1.1);
}

.notif-pagination {
    margin-top: 40px;
    justify-content: flex-end !important;
}

@media (max-width: 1024px) {
    .search-wrapper {
        min-width: 100%;
        order: 1;
    }

    .notification-header-actions {
        width: 100%;
        justify-content: space-between;
        order: 2;
        gap: 10px;
    }

    .btn-action-outline {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .notification-item {
        padding: 10px 12px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .notif-text {
        width: calc(100% - 60px);
        /* Adjust based on icon size */
    }

    .notif-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* --- Profile Dropdown Styles --- */
.profile-dropdown-wrapper {
    position: relative;
}

.header__avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header__avatar:active {
    transform: scale(0.95);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 200px;
    background: #0D051F;
    /* Dark background matched to Figma */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.profile-dropdown--open {
    display: flex;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #A641EF;
}

.dropdown-item span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dropdown-item img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.dropdown-item:hover img {
    opacity: 1;
    /* Filter to achieve #A641EF purple from white/light gray icon */
    filter: invert(34%) sepia(91%) saturate(3644%) hue-rotate(258deg) brightness(96%) contrast(98%);
}

@media (max-width: 600px) {
    .profile-dropdown {
        right: -10px;
        /* Slight adjustment for mobile edges */
        width: 180px;
    }
}

/* --- Settings Page Specific Styles --- */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto !important;
    /* Force centering despite global section-hub indents */
    width: 100%;
}

.settings-item-wrap {
    background: #180D2C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-main-row {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    gap: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Placeholder for active border */
    border-radius: 16px;
}

.settings-main-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.settings-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-info {
    flex: 1;
}

.settings-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.settings-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.chevron-right {
    opacity: 0.4;
    transition: transform 0.3s ease;
}

.settings-item-wrap--active .settings-main-row {
    border: 1px solid #A641EF;
    background: rgba(166, 65, 239, 0.05);
}

.settings-item-wrap--active .chevron-right {
    transform: rotate(90deg);
    opacity: 1;
}

/*.section-hub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

/* Orders Controls spacing */
.orders-controls {
    display: flex;
    justify-content: space-between;
    /* Back to extreme ends */
    align-items: center;
    margin-bottom: 0;
    gap: 8px;
    flex-wrap: wrap;
}

/* Pagination spacing */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.9375rem;
}

/* Settings expanded content padding */
.settings-expanded-content {
    display: none;
    padding: 10px 30px 10px 30px;
    /* Aligned with text, offset by icon */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

/* Preference row padding */
.preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.settings-item-wrap--active .settings-expanded-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

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

.preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.preference-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.preference-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #A641EF;
}

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

@media (max-width: 768px) {
    .settings-main-row {
        padding: 20px;
        gap: 15px;
    }

    .settings-expanded-content {
        padding: 10px 20px 5px 20px;
    }

    .settings-icon-box {
        width: 40px;
        height: 40px;
    }
}

/* --- Profile Page Specific Styles --- */
.profile-tabs-container {
    display: flex;
    background: rgba(25, 16, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
    margin: 0 auto -6px !important;
    /* Force centering and adjust margin to offset section-hub gap */
    max-width: 900px;
    width: 100%;
}

.profile-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
}

.profile-tab-btn--active {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Form Panels */
.profile-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.profile-panel--active {
    display: block;
}

.profile-form-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    position: relative;
    z-index: 2;
    /* Ensure first card is above others by default */
}

.profile-panel--active>.profile-form-card:nth-child(2) {
    z-index: 1;
    /* Lower z-index for second card */
}

.profile-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.profile-form-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-form-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-edit-profile {
    background: var(--color-purple-gradient);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    box-shadow: 0 5px 15px rgba(166, 65, 239, 0.4);
    transform: translateY(-2px);
}

/* Form Layout */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.input-themed {
    width: 100%;
    height: 50px;
    /* Fixed height for alignment */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 18px;
    /* Vertical padding removed due to fixed height */
    color: #FFFFFF;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.input-themed:focus {
    border-color: #A641EF;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.input-themed[readonly] {
    opacity: 0.6;
    cursor: default;
    background: rgba(255, 255, 255, 0.01);
    resize: none;
    /* Disable resize when locked */
}

textarea.input-themed {
    resize: vertical;
    /* Only allow vertical resizing */
    min-height: 100px;
    height: auto;
    padding: 14px 18px;
}

.input-themed[readonly]:focus {
    border-color: rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.country-code-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 15px;
    cursor: pointer;
    min-width: 100px;
    height: 50px;
}

.country-code-selector .trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-code-selector img,
.select-themed-trigger img {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.phone-input-group .input-themed {
    border-radius: 0 10px 10px 0;
}

/* Password Group */
.password-input-group {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 10;
}

.eye-toggle:hover {
    opacity: 1;
}

/* Actions */
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-update-password {
    background: var(--color-purple-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-form-card {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-form-header {
        flex-direction: column;
        gap: 20px;
    }
}

/* Custom Select/Dropdown Styles */
.options-list {
    display: flex;
    flex-direction: column;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.country-code-dropdown,
.country-selection-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #180D2C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.country-code-dropdown {
    width: 280px;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-option img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    object-fit: contain;
}

.dropdown-option span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure parents are relative */
.phone-input-group,
.select-themed-wrapper {
    position: relative;
}

/* Custom Select Trigger Styles */
.select-themed-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-themed-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.select-themed-trigger .trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-themed-trigger.disabled,
.country-code-selector.disabled,
.eye-toggle.disabled {
    opacity: 0.4 !important;
    /* Clearly visually disabled */
    cursor: default !important;
    pointer-events: none !important;
    /* Forced block of all interactions */
    filter: grayscale(1);
    /* Desaturate to emphasize disabled state */
}

/* Explicit Summary Grid Responsive Layout (4x1 -> 2x2 -> 1x4) */
@media (max-width: 1400px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 650px) {
    .summary-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .pagination,
    .notif-pagination {
        justify-content: center !important;
    }
}

/* ============================================================
   CUSTOM DATE RANGE PICKER
   ============================================================ */

/* Trigger Button */
.daterange-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(25, 16, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 9px 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}

.daterange-trigger:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(35, 22, 58, 0.9);
}

.daterange-trigger.is-active {
    border-color: #C52EFF;
    box-shadow: 0 0 0 2px rgba(197, 46, 255, 0.2);
}

.daterange-trigger__text {
    flex: 0 1 auto;
    text-align: left;
}

/* Popup Panel */
.daterange-popup {
    position: fixed;
    z-index: 9999;
    background: #13092b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 320px;
    animation: drpFadeIn 0.18s ease;
}

.daterange-popup.is-open {
    display: flex;
}

@keyframes drpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Presets */
.drp-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drp-preset-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.drp-preset-btn:hover,
.drp-preset-btn.is-active {
    background: rgba(197, 46, 255, 0.22);
    border-color: #C52EFF;
    color: #fff;
}

/* Divider */
.drp-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0 -20px;
}

/* Month Header */
.drp-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drp-month-nav {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}

.drp-month-nav:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.drp-month-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

/* Calendar Grid */
.drp-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.drp-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    padding: 4px 0;
}

.drp-day {
    text-align: center;
    font-size: 13px;
    padding: 7px 4px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.drp-day:hover:not(.drp-day--empty):not(.drp-day--disabled) {
    background: rgba(197, 46, 255, 0.25);
    color: #fff;
}

.drp-day--empty {
    cursor: default;
}

.drp-day--disabled {
    color: rgba(255,255,255,0.15);
    cursor: not-allowed;
}

.drp-day--today {
    font-weight: 700;
    color: #C52EFF;
}

.drp-day--start,
.drp-day--end {
    background: #C52EFF !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
}

.drp-day--in-range {
    background: rgba(197, 46, 255, 0.18);
    color: #fff;
    border-radius: 0;
}

.drp-day--start { border-radius: 6px 0 0 6px; }
.drp-day--end   { border-radius: 0 6px 6px 0; }
.drp-day--start.drp-day--end { border-radius: 6px; }

/* Footer */
.drp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.drp-selected-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    flex: 1;
}

.drp-selected-label strong {
    color: #fff;
}

.drp-apply-btn {
    background: linear-gradient(135deg, #C52EFF, #7B2FBE);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 8px 18px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.drp-apply-btn:hover {
    opacity: 0.85;
}

.drp-clear-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.drp-clear-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: white;
}
/* Login Page Styles moved from index.html */
:root {
    --login-card-bg: #180D2C;
    --login-input-bg: #0C001C;
    --login-border: rgba(166, 65, 239, 0.2);
    --login-purple: #A641EF;
    --login-purple-hover: #C52EFF;
}

body.login-page,
body {
    background-color: #0C001C;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: var(--login-card-bg);
    border: 1px solid var(--login-border);
    border-radius: 24px;
    padding: 25px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-header {
    margin-bottom: 0;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.login-brand {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1px;
}

.brand-mirror {
    color: #A641EF;
}

.brand-admin {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.form-group {
    text-align: left;
    margin-bottom: 0;
}

.login-card .form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.input-wrapper {
    position: relative;
}

.login-input {
    width: 100%;
    height: 52px;
    background: var(--login-input-bg);
    border: 1px solid var(--login-border);
    border-radius: 12px;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.login-input:focus {
    border-color: var(--login-purple);
    box-shadow: 0 0 12px rgba(166, 65, 239, 0.2);
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.eye-toggle:hover {
    opacity: 1;
}

.forgot-pass {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--login-purple);
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: var(--login-purple-hover);
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    height: 52px;
    background: var(--color-purple-gradient);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(166, 65, 239, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 65, 239, 0.4);
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 28px;
    }
}

/* Payments page mobile styles moved from payments.html */
@media (max-width: 600px) {
    .header-action-link {
        width: 40px !important;
        height: 40px !important;
        justify-content: center !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        text-decoration: none !important;
    }

    .header-action-link .btn-text {
        display: none !important;
    }
}

/* Reports page styles moved from reports.html */
.chart-bars-pill {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: calc(100% - 30px);
    padding: 0 10px;
    gap: 12px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    flex: 1;
    min-width: 0;
    position: relative;
}

.chart-bar-pill {
    width: 30px;
    background: #000000;
    border-radius: 20px;
    transition: height 0.6s ease;
    margin: 0 auto;
}

.report-tabs {
    display: flex;
    gap: 0.0625rem;
    background: #110821;
    border: 0.0625rem solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0.125rem;
    width: 100%;
    flex-wrap: nowrap;
    margin-right: 20px;
}

.report-tab-btn {
    background: transparent;
    border: none;
    padding: 0.625rem 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    position: relative;
    outline: none;
}

.report-tab-btn--active {
    color: #FFFFFF;
    background: rgba(166, 65, 239, 0.08);
    box-shadow: inset 0 0 0 1px #A641EF;
}

.report-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.report-tab-btn--active:hover,
.report-tab-btn--active:focus-visible {
    color: #FFFFFF;
    background: rgba(166, 65, 239, 0.12);
    box-shadow: inset 0 0 0 1px #A641EF, 0 0 0 1px rgba(166, 65, 239, 0.18);
}

@media (max-width: 53.125rem) {
    .report-header-toolbar {
        gap: 0.625rem !important;
    }

    .report-controls {
        gap: 0.5rem;
    }

    .report-filter-wrapper {
        width: 9.375rem !important;
    }

    .report-filter-select {
        padding: 0.625rem 0.75rem !important;
    }

    .status-btn-main {
        padding: 0.625rem 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .report-filter-wrapper,
    .report-filter-select,
    .status-btn-main,
    .dropdown-themed,
    .calendar-trigger {
        height: 70px !important;
        padding: 0 !important;
        font-size: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px !important;
        font-weight: 700;
    }

    .report-filter-select {
        width: 100% !important;
        height: 100% !important;
        padding: 8px 35px 8px 16px !important;
        border: none !important;
        background: transparent !important;
        color: white !important;
        cursor: pointer;
    }

    .report-filter-wrapper {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
        width: 180px !important;
    }

    .report-filter-wrapper .filter-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .status-btn-main {
        padding: 8px 22px !important;
        width: 180px !important;
    }

    .report-tabs {
        display: flex;
        background: #110821;
        border: 0.0625rem solid rgba(255, 255, 255, 0.12);
        border-radius: 0.5rem;
        padding: 0.125rem;
        width: 100%;
        max-width: 100%;
        margin-right: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .report-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Z-Index Fixes for Profile Page Dropdowns */
.select-themed-wrapper, .phone-input-group {
    position: relative;
    z-index: 50;
}
.country-selection-dropdown,
.country-code-dropdown {
    position: absolute;
    z-index: 100 !important;
}

/* Ensure the first profile form card stacks above the second one so dropdowns don't get clipped */
#profile-details .profile-form-card:nth-child(2) {
    position: relative;
    z-index: 10;
}
#profile-details .profile-form-card:nth-child(3) {
    position: relative;
    z-index: 5;
}

/* Index.html Utility Classes */
.login-msg-error {
    display: none; margin-bottom: 25px; font-size: 14px; font-weight: 600; color: #E74C3C; text-align: left;
}
.login-msg-success {
    display: none; margin-bottom: 25px; padding: 12px; background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); border-radius: 8px; font-size: 14px; font-weight: 600; color: #2ECC71; text-align: left;
}
.login-subtitle {
    color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; margin-top: 10px;
}
.back-to-login {
    display: block; margin-top: 30px; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 14px; transition: color 0.2s;
}
.otp-sent-msg {
    background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); border-radius: 12px; padding: 15px; margin-bottom: 25px; color: #2ECC71; font-size: 14px; font-weight: 500;
}
.otp-input-container {
    display: flex; gap: 15px; justify-content: center; margin-bottom: 30px;
}
.otp-input-box {
    width: 60px; height: 60px; text-align: center; font-size: 24px; font-weight: 700;
}
.resend-text-container {
    margin-top: 30px; font-size: 14px; color: rgba(255,255,255,0.6);
}
.resend-timer-text {
    color: var(--login-purple, #A641EF); cursor: default;
}
.reset-msg-text {
    display: none; margin-top: 20px; font-size: 14px; font-weight: 600;
}

/* Global Inline CSS Replacement Classes */
.close-line-1 { transform: translateY(10px) rotate(45deg); position: absolute; }
.close-line-2 { transform: translateY(10px) rotate(-45deg); position: absolute; }
.text-left-override { text-align: left; }
.pl-40 { padding-left: 40px; }
.pl-2-5rem { padding-left: 2.5rem; }
.text-decoration-none { text-decoration: none; }
.payments-header-row { display: flex; justify-content: space-between; align-items: center; }
.header-action-link { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-decoration: underline; color: #FFFFFF; }
.details-section-spaced { margin-top: 30px; }
.password-help-text { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.color-paid { color: #2ecc71; }
.color-processing { color: #3498db; }
.color-shipped { color: #f1c40f; }
.color-cancelled { color: #e74c3c; }
.action-pill-wrap { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.card-p-30-40 { padding: 20px 25px; margin-bottom: 10px !important; }
.mb-0 { margin-bottom: 0; }
.h-120 { height: 120px; }
.font-13 { font-size: 13px; }
.mt-8 { margin-top: 8px; }
.color-gray-50 { color: rgba(255,255,255,0.5); }
.mt-30 { margin-top: 10px; }
.text-nodecor { text-decoration: none; color: inherit; }
.flex-space-between { display: flex; justify-content: space-between; align-items: center; }
.header-back-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.text-underline { text-decoration: underline; }
.mt-20 { margin-top: 20px; }
.mb-15 { margin-bottom: 15px; }
.bg-dark-alpha { background: rgba(29, 18, 43, 0.5); }
.font-20-bold { font-size: 20px; font-weight: 700; }
.p-40 { padding: 40px; }
.flex-center-w100 { justify-content: center; width: 100%; }
.w-24 { width: 24px; }
.w-20 { width: 20px; }
.w-18-half { width: 18px; opacity: 0.5; }
.p-30 { padding: 30px; }

/* Final mobile filter safeguard: keep controls readable at the smallest breakpoint. */
@media (max-width: 480px) {
    .card__header {
        width: 100%;
    }

    .orders-controls,
    .report-controls,
    .card__actions-stack {
        width: 100%;
        align-items: stretch !important;
    }

    .orders-controls,
    .report-controls {
        flex-direction: column;
    }

    .section-hub>.orders-controls {
        width: auto;
    }

    .search-box-themed,
    .filter-wrapper--calendar,
    .report-filter-wrapper,
    .status-btn-main {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    .filter-wrapper {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .orders-controls .filter-wrapper {
        align-self: flex-start;
    }

    .filter-wrapper--calendar {
        width: 100% !important;
        min-width: 0 !important;
    }

    .search-box-themed {
        flex: none;
    }

    .dropdown-themed,
    .report-filter-select,
    .daterange-trigger {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 44px 10px 16px !important;
        box-sizing: border-box;
    }

    .daterange-trigger {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .daterange-trigger__text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .filter-arrow,
    .report-filter-wrapper .filter-arrow {
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .report-filter-wrapper {
        overflow: visible !important;
    }
}

/* Reports page responsive layout */
.report-header-toolbar {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    box-sizing: border-box;
}

.report-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.report-controls--end {
    margin-left: auto;
}

.report-header-toolbar .report-filter-wrapper,
.report-header-toolbar .status-btn-main {
    width: 165px !important;
    min-width: 165px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box;
}

.report-header-toolbar .report-filter-select,
.report-header-toolbar .status-btn-main {
    height: 100% !important;
}

.report-panel {
    display: none;
}

.report-panel--active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-panel>.card,
.report-panel>.chart-card {
    margin-bottom: 0 !important;
}

.report-panel .metrics-row-container {
    margin-bottom: 0;
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.report-metrics-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-card {
    padding: 40px;
}

.chart-card .card__header {
    margin-bottom: 24px;
}

.chart-card .chart-container {
    width: min(100%, 720px);
    margin-top: 0;
}

.chart-card .chart-body {
    min-width: 520px;
}

#orders-panel .chart-container {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 30px 20px 20px;
    overflow-x: hidden;
}

#orders-panel .chart-container svg {
    width: 100%;
    min-width: 0;
    height: 240px;
    display: block;
}

.grid-line {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
}

.orders-axis-line {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.axis-text {
    fill: rgba(255, 255, 255, 0.58);
    font-size: 16px;
    font-weight: 600;
}

.orders-trend-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orders-trend-line--completed {
    stroke: #2ecc71;
}

.orders-trend-line--pending {
    stroke: #f1c40f;
}

.orders-trend-line--cancelled {
    stroke: #e74c3c;
}

.chart-bar-h-24 { height: 24%; }
.chart-bar-h-31 { height: 31%; }
.chart-bar-h-34 { height: 34%; }
.chart-bar-h-35 { height: 35%; }
.chart-bar-h-40 { height: 40%; }
.chart-bar-h-41 { height: 41%; }
.chart-bar-h-45 { height: 45%; }
.chart-bar-h-48 { height: 48%; }
.chart-bar-h-50 { height: 50%; }
.chart-bar-h-51 { height: 51%; }
.chart-bar-h-54 { height: 54%; }
.chart-bar-h-55 { height: 55%; }
.chart-bar-h-57 { height: 57%; }
.chart-bar-h-60 { height: 60%; }
.chart-bar-h-62 { height: 62%; }
.chart-bar-h-65 { height: 65%; }
.chart-bar-h-68 { height: 68%; }
.chart-bar-h-71 { height: 71%; }
.chart-bar-h-72 { height: 72%; }
.chart-bar-h-74 { height: 74%; }
.chart-bar-h-80 { height: 80%; }
.chart-bar-h-82 { height: 82%; }
.chart-bar-h-100 { height: 100%; }

#sales-report-table,
#revenue-report-table,
#orders-report-table {
    min-width: 760px;
    table-layout: fixed;
}

#sales-report-table th,
#sales-report-table td {
    width: 20%;
}

#revenue-report-table th,
#revenue-report-table td,
#orders-report-table th,
#orders-report-table td {
    width: 16.666%;
}

#sales-report-table th,
#sales-report-table td,
#revenue-report-table th,
#revenue-report-table td,
#orders-report-table th,
#orders-report-table td {
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: center;
}

#sales-report-table th:first-child,
#sales-report-table td:first-child,
#revenue-report-table th:first-child,
#revenue-report-table td:first-child,
#orders-report-table th:first-child,
#orders-report-table td:first-child {
    text-align: left;
}

@media (max-width: 1200px) {
    .report-header-toolbar {
        gap: 8px;
    }

    .report-tab-btn {
        padding: 10px 14px;
    }

    .chart-card {
        padding: 32px;
    }

    .chart-card .chart-container {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .report-header-toolbar {
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .report-header-toolbar::-webkit-scrollbar {
        display: none;
    }

    .report-tabs {
        flex: 1 0 390px;
        margin-right: 0;
    }

    .report-controls {
        flex: 0 0 auto;
    }

    .report-filter-wrapper {
        width: 150px !important;
        min-width: 150px !important;
    }

    .status-btn-main {
        width: 150px !important;
        min-width: 150px !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    .chart-card {
        padding: 26px;
    }
}

@media (max-width: 650px) {
    .section-hub>.report-header-toolbar,
    .section-hub>.report-panel {
        width: auto;
    }

    .report-header-toolbar {
        align-items: stretch;
    }

    .report-controls {
        width: auto !important;
        flex-direction: row;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .report-tabs {
        flex-basis: 330px;
        width: auto;
        max-width: none;
        margin-right: 0;
    }

    .report-tab-btn {
        min-width: 110px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .report-filter-wrapper {
        width: 140px !important;
        min-width: 140px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .status-btn-main {
        width: 140px !important;
        min-width: 140px;
        height: 36px !important;
        min-height: 36px !important;
        padding: 9px 12px !important;
    }

    .status-btn-main img {
        width: 14px;
        height: 14px;
    }

    .metrics-row-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .report-metrics-grid {
        min-width: 520px;
        gap: 12px;
    }

    .report-metrics-grid--four {
        min-width: 660px;
    }

    .metric-card-glass {
        padding: 20px 12px;
    }

    .chart-card {
        padding: 22px 16px;
    }

    .chart-card .card__header {
        gap: 12px;
    }

    .chart-card .card__actions-stack {
        align-items: flex-end !important;
        width: 100%;
    }

    .chart-card .filter-wrapper {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 100% !important;
    }

    .chart-card .filter-wrapper--calendar {
        width: 270px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .chart-card .dropdown-themed,
    .chart-card .daterange-trigger,
    .report-filter-select,
    .status-btn-main {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 11px !important;
    }

    .chart-card .chart-body {
        min-width: 500px;
        height: 210px;
    }

    #orders-panel .chart-container {
        height: auto;
        min-height: 0;
    }

    #orders-panel .chart-container svg {
        min-width: 0;
        height: 210px;
    }

    #sales-report-table,
    #revenue-report-table,
    #orders-report-table {
        min-width: 720px;
    }
}

@media (max-width: 480px) {
    .report-panel .chart-card .card__actions-stack {
        width: 100%;
        align-items: flex-end !important;
    }

    .report-panel .chart-card .filter-wrapper {
        width: min(130px, 100%) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        align-self: flex-end;
    }

    .report-panel .chart-card .filter-wrapper--calendar {
        width: min(230px, 100%) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        align-self: flex-end;
    }

    .report-panel .chart-card .dropdown-themed,
    .report-panel .chart-card .daterange-trigger {
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 44px 10px 16px !important;
        font-size: 14px !important;
    }
}

/* Keep chart filters right-aligned on compact layouts, matching dashboard cards. */
@media (max-width: 480px) {
    .card__actions-stack {
        gap: 8px !important;
        align-items: flex-end !important;
    }

    .card__actions-stack .filter-wrapper {
        width: min(130px, 100%) !important;
        align-self: flex-end;
    }

    .card__actions-stack .filter-wrapper--calendar {
        width: min(230px, 100%) !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .orders-controls .filter-wrapper {
        align-self: flex-end;
    }
}

/* Final filter spacing normalization across pages and breakpoints. */
.card__actions-stack,
.orders-controls,
.report-controls,
.report-header-toolbar {
    gap: 8px !important;
}

@media (max-width: 650px) {
    .card__actions-stack,
    .orders-controls,
    .report-controls,
    .report-header-toolbar {
        gap: 6px !important;
    }
}

/* Final filter density normalization across pages and breakpoints. */
.filter-wrapper {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dropdown-themed,
.report-filter-select {
    width: 100% !important;
    padding: 9px 24px 9px 12px !important;
    min-width: 0 !important;
    max-width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daterange-trigger {
    width: 100% !important;
    max-width: 100%;
    gap: 6px;
    padding: 9px 8px 9px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.daterange-trigger svg {
    flex: 0 0 auto;
}

.daterange-trigger svg:last-child {
    margin-left: auto;
}

.daterange-trigger__text {
    flex: 1 !important;
    text-align: left !important;
    margin-left: 8px !important;
}

.filter-arrow,
.report-filter-wrapper .filter-arrow {
    right: 8px !important;
}

.card__actions-stack .filter-wrapper {
    width: min(120px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.card__actions-stack .filter-wrapper--calendar {
    width: min(230px, 100%) !important;
    max-width: 100% !important;
}

.orders-controls .filter-wrapper {
    width: min(140px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.report-filter-wrapper {
    width: min(165px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.card__actions-stack {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    .dropdown-themed,
    .report-filter-select,
    .daterange-trigger {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .card__actions-stack .filter-wrapper {
        width: min(115px, 100%) !important;
    }

    .card__actions-stack .filter-wrapper--calendar {
        width: min(230px, 100%) !important;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .report-header-toolbar .report-filter-wrapper,
    .report-header-toolbar .status-btn-main {
        width: 150px !important;
        min-width: 150px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
}

@media (min-width: 481px) and (max-width: 650px) {
    .report-header-toolbar .report-filter-wrapper,
    .report-header-toolbar .status-btn-main {
        width: 140px !important;
        min-width: 140px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
}

/* Icon-only calendar filter on smallest breakpoint */
@media (max-width: 480px) {
    .report-header-toolbar .report-controls {
        width: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .report-header-toolbar .report-filter-wrapper {
        width: 165px !important;
        min-width: 165px !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    .daterange-trigger__text {
        display: none !important;
    }

    .card__actions-stack .filter-wrapper--calendar,
    .report-panel .chart-card .filter-wrapper--calendar,
    .filter-wrapper--calendar {
        width: 88px !important;
        min-width: 0 !important;
        align-self: flex-end;
    }

    .daterange-trigger {
        justify-content: space-between !important;
        gap: 10px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .report-panel .chart-card .daterange-trigger {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .report-header-toolbar .status-btn-main {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .report-header-toolbar .status-btn-main .btn-text {
        display: none !important;
    }

    .report-header-toolbar .status-btn-main img {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }
}

/* Reports toolbar breakpoint layout */
.report-header-toolbar {
    flex-wrap: wrap;
}

.report-header-toolbar .report-tabs {
    flex: 1 1 520px;
    width: auto;
    min-width: min(520px, 100%);
    margin-right: 0;
}

.report-header-toolbar .report-controls {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-left: auto;
}

/* Orders search follows notification styling without inheriting notification wrapping. */
@media (min-width: 481px) {
    .orders-controls {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .orders-controls .orders-search-wrapper {
        flex: 1 1 500px;
        width: auto !important;
        min-width: 220px !important;
        max-width: 500px !important;
        order: 0;
    }

    .orders-controls .filter-wrapper {
        flex: 0 0 auto;
        order: 0;
    }
}

@media (max-width: 480px) {
    .section-hub>.orders-controls {
        width: auto !important;
        align-self: stretch;
    }

    .orders-controls {
        width: 100% !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .orders-controls .orders-search-wrapper {
        flex: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 44px !important;
        box-sizing: border-box;
        order: 0;
    }

    .orders-controls .filter-wrapper {
        flex: none;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        margin-left: auto !important;
        align-self: flex-end;
        height: 44px !important;
        box-sizing: border-box;
        order: 1;
    }

    .orders-controls .dropdown-themed {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 42px 10px 16px !important;
        text-align: left !important;
        text-align-last: left !important;
        justify-content: flex-start !important;
    }

    .orders-controls .filter-arrow {
        right: 14px !important;
    }
}

@media (max-width: 900px) {
    .report-header-toolbar {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .report-header-toolbar .report-tabs {
        flex: 0 0 100%;
        width: 100%;
    }

    .report-header-toolbar .report-controls {
        width: auto !important;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .report-header-toolbar .report-tabs {
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .report-header-toolbar .report-tab-btn {
        width: 100%;
        min-width: 0;
        background: #110821;
        border: 0.0625rem solid rgba(255, 255, 255, 0.12);
    }

    .report-header-toolbar .report-tab-btn--active {
        background: rgba(166, 65, 239, 0.08);
    }

    .report-header-toolbar .report-controls {
        width: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin-left: auto;
    }

    #orders-panel .chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #orders-panel .chart-container svg {
        width: 680px;
        min-width: 680px;
    }

    .report-panel .metrics-row-container {
        overflow-x: visible;
    }

    .report-panel .report-metrics-grid,
    .report-panel .report-metrics-grid--four {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}
