/* Shadcn UI Component Styles for ASP.NET MVC */

/* Sidebar Component Styles */
:root {
    --sidebar-background: hsl(204 80.2% 15.9%);
    --sidebar-foreground: hsl(0, 0%, 98%);
    --sidebar-primary: hsl(204, 78.9%, 20%);
    --sidebar-primary-foreground: hsl(0, 0%, 98%);
    --sidebar-accent: hsl(204, 78.9%, 18%);
    --sidebar-accent-foreground: hsl(0, 0%, 98%);
    --sidebar-border: hsl(204, 78.9%, 12%);
    --sidebar-ring: hsl(204, 78.9%, 40%);
    --sidebar-width: 16rem;
}

.sidebar {
    background-color: var(--sidebar-background);
    color: var(--sidebar-foreground);
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar.collapsed {
    width: 4rem;
}

.sidebar.collapsed .sidebar-menu-button span,
.sidebar.collapsed .sidebar-group-label,
.sidebar.collapsed .sidebar-footer .text-sm span,
.sidebar.collapsed .sidebar-footer .btn-component {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar.collapsed .sidebar-header a {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-menu-button {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu-button i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-footer {
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer .d-flex {
    align-items: center;
    justify-content: center;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: var(--sidebar-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.sidebar-collapse-btn:hover {
    background-color: var(--sidebar-accent);
    opacity: 1;
}

.sidebar-collapse-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 0.25rem 0.5rem;
}

.sidebar-menu-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--sidebar-foreground);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
}

.sidebar-menu-button:hover {
    background-color: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

.sidebar-menu-button.active {
    background-color: var(--sidebar-primary);
    color: var(--sidebar-primary-foreground);
}

.sidebar-menu-button svg,
.sidebar-menu-button i {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-group-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sidebar-foreground);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-content-with-sidebar {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content-with-sidebar.sidebar-collapsed {
    margin-left: 4rem;
}

/* Breadcrumb Component Styles */
.breadcrumb-container {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: hsl(0, 0%, 98%);
    border-bottom: 1px solid hsl(0, 0%, 90%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: hsl(222, 47%, 45%);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: hsl(222, 47%, 35%);
}

.breadcrumb-separator {
    color: hsl(0, 0%, 60%);
    margin: 0 0.25rem;
}

.breadcrumb-page {
    color: hsl(0, 0%, 30%);
    font-weight: 500;
}

/* Table Component Styles */
.table-component {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid hsl(0, 0%, 90%);
}

.table-component table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.table-component thead {
    background-color: hsl(0, 0%, 97%);
    border-bottom: 1px solid hsl(0, 0%, 90%);
}

.table-component th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(0, 0%, 30%);
}

.table-component td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid hsl(0, 0%, 95%);
    font-size: 0.875rem;
}

.table-component tbody tr {
    transition: background-color 0.2s;
}

.table-component tbody tr:hover {
    background-color: hsl(0, 0%, 98%);
}

.table-component tbody tr:last-child td {
    border-bottom: none;
}

/* Card Component Styles */
.card-component {
    background-color: white;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(0, 0%, 90%);
    background-color: hsl(0, 0%, 98%);
}

.card-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.card-description {
    color: hsl(0, 0%, 50%);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid hsl(0, 0%, 90%);
    background-color: hsl(0, 0%, 98%);
}

/* Button Component Styles */
.btn-component {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: hsl(202 80.3% 23.9%);
    color: white;
}

    .btn-primary:hover {
        background-color: hsl(201 90% 27.5%);
        color: white;
    }

.btn-secondary {
    background-color: hsl(0, 0%, 95%);
    color: hsl(0, 0%, 30%);
}

.btn-secondary:hover {
    background-color: hsl(0, 0%, 90%);
}

.btn-outline {
    background-color: transparent;
    border-color: hsl(0, 0%, 90%);
    color: hsl(0, 0%, 30%);
}

.btn-outline:hover {
    background-color: hsl(0, 0%, 97%);
}

.btn-destructive {
    background-color: hsl(0, 84%, 60%);
    color: white;
}

.btn-destructive:hover {
    background-color: hsl(0, 84%, 55%);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* Form Components Styles */
.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: hsl(0, 0%, 20%);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: hsl(222, 47%, 45%);
    box-shadow: 0 0 0 2px hsl(222, 47%, 45%, 0.2);
}

.form-description {
    font-size: 0.8125rem;
    color: hsl(0, 0%, 50%);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8125rem;
    color: hsl(0, 84%, 60%);
    margin-top: 0.25rem;
}

/* Alert Component Styles */
.alert-component {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-default {
    background-color: hsl(0, 0%, 98%);
    border-color: hsl(0, 0%, 90%);
    color: hsl(0, 0%, 20%);
}

.alert-destructive {
    background-color: hsl(0, 84%, 97%);
    border-color: hsl(0, 84%, 85%);
    color: hsl(0, 84%, 40%);
}

.alert-success {
    background-color: hsl(142, 76%, 96%);
    border-color: hsl(142, 76%, 85%);
    color: hsl(142, 76%, 30%);
}

.alert-warning {
    background-color: hsl(48, 96%, 95%);
    border-color: hsl(48, 96%, 80%);
    color: hsl(48, 96%, 35%);
}

.alert-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.alert-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.alert-description {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Pagination Component Styles */
.pagination-component {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(0, 0%, 85%);
    background-color: white;
    color: hsl(0, 0%, 30%);
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    min-width: 2.5rem;
}

.pagination-button:hover:not(.disabled) {
    background-color: hsl(0, 0%, 97%);
    border-color: hsl(0, 0%, 75%);
}

.pagination-button.active {
    background-color: hsl(222, 47%, 45%);
    color: white;
    border-color: hsl(222, 47%, 45%);
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge Component Styles */
.badge-component {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.badge-default {
    background-color: hsl(222, 47%, 45%);
    color: white;
}

.badge-secondary {
    background-color: hsl(0, 0%, 90%);
    color: hsl(0, 0%, 30%);
}

.badge-success {
    background-color: hsl(142, 76%, 36%);
    color: white;
}

.badge-destructive {
    background-color: hsl(0, 84%, 60%);
    color: white;
}

.badge-warning {
    background-color: hsl(48, 96%, 53%);
    color: hsl(48, 96%, 10%);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid hsl(0, 0%, 85%);
    color: hsl(0, 0%, 30%);
}

/* Dialog/Modal Component Styles */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    animation: fadeIn 0.2s ease;
}

.dialog-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 32rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.2s ease;
}

.dialog-header {
    margin-bottom: 1rem;
}

.dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
}

.dialog-description {
    font-size: 0.875rem;
    color: hsl(0, 0%, 50%);
    margin-top: 0.5rem;
}

.dialog-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Textarea Component Styles */
.textarea-component {
    width: 100%;
    min-height: 5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: vertical;
    transition: all 0.2s;
}

.textarea-component:focus {
    outline: none;
    border-color: hsl(222, 47%, 45%);
    box-shadow: 0 0 0 2px hsl(222, 47%, 45%, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content-with-sidebar {
        margin-left: 0;
    }
}

/* Utility Classes */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

/* Tooltip Component */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    color: hsl(222, 47%, 45%);
    background-color: hsl(0, 0%, 100%);
    border: 1.5px solid hsl(222, 47%, 45%);
    border-radius: 50%;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
    margin-left: 0.375rem;
}

.tooltip-trigger:hover {
    background-color: hsl(222, 47%, 45%);
    color: hsl(0, 0%, 100%);
    transform: scale(1.1);
}

.tooltip-content {
    position: absolute;
    z-index: 9999;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: hsl(0, 0%, 100%);
    background-color: hsl(222, 47%, 20%);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: hsl(222, 47%, 20%);
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* For multiline tooltips */
.tooltip-content.multiline {
    white-space: normal;
    max-width: 250px;
}

/* Field Component Styles (shadcn/ui inspired) */
.field-set {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.field-legend {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
    margin-bottom: 0.5rem;
    padding: 0;
}

.field-legend.variant-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field.orientation-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.field.orientation-horizontal .field-label {
    margin-bottom: 0;
    min-width: 120px;
}

.field.orientation-responsive {
    flex-direction: column;
}

@media (min-width: 768px) {
    .field.orientation-responsive {
        flex-direction: row;
        align-items: center;
    }
    
    .field.orientation-responsive .field-label {
        min-width: 150px;
        margin-bottom: 0;
    }
}

.field[data-invalid] .field-label {
    color: hsl(0, 84%, 60%);
}

.field[data-invalid] .form-field-input,
.field[data-invalid] .form-field-select,
.field[data-invalid] .form-field-textarea {
    border-color: hsl(0, 84%, 60%);
}

.field-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.field-label {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: hsl(0, 0%, 20%);
    margin-bottom: 0.5rem;
}

.field-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: hsl(0, 0%, 20%);
}

.field-description {
    font-size: 0.8125rem;
    color: hsl(0, 0%, 50%);
    line-height: 1.5;
}

.field-error {
    font-size: 0.8125rem;
    color: hsl(0, 84%, 60%);
    font-weight: 500;
}

.field-separator {
    height: 1px;
    background-color: hsl(0, 0%, 90%);
    margin: 1.5rem 0;
    position: relative;
}

.field-separator:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: transparent;
}

.field-separator:not(:empty)::before,
.field-separator:not(:empty)::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: hsl(0, 0%, 90%);
}

.field-separator:not(:empty)::before {
    margin-right: 1rem;
}

.field-separator:not(:empty)::after {
    margin-left: 1rem;
}

/* Form field inputs adapted for Field component */
.form-field-input,
.form-field-select,
.form-field-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: white;
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
    outline: none;
    border-color: hsl(222, 47%, 45%);
    box-shadow: 0 0 0 2px hsl(222, 47%, 45%, 0.2);
}

.form-field-input:disabled,
.form-field-select:disabled,
.form-field-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: hsl(0, 0%, 97%);
}

.form-field-textarea {
    min-height: 5rem;
    resize: vertical;
}

/* Dialog Component Styles (Enhanced) */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    animation: fadeIn 0.15s ease;
}

.dialog-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    animation: scaleIn 0.15s ease;
}

.dialog-content {
    background-color: white;
    border-radius: 0.5rem;
    max-width: 32rem;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid hsl(0, 0%, 90%);
}

.dialog-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid hsl(0, 0%, 90%);
}

.dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
    margin: 0;
}

.dialog-description {
    font-size: 0.875rem;
    color: hsl(0, 0%, 50%);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.dialog-body {
    padding: 1.5rem;
}

.dialog-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid hsl(0, 0%, 90%);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background-color: hsl(0, 0%, 98%);
}

.dialog-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    color: hsl(0, 0%, 50%);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.dialog-close:hover {
    background-color: hsl(0, 0%, 95%);
    color: hsl(0, 0%, 20%);
}

/* Scrollable table wrapper */
/* Scrollable table wrapper - CRITICAL: Must have proper overflow */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: block;
}

    /* Remove conflicting table-component overflow */
    .table-scroll-wrapper .table-component {
        width: 100%;
        border: none !important;
        overflow: visible !important;
    }

    .table-scroll-wrapper table {
        width: 100%;
        min-width: 1400px;
        border-collapse: collapse;
        table-layout: auto;
        display: table;
    }

    .table-scroll-wrapper th,
    .table-scroll-wrapper td {
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        padding: 12px 16px;
        text-align: left;
        vertical-align: top;
        line-height: 1.5;
    }

        /* Set minimum widths for columns to ensure readability */
        .table-scroll-wrapper th:nth-child(1),
        .table-scroll-wrapper td:nth-child(1) {
            min-width: 50px;
        }

        .table-scroll-wrapper th:nth-child(2),
        .table-scroll-wrapper td:nth-child(2) {
            min-width: 180px;
        }

        .table-scroll-wrapper th:nth-child(3),
        .table-scroll-wrapper td:nth-child(3) {
            min-width: 180px;
        }

        .table-scroll-wrapper th:nth-child(4),
        .table-scroll-wrapper td:nth-child(4) {
            min-width: 150px;
        }

        .table-scroll-wrapper th:nth-child(5),
        .table-scroll-wrapper td:nth-child(5) {
            min-width: 150px;
        }

        .table-scroll-wrapper th:nth-child(6),
        .table-scroll-wrapper td:nth-child(6) {
            min-width: 160px;
        }

        .table-scroll-wrapper th:nth-child(7),
        .table-scroll-wrapper td:nth-child(7) {
            min-width: 120px;
        }

        .table-scroll-wrapper th:nth-child(8),
        .table-scroll-wrapper td:nth-child(8) {
            min-width: 120px;
        }

        .table-scroll-wrapper th:nth-child(9),
        .table-scroll-wrapper td:nth-child(9) {
            min-width: 130px;
        }

        .table-scroll-wrapper th:nth-child(10),
        .table-scroll-wrapper td:nth-child(10) {
            min-width: 200px;
            max-width: 300px;
        }

        .table-scroll-wrapper th:nth-child(11),
        .table-scroll-wrapper td:nth-child(11) {
            min-width: 150px;
        }

    /* Scrollbar styling */
    .table-scroll-wrapper::-webkit-scrollbar {
        height: 12px;
    }

    .table-scroll-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 6px;
        margin: 0 4px;
    }

    .table-scroll-wrapper::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 6px;
        border: 2px solid #f1f5f9;
    }

        .table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

    /* Sticky actions column */
    .table-scroll-wrapper th:last-child,
    .table-scroll-wrapper td:last-child {
        position: sticky;
        right: 0;
        background: white;
        z-index: 2;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.08);
    }

    .table-scroll-wrapper thead th:last-child {
        z-index: 3;
        background: hsl(0, 0%, 97%);
    }

/* Force scrolling at all zoom levels */
@media screen and (min-width: 1px) {
    .table-scroll-wrapper table {
        min-width: 1400px !important;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .table-scroll-wrapper th,
    .table-scroll-wrapper td {
        padding: 8px 12px;
        font-size: 14px;
    }

    .table-scroll-wrapper table {
        min-width: 1200px !important;
    }
}


/* Card stat boxes */
.card-stat-box {
    padding: 0.75rem;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 0.5rem;
    background-color: hsl(0, 0%, 98%);
}

.card-stat-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(0, 0%, 50%);
}

.card-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(222, 47%, 45%);
}

/* Utility classes for spacing */
.space-y-3 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1.5rem;
}
