/* MiSalon: one client's record in the new look (draft 7, design misalon-client.html, 27 Sept 2026).
   Only inside .cr7 (js/screens/clients.js). Builds on n5.css: rechead, facts, ptabs, panel, alert, cons-row, formula. */
.n5.cr7{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.n5.cr7>*{min-width:0}
.n5.cr7 .min0{min-width:0}
.n5.cr7 .rechead{margin:0;align-items:center}
.n5.cr7 .crumb7{display:inline-flex;align-items:center;gap:6px;justify-self:start;min-height:44px;margin:-8px 0 -12px;padding:0 4px 0 0;border:0;background:none;font:600 14px var(--f-ui);color:var(--text-2);cursor:pointer}
.n5.cr7 .crumb7 span{font-size:20px;line-height:1;margin-top:-2px}
.n5.cr7 .crumb7:hover{color:var(--text)}
.n5.cr7 .crumb7:focus-visible,.n5.cr7 .ptabs button:focus-visible,.n5.cr7 .linkbtn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.n5.cr7 .who7{display:flex;gap:14px;align-items:center;min-width:0;flex:1 1 320px}
.n5.cr7 .av7{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#fff;font:700 18px var(--f-ui);flex:none}
.n5.cr7 .rechead h1.rt{overflow-wrap:anywhere}
.n5.cr7 .rechead .meta{font-size:14px;margin-top:4px}
.n5.cr7 .rechead .acts .btn{min-height:44px;font-size:14px}
.n5.cr7 .alert svg.i{margin-top:1px}
.n5.cr7 .alert b{font-size:14px}

/* the facts row and the tabs */
.n5.cr7 .facts b{display:block;font-size:15px;overflow-wrap:anywhere}
.n5.cr7 .facts small{display:block;font-size:12.5px;color:var(--text-3);margin-top:2px}
.n5.cr7 .ptabs{gap:2px}
.n5.cr7 .ptabs button{display:inline-flex;align-items:center;min-height:46px;padding:0 12px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:none;font:500 14px var(--f-ui);color:var(--text-2);cursor:pointer;white-space:nowrap;flex:none}
.n5.cr7 .ptabs button:hover{color:var(--text)}
.n5.cr7 .ptabs button.on{color:var(--text);border-bottom-color:var(--text);font-weight:600}
.n5.cr7 .ptabs .ct{font-size:12px;color:var(--text-3);margin-left:6px;font-weight:500}

/* inside a tab */
.n5.cr7 .sub7{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:14px 16px 4px}
.n5.cr7 .sub7 h4{margin:0;font:600 14px var(--f-ui);color:var(--text)}
.n5.cr7 .sub7 .acts{margin-inline-start:auto;display:flex;flex-wrap:wrap;gap:8px}
.n5.cr7 .sub7 .btn,.n5.cr7 .rows7 .btn,.n5.cr7 .fm7 .btn,.n5.cr7 .btns7 .btn,.n5.cr7 .more7 .btn,.n5.cr7 .cons-row .btn{min-height:40px}
.n5.cr7 .body.s7{gap:12px}
.n5.cr7 .rows7{list-style:none;margin:0;padding:0}
.n5.cr7 .rows7 li{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line-soft)}
.n5.cr7 .rows7 li:last-child{border-bottom:0}
.n5.cr7 .rows7 li>.min0{flex:1}
.n5.cr7 .rows7 b{display:block;font-size:14.5px;font-weight:600;overflow-wrap:anywhere}
.n5.cr7 .rows7 small{display:block;color:var(--text-3);font-size:13px;margin-top:2px;overflow-wrap:anywhere}
.n5.cr7 .rows7 .btn,.n5.cr7 .rows7 .pill{flex:none}
.n5.cr7 .tbl td.who{white-space:normal;width:55%}
.n5.cr7 .tbl tr:last-child td{border-bottom:0}
.n5.cr7 .more7{padding:12px 16px;border-top:1px solid var(--line-soft)}
.n5.cr7 .fm7{display:grid;gap:8px;justify-items:start;padding-top:4px}
.n5.cr7 .fm7+.fm7{border-top:1px solid var(--line-soft);padding-top:14px}
.n5.cr7 .fm7h{display:flex;gap:12px;width:100%;font-size:13.5px}
.n5.cr7 .fm7h b{margin-inline-start:auto;white-space:nowrap}
.n5.cr7 .formula{width:100%;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.n5.cr7 .wait7{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px;border:1px solid var(--line);border-radius:10px}
.n5.cr7 .wait7>.min0{flex:1 1 200px}
.n5.cr7 .wait7 b{display:block;font-size:14.5px}
.n5.cr7 .wait7 small{display:block;color:var(--text-3);font-size:13px}
.n5.cr7 .btns7{display:flex;flex-wrap:wrap;gap:8px}

/* beside it: details, packages, privacy */
.n5.cr7 .panel>header .linkbtn{margin:-10px -6px;color:var(--gold-ink);font-size:14px;text-decoration:none}
.n5.cr7 .panel>header .linkbtn:hover{text-decoration:underline}
.n5.cr7 .ih7{display:flex;align-items:center;gap:8px}
.n5.cr7 .ih7 svg.i{width:16px;height:16px}
.n5.cr7 .dl7{margin:0}
.n5.cr7 .dl7>div{padding:10px 16px;border-bottom:1px solid var(--line-soft)}
.n5.cr7 .dl7>div:last-child{border-bottom:0}
.n5.cr7 .dl7 dt{font-size:12.5px;color:var(--text-3);margin-bottom:2px}
.n5.cr7 .dl7 dd{margin:0;font-size:14.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.n5.cr7 .cons-row>span:first-child{overflow-wrap:anywhere}
.n5.cr7 .cons-row .btn{flex:none}
.n5.cr7 .cons-row.dr7{grid-template-columns:minmax(0,1fr)}
.n5.cr7 .cons-row.dr7 .btns7 .btn{justify-content:flex-start}

/* the form, as its own page */
.n5.cr7 .ed7{max-width:880px}
.n5.cr7 .ed7 .field textarea{height:96px}
.n5.cr7 .ed7 .hd7{border-top:1px solid var(--line)}
.n5.cr7 .cks7{display:grid;gap:4px}
.n5.cr7 .ck7{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:6px 0;cursor:pointer;font-size:14.5px}
.n5.cr7 .ck7 input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--primary)}
.n5.cr7 .ck7 small{display:block;color:var(--text-3);font-size:13px;margin-top:2px}
.n5.cr7 .edacts7{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:14px 16px;border-top:1px solid var(--line)}
.n5.cr7 .edacts7 .btn{min-height:44px;font-size:14px}

@media (max-width:760px){
  .n5.cr7{gap:12px}
  .n5.cr7 .recgrid{gap:12px}
  .n5.cr7 .s7{gap:12px}
  .n5.cr7 .av7{width:48px;height:48px;border-radius:14px;font-size:16px}
  .n5.cr7 .who7{flex-basis:100%}
  .n5.cr7 .rechead{gap:12px}
  .n5.cr7 .rechead .acts.keep{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;width:100%;margin:0}
  .n5.cr7 .rechead .acts.keep .btn{min-height:48px;font-size:15px}
  .n5.cr7 .rechead .acts.keep .btn.primary{grid-column:1/-1;order:-1}
  .n5.cr7 .facts label{font-size:12px}
  .n5.cr7 .facts b{font-size:16px}
  .n5.cr7 .facts small{font-size:13.5px}
  .n5.cr7 .ptabs{padding:0 8px}
  .n5.cr7 .ptabs button{font-size:15px;min-height:48px}
  .n5.cr7 .sub7 h4{font-size:15px}
  .n5.cr7 .sub7 .acts{width:100%;margin:0}
  .n5.cr7 .sub7 .acts .btn{flex:1 1 0;min-height:44px}
  .n5.cr7 .rows7 b{font-size:15.5px}
  .n5.cr7 .rows7 small,.n5.cr7 .wait7 small{font-size:14px}
  .n5.cr7 .rows7 .btn,.n5.cr7 .fm7 .btn,.n5.cr7 .more7 .btn,.n5.cr7 .cons-row .btn,.n5.cr7 .btns7 .btn{min-height:44px}
  .n5.cr7 .wait7 .btns7{width:100%}
  .n5.cr7 .wait7 .btns7 .btn{flex:1}
  .n5.cr7 .more7 .btn{width:100%}
  .n5.cr7 .fm7h{font-size:14px}
  .n5.cr7 .formula{font-size:14px}
  .n5.cr7 .mcard .sub2{font-size:14px}
  .n5.cr7 .panel.lines .mcards{gap:8px}
  .n5.cr7 .mcard{min-height:0;padding:12px 14px}
  .n5.cr7 .dl7 dt{font-size:13.5px}
  .n5.cr7 .dl7 dd{font-size:15.5px}
  .n5.cr7 .cons-row{font-size:15px}
  .n5.cr7 .cons-row small{font-size:14px}
  .n5.cr7 .cons-row.dr7 .btns7{display:grid;gap:8px}
  .n5.cr7 .cons-row.dr7 .btns7 .btn{justify-content:center;width:100%}
  .n5.cr7 .ck7{font-size:15.5px}
  .n5.cr7 .ck7 small{font-size:14px}
  .n5.cr7 .edacts7 .btn{flex:1 1 0;min-height:48px}
  .n5.cr7 .edacts7 .btn.primary{order:-1}
  .n5.cr7 .edacts7 #cfMsg{flex-basis:100%}
}
.n5.cr7 .ptabs{overflow-y:hidden}
.n5.cr7 .ptabs button{margin-bottom:0}
.n5.cr7 .s7>div:empty{display:none}
.n5.cr7 .tbl td:first-child{padding-left:16px}.n5.cr7 .tbl td:last-child{padding-right:16px}
.n5.cr7 .ed7 select{appearance:none;-webkit-appearance:none;padding-right:36px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5261' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px}
.n5.cr7 .ed7 .field label{font-size:13.5px}
@media (max-width:760px){.n5.cr7 .ed7 .formgrid{row-gap:14px}.n5.cr7 .ed7 .field label{font-size:14px}.n5.cr7 .ed7 .field textarea{font-size:16px}}
.n5.cr7 .panel>header .linkbtn{min-width:44px;justify-content:center;display:inline-flex;align-items:center}
@media (max-width:760px){
  .n5.cr7 .btn{font-size:14.5px}
  .n5.cr7 .facts label{font-size:14px;text-transform:none;letter-spacing:0;font-weight:500}
  .n5.cr7 .facts small,.n5.cr7 .alert,.n5.cr7 .alert b,.n5.cr7 .dl7 dt{font-size:14px}
  .n5.cr7 .alert b{font-size:15px}
  .n5.cr7 .pill{font-size:13.5px}
  .n5.cr7 .ptabs .ct{font-size:13px}
}
/* while a record is open, the More page's Back bar (to the More hub) is hidden; the record has "Clients" */
#mp_clients.rec7>.mbar{display:none!important}
