/* samu® V7.8: only layout and interaction. Existing APIs and data are not changed. */
/* Member contact overview: always compact, editor is native <details> (reversibly closed). */
#parent.samu-member-portal .samu-v78-contact{
  background:#f6f6f6!important;border:1px solid #cbd0d5!important;border-radius:11px!important;
  padding:12px 14px!important;margin:10px 0!important;max-width:100%!important;
}
#parent.samu-member-portal .samu-v78-member-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#parent.samu-member-portal .samu-v78-overline{display:block;font-size:12px;line-height:1.4;font-weight:650;color:#555}
#parent.samu-member-portal #samu-v76-member-number{display:block;font-size:20px;line-height:1.25;margin:2px 0 0!important;color:#171717}
#parent.samu-member-portal .samu-v78-preview{margin:7px 0 9px;padding:0;font-size:12px;line-height:1.5;color:#4b4b4b}
#parent.samu-member-portal .samu-v78-contact-editor{margin:0!important;padding:0!important;border:1px solid #c7ccd1!important;border-radius:8px;background:#fff}
#parent.samu-member-portal .samu-v78-contact-editor>summary{
  cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px;min-height:43px;padding:9px 12px!important;margin:0!important;list-style:none!important;
  color:#181818!important;font-size:13px!important;font-weight:750!important;
}
#parent.samu-member-portal .samu-v78-contact-editor>summary::-webkit-details-marker{display:none}
#parent.samu-member-portal .samu-v78-contact-editor>summary::marker{content:''}
#parent.samu-member-portal .samu-v78-caret{height:21px;width:21px;flex:none;border:1px solid #333;border-radius:5px;display:grid;place-items:center}
#parent.samu-member-portal .samu-v78-caret::before{content:'⌄';font-size:20px;line-height:16px;transform:translateY(-3px)}
#parent.samu-member-portal .samu-v78-contact-editor[open]>.samu-v78-editor-inner{border-top:1px solid #d8dbdf;padding:12px!important}
#parent.samu-member-portal .samu-v78-contact-editor[open] .samu-v78-caret::before{content:'⌃';transform:translateY(2px)}
#parent.samu-member-portal #samu-v76-contact-form{display:block!important;margin:0!important;max-width:none!important}
#parent.samu-member-portal .samu-v78-contact-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px!important}
#parent.samu-member-portal .samu-v78-contact-group{min-width:0;margin:0!important;padding:0!important}
#parent.samu-member-portal .samu-v78-contact-group>label,
#parent.samu-member-portal .samu-v78-contact-person>label{display:block!important;margin:0!important;font-size:12px!important;line-height:1.4!important;font-weight:650!important;color:#272727!important}
#parent.samu-member-portal .samu-v78-contact-group input:not([type="checkbox"]),
#parent.samu-member-portal .samu-v78-contact-person input:not([type="checkbox"]){
  display:block!important;width:100%!important;min-width:0!important;max-width:none!important;
  min-height:37px!important;margin:4px 0 0!important;padding:7px 10px!important;
  font-size:13px!important;line-height:1.4!important;border:1px solid #b6bdc3!important;border-radius:6px!important;
  color:#171717!important;background:#fff!important;box-sizing:border-box!important;
}
#parent.samu-member-portal .samu-v78-permissions{display:flex;flex-wrap:wrap;align-items:center;gap:5px 14px;margin-top:6px}
#parent.samu-member-portal .samu-v78-permissions label,
#parent.samu-member-portal .samu-v78-contact-person label:has(input[type="checkbox"]){
  display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0!important;
  font-size:12px!important;line-height:1.5!important;font-weight:500!important;cursor:pointer;
}
#parent.samu-member-portal .samu-v78-permissions input[type="checkbox"],
#parent.samu-member-portal .samu-v78-contact-person input[type="checkbox"]{
  display:inline-block!important;width:15px!important;height:15px!important;margin:0!important;flex:none;
  accent-color:#1e1e1e!important;
}
#parent.samu-member-portal .samu-v78-hint{font-size:12px!important;line-height:1.45!important;color:#565656!important;margin:10px 0 7px!important}
#parent.samu-member-portal .samu-v78-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px}
#parent.samu-member-portal .samu-v78-form-actions>button,
#parent.samu-member-portal #samu-v76-extra-form>button{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:36px!important;width:auto!important;min-width:0!important;
  padding:6px 12px!important;margin:0!important;border:2px solid #181818!important;
  border-radius:7px!important;background:#fff!important;color:#181818!important;
  box-shadow:none!important;font-size:12px!important;font-weight:700!important;
}
#parent.samu-member-portal .samu-v78-form-actions>button:hover,
#parent.samu-member-portal #samu-v76-extra-form>button:hover{background:#e9e9e9!important}
#parent.samu-member-portal .samu-v78-form-actions [role="status"]{font-size:12px;color:#333}
#parent.samu-member-portal .samu-v78-extra-contacts{
  margin:12px 0 0!important;padding:0!important;border:1px solid #cbd0d5!important;border-radius:8px!important;background:#fafafa;
}
#parent.samu-member-portal .samu-v78-extra-contacts>summary{
  display:block!important;cursor:pointer!important;margin:0!important;padding:10px 12px!important;
  font-size:13px!important;font-weight:700!important;list-style:revert!important;color:#171717!important;
}
#parent.samu-member-portal .samu-v78-extra-contacts>.samu-v78-hint{margin:8px 12px!important}
#parent.samu-member-portal #samu-v76-extra-form{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px!important;
  margin:0!important;padding:0 12px 12px!important;max-width:none!important;
}
#parent.samu-member-portal #samu-v76-extra-form fieldset.samu-v78-contact-person{
  min-width:0!important;display:grid!important;gap:8px!important;
  align-content:start;border:1px solid #d2d6da!important;border-radius:8px!important;
  background:#fff!important;padding:8px 10px 10px!important;margin:0!important;
}
#parent.samu-member-portal #samu-v76-extra-form .samu-v78-contact-person legend{
  padding:0 4px!important;margin:0!important;font-size:12px!important;font-weight:700!important;
}
#parent.samu-member-portal #samu-v76-extra-form>button,
#parent.samu-member-portal #samu-v76-extra-form>[role="status"]{grid-column:1/-1;justify-self:start;margin:0!important}
#parent.samu-member-portal .samu-v78-contact-editor summary:focus-visible{
 outline:3px solid #181818!important;outline-offset:2px!important;
}
/* Hotline: single-screen overview, with secondary contacts and message composer expandable. */
#hotline .hc-found.samu-v78-hotline-result{
 padding:10px 12px!important;background:#f3f4f5!important;border:1px solid #d5d9dc!important;
 border-radius:9px!important;font-size:13px!important;line-height:1.4!important;
}
#hotline .samu-v78-hotline-heading{display:flex;gap:8px 14px;flex-wrap:wrap;justify-content:space-between;align-items:center}
#hotline .samu-v78-hotline-heading strong{font-size:16px;color:#1b1b1b}
#hotline .samu-v78-hotline-heading span{font-size:12px;color:#414141}
#hotline .samu-v78-hotline-phone{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:8px!important}
#hotline .samu-v78-hotline-phone span{font-size:12px;color:#4e5154}
#hotline .samu-v78-hotline-phone strong{font-size:17px;line-height:1.3;color:#171717}
#hotline .samu-v78-hotline-channels{display:flex;align-items:center;flex-wrap:wrap;gap:5px 6px;margin-top:8px}
#hotline .samu-v78-hotline-chip{display:inline-block;background:#fff;border:1px solid #c6cbd0;color:#232323;border-radius:6px;padding:4px 7px;font-size:11px;overflow-wrap:anywhere}
#hotline .samu-v78-hotline-extra{margin:9px 0 0!important;border-top:1px solid #d3d7db;padding-top:7px}
#hotline .samu-v78-hotline-extra>summary{cursor:pointer;font-size:12px;font-weight:700;color:#202020}
#hotline .samu-v78-hotline-extra p{margin:5px 0!important;font-size:12px}
#hotline #hc-contact{margin-top:7px!important}
#hotline #hc-contact>h3{margin:9px 0 7px!important;font-size:14px!important}
#hotline .hc-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
#hotline .hc-actions .hc-action,#hotline .hc-actions button{
 min-height:34px!important;padding:6px 9px!important;font-size:12px!important;border:1px solid #202020!important;
}
#hotline .samu-v78-copy-feedback{min-height:0!important;margin:3px 0!important;color:#444;font-size:11px}
#hotline .samu-v78-copy-feedback:empty{display:none}
#hotline .samu-v78-compose{margin-top:8px;border:1px solid #d3d7db;border-radius:7px;padding:0;background:#fff}
#hotline .samu-v78-compose>summary{cursor:pointer;padding:9px 10px;font-size:12px;font-weight:700;color:#171717}
#hotline .samu-v78-compose[open]{padding:0 10px 10px}
#hotline .samu-v78-compose>summary:focus-visible{outline:2px solid #222}
#hotline .samu-v78-compose .hc-channel-group{margin-top:5px}
#hotline .samu-v78-compose label{margin:8px 0!important;font-size:12px!important}
#hotline .samu-v78-compose textarea{min-height:70px!important;height:80px!important;font-size:12px!important}
#hotline .samu-v78-compose .hc-channel-buttons{gap:4px!important}
#hotline .samu-v78-compose .hc-channel-button{min-height:30px!important;padding:5px!important}
#hotline .samu-v78-compose #hc-open-message{min-height:33px!important;padding:6px 10px!important;font-size:12px!important}
#hotline .samu-v78-compose #hc-message-info{font-size:11px!important}
#hotline .hc-panel{padding:12px!important}
#hotline .hc-panel h2{font-size:16px!important;margin:0 0 9px!important}
#hotline #hc-note{min-height:85px!important;height:94px!important}
#hotline .hc-confirm{padding:9px!important;margin:8px 0!important;font-size:12px!important}
@media(max-width:680px){
 #parent.samu-member-portal .samu-v78-contact-grid{grid-template-columns:minmax(0,1fr)!important}
 #parent.samu-member-portal #samu-v76-extra-form{grid-template-columns:minmax(0,1fr)!important}
 #parent.samu-member-portal .samu-v78-contact{padding:10px!important}
 #parent.samu-member-portal .samu-v78-form-actions>button{flex:1 1 auto}
 #hotline .samu-v78-hotline-heading{align-items:flex-start}
}
