/* CELEBRATE ADMIN V959 — visual standard derived from live Front Desk V957.
   PRESENTATION ONLY. All selectors are limited to the seven other admin pages
   and the shared editor modal. No Front Desk selectors, data or JS operations.
   This is the final loaded stylesheet to reconcile older page-specific CSS. */
@layer frontdesk {
  /* Design primitives copied from the operating Front Desk: navy text, pastel
     service headers, white working surfaces, fine blue table dividers. */
  body#celebrate-admin #appView {
    --u959-navy:#082a45;
    --u959-ink:#0b2d4b;
    --u959-teal:#008f97;
    --u959-line:#c7d9e8;
    --u959-line-soft:#dfe8f1;
    --u959-header-row:#e5ebf3;
    --u959-pastel-teal:#b7edeb;
    --u959-pastel-lavender:#dcc6fa;
    --u959-pastel-yellow:#fff0c4;
    --u959-pastel-blue:#dceafa;
    --u959-label:#345a77;
    --u959-muted:#61788c;
    --u959-card-shadow:0 3px 8px rgba(13,49,76,.075);
  }
  /* A consistent canvas and typographic hierarchy outside the protected desk. */
  body#celebrate-admin #appView .main>.section.admin-group-page:not(#section-frontdesk) {
    box-sizing:border-box!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    color:var(--u959-ink)!important; font-size:14px!important;
    line-height:1.45!important; padding-bottom:28px!important;
  }
  body#celebrate-admin #appView .main>.section.admin-group-page:not(#section-frontdesk) :is(h1,h2,h3,h4) {
    font-family:'Nunito Sans',system-ui,sans-serif!important;
    color:var(--u959-navy)!important;
    letter-spacing:-.012em!important;
    text-transform:none!important;
  }
  body#celebrate-admin #appView .main>.section.admin-group-page:not(#section-frontdesk) :is(p,small,.panel-subtitle,.empty,.notice) {
    overflow-wrap:anywhere!important;
  }
  /* One operational surface per group, matching the compact Front Desk panels. */
  body#celebrate-admin #appView .main :is(#section-services,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.admin-module-card,.customer-directory-card,.gift-workspace,.business-master-card) {
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
    background:#fff!important;border:1px solid var(--u959-line)!important;
    border-radius:12px!important;box-shadow:var(--u959-card-shadow)!important;
    margin:0 0 15px!important;overflow:hidden!important;
  }
  body#celebrate-admin #appView .main #section-events .events-page-head {
    box-sizing:border-box!important;width:100%!important;
    border:1px solid var(--u959-line)!important;border-bottom:0!important;
    border-radius:12px 12px 0 0!important;
    box-shadow:var(--u959-card-shadow)!important;
    margin:0!important;
  }
  body#celebrate-admin #appView .main #section-events .events-list-panel {
    box-sizing:border-box!important;width:100%!important;margin:0 0 15px!important;
    background:#fff!important;border:1px solid var(--u959-line)!important;
    border-radius:0 0 12px 12px!important;box-shadow:var(--u959-card-shadow)!important;
    padding:15px!important;overflow-x:auto!important;
  }
  /* Each page uses a pastel header. The sizes, spacing and typography are the
     same as Open Play / Workout / Quick Sale / Parties, not oversized page heroes. */
  body#celebrate-admin #appView .main :is(
    #section-services [data-module="bookings"]>.admin-module-heading,
    #section-events>.events-page-head,
    #section-people .directory-head,
    #section-giftcards .gift-page-head,
    #section-business .business-hero-head,
    #section-marketing [data-module="promotions"]>.admin-module-heading,
    #section-marketing [data-module="communications"]>.admin-module-heading,
    #section-system .admin-module-card>.admin-module-heading
  ) {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:wrap!important;gap:12px!important;
    min-height:51px!important;height:auto!important;
    margin:0!important;padding:12px 17px!important;
    border:0!important;border-bottom:1px solid rgba(8,42,69,.11)!important;
    border-radius:11px 11px 0 0!important;
    box-shadow:none!important;background-image:none!important;
    color:var(--u959-navy)!important;
  }
  /* Override older same-layer rules including duplicated id selectors. */
  body#celebrate-admin #appView .main #section-services#section-services [data-module="bookings"]>.admin-module-heading,
  body#celebrate-admin #appView .main #section-business#section-business .business-hero-head {
    background-image:none!important;border-radius:11px 11px 0 0!important;
    min-height:51px!important;padding:12px 17px!important;
  }
  body#celebrate-admin #appView .main #section-services#section-services [data-module="bookings"]>.admin-module-heading,
  body#celebrate-admin #appView .main #section-business#section-business .business-hero-head {
    background:var(--u959-pastel-lavender)!important;
  }
  body#celebrate-admin #appView .main :is(#section-events>.events-page-head,#section-people .directory-head,
    #section-system [data-module="settings"]>.admin-module-heading,
    #section-system [data-module="health"]>.admin-module-heading) {
    background:var(--u959-pastel-teal)!important;
  }
  body#celebrate-admin #appView .main :is(#section-giftcards .gift-page-head,
    #section-marketing [data-module="promotions"]>.admin-module-heading,
    #section-system [data-module="qa"]>.admin-module-heading) {
    background:var(--u959-pastel-yellow)!important;
  }
  body#celebrate-admin #appView .main :is(#section-marketing [data-module="communications"]>.admin-module-heading,
    #section-system [data-module="activity"]>.admin-module-heading) {
    background:var(--u959-pastel-blue)!important;
  }
  body#celebrate-admin #appView .main :is(
    #section-services [data-module="bookings"]>.admin-module-heading h2,
    #section-events>.events-page-head h2,
    #section-people .directory-head h2,
    #section-giftcards .gift-page-head h2,
    #section-business .business-hero-head h1,
    #section-marketing .admin-module-card>.admin-module-heading h2,
    #section-system .admin-module-card>.admin-module-heading h2
  ) {
    font-size:20px!important;line-height:1.25!important;font-weight:900!important;
    letter-spacing:0!important;-webkit-text-fill-color:var(--u959-navy)!important;
    color:var(--u959-navy)!important;margin:0!important;
  }
  /* Preserve existing working tools and actions; use matching modest sizing. */
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
    :is(.admin-group-module-body,.customer-filters,.gift-filters,.business-master-content) {
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-marketing,#section-system) .admin-module-card>.admin-group-module-body {
    padding:16px!important;background:#fff!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select,textarea) {
    box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
    min-height:39px!important;height:auto!important;padding:8px 11px!important;
    font-family:inherit!important;font-size:13px!important;font-weight:500!important;
    line-height:1.4!important;color:var(--u959-ink)!important;
    border:1px solid #aac4da!important;border-radius:7px!important;
    background-color:#fff!important;box-shadow:none!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system) textarea {
    min-height:95px!important;resize:vertical!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(input,select,textarea):focus-visible {
    outline:2px solid var(--u959-teal)!important;outline-offset:2px!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
    :is(label,.panel-subtitle) {
    font-size:12px!important;font-weight:700!important;color:var(--u959-label)!important;
    line-height:1.4!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
    .action-btn {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:6px!important;min-height:36px!important;height:auto!important;
    padding:8px 12px!important;font-size:12px!important;font-weight:850!important;
    border-radius:7px!important;line-height:1.35!important;
    white-space:normal!important;text-align:center!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system) .action-btn:not(.secondary) {
    background:var(--u959-teal)!important;color:#fff!important;
    border-color:var(--u959-teal)!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system) .action-btn.secondary {
    background:#fff!important;color:var(--u959-navy)!important;
    border:1px solid #b8cde0!important;
  }
  /* Operational tables: same soft gray-blue header strip and thin row dividers. */
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.events-table-head,.customer-directory-columns,.business-table-head,.gift-table-head,.table-header,table thead th) {
    background:var(--u959-header-row)!important;color:var(--u959-navy)!important;
    font-size:12px!important;font-weight:850!important;
    border-color:var(--u959-line-soft)!important;
    box-shadow:none!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(table td,.event-table-row,.customer-work-item,.expense-row,.inventory-row,.settings-row) {
    border-bottom-color:var(--u959-line-soft)!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.toolbar,.gift-page-actions,.customer-filter-options) {
    gap:9px!important;max-width:100%!important;min-width:0!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.metric strong,.gift-stat strong) {
    color:var(--u959-navy)!important;font-size:17px!important;line-height:1.2!important;font-weight:900!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.metric span,.gift-stat small) {
    color:var(--u959-label)!important;font-size:11px!important;line-height:1.4!important;
  }
  /* Bookings: generous search controls, efficient table of reservations. */
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .booking-inline-metrics {
    display:flex!important;flex-wrap:wrap!important;gap:16px!important;
    padding:0 0 12px!important;margin:0 0 12px!important;
    border-bottom:1px solid var(--u959-line-soft)!important;background:transparent!important;
  }
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .booking-inline-metrics>.metric {
    flex:0 1 auto!important;min-width:0!important;min-height:0!important;
    display:flex!important;align-items:baseline!important;gap:7px!important;
    margin:0!important;padding:3px 0!important;border:0!important;
    box-shadow:none!important;background:transparent!important;
  }
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .toolbar {
    display:grid!important;
    grid-template-columns:minmax(150px,.9fr) minmax(125px,.75fr) minmax(125px,.75fr) minmax(190px,1.4fr)!important;
    gap:10px!important;align-items:end!important;
  }
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .toolbar>* {
    min-width:0!important;max-width:100%!important;width:100%!important;
  }
  /* Events: short entries, compact actions and readable column titles. */
  body#celebrate-admin #appView .main #section-events .events-table-head {
    min-height:37px!important;align-items:center!important;padding:10px 12px!important;
    border-radius:7px 7px 0 0!important;
  }
  body#celebrate-admin #appView .main #section-events .event-table-row {
    min-height:60px!important;margin:0!important;padding:10px 12px!important;
    background:#fff!important;box-shadow:none!important;border-radius:0!important;
    border-top:0!important;border-left:0!important;border-right:0!important;
  }
  body#celebrate-admin #appView .main #section-events .event-main-cell strong {
    color:var(--u959-navy)!important;font-size:14px!important;font-weight:850!important;
  }
  /* Customers: compact directory, not oversized cards or floating tiles. */
  body#celebrate-admin #appView .main #section-people .directory-head {
    background:var(--u959-pastel-teal)!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-filters {
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    gap:10px!important;margin:0!important;padding:13px 15px!important;
    background:#fff!important;border-bottom:1px solid var(--u959-line-soft)!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-directory-columns {
    min-height:34px!important;padding:9px 12px!important;
    border-radius:6px 6px 0 0!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-work-item {
    padding:11px 13px!important;min-height:58px!important;
    border:0!important;border-bottom:1px solid var(--u959-line-soft)!important;
    border-radius:0!important;box-shadow:none!important;background:#fff!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-work-info strong {
    font-size:14px!important;line-height:1.3!important;font-weight:850!important;
    color:var(--u959-navy)!important;
  }
  /* Gift Cards: a single operational toolbar and restrained stock totals. */
  body#celebrate-admin #appView .main #section-giftcards .gift-page-head {
    background:var(--u959-pastel-yellow)!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-stats {
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:0!important;padding:8px 12px!important;background:#fff!important;
    border-bottom:1px solid var(--u959-line-soft)!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-stat {
    min-height:42px!important;min-width:0!important;margin:0!important;
    padding:6px 12px!important;border:0!important;
    border-right:1px solid var(--u959-line-soft)!important;
    border-radius:0!important;box-shadow:none!important;background:#fff!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-stat:last-child {border-right:0!important;}
  body#celebrate-admin #appView .main #section-giftcards .gift-physical-heading {
    background:#f4f8fc!important;padding:12px 15px!important;
    border-bottom:1px solid var(--u959-line-soft)!important;border-radius:0!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-physical-heading h3 {
    font-size:15px!important;font-weight:900!important;
  }
  /* Finance: preserve the approved month report and navigation, but bring its
     frame, month selector and tabs into the Front Desk visual language. */
  body#celebrate-admin #appView .main #section-business .business-hero-head {
    background:var(--u959-pastel-lavender)!important;
  }
  body#celebrate-admin #appView .main #section-business .business-master-content {
    background:#fff!important;padding:14px 16px!important;
  }
  body#celebrate-admin #appView .main #section-business .v926-business-tabs {
    display:flex!important;flex-wrap:wrap!important;gap:8px!important;
    padding:11px 15px!important;margin:0!important;
    background:#fff!important;border-bottom:1px solid var(--u959-line-soft)!important;
  }
  body#celebrate-admin #appView .main #section-business .v926-business-tab {
    min-height:36px!important;padding:8px 14px!important;
    border-radius:7px!important;border:1px solid #c0d4e4!important;
    background:#fff!important;color:var(--u959-navy)!important;
    font-size:12px!important;font-weight:800!important;
  }
  body#celebrate-admin #appView .main #section-business .v926-business-tab.active,
  body#celebrate-admin #appView .main #section-business .v926-business-tab[aria-selected="true"] {
    background:var(--u959-teal)!important;color:#fff!important;
    border-color:var(--u959-teal)!important;
  }
  /* Do NOT restyle the Finance overview month/day calculations or totals. */
  /* Marketing and Settings: independent modules, identical card rhythm. */
  body#celebrate-admin #appView .main :is(#section-marketing,#section-system) .admin-module-card {
    margin-bottom:15px!important;
  }
  body#celebrate-admin #appView .main :is(#section-marketing,#section-system) .admin-module-card>.admin-group-module-body {
    padding:15px 16px!important;
  }
  body#celebrate-admin #appView .main :is(#section-marketing,#section-system) .panel.subpanel {
    border:1px solid var(--u959-line-soft)!important;
    box-shadow:none!important;border-radius:9px!important;background:#fff!important;
  }
  body#celebrate-admin #appView .main :is(#section-marketing,#section-system) .panel-head h2 {
    font-size:15px!important;line-height:1.4!important;font-weight:850!important;
  }
  body#celebrate-admin #appView .main :is(#section-marketing,#section-system)
  :is(.settings-row,.list-row) {
    padding:11px 12px!important;background:#fff!important;
    border-radius:0!important;box-shadow:none!important;
  }
  /* Expandable details and in-page records: neutral, low-density. */
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.admin-disclosure,.booking-optional-section) {
    max-width:100%!important;min-width:0!important;
    border:1px solid var(--u959-line-soft)!important;
    border-radius:8px!important;background:#fff!important;
    box-shadow:none!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.admin-disclosure,.booking-optional-section) :is(summary,.continuous-heading) {
    color:var(--u959-navy)!important;font-size:13px!important;font-weight:850!important;
  }
  /* Editor modals are shared across pages; inherit a readable, neutral shell. */
  body#celebrate-admin #appView #adminModal .modal-card {
    background:#fff!important;border-radius:12px!important;
    border:1px solid var(--u959-line)!important;
    box-shadow:0 15px 55px rgba(10,32,49,.22)!important;
  }
  body#celebrate-admin #appView #adminModal .modal-body {
    font-size:14px!important;line-height:1.5!important;
  }
  body#celebrate-admin #appView #adminModal :is(input,select,textarea) {
    max-width:100%!important;box-sizing:border-box!important;
  }
}
/* Responsive service layouts. Do not affect Front Desk's own breakpoint rules. */
@media (max-width:1100px) {
 @layer frontdesk {
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .toolbar {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body#celebrate-admin #appView .main #section-events .events-list-panel {
    overflow-x:auto!important;
  }
  body#celebrate-admin #appView .main #section-events .events-table-wrap {
    min-width:625px!important;
  }
 }
}
@media (max-width:700px) {
 @layer frontdesk {
  body#celebrate-admin #appView .main>.section.admin-group-page:not(#section-frontdesk) {
    padding-left:0!important;padding-right:0!important;
  }
  body#celebrate-admin #appView .main :is(#section-services,#section-events,#section-people,#section-giftcards,#section-business,#section-marketing,#section-system)
  :is(.admin-module-heading,.events-page-head,.directory-head,.gift-page-head,.business-hero-head) {
    padding:11px 13px!important;gap:9px!important;
  }
  body#celebrate-admin #appView .main #section-services [data-module="bookings"] .toolbar {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-filters {
    flex-direction:column!important;align-items:stretch!important;
  }
  body#celebrate-admin #appView .main #section-people .customer-work-item {
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-stats {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body#celebrate-admin #appView .main #section-giftcards .gift-stat:nth-child(2) {
    border-right:0!important;
  }
  body#celebrate-admin #appView .main #section-business .business-hero-head {
    align-items:stretch!important;
  }
  body#celebrate-admin #appView .main #section-business .business-master-content {
    padding:11px!important;
  }
  body#celebrate-admin #appView .main #section-business .v926-business-tab {
    flex:1 1 100px!important;
  }
 }
}
