/* ATLAS Case — signed forms (R53.17 FORMS-01; build 2 2026-10-08: boxes line up). The dialog keeps the v1.8.8 .occo-form-* frame; these are the form
   format's own blocks, the signature pads and the Autopsy Declination Waiver card. */
#occo-case-form-overlay .occo-form-panel{width:min(920px,100%)}
.atlas-forms-section-title{font:800 10px/1.2 var(--mono,monospace);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-lt);border-bottom:1px solid var(--border2);padding:12px 0 6px;margin-top:4px}
.atlas-forms-grid,.atlas-forms-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.atlas-forms-grid .wide,.atlas-forms-facts .wide{grid-column:span 2}
.atlas-forms-grid .occo-form-field.wide:has(textarea){grid-column:1/-1}
.atlas-forms-fact{border:1px solid var(--border1);background:var(--surf2);border-radius:8px;padding:7px 9px;min-height:44px}
.atlas-forms-fact b{display:block;font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim);margin-bottom:3px}
.atlas-forms-fact span{display:block;font-size:13px;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.atlas-forms-fact small{display:block;font-size:9px;color:var(--text-dim);margin-top:2px}
.atlas-forms-req{font-style:normal;font-size:9px;font-weight:700;color:var(--gold-lt);margin-left:4px;text-transform:none;letter-spacing:0}
.atlas-forms-notice{display:grid;gap:3px;border:1px solid #b06b14;background:rgba(176,107,20,.1);border-radius:9px;padding:10px 12px}
.atlas-forms-notice.warning{border-color:#a8473a;background:rgba(168,71,58,.1)}
.atlas-forms-notice b{font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.atlas-forms-notice span{font-size:13px;line-height:1.4}
.atlas-forms-statement{border:1px solid var(--border1);background:var(--surf2);border-radius:9px;padding:10px 12px}
.atlas-forms-statement b{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:4px}
.atlas-forms-statement p{margin:0;font-size:13px;line-height:1.45}
.atlas-forms-checks{border:1px solid var(--border1);border-radius:9px;padding:8px 12px 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:0}
.atlas-forms-checks legend{font:800 10px/1.2 var(--mono,monospace);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-lt);padding:0 4px}
.atlas-forms-checks label,.atlas-forms-ack{display:flex;align-items:center;gap:9px;min-height:40px;font-size:13px;cursor:pointer}
.atlas-forms-checks input,.atlas-forms-ack input{width:22px;height:22px;flex:0 0 auto;accent-color:var(--gold)}
.atlas-forms-ack{border:1px solid var(--border1);border-radius:9px;padding:4px 12px;font-weight:700}
.atlas-forms-signer,.atlas-forms-witness{display:grid;gap:9px}
.atlas-forms-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atlas-forms-signatures>.occo-form-field{grid-column:1/-1}
.atlas-forms-sig{display:grid;gap:5px}
.atlas-forms-sig>label{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--text-dim)}
.atlas-forms-sig .occo-sig-wrap{position:relative}
.atlas-forms-sig-pad{display:block;width:100%;height:120px;background:#fff;border:1px solid var(--border2);border-radius:8px;touch-action:none;cursor:crosshair}
.atlas-forms-sig .occo-sig-ph{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;color:#888;font-size:12px;pointer-events:none}
.atlas-forms-sig-line{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--text-dim)}
.atlas-forms-sig-line button{min-height:34px}
/* SIG-01 build 2 (Justin, 2026-10-08: the pad buttons were white, and rounded on the iPad): the pads' buttons and View on a
   signed form look like the case's other utility buttons, square and dark (light theme: blue on white). */
.atlas-forms-sig-line .occo-case-mini-btn,.atlas-forms-signed .occo-case-mini-btn,.atlas-forms-autopsy-card li .occo-case-mini-btn{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-height:38px;border:1px solid #4d5358;border-radius:4px;background:#111315;color:#eee7d8;padding:8px 13px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.atlas-forms-sig-line .occo-case-mini-btn:hover,.atlas-forms-signed .occo-case-mini-btn:hover,.atlas-forms-autopsy-card li .occo-case-mini-btn:hover{border-color:var(--gold-dim);color:var(--gold-light,var(--gold-lt))}
body.light .atlas-forms-sig-line .occo-case-mini-btn,body.light .atlas-forms-signed .occo-case-mini-btn,body.light .atlas-forms-autopsy-card li .occo-case-mini-btn{border-color:#7fa7c0;background:#f4f9fc;color:#17394c}
.atlas-forms-sig-line .occo-case-mini-btn:disabled,.atlas-forms-signed .occo-case-mini-btn:disabled,.atlas-forms-autopsy-card li .occo-case-mini-btn:disabled{opacity:.55;cursor:default}
/* SIG-01 build 3 (Justin, 2026-10-08: the text under the signature box "looks really crowded ... on both platforms"): the
   printed name gets its own line under the pad and the pad's buttons sit on the next line at the right, so the name no
   longer folds into a narrow column beside Use my saved signature. Each signature block keeps its own height, so the pad
   beside a taller one no longer stretches into a white strip. */
.atlas-forms-sig{align-content:start}
.atlas-forms-sig-line{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}
.atlas-forms-sig-line>[data-sig-printed]{flex:1 1 100%;min-width:0;line-height:1.4;overflow-wrap:anywhere}
.atlas-forms-signed{margin-top:14px}
.atlas-forms-signed ul,.atlas-forms-autopsy-card ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.atlas-forms-signed li,.atlas-forms-autopsy-card li{display:grid;gap:2px;border:1px solid var(--border1);background:var(--surf2);border-radius:8px;padding:7px 10px;font-size:12px}
.atlas-forms-signed li b,.atlas-forms-autopsy-card li b{font-size:12px}
.atlas-forms-signed li,.atlas-forms-autopsy-card li{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px}
.atlas-forms-signed-text{display:grid;gap:2px;min-width:0}
.atlas-forms-waiting{font-style:normal;font-size:10px;font-weight:800;color:var(--gold-lt);text-transform:uppercase;letter-spacing:.05em}
.atlas-forms-autopsy-card{border:1px solid var(--border2);border-radius:10px;padding:11px 12px;margin-top:12px;background:var(--surf2)}
.atlas-forms-autopsy-card header{display:grid;gap:3px}
.atlas-forms-autopsy-card header strong{font-size:13px;color:var(--gold-lt)}
.atlas-forms-autopsy-card header small{font-size:11px;color:var(--text-dim);line-height:1.4}
.atlas-forms-autopsy-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
/* Build 2 (Justin's iPad, 2026-10-08): every box in a row is the same width and height and lines up. A field never grows past
   its column (iPad Safari gives a date input a wider minimum, which pushed Date of Viewing over Location of Viewing), and a
   value the case owns, shown in a row with typed fields, looks like a field: its label above, its value in a box. */
#occo-case-form-fields .atlas-forms-grid{align-items:end}
#occo-case-form-fields .occo-form-field{min-width:0}
#occo-case-form-fields .occo-form-field input,#occo-case-form-fields .occo-form-field select,#occo-case-form-fields .occo-form-field textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;margin:0}
#occo-case-form-fields .occo-form-field input[type="date"]{-webkit-appearance:none;appearance:none;display:block;text-align:left;line-height:22px}
#occo-case-form-fields .occo-form-field input[type="date"]::-webkit-date-and-time-value{text-align:left}
#occo-case-form-fields .atlas-forms-grid .atlas-forms-fact{border:0;background:none;padding:0;min-height:0;min-width:0}
#occo-case-form-fields .atlas-forms-grid .atlas-forms-fact b{font-size:9px;font-weight:800;letter-spacing:.07em;margin-bottom:4px}
#occo-case-form-fields .atlas-forms-grid .atlas-forms-fact span{box-sizing:border-box;min-height:44px;padding:10px;border:1px solid var(--border1);border-radius:7px;background:var(--surf2);opacity:.85}
#occo-case-form-fields .atlas-forms-signer-facts .atlas-forms-grid{align-items:start}
#occo-case-form-overlay .occo-form-status.bad{color:#e07b6a}
#occo-case-form-overlay .occo-form-status.good{color:#7bd98d}
@media(max-width:900px){.atlas-forms-grid,.atlas-forms-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-forms-grid .wide,.atlas-forms-facts .wide{grid-column:1/-1}}
@media(max-width:640px){.atlas-forms-grid,.atlas-forms-facts,.atlas-forms-checks,.atlas-forms-signatures{grid-template-columns:1fr}}

/* R54 FORMS-03: View and Email side by side at the right of each signed form; who it was emailed to, under it. */
.atlas-forms-signed-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.atlas-forms-signed .atlas-forms-signed-actions .occo-case-mini-btn,.atlas-forms-autopsy-card li .atlas-forms-signed-actions .occo-case-mini-btn{width:auto;min-width:0;margin:0}
.atlas-forms-sent{display:block;color:#7fd18b;font-size:11.5px;font-weight:700}
.atlas-forms-sent.bad{color:#f08a7a}
body.light .atlas-forms-sent{color:#1f7a35}
body.light .atlas-forms-sent.bad{color:#a8321f}
