.living-table-wrapper {
            width: 100%;
            /* max-width: 1100px; */
            font-size: 14px;
        }
        .living-table-wrapper .living-table-container {
            width: 100%;
            background: #ffffff;
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        .living-table-wrapper .table-header-container {
            position: relative;
            min-height: 45px; /* Height of the header */
        }
        .living-table-wrapper .living-table-header,
        .living-table-wrapper .bulk-actions-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            padding: 0 1.5rem;
            margin-bottom: 1rem;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .living-table-wrapper .living-table-header {
            opacity: 1;
            transform: translateY(0);
        }
        .living-table-wrapper.selection-active .living-table-header {
            opacity: 0;
            transform: translateY(-100%);
        }

        .living-table-wrapper .bulk-actions-bar {
            opacity: 0;
            transform: translateY(100%);
            background-color: #e8e6ff;
            border-radius: 0.75rem;
            justify-content: space-between;
            min-height: 45px;
            box-sizing: border-box;
        }
        .living-table-wrapper.selection-active .bulk-actions-bar {
            opacity: 1;
            transform: translateY(0);
        }
        .living-table-wrapper .bulk-actions-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.9rem;
            font-weight: 600;
            color: #4f46e5;
        }
        .living-table-wrapper .select-all-prompt {
            margin-left: 0.5rem;
            font-weight: 700;
            text-decoration: underline;
            cursor: pointer;
            display: none; /* Hidden by default */
        }

        .living-table-wrapper .deselect-all-btn {
            border: none;
            background-color: rgba(255,255,255,0.4);
            color: #4f46e5;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            padding: 0;
        }
        .living-table-wrapper .deselect-all-btn:hover {
            background-color: rgba(255,255,255,0.7);
            transform: rotate(90deg);
        }
        .living-table-wrapper .bulk-actions-buttons {
            display: flex;
            gap: 0.5rem;
        }
        .living-table-wrapper .bulk-action-btn {
            position: relative;
            border: none;
            background: transparent;
            color: #4f46e5;
            font-size: 1.2rem;
            padding: 0.5rem;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .living-table-wrapper .bulk-action-btn:hover {
            background-color: rgba(255,255,255,0.5);
        }
        
        /* Column and cell base styles */
        .living-table-wrapper .header-cell,
        .living-table-wrapper .row-cell {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
            overflow: hidden;
        }

        .living-table-wrapper .header-cell {
            font-weight: 600;
            color: #7f8c8d;
            font-size: 10px;
            text-transform: uppercase;
        }

        .living-table-wrapper .row-cell {
             color: #2c3e50;
            font-weight: 500;
        }
        
        .living-table-wrapper .header-cell.sortable {
            cursor: pointer;
            transition: color 0.3s ease;
        }
        .living-table-wrapper .header-cell.sortable:hover {
            color: #2c3e50;
        }
        .living-table-wrapper .sort-icon {
            font-family: 'Line Awesome Free';
            font-weight: 900;
            font-size: 0.8em;
            color: #4f46e5;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .living-table-wrapper .header-cell.sorted-asc .sort-icon,
        .living-table-wrapper .header-cell.sorted-desc .sort-icon {
            opacity: 1;
        }
        .living-table-wrapper .header-cell.sorted-asc .sort-icon::before { content: '\f062'; }
        .living-table-wrapper .header-cell.sorted-desc .sort-icon::before { content: '\f063'; }
        
        .living-table-wrapper .header-cell.status-header-custom { color: #4f46e5; }
        
        .living-table-wrapper .header-cell.text-center,
        .living-table-wrapper .row-cell.text-center { justify-content: center; }
        .living-table-wrapper .header-cell.text-right,
        .living-table-wrapper .row-cell.text-right { justify-content: flex-end; }

        .living-table-wrapper .living-table-row {
            position: relative;
            background: #ffffff;
            border: 1px solid #eef2f7;
            border-radius: 1rem;
            margin-bottom: 1rem;
            padding: 1.5rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
        }
        .living-table-wrapper .living-table-row:not(.no-hover) { cursor: pointer; }
        .living-table-wrapper .living-table-row.row-hidden { opacity: 0; transform: translateY(20px); }
        .living-table-wrapper .living-table-row.is-selected { background-color: #f0f5ff; border-color: #a3bffa; }
        .living-table-wrapper .living-table-row:last-child { margin-bottom: 0; }
        .living-table-wrapper .living-table-row:not(.no-hover):not(.is-draggable):hover {
            transform: translateY(-5px) scale(1.01);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
            border-color: #fff;
        }
        .living-table-wrapper.is-draggable .living-table-row:not(.no-hover):hover {
             transform: translateY(-2px);
             box-shadow: 0 6px 25px rgba(0,0,0,0.08);
        }
        .living-table-wrapper .row-summary {
            transition: padding-right 0.3s ease;
        }
        .living-table-wrapper .row-cell > span:not(.cell-label) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .living-table-wrapper .cell-label { display: none; font-size: 0.75rem; color: #7f8c8d; margin-bottom: 0.25rem; }
        
        /* Layout for desktop: GRID */
        @media (min-width: 768px) {
            .living-table-wrapper .living-table-header,
            .living-table-wrapper .row-summary {
                display: grid;
                gap: 1rem;
            }
             .living-table-wrapper .living-table-row:not(.is-editing):hover .row-summary {
                padding-right: var(--lt-actions-width, 10rem); 
            }
        }

        /* Layout for mobile: FLEX */
         @media (max-width: 767px) {
            .living-table-wrapper .living-table-header { display: none; }
            .living-table-wrapper .row-summary { 
                display: flex; 
                flex-wrap: wrap; 
                padding-right: var(--lt-actions-width, 10rem);
            }
            .living-table-wrapper .row-cell { flex: 1 1 50% !important; margin-bottom: 1rem; }
            .living-table-wrapper .row-cell.selector { flex-basis: 100% !important; }
            .living-table-wrapper .cell-label { display: block; }
        }

        .living-table-wrapper .status-badge { padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
        .living-table-wrapper .status-badge.completed { background-color: #d4efdf; color: #1e8449; }
        .living-table-wrapper .status-badge.in-progress { background-color: #fdebd0; color: #d35400; }
        .living-table-wrapper .status-badge.pending { background-color: #eaf2f8; color: #2980b9; }
        
        .living-table-wrapper .row-details { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); border-top: 1px solid transparent; margin-top: 0; }
        .living-table-wrapper .living-table-row.is-expanded .row-details { max-height: 500px; padding: 1.5rem 0 0.5rem; margin-top: 1.5rem; border-top-color: #eef2f7; }
        .living-table-wrapper .details-content { color: #5a677d; line-height: 1.6; }
        .living-table-wrapper .details-content p { margin: 0 0 0.5rem 0; }
        .living-table-wrapper .details-content p:last-child { margin-bottom: 0; }
        .living-table-wrapper .details-content strong { color: #34495e; }
        .living-table-wrapper .details-content em { font-style: italic; color: #7f8c8d; }

        .living-table-wrapper .details-grid-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; }
        .living-table-wrapper .details-item { flex: 1 1 200px; }
        .living-table-wrapper .financial-indicator { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
        .living-table-wrapper .financial-indicator .icon { font-family: 'Line Awesome Free'; font-weight: 900; font-size: 1.2em; }
        .living-table-wrapper .financial-indicator.profit { color: #1e8449; }
        .living-table-wrapper .financial-indicator.loss { color: #c0392b; }
        .living-table-wrapper .financial-indicator.profit .icon::before { content: '\f062'; }
        .living-table-wrapper .financial-indicator.loss .icon::before { content: '\f063'; }

        .living-table-wrapper .row-actions { position: absolute; top: 50%; right: 1.5rem; transform: translateY(-50%); display: flex; gap: 0.75rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
        .living-table-wrapper .living-table-row:hover .row-actions, .living-table-wrapper .living-table-row.is-editing .row-actions { opacity: 1; pointer-events: all; }
        
		.living-table-wrapper .action-btn {
			position: relative;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 36px;
			height: 36px;
			background-color: #eef2f7;
			border: none;
			border-radius: 50%;
			cursor: pointer;
			transition: all 0.3s ease;
			transform: translateX(10px);
			font-size: 1.2rem;
			color: #5a677d;
			text-decoration: none; /* NEW: Ensures <a> tags don't have underlines */
		}

		/* NEW: Ensure visited/active states don't change color for links */
		.living-table-wrapper a.action-btn:visited,
		.living-table-wrapper a.action-btn:active {
			color: #5a677d;
		}

        .living-table-wrapper .living-table-row:hover .action-btn, .living-table-wrapper .living-table-row.is-editing .action-btn { transform: translateX(0); }
        .living-table-wrapper .living-table-row:hover .action-btn:nth-child(2), .living-table-wrapper .living-table-row.is-editing .action-btn:nth-child(2) { transition-delay: 0.05s; }
        .living-table-wrapper .action-btn:hover { background-color: #dfe6ed; transform: scale(1.1); }
        .living-table-wrapper .action-btn.delete:hover { color: #e74c3c; }
        .living-table-wrapper .action-btn.archive:hover { color: #8e44ad; }

        .living-table-wrapper .action-btn::before, .living-table-wrapper .action-btn::after, .living-table-wrapper .bulk-action-btn::before, .living-table-wrapper .bulk-action-btn::after { position: absolute; bottom: 125%; left: 50%; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 10; }
        .living-table-wrapper .action-btn::before, .living-table-wrapper .bulk-action-btn::before { content: attr(data-title); background-color: #2c3e50; color: #ffffff; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 500; white-space: nowrap; transform: translateX(-50%) translateY(5px); }
        .living-table-wrapper .action-btn::after, .living-table-wrapper .bulk-action-btn::after { content: ''; border: 6px solid transparent; border-top-color: #2c3e50; transform: translateX(-50%) translateY(5px); bottom: calc(125% - 12px); }
        .living-table-wrapper .action-btn:hover::before, .living-table-wrapper .action-btn:hover::after, .living-table-wrapper .bulk-action-btn:hover::before, .living-table-wrapper .bulk-action-btn:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

        .living-table-wrapper .table-footer { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; color: #5a677d; font-size: 12px; }
        .living-table-wrapper .pagination-controls { display: flex; align-items: center; gap: 0.5rem; }
        .living-table-wrapper .pagination-btn { border: none; background-color: #eef2f7; color: #5a677d; font-size: 1rem; width: 36px; height: 36px; border-radius: 0.5rem; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
        .living-table-wrapper .pagination-btn:hover:not(:disabled) { background-color: #4f46e5; color: #fff; }
        .living-table-wrapper .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .living-table-wrapper .page-jumper { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #2c3e50; }
        .living-table-wrapper .page-input { width: 45px; height: 36px; border: 2px solid #eef2f7; border-radius: 0.5rem; text-align: center; font-weight: 600; color: #2c3e50; background-color: #fff; font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: all 0.3s ease; -moz-appearance: textfield; }
        .living-table-wrapper .page-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
        .living-table-wrapper .page-input::-webkit-outer-spin-button, .living-table-wrapper .page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

        .living-table-wrapper .living-table-row.is-editing {
            background-color: #f8f9fa;
            box-shadow: 0 0 0 2px #4f46e5 inset;
            cursor: default;
            transform: none !important;
        }
        .living-table-wrapper .editor-wrapper { width: 100%; }
        .living-table-wrapper .row-input,
        .living-table-wrapper .row-select {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid #ced4da;
            border-radius: 0.5rem;
            font-family: 'Inter', sans-serif;
            /* font-size: 0.9rem; */
            transition: all 0.3s ease;
            background-color: #fff;
        }
        .living-table-wrapper .row-input:focus,
        .living-table-wrapper .row-select:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .living-table-wrapper .living-table-row.is-deleted {
            opacity: 0.6;
            background-color: #f8f9fa;
            text-decoration: line-through;
        }
        .living-table-wrapper .living-table-row.is-deleted .row-cell {
            text-decoration: line-through;
        }
        .living-table-wrapper .living-table-row.is-deleted:hover {
            transform: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }
        .living-table-wrapper .living-table-row.is-deleted .status-badge {
            background-color: #e5e7eb;
            color: #6b7280;
        }

        /* --- Contextual Row Styles --- */
        .living-table-wrapper .living-table-row.row-success { background-color: #f0fff4; border-left: 4px solid #28a745; }
        .living-table-wrapper .living-table-row.row-danger { background-color: #fff5f5; border-left: 4px solid #dc3545; }
        .living-table-wrapper .living-table-row.drag-over {
            border-top: 2px solid #4f46e5;
        }
        
        /* --- Empty View --- */
        .living-table-wrapper .living-table-empty-view {
            padding: 2rem 2rem;
            text-align: center;
            color: #7f8c8d;
            font-size: 12px;
            font-weight: 500;
            margin-left: 16px;
            margin-right: 16px;
            opacity: 0; /* Start hidden for animation */
            transform: scale(0.98); /* Start slightly small */
            animation: fadeInEmptyView 0.5s 0.1s ease-out forwards; /* Animation */
        }
        .living-table-wrapper .living-table-empty-view i {
            display: block;
            font-size: 4.5rem; /* Make icon larger */
            margin-bottom: 1.5rem;
            color: #dfe6ed; /* Softer color */
        }
        .living-table-wrapper .living-table-empty-view small {
             font-size: 0.9rem;
             color: #9ab;
             display: block;
             margin-top: 0.5rem;
        }

        /* --- Loading Spinner for Details --- */
        .living-table-wrapper .details-loader {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 50px;
        }
        .living-table-wrapper .details-loader::after {
            content: '';
            width: 24px;
            height: 24px;
            border: 3px solid #eef2f7;
            border-top-color: #4f46e5;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes fadeInEmptyView {
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

		/* === Styles for Globally Appended Elements (Modals, Checkboxes) === */
        .lt-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
        .lt-modal-overlay.is-visible { opacity: 1; visibility: visible; }
        .lt-modal { background-color: #fff; border-radius: 1rem; padding: 2rem; width: 90%; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.3s ease; }
        .lt-modal-overlay.is-visible .lt-modal { transform: scale(1); }
        .lt-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .lt-modal-header h3 { margin: 0; font-size: 1.25rem; color: #2c3e50; }
        .lt-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
        .lt-column-toggle { display: flex; align-items: center; }
        .lt-column-toggle label { margin-left: 0.5rem; color: #34495e; cursor: pointer; }
        .lt-modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; }

        .lt-checkbox-container { display: inline-flex; align-items: center; cursor: pointer; }
        .lt-checkbox-container input { display: none; }
        .lt-checkbox-switch { position: relative; width: 24px; height: 24px; border: 2px solid #bdc3c7; border-radius: 6px; cursor: pointer; overflow: hidden; transition: border-color 0.3s ease; }
        .lt-checkbox-switch::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: #4f46e5; transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1); }
        .lt-checkbox-switch .check-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 18px; height: 18px; stroke: #ffffff; stroke-width: 3; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.4s 0.2s cubic-bezier(0.65, 0, 0.35, 1); }
        .lt-checkbox-container input:checked + .lt-checkbox-switch { border-color: #4f46e5; }
        .lt-checkbox-container input:checked + .lt-checkbox-switch::before { height: 100%; }
        .lt-checkbox-container input:checked + .lt-checkbox-switch .check-icon { stroke-dashoffset: 0; }

        @media (max-width: 767px) {
            .living-table-wrapper .living-table-container { padding: 1rem; }
            .living-table-wrapper .row-actions { opacity: 1; pointer-events: all; right: 1rem; gap: 0.5rem; }
            .living-table-wrapper .action-btn { transform: translateX(0); }
            .living-table-wrapper .table-footer { flex-direction: column; gap: 1rem; }
        }

        .living-table-wrapper .row-cell.force-column {
            flex-direction: column;
            /* Aligns items to the start of the cell instead of center */
            align-items: flex-start; 
        }

/* When animations are disabled, reset the hover transform and shadow to default state */
.living-table-wrapper.animations-disabled .living-table-row:not(.is-editing):hover {
    transform: none !important;
    /* Reset to the default row shadow defined earlier in your CSS */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important; 
    border-color: #eef2f7 !important;
    z-index: auto;
}

/* Prevent the row content from shifting/squishing to the left */
.living-table-wrapper.animations-disabled .living-table-row:not(.is-editing):hover .row-summary {
    padding-right: 0 !important;
}

/* Optional: Add a subtle background to the actions container so they stand out clearly when overlaid */
.living-table-wrapper.animations-disabled .row-actions {
    /* 1. Positioning: Stretch to fill the whole row height */
    top: 0;
    right: 0; 
    height: 100%;
    transform: none; /* Remove the previous translateY(-50%) */

    /* 2. Alignment: Vertically center the buttons inside this full-height container */
    align-items: center;

    /* 3. Visuals: Gradient background and spacing */
    background: linear-gradient(to right, transparent, #ffffff 25%);
    padding-left: 2rem;      /* Space for the fade */
    padding-right: 1.5rem;   /* Maintain original distance from the right edge */
    
    /* 4. Corners: Match the row's rounded corners */
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}