/* Job Timing Analytics */

.app-container .main-content {
    flex: 1;
    margin-left: calc(240px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
    padding: 20px;
    background: #f2f2f7;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.app-container.sidebar-collapsed .main-content {
    margin-left: calc(60px + var(--sidebar-layout-offset, 0px) - var(--sidebar-main-seam, 0px));
}

@media (max-width: 768px) {
    .app-container .main-content {
        margin-left: 0;
        padding: 10px;
    }
}

.jta-container {
    max-width: 1400px;
    margin: 0 auto;
}

.jta-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.jta-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jta-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.jta-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.jta-header p {
    color: #6e6e73;
    margin: 4px 0 0;
    font-size: 14px;
}

.jta-tz-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #16a34a !important;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.jta-tz-note::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.jta-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.jta-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: #6e6e73;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jta-tab:hover {
    background: white;
    color: #1d1d1f;
}

.jta-tab.active {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.jta-panel {
    display: none;
}

.jta-panel.active {
    display: block;
}

.jta-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.jta-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jta-filter-group select,
.jta-filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9fb;
    color: #1d1d1f;
}

.jta-day-filters .jta-filter-group--week {
    flex: 1 1 100%;
    min-width: min(100%, 520px);
}

.jta-week-picker-card {
    background: #f9f9fb;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.jta-week-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.jta-week-label {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    flex: 1;
}

.jta-week-nav {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    background: #fff;
    color: #6e6e73;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jta-week-nav:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.jta-week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.jta-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.jta-week-day:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.jta-week-day.selected {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.jta-week-day.today:not(.selected) {
    border-color: #d1fae5;
}

.jta-week-day-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6e6e73;
}

.jta-week-day-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1;
}

.jta-week-day-num.has-cleaning {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.jta-week-day.today .jta-week-day-num:not(.has-cleaning) {
    border: 2px solid #22c55e;
}

.jta-week-day.selected .jta-week-day-num.has-cleaning {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16a34a;
}

@media (max-width: 640px) {
    .jta-week-days {
        gap: 4px;
    }

    .jta-week-day {
        padding: 8px 2px;
    }

    .jta-week-day-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .jta-week-label {
        font-size: 13px;
    }
}

.jta-employee-picker {
    position: relative;
}

.jta-picker-toggle {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    background: #f9f9fb;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d1d1f;
}

.jta-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    padding: 8px;
}

.jta-picker-dropdown.open {
    display: block;
}

.jta-picker-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.jta-picker-option:hover {
    background: #f2f2f7;
}

.jta-picker-option input {
    accent-color: #22c55e;
}

.jta-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jta-btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.jta-btn-secondary:hover {
    background: #e5e5ea;
}

.jta-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.jta-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-stat-label {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.jta-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
}

.jta-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jta-table-note {
    font-size: 12px;
    color: #6e6e73;
    margin: -8px 0 12px;
}

.jta-chart-wrap {
    position: relative;
    height: 320px;
}

.jta-table-wrap {
    overflow-x: auto;
}

.jta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.jta-table th {
    text-align: left;
    padding: 0;
    background: #f9f9fb;
    color: #6e6e73;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e5ea;
}

.jta-sort-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    text-transform: inherit;
    letter-spacing: inherit;
}

.jta-sort-btn:hover {
    color: #1d1d1f;
    background: #f2f2f7;
}

.jta-sort-icons {
    display: inline-flex;
    flex-direction: column;
    font-size: 10px;
    line-height: 0.7;
    margin-left: auto;
    color: #c7c7cc;
}

.jta-sortable.jta-sort-active .jta-sort-icons {
    color: #86efac;
}

.jta-sortable.jta-sort-active.jta-sort-asc .fa-caret-up,
.jta-sortable.jta-sort-active.jta-sort-desc .fa-caret-down {
    color: #16a34a;
}

.jta-sortable.jta-sort-active {
    color: #1d1d1f;
}

.jta-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f2f2f7;
    color: #1d1d1f;
}

.jta-bucket-row {
    cursor: pointer;
}

.jta-bucket-row:hover td {
    background: #f9f9fb;
}

.jta-bucket-row.expanded td {
    background: #f0fdf4;
    border-bottom-color: transparent;
}

.jta-bucket-label {
    font-weight: 500;
}

.jta-bucket-chevron {
    display: inline-block;
    width: 14px;
    margin-right: 6px;
    font-size: 11px;
    color: #6e6e73;
    transition: transform 0.15s ease;
}

.jta-bucket-chevron.open {
    transform: rotate(90deg);
    color: #16a34a;
}

.jta-bucket-detail-row {
    display: none;
}

.jta-bucket-detail-row.open {
    display: table-row;
}

.jta-bucket-detail-row > td {
    padding: 0 12px 14px;
    background: #f0fdf4;
    border-bottom: 1px solid #e5e5ea;
}

.jta-bucket-detail-row .jta-bucket-details {
    padding-left: 20px;
}

.jta-table tbody tr:hover {
    background: #f9f9fb;
}

.jta-loading,
.jta-empty {
    text-align: center;
    color: #6e6e73;
    padding: 24px;
}

.jta-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d1d1f;
}

.jta-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.jta-legend-swatch.checked-in {
    background: #22c55e;
}

.jta-legend-swatch.driving {
    background: #3b82f6;
}

.jta-legend-swatch.idle {
    background: #e5e5ea;
}

.jta-clock-card {
    text-align: center;
}

.jta-clock-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    overflow: visible;
}

#day-clock-svg,
#sandbox-clock-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    overflow: visible;
}

.jta-hour-timeline {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    min-height: 80px;
}

.jta-hour-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.jta-hour-label {
    font-size: 9px;
    color: #6e6e73;
    text-align: center;
    padding: 4px 0;
    font-weight: 500;
}

.jta-hour-bar {
    flex: 1;
    min-height: 48px;
    border-radius: 3px;
    background: #e5e5ea;
    position: relative;
    overflow: hidden;
}

.jta-hour-segment {
    position: absolute;
    top: 0;
    bottom: 0;
}

.jta-hour-segment.checked-in {
    background: #22c55e;
}

.jta-hour-segment.driving {
    background: #3b82f6;
}

.jta-job-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jta-job-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9fb;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
}

.jta-job-item.driving-gap {
    border-left-color: #3b82f6;
}

.jta-job-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.jta-job-icon.checked-in {
    background: #22c55e;
}

.jta-job-icon.driving {
    background: #3b82f6;
}

.jta-job-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #1d1d1f;
}

.jta-job-info p {
    margin: 0;
    font-size: 13px;
    color: #6e6e73;
}

.jta-sandbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-sandbox-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jta-sandbox-hint {
    margin: 0;
    font-size: 12px;
    color: #6e6e73;
}

.jta-sandbox-track-wrap {
    padding: 8px 0 4px;
}

.jta-sandbox-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.jta-sandbox-track {
    position: relative;
    height: 56px;
    border-radius: 10px;
    background: #e5e5ea;
    border: 1px solid #d1d1d6;
    touch-action: none;
    user-select: none;
}

.jta-sandbox-track-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6e6e73;
    pointer-events: none;
}

.jta-sandbox-block {
    position: absolute;
    top: 4px;
    bottom: 4px;
    min-width: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1;
}

.jta-sandbox-block:active {
    cursor: grabbing;
    z-index: 3;
}

.jta-sandbox-block.checked-in {
    background: #22c55e;
    border: 1px solid #16a34a;
}

.jta-sandbox-block.driving {
    background: #3b82f6;
    border: 1px solid #2563eb;
}

.jta-sandbox-block-label {
    flex: 1;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.jta-sandbox-handle {
    width: 10px;
    flex-shrink: 0;
    align-self: stretch;
    cursor: ew-resize;
    background: rgba(0, 0, 0, 0.15);
}

.jta-sandbox-handle:hover {
    background: rgba(0, 0, 0, 0.28);
}

.jta-sandbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jta-sandbox-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: #f9f9fb;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
}

.jta-sandbox-item.driving {
    border-left-color: #3b82f6;
}

.jta-sandbox-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.jta-sandbox-item-icon.checked-in {
    background: #22c55e;
}

.jta-sandbox-item-icon.driving {
    background: #3b82f6;
}

.jta-sandbox-item-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.jta-sandbox-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jta-sandbox-field label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6e6e73;
}

.jta-sandbox-field input,
.jta-sandbox-field select {
    padding: 7px 10px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1d1d1f;
}

.jta-sandbox-item-delete {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jta-sandbox-item-delete:hover {
    background: #fecaca;
}

.jta-job-time {
    font-weight: 600;
    color: #1d1d1f;
}

.jta-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 16px;
}

.jta-loading-overlay.visible {
    display: flex;
}

.jta-btn-primary {
    background: #3b82f6;
    color: white;
}

.jta-btn-primary:hover {
    background: #2563eb;
}

.jta-filter-actions {
    justify-content: flex-end;
}

.jta-drive-note {
    font-size: 13px;
    color: #6e6e73;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jta-drive-days {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jta-drive-day {
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9fb;
}

.jta-drive-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e5e5ea;
    font-weight: 600;
    color: #1d1d1f;
}

.jta-drive-day-meta {
    font-size: 13px;
    font-weight: 500;
    color: #3b82f6;
}

.jta-drive-legs {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jta-drive-leg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    color: #1d1d1f;
    border-left: 3px solid #3b82f6;
}

.jta-drive-leg i {
    color: #3b82f6;
    margin-top: 2px;
}

.jta-drive-leg-route {
    flex: 1;
}

.jta-drive-leg-time {
    font-weight: 700;
    white-space: nowrap;
}

.jta-drive-leg-skipped {
    border-left-color: #f59e0b;
    opacity: 0.92;
}

.jta-drive-leg-skipped i {
    color: #f59e0b;
}

.jta-drive-leg-warn {
    font-size: 12px;
    color: #b45309;
    margin-top: 4px;
    font-weight: 500;
}

/* Dark theme */
[data-theme="dark"] .jta-header,
[data-theme="dark"] .jta-filters,
[data-theme="dark"] .jta-stat-card,
[data-theme="dark"] .jta-card,
[data-theme="dark"] .jta-legend {
    background: #1c1c1e;
    color: #f5f5f7;
}

[data-theme="dark"] .jta-header h1,
[data-theme="dark"] .jta-stat-value,
[data-theme="dark"] .jta-card h2,
[data-theme="dark"] .jta-table td,
[data-theme="dark"] .jta-legend-item,
[data-theme="dark"] .jta-job-info h4,
[data-theme="dark"] .jta-job-time {
    color: #f5f5f7;
}

[data-theme="dark"] .jta-tz-note {
    color: #4ade80 !important;
    background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .jta-header p,
[data-theme="dark"] .jta-stat-label,
[data-theme="dark"] .jta-filter-group label,
[data-theme="dark"] .jta-table th,
[data-theme="dark"] .jta-job-info p,
[data-theme="dark"] .jta-hour-label {
    color: #98989d;
}

[data-theme="dark"] .jta-tab {
    background: #2c2c2e;
    color: #98989d;
}

[data-theme="dark"] .jta-tab:hover {
    background: #3a3a3c;
    color: #f5f5f7;
}

[data-theme="dark"] .jta-filter-group select,
[data-theme="dark"] .jta-filter-group input[type="date"],
[data-theme="dark"] .jta-picker-toggle {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: #f5f5f7;
}

[data-theme="dark"] .jta-week-picker-card {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

[data-theme="dark"] .jta-week-label {
    color: #f5f5f7;
}

[data-theme="dark"] .jta-week-nav {
    background: #1c1c1e;
    border-color: #3a3a3c;
    color: #98989d;
}

[data-theme="dark"] .jta-week-nav:hover {
    background: #243328;
    border-color: #16a34a;
    color: #86efac;
}

[data-theme="dark"] .jta-week-day {
    background: #1c1c1e;
}

[data-theme="dark"] .jta-week-day:hover,
[data-theme="dark"] .jta-week-day.selected {
    background: #243328;
    border-color: #16a34a;
}

[data-theme="dark"] .jta-week-day-num:not(.has-cleaning) {
    color: #f5f5f7;
}

[data-theme="dark"] .jta-sandbox-toolbar,
[data-theme="dark"] .jta-sandbox-item {
    background: #2c2c2e;
}

[data-theme="dark"] .jta-sandbox-field input,
[data-theme="dark"] .jta-sandbox-field select {
    background: #1c1c1e;
    border-color: #3a3a3c;
    color: #f5f5f7;
}

[data-theme="dark"] .jta-sandbox-track {
    background: #3a3a3c;
    border-color: #48484a;
}

[data-theme="dark"] .jta-picker-dropdown {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

[data-theme="dark"] .jta-table th {
    background: #2c2c2e;
}

[data-theme="dark"] .jta-sort-btn:hover {
    color: #f5f5f7;
    background: #3a3a3c;
}

[data-theme="dark"] .jta-sortable.jta-sort-active {
    color: #f5f5f7;
}

[data-theme="dark"] .jta-bucket-row:hover td {
    background: #2c2c2e;
}

[data-theme="dark"] .jta-bucket-row.expanded td,
[data-theme="dark"] .jta-bucket-detail-row > td {
    background: #1b2e1f;
}


[data-theme="dark"] .jta-job-item {
    background: #2c2c2e;
}

[data-theme="dark"] .jta-hour-bar {
    background: #3a3a3c;
}

[data-theme="dark"] .jta-drive-note,
[data-theme="dark"] .jta-drive-day-header,
[data-theme="dark"] .jta-drive-leg {
    background: #2c2c2e;
    color: #f5f5f7;
}

[data-theme="dark"] .jta-drive-day {
    background: #1c1c1e;
    border-color: #3a3a3c;
}

[data-theme="dark"] .jta-drive-day-header {
    border-color: #3a3a3c;
}
