﻿/*!
 * Bootstrap Design System CSS v1.0
 * Complete design system with Poppins font integration
 * Primary Color: #005a90 | Secondary Border: #005090
 * Base Font Size: 14px | Font Stack: 'Poppins', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif
 */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Design Tokens */
:root {
    /* Typography */
    --ds-font-family: 'Poppins', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --ds-font-size-base: 14px;
    --ds-font-weight-normal: 400;
    --ds-font-weight-medium: 500;
    --ds-font-weight-semibold: 600;
    --ds-font-weight-bold: 700;
    --ds-line-height: 1.5;
    /* Colors */
    --ds-primary: #005a90;
    --ds-primary-rgb: 0, 90, 144;
    --ds-secondary-border: #005090;
    --ds-secondary-border-rgb: 0, 80, 144;
    --ds-white: #ffffff;
    --ds-gray-50: #f9fafb;
    --ds-gray-100: #f3f4f6;
    --ds-gray-200: #e5e7eb;
    --ds-gray-300: #d1d5db;
    --ds-gray-400: #9ca3af;
    --ds-gray-500: #6b7280;
    --ds-gray-600: #4b5563;
    --ds-gray-700: #374151;
    --ds-gray-800: #1f2937;
    --ds-gray-900: #111827;
    --ds-success: #10b981;
    --ds-warning: #f59e0b;
    --ds-error: #ef4444;
    --ds-info: #3b82f6;
    --ds-muted: #ececf0;
    --ds-muted-foreground: #717182;
    /* Border and Radius */
    --ds-border-width: 1px;
    --ds-border-color: rgba(0, 0, 0, 0.1);
    --ds-border-radius: 0.625rem;
    --ds-border-radius-sm: calc(var(--ds-border-radius) - 0.125rem);
    --ds-border-radius-lg: calc(var(--ds-border-radius) + 0.25rem);
    /* Spacing */
    --ds-spacing-1: 0.25rem;
    --ds-spacing-2: 0.5rem;
    --ds-spacing-3: 0.75rem;
    --ds-spacing-4: 1rem;
    --ds-spacing-5: 1.25rem;
    --ds-spacing-6: 1.5rem;
    --ds-spacing-8: 2rem;
    --ds-spacing-12: 3rem;
    --ds-spacing-16: 4rem;
    /* Transitions */
    --ds-transition: all 0.15s ease-in-out;
    /* Shadows */
    --ds-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ds-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ds-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ds-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
/*html {
    font-size: var(--ds-font-size-base);
    font-family: var(--ds-font-family);
}

body {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
    color: var(--ds-gray-900);
    background-color: var(--ds-white);
}*/

/* Typography Classes */
.ds-h1,
h1 {
    font-family: var(--ds-font-family);
    font-size: 1.75rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-4);
}

.ds-h2,
h2 {
    font-family: var(--ds-font-family);
    font-size: 1.5rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-3);
}

.ds-h3,
h3 {
    font-family: var(--ds-font-family);
    font-size: 1.25rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-3);
}

.ds-h4,
h4 {
    font-family: var(--ds-font-family);
    font-size: 1rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-2);
}

.ds-h5,
h5 {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-2);
}

.ds-h6,
h6 {
    font-family: var(--ds-font-family);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-2);
}

.ds-body-1,
p {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-3);
}

.ds-body-2 {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
}

.ds-caption {
    font-family: var(--ds-font-family);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
    color: var(--ds-muted-foreground);
}

/* Font Weight Utilities */
.ds-font-normal {
    font-weight: var(--ds-font-weight-normal);
}

.ds-font-medium {
    font-weight: var(--ds-font-weight-medium);
}

.ds-font-semibold {
    font-weight: var(--ds-font-weight-semibold);
}

.ds-font-bold {
    font-weight: var(--ds-font-weight-bold);
}

/* Color Utilities */
.ds-text-primary {
    color: var(--ds-primary);
}

.ds-text-muted {
    color: var(--ds-muted-foreground);
}

.ds-text-success {
    color: var(--ds-success);
}

.ds-text-warning {
    color: var(--ds-warning);
}

.ds-text-error {
    color: var(--ds-error);
}

.ds-text-info {
    color: var(--ds-info);
}

.ds-bg-primary {
    background-color: var(--ds-primary);
}

.ds-bg-muted {
    background-color: var(--ds-muted);
}

.ds-bg-success {
    background-color: var(--ds-success);
}

.ds-bg-warning {
    background-color: var(--ds-warning);
}

.ds-bg-error {
    background-color: var(--ds-error);
}

.ds-bg-info {
    background-color: var(--ds-info);
}

/* Button Components */
.btn,
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    text-decoration: none;
    border: var(--ds-border-width) solid transparent;
    border-radius: var(--ds-border-radius);
    padding: var(--ds-spacing-2) var(--ds-spacing-4);
    transition: var(--ds-transition);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    vertical-align: middle;
}

.btn:focus,
.ds-btn:focus {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary,
.ds-btn-primary {
    background-color: var(--ds-primary);
    color: var(--ds-white);
    border-color: var(--ds-primary);
}

.btn-primary:hover,
.ds-btn-primary:hover {
    background-color: rgba(var(--ds-primary-rgb), 0.9);
    border-color: rgba(var(--ds-primary-rgb), 0.9);
    color: var(--ds-white);
}

.btn-primary:active,
.ds-btn-primary:active {
    background-color: rgba(var(--ds-primary-rgb), 0.8);
    border-color: rgba(var(--ds-primary-rgb), 0.8);
    transform: translateY(1px);
}

/* Secondary Button */
.btn-secondary,
.ds-btn-secondary {
    background-color: transparent;
    color: var(--ds-primary);
    border-color: var(--ds-secondary-border);
}

.btn-secondary:hover,
.ds-btn-secondary:hover {
    background-color: var(--ds-secondary-border);
    color: var(--ds-white);
    border-color: var(--ds-secondary-border);
}

.btn-secondary:active,
.ds-btn-secondary:active {
    background-color: rgba(var(--ds-secondary-border-rgb), 0.8);
    border-color: rgba(var(--ds-secondary-border-rgb), 0.8);
}

/* Tertiary Button */
.btn-tertiary,
.ds-btn-tertiary {
    background-color: transparent;
    color: var(--ds-primary);
    border-color: transparent;
    text-decoration: underline;
}

.btn-tertiary:hover,
.ds-btn-tertiary:hover {
    background-color: rgba(var(--ds-primary-rgb), 0.1);
    color: var(--ds-primary);
    text-decoration: underline;
}

/* Destructive Button */
.btn-danger,
.btn-destructive,
.ds-btn-destructive {
    background-color: var(--ds-error);
    color: var(--ds-white);
    border-color: var(--ds-error);
}

.btn-danger:hover,
.btn-destructive:hover,
.ds-btn-destructive:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: var(--ds-white);
}

/* Button Sizes */
.btn-sm,
.ds-btn-sm {
    font-size: 0.875rem;
    padding: var(--ds-spacing-1) var(--ds-spacing-3);
}

.btn-lg,
.ds-btn-lg {
    font-size: 1.125rem;
    padding: var(--ds-spacing-3) var(--ds-spacing-6);
}

.btn-icon,
.ds-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* Button States */
.btn:disabled,
.ds-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Card Components */
.card,
.ds-card {
    background-color: var(--ds-white);
    border: var(--ds-border-width) solid var(--ds-border-color);
    border-radius: var(--ds-border-radius);
    box-shadow: var(--ds-shadow-sm);
    overflow: hidden;
}

.card-header,
.ds-card-header {
    padding: var(--ds-spacing-4) var(--ds-spacing-4) 0;
    margin-bottom: var(--ds-spacing-4);
}

.card-title,
.ds-card-title {
    font-family: var(--ds-font-family);
    font-size: 1.25rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-2);
    color: var(--ds-primary);
}

.card-description,
.ds-card-description {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
    color: var(--ds-muted-foreground);
}

.card-body,
.card-content,
.ds-card-content {
    padding: 0 var(--ds-spacing-4) var(--ds-spacing-4);
}

.card-footer,
.ds-card-footer {
    padding: 0 var(--ds-spacing-4) var(--ds-spacing-4);
    display: flex;
    align-items: center;
    gap: var(--ds-spacing-2);
}

.card:hover,
.ds-card:hover {
    box-shadow: var(--ds-shadow-md);
    transition: var(--ds-transition);
}

/* Badge Components */
.badge,
.ds-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--ds-font-family);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: 1;
    padding: var(--ds-spacing-1) var(--ds-spacing-2);
    border-radius: var(--ds-border-radius-sm);
    background-color: var(--ds-muted);
    color: var(--ds-muted-foreground);
}

.badge-primary,
.ds-badge-primary {
    background-color: var(--ds-primary);
    color: var(--ds-white);
}

.badge-secondary,
.ds-badge-secondary {
    background-color: var(--ds-gray-100);
    color: var(--ds-gray-800);
}

.badge-success,
.ds-badge-success {
    background-color: var(--ds-success);
    color: var(--ds-white);
}

.badge-warning,
.ds-badge-warning {
    background-color: var(--ds-warning);
    color: var(--ds-white);
}

.badge-danger,
.ds-badge-danger {
    background-color: var(--ds-error);
    color: var(--ds-white);
}

/* Tab Components */
.nav-tabs,
.ds-tabs {
    display: flex;
    background-color: var(--ds-muted);
    border-radius: var(--ds-border-radius);
    padding: var(--ds-spacing-1);
    gap: var(--ds-spacing-1);
}

.nav-tabs.capsule {
    background-color: var(--as-white) !important;
    border: 1px solid var(--as-steel-blue);
    border-radius: 3rem;
    padding: 0 !important;
    gap: 0 !important;
}

.nav-tabs .nav-link,
.ds-tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    color: var(--ds-muted-foreground);
    background-color: transparent;
    border: none;
    border-radius: calc(var(--ds-border-radius) - var(--ds-spacing-1));
    padding: var(--ds-spacing-2) var(--ds-spacing-4);
    text-decoration: none;
    transition: var(--ds-transition);
    cursor: pointer;
    gap: var(--ds-spacing-2);
}

.nav-tabs .nav-link:hover,
.ds-tab-trigger:hover {
    color: var(--ds-gray-900);
    background-color: rgba(255, 255, 255, 0.8);
}

.nav-tabs .nav-link.active,
.ds-tab-trigger.active,
.ds-tab-trigger[data-state="active"] {
    background-color: var(--ds-white);
    color: var(--ds-primary);
    box-shadow: var(--ds-shadow);
}

.nav-tabs .nav-link.active:hover,
.ds-tab-trigger.active:hover,
.ds-tab-trigger[data-state="active"]:hover {
    color: var(--ds-primary);
    background-color: var(--ds-white);
}

.nav-link.button {
    background-color: var(--as-white);
    color: var(--as-steel-blue) !important;
    width: 10rem;
    border-radius: 3rem !important;
    margin-bottom: 0 !important;
}

.nav-link.button.active {
    background-color: var(--as-steel-blue);
    color: var(--as-white) !important;
}

.nav-link.button.active:hover {
    background-color: var(--as-steel-blue);
    color: var(--as-white) !important;
}

/* Tab Content */
.tab-content,
.ds-tab-content {
    margin-top: var(--ds-spacing-4);
    padding: var(--ds-spacing-4);
    border-radius: var(--ds-border-radius);
    border: var(--ds-border-width) solid var(--ds-border-color);
    background-color: var(--ds-white);
}

/* Underline Tab Variant */
.nav-tabs-underline,
.ds-tabs-underline {
    background-color: transparent;
    border-bottom: var(--ds-border-width) solid var(--ds-border-color);
    border-radius: 0;
    padding: 0;
    gap: 0;
}

.nav-tabs-underline .nav-link,
.ds-tab-trigger-underline {
    background-color: transparent;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: var(--ds-spacing-3) var(--ds-spacing-4);
    margin-bottom: -1px;
    color: var(--ds-gray-400);
}

.nav-tabs-underline .nav-link:hover,
.ds-tab-trigger-underline:hover {
    background-color: rgba(var(--ds-primary-rgb), 0.05);
    border-bottom-color: rgba(var(--ds-primary-rgb), 0.5);
}

.nav-tabs-underline .nav-link.active,
.ds-tab-trigger-underline.active,
.ds-tab-trigger-underline[data-state="active"] {
    background-color: transparent;
    border-bottom-color: var(--ds-primary);
    color: var(--ds-primary);
    box-shadow: none;
}

.nav-tabs-underline .nav-link.inactive,
.ds-tab-trigger-underline.inactive,
.ds-tab-trigger-underline[data-state="inactive"] {
    background-color: transparent;
    color: var(--ds-primary);
    box-shadow: none;
}

.nav-tabs-underline .nav-link.active:hover,
.ds-tab-trigger-underline.active:hover,
.ds-tab-trigger-underline[data-state="active"]:hover {
    background-color: rgba(var(--ds-primary-rgb), 0.05);
}

.tab-content-underline,
.ds-tab-content-underline {
    border: none;
    padding: var(--ds-spacing-4) 0;
    margin-top: 0;
}

/* Tab Size Variants */
.nav-tabs-sm .nav-link,
.ds-tab-trigger-sm {
    padding: var(--ds-spacing-1) var(--ds-spacing-3);
    font-size: 0.75rem;
}

.nav-tabs-lg .nav-link,
.ds-tab-trigger-lg {
    padding: var(--ds-spacing-3) var(--ds-spacing-6);
    font-size: 1rem;
}

/* Status Filter Components */

/* Badge Style Status Filters */
.status-filter,
.ds-status-filter {
    display: inline-flex;
    align-items: center;
    font-family: var(--ds-font-family);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: 2;
    padding: var(--ds-spacing-1) var(--ds-spacing-2);
    border-radius: var(--ds-border-radius-sm);
    background-color: var(--ds-muted);
    color: var(--ds-muted-foreground);
    border: var(--ds-border-width) solid transparent;
    cursor: pointer;
    transition: var(--ds-transition);
    gap: var(--ds-spacing-1);
}

@media (max-width: 1366px) {

    .status-filter,
    .ds-status-filter {
        font-size: 0.6875rem;
        padding: var(--ds-spacing-1) var(--ds-spacing-2);
    }
}

.status-filter:hover,
.ds-status-filter:hover {
    background-color: var(--ds-gray-200);
    color: var(--ds-gray-900);
}

.status-filter.active,
.status-filter-active,
.ds-status-filter-active {
    background-color: var(--ds-primary);
    color: var(--ds-white);
    border-color: var(--ds-primary);
}

.status-filter.active:hover,
.status-filter-active:hover,
.ds-status-filter-active:hover {
    background-color: rgba(var(--ds-primary-rgb), 0.9);
}

.status-filter:disabled,
.ds-status-filter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Status Filter Count Badge */
.status-count,
.ds-status-count {
    background-color: var(--ds-white);
    color: var(--ds-muted-foreground);
    font-size: 0.625rem;
    padding: 0.125rem var(--ds-spacing-1);
    border-radius: 0.75rem;
    margin-left: var(--ds-spacing-1);
    min-width: 1.25rem;
    text-align: center;
}

.status-filter.active .status-count,
.status-filter-active .status-count,
.ds-status-filter-active .ds-status-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--ds-white);
}

/* Button Style Status Filters */
/*.status-filter-btn, .ds-status-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    padding: var(--ds-spacing-2) var(--ds-spacing-4);
    border-radius: var(--ds-border-radius);
    background-color: transparent;
    color: var(--ds-muted-foreground);
    border: var(--ds-border-width) solid var(--ds-border-color);
    cursor: pointer;
    transition: var(--ds-transition);
    gap: var(--ds-spacing-2);
}

    .status-filter-btn:hover, .ds-status-filter-btn:hover {
        background-color: var(--ds-muted);
        color: var(--ds-gray-900);
        border-color: var(--ds-border-color);
    }

    .status-filter-btn.active, .status-filter-btn-active, .ds-status-filter-btn-active {
        background-color: var(--ds-primary);
        color: var(--ds-white);
        border-color: var(--ds-primary);
    }

        .status-filter-btn.active:hover, .status-filter-btn-active:hover, .ds-status-filter-btn-active:hover {
            background-color: rgba(var(--ds-primary-rgb), 0.9);
        }*/

/* Chip Style Status Filters */
/*.status-chip, .ds-status-chip {
    display: inline-flex;
    align-items: center;
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    padding: var(--ds-spacing-1) var(--ds-spacing-3);
    border-radius: var(--ds-border-radius-lg);
    background-color: var(--ds-muted);
    color: var(--ds-muted-foreground);
    border: var(--ds-border-width) solid var(--ds-border-color);
    cursor: pointer;
    transition: var(--ds-transition);
    gap: var(--ds-spacing-2);
}

    .status-chip:hover, .ds-status-chip:hover {
        background-color: var(--ds-gray-200);
        color: var(--ds-gray-900);
    }

    .status-chip.active, .status-chip-active, .ds-status-chip-active {
        background-color: rgba(var(--ds-primary-rgb), 0.15);
        color: var(--ds-primary);
        border-color: var(--ds-primary);
    }

        .status-chip.active:hover, .status-chip-active:hover, .ds-status-chip-active:hover {
            background-color: rgba(var(--ds-primary-rgb), 0.2);
        }

.status-chip-remove, .ds-status-chip-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    margin-left: var(--ds-spacing-1);
}

    .status-chip-remove:hover, .ds-status-chip-remove:hover {
        background-color: rgba(239, 68, 68, 0.15);
        color: var(--ds-error);
    }*/

/* Status Filter Groups */
.status-filter-group,
.ds-status-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-spacing-2);
    align-items: center;
}

.status-filter-group-inline,
.ds-status-filter-group-inline {
    display: flex;
    gap: var(--ds-spacing-1);
    align-items: center;
}

.status-filter-group-stacked,
.ds-status-filter-group-stacked {
    display: flex;
    flex-direction: column;
    gap: var(--ds-spacing-2);
    align-items: flex-start;
}

/* Status Filter Sizes */
.status-filter-sm,
.ds-status-filter-sm {
    font-size: 0.6875rem;
    padding: var(--ds-spacing-1) var(--ds-spacing-2);
}

.status-filter-lg,
.ds-status-filter-lg {
    font-size: 0.9375rem;
    padding: var(--ds-spacing-2) var(--ds-spacing-5);
}

/* Status Color Variants */
.status-filter-success,
.ds-status-filter-success {
    background-color: var(--ds-success);
    color: var(--ds-white);
    border-color: var(--ds-success);
}

.status-filter-warning,
.ds-status-filter-warning {
    background-color: var(--ds-warning);
    color: var(--ds-white);
    border-color: var(--ds-warning);
}

.status-filter-error,
.ds-status-filter-error {
    background-color: var(--ds-error);
    color: var(--ds-white);
    border-color: var(--ds-error);
}

.status-filter-info,
.ds-status-filter-info {
    background-color: var(--ds-info);
    color: var(--ds-white);
    border-color: var(--ds-info);
}

.status-filter-neutral,
.ds-status-filter-neutral {
    background-color: var(--ds-gray-500);
    color: var(--ds-white);
    border-color: var(--ds-gray-500);
}

/* Clear Filter Button */
.status-filter-clear,
.ds-status-filter-clear {
    font-family: var(--ds-font-family);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-medium);
    padding: var(--ds-spacing-1) var(--ds-spacing-2);
    background: none;
    color: var(--ds-muted-foreground);
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.status-filter-clear:hover,
.ds-status-filter-clear:hover {
    color: var(--ds-primary);
}

/* Work Order Details */

.as-backgroud-muted {
    background-color: var(--as-muted);
}

.background-workorder-sealingdetails {
    background-color: var(--as-white) !important;
    border-radius: 8px;
}

.no-uppercase-tabs .mud-tab {
    text-transform: none;
    min-height: 40px;
    min-width: 130px !important;
}

.notes-field .mud-input-label {
    color: var(--as-steel-blue) !important;
}

.notes-field .mud-input-outlined-border {
    border-color: var(--as-steel-blue) !important;
}

.wo-grid {
    height: 100%;
    width: 100%;
}

/*** Work Orders Calendar View***/

.gap-05 {
    gap: 0.5rem;
}

.legend-container {
    display: flex;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.event {
    border: 3px solid white;
    border-radius: 5px;
    color: white;
}

.data-truncate {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.wo-status-new {
    background-color: var(--as-wo-status-new);
    text-align: center;
    color: var(--as-steel-blue);
}

.wo-status-assigned {
    background-color: var(--as-wo-status-assigned);
    text-align: center;
    color: var(--as-steel-blue);
}

.wo-status-scheduled {
    background-color: var(--as-wo-status-scheduled);
    text-align: center;
    color: var(--as-white);
}

.wo-status-tentative {
    background-color: var(--as-wo-status-tentative);
    text-align: center;
    color: var(--as-black);
}

.wo-status-timeblock {
    background-color: var(--as-wo-status-timeblock);
    text-align: center;
    color: var(--as-steel-blue);
}

.wo-status-reschedule {
    background-color: var(--as-wo-status-reschedule);
    text-align: center;
    color: var(--as-white);
}

.wo-status-unscheduled {
    background-color: var(--as-wo-status-unscheduled);
    text-align: center;
    color: var(--as-white);
}

.wo-status-claimed {
    background-color: var(--as-wo-status-claimed);
    text-align: center;
    color: var(--as-white);
}

.wo-status-fulfilled {
    background-color: var(--as-wo-status-fulfilled);
    text-align: center;
    color: var(--as-steel-blue);
}

.wo-status-invoiced {
    background-color: var(--as-wo-status-invoiced);
    text-align: center;
    color: var(--as-white);
}

.today-highlight .rz-slot-title {
    background-color: var(--as-light-gray);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-weight: bold;
}

.scheduler-empty-slot,
.slot-has-events {
    display: flex;
    justify-content: space-between;
    padding-right: 0.5rem;
    cursor: pointer;
}

.slot-has-events:hover::after,
.scheduler-empty-slot:hover::after {
    content: "+ Add";
    display: inline;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--as-blue);
    pointer-events: none;
}

.scheduler-slot {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.scheduler-slot-with-add {
    position: relative;
}

.scheduler-slot-with-add::after {
    content: attr(data-add-label);
    display: none;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.85rem;
    color: var(--as-wo-sub-status-scheduled);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scheduler-slot-with-add:hover::after {
    display: inline;
}

.hide-scrollbar {
    overflow-x: auto;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.wo-status-chip {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
    text-transform: capitalize !important;
    letter-spacing: 0.5px !important;
    width: 8.5rem;
}

.wo-status-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
}

.wo-status-chip:active {
    transform: translateY(0);
}

.wo-status-chip .mud-icon-root {
    font-size: 1.1em;
    margin-right: 4px;
}

.wo-status-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wo-status-chip:hover::before {
    left: 100%;
}

.as-status-cell {
    padding: 0 !important;
    align-items: center;
}

.scheduler-filter-overlay {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0.15rem 0.25rem;
}

.as-no-padding {
    padding: 0 !important;
}

.rz-scheduler-nav {
    display: flex;
    white-space: nowrap;
    padding: var(--rz-scheduler-toolbar-padding);
    background: var(--rz-scheduler-toolbar-background-color);
}

.rz-scheduler-nav-title {
    width: 205px;
}

.rz-scheduler-nav-prev-next {
    width: 140px;
}

.technician.mud-chip {
    font-size: 0.75rem;
    background-color: #FBAD20 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scheduler-filter-wrapper {
    position: relative;
}

.technician-chips {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.technician.mud-chip.selected-chip,
.mud-chip.selected-chip {
    background-color: var(--as-steel-blue) !important;
    color: white !important;
    font-weight: bold;
}

@media (hover: hover) and (pointer: fine) {
    .technician.mud-chip:hover:not(.mud-disabled) {
        box-shadow: none !important;
    }
}

.workorder-cards-scroll {
    height: calc(100vh - 275px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.workorder-cards-scroll .card {
    margin-bottom: 0.5rem;
}

.workorder-cards-scroll .card:last-child {
    margin-bottom: 1rem;
}


.rz-scheduler {
    height: 100% !important;
}

.workorder-cards-width {
    width: 320px;
}

.unschedule-drop-zone {
    border: 1px solid var(--as-steel-blue) !important;
    border-radius: 6px !important;
    padding: 1rem;
    text-align: center;
    color: #f44336;
    font-weight: 500;
    height: 15%;
    margin-bottom: 12%;
    margin-top: 10px;
    margin-right: 18px;
    background-color: seashell;
    justify-content: center;
}

.highlight-on-dragover {
    background-color: var(--rz-info-light);
}

/*** End Of Work Orders Calendar View***/
/* Work Order Import from Excel */
.fixed-width {
    width: 225px;
}

.as-sub-heading {
    color: var(--as-dark-blue);
    font-size: 14pt;
    font-weight: 500;
}

.as-link-underline {
    text-decoration: underline !important;
    cursor: pointer;
}

.as-import-dialog {
    min-height: 350px;
    border-radius: 9px;
}


.alert-centered {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px;
}


.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
}

.as-dialog-width {
    min-width: 850px;
}

.error-details-grid .mud-table-head .mud-table-cell:not(.error-grid-locked-header) {
    background-color: var(--as-light-blue) !important;
    color: var(--as-steel-blue) !important;
    border-bottom: 2px solid #e0e0e0;
}

.error-details-grid.mud-table-sticky-header .mud-table-head .mud-table-cell {
    position: sticky;
    top: 0;
    z-index: 8;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.invalid-cell {
    background-color: #ffebee;
    color: #b71c1c;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    display: inline-block;
}

.warning-cell {
    background-color: #fff8e1;
    color: #e65100;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffe0b2;
    display: inline-block;
}

.alert-issues-found {
    background-color: #fef2f2;
    border-left: 4px solid #fb2c36;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-issues-found-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #82181a;
    margin-top: 2px;
}

.alert-issues-found-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-issues-found-heading {
    font-size: 16px;
    font-weight: 600;
    color: #82181a;
    margin: 0;
    line-height: 24px;
}

.alert-issues-found-message {
    font-size: 14px;
    color: #9f0712;
    margin: 0;
    line-height: 20px;
    word-wrap: break-word;
    white-space: normal;
}

.data-grid-container {
    background-color: #eff6ff;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.error-details-grid .mud-table-head .mud-table-cell {
    background-color: var(--as-light-blue) !important;
    color: var(--as-steel-blue) !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    text-transform: none !important;
}

.error-details-grid .mud-table-head .mud-table-cell.error-grid-locked-header {
    background-color: var(--as-light-blue) !important;
    color: var(--as-steel-blue) !important;
    border-right: 2px solid #ffffff !important;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: 12 !important;
}

.error-type-cell {
    background-color: #f8fafc !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

.error-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}

.error-type-badge.duplicate {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.error-type-badge.invalid {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.error-type-badge .mud-icon-root {
    font-size: 16px;
}

/* Make dialog content scroll if tall */
.as-dialog-content-scroll {
    max-height: min(70vh, 800px);
    overflow: auto;
}

/* Keep dialog actions visible at the bottom of the dialog */
.as-dialog-actions-fixed {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.as-dialog-background {
    background-color: var(--as-light-blue) !important;
    border-radius: 9px;
    pointer-events: auto;
    cursor: pointer;
}

.as-drag-drop-border {
    border-style: solid;
    border-width: 1px;
}

.wo-dialog {
    padding: 16px;
}

.wo-dialog .toolbar {
    gap: 8px;
    flex-wrap: wrap;
}

.wo-divider {
    opacity: 0.8;
    border-color: #005A9020;
}

.column-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px 2px;
}

.column-item {
    padding-inline: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.column-item:last-child {
    border-bottom: none;
}

.column-item:hover {
    background: #005A9010;
    border-radius: 6px;
}


.wo-dialog-actions {
    padding: 8px 16px;
    gap: 8px;
}

.mud-checkbox .mud-typography {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-item .mud-icon-root {
    margin-left: 8px;
}

/* HEADER CELLS */
.error-details-grid .mud-table-head .mud-table-cell.error-grid-locked-header:nth-of-type(1) {
    left: 0;
    z-index: 12;
}

.error-details-grid .mud-table-head .mud-table-cell.error-grid-locked-header:nth-of-type(2) {
    left: 160px;
    z-index: 12;
}

.error-details-grid .mud-table-head .mud-table-cell.error-grid-locked-header:nth-of-type(3) {
    left: 230px;
    z-index: 12;
}

/* BODY CELLS */
.error-details-grid .mud-table-body .mud-table-cell:nth-of-type(1) {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f8fafc;
}

.error-details-grid .mud-table-body .mud-table-cell:nth-of-type(2) {
    position: sticky;
    left: 160px;
    z-index: 10;
    background: #f8fafc;
}

.error-details-grid .mud-table-body .mud-table-cell:nth-of-type(3) {
    position: sticky;
    left: 230px;
    z-index: 10;
    background: #f8fafc;
}

.as-dialog-title {
    padding: 5px 24px !important;
}

.as-table-row {
    min-width: 70px;
}

.as-table-errorfields {
    min-width: 220px;
}

.as-table-cell-errorfields {
    min-width: 220px;
    max-width: 360px;
    white-space: normal;
    word-wrap: break-word;
}

/*** End of Work Orders Import from Excel***/
/* Layout Utilities */
.ds-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ds-spacing-4);
    padding-right: var(--ds-spacing-4);
}

/* start nps dashboard styles */
.card-border {
    border: 1px solid var(--as-light-blue);
    padding: 15px;
    border-radius: 4px;
}

.vertical-divider {
    border-left: 1px inset var(--as-blue);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.2;
    margin-right: 0.5rem;
}

.nps-trend-chart {
    height: 360px !important;
}

.nps-trend-chart .mud-charts-grid path {
    stroke-width: 1px !important;
    stroke: #c0c0c0 !important;
}

.nps-trend-chart path.mud-chart-line {
    stroke: var(--as-steel-blue) !important;
    stroke-width: 1px !important;
    fill: none !important;
}

.nps-trend-chart text {
    fill: currentColor !important;
    font-family: var(--ds-font-family);
    font-weight: 400;
    font-size: 11px;
}

.no-padding {
    padding: 0 !important;
}

.no-wrap {
    white-space: nowrap !important;
}

/** end nps dashboard styles ***/

@media (min-width: 640px) {
    .ds-container {
        padding-left: var(--ds-spacing-6);
        padding-right: var(--ds-spacing-6);
    }
}

@media (min-width: 1024px) {
    .ds-container {
        padding-left: var(--ds-spacing-8);
        padding-right: var(--ds-spacing-8);
    }
}

/* Grid System */
.ds-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--ds-spacing-3));
    margin-right: calc(-1 * var(--ds-spacing-3));
}

.ds-col {
    flex: 1 0 0%;
    padding-left: var(--ds-spacing-3);
    padding-right: var(--ds-spacing-3);
}

.ds-col-auto {
    flex: 0 0 auto;
    width: auto;
    padding-left: var(--ds-spacing-3);
    padding-right: var(--ds-spacing-3);
}

.ds-col-1 {
    flex: 0 0 auto;
    width: 8.333333%;
}

.ds-col-2 {
    flex: 0 0 auto;
    width: 16.666667%;
}

.ds-col-3 {
    flex: 0 0 auto;
    width: 25%;
}

.ds-col-4 {
    flex: 0 0 auto;
    width: 33.333333%;
}

.ds-col-5 {
    flex: 0 0 auto;
    width: 41.666667%;
}

.ds-col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.ds-col-7 {
    flex: 0 0 auto;
    width: 58.333333%;
}

.ds-col-8 {
    flex: 0 0 auto;
    width: 66.666667%;
}

.ds-col-9 {
    flex: 0 0 auto;
    width: 75%;
}

.ds-col-10 {
    flex: 0 0 auto;
    width: 83.333333%;
}

.ds-col-11 {
    flex: 0 0 auto;
    width: 91.666667%;
}

.ds-col-12 {
    flex: 0 0 auto;
    width: 100%;
}

[class*="ds-col"] {
    padding-left: var(--ds-spacing-3);
    padding-right: var(--ds-spacing-3);
}

/* Responsive Grid */
@media (min-width: 576px) {
    .ds-col-sm-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .ds-col-sm-2 {
        flex: 0 0 auto;
        width: 16.666667%;
    }

    .ds-col-sm-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .ds-col-sm-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .ds-col-sm-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .ds-col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .ds-col-sm-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .ds-col-sm-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .ds-col-sm-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .ds-col-sm-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }

    .ds-col-sm-11 {
        flex: 0 0 auto;
        width: 91.666667%;
    }

    .ds-col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .ds-col-md-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .ds-col-md-2 {
        flex: 0 0 auto;
        width: 16.666667%;
    }

    .ds-col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .ds-col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .ds-col-md-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .ds-col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .ds-col-md-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .ds-col-md-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .ds-col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .ds-col-md-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }

    .ds-col-md-11 {
        flex: 0 0 auto;
        width: 91.666667%;
    }

    .ds-col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .ds-col-lg-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .ds-col-lg-2 {
        flex: 0 0 auto;
        width: 16.666667%;
    }

    .ds-col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .ds-col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .ds-col-lg-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .ds-col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .ds-col-lg-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .ds-col-lg-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .ds-col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .ds-col-lg-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }

    .ds-col-lg-11 {
        flex: 0 0 auto;
        width: 91.666667%;
    }

    .ds-col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .ds-col-xl-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .ds-col-xl-2 {
        flex: 0 0 auto;
        width: 16.666667%;
    }

    .ds-col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .ds-col-xl-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .ds-col-xl-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .ds-col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .ds-col-xl-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .ds-col-xl-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .ds-col-xl-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .ds-col-xl-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }

    .ds-col-xl-11 {
        flex: 0 0 auto;
        width: 91.666667%;
    }

    .ds-col-xl-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Spacing Utilities */
.ds-m-0 {
    margin: 0;
}

.ds-m-1 {
    margin: var(--ds-spacing-1);
}

.ds-m-2 {
    margin: var(--ds-spacing-2);
}

.ds-m-3 {
    margin: var(--ds-spacing-3);
}

.ds-m-4 {
    margin: var(--ds-spacing-4);
}

.ds-m-5 {
    margin: var(--ds-spacing-5);
}

.ds-m-6 {
    margin: var(--ds-spacing-6);
}

.ds-mt-0 {
    margin-top: 0;
}

.ds-mt-1 {
    margin-top: var(--ds-spacing-1);
}

.ds-mt-2 {
    margin-top: var(--ds-spacing-2);
}

.ds-mt-3 {
    margin-top: var(--ds-spacing-3);
}

.ds-mt-4 {
    margin-top: var(--ds-spacing-4);
}

.ds-mt-5 {
    margin-top: var(--ds-spacing-5);
}

.ds-mt-6 {
    margin-top: var(--ds-spacing-6);
}

.ds-mb-0 {
    margin-bottom: 0;
}

.ds-mb-1 {
    margin-bottom: var(--ds-spacing-1);
}

.ds-mb-2 {
    margin-bottom: var(--ds-spacing-2);
}

.ds-mb-3 {
    margin-bottom: var(--ds-spacing-3);
}

.ds-mb-4 {
    margin-bottom: var(--ds-spacing-4);
}

.ds-mb-5 {
    margin-bottom: var(--ds-spacing-5);
}

.ds-mb-6 {
    margin-bottom: var(--ds-spacing-6);
}

.ds-p-0 {
    padding: 0;
}

.ds-p-1 {
    padding: var(--ds-spacing-1);
}

.ds-p-2 {
    padding: var(--ds-spacing-2);
}

.ds-p-3 {
    padding: var(--ds-spacing-3);
}

.ds-p-4 {
    padding: var(--ds-spacing-4);
}

.ds-p-5 {
    padding: var(--ds-spacing-5);
}

.ds-p-6 {
    padding: var(--ds-spacing-6);
}

.ds-pt-0 {
    padding-top: 0;
}

.ds-pt-1 {
    padding-top: var(--ds-spacing-1);
}

.ds-pt-2 {
    padding-top: var(--ds-spacing-2);
}

.ds-pt-3 {
    padding-top: var(--ds-spacing-3);
}

.ds-pt-4 {
    padding-top: var(--ds-spacing-4);
}

.ds-pt-5 {
    padding-top: var(--ds-spacing-5);
}

.ds-pt-6 {
    padding-top: var(--ds-spacing-6);
}

.ds-pb-0 {
    padding-bottom: 0;
}

.ds-pb-1 {
    padding-bottom: var(--ds-spacing-1);
}

.ds-pb-2 {
    padding-bottom: var(--ds-spacing-2);
}

.ds-pb-3 {
    padding-bottom: var(--ds-spacing-3);
}

.ds-pb-4 {
    padding-bottom: var(--ds-spacing-4);
}

.ds-pb-5 {
    padding-bottom: var(--ds-spacing-5);
}

.ds-pb-6 {
    padding-bottom: var(--ds-spacing-6);
}

.ds-px-0 {
    padding-left: 0;
    padding-right: 0;
}

.ds-px-1 {
    padding-left: var(--ds-spacing-1);
    padding-right: var(--ds-spacing-1);
}

.ds-px-2 {
    padding-left: var(--ds-spacing-2);
    padding-right: var(--ds-spacing-2);
}

.ds-px-3 {
    padding-left: var(--ds-spacing-3);
    padding-right: var(--ds-spacing-3);
}

.ds-px-4 {
    padding-left: var(--ds-spacing-4);
    padding-right: var(--ds-spacing-4);
}

.ds-px-5 {
    padding-left: var(--ds-spacing-5);
    padding-right: var(--ds-spacing-5);
}

.ds-px-6 {
    padding-left: var(--ds-spacing-6);
    padding-right: var(--ds-spacing-6);
}

.ds-py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.ds-py-1 {
    padding-top: var(--ds-spacing-1);
    padding-bottom: var(--ds-spacing-1);
}

.ds-py-2 {
    padding-top: var(--ds-spacing-2);
    padding-bottom: var(--ds-spacing-2);
}

.ds-py-3 {
    padding-top: var(--ds-spacing-3);
    padding-bottom: var(--ds-spacing-3);
}

.ds-py-4 {
    padding-top: var(--ds-spacing-4);
    padding-bottom: var(--ds-spacing-4);
}

.ds-py-5 {
    padding-top: var(--ds-spacing-5);
    padding-bottom: var(--ds-spacing-5);
}

.ds-py-6 {
    padding-top: var(--ds-spacing-6);
    padding-bottom: var(--ds-spacing-6);
}

/* Display Utilities */
.ds-d-none {
    display: none;
}

.ds-d-block {
    display: block;
}

.ds-d-inline {
    display: inline;
}

.ds-d-inline-block {
    display: inline-block;
}

.ds-d-flex {
    display: flex;
}

.ds-d-inline-flex {
    display: inline-flex;
}

.ds-d-grid {
    display: grid;
}

/* Flexbox Utilities */
.ds-flex-row {
    flex-direction: row;
}

.ds-flex-column {
    flex-direction: column;
}

.ds-flex-wrap {
    flex-wrap: wrap;
}

.ds-flex-nowrap {
    flex-wrap: nowrap;
}

.ds-justify-start {
    justify-content: flex-start;
}

.ds-justify-end {
    justify-content: flex-end;
}

.ds-justify-center {
    justify-content: center;
}

.ds-justify-between {
    justify-content: space-between;
}

.ds-justify-around {
    justify-content: space-around;
}

.ds-align-start {
    align-items: flex-start;
}

.ds-align-end {
    align-items: flex-end;
}

.ds-align-center {
    align-items: center;
}

.ds-align-baseline {
    align-items: baseline;
}

.ds-align-stretch {
    align-items: stretch;
}

.ds-gap-1 {
    gap: var(--ds-spacing-1);
}

.ds-gap-2 {
    gap: var(--ds-spacing-2);
}

.ds-gap-3 {
    gap: var(--ds-spacing-3);
}

.ds-gap-4 {
    gap: var(--ds-spacing-4);
}

.ds-gap-5 {
    gap: var(--ds-spacing-5);
}

.ds-gap-6 {
    gap: var(--ds-spacing-6);
}

/* Border Utilities */
.ds-border {
    border: var(--ds-border-width) solid var(--ds-border-color);
}

.ds-border-top {
    border-top: var(--ds-border-width) solid var(--ds-border-color);
}

.ds-border-bottom {
    border-bottom: var(--ds-border-width) solid var(--ds-border-color);
}

.ds-border-left {
    border-left: var(--ds-border-width) solid var(--ds-border-color);
}

.ds-border-right {
    border-right: var(--ds-border-width) solid var(--ds-border-color);
}

.ds-rounded {
    border-radius: var(--ds-border-radius);
}

.ds-rounded-sm {
    border-radius: var(--ds-border-radius-sm);
}

.ds-rounded-lg {
    border-radius: var(--ds-border-radius-lg);
}

.ds-rounded-full {
    border-radius: 9999px;
}

/* Shadow Utilities */
.ds-shadow-none {
    box-shadow: none;
}

.ds-shadow-sm {
    box-shadow: var(--ds-shadow-sm);
}

.ds-shadow {
    box-shadow: var(--ds-shadow);
}

.ds-shadow-md {
    box-shadow: var(--ds-shadow-md);
}

.ds-shadow-lg {
    box-shadow: var(--ds-shadow-lg);
}

/* Text Alignment */
.ds-text-left {
    text-align: left;
}

.ds-text-center {
    text-align: center;
}

.ds-text-right {
    text-align: right;
}

/* Width and Height Utilities */
.ds-w-25 {
    width: 25%;
}

.ds-w-50 {
    width: 50%;
}

.ds-w-75 {
    width: 75%;
}

.ds-w-100 {
    width: 100%;
}

.ds-w-auto {
    width: auto;
}

.ds-h-25 {
    height: 25%;
}

.ds-h-50 {
    height: 50%;
}

.ds-h-75 {
    height: 75%;
}

.ds-h-100 {
    height: 100%;
}

.ds-h-auto {
    height: auto;
}

/* Form Elements */
.form-control,
.ds-form-control {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-normal);
    line-height: var(--ds-line-height);
    color: var(--ds-gray-900);
    background-color: var(--ds-white);
    border: var(--ds-border-width) solid var(--ds-border-color);
    border-radius: var(--ds-border-radius);
    padding: var(--ds-spacing-2) var(--ds-spacing-3);
    transition: var(--ds-transition);
}

.form-control:focus,
.ds-form-control:focus {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
    border-color: var(--ds-primary);
}

.form-label,
.ds-form-label {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height);
    margin-bottom: var(--ds-spacing-2);
    color: var(--ds-gray-900);
}

/* Status Filter Examples with Bootstrap Classes */

/* Task Management Filter */
.task-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-spacing-2);
    margin-bottom: var(--ds-spacing-4);
}

.task-status-filter .status-filter {
    border-radius: var(--ds-border-radius-sm);
    position: relative;
}

.task-status-filter .status-filter::after {
    content: attr(data-count);
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--ds-primary);
    color: var(--ds-white);
    font-size: 0.625rem;
    padding: 0.125rem var(--ds-spacing-1);
    border-radius: 0.75rem;
    min-width: 1.25rem;
    text-align: center;
}

/* System Health Dashboard */
.system-health {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--ds-spacing-4);
    margin-bottom: var(--ds-spacing-6);
}

.health-item {
    padding: var(--ds-spacing-4);
    border-radius: var(--ds-border-radius);
    border: var(--ds-border-width) solid;
    background-color: var(--ds-white);
}

.health-item.healthy {
    border-color: #d1fae5;
    background-color: #ecfdf5;
}

.health-item.warning {
    border-color: #fde68a;
    background-color: #fffbeb;
}

.health-item.critical {
    border-color: #fecaca;
    background-color: #fef2f2;
}

/* Content Library Filters */
.content-filters {
    margin-bottom: var(--ds-spacing-6);
}

.selected-filters {
    margin-bottom: var(--ds-spacing-4);
}

.available-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-spacing-2);
}

/* Responsive Status Filters */
@media (max-width: 767px) {

    .status-filter-group,
    .ds-status-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .status-filter,
    .ds-status-filter,
    .status-filter-btn,
    .ds-status-filter-btn,
    .status-chip,
    .ds-status-chip {
        justify-content: space-between;
        width: 100%;
    }

    .status-count,
    .ds-status-count {
        margin-left: auto;
    }
}

/* Dark Mode Support */
/*@media (prefers-color-scheme: dark) {
    :root {
        --ds-white: #1f2937;
        --ds-gray-900: #f9fafb;
        --ds-muted: #374151;
        --ds-muted-foreground: #9ca3af;
        --ds-border-color: rgba(255, 255, 255, 0.1);
        --ds-primary: #60a5fa;
        --ds-primary-rgb: 96, 165, 250;
    }
}*/

/* Print Styles */
@media print {

    .status-filter,
    .ds-status-filter,
    .status-filter-btn,
    .ds-status-filter-btn,
    .status-chip,
    .ds-status-chip {
        background-color: transparent !important;
        color: var(--ds-gray-900) !important;
        border: var(--ds-border-width) solid var(--ds-gray-300) !important;
    }

    .btn,
    .ds-btn {
        background-color: transparent !important;
        color: var(--ds-gray-900) !important;
        border: var(--ds-border-width) solid var(--ds-gray-300) !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --ds-border-color: #000000;
    }

    .status-filter.active,
    .status-filter-active,
    .ds-status-filter-active,
    .btn-primary,
    .ds-btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Visible Support */
.btn:focus-visible,
.ds-btn:focus-visible,
.status-filter:focus-visible,
.ds-status-filter:focus-visible,
.status-filter-btn:focus-visible,
.ds-status-filter-btn:focus-visible,
.status-chip:focus-visible,
.ds-status-chip:focus-visible,
.nav-tabs .nav-link:focus-visible,
.ds-tab-trigger:focus-visible {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
}

/* Component Combinations and Patterns */

/* Filter Bar Pattern */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-spacing-3);
    padding: var(--ds-spacing-3) var(--ds-spacing-4);
    background-color: var(--ds-gray-50);
    border-radius: var(--ds-border-radius);
    margin-bottom: var(--ds-spacing-4);
}

.filter-bar-label {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-medium);
    color: var(--ds-gray-700);
    margin-right: var(--ds-spacing-2);
}

/* Status List Pattern */
.status-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds-spacing-3);
}

.status-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-spacing-3);
    background-color: var(--ds-white);
    border: var(--ds-border-width) solid var(--ds-border-color);
    border-radius: var(--ds-border-radius);
    transition: var(--ds-transition);
}

.status-list-item:hover {
    box-shadow: var(--ds-shadow);
    border-color: var(--ds-primary);
}

.status-list-item-content {
    display: flex;
    flex-direction: column;
    gap: var(--ds-spacing-1);
}

.status-list-item-title {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    font-weight: var(--ds-font-weight-medium);
    color: var(--ds-gray-900);
}

.status-list-item-subtitle {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-normal);
    color: var(--ds-muted-foreground);
}

/* Dashboard Stats Pattern */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--ds-spacing-4);
    margin-bottom: var(--ds-spacing-6);
}

.stat-card {
    padding: var(--ds-spacing-4);
    background-color: var(--ds-white);
    border: var(--ds-border-width) solid var(--ds-border-color);
    border-radius: var(--ds-border-radius);
    text-align: center;
    transition: var(--ds-transition);
}

.stat-card:hover {
    box-shadow: var(--ds-shadow-md);
}

.stat-value {
    font-family: var(--ds-font-family);
    font-size: 2rem;
    font-weight: var(--ds-font-weight-bold);
    color: var(--ds-primary);
    line-height: 1;
    margin-bottom: var(--ds-spacing-2);
}

.stat-label {
    font-family: var(--ds-font-family);
    font-size: 0.875rem;
    font-weight: var(--ds-font-weight-medium);
    color: var(--ds-muted-foreground);
}

/* Action Group Pattern */
.action-group {
    display: flex;
    gap: var(--ds-spacing-2);
    align-items: center;
}

.action-group-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--ds-spacing-2);
    align-items: stretch;
}

/* Separator */
.separator,
.ds-separator {
    height: 1px;
    background-color: var(--ds-border-color);
    border: none;
    margin: var(--ds-spacing-6) 0;
}

/* Animation Classes */
.ds-fade-in {
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ds-slide-in {
    transform: translateX(-100%);
    animation: slideIn 0.3s ease-in-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Accessibility Helpers */
.ds-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.ds-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ds-primary);
    color: var(--ds-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--ds-border-radius);
    font-weight: var(--ds-font-weight-medium);
    z-index: 1000;
}

.ds-skip-link:focus {
    top: 6px;
}

/* Bootstrap Override Classes (for compatibility) */
.btn.btn-outline-primary {
    background-color: transparent;
    color: var(--ds-primary);
    border-color: var(--ds-secondary-border);
}

.btn.btn-outline-primary:hover {
    background-color: var(--ds-secondary-border);
    color: var(--ds-white);
    border-color: var(--ds-secondary-border);
}

/* Custom Bootstrap Nav Pills */
.nav-pills .nav-link {
    background-color: var(--ds-muted);
    color: var(--ds-muted-foreground);
    border-radius: var(--ds-border-radius-sm);
    margin-right: var(--ds-spacing-1);
    font-family: var(--ds-font-family);
    font-weight: var(--ds-font-weight-medium);
}

.nav-pills .nav-link.active {
    background-color: var(--ds-primary);
    color: var(--ds-white);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: var(--ds-gray-200);
    color: var(--ds-gray-900);
}

/* Bootstrap Card Overrides */
.card {
    border: var(--ds-border-width) solid var(--as-light-blue);
    border-radius: var(--ds-border-radius);
    box-shadow: var(--ds-shadow-sm);
}

.card-header {
    background-color: transparent;
    font-family: var(--ds-font-family);
    font-weight: var(--ds-font-weight-medium);
}

.card-title {
    font-family: var(--ds-font-family);
    font-weight: var(--ds-font-weight-medium);
    color: var(--ds-primary);
}

.card-text {
    font-family: var(--ds-font-family);
    color: var(--ds-muted-foreground);
}

/* Bootstrap Alert Overrides */
.alert {
    font-family: var(--ds-font-family);
    border-radius: var(--ds-border-radius);
    padding: var(--ds-spacing-3) var(--ds-spacing-4);
}

.alert-primary {
    background-color: rgba(var(--ds-primary-rgb), 0.1);
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--ds-success);
    color: var(--ds-success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--ds-warning);
    color: var(--ds-warning);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--ds-error);
    color: var(--ds-error);
}

/* Bootstrap Form Overrides */
.form-control {
    font-family: var(--ds-font-family);
    border-radius: var(--ds-border-radius);
    border-color: var(--ds-border-color);
}

.form-control:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ds-primary-rgb), 0.25);
}

.form-label {
    font-family: var(--ds-font-family);
    font-weight: var(--ds-font-weight-medium);
}

/* Bootstrap Progress Overrides */
.progress {
    background-color: var(--ds-muted);
    border-radius: var(--ds-border-radius);
    height: 0.5rem;
}

.progress-bar {
    background-color: var(--ds-primary);
    border-radius: var(--ds-border-radius);
}

/* Bootstrap Modal Overrides */
.modal-header {
    font-family: var(--ds-font-family);
    border-bottom-color: var(--ds-border-color);
}

.modal-title {
    font-family: var(--ds-font-family);
    font-weight: var(--ds-font-weight-medium);
}

.modal-content {
    border-radius: var(--ds-border-radius);
    border-color: var(--as-steel-blue-rgb-25);
    box-shadow: var(--mud-elevation-4);
}

/* Bootstrap Dropdown Overrides */
.dropdown-menu {
    font-family: var(--ds-font-family);
    border-radius: var(--ds-border-radius);
    border-color: var(--ds-border-color);
    box-shadow: var(--ds-shadow-lg);
}

.dropdown-item {
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    color: var(--ds-gray-900);
}

.dropdown-item:hover {
    background-color: var(--ds-gray-100);
    color: var(--ds-gray-900);
}

.dropdown-item.active {
    background-color: var(--ds-primary);
    color: var(--ds-white);
}

/* Utility Classes for Status Filters */
.status-active {
    background-color: var(--ds-success);
    color: var(--ds-white);
}

.status-pending {
    background-color: var(--ds-warning);
    color: var(--ds-white);
}

.status-complete {
    background-color: var(--ds-info);
    color: var(--ds-white);
}

.status-draft {
    background-color: var(--ds-gray-500);
    color: var(--ds-white);
}

.status-archived {
    background-color: #8b5cf6;
    color: var(--ds-white);
}

.status-cancelled {
    background-color: var(--ds-error);
    color: var(--ds-white);
}

/* Component State Classes */
.is-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

/* Responsive Visibility */
@media (max-width: 575px) {
    .d-sm-none {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .d-md-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .d-xl-none {
        display: none !important;
    }
}

/* Status Filter Specific Bootstrap Integration */
.nav-pills.status-nav .nav-link {
    border-radius: var(--ds-border-radius-sm);
    font-size: 0.875rem;
    padding: var(--ds-spacing-1) var(--ds-spacing-3);
    background-color: var(--ds-muted);
    color: var(--ds-muted-foreground);
    border: var(--ds-border-width) solid transparent;
    margin-right: var(--ds-spacing-2);
    margin-bottom: var(--ds-spacing-2);
    position: relative;
}

.nav-pills.status-nav .nav-link.active {
    background-color: var(--ds-primary);
    color: var(--ds-white);
    border-color: var(--ds-primary);
}

.nav-pills.status-nav .nav-link .badge {
    margin-left: var(--ds-spacing-1);
}

/* List Group Integration */
.list-group-item {
    font-family: var(--ds-font-family);
    border-color: var(--ds-border-color);
}

.list-group-item.active {
    background-color: var(--ds-primary);
    border-color: var(--ds-primary);
    color: var(--ds-white);
}

/* Input Group with Status Filters */
.input-group-status {
    display: flex;
    align-items: center;
    gap: var(--ds-spacing-2);
    margin-bottom: var(--ds-spacing-4);
}

.input-group-status .form-control {
    flex: 1;
}

.input-group-status .status-filter-group {
    flex: 0 0 auto;
}

.logs-container {
    background-color: white;
    flex: 1 1 auto;
    border-radius: 10px;
}

.logs-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

/* WorkOrder Attachments */
.text-truncate-attachments-grid {
    max-width: 600px !important;
    /* Required to make ellipsis work inside flex items */
    display: inline-block !important;
    flex-shrink: 1 !important;
}

.as-url-link-underline {
    text-decoration: underline !important;
    cursor: pointer;
    font-family: var(--ds-font-family);
    font-size: var(--ds-font-size-base);
    line-height: var(--ds-line-height);
    color: var(--ds-primary);
}

.ds-text-primary th {
    color: var(--ds-primary) !important;
}

.ds-text-primary .mud-table-sort-label {
    color: inherit !important;
}

/* WorkOrder Popup */
.wo-popup-content {
    min-height: 0;
}