/* STYLE LOG 2026-10-11: approved layout-only refresh. No global theme/font reset. */
/* A shared summary row: money / count / money. Full values are kept in the DOM. */
#statsView #statsResults > .stats-summary-three{
 display:grid!important;grid-template-columns:minmax(0,38fr) minmax(0,24fr) minmax(0,38fr)!important;
 align-items:stretch;gap:8px;width:100%;margin:12px 0;min-width:0;
}
#statsView #statsResults > .stats-summary-three > .stat{
 min-width:0;width:auto;max-width:100%;margin:0;padding:12px 7px;min-height:76px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;
}
#statsView #statsResults > .stats-summary-three > .stat > span{font-size:11px;line-height:1.25;margin:0;white-space:nowrap}
#statsView #statsResults > .stats-summary-three > .stat > b{
 display:block;max-width:100%;width:100%;font-size:20px;line-height:1.35;white-space:nowrap;
 font-variant-numeric:tabular-nums;letter-spacing:-.3px;text-align:center;overflow:visible;
}
#statsView #statsResults > .field-hint{margin:12px 0;line-height:1.5;overflow-wrap:anywhere}
@media(min-width:761px){
 #statsView #statsResults > .stats-summary-three{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px}
 #statsView #statsResults > .stats-summary-three > .stat{padding:14px 12px;min-height:86px}
 #statsView #statsResults > .stats-summary-three > .stat > b{font-size:24px}
}
@media(max-width:360px){
 #statsView #statsResults > .stats-summary-three{gap:5px}
 #statsView #statsResults > .stats-summary-three > .stat{padding:11px 4px}
 #statsView #statsResults > .stats-summary-three > .stat > span{font-size:10px}
}
/* Main content column baselines, not indiscriminate centered text. */
#listView > :is(.list-heading,.wedding-list-tools,.search-bar,#clients){width:100%;margin-left:0;margin-right:0;box-sizing:border-box}
#listView > .list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#listView #clients{padding-top:4px;padding-right:4px;scroll-padding-top:4px}
#scheduleView .schedule-grid{align-items:start;column-gap:16px}
#scheduleView .schedule-grid > .card{min-width:0;margin-top:0;scroll-padding-top:14px}
#scheduleView #appointments .appointment-contact-row{
 display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:5px;align-items:center;
 padding-inline:0;min-width:0;width:100%;
}
#scheduleView #appointments .appointment-contact-row > .compact-appointment{
 display:grid;grid-template-columns:46px 30px minmax(0,1fr) minmax(42px,.5fr) 38px;
 grid-template-rows:auto;gap:6px;min-width:0;width:100%;padding:10px 0;align-items:center;min-height:62px;
}
#scheduleView #appointments .compact-appointment > .booking-time{grid-column:1;grid-row:1;justify-self:center;text-align:center;white-space:nowrap;min-width:0;font-variant-numeric:tabular-nums}
#scheduleView #appointments .compact-appointment > .avatar{grid-column:2;grid-row:1;width:30px;height:30px;min-width:30px;justify-self:center}
#scheduleView #appointments .compact-appointment > strong{grid-column:3;grid-row:1;justify-content:flex-start;align-items:center;gap:4px;flex-wrap:wrap;min-width:0;padding:0}
#scheduleView #appointments .compact-appointment > strong > .booking-name{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
#scheduleView #appointments .compact-appointment > .compact-service{grid-column:4;grid-row:1;min-width:0;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
#scheduleView #appointments .compact-appointment > .pill{grid-column:5;grid-row:1;width:38px;min-width:0;margin:0;justify-self:center;text-align:center;padding:3px 2px}
#scheduleView #appointments .compact-appointment > span:last-child:not(.pill){display:none}
#scheduleView #appointments .appointment-contact-row > .contact-more{width:30px;min-width:30px;padding:4px;margin:0;justify-self:center}
#scheduleView #appointments .appointment-contact-row.booking-selecting{grid-template-columns:24px minmax(0,1fr) 30px}
@media(max-width:360px){
 #scheduleView #appointments .appointment-contact-row{grid-template-columns:minmax(0,1fr) 26px;gap:3px}
 #scheduleView #appointments .appointment-contact-row > .compact-appointment{grid-template-columns:38px 26px minmax(0,1fr) 37px 31px;gap:4px}
 #scheduleView #appointments .compact-appointment > .avatar{width:26px;height:26px;min-width:26px}
 #scheduleView #appointments .compact-appointment > .pill{width:31px}
}
/* Existing representative and staff catalog use identical compact service-row structure. */
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-list{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"]{
 display:grid!important;grid-template-columns:18px minmax(0,1fr) 96px 22px 24px 24px 32px!important;
 grid-template-rows:auto;gap:3px;padding:5px 3px!important;align-items:center;min-height:0;width:100%;min-width:0;
 border:1px solid var(--line);border-radius:10px;
}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > *{grid-row:1;min-width:0;margin:0}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .order-handle{grid-column:1;touch-action:none}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .preference-name{grid-column:2;text-align:left;width:100%}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .preference-price{grid-column:3;text-align:right;width:100%;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .preference-check{grid-column:4;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;padding:0;height:36px;margin:0}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .text-button:nth-last-child(3){grid-column:5}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .text-button:nth-last-child(2){grid-column:6}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > .danger{grid-column:7}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > :is(input,button){
 width:100%;max-width:100%;height:36px!important;min-height:36px!important;padding:4px!important;font-size:12px;
}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] .preference-check > input{
 appearance:auto;flex:none;width:16px!important;min-width:16px;height:16px!important;min-height:16px!important;max-height:16px;padding:0!important;margin:0;
}
#settingsView :is(#stylelogPreferences,.staff-catalog) .preference-check > span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#settingsView .staff-catalog{margin:12px 0;padding:12px;min-width:0}
#settingsView .staff-catalog > summary{min-height:36px;padding:4px 0;cursor:pointer}
#settingsView .staff-catalog > button{margin:8px 0;font-size:12px;min-height:36px;padding:7px 12px}
#settingsView .staff-catalog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
#settingsView .staff-catalog-actions button{min-height:40px;font-size:12px}
#settingsView .staff-catalog .preferences-item.dragging{opacity:.7;outline:2px solid var(--brown)}
#settingsView .staff-catalog .preferences-item.drop-target{box-shadow:inset 0 2px var(--brown)}
@media(min-width:761px){
 #settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"]{grid-template-columns:24px minmax(90px,1fr) 132px 32px 30px 30px 42px!important;gap:6px;padding:5px 6px!important}
 #settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > :is(input,button){font-size:13px}
}
@media(max-width:360px){
 #settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"]{grid-template-columns:14px minmax(0,1fr) 88px 18px 20px 20px 27px!important;gap:2px;padding:4px 2px!important}
 #settingsView :is(#stylelogPreferences,.staff-catalog) .preferences-item[data-preference-kind="services"] > button{font-size:10px;padding:2px!important}
 #settingsView .staff-catalog{padding:8px}
}
/* Customer note padding: preserve left alignment but keep a readable inset. */
#editView #clientNext > .client-next-link{padding:14px 18px}
#editView #clientNext > .booking-memo-preview{padding:12px 18px 16px;margin:0;box-sizing:border-box}
#editView #clientNext > .booking-memo-preview > .memo-lines{margin:7px 0 0;line-height:1.65;overflow-wrap:anywhere;text-align:left}
#editView .client-detail-accordion > summary{padding-inline:14px}
#editView .client-detail-accordion > :not(summary){margin-left:14px;margin-right:14px;max-width:calc(100% - 28px);box-sizing:border-box}
#editView .client-detail-accordion .client-appointment-memo{padding:12px 14px}
#editView :is(.client-memo-full,.client-recent-memo){line-height:1.65;overflow-wrap:anywhere;text-align:left}
#editView :is(#clientMemo,#clientInfoEditor) textarea{padding:12px 14px}
@media(min-width:761px){
 #editView #clientNext > .client-next-link{padding:16px 22px}
 #editView #clientNext > .booking-memo-preview{padding:12px 22px 18px}
 #editView .client-detail-accordion > summary{padding-inline:18px}
}
/* Permit horizontal tab intent over vertical scroll regions; retain vertical native pan. */
:is(#listView,#scheduleView,#galleryView,#settingsView,#statsView) :is(#clients,#appointments,.customer-results,.preferences-list,.gallery-grid,.schedule-grid>.card){touch-action:pan-y}
:is(#listView,#scheduleView,#galleryView) :is(.client,.compact-appointment,.gallery-tile){-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
/* Keep the existing 44px more-actions touch target inside its allocated column. */
#scheduleView #appointments .appointment-contact-row{grid-template-columns:minmax(0,1fr) 44px}
#scheduleView #appointments .appointment-contact-row > .contact-quick{width:44px;min-width:44px;max-width:44px;margin:0;justify-self:end}
#scheduleView #appointments .appointment-contact-row.booking-selecting{grid-template-columns:24px minmax(0,1fr) 44px}

/* 2026-10-11 r2: customer rows and tablet alignment only.
   Mobile schedule rules, prices, reports and navigation are not modified. */
#listView > .wedding-list-tools{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;
}
#listView > .wedding-list-tools > #clientTypeFilters{justify-content:flex-start;min-width:0;margin:0}
#listView > .wedding-list-tools > #openBrideNotes{justify-self:end;margin:0}
#listView > .search-bar{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px}
#listView > .search-bar > .search-input{min-width:0;width:100%;margin:0}
#listView > .search-bar > #refresh{
 display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;
 padding:0;margin:0;justify-self:end;
}
#listView > .search-bar > #refresh > span{display:none}
 #listView #clients{grid-auto-rows:minmax(min-content,auto)}
#listView #clients > .client{
 display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:center;column-gap:10px;row-gap:0;
 position:relative;min-width:0;
}
#listView #clients > .client > .avatar{
 grid-column:1;grid-row:1;width:40px;height:44px;min-width:40px;margin:0;justify-self:center;align-self:center;
}
#listView #clients > .client > .client-info{
 grid-column:2;grid-row:1;min-width:0;width:100%;padding:0;margin:0;align-self:center;
}
#listView #clients > .client > .client-info > .name{
 display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:3px 5px;min-width:0;line-height:1.35;
}
#listView #clients > .client > .client-info > .name > .client-name-text{
 min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;
}
#listView #clients > .client > .client-info > :is(.phone,.meta,.client-summary){
 display:block;max-width:100%;min-width:0;line-height:1.4;overflow-wrap:anywhere;
}
#listView #clients > .client > .contact-quick{
 grid-column:3;grid-row:1;position:static;inset:auto;align-self:center;justify-self:center;
 width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;max-height:44px;padding:0;margin:0;
 display:flex;align-items:center;justify-content:center;
}
#listView #clients > .client.contact-selecting{grid-template-columns:28px minmax(0,1fr)}
#listView #clients > .client.contact-selecting > .contact-check{
 grid-column:1;grid-row:1;width:28px;min-width:28px;min-height:44px;margin:0;padding:0;
 display:flex;align-items:center;justify-content:center;
}
#listView #clients > .client.contact-selecting > .contact-check > input{
 width:18px;min-width:18px;height:18px;min-height:18px;max-height:18px;padding:0;margin:0;
}
#listView #clients > .client.contact-selecting > .avatar{grid-column:2}
#listView #clients > .client.contact-selecting > .client-info{grid-column:2}
@media(max-width:650px){
 #listView > .page-heading{align-items:center;gap:8px;margin:8px 0}
 #listView > .page-heading > div:first-child{min-width:0;flex:1}
 #listView > .page-heading .contact-heading-actions{flex:none;gap:6px;align-items:center}
 #listView > .page-heading .contact-heading-actions > button{height:40px;min-height:40px;font-size:11px;padding:6px 9px;white-space:nowrap}
 #listView > .wedding-list-tools{margin:4px 0 6px;gap:8px}
 #listView #clientTypeFilters button{padding:6px 8px}
 #listView #openBrideNotes{padding:6px 9px}
 #listView > .search-bar{margin:4px 0 10px}
 #listView > .search-bar > .search-input{padding:0 10px;border:1px solid var(--line);border-radius:12px}
 #listView #search{font-size:13px;min-height:44px;line-height:1.4}
 #listView #clients{padding:0 12px;gap:0}
 #listView #clients > .client{padding:10px 0;min-height:84px}
 #listView #clients > .client > .client-info > .name{font-size:14px;margin:0 0 2px}
 #listView #clients > .client > .client-info > .phone{font-size:12px;margin:0}
 #listView #clients > .client > .client-info > .meta{font-size:11px;margin:2px 0 0}
 #listView #clients > .client > .client-info > .client-summary{font-size:11px;margin:2px 0 0;padding:0;background:transparent}
}
@media(max-width:360px){
 #listView #clients{padding:0 10px}
 #listView #clients > .client{grid-template-columns:36px minmax(0,1fr) 44px;column-gap:8px}
 #listView #clients > .client > .avatar{width:36px;height:40px;min-width:36px}
 #listView #clients > .client.contact-selecting{grid-template-columns:24px minmax(0,1fr)}
 #listView #clients > .client.contact-selecting > .contact-check{width:24px;min-width:24px}
 #listView > .page-heading{flex-wrap:wrap}
 #listView > .page-heading .contact-heading-actions{margin-left:auto}
}
@media(min-width:761px){
 #listView > .list-heading{margin:8px 0;align-items:center}
 #listView > .wedding-list-tools{margin:6px 0 10px}
 #listView > .search-bar{margin:0 0 12px}
 #listView #clients{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 2px 4px 0;align-items:stretch}
 #listView #clients > .client{padding:12px;min-height:92px}
 #listView #clients > .client > .client-info > .meta{margin-top:3px}
 #listView #clients > .client > .client-info > .client-summary{margin-top:3px}
 /* R3: tablet appointment columns; no phone or reservation-form change. */
 #scheduleView .schedule-grid{column-gap:16px;align-items:start}
 #scheduleView .schedule-grid > .card{padding:18px;margin-top:0}
 #scheduleView #appointments .appointment-contact-row{
  grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:0;
  border-bottom:1px solid var(--line);align-items:center;
 }
 #scheduleView #appointments .appointment-contact-row:last-child{border-bottom:0}
 #scheduleView #appointments .appointment-contact-row > .compact-appointment{
  grid-template-columns:54px 32px minmax(0,1fr) minmax(64px,1fr) 44px;
  grid-template-rows:auto;gap:8px;padding:10px 4px;min-height:64px;border-bottom:0;font-size:13px;
 }
 #scheduleView #appointments .compact-appointment > .booking-time{
  justify-self:center;text-align:center;align-items:center;font-size:12px;
  font-variant-numeric:tabular-nums;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35;
 }
 #scheduleView #appointments .compact-appointment > .booking-time > span{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #scheduleView #appointments .compact-appointment > .avatar{width:32px;height:32px;min-width:32px}
 #scheduleView #appointments .compact-appointment > strong{
  justify-content:flex-start;gap:4px;flex-wrap:wrap;min-width:0;font-size:13px;white-space:normal;text-align:left;
 }
 #scheduleView #appointments .compact-appointment > strong > .booking-name{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
 #scheduleView #appointments .compact-appointment > .compact-service{
  justify-self:stretch;text-align:left;line-height:1.35;font-size:12px;padding:0;white-space:normal;overflow-wrap:anywhere;
 }
 #scheduleView #appointments .compact-appointment > .pill{width:44px;margin:0;justify-self:center;font-size:10px}
 #scheduleView #appointments .compact-appointment > span:last-child:not(.pill){display:none!important}
 #scheduleView #appointments .appointment-contact-row > .contact-quick{
  width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;
  padding:0;margin:0;justify-self:center;align-self:center;
 }
 #scheduleView #appointments .appointment-contact-row.booking-selecting{grid-template-columns:24px minmax(0,1fr) 44px}
}
@media (min-width:761px) and (max-width:1099px){
 #scheduleView #appointments .appointment-contact-row{grid-template-columns:minmax(0,1fr) 40px;column-gap:4px}
 #scheduleView #appointments .appointment-contact-row > .compact-appointment{
  grid-template-columns:44px 26px minmax(0,1fr) 60px 34px;
  column-gap:4px;padding:9px 0;min-height:60px;font-size:12px;
 }
 #scheduleView #appointments .compact-appointment > strong{font-size:12px}
 #scheduleView #appointments .compact-appointment > .avatar{width:26px;height:26px;min-width:26px}
 #scheduleView #appointments .compact-appointment > .pill{width:34px;font-size:9px}
 #scheduleView #appointments .appointment-contact-row > .contact-quick{width:40px;min-width:40px;max-width:40px}
 #scheduleView #appointments .appointment-contact-row.booking-selecting{grid-template-columns:24px minmax(0,1fr) 40px}
}
/* Staff identity is read-only. Real authorization/revalidation stays on the server. */
#settingsView #workspaceControls[data-workspace-role="staff"]{
 display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:12px 0 14px;width:100%;min-width:0;
}
#settingsView #workspaceControls .workspace-static-label{
 display:block;min-width:0;width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:10px;
 background:var(--bg);color:var(--muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere;cursor:default;
}
#settingsView #workspaceControls[data-workspace-role="staff"] > .workspace-display-name{
 display:block;min-width:0;margin:0;padding:0 2px;font-size:18px;font-weight:700;line-height:1.45;
 color:var(--ink);overflow-wrap:anywhere;
}
@media(min-width:761px){
 #settingsView #workspaceControls[data-workspace-role="staff"] > .workspace-display-name{font-size:20px}
}

/* 2026-10-11 R5 — tablet/PC customer identity group shift only.
   Keep time/service/status/more columns in place. Move avatar + name + type badge
   together about 16px to the right, while service text stays centered in its column. */
@media(min-width:1100px){
 #scheduleView #appointments .appointment-contact-row > .compact-appointment{
  grid-template-columns:54px 48px minmax(0,1fr) 92px 44px;
  column-gap:10px;
 }
 #scheduleView #appointments .compact-appointment > .avatar{justify-self:end}
 #scheduleView #appointments .compact-appointment > strong{
  gap:8px;
  padding-left:4px;
 }
 #scheduleView #appointments .compact-appointment > .compact-service{
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:stretch;
  text-align:center;
  padding:0 4px;
 }
}
@media(min-width:761px) and (max-width:1099px){
 #scheduleView #appointments .appointment-contact-row > .compact-appointment{
  grid-template-columns:44px 42px minmax(0,1fr) 72px 34px;
  column-gap:6px;
 }
 #scheduleView #appointments .compact-appointment > .avatar{justify-self:end}
 #scheduleView #appointments .compact-appointment > strong{
  gap:6px;
  padding-left:3px;
 }
 #scheduleView #appointments .compact-appointment > .compact-service{
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:stretch;
  text-align:center;
  padding:0 3px;
 }
}
