/* ATLAS v1.8.82 Decedent D10 locked workspace */
.atlas-workspace-module[data-workspace-module="decedent"]{min-width:0}
.atlas-workspace-module[data-workspace-module="decedent"] .atlas-workspace-subpanel{display:grid;gap:16px;align-content:start}
.atlas-workspace-module[data-workspace-module="decedent"] .atlas-workspace-subpanel[hidden]{display:none!important}
.atlas-decedent-card{position:relative;min-width:0}
.atlas-decedent-card>header{align-items:flex-start;gap:18px}
.atlas-decedent-card>header small{max-width:520px;text-align:right}
.atlas-decedent-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}
.atlas-decedent-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.atlas-decedent-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.atlas-decedent-grid-address{grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(90px,.55fr) minmax(110px,.7fr)}
.atlas-decedent-field{min-width:0}
.atlas-decedent-field input,.atlas-decedent-field select,.atlas-decedent-field textarea,.atlas-decedent-form-field input,.atlas-decedent-form-field select,.atlas-decedent-form-field textarea{width:100%;min-height:44px;box-sizing:border-box}
.atlas-decedent-field textarea,.atlas-decedent-form-field textarea{min-height:88px;resize:vertical}
.atlas-decedent-field input[readonly]{opacity:.86;cursor:default}
.atlas-decedent-card-action,.atlas-decedent-action{min-height:44px;border-radius:10px;font:inherit;cursor:pointer}
.atlas-decedent-card-action{position:static;margin-left:auto;flex:0 0 auto;padding:0 16px;border:1px solid color-mix(in srgb,var(--gold,#d5ad4b) 55%,transparent);background:color-mix(in srgb,var(--gold,#d5ad4b) 10%,transparent);color:inherit}
.atlas-decedent-ssn-wrap{display:flex;gap:8px;align-items:center}
.atlas-decedent-ssn-wrap input{flex:1}
.atlas-decedent-ssn-toggle{flex:0 0 auto;min-height:44px;padding:0 12px;border-radius:9px;border:1px solid rgba(148,163,184,.32);background:rgba(148,163,184,.08);color:inherit}
.atlas-decedent-legacy-readonly{margin-top:14px;padding:13px 15px;border-left:3px solid rgba(148,163,184,.48);border-radius:8px;background:rgba(148,163,184,.08)}
.atlas-decedent-legacy-readonly[hidden]{display:none!important}
.atlas-decedent-legacy-label{font-size:.76rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase;opacity:.72;margin-bottom:7px}
.atlas-decedent-legacy-text{white-space:pre-wrap;line-height:1.48;overflow-wrap:anywhere}
.atlas-decedent-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.atlas-decedent-chip{min-height:42px;padding:8px 13px;border:1px solid rgba(148,163,184,.3);border-radius:999px;background:rgba(148,163,184,.07);color:inherit}
.atlas-decedent-chip.active{border-color:color-mix(in srgb,var(--gold,#d5ad4b) 72%,transparent);background:color-mix(in srgb,var(--gold,#d5ad4b) 18%,transparent);font-weight:750}
.atlas-decedent-progressive{margin-top:14px;padding:14px;border-radius:10px;border:1px solid rgba(148,163,184,.2);background:rgba(15,23,42,.08)}
.atlas-decedent-progressive[hidden]{display:none!important}
.atlas-decedent-progressive>strong{display:block;margin-bottom:4px}
.atlas-decedent-record-list{display:grid;gap:12px;margin-top:14px}
.atlas-decedent-record{padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:11px;background:rgba(148,163,184,.055);min-width:0}
.atlas-decedent-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.atlas-decedent-record-head>div:first-child{min-width:0}
.atlas-decedent-record-head strong{display:block;font-size:1rem;overflow-wrap:anywhere}
.atlas-decedent-record-head span{display:block;margin-top:3px;font-size:.85rem;opacity:.72;overflow-wrap:anywhere}
.atlas-decedent-record-head>div:last-child,.atlas-decedent-record-actions{display:flex;flex-wrap:wrap;gap:8px}
.atlas-decedent-record-meta{margin-top:8px;font-size:.86rem;opacity:.78;line-height:1.45;overflow-wrap:anywhere}
.atlas-decedent-mini-action{min-height:38px;padding:6px 11px;border:1px solid rgba(148,163,184,.28);background:rgba(148,163,184,.08);color:inherit}
.atlas-decedent-mini-action.danger{border-color:rgba(239,68,68,.35)}
.atlas-decedent-inline-form,.atlas-decedent-add-block{display:grid;gap:12px;margin-top:12px;padding:14px;border-radius:10px;background:rgba(148,163,184,.065)}
.atlas-decedent-inline-form[hidden]{display:none!important}
.atlas-decedent-form-field{display:grid;gap:6px;min-width:0;font-size:.88rem;font-weight:650}
.atlas-decedent-check{display:flex;align-items:center;gap:9px;min-height:44px;font-weight:650}
.atlas-decedent-check input{width:20px;height:20px;accent-color:var(--gold,#d5ad4b)}
.atlas-decedent-save-row{justify-self:start;padding:0 16px;border:1px solid color-mix(in srgb,var(--gold,#d5ad4b) 58%,transparent);background:color-mix(in srgb,var(--gold,#d5ad4b) 14%,transparent);color:inherit;font-weight:750}
.atlas-decedent-save-row.secondary{border-color:rgba(148,163,184,.3);background:rgba(148,163,184,.08)}
.atlas-decedent-action:disabled,.atlas-decedent-card-action:disabled{opacity:.45;cursor:not-allowed}
.atlas-decedent-significance{display:inline-flex!important;align-items:center;min-height:28px;padding:3px 9px;border-radius:999px;font-size:.73rem!important;font-weight:800;text-transform:uppercase;letter-spacing:.035em;background:rgba(148,163,184,.1)}
.atlas-decedent-significance.follow_up_needed,.atlas-decedent-significance.conflicting_information{background:rgba(245,158,11,.14)}
.atlas-decedent-significance.potentially_significant{background:rgba(239,68,68,.14)}
.atlas-decedent-conversation-summary{margin-top:12px;line-height:1.52;white-space:pre-wrap;overflow-wrap:anywhere}
.atlas-decedent-amendments{display:grid;gap:8px;margin-top:12px;padding-left:12px;border-left:2px solid rgba(148,163,184,.3)}
.atlas-decedent-amendments>div{display:grid;gap:3px}
.atlas-decedent-amendments span{white-space:pre-wrap;overflow-wrap:anywhere}
.atlas-decedent-amendments small{opacity:.65}
.atlas-decedent-record-actions{margin-top:12px}
@media(max-width:1100px){
  .atlas-decedent-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-decedent-grid-address{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-decedent-card>header small{max-width:420px}
}
@media(max-width:760px){
  .atlas-decedent-grid-two,.atlas-decedent-grid-three,.atlas-decedent-grid-address{grid-template-columns:minmax(0,1fr)}
  .atlas-decedent-card>header{display:block}
  .atlas-decedent-card>header small{display:block;max-width:none;text-align:left;margin-top:5px}
  .atlas-decedent-card-action{position:static;margin:10px 0 0 0;width:100%}
  .atlas-decedent-record-head{display:grid}
  .atlas-decedent-record-head>div:last-child{justify-content:flex-start}
  .atlas-decedent-save-row{width:100%;justify-self:stretch}
}

.atlas-decedent-identification-details[hidden],.atlas-decedent-conversation-composer[hidden]{display:none!important}
.atlas-decedent-form-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.atlas-decedent-form-actions .atlas-decedent-check{margin-right:auto}
.atlas-decedent-identification-details>.atlas-decedent-save-row{margin-top:12px}

/* D13 preview refinements */
.atlas-decedent-medical-details{display:grid;gap:16px}
.atlas-decedent-medical-details[hidden]{display:none!important}
.atlas-decedent-provider-composer[hidden]{display:none!important}
.atlas-decedent-provider-composer{margin-top:12px;padding:14px;border-radius:10px;background:rgba(148,163,184,.065)}
.atlas-decedent-media-preview{min-height:92px;display:flex;align-items:stretch}
.atlas-decedent-media-thumb-card{width:100%;display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid rgba(148,163,184,.24);border-radius:10px;background:rgba(148,163,184,.06);color:inherit;text-align:left;cursor:pointer}
.atlas-decedent-media-thumb{height:76px;border-radius:8px;background:rgba(148,163,184,.12);display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:.72rem;font-weight:800;letter-spacing:.06em}
.atlas-decedent-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.atlas-decedent-media-copy{min-width:0;display:grid;gap:4px}
.atlas-decedent-media-copy strong{overflow-wrap:anywhere}
.atlas-decedent-media-copy span{font-size:.82rem;opacity:.72;overflow-wrap:anywhere}
@media(max-width:760px){.atlas-decedent-media-thumb-card{grid-template-columns:88px minmax(0,1fr)}.atlas-decedent-media-thumb{height:68px}}
.atlas-decedent-media-link-wrap{display:grid;gap:12px;margin-top:14px}
.atlas-decedent-media-link-wrap[hidden]{display:none!important}

/* D15 compact contextual photo status */
.atlas-decedent-photo-status-wrap{padding:10px 0 0}.atlas-decedent-photo-indicator{display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(148,163,184,.24);border-radius:10px;background:rgba(148,163,184,.055)}
.atlas-decedent-photo-indicator strong{font-size:.88rem;color:inherit}.atlas-decedent-photo-indicator span{font-size:.76rem;opacity:.7}.atlas-decedent-photo-indicator.active{border-color:rgba(46,139,87,.55);background:rgba(46,139,87,.08)}


/* R11 iPad field QA: prevent native date/time controls from colliding and keep NOK text at case-workspace size. */
.atlas-decedent-card .occo-case-field,.atlas-decedent-grid>*{min-width:0}
.atlas-decedent-card input,.atlas-decedent-card select,.atlas-decedent-card textarea{max-width:100%;min-width:0;box-sizing:border-box}
.atlas-decedent-form-field{font-size:1rem}
.atlas-ipad-field .atlas-decedent-form-field input,.atlas-ipad-field .atlas-decedent-form-field select,.atlas-ipad-field .atlas-decedent-form-field textarea{font-size:16px}
@media(max-width:1180px){
  .atlas-decedent-grid-demographics,.atlas-decedent-grid-pronouncement{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-decedent-grid-demographics>.occo-case-field:first-child{grid-column:1/-1}
}
@media(max-width:820px){
  .atlas-decedent-grid-demographics,.atlas-decedent-grid-pronouncement{grid-template-columns:minmax(0,1fr)}
  .atlas-decedent-grid-demographics>.occo-case-field:first-child{grid-column:auto}
}


/* R13 iPad containment: Safari date/time controls have a larger intrinsic inline size than
   ordinary text inputs. Use container-safe grids on tablet widths so DOB/Age and
   pronouncement date/time can never occupy the same visual space. */
.atlas-decedent-field,
.atlas-decedent-form-field,
.atlas-decedent-grid > *{min-inline-size:0;max-inline-size:100%}
.atlas-decedent-card input[type="date"],
.atlas-decedent-card input[type="time"],
.atlas-decedent-card input[type="number"]{
  display:block;
  inline-size:100%;
  width:100%;
  min-inline-size:0;
  min-width:0;
  max-inline-size:100%;
  max-width:100%;
  box-sizing:border-box;
  font-size:16px;
  line-height:1.25;
}
.atlas-decedent-card input[type="date"]::-webkit-date-and-time-value,
.atlas-decedent-card input[type="time"]::-webkit-date-and-time-value{
  min-width:0;
  text-align:left;
}
.atlas-decedent-card input[type="date"]::-webkit-datetime-edit,
.atlas-decedent-card input[type="time"]::-webkit-datetime-edit{
  min-width:0;
  overflow:hidden;
}
@media(max-width:1400px){
  .atlas-decedent-grid-three,
  .atlas-decedent-grid-demographics,
  .atlas-decedent-grid-pronouncement,
  .atlas-decedent-grid-address{grid-template-columns:repeat(2,minmax(0,1fr))}
  .atlas-decedent-grid-demographics>.occo-case-field:first-child{grid-column:1/-1}
}
@media(max-width:900px){
  .atlas-decedent-grid-two,
  .atlas-decedent-grid-three,
  .atlas-decedent-grid-demographics,
  .atlas-decedent-grid-pronouncement,
  .atlas-decedent-grid-address{grid-template-columns:minmax(0,1fr)}
  .atlas-decedent-grid-demographics>.occo-case-field:first-child{grid-column:auto}
}


/* R15 iPad field containment: prevent WebKit's native date control box from
   painting across adjacent Decedent cells at landscape tablet widths. */
.atlas-decedent-grid,.atlas-decedent-grid>*{min-inline-size:0;max-inline-size:100%}
.atlas-decedent-grid>.occo-case-field{box-sizing:border-box;overflow:hidden}
.atlas-decedent-grid>.occo-case-field>input,
.atlas-decedent-grid>.occo-case-field>select,
.atlas-decedent-grid>.occo-case-field>textarea{
  display:block;box-sizing:border-box!important;
  inline-size:100%!important;width:100%!important;
  min-inline-size:0!important;min-width:0!important;
  max-inline-size:100%!important;max-width:100%!important;
  margin-inline:0!important;
}
