/* NAKIMA v24.1.27 — customer card only. Mobile-first, stable-baseline safe patch. */
@media (max-width:700px){
  body.nk-customer-sheet-open .customer-modal.nk27-customer-enhanced{
    padding:calc(60px + env(safe-area-inset-top)) 0 0!important;
    background:#fff!important;
  }
  body.nk-customer-sheet-open .customer-modal.nk27-customer-enhanced>.customer-profile,
  body.nk-customer-sheet-open .customer-modal.nk27-customer-enhanced>.customer-history-summary,
  body.nk-customer-sheet-open .customer-modal.nk27-customer-enhanced>.customer-detail-section,
  body.nk-customer-sheet-open .customer-modal.nk27-customer-enhanced>.v241-client-tabs{
    display:none!important;
  }

  body.nk-customer-sheet-open .nk-customer-escape-bar{
    min-height:calc(58px + env(safe-area-inset-top))!important;
    padding:calc(env(safe-area-inset-top) + 7px) 12px 7px!important;
    box-shadow:none!important;
  }
  body.nk-customer-sheet-open .nk-customer-escape-title small{display:none!important}
  body.nk-customer-sheet-open .nk-customer-escape-title b{
    font-size:16px!important;
    font-weight:800!important;
    letter-spacing:-.01em!important;
  }
  body.nk-customer-sheet-open .nk-customer-escape-back{
    min-width:44px!important;width:44px!important;padding:0!important;border:0!important;background:transparent!important;
  }
  body.nk-customer-sheet-open .nk-customer-escape-back span:not(.arrow){display:none!important}
  body.nk-customer-sheet-open .nk-customer-escape-back .arrow{font-size:28px!important;font-weight:500!important}
  body.nk-customer-sheet-open .nk-customer-escape-close{
    border:0!important;background:transparent!important;font-size:26px!important;
  }

  .nk27-customer-ui{
    min-height:calc(100dvh - 60px - env(safe-area-inset-top));
    padding-bottom:calc(28px + env(safe-area-inset-bottom));
    background:#fff;
    color:#251c21;
    font:500 15px/1.42 DM Sans,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  }
  .nk27-hero{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:14px;
    align-items:center;
    padding:20px 18px 15px;
  }
  .nk27-avatar{
    width:76px;height:76px;border-radius:50%;display:grid;place-items:center;
    background:linear-gradient(145deg,#def6f7,#c8eef0);
    color:#177f88;font-size:25px;font-weight:800;letter-spacing:-.04em;
  }
  .nk27-hero-copy{min-width:0}
  .nk27-name{margin:0 0 3px;font-size:23px;line-height:1.1;font-weight:850;letter-spacing:-.035em;color:#211a1e}
  .nk27-phone{margin:0 0 8px;font-size:15px;color:#786b72;font-weight:550;overflow-wrap:anywhere}
  .nk27-status{
    display:inline-flex;align-items:center;min-height:28px;padding:4px 11px;border-radius:999px;
    background:#dcf7e6;color:#1d7b48;font-size:13px;font-weight:800;
  }
  .nk27-status.prospect{background:#fff0cf;color:#9c6a12}

  .nk27-tabs{
    position:sticky;top:0;z-index:8;
    display:grid;grid-template-columns:repeat(3,1fr);
    min-height:50px;padding:0 12px;
    border-top:1px solid #f0e9ec;border-bottom:1px solid #eee5e9;background:rgba(255,255,255,.98);
  }
  .nk27-tabs button{
    position:relative;min-height:50px;border:0;background:transparent;color:#7c7076;
    font:750 14px/1 DM Sans,system-ui,sans-serif;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  }
  .nk27-tabs button.active{color:#ff2f72}
  .nk27-tabs button.active::after{
    content:"";position:absolute;left:18%;right:18%;bottom:-1px;height:3px;border-radius:99px;background:#ff2f72;
  }

  .nk27-panel{display:none;padding:16px 16px 0}
  .nk27-panel.active{display:block}
  .nk27-section{margin-bottom:20px}
  .nk27-section-title{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    margin:0 0 10px;font-size:17px;font-weight:850;letter-spacing:-.02em;color:#2b2227;
  }
  .nk27-muted{color:#8c7f85;font-size:13px}

  .nk27-info-card,.nk27-card{
    overflow:hidden;border:1px solid #eee5e9;border-radius:18px;background:#fff;
    box-shadow:0 3px 12px rgba(57,34,45,.035);
  }
  .nk27-info-row{
    display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;
    min-height:58px;padding:10px 14px;border-bottom:1px solid #f2ecef;
  }
  .nk27-info-row:last-child{border-bottom:0}
  .nk27-info-icon{width:28px;height:28px;display:grid;place-items:center;color:#7d7077;font-size:17px}
  .nk27-info-copy{min-width:0;display:grid;gap:2px}
  .nk27-info-copy span{font-size:12px;color:#95888f;font-weight:650}
  .nk27-info-copy b{font-size:15px;color:#2d2429;font-weight:750;overflow-wrap:anywhere}
  .nk27-info-value{font-size:14px;font-weight:800;color:#3c3037;text-align:right}

  .nk27-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 20px}
  .nk27-metric{padding:13px 8px;border-radius:16px;background:#faf7f9;text-align:center}
  .nk27-metric b{display:block;font-size:18px;line-height:1.1;color:#2d2228}
  .nk27-metric span{display:block;margin-top:5px;color:#8b7e85;font-size:11px;font-weight:650}

  .nk27-loyalty-card{padding:14px 15px}
  .nk27-loyalty-row{display:grid;gap:8px;padding:3px 0 11px}
  .nk27-loyalty-row:last-child{padding-bottom:2px}
  .nk27-loyalty-head{display:flex;justify-content:space-between;gap:12px;font-size:14px}
  .nk27-loyalty-head b{font-weight:800}
  .nk27-loyalty-head span{color:#85767d}
  .nk27-progress{height:8px;border-radius:99px;background:#f1e8ec;overflow:hidden}
  .nk27-progress i{display:block;height:100%;border-radius:inherit;background:#ff3a78}
  .nk27-empty{padding:18px;border:1px dashed #eadde3;border-radius:16px;background:#fffafb;color:#897a82;text-align:center;font-size:14px}

  .nk27-penalty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#fff7f3;border:1px solid #f5ded3;border-radius:16px}
  .nk27-penalty span{font-size:14px;color:#6f5144}.nk27-penalty b{font-size:15px;color:#b94b36}

  .nk27-appointment-card,.nk27-history-card,.nk27-note-card,.nk27-preference-card{
    border:1px solid #eee5e9;border-radius:18px;background:#fff;padding:14px 15px;
  }
  .nk27-appointment-card{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;gap:12px;align-items:start}
  .nk27-date-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff0f5;color:#ff2f72;font-size:20px}
  .nk27-appt-main{min-width:0}.nk27-appt-main b{display:block;font-size:15px;line-height:1.25}.nk27-appt-main span{display:block;margin-top:3px;font-size:13px;color:#766970}
  .nk27-chevron{align-self:center;color:#a19399;font-size:20px}

  .nk27-history-list,.nk27-note-list,.nk27-pref-grid{display:grid;gap:10px}
  .nk27-history-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .nk27-history-card h4,.nk27-note-card h4,.nk27-preference-card h4{margin:0;font-size:15px;font-weight:800;color:#2d2429}
  .nk27-history-card p,.nk27-note-card p,.nk27-preference-card p{margin:4px 0 0;font-size:13px;color:#7f7279}
  .nk27-history-money{font-size:14px;font-weight:850;white-space:nowrap;color:#2d2429}
  .nk27-history-meta{margin-top:7px!important;font-size:12px!important;color:#998c92!important}

  .nk27-pref-grid{grid-template-columns:1fr}
  .nk27-preference-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;align-items:center}
  .nk27-pref-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#f8f1f5;color:#b34c72;font-size:17px}
  .nk27-note-card{padding:14px 15px}
  .nk27-note-date{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;color:#a09198;font-size:11px;font-weight:750}
  .nk27-note-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#4a3c43!important;font-size:14px!important;line-height:1.5!important}
  .nk27-notes-help{margin:10px 0 0;padding:12px 13px;border-radius:14px;background:#faf6f8;color:#82747b;font-size:12px;line-height:1.45}

  .nk27-loading{display:flex;align-items:center;justify-content:center;min-height:110px;color:#8b7e85;font-size:14px}
  .nk27-error{padding:13px 14px;border-radius:14px;background:#fff1f1;color:#9b3d4a;font-size:13px}
}

/* V25.2.1 — lazy/paginated customer history */
.nk27-history-more{
  width:100%;
  min-height:46px;
  margin-top:12px;
  border:1px solid #ead8df;
  border-radius:14px;
  background:#fff;
  color:#7f3654;
  font-weight:800;
  font-size:14px;
}
.nk27-history-more:disabled{opacity:.6}
