/* ===== DASHBOARD ===== */
.dashboard-wrap {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #999;
    margin: 28px 0 10px;
    padding: 0 4px;
}

.dashboard-section-title:first-child { margin-top: 8px; }

/* ===== DASHBOARD BUTTONS ===== */
.dashboard-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    cursor: pointer;
    transition: background .12s, box-shadow .12s, transform .08s;
    text-align: left;
}

.dashboard-btn:active {
    background: #f9f9f9;
    box-shadow: none;
    transform: scale(.99);
}

.btn-icon {
    width: 42px; height: 42px;
    background: #FCE4E8;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px;
    color: #C8102E;
    flex-shrink: 0;
}

.btn-chevron {
    margin-left: auto;
    color: #ccc;
    flex-shrink: 0;
}

/* Admin button — dark */
.btn-icon--admin   { background: #1a1a1a; color: #fff; }
.dashboard-btn--admin { border-left: 3px solid #C8102E; }

/* Install button */
.btn-icon--install { background: #FCE4E8; color: #C8102E; }
.dashboard-btn--install { color: #C8102E; border-color: #FCE4E8; }

/* Logout button */
.btn-icon--logout  { background: #f5f5f5; color: #999; }
.dashboard-btn--logout { color: #999; border-color: #f0f0f0; }
.dashboard-btn--logout .btn-chevron { display: none; }

/* ===== ADMIN FILTER BAR ===== */
.admin-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.filter-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-search-icon {
    flex-shrink: 0;
    color: #aaa;
}

.filter-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    background: transparent;
}

.filter-search-input::placeholder { color: #bbb; }

.filter-tech-select {
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fafafa;
    max-width: 140px;
}

@media (max-width: 480px) {
    .admin-filter-bar { flex-wrap: wrap; }
    .filter-search-wrap { width: 100%; }
    .filter-tech-select { flex: 1; max-width: none; }
}

/* ===== JOBS LIST ===== */
.jobs-list { margin-bottom: 8px; }

.job-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    cursor: pointer;
    transition: background .12s, transform .08s;
    border-left: 4px solid #C8102E;
    user-select: none;
    -webkit-user-select: none;
}

.job-card:active { background: #f9f9f9; transform: scale(.99); }

.job-card-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.job-card-number {
    font-size: 11px; color: #C8102E;
    font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase;
}

.job-card-company {
    font-size: 16px; font-weight: 700; margin-bottom: 3px;
}

.job-card-address { font-size: 13px; color: #777; margin-bottom: 8px; }

.job-card-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.job-card-type {
    font-size: 11px; color: #C8102E; font-weight: 700;
    background: #FCE4E8; padding: 2px 9px; border-radius: 99px;
    text-transform: uppercase; letter-spacing: .3px;
}
.job-card-tech {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: #666;
}
.job-card-tech svg { flex-shrink: 0; }

.job-card-progress-bar {
    height: 6px; background: #e0e0e0; border-radius: 3px; margin-bottom: 10px; overflow: hidden;
}
.job-card-progress-fill {
    height: 100%; background: #C8102E; border-radius: 3px; transition: width .3s;
    min-width: 0;
}

.job-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.job-progress { font-size: 12px; color: #999; font-weight: 600; }
.job-date     { font-size: 11px; color: #aaa; }

.jobs-empty {
    text-align: center; padding: 24px;
    color: #bbb; font-size: 14px;
    background: #fff; border-radius: 12px;
    border: 1.5px dashed #e8e8e8;
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px; font-weight: 700;
    color: #C8102E;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.view-all-btn:active { background: #FCE4E8; }

/* ===== JOB DETAIL ===== */
.job-detail-wrap { padding: 16px; max-width: 600px; margin: 0 auto; }

.job-info-card {
    background: #fff; border-radius: 12px;
    padding: 16px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border-top: 3px solid #C8102E;
}

.job-info-row {
    display: flex; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.job-info-row:last-child { border-bottom: none; }
.job-info-label { color: #999; min-width: 100px; flex-shrink: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.job-info-value { font-weight: 500; }
.job-info-row--desc .job-info-value { white-space: pre-wrap; line-height: 1.5; }
.job-info-section-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: #C8102E;
    padding: 10px 0 4px; margin-top: 4px;
    border-top: 1px solid #f5f5f5;
}

.desc-toggle-btn {
    display: block; margin-top: 6px;
    background: none; border: none; padding: 0;
    color: #C8102E; font-size: 13px; font-weight: 700;
    cursor: pointer; letter-spacing: .2px;
}

.items-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}

.items-section-header h2 { font-size: 16px; font-weight: 700; }

.add-item-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    background: #C8102E; color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 700;
    cursor: pointer; border: none;
    letter-spacing: .2px;
}

.add-item-btn:active { background: #9B0B22; }

.item-card {
    background: #fff; border-radius: 10px;
    padding: 14px; margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border-left: 4px solid #ddd;
    cursor: pointer;
    transition: background .12s;
}

.item-card:active { background: #f9f9f9; }
.item-card--completed { border-left-color: #2E7D32; }
.item-card--pending   { border-left-color: #C8102E; }
.item-card--blank     { border-left-color: #ddd; background: #fafafa; }
.item-card--blank:active { background: #f0f0f0; }
.item-trade--blank    { color: #bbb; background: #f0f0f0; }
.item-desc--blank     { font-size: 13px; color: #bbb; font-style: italic; }

.item-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.item-delete-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: none; border: none; padding: 6px;
    border-radius: 6px; color: #ccc; cursor: pointer;
    display: flex; align-items: center;
    transition: color .15s, background .15s;
}
.item-delete-btn:active { color: #C8102E; background: #FCE4E8; }
.item-number { font-size: 20px; font-weight: 800; color: #C8102E; min-width: 28px; }
.item-trade { font-size: 11px; background: #f5f5f5; padding: 3px 8px; border-radius: 99px; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.item-desc { font-size: 14px; color: #1a1a1a; }
.item-location-badge { display: inline-block; margin: 4px 0 2px; font-size: 11px; font-weight: 700; color: #C8102E; background: #FCE4E8; padding: 2px 8px; border-radius: 99px; letter-spacing: .2px; }

.item-photos-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.item-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.item-photo-thumb {
    width: 68px; height: 68px; object-fit: cover;
    border-radius: 6px;
}

.item-photo-label {
    font-size: 9px; color: #999; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
}

/* ===== EXTRA MATERIALS ===== */
.extra-materials-section { padding: 14px 16px; }
.extra-materials-toggle {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none; -webkit-user-select: none;
}
.extra-materials-toggle input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: #C8102E; flex-shrink: 0; cursor: pointer;
}
.extra-materials-label {
    font-size: 15px; font-weight: 700; color: #1a1a1a;
}
#extra-materials-body { margin-top: 12px; }

/* ===== PROGRESS LOG ===== */
.progress-section {
    background: #fff; border-radius: 12px;
    padding: 16px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.progress-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}

.progress-section-label {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .7px; color: #C8102E;
}

.add-progress-btn {
    background: #C8102E; color: #fff; border: none;
    border-radius: 8px; padding: 8px 14px;
    font-size: 14px; font-weight: 700; cursor: pointer;
}
.add-progress-btn:active { background: #9B0B22; }

.progress-step-card {
    background: #f9f9f9; border-radius: 8px;
    padding: 12px; margin-bottom: 10px;
    border-left: 3px solid #C8102E;
}

.progress-step-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
}

.progress-step-title { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.progress-step-date  { font-size: 11px; color: #999; }

.progress-step-desc {
    font-size: 13px; color: #555; margin-bottom: 8px; line-height: 1.5;
}

.progress-step-photo {
    width: 100%; max-height: 180px; object-fit: cover;
    border-radius: 6px; margin-top: 6px;
}

.progress-empty {
    text-align: center; padding: 16px;
    color: #bbb; font-size: 13px;
}

.signoff-trigger-btn {
    width: 100%; padding: 18px;
    background: #2E7D32; color: #fff;
    border-radius: 12px; font-size: 17px; font-weight: 700;
    border: none; cursor: pointer; margin-top: 8px;
    box-shadow: 0 2px 8px rgba(46,125,50,.25);
    letter-spacing: .2px;
}

.signoff-trigger-btn:active { background: #1B5E20; }

.signoff-trigger-btn--inspection { background: #1565C0; box-shadow: 0 2px 8px rgba(21,101,192,.25); }
.signoff-trigger-btn--inspection:active { background: #0D47A1; }

/* ===== PLANS GRID (inside job info card) ===== */
.job-info-plans-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px; padding: 4px 0 8px;
}
.plan-card {
    display: flex; flex-direction: column; align-items: center;
    border: 1px solid #eee; border-radius: 8px; overflow: hidden;
    background: #fafafa; text-decoration: none; color: inherit;
    transition: box-shadow .15s;
}
.plan-card:active { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.plan-thumb-img {
    width: 100%; height: 80px; object-fit: cover; display: block;
}
.plan-pdf-icon {
    width: 100%; height: 80px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    background: #fff5f5;
}
.plan-pdf-icon span { font-size: 10px; font-weight: 700; color: #C8102E; letter-spacing: 1px; }
.plan-card-name {
    font-size: 10px; color: #666; padding: 5px 6px;
    text-align: center; width: 100%; box-sizing: border-box;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== SERVICE CHECKLIST ===== */
.svc-checklist-card {
    background: #fff; border-radius: 12px; border: 1px solid #eee;
    margin-bottom: 16px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.svc-checklist-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; font-weight: 700; font-size: 14px;
    background: #f9f9f9; cursor: pointer; border-bottom: 1px solid #eee;
    color: #333;
}
.svc-checklist-body { display: none; padding: 12px 16px 16px; }
.svc-checklist-body--open { display: block; }
.svc-checklist-section-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: #C8102E; margin: 12px 0 8px;
}
.svc-checklist-section-title:first-child { margin-top: 0; }
.svc-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}
.svc-check-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #444; cursor: pointer;
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid #eee; background: #fafafa;
}
.svc-check-item--checked { background: #f0faf2; border-color: #a5d6a7; color: #2E7D32; }
.svc-checkbox { accent-color: #C8102E; width: 16px; height: 16px; flex-shrink: 0; }
.svc-save-btn { margin-top: 14px; }
.svc-checklist-feedback { font-size: 13px; margin-top: 8px; padding: 8px 12px; border-radius: 6px; }
.svc-checklist-feedback--ok  { background: #f0faf2; color: #2E7D32; }
.svc-checklist-feedback--err { background: #FFF0F2; color: #9B0B22; }
.svc-checklist-notice { margin: 16px 0; padding: 12px 16px; background: #fff8e1; border-left: 4px solid #e0a000; border-radius: 6px; font-size: 14px; color: #7a5100; }

/* ===== STORES SIGN-OFF MODAL ===== */
.stores-modal-inner {
    background: #fff; border-radius: 12px; max-width: 520px;
    width: 92%; margin: 40px auto; overflow: hidden;
}
.stores-modal-header {
    background: #C8102E; padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    color: #fff; font-weight: 700; font-size: 16px;
}
.stores-modal-close {
    background: none; border: none; color: #fff; font-size: 24px;
    cursor: pointer; line-height: 1; padding: 0;
}
.stores-modal-body { padding: 16px 20px; }
.stores-link-block { margin-bottom: 20px; }
.stores-link-block:last-child { margin-bottom: 0; }
.stores-link-role {
    font-size: 11px; font-weight: 800; color: #C8102E;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.stores-link-row { display: flex; gap: 8px; margin-bottom: 8px; }
.stores-link-input {
    flex: 1; padding: 9px 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 12px; background: #f9f9f9;
    min-width: 0;
}
.stores-copy-btn {
    padding: 0 14px; background: #f0f0f0; border: 1px solid #ddd;
    border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.stores-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stores-share-btn {
    display: inline-flex; align-items: center; padding: 8px 14px;
    border-radius: 8px; font-size: 13px; font-weight: 700;
    text-decoration: none; color: #fff;
}
.stores-share-btn--wa  { background: #25D366; }
.stores-share-btn--em  { background: #1a73e8; }
.stores-share-btn--sms { background: #555; }

/* ===== TIME LOG ===== */
.time-log-section {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 16px;
    margin: 0 16px 16px;
}
.time-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.time-log-add-btn {
    background: #C8102E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.time-log-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 13px;
    color: #e0e0e0;
}
.time-log-date { flex: 1; min-width: 0; }
.time-log-times { color: #888; white-space: nowrap; font-size: 12px; }
.time-log-hrs {
    font-weight: 700;
    color: #C8102E;
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
}
.time-log-del {
    background: none;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.time-log-del-placeholder { width: 20px; flex-shrink: 0; }
.time-log-total {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    font-size: 14px;
    color: #ccc;
    gap: 4px;
}
.time-log-total strong { color: #C8102E; }
.time-log-empty {
    font-size: 13px;
    color: #555;
    text-align: center;
    padding: 8px 0;
}
