/*
 * VinTheme - Clean & Robust
 * A modern, CSS-first redesign based on Twenty-One functionality
 */

:root {
    /* Core Colors - Professional Blue & Slate */
    --vt-primary: #2563eb;       /* Vibrant Blue */
    --vt-primary-dark: #1d4ed8;  /* Darker Blue */
    --vt-secondary: #0f172a;     /* Slate 900 (Dark) */
    --vt-accent: #0ea5e9;        /* Sky Blue */
    
    /* Backgrounds */
    --vt-bg-body: #f8fafc;       /* Slate 50 */
    --vt-bg-surface: #ffffff;
    --vt-bg-alt: #f1f5f9;        /* Slate 100 */

    /* Text */
    --vt-text-main: #334155;     /* Slate 700 */
    --vt-text-heading: #0f172a;  /* Slate 900 */
    --vt-text-muted: #64748b;    /* Slate 500 */
    --vt-text-light: #ffffff;

    /* Borders & Shadows */
    --vt-border: #e2e8f0;        /* Slate 200 */
    --vt-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --vt-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --vt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Spacing & Radius */
    --vt-radius: 0.75rem;
    --vt-container: 1200px;
}

/* Global Reset & Typography */
body {
    background-color: var(--vt-bg-body);
    color: var(--vt-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--vt-text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--vt-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--vt-primary-dark);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.vt-header {
    background: var(--vt-bg-surface);
    position: relative;
    z-index: 1000;
}

.vt-topbar {
    background: var(--vt-bg-surface);
}

.vt-navbar-menu {
    background: var(--vt-bg-surface);
    border-top: 1px solid var(--vt-border);
    box-shadow: var(--vt-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.vt-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vt-text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    max-height: 40px;
    width: auto;
}

.vt-header-search .form-control {
    background-color: var(--vt-bg-alt);
    border-color: transparent;
    transition: all 0.2s;
}

.vt-header-search .form-control:focus {
    background-color: white;
    border-color: var(--vt-primary);
    box-shadow: none;
}

.vt-header-search .btn {
    background-color: var(--vt-bg-alt);
    border-color: transparent;
}

.vt-nav-link {
    color: var(--vt-text-main) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s;
}

.vt-nav-link:hover, .vt-nav-link:focus {
    color: var(--vt-primary) !important;
}

.vt-nav-btn {
    background: var(--vt-primary);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.5rem;
}

.vt-nav-btn:hover {
    background: var(--vt-primary-dark);
    color: white !important;
}

/* Dropdown adjustments for the new navbar */
.vt-navbar-menu .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 2px solid var(--vt-primary);
}

/* --- Hero Section --- */
.vt-hero {
    background: linear-gradient(135deg, var(--vt-secondary) 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.vt-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 40%);
    pointer-events: none;
}

.vt-hero-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.vt-hero-text {
    color: #cbd5e1; /* Slate 300 */
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* --- Cards & Content --- */
.vt-card {
    background: var(--vt-bg-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.vt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vt-shadow-lg);
    border-color: var(--vt-primary);
}

.vt-card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--vt-bg-alt);
    color: var(--vt-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.vt-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.vt-card-text {
    color: var(--vt-text-muted);
    margin-bottom: 1.5rem;
}

/* --- Domain Search --- */
.vt-domain-search {
    background: var(--vt-bg-surface);
    padding: 3rem 0;
    border-bottom: 1px solid var(--vt-border);
}

.vt-search-box {
    background: white;
    border: 2px solid var(--vt-border);
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    transition: border-color 0.2s;
}

.vt-search-box:focus-within {
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.vt-search-input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    flex-grow: 1;
    outline: none;
}

.vt-search-btn {
    background: var(--vt-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vt-search-btn:hover {
    background: var(--vt-primary-dark);
}

/* --- Footer --- */
.vt-footer {
    background: var(--vt-bg-surface);
    border-top: 1px solid var(--vt-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.vt-footer-col h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vt-text-muted);
    margin-bottom: 1.5rem;
}

.vt-footer-link {
    display: block;
    color: var(--vt-text-main);
    margin-bottom: 0.75rem;
}

.vt-footer-link:hover {
    color: var(--vt-primary);
    padding-left: 0.25rem;
}

/* --- WHMCS Overrides --- */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
}

.alert {
    border-radius: var(--vt-radius);
    border: none;
    box-shadow: var(--vt-shadow-sm);
}

.btn-primary {
    background-color: var(--vt-primary);
    border-color: var(--vt-primary);
}

.btn-primary:hover {
    background-color: var(--vt-primary-dark);
    border-color: var(--vt-primary-dark);
}

/* --- Bootstrap Overrides --- */
.container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .container-fluid {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

.card {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--vt-bg-alt);
    border-bottom: 1px solid var(--vt-border);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--vt-border);
    padding: 0.6rem 1rem;
}

.form-control:focus {
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown-menu {
    border: 1px solid var(--vt-border);
    border-radius: 0.75rem;
    box-shadow: var(--vt-shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--vt-bg-alt);
    color: var(--vt-primary);
}

/* --- Status Badges --- */
.status-paid { background-color: #dcfce7; color: #166534; }
.status-unpaid { background-color: #fee2e2; color: #991b1b; }
.status-cancelled { background-color: #f1f5f9; color: #475569; }
.status-refunded { background-color: #e0f2fe; color: #075985; }
.status-collections { background-color: #ffedd5; color: #9a3412; }
.status-draft { background-color: #f3f4f6; color: #374151; }
.status-pending { background-color: #ffedd5; color: #9a3412; }
.status-active { background-color: #dcfce7; color: #166534; }
.status-suspended { background-color: #fee2e2; color: #991b1b; }
.status-terminated { background-color: #f1f5f9; color: #475569; }
.status-fraud { background-color: #111827; color: #f9fafb; }

/* Badge Base Style */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 0.375rem;
    font-size: 0.85em;
}

/* --- Breadcrumb --- */
.vt-breadcrumb {
    background-color: var(--vt-bg-alt) !important;
    border-bottom: 1px solid var(--vt-border) !important;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--vt-text-muted);
}

/* --- Dashboard Tiles --- */
.tiles {
    margin-bottom: 2rem;
}

.tile {
    background: var(--vt-bg-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    display: block;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--vt-shadow);
    border-color: var(--vt-primary);
}

.tile i {
    font-size: 3rem;
    color: var(--vt-bg-alt);
    position: absolute;
    right: -0.5rem;
    top: -0.5rem;
    opacity: 0.5;
    transform: rotate(-15deg);
    transition: all 0.2s;
}

.tile:hover i {
    color: var(--vt-primary);
    opacity: 0.1;
    transform: rotate(0) scale(1.2);
}

.tile .stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vt-text-heading);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.tile .title {
    color: var(--vt-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.tile .highlight {
    height: 4px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* --- Form Helpers --- */
.prepend-icon {
    position: relative;
}

.prepend-icon .field-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vt-text-muted);
    pointer-events: none;
}

.prepend-icon .field {
    padding-left: 42px !important;
}

/* Input Group Merge (Seamless) */
.input-group-merge .input-group-text {
    background-color: var(--vt-bg-surface);
    border: 1px solid var(--vt-border);
    border-right: none;
    color: var(--vt-text-muted);
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

.input-group-merge .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-merge .form-control:focus {
    border-color: var(--vt-primary);
    box-shadow: none;
    border-left: 1px solid var(--vt-primary);
    margin-left: -1px;
    z-index: 3;
}

/* Ensure icon and input are same height */
.input-group-merge {
    align-items: stretch;
}

.input-group-merge .input-group-text,
.input-group-merge .form-control,
.input-group-merge .btn {
    height: auto;
    min-height: 46px; /* Ensure consistent height */
}

.input-group-merge .btn-reveal-pw {
    border: 1px solid var(--vt-border);
    border-left: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    background: var(--vt-bg-surface);
    padding: 0 1rem;
}

/* --- Standard Cart Order Form Overrides --- */
#order-standard_cart .cart-body {
    background-color: var(--vt-bg-surface);
    padding: 2rem;
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
    border: 1px solid var(--vt-border);
}

#order-standard_cart .header-lined {
    border-bottom: 1px solid var(--vt-border);
    margin-bottom: 2rem;
}

#order-standard_cart .header-lined h1 {
    border-bottom: none;
    margin: 0;
    padding-bottom: 1rem;
    color: var(--vt-text-heading);
}

#order-standard_cart .sub-heading {
    border-bottom: 1px solid var(--vt-border);
    text-align: center;
    height: 12px;
    margin: 2.5rem 0 2rem;
    line-height: 1;
}

#order-standard_cart .sub-heading span {
    background-color: var(--vt-bg-surface);
    padding: 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vt-primary);
    display: inline-block;
}

/* Fix for crossing lines in checkout */
#order-standard_cart .sub-heading span.primary-bg-color {
    background-color: var(--vt-bg-surface) !important;
}

/* Utility Colors */
.bg-color-blue { background-color: #3b82f6; }
.bg-color-green { background-color: #10b981; }
.bg-color-red { background-color: #ef4444; }
.bg-color-gold { background-color: #f59e0b; }
.bg-color-purple { background-color: #8b5cf6; }
.bg-color-gray { background-color: #6b7280; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vt-hero-title { font-size: 2rem; }
    .vt-navbar .container { padding: 0 1rem; }
}

/* --- Sidebar Styling --- */
.sidebar .sidebar-card {
    background: var(--vt-bg-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
    overflow: hidden;
}

.sidebar .sidebar-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--vt-border);
    padding: 1.25rem;
}

.sidebar .sidebar-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vt-text-heading);
    margin: 0;
}

.sidebar .sidebar-card .card-title i {
    color: var(--vt-primary);
}

.sidebar .sidebar-card .list-group-item {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

.sidebar .sidebar-card .list-group-item:hover {
    background-color: var(--vt-bg-alt);
    color: var(--vt-primary);
}

.sidebar .sidebar-card .list-group-item.active {
    background-color: var(--vt-bg-alt);
    color: var(--vt-primary);
    font-weight: 600;
}

.sidebar .sidebar-card .card-body {
    padding: 1.25rem;
}

.sidebar .sidebar-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--vt-border);
    padding: 1.25rem;
}

.sidebar .sidebar-card .badge {
    font-size: 0.75rem;
}

/* --- Sidebar Content Improvements --- */

/* Legacy WHMCS Label Support (for Status badges in sidebar) */
.sidebar .label {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem; /* Pill shape */
    margin-right: 0.5rem;
}
.sidebar .label-success { background-color: #10b981; }
.sidebar .label-info { background-color: #3b82f6; }
.sidebar .label-warning { background-color: #f59e0b; }
.sidebar .label-danger { background-color: #ef4444; }
.sidebar .label-inverse { background-color: #1e293b; }

/* Make all buttons in sidebar consistent */
.sidebar .sidebar-card .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Reset width for buttons inside groups */
.sidebar .sidebar-card .btn-group .btn,
.sidebar .sidebar-card .input-group .btn,
.sidebar .sidebar-card .input-group-btn .btn {
    width: auto;
    margin-bottom: 0;
}

/* Fix for Ticket Sidebar Buttons (Reply/Close) */
.sidebar .sidebar-card .btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.sidebar .sidebar-card .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Fix for Input Groups in Sidebar (CC Recipients) */
.sidebar .sidebar-card .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
}

.sidebar .sidebar-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Handle BS3 input-group-btn if present */
.sidebar .sidebar-card .input-group-btn {
    display: flex;
    align-items: stretch;
}

.sidebar .sidebar-card .input-group-btn .btn,
.sidebar .sidebar-card .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
    z-index: 2;
    background-color: var(--vt-bg-alt);
    border: 1px solid var(--vt-border);
    color: var(--vt-text-main);
    padding: 0.5rem 1rem;
}

.sidebar .sidebar-card .input-group-btn .btn:hover,
.sidebar .sidebar-card .input-group .btn:hover {
    background-color: var(--vt-primary);
    color: white;
    border-color: var(--vt-primary);
}

/* Ticket Info Key-Value Spacing */
.sidebar .sidebar-card .ticket-info-key {
    color: var(--vt-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: block;
}

.sidebar .sidebar-card .ticket-info-value {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Remove Icon Styling */
.sidebar .sidebar-card .fa-minus-circle {
    color: #ef4444;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Sidebar Alerts */
.sidebar .sidebar-card .alert {
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Hide CC Recipients Sidebar Panel */
div[menuItemName="Support Ticket CCs"],
div[menuItemName="Ticket CCs"] {
    display: none !important;
}

/* Generic Sidebar Content Styling (for unclassed content) */
.sidebar .sidebar-card .card-body strong {
    display: block;
    color: var(--vt-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar .sidebar-card .card-body strong:first-child {
    margin-top: 0;
}

.sidebar .sidebar-card .card-body br {
    content: "";
    display: block;
    margin-bottom: 0.5rem;
}

/* Sidebar Text/Value Styling */
.sidebar .sidebar-card .card-body {
    line-height: 1.8;
    font-size: 0.9rem;
}

/* Ensure values after strong tags have proper spacing */
.sidebar .sidebar-card .card-body strong + br + text,
.sidebar .sidebar-card .card-body strong ~ text {
    color: var(--vt-text-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Style text nodes that come after labels */
.sidebar .sidebar-card .card-body > * {
    color: var(--vt-text-main);
}

/* Specific styling for Owner label */
.sidebar .sidebar-card .card-body strong:contains("Requestor") {
    color: var(--vt-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

/* --- Fixes for View Ticket Layout --- */

/* Force the markdown editor wrapper to respect container bounds */
.md-editor {
    max-width: 100% !important;
    width: 100% !important;
}

.md-editor .md-input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent Textarea Overflow */
#ticketReplyContainer textarea.form-control,
#ticketReplyContainer .markdown-editor,
#inputMessage {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

/* Ensure the Reply Form Container Respects Layout */
#ticketReplyContainer {
    max-width: 100%;
    height: fit-content;
    overflow: visible !important;
    border: 1px solid var(--vt-border) !important;
    box-shadow: var(--vt-shadow-sm) !important;
    margin-bottom: 5rem !important;
    position: relative;
    z-index: 1;
}

#ticketReplyContainer form {
    max-width: 100%;
    overflow: visible !important;
}

#ticketReplyContainer .row {
    margin-left: 0;
    margin-right: 0;
}

/* Fix for all form controls in ticket reply */
#ticketReplyContainer .form-control,
#ticketReplyContainer input[type="text"],
#ticketReplyContainer input[type="email"],
#ticketReplyContainer input[type="file"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: var(--vt-bg-alt) !important;
    border: 1px solid var(--vt-border) !important;
}

#ticketReplyContainer .form-control:focus {
    background-color: white !important;
    border-color: var(--vt-primary) !important;
}

#ticketReplyContainer .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vt-text-main);
    margin-bottom: 0.5rem;
}

/* Ensure Attachment Input Group handles overflow */
.vt-card .attachment-group {
    max-width: 100%;
    overflow: hidden;
}

.vt-card .attachment-group .form-control {
    width: 1%;
    flex: 1 1 auto;
}

.vt-card .attachment-group .btn {
    border-color: var(--vt-border);
    background-color: var(--vt-bg-alt);
}

.vt-card .attachment-group .btn:hover {
    background-color: var(--vt-primary);
    color: white;
    border-color: var(--vt-primary);
}

/* Form Text Styling */
#ticketReplyContainer .form-text {
    font-size: 0.8rem;
    color: var(--vt-text-muted);
}

/* Reply Form Header */
#ticketReplyContainer h4 {
    color: var(--vt-text-heading);
    border-bottom: 2px solid var(--vt-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Force container to respect boundaries */
.vt-card {
    overflow: visible !important;
    max-width: 100%;
    word-wrap: break-word;
    margin-bottom: 2rem;
}

/* Ensure proper spacing before footer */
.vt-footer {
    margin-top: 4rem !important;
    clear: both;
}

/* --- Support Tickets List Styling --- */
#tableTicketsList {
    background: var(--vt-bg-surface);
    border-radius: var(--vt-radius);
    overflow: hidden;
}

#tableTicketsList thead th {
    background: var(--vt-bg-alt);
    color: var(--vt-text-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid var(--vt-border);
}

#tableTicketsList tbody tr {
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--vt-border);
}

#tableTicketsList tbody tr:hover {
    background-color: var(--vt-bg-alt);
}

#tableTicketsList tbody td {
    padding: 1rem;
    vertical-align: middle;
}

#tableTicketsList .ticket-subject {
    color: var(--vt-text-main);
    font-size: 0.95rem;
}

#tableTicketsList .ticket-subject.fw-bold {
    color: var(--vt-primary);
}

/* Ticket Status Badges in List */
#tableTicketsList .badge {
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Bootstrap 5.3 Subtle Utilities Compatibility */
.bg-primary-subtle { background-color: #cfe2ff !important; }
.text-primary-emphasis { color: #0a58ca !important; }
.bg-success-subtle { background-color: #d1e7dd !important; }
.text-success-emphasis { color: #146c43 !important; }
.bg-info-subtle { background-color: #cff4fc !important; }
.text-info-emphasis { color: #055160 !important; }
.bg-warning-subtle { background-color: #fff3cd !important; }
.text-warning-emphasis { color: #997404 !important; }
.bg-danger-subtle { background-color: #f8d7da !important; }
.text-danger-emphasis { color: #b02a37 !important; }
.bg-light-subtle { background-color: #fcfcfd !important; }
.bg-dark-subtle { background-color: #ced4da !important; }

