/* Report App — app styles */

:root {
  --navy: #061522;
  --blue: #079de9;
  --cyan: #16d6f5;
  --ink: #142536;
  --muted: #667786;
  --light: #f4f8fb;
}

body {
  background: var(--light);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ---- navbar ---- */
.xt-app-nav {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(6, 21, 34, 0.25);
}

.brand-logo {
  height: 38px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

.brand-logo-icon {
  padding: 3px;
}

.brand-logo-lg {
  height: 64px;
}

.xt-app-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.xt-app-nav .nav-link:hover,
.xt-app-nav .nav-link.active {
  color: #fff;
}

/* ---- buttons ---- */
.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: #007fc5;
  --bs-btn-hover-border-color: #007fc5;
  --bs-btn-active-bg: #007fc5;
  --bs-btn-active-border-color: #007fc5;
}

/* ---- cards ---- */
.card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(20, 37, 54, 0.08);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(20, 37, 54, 0.08);
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
}

/* ---- login ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #0b2a44 60%, #0e3a5c 100%);
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
}

.login-card .card-body {
  padding: 2.25rem;
}

.demo-hint {
  background: var(--light);
  border: 1px dashed rgba(20, 37, 54, 0.2);
  border-radius: 8px;
  font-size: 0.82rem;
}

/* ---- status stepper ---- */
.status-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.status-stepper .step {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e6edf3;
  color: var(--muted);
  white-space: nowrap;
}

.status-stepper .step.done {
  background: rgba(7, 157, 233, 0.12);
  color: var(--blue);
}

.status-stepper .step.current {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.status-stepper .step-arrow {
  color: #b8c6d2;
  font-size: 0.7rem;
}

/* ---- dashboard table ---- */
.job-table tbody tr {
  cursor: pointer;
}

.job-table tbody tr:hover {
  background: rgba(7, 157, 233, 0.05);
}

/* ---- notes timeline ---- */
.note-item {
  border-left: 3px solid var(--blue);
  padding: 0.5rem 0 0.5rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.note-item .note-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- photos ---- */
.photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(20, 37, 54, 0.1);
  background: #fff;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card .photo-caption {
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  color: var(--muted);
}

.photo-card .photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0.9;
}

.photo-empty {
  border: 2px dashed rgba(20, 37, 54, 0.15);
  border-radius: 10px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ---- client accept page ---- */
.accept-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.accept-header {
  background: var(--navy);
  border-radius: 16px 16px 0 0;
  color: #fff;
  padding: 1.75rem 2rem;
}

.terms-box {
  background: #fff;
  border: 1px solid rgba(20, 37, 54, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

/* ---- report ---- */
.report-page {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
}

.report-header {
  border-bottom: 3px solid var(--navy);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.report-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.report-photo img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(20, 37, 54, 0.1);
}

.report-pair {
  break-inside: avoid;
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .report-page { padding: 0; max-width: none; }
  .card { box-shadow: none; }
}

/* ---- misc ---- */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.text-muted-small {
  font-size: 0.82rem;
  color: var(--muted);
}

.history-list {
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.history-list li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(20, 37, 54, 0.08);
}

.history-list li:last-child {
  border-bottom: 0;
}
