/* 0.14.0 · Ατομικό & οικογενειακό ιστορικό: πεδία επιλογών, κάρτες μελών, λίστα υγείας, γεγονότα, σήμανση κινδύνου.
   Μόνο αποχρώσεις μπλε και γκρι· η κατάσταση δεν δείχνεται ποτέ μόνο με χρώμα (πάντα υπάρχει κείμενο ή εικονίδιο). */

#therapy-flow .history-choice,#therapy-flow .family-field,#therapy-flow .health-row{margin:0 0 18px}
#therapy-flow .choice-title{display:block;margin:0 0 6px;font-size:14px;font-weight:600;color:var(--muted)}
#therapy-flow .choice{display:grid;gap:8px}

/* πτυσσόμενη λίστα με κουτάκια */
#therapy-flow .choice-drop{position:relative}
#therapy-flow .choice-drop>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:46px;padding:7px 12px;background:var(--white);border:1px solid var(--line);border-radius:10px;cursor:pointer}
#therapy-flow .choice-drop>summary::-webkit-details-marker{display:none}
#therapy-flow .choice-drop>summary:hover{border-color:var(--blue-soft)}
#therapy-flow .choice-drop>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#therapy-flow .choice-drop[open]>summary{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-tint)}
#therapy-flow .choice-chips{flex:1;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#therapy-flow .choice-chip{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--blue-tint);color:var(--blue-dark);font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
#therapy-flow .choice-empty{color:var(--muted);font-size:15px}
#therapy-flow .choice-caret{flex:0 0 auto;color:var(--muted);transition:transform .15s ease}
#therapy-flow .choice-drop[open] .choice-caret{transform:rotate(180deg)}
#therapy-flow .choice-menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:min(340px,52vh);overflow-y:auto;overscroll-behavior:contain;padding:6px;background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 32px #22333b2e;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:2px}
#therapy-flow .choice-opt{display:flex;align-items:center;gap:10px;margin:0;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:15px;color:var(--ink);line-height:1.35}
#therapy-flow .choice-opt:hover{background:var(--blue-tint)}
#therapy-flow .choice-opt input{width:18px;height:18px;margin:0;flex:0 0 auto;accent-color:var(--blue)}
#therapy-flow .choice-opt:has(input:checked){font-weight:600;color:var(--blue-dark)}
#therapy-flow .choice-select{min-height:46px;max-width:100%}
#therapy-flow .choice-other{min-height:42px}
#therapy-flow .choice-hint{margin:0}

/* σημειώσεις: κλειστές όταν είναι άδειες */
#therapy-flow .choice-notes>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:14px;font-weight:500;color:var(--blue);padding:2px 0}
#therapy-flow .choice-notes>summary::before{content:'+';font-weight:600}
#therapy-flow .choice-notes[open]>summary::before{content:'–'}
#therapy-flow .choice-notes>summary::-webkit-details-marker{display:none}
#therapy-flow .choice-notes>.field{margin:6px 0 0}
#therapy-flow .choice-notes textarea{width:100%;min-height:72px}

/* μέλη οικογένειας */
#therapy-flow .family-members .member-list{display:grid;gap:12px;margin:12px 0}
#therapy-flow .member-card,#therapy-flow .event-card{padding:14px 16px;background:var(--white);border:1px solid var(--line-2);border-radius:12px;display:grid;gap:8px}
#therapy-flow .member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 14px}
#therapy-flow .member-grid .field{margin:0}
#therapy-flow .member-card{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 12px;padding:12px 14px}
#therapy-flow .member-card>.member-grid{grid-column:1/-1}
#therapy-flow .member-card>.choice-notes{grid-column:1}
#therapy-flow .member-card>.member-remove{grid-column:2;grid-row:2}
#therapy-flow .member-remove,#therapy-flow .event-remove{justify-self:end;font-size:14px;min-height:34px;padding:4px 10px;margin:0}
#therapy-flow .choice-notes>summary{padding:4px 0}
#therapy-flow .sibling-count{max-width:220px;margin:8px 0 0}

/* ποιότητα σχέσης ανά πρόσωπο */
#therapy-flow .care-list{display:grid;gap:12px;margin:0 0 8px}
#therapy-flow .care-row{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:12px;align-items:center}
#therapy-flow .care-name{font-weight:600;color:var(--ink);overflow-wrap:anywhere}

/* υγεία: λίστα με «ποιος» */
#therapy-flow .health-row{padding:10px 12px;border:1px solid var(--line-2);border-radius:12px;background:var(--white)}
#therapy-flow .health-row>.task{margin:0;font-weight:600}
#therapy-flow .health-detail{margin:10px 0 0 28px}

/* γεγονότα */
#therapy-flow #family-events{display:grid;gap:12px}
#therapy-flow .family-events-box .actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* σήμανση κινδύνου: εικονίδιο + κείμενο, όχι κόκκινο */
#therapy-flow .risk-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px 16px;background:#e8eef3;border:1px solid #b8c7d3;border-left:5px solid var(--blue-dark);border-radius:12px;color:var(--ink)}
#therapy-flow .risk-strip>span:nth-child(2){flex:1;min-width:200px}
#therapy-flow .risk-icon{font-size:20px;line-height:1;color:var(--blue-dark)}

#therapy-flow .stamp{margin:6px 0 0}

@media (max-width:700px){
  #therapy-flow .care-row{grid-template-columns:1fr}
  #therapy-flow .choice-menu{grid-template-columns:1fr}
  #therapy-flow .health-detail{margin-left:0}
}
@media print{
  #therapy-flow .choice-menu{display:none!important}
}
