/* SéSé Wine & Beer · premium pilot shell
   One header treatment for every pilot view + stable finance hierarchy. */

/* ---------- Shared header: identical on every SéSé page ---------- */
.sese-demo.sese-pilot .sese-header.sese-header{
  width:min(1520px,calc(100% - 24px))!important;
  max-width:none!important;
  min-height:142px!important;
  margin:0 auto!important;
  padding:18px 28px!important;
  display:grid!important;
  grid-template-columns:210px minmax(0,1fr) 210px!important;
  align-items:center!important;
  gap:20px!important;
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  color:#fff8ef!important;
  border:1px solid rgba(231,184,116,.25)!important;
  border-top:0!important;
  border-radius:0!important;
  background:
    radial-gradient(circle at 76% 20%,rgba(255,222,177,.17),transparent 18%),
    radial-gradient(circle at 91% 72%,rgba(211,63,87,.22),transparent 23%),
    linear-gradient(107deg,#350711 0%,#57101d 27%,#741229 57%,#4d0a19 100%)!important;
  box-shadow:inset 0 -1px 0 rgba(255,228,190,.12),0 16px 34px rgba(62,8,24,.18)!important;
}

/* Flatten the legacy left wrapper so logo, title and language become true columns. */
.sese-demo.sese-pilot .sese-header.sese-header>div:first-child{
  display:contents!important;
}

.sese-demo.sese-pilot .sese-header.sese-header::before{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  left:-112px!important;
  top:-132px!important;
  width:405px!important;
  height:318px!important;
  border:2px solid rgba(223,168,97,.25)!important;
  border-radius:50%!important;
  transform:rotate(15deg)!important;
  box-shadow:68px 94px 0 -60px rgba(238,188,120,.22),92px 115px 0 -60px rgba(238,188,120,.18),120px 96px 0 -60px rgba(238,188,120,.18),114px 130px 0 -60px rgba(238,188,120,.15)!important;
  pointer-events:none!important;
}

.sese-demo.sese-pilot .sese-header.sese-header::after{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  right:-64px!important;
  top:-88px!important;
  width:430px!important;
  height:305px!important;
  border:2px solid rgba(231,184,116,.36)!important;
  border-left-color:transparent!important;
  border-radius:50%!important;
  transform:rotate(-12deg)!important;
  background:radial-gradient(ellipse at 42% 68%,rgba(255,226,190,.12),transparent 36%)!important;
  pointer-events:none!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-brand-mark.sese-brand-mark{
  grid-column:1!important;
  width:180px!important;
  height:92px!important;
  margin:0!important;
  padding:7px!important;
  display:grid!important;
  place-items:center!important;
  justify-self:center!important;
  align-self:center!important;
  border-radius:17px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#fffdf7,#f8efe4)!important;
  border:1px solid rgba(236,188,111,.84)!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.07),0 12px 30px rgba(28,2,10,.30)!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-brand-mark img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:11px!important;
}

.sese-demo.sese-pilot .sese-header.sese-header>div:first-child>div:last-child{
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  text-align:center!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-kicker.sese-kicker{
  width:100%!important;
  margin:0 0 8px!important;
  color:#edc98d!important;
  -webkit-text-fill-color:#edc98d!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1!important;
  letter-spacing:.17em!important;
  text-transform:uppercase!important;
  opacity:1!important;
  text-shadow:none!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::before,
.sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::after{
  content:""!important;
  display:inline-block!important;
  width:52px!important;
  height:1px!important;
  margin:0 16px 4px!important;
  vertical-align:middle!important;
  background:linear-gradient(90deg,transparent,rgba(237,201,141,.78))!important;
}
.sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::after{
  background:linear-gradient(90deg,rgba(237,201,141,.78),transparent)!important;
}

.sese-demo.sese-pilot .sese-header.sese-header h1{
  margin:0!important;
  max-width:100%!important;
  color:#fff8e9!important;
  -webkit-text-fill-color:#fff8e9!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(30px,2.55vw,43px)!important;
  font-weight:700!important;
  line-height:1.02!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  opacity:1!important;
  text-shadow:0 2px 10px rgba(31,0,9,.30)!important;
}

.sese-demo.sese-pilot .sese-header.sese-header>div:first-child>div:last-child>span{
  display:block!important;
  margin-top:10px!important;
  color:#ead7d2!important;
  -webkit-text-fill-color:#ead7d2!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.2!important;
  letter-spacing:.01em!important;
  opacity:1!important;
  text-shadow:none!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-language.sese-language{
  grid-column:3!important;
  justify-self:end!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:5px!important;
  margin:0!important;
  border-radius:999px!important;
  border:1px solid rgba(255,236,211,.42)!important;
  background:rgba(28,3,11,.28)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 7px 18px rgba(30,1,10,.18)!important;
  backdrop-filter:blur(10px)!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-language button{
  min-width:44px!important;
  min-height:38px!important;
  padding:8px 12px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#f5e7e1!important;
  -webkit-text-fill-color:#f5e7e1!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1!important;
  opacity:1!important;
  text-shadow:none!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-language button.active{
  background:#fffaf4!important;
  color:#58101f!important;
  -webkit-text-fill-color:#58101f!important;
  font-weight:850!important;
  box-shadow:0 3px 10px rgba(28,2,9,.18)!important;
}

.sese-demo.sese-pilot .sese-header.sese-header .sese-language button:hover:not(.active){
  background:rgba(255,255,255,.08)!important;
}

/* Station pages keep the same shell, with their exit action in the right column. */
.sese-demo.sese-pilot .sese-header.sese-header .sese-station-exit{
  grid-column:3!important;
  justify-self:end!important;
  max-width:180px!important;
  border:1px solid rgba(255,236,211,.42)!important;
  border-radius:999px!important;
  background:rgba(28,3,11,.28)!important;
  color:#fff7ef!important;
  padding:10px 14px!important;
  font-weight:750!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 7px 18px rgba(30,1,10,.18)!important;
}

/* ---------- Content spacing: no card should climb into the header ---------- */
.sese-demo.sese-pilot .sese-content.sese-content,
.sese-demo.sese-pilot .sese-station-content.sese-station-content{
  margin-top:24px!important;
}

/* ---------- Finance home: restore the validated light hierarchy ---------- */
.sese-demo.sese-pilot .sese-kpis.sese-kpis{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}

.sese-demo.sese-pilot .sese-kpis .sese-kpi{
  min-width:0!important;
  position:relative!important;
}

.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1){
  order:1!important;
  grid-column:1/-1!important;
  min-height:112px!important;
}
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4){
  order:2!important;
  grid-column:1/-1!important;
  min-height:112px!important;
}
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(2){order:3!important;grid-column:1!important}
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(3){order:4!important;grid-column:2!important}

/* Sales and Expenses are deliberately identical light cards. */
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1),
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4){
  background:#fffaf6!important;
  border:1px solid #dfd2c9!important;
  color:#291f20!important;
  box-shadow:0 5px 18px rgba(58,38,31,.055)!important;
}

.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1) span,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1) strong,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1) svg,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4) span,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4) strong,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4) svg{
  color:#291f20!important;
  -webkit-text-fill-color:#291f20!important;
  opacity:1!important;
  text-shadow:none!important;
}

.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1)::after,
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4)::after{
  position:absolute!important;
  right:14px!important;
  top:12px!important;
  width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#7a3d4e!important;
  background:#f2e8e1!important;
  border:1px solid rgba(122,61,78,.10)!important;
  box-shadow:0 2px 8px rgba(70,25,33,.07)!important;
  pointer-events:none!important;
}
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1)::after{content:"+"!important}
.sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4)::after{content:"−"!important}

/* ---------- Responsive: same identity, only scaled ---------- */
@media(max-width:900px){
  .sese-demo.sese-pilot .sese-header.sese-header{
    min-height:112px!important;
    padding:14px 16px!important;
    grid-template-columns:118px minmax(0,1fr) 132px!important;
    gap:14px!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-brand-mark.sese-brand-mark{
    width:108px!important;
    height:64px!important;
    padding:5px!important;
    border-radius:14px!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker.sese-kicker{
    margin-bottom:5px!important;
    font-size:9px!important;
    letter-spacing:.12em!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::before,
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::after{
    width:24px!important;
    margin:0 7px 3px!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header h1{font-size:clamp(20px,3.4vw,28px)!important}
  .sese-demo.sese-pilot .sese-header.sese-header>div:first-child>div:last-child>span{margin-top:6px!important;font-size:10px!important}
  .sese-demo.sese-pilot .sese-header.sese-header .sese-language button{min-width:34px!important;min-height:34px!important;padding:7px 8px!important;font-size:10px!important}
}

@media(max-width:620px){
  .sese-demo.sese-pilot .sese-header.sese-header{
    width:100%!important;
    min-height:92px!important;
    padding:10px!important;
    grid-template-columns:72px minmax(0,1fr) auto!important;
    gap:8px!important;
    border-left:0!important;
    border-right:0!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-brand-mark.sese-brand-mark{
    width:68px!important;
    height:46px!important;
    padding:3px!important;
    border-radius:11px!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header>div:first-child>div:last-child{
    text-align:left!important;
    align-items:flex-start!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker.sese-kicker{
    margin-bottom:4px!important;
    font-size:7px!important;
    letter-spacing:.08em!important;
    white-space:nowrap!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::before,
  .sese-demo.sese-pilot .sese-header.sese-header .sese-kicker::after{display:none!important}
  .sese-demo.sese-pilot .sese-header.sese-header h1{
    font-size:16px!important;
    line-height:1.05!important;
    letter-spacing:-.015em!important;
    white-space:nowrap!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header>div:first-child>div:last-child>span{
    margin-top:4px!important;
    font-size:8px!important;
    white-space:nowrap!important;
  }
  .sese-demo.sese-pilot .sese-header.sese-header .sese-language.sese-language{gap:1px!important;padding:3px!important}
  .sese-demo.sese-pilot .sese-header.sese-header .sese-language button{min-width:28px!important;min-height:29px!important;padding:5px!important;font-size:8px!important}
  .sese-demo.sese-pilot .sese-header.sese-header .sese-station-exit{max-width:96px!important;padding:7px 9px!important;font-size:9px!important;line-height:1.05!important}
  .sese-demo.sese-pilot .sese-content.sese-content,
  .sese-demo.sese-pilot .sese-station-content.sese-station-content{margin-top:16px!important}
  .sese-demo.sese-pilot .sese-kpis.sese-kpis{gap:8px!important}
  .sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(1),
  .sese-demo.sese-pilot .sese-kpis .sese-kpi:nth-child(4){min-height:82px!important}
}
