.pcjm-technician-jobs {
    margin: 20px 0;
}

.pcjm-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.pcjm-tab {
    padding: 10px 20px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.pcjm-tab.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.pcjm-jobs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pcjm-jobs-table th,
.pcjm-jobs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pcjm-jobs-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.pcjm-jobs-table tr:hover {
    background-color: #f9f9f9;
}

.job-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.job-details-row td {
    padding: 0;
}

.job-details-content {
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.job-info h4,
.job-notes h4,
.job-photos h4 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.job-info p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.map-link {
    margin-top: 10px;
}

.notes-list {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.note-text {
    margin: 0 0 5px 0;
}

.note-meta {
    color: #666;
    font-size: 0.9em;
}

.add-note {
    margin-top: 15px;
}

.add-note textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.photos-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
    width: 60% !important;
}

.photo-item {
    position: relative !important;
    width: 100% !important;
    height: 150px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    display: block !important;
}

.photo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.upload-photo {
    margin-top: 15px;
}

.upload-photo input[type="file"] {
    margin-bottom: 10px;
}

/* Status colors */
.job-status-slot-confirmed {
    background-color: #fff3cd;
}

.job-status-transit {
    background-color: #d1ecf1;
}

.job-status-started {
    background-color: #cce5ff;
}

.job-status-completed {
    background-color: #d4edda;
}

/* Calendar styles */
.pcjm-technician-calendar {
    margin: 20px 0;
}

#calendar {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .pcjm-jobs-table th,
    .pcjm-jobs-table td {
        padding: 8px;
    }

    .job-actions {
        flex-direction: column;
        gap: 5px;
    }

    .job-actions .button,
    .job-actions select {
        width: 100%;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 10px !important;
    }

    .photo-item {
        height: 120px !important;
    }
}

.customer-phone {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 5px 10px;
    margin: 5px 0;
    border: 1px solid #0073aa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.customer-phone:hover,
.customer-phone:focus {
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

.customer-phone::before {
    content: "📞";
    margin-right: 5px;
}

.status-update-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.status-update {
    min-width: 150px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.update-status-btn {
    white-space: nowrap;
}

.update-status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-update-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.updated.notice {
    background: #fff;
    border-left: 4px solid #00a32a;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 5px 0 15px;
    padding: 1px 12px;
}

.updated.notice p {
    margin: 0.5em 0;
    padding: 2px;
}

/* Loading state */
.pcjm-jobs-table-container.loading {
    position: relative;
    min-height: 200px;
}

.pcjm-jobs-table-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.pcjm-jobs-table-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pcjm-year-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcjm-month-accordion {
    margin-bottom: 30px;
}

.pcjm-month-section {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.pcjm-month-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    font-size: 1.1em;
    background: #f5f5f5;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}

.pcjm-month-toggle[aria-expanded="true"] {
    background: #e9ecef;
    font-weight: bold;
}

.pcjm-month-jobs {
    padding: 0 20px 20px 20px;
    background: #fff;
    border-top: 1px solid #eee;
} 