/* Lexus theme - v1.rdp.cheap exact styles */

/* Fonts - same as v1.rdp.cheap */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

/* Body - match header text (Inter, slate-500 / slate-300) */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--lexus-text-muted-3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.3s ease;
}
html.lexus-theme-dark body { color: var(--lexus-dark-text); }

/* .primary-bg-color: transparent in light mode, dark slate in dark mode */
.primary-bg-color { background: transparent !important; }
html.lexus-theme-dark .primary-bg-color { background: #0f172a !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(var(--lexus-primary-rgb), 0.2);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--lexus-primary-rgb), 0.4); }

/* Selection */
::selection {
    background: rgba(var(--lexus-primary-rgb), 0.2);
    color: var(--lexus-primary);
}

/* Lexus button styling for default WHMCS button classes */
.lexus-mesh .btn,
.lexus-mesh .btn-primary,
.lexus-mesh .btn-success,
.lexus-mesh .btn-info,
.lexus-mesh .btn-warning,
.lexus-mesh .btn-danger {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: var(--lexus-radius-full) !important;
    background: var(--lexus-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: var(--lexus-shadow-btn) !important;
    transition: all 0.2s !important;
}
.lexus-mesh .btn:hover,
.lexus-mesh .btn:focus,
.lexus-mesh .btn-primary:hover,
.lexus-mesh .btn-success:hover,
.lexus-mesh .btn-info:hover,
.lexus-mesh .btn-warning:hover,
.lexus-mesh .btn-danger:hover,
.lexus-mesh .btn-primary:focus,
.lexus-mesh .btn-success:focus,
.lexus-mesh .btn-info:focus,
.lexus-mesh .btn-warning:focus,
.lexus-mesh .btn-danger:focus {
    background: var(--lexus-primary-hover) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: var(--lexus-shadow-btn-hover) !important;
    transform: translateY(-1px);
}
.lexus-mesh .btn-secondary,
.lexus-mesh .btn-default,
.lexus-mesh .btn-light {
    background: var(--lexus-bg-input) !important;
    color: var(--lexus-text-dark) !important;
    border: 1px solid var(--lexus-border-2) !important;
    box-shadow: var(--lexus-shadow-sm) !important;
}
.lexus-mesh .btn-secondary:hover,
.lexus-mesh .btn-default:hover,
.lexus-mesh .btn-light:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--lexus-text-dark) !important;
    border-color: var(--lexus-border-2) !important;
    box-shadow: var(--lexus-shadow-sm-hover) !important;
    transform: translateY(-1px);
}
html.lexus-theme-dark .lexus-mesh .btn-secondary:hover,
html.lexus-theme-dark .lexus-mesh .btn-default:hover,
html.lexus-theme-dark .lexus-mesh .btn-light:hover {
    border-color: var(--lexus-border-dark) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.lexus-mesh .btn-sm {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.8rem !important;
}
.lexus-mesh .btn-block {
    width: 100% !important;
}
html.lexus-theme-dark .lexus-mesh .btn-secondary,
html.lexus-theme-dark .lexus-mesh .btn-default,
html.lexus-theme-dark .lexus-mesh .btn-light {
    background: var(--lexus-bg-dark-2) !important;
    border-color: var(--lexus-border-dark) !important;
    color: var(--lexus-dark-text-heading) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* Hide footer in Active Services card */
.lexus-dashboard-grid .lexus-area-services .lexus-card-footer {
    display: none !important;
}

/* View More button – same tokens as secondary */
.lexus-mesh .btn-view-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: var(--lexus-radius-full) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    border: 1px solid var(--lexus-border-2) !important;
    background: var(--lexus-bg-input) !important;
    color: var(--lexus-text-dark) !important;
    box-shadow: var(--lexus-shadow-sm) !important;
}
.lexus-mesh .btn-view-more:hover,
.lexus-mesh .btn-view-more:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--lexus-text-dark) !important;
    border-color: var(--lexus-border-2) !important;
    box-shadow: var(--lexus-shadow-sm-hover) !important;
    transform: translateY(-1px);
}
html.lexus-theme-dark .lexus-mesh .btn-view-more:hover,
html.lexus-theme-dark .lexus-mesh .btn-view-more:focus {
    border-color: var(--lexus-border-dark) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.lexus-mesh .btn-view-more.disabled,
.lexus-mesh .btn-view-more[aria-disabled="true"] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
html.lexus-theme-dark .lexus-mesh .btn-view-more {
    background: var(--lexus-bg-dark-2) !important;
    border-color: var(--lexus-border-dark) !important;
    color: var(--lexus-dark-text-heading) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* Global typography */
.lexus-mesh,
.lexus-mesh input,
.lexus-mesh button,
.lexus-mesh select,
.lexus-mesh textarea {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
    color: var(--lexus-text);
}
html.lexus-theme-dark .lexus-mesh,
html.lexus-theme-dark .lexus-mesh input,
html.lexus-theme-dark .lexus-mesh button,
html.lexus-theme-dark .lexus-mesh select,
html.lexus-theme-dark .lexus-mesh textarea {
    color: var(--lexus-dark-text);
}
.lexus-mesh h1, .lexus-mesh h2, .lexus-mesh h3,
.lexus-mesh h4, .lexus-mesh h5, .lexus-mesh h6,
.lexus-mesh .lexus-card-title, .lexus-mesh .lexus-home-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: var(--lexus-text-heading);
}
html.lexus-theme-dark .lexus-mesh h1,
html.lexus-theme-dark .lexus-mesh h2,
html.lexus-theme-dark .lexus-mesh h3,
html.lexus-theme-dark .lexus-mesh h4,
html.lexus-theme-dark .lexus-mesh h5,
html.lexus-theme-dark .lexus-mesh h6,
html.lexus-theme-dark .lexus-mesh .lexus-card-title,
html.lexus-theme-dark .lexus-mesh .lexus-home-title {
    color: var(--lexus-dark-text-heading);
}
.lexus-mesh strong,
.lexus-mesh b {
    font-weight: 500;
}

/* Form controls – single selector (WHMCS uses .form-control on inputs/textarea/select) */
.lexus-mesh .form-control {
    width: 100%;
    height: 46px;
    border-radius: 24px !important;
    border: 1px solid #e5e7eb !important;
    background: var(--lexus-bg-input) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--lexus-text-dark) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.5 !important;
    font-family: 'Inter', sans-serif !important;
}
.lexus-mesh textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    resize: vertical;
    line-height: 1.6 !important;
}
.lexus-mesh select.form-control {
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.lexus-mesh .form-control:hover {
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.lexus-mesh .form-control:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}
.lexus-mesh .form-control::placeholder {
    color: var(--lexus-text-muted-4) !important;
    opacity: 1 !important;
}
.lexus-mesh .form-control:disabled {
    background: #f3f4f6 !important;
    color: var(--lexus-text-muted-4) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
.lexus-mesh .form-control.form-control-sm {
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;
}

/* Prepend icon: keep text clear of the icon */
.lexus-mesh .form-group.prepend-icon .field,
.lexus-mesh .form-group.prepend-icon .form-control {
    padding-left: 2.75rem !important;
}
.lexus-mesh .form-group.prepend-icon .field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    pointer-events: none;
}

/* Form controls – dark */
html.lexus-theme-dark .lexus-mesh .form-control {
    background: var(--lexus-bg-dark-2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--lexus-dark-text-heading) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}
html.lexus-theme-dark .lexus-mesh .form-control:hover {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
html.lexus-theme-dark .lexus-mesh .form-control:focus {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 41, 59, 0.9) !important;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1) !important;
}
html.lexus-theme-dark .lexus-mesh .form-control::placeholder {
    color: var(--lexus-text-muted) !important;
}
html.lexus-theme-dark .lexus-mesh .form-control:disabled {
    background: rgba(30, 41, 59, 0.5) !important;
    color: var(--lexus-text-muted) !important;
}

/* ============================================
   BOOTSTRAP ALERTS - Same as .lexus-card (border + shadow); type = background + text only
   ============================================ */

.lexus-mesh .alert {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.6;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(13, 108, 242, 0.07);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.lexus-mesh .alert strong {
    font-weight: 600;
}
.lexus-mesh .alert p:last-child,
.lexus-mesh .alert .mb-0:last-child {
    margin-bottom: 0 !important;
}

/* Dark: same border & shadow as .lexus-card (no colored borders) */
html.lexus-theme-dark .lexus-mesh .alert {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Success - card border/shadow; tint + text only */
.lexus-mesh .alert.alert-success {
    background: rgba(240, 253, 244, 0.9);
    color: #15803d;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-success {
    background: rgba(30, 41, 59, 0.4);
    color: #6ee7b7;
}

/* Danger / Error */
.lexus-mesh .alert.alert-danger,
.lexus-mesh .alert.alert-error {
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-danger,
html.lexus-theme-dark .lexus-mesh .alert.alert-error {
    background: rgba(30, 41, 59, 0.4);
    color: #fca5a5;
}

/* Warning */
.lexus-mesh .alert.alert-warning {
    background: rgba(255, 251, 235, 0.95);
    color: #b45309;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-warning {
    background: rgba(30, 41, 59, 0.4);
    color: #fcd34d;
}

/* Info & Primary */
.lexus-mesh .alert.alert-info,
.lexus-mesh .alert.alert-primary {
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-info,
html.lexus-theme-dark .lexus-mesh .alert.alert-primary {
    background: rgba(30, 41, 59, 0.4);
    color: #93c5fd;
}

/* Default - identical to .lexus-card */
.lexus-mesh .alert:not(.alert-success):not(.alert-danger):not(.alert-error):not(.alert-warning):not(.alert-info):not(.alert-primary) {
    background: rgba(255, 255, 255, 0.65);
    color: #475569;
}
html.lexus-theme-dark .lexus-mesh .alert:not(.alert-success):not(.alert-danger):not(.alert-error):not(.alert-warning):not(.alert-info):not(.alert-primary) {
    background: rgba(30, 41, 59, 0.3);
    color: #cbd5e1;
}

/* Alert links inside alerts */
.lexus-mesh .alert a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lexus-mesh .alert.alert-success a {
    color: #15803d;
}
.lexus-mesh .alert.alert-danger a,
.lexus-mesh .alert.alert-error a {
    color: #b91c1c;
}
.lexus-mesh .alert.alert-warning a {
    color: #b45309;
}
.lexus-mesh .alert.alert-info a,
.lexus-mesh .alert.alert-primary a {
    color: #2563eb;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-success a {
    color: #86efac;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-danger a,
html.lexus-theme-dark .lexus-mesh .alert.alert-error a {
    color: #fca5a5;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-warning a {
    color: #fcd34d;
}
html.lexus-theme-dark .lexus-mesh .alert.alert-info a,
html.lexus-theme-dark .lexus-mesh .alert.alert-primary a {
    color: #93c5fd;
}

/* Pagination buttons styling */
.lexus-mesh .pagination {
    gap: 0.5rem;
}
.lexus-mesh .pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}
.lexus-mesh .pagination .page-link:hover,
.lexus-mesh .pagination .page-link:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px);
}
html.lexus-theme-dark .lexus-mesh .pagination .page-link:hover,
html.lexus-theme-dark .lexus-mesh .pagination .page-link:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.lexus-mesh .pagination .page-item.disabled .page-link,
.lexus-mesh .pagination .page-link[aria-disabled="true"] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
html.lexus-theme-dark .lexus-mesh .pagination .page-link {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* DataTables / listtable styling */
.lexus-mesh .listtable {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(13, 108, 242, 0.07);
    border-radius: 1rem;
    padding: 1rem;
}
html.lexus-theme-dark .lexus-mesh .listtable {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.lexus-mesh .listtable .dataTables_filter {
    margin-bottom: 0.75rem;
}
.lexus-mesh .listtable .dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0;
}
html.lexus-theme-dark .lexus-mesh .listtable .dataTables_info {
    color: #94a3b8;
}
.lexus-mesh .listtable .table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}
.lexus-mesh .table.table-list {
    border: 0 !important;
}
.lexus-mesh .listtable .table,
.lexus-mesh .listtable .table thead,
.lexus-mesh .listtable .table tbody,
.lexus-mesh .listtable .table tr,
.lexus-mesh .listtable .table td,
.lexus-mesh .listtable .table th {
    background: transparent !important;
}
.lexus-mesh .listtable .table thead tr {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
}
html.lexus-theme-dark .lexus-mesh .listtable .table thead tr {
    background: rgba(30, 41, 59, 0.6);
}
.lexus-mesh .listtable .table thead th {
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.5rem 0.75rem;
}
html.lexus-theme-dark .lexus-mesh .listtable .table thead th {
    color: #e2e8f0;
}
.lexus-mesh .listtable .table tbody tr {
    background: rgba(255, 255, 255, 0.7);
}
.lexus-mesh .listtable .table tbody td {
    border: none;
    padding: 0.75rem;
    color: #0f172a;
    font-size: 0.85rem;
}
html.lexus-theme-dark .lexus-mesh .listtable .table tbody tr {
    background: rgba(30, 41, 59, 0.6);
}
html.lexus-theme-dark .lexus-mesh .listtable .table tbody td {
    color: #e2e8f0;
}
.lexus-mesh .listtable .dataTables_empty {
    text-align: center;
    color: #64748b;
}
html.lexus-theme-dark .lexus-mesh .listtable .dataTables_empty {
    color: #94a3b8;
}

/* Bootstrap .table.table-striped in mesh (e.g. account users) – dark mode */
html.lexus-theme-dark .lexus-mesh .table.table-striped {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped thead th {
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped tbody tr {
    background: rgba(30, 41, 59, 0.3);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(30, 41, 59, 0.45);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped tbody td {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.06);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped tbody td small {
    color: #94a3b8;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .label.label-info {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .text-grey,
html.lexus-theme-dark .lexus-mesh .table .text-grey {
    color: #94a3b8 !important;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .btn-default {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .btn-default:hover:not(.disabled) {
    background: rgba(71, 85, 105, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .btn-danger {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(248, 113, 113, 0.4);
    color: #ffffff;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .btn-danger:hover:not(.disabled) {
    background: #dc2626;
    border-color: #f87171;
    color: #ffffff;
}
html.lexus-theme-dark .lexus-mesh .table.table-striped .btn.disabled {
    opacity: 0.6;
    color: #94a3b8;
}

/* Ticket status pill styling */
.lexus-mesh .label.status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}
html.lexus-theme-dark .lexus-mesh .label.status {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}


/* Sorting indicators */
.lexus-mesh .listtable .table thead th.sorting,
.lexus-mesh .listtable .table thead th.sorting_asc,
.lexus-mesh .listtable .table thead th.sorting_desc {
    position: relative;
    padding-right: 1.4rem;
    cursor: pointer;
}
.lexus-mesh .listtable .table thead th.sorting:after,
.lexus-mesh .listtable .table thead th.sorting_asc:after,
.lexus-mesh .listtable .table thead th.sorting_desc:after {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: rgba(15, 23, 42, 0.6);
}
.lexus-mesh .listtable .table thead th.sorting:after {
    content: "↕";
}
.lexus-mesh .listtable .table thead th.sorting_asc:after {
    content: "▲";
}
.lexus-mesh .listtable .table thead th.sorting_desc:after {
    content: "▼";
}
html.lexus-theme-dark .lexus-mesh .listtable .table thead th.sorting:after,
html.lexus-theme-dark .lexus-mesh .listtable .table thead th.sorting_asc:after,
html.lexus-theme-dark .lexus-mesh .listtable .table thead th.sorting_desc:after {
    color: rgba(226, 232, 240, 0.65);
}

/* ============================================
   INVOICES LISTING PAGE – Modern SaaS Dashboard (Light / Dark)
   ============================================ */

.lexus-invoices-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Dark mode: page background gradient (invoices only) */
html.lexus-theme-dark .lexus-mesh .lexus-invoices-container {
    min-height: 100vh;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.5rem 1rem 3rem;
    margin-bottom: -2rem;
}

/* ----- Header ----- */
.lexus-invoices-header {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
html.lexus-theme-dark .lexus-invoices-header {
    background: #151b23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lexus-invoices-header-content {
    width: 100%;
}

.lexus-invoices-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}
html.lexus-theme-dark .lexus-invoices-title {
    color: #f3f4f6;
}
.lexus-invoices-title i {
    color: #3b82f6;
    font-size: 1.35rem;
    opacity: 0.9;
}
html.lexus-theme-dark .lexus-invoices-title i {
    color: #3b82f6;
}

.lexus-invoices-subtitle {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.55;
    font-weight: 400;
}
html.lexus-theme-dark .lexus-invoices-subtitle {
    color: #9aa4b2;
}

/* ----- Filters (tabs row style) ----- */
.lexus-invoices-filters {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
html.lexus-theme-dark .lexus-invoices-filters {
    background: #151b23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lexus-invoices-filters-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lexus-invoices-search {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}
.lexus-invoices-search i {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    pointer-events: none;
}
html.lexus-theme-dark .lexus-invoices-search i {
    color: #9aa4b2;
}

.lexus-invoices-filter-group {
    flex-shrink: 0;
}



/* ----- Table card ----- */
.lexus-invoices-table-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 20px 24px 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
html.lexus-theme-dark .lexus-invoices-table-wrapper {
    background: #151b23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lexus-invoices-table-container {
    overflow-x: auto;
}

.lexus-invoices-table-wrapper .lexus-pagination {
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    padding: 1rem 1.5rem;
}
html.lexus-theme-dark .lexus-invoices-table-wrapper .lexus-pagination {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.lexus-invoices-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.lexus-invoices-table thead {
    background: rgba(249, 250, 251, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.lexus-theme-dark .lexus-invoices-table thead {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lexus-invoices-table thead th {
    padding: 0.875rem 1.25rem 0.875rem 1.5rem;
    text-align: left;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}
html.lexus-theme-dark .lexus-invoices-table thead th {
    color: #9aa4b2;
}

.lexus-invoices-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    cursor: pointer;
    background: transparent;
}
html.lexus-theme-dark .lexus-invoices-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.lexus-invoices-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}
html.lexus-theme-dark .lexus-invoices-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lexus-invoices-table tbody tr:last-child {
    border-bottom: none;
}

.lexus-invoices-table tbody td {
    padding: 1rem 1.25rem 1rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    color: #111827;
    vertical-align: middle;
    height: 68px;
    box-sizing: border-box;
}
html.lexus-theme-dark .lexus-invoices-table tbody td {
    color: #f3f4f6;
}

/* Table column widths */
.lexus-table-col-invoice {
    width: 15%;
    min-width: 120px;
}
.lexus-table-col-date,
.lexus-table-col-due {
    width: 18%;
    min-width: 130px;
}
.lexus-table-col-total {
    width: 15%;
    min-width: 100px;
    text-align: right;
}
.lexus-table-col-status {
    width: 20%;
    min-width: 120px;
}

/* Invoice number – primary accent */
.lexus-invoices-table .lexus-invoice-number {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-number {
    color: #3b82f6;
}

.lexus-invoices-table .lexus-invoice-date,
.lexus-invoices-table .lexus-invoice-due-date {
    color: #6b7280;
    font-size: 0.875rem;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-date,
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-due-date {
    color: #9aa4b2;
}

.lexus-invoices-table .lexus-invoice-total {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-total {
    color: #f3f4f6;
}

/* Status badges – pill, minimal */
.lexus-invoices-table .lexus-invoice-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge {
    border-color: rgba(255, 255, 255, 0.06);
}

.lexus-invoices-table .lexus-invoice-status-badge.status-unpaid,
.lexus-invoices-table .lexus-invoice-status-badge.status-overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-unpaid,
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.lexus-invoices-table .lexus-invoice-status-badge.status-paid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.lexus-invoices-table .lexus-invoice-status-badge.status-cancelled {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-cancelled {
    background: rgba(255, 255, 255, 0.06);
    color: #9aa4b2;
}

.lexus-invoices-table .lexus-invoice-status-badge.status-refunded {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-refunded {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.lexus-invoices-table .lexus-invoice-status-badge.status-collections {
    background: rgba(190, 24, 93, 0.1);
    color: #be185d;
}
html.lexus-theme-dark .lexus-invoices-table .lexus-invoice-status-badge.status-collections {
    background: rgba(190, 24, 93, 0.15);
    color: #f472b6;
}

/* Empty state */
.lexus-invoices-empty {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 4rem 2rem;
    text-align: center;
}
html.lexus-theme-dark .lexus-invoices-empty {
    background: #151b23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lexus-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.75rem;
}
html.lexus-theme-dark .lexus-empty-icon {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.lexus-empty-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}
html.lexus-theme-dark .lexus-empty-title {
    color: #e2e8f0;
}

.lexus-empty-text {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
html.lexus-theme-dark .lexus-empty-text {
    color: #94a3b8;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.lexus-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: none;
    gap: 1rem;
    flex-wrap: wrap;
}
html.lexus-theme-dark .lexus-pagination {
    border-top: none;
}

.lexus-pagination-info {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-pagination-info {
    color: #94a3b8;
}

.lexus-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lexus-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}
.lexus-pagination-btn:focus,
.lexus-pagination-btn:active {
    outline: none;
    box-shadow: none;
}
html.lexus-theme-dark .lexus-pagination-btn {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.lexus-pagination-btn:hover:not(:disabled) {
    background: #ffffff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}
html.lexus-theme-dark .lexus-pagination-btn:hover:not(:disabled) {
    background: rgba(30, 41, 59, 0.9);
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.lexus-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.lexus-pagination-btn i {
    font-size: 0.75rem;
}

.lexus-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lexus-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}
.lexus-pagination-number:focus,
.lexus-pagination-number:active {
    outline: none;
    box-shadow: none;
}
html.lexus-theme-dark .lexus-pagination-number {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.lexus-pagination-number:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}
html.lexus-theme-dark .lexus-pagination-number:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.lexus-pagination-number.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    cursor: default;
}
html.lexus-theme-dark .lexus-pagination-number.active {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.lexus-pagination-number.active:hover {
    transform: none;
}

.lexus-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-pagination-ellipsis {
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lexus-invoices-header,
    .lexus-invoices-filters {
        padding: 1.5rem;
    }
    
    .lexus-invoices-filters-content {
        flex-direction: column;
    }
    
    .lexus-invoices-search {
        width: 100%;
    }
    
    .lexus-invoices-filter-group {
        width: 100%;
    }
    
    .lexus-invoices-table-wrapper {
        border-radius: 16px;
    }
    
    .lexus-invoices-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .lexus-invoices-table {
        min-width: 600px;
    }
    
    .lexus-invoices-table thead th,
    .lexus-invoices-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .lexus-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .lexus-pagination-info {
        text-align: center;
    }
    
    .lexus-pagination-controls {
        justify-content: center;
    }
}

/* Invoice Number */
.lexus-invoice-number {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.9rem;
}
html.lexus-theme-dark .lexus-invoice-number {
    color: #60a5fa;
}

/* Invoice Date */
.lexus-invoice-date {
    color: #64748b;
    font-size: 0.85rem;
}
html.lexus-theme-dark .lexus-invoice-date {
    color: #94a3b8;
}

/* Invoice Total */
.lexus-invoice-total {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}
html.lexus-theme-dark .lexus-invoice-total {
    color: #e2e8f0;
}

/* Invoice Status Badge */
.lexus-invoice-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}
html.lexus-theme-dark .lexus-invoice-status {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Status Colors */
.lexus-invoice-status.status-unpaid,
.lexus-invoice-status.status-overdue {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}
html.lexus-theme-dark .lexus-invoice-status.status-unpaid,
html.lexus-theme-dark .lexus-invoice-status.status-overdue {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

.lexus-invoice-status.status-paid {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.2) !important;
}
html.lexus-theme-dark .lexus-invoice-status.status-paid {
    background: rgba(22, 163, 74, 0.2) !important;
    color: #4ade80 !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
}

.lexus-invoice-status.status-cancelled {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-color: rgba(107, 114, 128, 0.2) !important;
}
html.lexus-theme-dark .lexus-invoice-status.status-cancelled {
    background: rgba(107, 114, 128, 0.2) !important;
    color: #9ca3af !important;
    border-color: rgba(107, 114, 128, 0.3) !important;
}

.lexus-invoice-status.status-refunded {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.2) !important;
}
html.lexus-theme-dark .lexus-invoice-status.status-refunded {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
}

.lexus-invoice-status.status-collections {
    background: #fce7f3 !important;
    color: #be185d !important;
    border-color: rgba(190, 24, 93, 0.2) !important;
}
html.lexus-theme-dark .lexus-invoice-status.status-collections {
    background: rgba(190, 24, 93, 0.2) !important;
    color: #f472b6 !important;
    border-color: rgba(190, 24, 93, 0.3) !important;
}

/* DataTables Controls Styling */
.lexus-table-wrapper .dataTables_length,
.lexus-table-wrapper .dataTables_filter,
.lexus-table-wrapper .dataTables_info,
.lexus-table-wrapper .dataTables_paginate {
    margin: 0.75rem 0;
}

.lexus-table-wrapper .dataTables_length label,
.lexus-table-wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_length label,
html.lexus-theme-dark .lexus-table-wrapper .dataTables_filter label {
    color: #94a3b8;
}

.lexus-table-wrapper .dataTables_length select,
.lexus-table-wrapper .dataTables_filter input {
    padding: 0.5rem 0.75rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    color: #0f172a;
    transition: all 0.2s ease;
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_length select,
html.lexus-theme-dark .lexus-table-wrapper .dataTables_filter input {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.lexus-table-wrapper .dataTables_length select:focus,
.lexus-table-wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_length select:focus,
html.lexus-theme-dark .lexus-table-wrapper .dataTables_filter input:focus {
    border-color: #60a5fa;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.lexus-table-wrapper .dataTables_info {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.5rem 0;
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_info {
    color: #94a3b8;
}

.lexus-table-wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.lexus-table-wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_paginate .paginate_button {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.lexus-table-wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.lexus-table-wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
html.lexus-theme-dark .lexus-table-wrapper .dataTables_paginate .paginate_button.current {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.lexus-table-wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading State */
.lexus-table-wrapper #tableLoading {
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}
html.lexus-theme-dark .lexus-table-wrapper #tableLoading {
    color: #94a3b8;
}
.lexus-table-wrapper #tableLoading i {
    margin-right: 0.5rem;
    color: #2563eb;
}
html.lexus-theme-dark .lexus-table-wrapper #tableLoading i {
    color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lexus-invoices-header {
        padding: 1.5rem;
    }
    
    .lexus-table-wrapper {
        padding: 1rem;
    }
    
    .lexus-mesh .listtable .table thead th,
    .lexus-mesh .listtable .table tbody td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .lexus-table-wrapper .dataTables_length,
    .lexus-table-wrapper .dataTables_filter {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .lexus-table-wrapper .dataTables_length label,
    .lexus-table-wrapper .dataTables_filter label {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .lexus-table-wrapper .dataTables_length select,
    .lexus-table-wrapper .dataTables_filter input {
        width: 100%;
    }
}

/* Sidebar footer actions (Update + Logout inline) */
.lexus-footer-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}
.lexus-footer-actions .btn {
    flex: 1 1 auto !important;
    width: auto !important;
}
#main-body > div > div.row > div.col-lg-4.col-xl-3 > div:nth-child(1) > div > div.card-footer.clearfix > a > i{
    display: none;
}

/* Dashboard grid layout (layout only; card styling uses existing design system) */
.lexus-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "services services"
        "ai ai"
        "tickets tickets"
        "news news";
    gap: 22px;
    align-items: stretch;
}
.lexus-area-services { grid-area: services; }
.lexus-area-tickets { grid-area: tickets; }
.lexus-area-order { grid-area: order; }
.lexus-area-news { grid-area: news; }
.lexus-area-ai { grid-area: ai; width: 100%; }

/* Fixed height + scroll for Active Services and Your Tickets on client area home */
.lexus-home-card-scroll {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .lexus-dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "services"
            "ai"
            "tickets"
            "news";
    }
}

#main-body > div > div.row > div.col-lg-4.col-xl-3{
    display: none;
}

/* ============================================
   TICKETS LISTING PAGE - v1.rdp.cheap Style
   ============================================ */

/* Tickets Container */
.lexus-tickets-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tickets Header Card */
.lexus-tickets-header {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
}
html.lexus-theme-dark .lexus-tickets-header {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-tickets-header-content {
    flex: 1;
}

.lexus-tickets-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lexus-theme-dark .lexus-tickets-title {
    color: #e2e8f0;
}
.lexus-tickets-title i {
    color: #0d6cf2;
    font-size: 1.5rem;
}

.lexus-tickets-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}
html.lexus-theme-dark .lexus-tickets-subtitle {
    color: #94a3b8;
}

.lexus-tickets-header-action {
    flex-shrink: 0;
}

/* Tickets Filters */
.lexus-tickets-filters {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}
html.lexus-theme-dark .lexus-tickets-filters {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.lexus-tickets-filters-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.lexus-tickets-search {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}
.lexus-tickets-search i {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}
html.lexus-theme-dark .lexus-tickets-search i {
    color: #94a3b8;
}
/* Search inputs use .form-control from custom.css (with padding-left for icon) */
.lexus-tickets-filter-group {
    flex-shrink: 0;
}
/* Modern SaaS Dropdown Select */
.lexus-filter-select {
    height: 46px !important;
    padding: 0 14px !important;
    padding-right: 42px !important;
    border-radius: 24px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fbff !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    min-width: 160px;
}
html.lexus-theme-dark .lexus-filter-select {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lexus-filter-select:hover {
    border-color: #d1d5db !important;
    background: #ffffff !important;
}
html.lexus-theme-dark .lexus-filter-select:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(30, 41, 59, 0.85) !important;
}
.lexus-filter-select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}
html.lexus-theme-dark .lexus-filter-select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15) !important;
}

/* Dropdown Options Styling */
.lexus-filter-select option {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
}
html.lexus-theme-dark .lexus-filter-select option {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #e2e8f0 !important;
}

/* Tickets Pagination Wrapper */
.lexus-tickets-pagination-wrapper {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
}

.lexus-tickets-pagination-wrapper .lexus-pagination {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* ============================================
   SERVICES LISTING PAGE STYLING
   ============================================ */

.lexus-services-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Services Header */
.lexus-services-header {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
}
html.lexus-theme-dark .lexus-services-header {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-services-header-content {
    width: 100%;
}

.lexus-services-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lexus-theme-dark .lexus-services-title {
    color: #e2e8f0;
}
.lexus-services-title i {
    color: #2563eb;
    font-size: 1.5rem;
}
html.lexus-theme-dark .lexus-services-title i {
    color: #60a5fa;
}

.lexus-services-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}
html.lexus-theme-dark .lexus-services-subtitle {
    color: #94a3b8;
}

/* Services Filters */
.lexus-services-filters {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
}
html.lexus-theme-dark .lexus-services-filters {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-services-filters-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lexus-services-search {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}
.lexus-services-search i {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}
/* Search inputs with icon use .form-control (padding-left handled inline) */
html.lexus-theme-dark .lexus-services-search i {
    color: #94a3b8;
}

.lexus-services-filter-group {
    flex-shrink: 0;
}

/* Services Grid */
.lexus-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Service Card */
.lexus-service-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: 26px !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}
html.lexus-theme-dark .lexus-service-card {
    background: rgba(30, 41, 59, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.lexus-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none;
    color: inherit;
}
html.lexus-theme-dark .lexus-service-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.lexus-service-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.lexus-service-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.lexus-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.25rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-service-icon {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}
.lexus-service-icon img {
    border-radius: 8px;
}

.lexus-service-info {
    flex: 1;
    min-width: 0;
}

.lexus-service-product {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
html.lexus-theme-dark .lexus-service-product {
    color: #e2e8f0;
}

.lexus-service-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-family: 'Courier New', monospace;
}
html.lexus-theme-dark .lexus-service-ip {
    color: #94a3b8;
}
.lexus-service-ip i {
    font-size: 0.75rem;
    opacity: 0.7;
}
.lexus-service-ip span {
    color: #2563eb;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-service-ip span {
    color: #60a5fa;
}

.lexus-service-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-service-status {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Service Status Colors */
.lexus-service-status.status-active {
    background: #dcfce7;
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.2);
}
html.lexus-theme-dark .lexus-service-status.status-active {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border-color: rgba(22, 163, 74, 0.3);
}

.lexus-service-status.status-suspended {
    background: #fef3c7;
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}
html.lexus-theme-dark .lexus-service-status.status-suspended {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border-color: rgba(217, 119, 6, 0.3);
}

.lexus-service-status.status-terminated,
.lexus-service-status.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}
html.lexus-theme-dark .lexus-service-status.status-terminated,
html.lexus-theme-dark .lexus-service-status.status-cancelled {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

.lexus-service-status.status-pending {
    background: #dbeafe;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}
html.lexus-theme-dark .lexus-service-status.status-pending {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

.lexus-service-status.status-fraud {
    background: #fce7f3;
    color: #be185d;
    border-color: rgba(190, 24, 93, 0.2);
}
html.lexus-theme-dark .lexus-service-status.status-fraud {
    background: rgba(190, 24, 93, 0.2);
    color: #f472b6;
    border-color: rgba(190, 24, 93, 0.3);
}

.lexus-service-card-body {
    flex: 1;
}

.lexus-service-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lexus-service-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.lexus-service-meta-item i {
    width: 20px;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-service-meta-item i {
    color: #94a3b8;
}

.lexus-service-meta-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-service-meta-label {
    color: #64748b;
}

.lexus-service-meta-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}
html.lexus-theme-dark .lexus-service-meta-value {
    color: #e2e8f0;
}
.lexus-service-meta-value small {
    font-weight: 400;
    color: #64748b;
    font-size: 0.85rem;
}
html.lexus-theme-dark .lexus-service-meta-value small {
    color: #94a3b8;
}

.lexus-service-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}
html.lexus-theme-dark .lexus-service-card-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.lexus-service-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    transition: all 0.2s ease;
}
html.lexus-theme-dark .lexus-service-view-link {
    color: #60a5fa;
}
.lexus-service-view-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}
.lexus-service-card:hover .lexus-service-view-link i {
    transform: translateX(4px);
}

/* Services Empty State */
.lexus-services-empty {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
}
html.lexus-theme-dark .lexus-services-empty {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Services Pagination Wrapper */
.lexus-services-pagination-wrapper {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
}

.lexus-services-pagination-wrapper .lexus-pagination {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lexus-services-header,
    .lexus-services-filters {
        padding: 1.5rem;
    }
    
    .lexus-services-filters-content {
        flex-direction: column;
    }
    
    .lexus-services-search {
        width: 100%;
    }
    
    .lexus-services-filter-group {
        width: 100%;
    }
    
    .lexus-services-grid {
        grid-template-columns: 1fr;
    }
    
    .lexus-service-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lexus-service-status {
        align-self: flex-start;
    }
}

/* Tickets Grid */
.lexus-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Modern SaaS Ticket Card */
.lexus-ticket-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: 26px !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}
html.lexus-theme-dark .lexus-ticket-card {
    background: rgba(30, 41, 59, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.lexus-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}
html.lexus-theme-dark .lexus-ticket-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.lexus-ticket-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.lexus-ticket-card-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lexus-ticket-id-number {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.95rem;
    font-family: 'Inter', monospace;
    letter-spacing: -0.01em;
}
html.lexus-theme-dark .lexus-ticket-id-number {
    color: #60a5fa;
}
.lexus-ticket-unread-indicator {
    display: inline-flex;
    align-items: center;
}
.lexus-ticket-unread-indicator i {
    font-size: 0.5rem;
    color: #2563eb;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.lexus-ticket-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lexus-ticket-card-subject {
    font-weight: 500;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}
html.lexus-theme-dark .lexus-ticket-card-subject {
    color: #e2e8f0;
}
.lexus-ticket-card-subject.lexus-ticket-unread {
    font-weight: 600;
    color: #0f172a;
}
html.lexus-theme-dark .lexus-ticket-card-subject.lexus-ticket-unread {
    color: #e2e8f0;
}

.lexus-ticket-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.lexus-ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}
html.lexus-theme-dark .lexus-ticket-meta-item {
    color: #94a3b8;
}
.lexus-ticket-meta-item i {
    font-size: 0.875rem;
    color: #2563eb;
    opacity: 0.6;
}
html.lexus-theme-dark .lexus-ticket-meta-item i {
    color: #60a5fa;
}

.lexus-ticket-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: none !important;
}

.lexus-ticket-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html.lexus-theme-dark .lexus-ticket-view-link {
    color: #60a5fa;
}
.lexus-ticket-card:hover .lexus-ticket-view-link {
    gap: 0.625rem;
    color: #1d4ed8;
}
html.lexus-theme-dark .lexus-ticket-card:hover .lexus-ticket-view-link {
    color: #93c5fd;
}
.lexus-ticket-view-link i {
    font-size: 0.75rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lexus-ticket-card:hover .lexus-ticket-view-link i {
    transform: translateX(3px);
}
/* Modern SaaS Status Badge */
.lexus-ticket-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: 9999px !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0;
}

/* Status Colors - Modern SaaS Style */
.lexus-status-open {
    background: #dcfce7 !important;
    color: #16a34a !important;
}
html.lexus-theme-dark .lexus-status-open {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
}
.lexus-status-answered {
    background: #dbeafe !important;
    color: #2563eb !important;
}
html.lexus-theme-dark .lexus-status-answered {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}
.lexus-status-closed {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
html.lexus-theme-dark .lexus-status-closed {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}
.lexus-status-customer-reply {
    background: #fed7aa !important;
    color: #ea580c !important;
}
html.lexus-theme-dark .lexus-status-customer-reply {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

/* Empty State */
.lexus-tickets-empty {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(13, 108, 242, 0.07);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 1.5rem;
}
html.lexus-theme-dark .lexus-tickets-empty {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.lexus-empty-icon {
    margin-bottom: 1.5rem;
}
.lexus-empty-icon i {
    font-size: 3rem;
    color: #94a3b8;
    opacity: 0.5;
}
html.lexus-theme-dark .lexus-empty-icon i {
    color: #64748b;
}
.lexus-tickets-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}
html.lexus-theme-dark .lexus-tickets-empty h3 {
    color: #e2e8f0;
}
.lexus-tickets-empty p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}
html.lexus-theme-dark .lexus-tickets-empty p {
    color: #94a3b8;
}


/* Responsive Design */
@media (max-width: 768px) {
    .lexus-tickets-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .lexus-tickets-header-action {
        width: 100%;
    }
    
    .lexus-tickets-header-action .lexus-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lexus-tickets-filters-content {
        flex-direction: column;
    }
    
    .lexus-tickets-search {
        width: 100%;
        min-width: auto;
    }
    
    .lexus-tickets-filter-group {
        width: 100%;
    }
    
    .lexus-filter-select {
        width: 100%;
    }
    
    .lexus-tickets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lexus-ticket-card {
        padding: 1.25rem;
    }
}

/* Hide Sidebar and Footer */
.sidebar-secondary,
.footer {
    display: none !important;
}

/* Custom Dropdown Component */
.lexus-filter-select-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.lexus-custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 160px;
}

.lexus-custom-dropdown-trigger {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 400;
    color: #0f172a;
    text-align: left;
    font-family: inherit;
}
html.lexus-theme-dark .lexus-custom-dropdown-trigger {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.lexus-custom-dropdown-trigger:hover {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
html.lexus-theme-dark .lexus-custom-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1);
}
.lexus-custom-dropdown-trigger:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
html.lexus-theme-dark .lexus-custom-dropdown-trigger:focus {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1);
}

.lexus-custom-dropdown-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9ca3af;
}
html.lexus-theme-dark .lexus-custom-dropdown-label {
    color: #64748b;
}

.lexus-custom-dropdown-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
html.lexus-theme-dark .lexus-custom-dropdown-icon {
    color: #94a3b8;
}

.lexus-custom-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}
html.lexus-theme-dark .lexus-custom-dropdown-panel {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.lexus-custom-dropdown-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lexus-custom-dropdown-option {
    height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 400;
    color: #9ca3af;
    outline: none;
}
html.lexus-theme-dark .lexus-custom-dropdown-option {
    color: #64748b;
}
.lexus-custom-dropdown-option:hover,
.lexus-custom-dropdown-option:focus {
    background: #f0f5ff;
    color: #2563eb;
}
html.lexus-theme-dark .lexus-custom-dropdown-option:hover,
html.lexus-theme-dark .lexus-custom-dropdown-option:focus {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}
.lexus-custom-dropdown-option.is-selected {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 500;
    border-radius: 12px;
}
html.lexus-theme-dark .lexus-custom-dropdown-option.is-selected {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Scrollbar styling for dropdown panel */
.lexus-custom-dropdown-panel::-webkit-scrollbar {
    width: 6px;
}
.lexus-custom-dropdown-panel::-webkit-scrollbar-track {
    background: transparent;
}
.lexus-custom-dropdown-panel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.lexus-custom-dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
html.lexus-theme-dark .lexus-custom-dropdown-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}
html.lexus-theme-dark .lexus-custom-dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modern File Upload Styling */
.attachment-group {
    display: flex !important;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.attachment-group .custom-file {
    flex: 1;
    position: relative;
    min-width: 0;
    width: 100%;
}

.attachment-group .custom-file-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.attachment-group .custom-file-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 46px !important;
    padding: 0 14px !important;
    border-radius: 24px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fbff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    position: relative !important;
    width: 100% !important;
    min-width: 400px !important;
}
html.lexus-theme-dark .attachment-group .custom-file-label {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
.attachment-group .custom-file-label::after {
    content: 'Browse' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1rem !important;
    margin-left: auto !important;
    margin-right: -14px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 0 24px 24px 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    height: 100% !important;
    min-width: 90px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: none !important;
}
html.lexus-theme-dark .attachment-group .custom-file-label::after {
    background: #3b82f6 !important;
    border-left-color: rgba(255, 255, 255, 0.1) !important;
}
.attachment-group .custom-file-label:hover {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
html.lexus-theme-dark .attachment-group .custom-file-label:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(30, 41, 59, 0.85) !important;
}
.attachment-group .custom-file-label:hover::after {
    background: #1d4ed8 !important;
}
html.lexus-theme-dark .attachment-group .custom-file-label:hover::after {
    background: #2563eb !important;
}
.attachment-group .custom-file-input:focus + .custom-file-label {
    outline: none !important;
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}
html.lexus-theme-dark .attachment-group .custom-file-input:focus + .custom-file-label {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1) !important;
}

/* File selected state */
.attachment-group .custom-file-input:valid + .custom-file-label {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    color: #059669 !important;
}
html.lexus-theme-dark .attachment-group .custom-file-input:valid + .custom-file-label {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
}
.attachment-group .custom-file-input:valid + .custom-file-label::after {
    background: #10b981 !important;
    content: '✓' !important;
    border-left-color: rgba(255, 255, 255, 0.2) !important;
}

/* Add More Button */
.attachment-group .input-group-append {
    display: flex !important;
    margin: 0 !important;
}

.attachment-group #btnTicketAttachmentsAdd,
.attachment-group .btn.btn-default[type="button"] {
    height: 46px !important;
    padding: 0 1.25rem !important;
    border-radius: 24px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
}
html.lexus-theme-dark .attachment-group #btnTicketAttachmentsAdd,
html.lexus-theme-dark .attachment-group .btn.btn-default[type="button"] {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
.attachment-group #btnTicketAttachmentsAdd:hover,
.attachment-group .btn.btn-default[type="button"]:hover {
    border-color: #e5e7eb !important;
    background: #f0f5ff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-1px);
}
html.lexus-theme-dark .attachment-group #btnTicketAttachmentsAdd:hover,
html.lexus-theme-dark .attachment-group .btn.btn-default[type="button"]:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15) !important;
}
.attachment-group #btnTicketAttachmentsAdd:focus,
.attachment-group .btn.btn-default[type="button"]:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    background: #f0f5ff !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}
html.lexus-theme-dark .attachment-group #btnTicketAttachmentsAdd:focus,
html.lexus-theme-dark .attachment-group .btn.btn-default[type="button"]:focus {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1) !important;
}
.attachment-group #btnTicketAttachmentsAdd i,
.attachment-group .btn.btn-default[type="button"] i {
    font-size: 0.875rem !important;
}

/* File upload container styling */
#fileUploadsContainer .attachment-group {
    margin-top: 0.75rem;
}

/* Helper text styling */
.form-group .text-muted small {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}
html.lexus-theme-dark .form-group .text-muted small {
    color: #94a3b8;
}

/* Markdown Editor Styling */
.md-editor {
    border-radius: 24px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html.lexus-theme-dark .md-editor {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.md-editor:hover {
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
html.lexus-theme-dark .md-editor:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
.md-editor.active,
.md-editor:focus-within {
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}
html.lexus-theme-dark .md-editor.active,
html.lexus-theme-dark .md-editor:focus-within {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.1) !important;
}

/* Markdown Header Toolbar */
.md-editor .md-header {
    background: #f9fbff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.75rem 1rem !important;
    border-radius: 24px 24px 0 0 !important;
    margin: 0 !important;
}
html.lexus-theme-dark .md-editor .md-header {
    background: rgba(30, 41, 59, 0.7) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.md-editor .btn-group {
    margin-right: 0.5rem !important;
}

.md-editor .btn-group:last-child {
    margin-right: 0 !important;
}

.md-editor .btn-default.btn-sm.btn {
    height: 32px !important;
    padding: 0 0.75rem !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
}
html.lexus-theme-dark .md-editor .btn-default.btn-sm.btn {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
.md-editor .btn-default.btn-sm.btn:hover {
    background: #f0f5ff !important;
    border-color: #e5e7eb !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
}
html.lexus-theme-dark .md-editor .btn-default.btn-sm.btn:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.15) !important;
}
.md-editor .btn-default.btn-sm.btn:focus {
    outline: none !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
}
html.lexus-theme-dark .md-editor .btn-default.btn-sm.btn:focus {
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.1) !important;
}

.md-editor .btn-primary.btn-sm.btn {
    height: 32px !important;
    padding: 0 1rem !important;
    border-radius: 10px !important;
    border: none !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}
.md-editor .btn-primary.btn-sm.btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}
.md-editor .btn-primary.btn-sm.btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.md-editor .md-controls {
    margin-left: auto !important;
}

.md-editor .md-control {
    height: 32px !important;
    width: 32px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}
html.lexus-theme-dark .md-editor .md-control {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
.md-editor .md-control:hover {
    background: #f0f5ff !important;
    border-color: #e5e7eb !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
}
html.lexus-theme-dark .md-editor .md-control:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.15) !important;
}

/* Textarea - No rounded corners, no borders */
.md-editor .md-input,
.md-editor textarea.markdown-editor,
.md-editor textarea.form-control {
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem 1.25rem !important;
    background: transparent !important;
    box-shadow: none !important;
    resize: vertical !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
}
html.lexus-theme-dark .md-editor .md-input,
html.lexus-theme-dark .md-editor textarea.markdown-editor,
html.lexus-theme-dark .md-editor textarea.form-control {
    color: #e2e8f0 !important;
}
.md-editor .md-input:focus,
.md-editor textarea.markdown-editor:focus,
.md-editor textarea.form-control:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Markdown Footer */
.md-editor .md-footer {
    background: #f9fbff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0 0 24px 24px !important;
}
html.lexus-theme-dark .md-editor .md-footer {
    background: rgba(30, 41, 59, 0.7) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.md-editor .markdown-editor-status {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}
html.lexus-theme-dark .md-editor .markdown-editor-status {
    color: #94a3b8 !important;
}

.md-editor .markdown-save {
    color: #10b981 !important;
    font-weight: 500 !important;
}
html.lexus-theme-dark .md-editor .markdown-save {
    color: #34d399 !important;
}

/* Fullscreen Controls */
.md-editor .md-fullscreen-controls {
    border-radius: 0 0 24px 24px !important;
}

.md-editor .exit-fullscreen {
    height: 32px !important;
    width: 32px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #6b7280 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}
html.lexus-theme-dark .md-editor .exit-fullscreen {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
.md-editor .exit-fullscreen:hover {
    background: #f0f5ff !important;
    border-color: #e5e7eb !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
}
html.lexus-theme-dark .md-editor .exit-fullscreen:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.15) !important;
}

/* ============================================
   SUBMIT TICKET PAGE STYLING
   ============================================ */

.lexus-submit-ticket-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Submit Ticket Header */
.lexus-submit-ticket-header {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
}
html.lexus-theme-dark .lexus-submit-ticket-header {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-submit-ticket-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lexus-theme-dark .lexus-submit-ticket-title {
    color: #e2e8f0;
}
.lexus-submit-ticket-title i {
    color: #2563eb;
    font-size: 1.5rem;
}

.lexus-submit-ticket-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}
html.lexus-theme-dark .lexus-submit-ticket-subtitle {
    color: #94a3b8;
}

/* Alerts use .alert.alert-danger/.alert-warning from custom.css */

/* Submit Ticket Form */
.lexus-submit-ticket-form {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
}
html.lexus-theme-dark .lexus-submit-ticket-form {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Form Grid */
.lexus-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Group */
.lexus-form-group {
    margin-bottom: 1.5rem;
}

.lexus-form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
html.lexus-theme-dark .lexus-form-label {
    color: #e2e8f0;
}

/* Form inputs use .form-control from custom.css */

/* Form Help Text */
.lexus-form-help {
    margin-top: 0.5rem;
}
.lexus-form-help small {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}
html.lexus-theme-dark .lexus-form-help small {
    color: #94a3b8;
}

/* Form Actions */
.lexus-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.lexus-form-captcha {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fbff;
    border-radius: 24px;
    text-align: center;
}
html.lexus-theme-dark .lexus-form-captcha {
    background: rgba(30, 41, 59, 0.5);
}

/* Buttons use .lexus-btn and .lexus-btn-secondary from header.css */
/* .lexus-btn-primary removed - use .lexus-btn instead */

/* Custom Fields Styling - uses .form-control from custom.css */
#customFieldsContainer .lexus-form-group {
    margin-bottom: 1.5rem;
}

/* Department Selection Grid */
.lexus-departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.lexus-department-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}
html.lexus-theme-dark .lexus-department-card {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.lexus-department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
html.lexus-theme-dark .lexus-department-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lexus-department-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    font-size: 1.5rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-department-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.lexus-department-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}
html.lexus-theme-dark .lexus-department-name {
    color: #e2e8f0;
}

.lexus-department-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
html.lexus-theme-dark .lexus-department-description {
    color: #94a3b8;
}

.lexus-department-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #2563eb;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: transform 0.2s ease;
}
html.lexus-theme-dark .lexus-department-arrow {
    color: #60a5fa;
}
.lexus-department-card:hover .lexus-department-arrow {
    transform: translateX(4px);
}

/* Success Alert */
.lexus-success-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}
html.lexus-theme-dark .lexus-success-alert {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lexus-success-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lexus-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-success-icon {
    background: #34d399;
}

.lexus-success-text h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #059669;
    margin: 0 0 0.5rem 0;
}
html.lexus-theme-dark .lexus-success-text h3 {
    color: #34d399;
}

.lexus-ticket-link {
    font-weight: 600;
    font-size: 1.125rem;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}
html.lexus-theme-dark .lexus-ticket-link {
    color: #60a5fa;
}
.lexus-ticket-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}
html.lexus-theme-dark .lexus-ticket-link:hover {
    color: #93c5fd;
}

.lexus-success-message {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
html.lexus-theme-dark .lexus-success-message {
    color: #94a3b8;
}

/* ============================================
   VIEW TICKET PAGE STYLING
   ============================================ */

.lexus-view-ticket-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Ticket Header */
.lexus-ticket-header {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
}
html.lexus-theme-dark .lexus-ticket-header {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-ticket-header-content {
    width: 100%;
}

.lexus-ticket-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lexus-ticket-header-title {
    flex: 1;
    min-width: 0;
}

.lexus-ticket-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lexus-theme-dark .lexus-ticket-title {
    color: #e2e8f0;
}
.lexus-ticket-title i {
    color: #2563eb;
    font-size: 1.5rem;
}

.lexus-ticket-subject-label {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}
html.lexus-theme-dark .lexus-ticket-subject-label {
    color: #94a3b8;
}
.lexus-ticket-subject-label strong {
    color: #0f172a;
    font-weight: 600;
}
html.lexus-theme-dark .lexus-ticket-subject-label strong {
    color: #e2e8f0;
}

.lexus-ticket-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Alert Warning */
.lexus-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}
html.lexus-theme-dark .lexus-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.lexus-alert-warning .lexus-alert-content {
    color: #d97706;
}
html.lexus-theme-dark .lexus-alert-warning .lexus-alert-content {
    color: #fbbf24;
}

/* Ticket Thread */
.lexus-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Ticket Reply */
.lexus-ticket-reply {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}
html.lexus-theme-dark .lexus-ticket-reply {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.lexus-ticket-reply:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
html.lexus-theme-dark .lexus-ticket-reply:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lexus-reply-staff {
    border-left: 4px solid #2563eb;
}
html.lexus-theme-dark .lexus-reply-staff {
    border-left-color: #60a5fa;
}

.lexus-reply-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lexus-reply-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lexus-reply-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    font-size: 1.25rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-reply-avatar {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}
.lexus-reply-staff .lexus-reply-avatar {
    background: #dbeafe;
    color: #2563eb;
}
html.lexus-theme-dark .lexus-reply-staff .lexus-reply-avatar {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.lexus-reply-info {
    flex: 1;
    min-width: 0;
}

.lexus-reply-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.posted-by-name {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}
html.lexus-theme-dark .posted-by-name {
    color: #e2e8f0;
}

.lexus-reply-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.lexus-badge-staff {
    background: #dbeafe;
    color: #2563eb;
}
html.lexus-theme-dark .lexus-badge-staff {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.lexus-badge-client {
    background: #e0e7ff;
    color: #4338ca;
}
html.lexus-theme-dark .lexus-badge-client {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.lexus-badge-owner {
    background: #d1fae5;
    color: #047857;
}
html.lexus-theme-dark .lexus-badge-owner {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Fallback for other requestor types (e.g. third_party) */
.lexus-reply-badge[class*="lexus-badge-"]:not(.lexus-badge-staff):not(.lexus-badge-client):not(.lexus-badge-owner) {
    background: #f1f5f9;
    color: #475569;
}
html.lexus-theme-dark .lexus-reply-badge[class*="lexus-badge-"]:not(.lexus-badge-staff):not(.lexus-badge-client):not(.lexus-badge-owner) {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.lexus-reply-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}
html.lexus-theme-dark .lexus-reply-date {
    color: #94a3b8;
}
.lexus-reply-date i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.lexus-reply-body {
    margin-bottom: 1rem;
}

.lexus-reply-message {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.7;
    word-wrap: break-word;
}
html.lexus-theme-dark .lexus-reply-message {
    color: #e2e8f0;
}
.lexus-reply-message p {
    margin-bottom: 1rem;
}
.lexus-reply-message p:last-child {
    margin-bottom: 0;
}
.lexus-reply-message h1,
.lexus-reply-message h2,
.lexus-reply-message h3,
.lexus-reply-message h4,
.lexus-reply-message h5,
.lexus-reply-message h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
html.lexus-theme-dark .lexus-reply-message h1,
html.lexus-theme-dark .lexus-reply-message h2,
html.lexus-theme-dark .lexus-reply-message h3,
html.lexus-theme-dark .lexus-reply-message h4,
html.lexus-theme-dark .lexus-reply-message h5,
html.lexus-theme-dark .lexus-reply-message h6 {
    color: #e2e8f0;
}
.lexus-reply-message ul,
.lexus-reply-message ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.lexus-reply-message code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    font-size: 0.875em;
    color: #dc2626;
    font-family: 'Courier New', monospace;
}
html.lexus-theme-dark .lexus-reply-message code {
    background: rgba(30, 41, 59, 0.7);
    color: #f87171;
}
.lexus-reply-message pre {
    background: #f9fbff;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-message pre {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.lexus-reply-message blockquote {
    border-left: 3px solid #2563eb;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
    font-style: italic;
}
html.lexus-theme-dark .lexus-reply-message blockquote {
    border-left-color: #60a5fa;
    color: #94a3b8;
}
.lexus-reply-message a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
html.lexus-theme-dark .lexus-reply-message a {
    color: #60a5fa;
}
.lexus-reply-message a:hover {
    border-bottom-color: #2563eb;
}
html.lexus-theme-dark .lexus-reply-message a:hover {
    border-bottom-color: #60a5fa;
}

.lexus-reply-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.lexus-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}
html.lexus-theme-dark .lexus-meta-item {
    color: #94a3b8;
}
.lexus-meta-item i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Rating System */
.lexus-reply-rating {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-rating {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.lexus-rating-done {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lexus-rating-stars {
    display: flex;
    gap: 0.25rem;
}

.lexus-star {
    font-size: 1.125rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease;
}
html.lexus-theme-dark .lexus-star {
    color: rgba(255, 255, 255, 0.2);
}
.lexus-star.active {
    color: #fbbf24;
}
html.lexus-theme-dark .lexus-star.active {
    color: #fbbf24;
}
.lexus-rating .lexus-star:hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.lexus-rating-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-right: 0.75rem;
}
html.lexus-theme-dark .lexus-rating-label {
    color: #94a3b8;
}

.lexus-rating-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}
html.lexus-theme-dark .lexus-rating-text {
    color: #94a3b8;
}

/* Attachments */
.lexus-reply-attachments {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-attachments {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.lexus-attachments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}
html.lexus-theme-dark .lexus-attachments-header {
    color: #e2e8f0;
}
.lexus-attachments-header i {
    color: #6b7280;
    font-size: 0.875rem;
}
html.lexus-theme-dark .lexus-attachments-header i {
    color: #94a3b8;
}

.lexus-attachments-removed {
    color: #dc2626;
    font-weight: 400;
}
html.lexus-theme-dark .lexus-attachments-removed {
    color: #f87171;
}

.lexus-attachments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.lexus-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
html.lexus-theme-dark .lexus-attachment-item {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.lexus-attachment-item:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
html.lexus-theme-dark .lexus-attachment-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}

.lexus-attachment-removed {
    opacity: 0.6;
    cursor: default;
}
.lexus-attachment-removed:hover {
    transform: none;
    border-color: #e5e7eb;
    box-shadow: none;
}

.lexus-attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    font-size: 1rem;
    flex-shrink: 0;
}
html.lexus-theme-dark .lexus-attachment-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}
.lexus-attachment-removed .lexus-attachment-icon {
    background: #fee2e2;
    color: #dc2626;
}
html.lexus-theme-dark .lexus-attachment-removed .lexus-attachment-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.lexus-attachment-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.lexus-theme-dark .lexus-attachment-name {
    color: #e2e8f0;
}

.lexus-attachment-download {
    color: #2563eb;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
html.lexus-theme-dark .lexus-attachment-download {
    color: #60a5fa;
}
.lexus-attachment-item:hover .lexus-attachment-download {
    opacity: 1;
}

/* Reply Form */
.lexus-ticket-reply-form {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
}
html.lexus-theme-dark .lexus-ticket-reply-form {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lexus-reply-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
html.lexus-theme-dark .lexus-reply-form-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lexus-reply-form-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
html.lexus-theme-dark .lexus-reply-form-title {
    color: #e2e8f0;
}
.lexus-reply-form-title i {
    color: #2563eb;
    font-size: 1.125rem;
}
html.lexus-theme-dark .lexus-reply-form-title i {
    color: #60a5fa;
}

/* Danger Button */
.lexus-btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
}
.lexus-btn-danger:hover {
    background: #b91c1c !important;
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.3) !important;
    transform: translateY(-1px);
}
.lexus-btn-danger:disabled {
    background: #9ca3af !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
html.lexus-theme-dark .lexus-btn-danger {
    background: #ef4444 !important;
}
html.lexus-theme-dark .lexus-btn-danger:hover {
    background: #dc2626 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lexus-submit-ticket-header,
    .lexus-submit-ticket-form {
        padding: 1.5rem;
    }
    
    .lexus-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lexus-form-actions {
        flex-direction: column;
    }
    
    .lexus-btn {
        width: 100%;
    }
    
    .lexus-departments-grid {
        grid-template-columns: 1fr;
    }

    /* Submit ticket attachments: stack browse/add-more on mobile */
    .lexus-submit-ticket-form .attachment-group {
        flex-direction: column;
        align-items: stretch;
    }

    .lexus-submit-ticket-form .attachment-group .custom-file {
        width: 100%;
    }

    .lexus-submit-ticket-form .attachment-group .input-group-append {
        width: 100%;
        margin-top: 0.5rem;
    }

    .lexus-submit-ticket-form .attachment-group .input-group-append .btn {
        width: 100%;
    }
    
    .lexus-success-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lexus-ticket-header,
    .lexus-ticket-reply,
    .lexus-ticket-reply-form {
        padding: 1.5rem;
    }
    
    .lexus-ticket-header-main {
        flex-direction: column;
    }
    
    .lexus-ticket-header-actions {
        width: 100%;
    }
    
    .lexus-ticket-header-actions .lexus-btn {
        flex: 1;
    }
    
    .lexus-attachments-list {
        grid-template-columns: 1fr;
    }
}

#order-standard_cart .prepend-icon .field-icon i{
    top: 5px !important;
}

/* Order cart sub-heading: transparent background, no top border (light mode) */
#order-standard_cart .sub-heading {
    background: transparent !important;
    border-top: none !important;
}

/* Cart sidebar: same roundness as .lexus-card (1rem) */
body #order-standard_cart .cart-sidebar .list-group-item:last-child {
    border-radius: 0 0 1rem 1rem !important;
}
body #order-standard_cart .cart-sidebar .list-group-item:last-child:first-child {
    border-radius: 1rem !important;
}
body #order-standard_cart .cart-sidebar .list-group-item:first-child {
    border-radius: 1rem 1rem 0 0 !important;
}

/* Cart sidebar – dark mode */
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .panel.card,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .panel-heading.card-header,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .card-header {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .panel-title,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .card-header .panel-title {
    color: #e2e8f0;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .panel-title .fas,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .panel-title .far,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .card-minimise.panel-minimise {
    color: #94a3b8;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group.collapsable-card-body {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item:hover,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item:focus {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item.active,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item.active:hover,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item.active:focus {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(96, 165, 250, 0.3);
    color: #ffffff;
}
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item.active .fas,
html.lexus-theme-dark body #order-standard_cart .cart-sidebar .list-group-item.active .far {
    color: #93c5fd;
}

.label{    padding: 8px;
border-radius: 21px;
}

/* ========== View Invoice (standalone page) – Lexus design ========== */
.lexus-view-invoice-page {
    min-height: 100vh;
}
.lexus-view-invoice-container {
    max-width: 900px;
    margin: 0 auto;
}
.lexus-view-invoice .lexus-card {
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.lexus-view-invoice-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}
.lexus-view-invoice-brand .lexus-view-invoice-logo { margin: 0 0 0.5rem 0; }
.lexus-view-invoice-brand .lexus-view-invoice-logo img { max-height: 48px; }
.lexus-view-invoice-company {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}
.lexus-view-invoice-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.lexus-view-invoice-meta {
    text-align: right;
}
.lexus-view-invoice-status { margin-bottom: 0.5rem; }
.lexus-view-invoice .lexus-invoice-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.8125rem;
}
.lexus-view-invoice .lexus-invoice-status-badge.status-draft { background: rgba(107, 114, 128, 0.15); color: #4b5563; }
.lexus-view-invoice .lexus-invoice-status-badge.status-unpaid,
.lexus-view-invoice .lexus-invoice-status-badge.status-overdue { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.lexus-view-invoice .lexus-invoice-status-badge.status-paid { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.lexus-view-invoice .lexus-invoice-status-badge.status-cancelled { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.lexus-view-invoice .lexus-invoice-status-badge.status-refunded { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.lexus-view-invoice .lexus-invoice-status-badge.status-collections { background: rgba(190, 24, 93, 0.1); color: #be185d; }
.lexus-view-invoice-due {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}
.lexus-view-invoice-pay .btn,
.lexus-view-invoice-pay input[type="submit"],
.lexus-view-invoice-pay a {
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    background: #0d6cf2;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none !important;
}
.lexus-view-invoice-pay .btn:hover,
.lexus-view-invoice-pay input[type="submit"]:hover,
.lexus-view-invoice-pay a:hover {
    background: #0b5ed7;
    color: #fff !important;
    text-decoration: none !important;
}
.lexus-view-invoice-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 600px) {
    .lexus-view-invoice-addresses-grid { grid-template-columns: 1fr; }
}
.lexus-view-invoice-address-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0.25rem 0 0 0;
    font-style: normal;
}
.lexus-view-invoice-detail-right { text-align: right; }
.lexus-view-invoice-details-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}
.lexus-view-invoice-muted { font-size: 0.875rem; color: #6b7280; }
.lexus-view-invoice-gateway-form { display: inline-block; min-width: 200px; }
/* Payment method: custom dropdown (same as invoices/addons) */
.lexus-view-invoice .lexus-filter-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
/* Gateway dropdown uses base .lexus-custom-dropdown from custom.css */
.lexus-view-invoice .lexus-view-invoice-gateway-dropdown.lexus-custom-dropdown {
    min-width: 180px;
    max-width: 280px;
}
.lexus-view-invoice-select {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.875rem;
}
.lexus-view-invoice-credit-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
/* Input uses .form-control from custom.css (already styled for .lexus-mesh .form-control) */
.lexus-view-invoice-table-head,
.lexus-view-invoice-ledger-head {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lexus-view-invoice-ledger-head {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(13, 108, 242, 0.15);
    border-radius: 1rem 1rem 0 0;
}
.lexus-view-invoice-table-wrap { overflow-x: auto; }

/* Match list invoices table (lexus-invoices-table) */
.lexus-view-invoice-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}
.lexus-view-invoice-table thead {
    background: rgba(249, 250, 251, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.lexus-theme-dark .lexus-view-invoice-table thead {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lexus-view-invoice-table thead th {
    padding: 0.875rem 1.25rem 0.875rem 1.5rem;
    text-align: left;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}
html.lexus-theme-dark .lexus-view-invoice-table thead th {
    color: #9aa4b2;
}
.lexus-view-invoice-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    background: transparent;
}
html.lexus-theme-dark .lexus-view-invoice-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.lexus-view-invoice-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}
html.lexus-theme-dark .lexus-view-invoice-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.lexus-view-invoice-table tbody tr:last-child {
    border-bottom: none;
}
.lexus-view-invoice-table tbody td {
    padding: 1rem 1.25rem 1rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    color: #111827;
    vertical-align: middle;
}
html.lexus-theme-dark .lexus-view-invoice-table tbody td {
    color: #f3f4f6;
}
.lexus-view-invoice-th-amount,
.lexus-view-invoice-td-amount { text-align: right; }
.lexus-view-invoice-table .text-center { text-align: center; }
.lexus-view-invoice-total-row td {
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}
html.lexus-theme-dark .lexus-view-invoice-total-row td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.lexus-view-invoice-grand-total td {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}
.lexus-view-invoice-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
/* Buttons use .lexus-btn and .lexus-btn-secondary from header.css */
.lexus-view-invoice-back {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}
.lexus-view-invoice-back-link {
    color: #0d6cf2;
    font-weight: 500;
    text-decoration: none;
}
.lexus-view-invoice-back-link:hover { color: #0b5ed7; text-decoration: underline; }
.lexus-view-invoice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lexus-view-invoice-overlay-inner {
    text-align: center;
    color: #fff;
}
.lexus-view-invoice-qr { margin: 1rem 0; }
.lexus-view-invoice .text-right { text-align: right; }
.lexus-view-invoice .text-center { text-align: center; }
.lexus-view-invoice .font-weight-bold { font-weight: 700; }
.lexus-view-invoice .d-print-none { }
@media print {
    .lexus-view-invoice .d-print-none { display: none !important; }
}
.btn-manage-permissions{
    margin-bottom:6px;
}
.lexus-mesh .w-hidden{
    display: none;
}


.marketing-email-optin{
    display: none;
}
.selected-flag{
    border-radius:22px;
}
#inputPhone{
    padding-left: 76px !important;
}
.w-hidden{
    display: none;
}
#containerExistingAccountSelect{
    display: none;
}
.cart-body + .sub-heading{
display: none;
}
#frmCheckout > .sub-heading{
display: none;
}
.btn-remove-from-cart{
    background-color: transparent;
    border: none;
}
html.lexus-theme-dark #order-standard_cart .panel .panel-heading{
background-color: transparent;
}
.panel-heading{
    border-radius:50px !important;
}
