/* === Customer Dashboard === */

.p3d-status-lookup { max-width: 500px; }
.p3d-status-form .p3d-form-row { margin-bottom: 16px; }
.p3d-status-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.p3d-status-form input[type="text"],
.p3d-status-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 15px;
}
.p3d-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}
.p3d-btn-primary:hover { background: #135e96; }
.p3d-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.p3d-status-error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 12px 16px;
    margin-top: 16px;
    color: #d63638;
}

.p3d-status-detail { margin-top: 16px; }
.p3d-back-link { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.p3d-status-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.p3d-status-header h3 { margin: 0; }

.p3d-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.p3d-status-new { background: #e0f0ff; color: #0a4b78; }
.p3d-status-awaiting_device { background: #fff3cd; color: #856404; }
.p3d-status-in_diagnosis { background: #d1ecf1; color: #0c5460; }
.p3d-status-quote_sent { background: #e2d5f1; color: #5a3d8a; }
.p3d-status-approved { background: #d4edda; color: #155724; }
.p3d-status-repaired { background: #c3e6cb; color: #0f5132; }
.p3d-status-returned { background: #cce5ff; color: #004085; }
.p3d-status-closed { background: #e2e3e5; color: #383d41; }

.p3d-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    position: relative;
}
.p3d-progress-bar::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dcdcde;
    z-index: 0;
}
.p3d-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.p3d-progress-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcdcde;
    border: 3px solid #fff;
    margin-bottom: 6px;
}
.p3d-progress-step.done .p3d-progress-dot { background: #2271b1; }
.p3d-progress-step.active .p3d-progress-dot {
    background: #2271b1;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}
.p3d-progress-label {
    font-size: 11px;
    text-align: center;
    color: #646970;
    max-width: 80px;
}
.p3d-progress-step.done .p3d-progress-label,
.p3d-progress-step.active .p3d-progress-label { color: #1d2327; font-weight: 600; }

.p3d-detail-section { margin-bottom: 24px; }
.p3d-detail-section h4 { margin-bottom: 8px; border-bottom: 1px solid #dcdcde; padding-bottom: 4px; }

.p3d-timeline { list-style: none; padding: 0; margin: 0; }
.p3d-timeline-entry {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-left: 2px solid #2271b1;
    padding-left: 16px;
    margin-left: 8px;
}
.p3d-timeline-entry:last-child { border-left-color: transparent; }
.p3d-timeline-date { color: #646970; font-size: 13px; min-width: 140px; }
.p3d-timeline-status { font-weight: 600; }

.p3d-repairs-table { width: 100%; border-collapse: collapse; }
.p3d-repairs-table th,
.p3d-repairs-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #dcdcde; }
.p3d-repairs-table th { font-weight: 600; background: #f6f7f7; }
.p3d-repairs-table a { text-decoration: none; font-weight: 600; }

@media (max-width: 768px) {
    .p3d-progress-bar { flex-wrap: wrap; gap: 8px; }
    .p3d-progress-label { font-size: 10px; max-width: 60px; }
    .p3d-repairs-table { font-size: 14px; }
    .p3d-timeline-entry { flex-direction: column; gap: 2px; }
    .p3d-timeline-date { min-width: auto; }
}
