/* =====================================================
   OVERTIME ANALYSIS PAGE — STYLES
   Matches METI Portal dark theme (--dark-700/800/900)
   ===================================================== */

/* ---- PAGE LAYOUT ---- */
.ot-page {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ---- DATE DISPLAY ---- */
.ot-date-display {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    padding: 10px 0 4px;
    letter-spacing: 0.3px;
    min-height: 24px;
}

/* ---- HEADER ---- */
.ot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.ot-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ot-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b22, #f9731622);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    flex-shrink: 0;
}
.ot-header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}
.ot-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}
.ot-header-right {
    display: flex;
    gap: 10px;
}

/* ---- BUTTONS ---- */
.ot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--dark-700);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.ot-btn:hover {
    border-color: var(--border-hover);
    background: var(--dark-600);
    color: var(--text-primary);
}
.ot-btn-primary {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #000;
}
.ot-btn-primary:hover {
    background: #d97706;
    border-color: #d97706;
    color: #000;
}
.ot-btn-secondary {
    background: var(--dark-600);
}

/* ---- FILTERS ---- */
.ot-filters {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ot-filters-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.ot-filters-row + .ot-filters-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.ot-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}
.ot-filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.ot-date-tabs {
    display: flex;
    background: var(--dark-800);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.ot-date-tab {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ot-date-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.ot-date-tab.active {
    background: #f59e0b;
    color: #000;
    font-weight: 600;
}
.ot-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ot-date-sep {
    color: var(--text-muted);
    font-size: 12px;
}
.ot-input, .ot-select {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.ot-input:focus, .ot-select:focus {
    border-color: #f59e0b;
}
.ot-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.ot-search-group {
    flex: 1;
    min-width: 200px;
}
.ot-search-wrap {
    position: relative;
}
.ot-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.ot-search-input {
    width: 100%;
    padding-left: 34px;
    box-sizing: border-box;
}
.ot-date-range-group {
    min-width: 280px;
}

/* ---- SUMMARY CARDS ---- */
.ot-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.ot-summary-card {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}
.ot-summary-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
.ot-summary-card.ot-card-active {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b44, 0 4px 16px rgba(245, 158, 11, 0.15);
}
.ot-summary-card.ot-card-active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
}
.ot-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.ot-summary-overtime::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.ot-summary-employees::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.ot-summary-avg::before { background: linear-gradient(90deg, #10b981, #14b8a6); }
.ot-summary-early::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ot-summary-anomaly::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.ot-summary-sessions::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

.ot-summary-icon {
    font-size: 22px;
    margin-bottom: 10px;
}
.ot-summary-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.ot-summary-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.ot-summary-detail {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- CONTENT SECTION ---- */
.ot-content {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.ot-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.ot-content-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.ot-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ot-sort-label {
    font-size: 12px;
    color: var(--text-muted);
}
.ot-sort-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ot-sort-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.ot-sort-btn.active { background: #f59e0b22; border-color: #f59e0b44; color: #f59e0b; }

/* ---- EMPLOYEE CARDS ---- */
.ot-employee-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--dark-800);
}
.ot-employee-card:hover {
    border-color: var(--border-hover);
    background: var(--dark-600);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ot-emp-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.ot-emp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b33, #f9731633);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #f59e0b;
    flex-shrink: 0;
}
.ot-emp-info {
    flex: 1;
    min-width: 0;
}
.ot-emp-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ot-emp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    flex-wrap: wrap;
}
.ot-emp-divider {
    opacity: 0.3;
}
.ot-emp-project {
    color: #3b82f6;
    font-weight: 500;
}
.ot-emp-shift {
    color: #f59e0b;
}
.ot-emp-subshift {
    color: #a78bfa;
    font-style: italic;
}
.ot-emp-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.ot-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ot-badge-overtime { background: #f59e0b22; color: #f59e0b; }
.ot-badge-early { background: #8b5cf622; color: #a78bfa; }
.ot-badge-anomaly { background: #ef444422; color: #ef4444; }
.ot-badge-leave { background: #6366f122; color: #818cf8; }

.ot-emp-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}
.ot-emp-stat {
    text-align: center;
    min-width: 65px;
}
.ot-emp-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.ot-emp-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ot-highlight-overtime { color: #f59e0b !important; }
.ot-highlight-early { color: #a78bfa !important; }

.ot-emp-stat-timeline {
    min-width: 120px;
}
.ot-timeline-row {
    display: flex;
    gap: 3px;
    justify-content: center;
}
.ot-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.ot-dot-normal { background: #374151; }
.ot-dot-overtime { background: #f59e0b; }
.ot-dot-early { background: #8b5cf6; }
.ot-dot-anomaly { background: #ef4444; }
.ot-dot-both { background: linear-gradient(135deg, #f59e0b, #8b5cf6); }
.ot-dot-leave { background: #6366f1; }
.ot-dot-data_missing { background: #f59e0b; opacity: 0.5; }

.ot-emp-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ot-employee-card:hover .ot-emp-arrow {
    transform: translateX(3px);
    color: #f59e0b;
}

/* ---- PAGINATION ---- */
.ot-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.ot-pagination-info {
    font-size: 12px;
    color: var(--text-muted);
}
.ot-pagination-btns {
    display: flex;
    gap: 4px;
}
.ot-page-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.ot-page-btn:hover { background: var(--dark-600); }
.ot-page-btn.active { background: #f59e0b; color: #000; border-color: #f59e0b; }

/* ---- LOADING ---- */
.ot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}
.ot-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: otSpin 0.8s linear infinite;
}
@keyframes otSpin { to { transform: rotate(360deg); } }

/* ---- EMPTY STATE ---- */
.ot-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.ot-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.ot-empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ---- MODAL ---- */
.ot-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.ot-modal {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* Edit Overtime modal: same shell, but the inner table is wide so we
   wrap it in a scroll container instead of letting it overflow the body. */
.ot-modal-edit .ot-modal-body {
    padding: 20px 24px;
}
.ot-edit-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 16px;
    border-radius: 10px;
}
.ot-edit-table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 0 !important;
}
.ot-edit-table th,
.ot-edit-table td {
    padding: 10px 8px;
    vertical-align: middle;
}
.ot-edit-table .ot-edit-input {
    width: 64px;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 12px;
}
.ot-edit-table .ot-nowrap { white-space: nowrap; }
.ot-edit-table .ot-paid-cell { color: #22c55e; font-weight: 600; white-space: nowrap; }

@media (max-width: 720px) {
    .ot-modal { max-width: 100%; max-height: 95vh; border-radius: 14px; }
    .ot-modal-header { padding: 16px 18px; }
    .ot-modal-edit .ot-modal-body { padding: 14px 16px; }
    .ot-edit-table .ot-edit-input { width: 56px; }
}
.ot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ot-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.ot-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ot-modal-close:hover {
    background: var(--dark-600);
    color: var(--text-primary);
}
.ot-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

/* ---- DETAIL VIEW ---- */
.ot-detail-info {
    margin-bottom: 24px;
}
.ot-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.ot-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ot-detail-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ot-detail-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.ot-detail-summary-row {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--dark-700);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.ot-detail-summary-stat {
    text-align: center;
    flex: 1;
}
.ot-detail-summary-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.ot-detail-summary-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- DAY-BY-DAY TABLE ---- */
.ot-detail-days {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.ot-detail-days-header {
    display: grid;
    grid-template-columns: 120px 1fr 90px 90px 90px 100px 60px;
    gap: 8px;
    padding: 10px 16px;
    background: var(--dark-600);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ot-detail-day {
    display: grid;
    grid-template-columns: 120px 1fr 90px 90px 90px 100px 60px;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
    font-size: 13px;
    transition: background 0.15s;
}
.ot-detail-day:hover {
    background: rgba(255,255,255,0.02);
}
.ot-detail-day:last-child {
    border-bottom: none;
}
.ot-detail-day-date {
    font-weight: 500;
    color: var(--text-primary);
}
.ot-detail-day-times {
    color: var(--text-secondary);
    font-size: 12px;
}
.ot-detail-time {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 500;
}
.ot-detail-nodata {
    color: var(--text-muted);
    font-style: italic;
}
.ot-late-note {
    display: block;
    font-size: 12px;
    color: #000;
    background: #f59e0b;
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 4px;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.2px;
}
.ot-detail-day-worked {
    color: var(--text-secondary);
    font-weight: 500;
}
.ot-detail-day-ot {
    color: var(--text-muted);
}
.ot-has-value {
    color: #f59e0b !important;
    font-weight: 600;
}
.ot-detail-day-early {
    color: var(--text-muted);
}
.ot-has-value-early {
    color: #a78bfa !important;
    font-weight: 600;
}

.ot-status-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ot-day-overtime .ot-status-chip { background: #f59e0b22; color: #f59e0b; }
.ot-day-anomaly .ot-status-chip { background: #ef444422; color: #ef4444; }
.ot-day-early_start .ot-status-chip { background: #8b5cf622; color: #a78bfa; }
.ot-day-early_leave .ot-status-chip { background: #6366f122; color: #818cf8; }
.ot-day-normal .ot-status-chip { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.ot-day-no_data .ot-status-chip { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.ot-day-data_missing .ot-status-chip { background: #f59e0b22; color: #f59e0b; }
.ot-day-data_missing { background: rgba(245, 158, 11, 0.03); }
.ot-day-overtime_and_early .ot-status-chip { background: linear-gradient(90deg, #f59e0b22, #8b5cf622); color: #f59e0b; }

/* Overtime row highlight */
.ot-day-overtime,
.ot-day-overtime_and_early {
    background: rgba(245, 158, 11, 0.03);
}
.ot-day-anomaly {
    background: rgba(239, 68, 68, 0.03);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .ot-emp-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ot-emp-stat-timeline {
        display: none;
    }
    .ot-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ot-filters-row {
        flex-direction: column;
        gap: 12px;
    }
    .ot-employee-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ot-emp-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .ot-emp-arrow {
        display: none;
    }
    .ot-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ot-detail-days-header,
    .ot-detail-day {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .ot-detail-day-ot,
    .ot-detail-day-early,
    .ot-detail-day-status {
        font-size: 11px;
    }
    .ot-modal {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .ot-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ot-summary-card {
        padding: 14px;
    }
    .ot-summary-value {
        font-size: 22px;
    }
}

/* ---- MAIN TABS ---- */
.ot-main-tabs {
    display: flex;
    gap: 4px;
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}
.ot-main-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.ot-main-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.ot-main-tab.active { color: #f59e0b; background: rgba(245, 158, 11, 0.1); font-weight: 600; }

/* ---- SUMMARY KPIs ---- */
.ot-sum-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.ot-sum-kpi {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
.ot-sum-kpi-paid { border-color: #f59e0b44; }
.ot-sum-kpi-val { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.ot-sum-kpi-paid .ot-sum-kpi-val { color: #f59e0b; }
.ot-sum-kpi-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- CHARTS ---- */
.ot-sum-charts-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.ot-sum-chart-card {
    flex: 1;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.ot-sum-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ---- TABLE ---- */
.ot-sum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ot-sum-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.ot-sum-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-secondary);
}
.ot-sum-row { cursor: pointer; transition: background 0.15s; }
.ot-sum-row:hover { background: rgba(255,255,255,0.03); }
.ot-sum-paid { color: #f59e0b; font-weight: 600; }
.ot-sum-table tfoot td { border-top: 2px solid var(--border); }

/* ---- EDIT INPUTS ---- */
.ot-edit-input {
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
}
.ot-edit-input:focus { border-color: #f59e0b; outline: none; }

/* ---- BADGES ---- */
.ot-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ot-badge-overtime { background: #f59e0b22; color: #f59e0b; }
.ot-badge-early { background: #10b98122; color: #10b981; }
.ot-badge-anomaly { background: #8b5cf622; color: #8b5cf6; }

/* ---- DATE INPUTS ---- */
.ot-date-inputs { display: flex; align-items: center; gap: 8px; }
.ot-date-sep { color: var(--text-muted); font-size: 12px; }

/* ---- SUBROWS ---- */
.ot-sum-subrow { background: rgba(245,158,11,0.03); }
.ot-sum-subrow td { font-size: 12px; padding: 6px 12px; }
.ot-sum-row-expanded { background: rgba(245,158,11,0.06); }
.ot-sum-row { cursor: pointer; }
.ot-sum-row:hover { background: rgba(255,255,255,0.03); }

/* ---- EXPORT MODAL OPTIONS ---- */
.ot-export-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-size: 13px;
}
.ot-export-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-hover);
}

/* ---- EXPORT TABS ---- */
.ot-export-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
}
.ot-export-tab {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}
.ot-export-tab:hover { color: var(--text-primary); }
.ot-export-tab.active { background: rgba(245,158,11,0.12); color: #f59e0b; font-weight: 600; }

/* ---- INLINE EDIT BUTTON (analysis tab) ---- */
.ot-edit-inline-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.ot-edit-inline-btn:hover {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
}