.dbt-root{font-family:"Inter",system-ui,-apple-system,Segoe UI,sans-serif;padding:28px 12px;}
.dbt-card{max-width:980px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.06);padding:22px;}
.dbt-kicker{font-size:.72rem;letter-spacing:.12em;font-weight:800;color:#0F318A;}
.dbt-title{margin:6px 0 6px;font-size:1.55rem;font-weight:900;color:#111827;}
.dbt-sub{margin:0;color:#6b7280;font-size:.98rem;}
.dbt-form{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.dbt-input{flex:1 1 260px;height:46px;border-radius:12px;border:1px solid #d1d5db;padding:0 14px;font-size:1rem;outline:none}
.dbt-input:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.2)}
.dbt-btn{height:46px;border:0;border-radius:12px;padding:0 16px;font-weight:800;cursor:pointer;background:#0F318A;color:#fff}
.dbt-btn:disabled{opacity:.6;cursor:not-allowed}
.dbt-msg{margin-top:12px;padding:12px 14px;border-radius:12px;background:#fef3c7;border:1px solid #fde68a;color:#92400e}

.dbt-row{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.dbt-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-weight:900}
.dbt-meta{color:#6b7280;font-size:.92rem}

.dbt-progress{margin-top:14px}
.dbt-progressbar{position:relative;height:10px;border-radius:999px;background:#eef2ff;border:1px solid #e5e7eb;overflow:hidden}
.dbt-progressfill{height:100%;border-radius:999px;background:#0F318A;width:0%}
.dbt-progresslabels{margin-top:10px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.dbt-plabel{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:.9rem;font-weight:700}
.dbt-dot{width:10px;height:10px;border-radius:999px;background:#c7d2fe}
.dbt-plabel-on{color:#111827}
.dbt-plabel-on .dbt-dot{background:#0F318A}

.dbt-included{margin-top:10px;color:#111827;font-weight:900}

.dbt-steps{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.dbt-step{border-radius:14px;border:1px solid #e5e7eb;padding:12px;background:#fff}
.dbt-step-on{background:#ecfdf5;border-color:#a7f3d0}
.dbt-step-done{background:#ecfdf5;border-color:#a7f3d0}
.dbt-step-off{background:#fff}
.dbt-step-na{background:#f3f4f6;border-color:#e5e7eb;opacity:.85}
.dbt-step-num{font-weight:900;color:#111827}
.dbt-step-label{margin-top:6px;color:#6b7280;font-size:.9rem}

.dbt-docs{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}
.dbt-docbtn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;height:42px;padding:0 14px;border-radius:12px;background:#111827;color:#fff;font-weight:900}
.dbt-docbtn:hover{opacity:.92}

.dbt-section{margin-top:18px}
.dbt-section-title{font-size:1.05rem;font-weight:900;color:#111827;margin-bottom:8px}
.dbt-timeline{display:grid;gap:10px}
.dbt-entry{border-radius:14px;border:1px solid #e5e7eb;padding:12px 14px;background:#fff}
.dbt-entry-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dbt-entry-title{font-weight:900;color:#111827}
.dbt-entry-time{color:#6b7280;font-size:.9rem}
.dbt-entry-body{margin-top:8px;color:#374151;word-break:break-word}
.dbt-entry-meta{margin-top:8px;color:#6b7280;font-size:.9rem}
.dbt-entry-rec{margin-top:8px;border-top:1px dashed #e5e7eb;padding-top:8px;color:#374151}
.dbt-entry-rec strong{color:#111827}

/* Ensure values never inherit theme "visited link" purple */
.dbt-entry-rec, .dbt-entry-rec *{text-decoration:none}
.dbt-value{color:#374151;font-weight:700}
.dbt-entry a{color:#0F318A}

/* Collapsible attempt cards */
.dbt-attempt{position:relative;overflow:hidden}
.dbt-attempt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;user-select:none}
.dbt-attempt-left{display:flex;align-items:center;gap:10px;min-width:0}
.dbt-attempt-chevron{width:22px;height:22px;border-radius:10px;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;color:#6b7280;flex:0 0 auto}
.dbt-attempt-body{margin-top:10px}
.dbt-attempt.is-collapsed .dbt-attempt-body{display:none}
.dbt-attempt.is-collapsed .dbt-attempt-chevron{transform:rotate(-90deg)}

/* Subtle icon next to "Served To" label */
.dbt-served-label{display:inline-flex;align-items:center;gap:6px}
.dbt-served-icon{width:14px;height:14px;display:inline-block;opacity:.7}

/* Print-friendly affidavit view */
.dbt-docbtn-secondary{background:#0F318A}

.dbt-help{margin-top:18px;border-radius:16px;border:1px solid #dbeafe;background:linear-gradient(135deg,#e8f3ff,#f8fbff);padding:14px 14px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.dbt-help-title{font-weight:900;color:#0F318A}
.dbt-help-text{color:#374151;max-width:640px}
.dbt-help-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;height:44px;padding:0 16px;border-radius:12px;background:#0F318A;color:#fff;font-weight:900}

@media(max-width:740px){
  .dbt-progresslabels{justify-content:flex-start}
  .dbt-steps{grid-template-columns:1fr 1fr}
}

/* --- v173.1: attempts ordering + affidavit buttons + photo links --- */
.dbt-entry-meta .dbt-value, .dbt-entry-body .dbt-value, .dbt-entry-rec .dbt-value { color: #111827; }
.dbt-entry-rec a, .dbt-entry-meta a { color: inherit; text-decoration: underline; }

.dbt-docs-title{
  font-weight: 700;
  margin: 8px 0 10px;
  color: #0f172a;
}
.dbt-docs-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dbt-docbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.12);
  background:#ffffff;
  color:#0f172a;
  font-weight:600;
  text-decoration:none;
}
.dbt-docbtn:hover{ filter: brightness(0.98); }

.dbt-photolink{
  display:inline-block;
  margin-right:10px;
  text-decoration: underline;
}
