@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .card-shadow {
        box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    }
    .status-dot {
        @apply w-2 h-2 rounded-full inline-block align-middle mr-1;
    }
    .col-header {
        @apply h-10 px-3 py-2 border-b border-gray-200;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* 工序自定义色列头：覆盖默认渐变，由 JS 写 background-color */
    .col-header--filled {
        background-image: none !important;
    }

    /* 看板列标题居中 */
    .board-column .col-header span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .vehicle-card {
        @apply relative bg-card rounded card-shadow mb-3 border-l-4 pl-3 py-3 pr-2;
    }
}

/* ====== 核心看板区域样式 ====== */

/* 看板网格容器 - 列数由JS动态设置 */
.board-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    min-width: max-content;
    height: 100vh; /* 固定总高度 */
}

/* 机修管理看板：与钣喷两行网格一致，保证主列/等待列各占一行且可滚动 */
.mech-board-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(200px, 1fr));
    gap: 12px;
    min-width: max-content;
    min-height: min(72vh, 720px);
    height: 100%;
    align-items: stretch;
}

/* 每列固定宽度，避免维修项目换行时把整列撑宽 */
.board-column {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片容器 - 固定高度并支持滚动 */
.board-column > div[data-process-id],
.board-column > .cards-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* 重要：允许flex子项收缩 */
}

/* 卡片容器滚动条样式 */
.board-column > div[data-process-id]::-webkit-scrollbar,
.board-column > .cards-container::-webkit-scrollbar {
    width: 6px;
}

.board-column > div[data-process-id]::-webkit-scrollbar-track,
.board-column > .cards-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.board-column > div[data-process-id]::-webkit-scrollbar-thumb,
.board-column > .cards-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.board-column > div[data-process-id]::-webkit-scrollbar-thumb:hover,
.board-column > .cards-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 看板区域容器 - 支持水平滚动 */
.board-container {
    overflow-x: auto;
    overflow-y: hidden; /* 垂直方向不需要滚动，因为每列内部滚动 */
    height: 100%;
}

/* 自定义看板滚动条 */
.board-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.board-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.board-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.board-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ====== 工单卡片样式 ====== */
.work-order-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* 允许在固定宽度的列内收缩，避免长文本撑宽列 */
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: break-all;
    box-sizing: border-box;
}

.work-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}

/* 卡片头部区域 */
.work-order-card .card-header {
    position: relative;
    word-wrap: break-word;
    word-break: break-all;
}

/* 技师姓名 */
.work-order-card .card-tech {
    display: flex;
    align-items: center;
    gap: 4px;
    word-wrap: break-word;
    word-break: break-all;
}

/* 车牌信息 */
.work-order-card .card-plate-info {
    position: absolute;
    top: 10px;
    right: 12px;
    word-wrap: break-word;
    word-break: break-all;
}

.work-order-card .card-plate {
    font-family: 'Microsoft YaHei', sans-serif;
    word-wrap: break-word;
    word-break: break-all;
}

.work-order-card .card-car-series {
    margin-top: 2px;
    word-wrap: break-word;
    word-break: break-all;
}

/* 状态标签 */
.work-order-card .card-status-tag {
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
}

/* 卡片body区域 */
.work-order-card .card-body {
    min-height: 60px;
    max-height: 280px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: break-all;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
}

/* 卡片内部滚动条样式 */
.work-order-card .card-body::-webkit-scrollbar {
    width: 4px;
}

.work-order-card .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.work-order-card .card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.work-order-card .card-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.work-order-card::-webkit-scrollbar {
    width: 4px;
}

.work-order-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.work-order-card::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.work-order-card::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 信息行 */
.work-order-card .card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
    flex-wrap: wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.work-order-card .card-info-row span {
    word-wrap: break-word;
    word-break: break-all;
}

.work-order-card .card-info-row span:first-child {
    flex-shrink: 0;
}

/* 确保维修项目等多行文本正确显示，且不撑宽卡片 */
.work-order-card .card-info-row span:last-child {
    flex: 1;
    min-width: 0; /* 允许在 flex 中收缩，避免长文本撑宽 */
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

/* 维修项目区域：限制为最多 2 行 + 省略号，避免卡片高度暴增、视觉上变宽 */
.work-order-card .card-info-row .repair-items-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.work-order-card .card-info-row:last-child {
    border-bottom: none !important;
}

/* 操作按钮层样式 */
.work-order-card .card-actions {
    opacity: 0;
    visibility: hidden;
    background: transparent !important;
}

.work-order-card:hover .card-actions {
    opacity: 1;
    visibility: visible;
}

/* 卡片内容层 - 悬停时变为灰色 */
.work-order-card .card-content-layer {
    transition: all 0.3s ease;
}

.work-order-card:hover .card-content-layer {
    opacity: 0.35;
    filter: grayscale(100%);
}

/* 操作按钮悬停效果 */
.work-order-card .action-btn {
    transition: all 0.2s ease;
}

.work-order-card .action-btn:hover {
    transform: scale(1.25);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* 暂停卡片样式 */
.work-order-card.paused-card {
    opacity: 1;
}

.work-order-card .pause-info-layer {
    pointer-events: none;
}

/* 机修看板卡片：与钣喷工单卡片一致的操作层（悬停显示圆形按钮） */
.mech-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: break-all;
    box-sizing: border-box;
}

.mech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mech-card .card-actions {
    opacity: 0;
    visibility: hidden;
    background: transparent !important;
}

.mech-card:hover .card-actions {
    opacity: 1;
    visibility: visible;
}

.mech-card .card-content-layer {
    transition: all 0.3s ease;
}

.mech-card:hover .card-content-layer {
    opacity: 0.35;
    filter: grayscale(100%);
}

.mech-card .action-btn {
    transition: all 0.2s ease;
}

.mech-card .action-btn:hover {
    transform: scale(1.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.mech-card.paused-card {
    opacity: 1;
}

.mech-card .pause-info-layer {
    pointer-events: none;
}

.mech-card.mech-card-done:hover .card-content-layer {
    opacity: 1;
    filter: none;
}

/* 机修列表视图：与钣喷同色系圆形操作钮（略小以适配表格） */
.mech-list-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mech-list-action-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 信息行 */
.work-order-card .card-info-row:last-child {
    border-bottom: none !important;
}

/* 旧版车辆卡片样式（保留兼容） */
.vehicle-card {
    min-height: 80px;
    min-width: 150px;
}

/* 设置页面样式 */
.settings-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 12px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
}

.settings-menu-item:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.settings-menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.settings-menu-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* 设置内容区域 */
.settings-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏/显示类 */
.hidden {
    display: none !important;
}

/* 弹窗滚动条样式 */
#storeForm::-webkit-scrollbar {
    width: 6px;
}

#storeForm::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#storeForm::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#storeForm::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 设置页面内容区域滚动条 */
.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.settings-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* ====== 图形定损样式 ====== */

/* 车辆平面图样式 */
#carDiagram {
    user-select: none;
}

.car-part {
    transition: all 0.2s ease;
}

.car-part:hover .part-hitbox {
    fill: rgba(24, 144, 255, 0.2) !important;
}

.car-part:hover .part-label {
    fill: #1890ff !important;
    font-weight: 600;
}

.part-hitbox {
    transition: fill 0.2s ease;
}

.part-label {
    transition: fill 0.2s ease;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 维修项目列表滚动条 */
#damageList::-webkit-scrollbar {
    width: 4px;
}

#damageList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#damageList::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* 选中部位动画 */
#selectedPartDisplay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 维修项目添加按钮 */
#addDamageBtn {
    transition: all 0.2s ease;
}

#addDamageBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

#addDamageBtn:active {
    transform: translateY(0);
}

/* 维修项目卡片hover效果 */
#damageList > div:hover {
    background-color: #f9fafb;
}

/* ====== 现代化侧边栏样式 ====== */

/* 侧边栏容器 */
.sidebar {
    width: 185px;
    min-width: 185px;
    height: 100vh;
    background: linear-gradient(165deg, #1a2332 0%, #0f1419 55%, #0c1016 100%);
    display: flex;
    flex-direction: column;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 50;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.22);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* 收起状态 */
.sidebar.collapsed {
    width: 72px;
    min-width: 72px;
}

/* 收起时顶栏只保留折叠按钮，隐藏 Logo（图标+文字） */
.collapsed .logo-container {
    display: none;
}

.collapsed .sidebar-header {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 56px;
}

/* 全局门店选择 */
.global-store-selector {
    background: rgba(0, 0, 0, 0.15);
}

.global-store-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.global-store-select option {
    background: #1e293b;
    color: #f8fafc;
}

/* 侧边栏头部 */
.sidebar-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Logo容器 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.logo-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.logo-icon-wrap img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Logo文字 */
.logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f1f5f9;
    opacity: 1;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.collapsed .logo-text {
    display: none;
}

/* 折叠按钮 */
.toggle-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* 导航区域 */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 滚动条样式 */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 导航项 */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 7px 8px;
    border-radius: 11px;
    color: rgba(248, 250, 252, 0.55);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.95);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.collapsed .nav-item.active::before {
    display: none;
}

.collapsed .nav-item {
    padding: 10px 8px;
    justify-content: center;
}

.collapsed .nav-item .nav-icon-wrap {
    margin: 0;
}

/* 图标槽（Lucide SVG） */
.nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease;
}

.nav-item:hover .nav-icon-wrap {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon-wrap {
    background: rgba(255, 255, 255, 0.18);
}

.nav-icon-wrap svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    flex-shrink: 0;
}

.collapsed .nav-icon-wrap {
    width: 38px;
    height: 38px;
}

.collapsed .nav-icon-wrap svg {
    width: 20px;
    height: 20px;
}

/* 导航文字 */
.nav-text {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 1;
    transition: opacity 0.2s ease, width 0.2s ease;
    min-width: 0;
}

.collapsed .nav-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 10px 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.12);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 用户头像 */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b82f6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

/* 用户名称 */
.user-name {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.collapsed .user-name {
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
}

.collapsed .user-info {
    justify-content: center;
    padding: 10px 6px;
}

/* 退出按钮 */
.logout-btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 10px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.logout-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }
}

/* ====== 技师忙闲看板样式 ====== */

/* 技师卡片 */
.tech-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.tech-card.idle {
    border: 1px solid #bbf7d0;
    border-left: 3px solid #22c55e;
}

.tech-card.busy {
    border: 1px solid #fed7aa;
    border-left: 3px solid #f97316;
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 技师头像 */
.tech-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-avatar.idle {
    background: #dcfce7;
    color: #16a34a;
}

.tech-avatar.busy {
    background: #ffedd5;
    color: #ea580c;
}

/* 技师名称 */
.tech-name {
    font-weight: 500;
    color: #1f2937;
}

/* 技师状态 */
.tech-status {
    font-size: 12px;
}

.tech-status.idle {
    color: #16a34a;
}

.tech-status.busy {
    color: #ea580c;
}

/* 技师工单列表 */
.tech-work-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-work-item {
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* ====== 客休区看板样式 ====== */

/* 非 Tailwind 环境兜底：自定义宽度类（用于机修侧栏等） */
.w-320 {
    width: 320px;
}

/* 客休区看板容器 */
#waitingBoardContent {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: -1px 0;
}

/* 滚动条样式 */
#waitingBoardContent::-webkit-scrollbar {
    height: 8px;
}

#waitingBoardContent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#waitingBoardContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#waitingBoardContent::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 工序列表容器 */
.process-column {
    min-width: 320px;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 工序列表头部 */
.column-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.column-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 工序列表内容区 */
.column-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-content::-webkit-scrollbar {
    width: 6px;
}

.column-content::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* 空提示 */
.empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* 工单卡片 */
.waiting-order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.waiting-order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* 工单头部信息 */
.order-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px;
}

.plate-number {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.car-series {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.delivery-time {
    font-size: 12px;
    color: #f59e0b;
}

/* 工序进度 */
.process-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.process-name {
    font-weight: 500;
}

.process-status {
    font-size: 12px;
    font-weight: 500;
}

/* 已完成工序（绿色） */
.process-item.completed {
    background: #dcfce7;
    color: #166534;
}

.process-item.completed .process-status {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 做底工序（橙红色） */
.process-item.doing {
    background: #fed7aa;
    color: #9a3412;
    border: 2px solid #f97316;
}

.process-item.doing .process-status {
    background: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 未做工序（灰色） */
.process-item.pending {
    background: #f3f4f6;
    color: #6b7280;
}

.process-item.pending .process-status {
    background: #9ca3af;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ====== 客休区看板 - 工业风表格样式 ====== */

#waitingBoardWrapper {
    background: #f8fafc;
}

/* 表格容器 */
.waiting-board-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

/* 表头 - 固定不滚动 */
.waiting-board-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.waiting-board-table thead th {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
    padding: 14px 10px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #1f2937;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 1px;
}

/* 表格列宽 */
.waiting-board-table .col-vehicle {
    width: 160px;
}

.waiting-board-table .col-process {
    width: auto;
    min-width: 80px;
}

.waiting-board-table .col-delivery {
    width: 180px;
}

/* 表格行 */
.waiting-board-table tbody tr {
    background: #ffffff;
    transition: background 0.2s ease;
}

.waiting-board-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.waiting-board-table tbody tr:hover {
    background: #e0f2fe;
}

/* 表格单元格 */
.waiting-board-table td {
    padding: 12px 10px;
    text-align: center;
    border: 2px solid #e5e7eb;
    vertical-align: middle;
}

/* 车辆信息 */
.vehicle-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vehicle-info .plate-number {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Microsoft YaHei', 'Arial Black', sans-serif;
    letter-spacing: 2px;
}

.vehicle-info .brand-name {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 工序单元格 */
.process-cell {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    display: inline-block;
}

/* 已完成 - 绿色 */
.process-cell.completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.1);
}

/* 施工中 - 橙色 */
.process-cell.doing {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 4px rgba(249,115,22,0.4);
}

/* 未开始 - 灰色 */
.process-cell.pending {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* 交车时间 */
.col-delivery {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 空数据提示 */
.empty-cell {
    padding: 60px !important;
    color: #9ca3af;
    font-size: 18px;
    background: #f9fafb !important;
}

/* ====== 绩效报表样式 ====== */

#reportContainer {
    background: #f8fafc;
}

/* 筛选栏样式 */
#reportContainer input[type="date"],
#reportContainer select {
    min-width: 120px;
}

/* 统计卡片 */
#reportContainer .shadow-sm {
    transition: all 0.2s ease;
}

#reportContainer .shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* 表格样式 */
#reportTable {
    font-size: 13px;
}

#reportTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

#reportTable th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    font-weight: 600;
    white-space: nowrap;
}

#reportTable td {
    vertical-align: middle;
}

#reportTable tbody tr {
    transition: background 0.2s ease;
}

#reportTable tbody tr:hover {
    background: #eff6ff !important;
}

#reportTable .text-right {
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 图表容器 */
#reportContainer .bg-white.rounded-lg {
    transition: all 0.2s ease;
}

#reportContainer .bg-white.rounded-lg:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 加载动画 */
#reportContainer .fa-spinner {
    animation: spin 1s linear infinite;
}