.spreadsheet-wrap {
    width: calc(100% - 24px);
    margin: 0 auto 24px;
    padding: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.tabulator {
    font-size: 13px;
    border: 1px solid #94a3b8;
    border-radius: 5px;
}

.tabulator .tabulator-header {
    color: #1e293b;
    background: #e2e8f0;
    border-bottom: 2px solid #64748b;
}

.tabulator .tabulator-header .tabulator-col {
    background: #e2e8f0;
    border-right: 1px solid #94a3b8;
}

.tabulator .tabulator-header-filter input {
    min-height: 30px;
    padding: 4px 7px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
}

.tabulator .tabulator-row:nth-child(even) {
    background: #f8fafc;
}

.tabulator .tabulator-row:hover {
    background: #dbeafe;
}

/* 服務類型 */

.tabulator-cell.service-arrival {
    color: #166534;
    background: #dcfce7 !important;
    font-weight: 700;
}

.tabulator-cell.service-departure {
    color: #854d0e;
    background: #fef9c3 !important;
    font-weight: 700;
}

/* 地址縣市 */

.tabulator-cell.city-taipei {
    color: #1e40af;
    background: #dbeafe !important;
}

.tabulator-cell.city-new-taipei {
    color: #075985;
    background: #e0f2fe !important;
}

.tabulator-cell.city-taoyuan {
    color: #6b21a8;
    background: #f3e8ff !important;
}

.tabulator-cell.city-taichung {
    color: #166534;
    background: #dcfce7 !important;
}

.editable-cell {
    background: #fff7ed !important;
}

#dispatch_table .tabulator-cell,
#dispatch_table .tabulator-footer,
#dispatch_table input,
#dispatch_table select,
#dispatch_table button,
#dispatch_table .assignment-cell,
#dispatch_table .assignment-cell-name,
#dispatch_table .assignment-cell-sub,
#dispatch_table .backend-cell-style {
    font-family:
        "Microsoft JhengHei",
        "Noto Sans TC",
        sans-serif;

    font-size: 15px !important;
    font-weight: 900 !important;
    text-shadow:
        1px 0 0 currentColor,
        0 0 0 currentColor,
        0 0 0 currentColor,
        0 0 0 currentColor;
}

#dispatch_table .tabulator-header{
    font-family:
        "Microsoft JhengHei",
        "Noto Sans TC",
        sans-serif;

    font-size: 12px !important;
}

.tabulator-menu .dispatch-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.tabulator-menu .dispatch-filter-option:hover {
    background-color: #e0f2fe;
}

.tabulator-menu .dispatch-filter-option span {
    flex: 1;
}