/* V897: layout architecture derived from approved Celebrate Front Desk render.
   Intentionally scoped to non-Front Desk screens, preserves all operational markup and JS. */
:root{--render-navy:#071c41;--render-teal:#009398;--render-border:#c9d8e9;--render-lilac:#e5ccff;--render-aqua:#b3f1f1;--render-gold:#ffedbd;}
/* Single page canvas: same generous horizontal structure as the approved render. */
main.main > .section.celebrate-workspace:not(#section-frontdesk){max-width:none;width:100%;padding:0 0 30px;box-sizing:border-box;color:var(--render-navy);}
main.main > .section:not(#section-frontdesk) :is(.admin-group-module,.customer-directory-card,.business-master-card,.gift-workspace,.clean-list-panel,.events-list-panel,.panel){min-width:0;box-sizing:border-box;}
/* Actual section header components, rather than imaginary generic header names. */
#section-events > .events-page-head,
#section-people .customer-directory-card > .directory-head,
#section-business .business-master-card > .business-hero-head,
#section-giftcards .gift-workspace > .gift-page-head,
#section-marketing .admin-group-module > .admin-module-heading,
#section-system .admin-group-module > .admin-module-heading,
#section-services .admin-group-module > .admin-module-heading{
 background:linear-gradient(100deg,#b1f0f0,#e0fbfb)!important;
 min-height:64px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:14px!important;padding:14px 22px!important;border:0!important;border-bottom:1px solid #d7e4f0!important;
 border-radius:15px 15px 0 0!important;box-shadow:none!important;
}
#section-services [data-module="bookings"] > .admin-module-heading,
#section-events > .events-page-head,
#section-marketing [data-module="communications"] > .admin-module-heading{background:linear-gradient(100deg,#dcc9fa,#f1e6ff)!important;}
#section-giftcards .gift-workspace > .gift-page-head,
#section-marketing [data-module="promos"] > .admin-module-heading{background:linear-gradient(100deg,#ffebb1,#fff8dc)!important;}
#section-system [data-module="settings"] > .admin-module-heading{background:linear-gradient(100deg,#ddc8fb,#f4eaff)!important;}
#section-people .customer-directory-card > .directory-head{background:linear-gradient(100deg,#b1f0f0,#e0fbfb)!important;}
#section-business .business-master-card > .business-hero-head{background:linear-gradient(100deg,#b1f0f0,#e0fbfb)!important;}
/* Render's substantial bold section title / small controls on the right */
main.main > .section:not(#section-frontdesk) :is(.admin-module-heading h2,.events-page-head h2,.directory-head h2,.business-hero-head h1,.gift-page-head h2){
 margin:0!important;font-size:25px!important;line-height:1.15!important;letter-spacing:-.025em!important;font-weight:900!important;color:#071d43!important;}
main.main > .section:not(#section-frontdesk) :is(.action-btn,.customer-add-btn,.gift-add-btn){min-height:40px;border-radius:9px!important;font-weight:800!important;}
/* Main module frames reproduce white rounded card + slight shadow of render. */
#section-services > .admin-group-module,
#section-events > .events-list-panel,
#section-people .customer-directory-card,
#section-business > .business-master-card,
#section-giftcards > .gift-workspace,
#section-marketing > .admin-group-module,
#section-system > .admin-group-module{
 border:1px solid #c9dbea!important;border-radius:15px!important;background:white!important;
 box-shadow:0 5px 13px rgba(12,46,83,.095)!important;overflow:hidden!important;margin:0 0 18px!important;}
/* The old CSS concealed some section heads; keep actual ones visible. */
#section-events > .events-page-head{margin-bottom:0!important;}
#section-people .customer-directory-card > .directory-head{border-bottom:1px solid #d7e4f0!important;}
#section-giftcards .gift-page-head{margin-bottom:0!important;}
#section-giftcards .gift-stats{padding:17px 19px 9px!important;gap:12px!important;}
#section-giftcards .gift-directory-card{margin:13px 19px 19px!important;border:1px solid #d1dfed!important;border-radius:12px!important;overflow:hidden!important;}
#section-people .customer-filters{padding:18px 20px 12px!important;gap:12px!important;}
#section-people .customer-workspace-grid{padding:0 20px 18px!important;}
/* Tables & list headers use light-grey bands; body rows are spacious but not tall. */
main.main > .section:not(#section-frontdesk) :is(.events-table-head,.business-table-head,thead th){background:#e4ebf3!important;color:#10274b!important;font-weight:850!important;}
#section-events .events-table-wrap{padding:18px!important;}
#section-events .events-table-head{border-radius:9px 9px 0 0!important;padding:14px!important;}
#section-business .business-master-content{padding:16px!important;}
#section-business .business-master-pane{box-shadow:none!important;}
#section-business .business-table-head{padding:13px 16px!important;border-radius:10px 10px 0 0!important;}
#section-business .business-table-workspace{border:1px solid #d1dfed!important;border-radius:12px!important;overflow:hidden;}
/* Grouped controls resembling the approved booking toolbar */
main.main > .section:not(#section-frontdesk) :is(input.search,select.search,.customer-filter,.gift-filter,.filter-select){min-height:42px!important;border:1px solid #adc4df!important;border-radius:9px!important;}
main.main > .section:not(#section-frontdesk) :is(.toolbar,.gift-page-actions,.business-table-actions){display:flex;flex-wrap:wrap;align-items:center;gap:10px!important;}
#section-marketing .admin-group-module-body,#section-system .admin-group-module-body,#section-services .admin-group-module-body{padding:18px 20px!important;}
#section-marketing .panel,#section-system .panel{border:1px solid #d0deed!important;border-radius:11px!important;}
/* Desktop dimensions: do not overflow right edge at 1366px including 210px sidebar. */
@media(max-width:1390px){
 main.main > .section:not(#section-frontdesk) :is(.admin-module-heading h2,.events-page-head h2,.directory-head h2,.business-hero-head h1,.gift-page-head h2){font-size:22px!important;}
 #section-people .customer-filters{flex-wrap:wrap!important;}
 #section-events .events-table-wrap{overflow-x:auto;}
 #section-giftcards .gift-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:780px){
 #section-events>.events-page-head,#section-people .customer-directory-card>.directory-head,#section-business .business-master-card>.business-hero-head,#section-giftcards .gift-workspace>.gift-page-head,#section-marketing .admin-group-module>.admin-module-heading,#section-system .admin-group-module>.admin-module-heading,#section-services .admin-group-module>.admin-module-heading{min-height:52px!important;padding:12px!important;flex-wrap:wrap!important;}
 #section-giftcards .gift-stats{grid-template-columns:1fr;}
 #section-business .business-master-content{padding:9px!important;}
}

/* High-specificity render heading fixes against legacy section typography. */
body#celebrate-admin main.main #section-events > .events-page-head h2,
body#celebrate-admin main.main #section-people .directory-head h2,
body#celebrate-admin main.main #section-business .business-hero-head h1,
body#celebrate-admin main.main #section-giftcards .gift-page-head h2,
body#celebrate-admin main.main #section-services .admin-module-heading h2,
body#celebrate-admin main.main #section-marketing .admin-module-heading h2,
body#celebrate-admin main.main #section-system .admin-module-heading h2 {
 font-size:25px!important;line-height:1.13!important;font-weight:900!important;
 letter-spacing:-.03em!important;color:#071d43!important;margin:0!important;
}
body#celebrate-admin main.main #section-events > .events-page-head {background:linear-gradient(100deg,#dec8fa,#f3e9ff)!important;}
body#celebrate-admin main.main #section-giftcards .gift-workspace > .gift-page-head {background:linear-gradient(100deg,#ffedb7,#fff8e1)!important;}
@media(max-width:1390px){body#celebrate-admin main.main #section-events > .events-page-head h2,body#celebrate-admin main.main #section-people .directory-head h2,body#celebrate-admin main.main #section-business .business-hero-head h1,body#celebrate-admin main.main #section-giftcards .gift-page-head h2,body#celebrate-admin main.main #section-services .admin-module-heading h2,body#celebrate-admin main.main #section-marketing .admin-module-heading h2,body#celebrate-admin main.main #section-system .admin-module-heading h2 {font-size:23px!important;}}
