/* group-b.css — page-specific styles for jobs, inventory, invoices, services, reports, settings */

/* ===== jobs.js / invoices.js ===== */
.plate-badge { display: inline-flex; align-items: center; padding: 1px 8px; border: 1.5px solid var(--border-strong); border-radius: 6px; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.input-late, .input.input-late { border-color: var(--danger); color: #991b1b; }
.segmented button:disabled { opacity: .4; cursor: not-allowed; }
.segmented button .icon { width: 16px; height: 16px; margin-right: 4px; }

/* totals box (job items, invoice) */
.totals { display: flex; flex-direction: column; gap: 6px; min-width: 260px; font-size: 14px; }
.tot-row { display: flex; justify-content: space-between; gap: 16px; }
.tot-row.tot-total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.totals-card { min-width: min(100%, 320px); }
.inv-balance { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.inv-balance b { font-size: 26px; }
.inv-balance.due { background: var(--danger-soft); color: #991b1b; }
.inv-balance.settled { background: var(--success-soft); color: #065f46; }
.inv-due { max-width: 180px; }

/* jobs list: board view */
.job-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.job-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.job-col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 6px; }
.job-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 14px; }
.job-card:hover { border-color: var(--accent); }
.job-card .avatar { width: 24px; height: 24px; font-size: 10px; }

/* job detail */
.page-job .page-subtitle .badge .icon { width: 14px; height: 14px; margin-right: 4px; }
.job-head-grid .card-inset { min-width: 0; }
.job-head .checkbox { align-items: flex-start; flex-wrap: wrap; }
.job-head .checkbox > span + span { flex-basis: 100%; margin-left: 26px; }
.job-actions.sticky-actions { justify-content: flex-start; flex-wrap: wrap; padding: 10px 0; }
.job-actions.sticky-actions .btn { min-height: 44px; }
@media (max-width: 900px) {
  .job-actions.sticky-actions { bottom: var(--bottomnav-h); margin: 16px -14px 0; padding: 10px 14px; box-shadow: 0 -6px 16px rgba(15,23,42,.06); }
  .job-actions.sticky-actions .btn { flex: 1 1 auto; }
}

/* items tab */
.items-table td.item-type .icon { width: 18px; height: 18px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 4px; }
.qty-ctl .input { width: 64px; min-height: 32px; padding: 4px 6px; text-align: center; }
.items-table .money-input { width: 96px; min-height: 32px; padding: 4px 8px; text-align: right; }
.job-add .card-title .icon { color: var(--muted); }
.job-add .hint { line-height: 1.35; }

/* inspection tab */
.ck-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ck-row:last-of-type { border-bottom: 0; }
.ck-label { font-weight: 500; font-size: 14px; }
.ck-row .segmented { justify-self: end; }
.ck-row .ck-note { grid-column: 1 / -1; min-height: 34px; padding: 5px 10px; font-size: 13px; }
.ck-row[data-value="issue"] .ck-label { color: #991b1b; font-weight: 600; }
.ck-row[data-value="ok"] .ck-label { color: #065f46; }
@media (max-width: 700px) { .ck-row .segmented button { padding: 6px 12px; min-height: 36px; } }

/* photos / timeline / notify */
.photo-full { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 8px; }
.note-form textarea { min-height: 44px; }
.tl-icon.tl-status { color: var(--accent-600); } .tl-icon.tl-payment { color: #059669; } .tl-icon.tl-item { color: #075985; } .tl-icon.tl-photo { color: #5b21b6; }
.nt-item { align-items: flex-start; }
.nt-body { white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.mailin .card-title .icon { color: var(--muted); }
