/* V10.20 "calm" pass: real-length calendar cards, client phone on bookings, team photos,
   ordered menus, and less visual noise for the salon and its clients. Prefix: n120- */

/* ---------- Timeline: cards drawn with their real length ---------- */
body.n120-timed .v8-drop-cell{overflow:visible!important}
body.n120-timed .v8-drop-cell .v8-drag-event{position:absolute!important;inset-inline:3px;top:2px;min-height:0!important;margin:0!important;z-index:2;
  padding:5px 8px 10px!important;padding-inline-end:26px!important;gap:1px;line-height:1.35;overflow:hidden;box-sizing:border-box}
body.n120-timed .v8-drop-cell .v8-drag-event:hover{z-index:4;box-shadow:0 10px 24px rgba(16,40,32,.18)!important}
body.n120-timed .v8-drag-event .v8-event-time{font-size:11px!important;font-weight:800;opacity:.85}
body.n120-timed .v8-drag-event b{font-size:13px!important}
body.n120-timed .v8-drag-event .n120-svc{font-size:11.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.n120-timed .v8-drag-event .n120-status-text{display:none}
body.n120-timed .v8-drag-event.n120-short .n120-svc,body.n120-timed .v8-drag-event.n120-short .n120-assist{display:none}
body.n120-timed .v8-drag-event.n120-resizing{z-index:4;outline:2px dashed #167257;outline-offset:1px;cursor:ns-resize}
body.n120-dragging .v8-drag-event{pointer-events:none}
.n120-phone{font-size:12px!important;color:#3d5a50;direction:ltr;unicode-bidi:isolate;white-space:nowrap;text-decoration:none}
a.n120-phone:hover{text-decoration:underline}
.n120-assist{font-size:11px!important;color:#245849!important}
.n120-resize{position:absolute;inset-inline:0;bottom:0;height:9px;cursor:ns-resize;touch-action:none;z-index:4}
.n120-resize::after{content:"";position:absolute;left:50%;bottom:2px;width:26px;height:3px;margin-left:-13px;border-radius:3px;background:currentColor;opacity:.28}
.v8-drag-event:hover .n120-resize::after{opacity:.6}
.v8-timeline-note{display:none!important}
.staff-week-avatar img,.barber-lane-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.staff-week-avatar,.barber-lane-avatar{overflow:hidden}

/* ---------- Day board: calmer cards ---------- */
.appointment-card .appointment-card-customer>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.appointment-card .appointment-card-customer small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appointment-card .appointment-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.appointment-card .appointment-flow-actions:empty{display:none}

/* ---------- Ordered menus (services / team) ---------- */
.n120-add>summary{cursor:pointer;font-weight:800;list-style:none;display:flex;align-items:center;gap:6px;min-height:40px}
.n120-add>summary::-webkit-details-marker{display:none}
.n120-add[open]>summary{margin-bottom:10px}
.n120-menu{padding:8px 12px}
.n120-menu-group+.n120-menu-group{border-top:1px solid #edf2ef}
.n120-menu-row{display:grid;grid-template-columns:34px auto minmax(0,1fr) auto auto auto;align-items:center;gap:10px;padding:10px 4px;scroll-margin-top:90px}
.n120-menu-row:not(:has(.n120-avatar)){grid-template-columns:34px minmax(0,1fr) auto auto auto}
.n120-menu-row.addon{padding-inline-start:28px;background:#fafcfb}
.n120-menu-row.off{opacity:.55}
.n120-menu-row:target{background:#ecf6f1;border-radius:12px}
.n120-menu-main{min-width:0}
.n120-menu-main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.n120-menu-main small{color:#62756d;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.n120-menu-row>strong{white-space:nowrap}
.n120-menu-row>strong small{color:#62756d;font-weight:500}
.n120-menu-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.n120-menu-actions form{margin:0}
.n120-order{display:grid;gap:2px}
.n120-order form{margin:0}
.n120-order button{width:30px;height:20px;border:1px solid #dce7e1;background:#fff;border-radius:6px;font-size:9px;line-height:1;cursor:pointer;color:#3d5a50;padding:0}
.n120-order button:hover{background:#ecf6f1}
.n120-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e7f3ed;color:#167257;font-weight:900;overflow:hidden;flex:0 0 auto}
.n120-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.n120-avatar.big{width:84px;height:84px;font-size:30px}
.n120-photo-edit{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.n120-photo-edit input[type=file]{max-width:100%}

/* ---------- Appointment controls ---------- */
.n120-duration{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.n120-duration form{margin:0}
.n120-duration-custom{display:flex;gap:6px;align-items:center}
.n120-duration-custom input{width:90px}
.n120-line-staff select{min-width:150px}
.n120-repeat{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}

/* ---------- Online booking: photos, add-ons, less noise ---------- */
.premium-team-card .team-avatar.has-photo{padding:0;overflow:hidden;background:#fff}
.premium-team-card .team-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.premium-team-card .team-avatar.has-photo{width:52px!important;height:52px!important;min-width:52px;border-radius:50%!important}
.n120-addon-badge{display:inline-block;font-style:normal;font-size:11px;font-weight:700;color:#245849;background:#ebf4ee;border-radius:12px;padding:1px 8px;margin-top:3px}
.premium-service-card.n120-addon{border-style:dashed!important}
.premium-public-body .service-catalog-hint,.premium-public-body .public-security-note{display:none!important}
.premium-public-body .public-step-head small{opacity:.75}

/* ---------- Customer lookup ---------- */
.n120-lookup-btn{display:inline-flex;align-items:center;gap:6px}
dialog.n120-lookup{border:0;border-radius:20px;padding:0;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 40px);box-shadow:0 30px 80px rgba(10,30,24,.3);overflow:hidden}
dialog.n120-lookup::backdrop{background:rgba(7,26,19,.45)}
.n120-lookup-head{display:flex;gap:8px;align-items:center;padding:14px;border-bottom:1px solid #e3ebe7;position:sticky;top:0;background:#fff;z-index:2}
.n120-lookup-head input{flex:1;min-height:48px;border:1px solid #dce7e1;border-radius:12px;padding:0 14px;font-size:16px}
.n120-lookup-head button{min-width:44px;min-height:44px;border:0;background:#f3f8f5;border-radius:12px;font-size:20px;cursor:pointer}
.n120-lookup-body{overflow:auto;max-height:calc(100dvh - 120px);padding:12px 14px 18px;display:grid;gap:10px}
.n120-lookup-hint{color:#62756d;text-align:center;padding:24px 8px}
.n120-client{border:1px solid #e3ebe7;border-radius:16px;overflow:hidden;background:#fff}
.n120-client>header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;cursor:pointer}
.n120-client>header .n120-avatar{width:42px;height:42px}
.n120-client>header b{display:block}
.n120-client>header small{color:#62756d}
.n120-client-stats{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#3d5a50;margin-top:3px}
.n120-client-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 12px}
.n120-visits{border-top:1px dashed #e3ebe7;padding:6px 12px 12px;display:grid;gap:8px}
.n120-visit{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0;border-bottom:1px solid #f0f4f2;color:inherit;text-decoration:none}
.n120-visit:last-child{border-bottom:0}
.n120-visit .d{display:flex;flex-direction:column;align-items:center;background:#f3f8f5;border-radius:10px;padding:4px}
.n120-visit .d b{font-size:17px;line-height:1.1}
.n120-visit .d small{font-size:11px;color:#62756d}
.n120-visit .m b{display:block;font-size:14px}
.n120-visit .m small{display:block;color:#62756d;font-size:12px}
.n120-visit .m em{display:block;font-style:normal;font-size:12px;color:#8b6112;margin-top:2px}
.n120-visit strong{white-space:nowrap;font-size:14px}
.n120-visit strong small{display:block;font-weight:500;color:#62756d;font-size:11px;text-align:end}

@media(max-width:700px){
 .n120-menu-row,.n120-menu-row:not(:has(.n120-avatar)){grid-template-columns:34px minmax(0,1fr) auto;row-gap:6px}
 .n120-menu-row .n120-avatar{display:none}
 .n120-menu-actions{grid-column:1/-1;justify-content:flex-start}
 .n120-repeat{grid-template-columns:1fr 1fr}
 .n120-repeat button{grid-column:1/-1}
 .n120-client>header{grid-template-columns:42px minmax(0,1fr)}
 .n120-client>header>span:last-child{grid-column:1/-1}
}
body.theme-midnight .n120-client,body.theme-midnight dialog.n120-lookup,body.theme-midnight .n120-lookup-head{background:#142d25;color:#e1f0e7;border-color:#29493e}
@media print{.n120-resize,.n120-order{display:none!important}}
@media(max-width:900px){
 .app-topbar .n120-lookup-btn{display:flex!important;align-items:center;justify-content:center;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:44px!important;padding:5px!important}
 .app-topbar .n120-lookup-btn>span{display:none!important}
}
