/* STIP shared monthly planning table — single visual source.
   Scope: monthly planning table only. No data/business logic lives here. */

.stip-month-calendar[data-stip-month-table="1"]{
  --stip-card-radius:32px;
  --stip-card-accent:var(--stip-accent);
  padding:0 12px 11px!important;
}
.stip-month-calendar[data-stip-month-table="1"]:not(.hc-date-jump-panel){
  overflow:hidden!important;
  isolation:isolate!important;
}
.stip-month-calendar[data-stip-month-table="1"]>.stip-month-weekdays,
.stip-month-calendar[data-stip-month-table="1"]>.hc-date-jump-weekdays{
  display:none!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav{
  display:grid!important;
  min-height:82px!important;
  padding:14px 15px 10px!important;
  grid-template-columns:54px minmax(0,1fr) 54px!important;
  gap:12px!important;
  align-items:center!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>div{
  min-width:0!important;
  text-align:center!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>div>span{
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:7px!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>button{
  width:52px!important;
  height:52px!important;
  border:1px solid rgba(18,69,83,.11)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff,#eef5f7)!important;
  color:#174b5d!important;
  box-shadow:0 9px 22px rgba(18,61,75,.11),inset 0 1px 0 #fff!important;
  font-size:1.5rem!important;
  transition:transform .15s ease,box-shadow .15s ease!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>button:active{
  transform:scale(.94)!important;
  box-shadow:0 4px 10px rgba(18,61,75,.10)!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>button:disabled{
  opacity:.28!important;
  box-shadow:none!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>strong,
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>div>strong,
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>div>span>strong{
  color:#103f53!important;
  font-size:clamp(1.28rem,5vw,1.58rem)!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
  text-shadow:0 1px 0 #fff!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-nav small{
  color:#829099!important;
  font-size:.62rem!important;
  font-weight:850!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  column-gap:5px!important;
  row-gap:5px!important;
}
.stip-month-table-week-separator{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:20px!important;
  margin:11px 2px 1px!important;
  padding:0 3px!important;
  pointer-events:none!important;
}
.stip-month-table-week-separator:first-child{margin-top:2px!important}
.stip-month-table-week-separator::before,
.stip-month-table-week-separator::after{
  content:""!important;
  height:1px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,transparent,rgba(18,112,133,.22))!important;
}
.stip-month-table-week-separator::after{
  background:linear-gradient(90deg,rgba(18,112,133,.22),transparent)!important;
}
.stip-month-table-week-separator>span{
  padding:3px 9px!important;
  border:1px solid rgba(17,103,123,.11)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(242,248,249,.94))!important;
  color:#6d838b!important;
  box-shadow:0 2px 7px rgba(18,65,78,.04),inset 0 1px 0 #fff!important;
  font-size:.57rem!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.075em!important;
}
.stip-month-table-weekdays{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
  margin:2px 0 3px!important;
  color:#71868e!important;
  font-size:.59rem!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  pointer-events:none!important;
}
.stip-month-table-weekdays>span{
  min-width:0!important;
  padding:3px 0!important;
  text-align:center!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day{
  position:relative!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding-top:7px!important;
  border:1px solid rgba(18,67,81,.045)!important;
  border-radius:17px!important;
  background:linear-gradient(155deg,#f7fafb 0%,#edf3f5 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 3px 9px rgba(18,61,73,.025)!important;
  grid-template-rows:auto minmax(27px,auto) auto!important;
  overflow:hidden!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day:not(.has-event){
  grid-template-rows:auto minmax(27px,auto)!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day::after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(19,105,124,.10),transparent);
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day-number{
  color:#123f52!important;
  font-size:1.12rem!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day.is-weekend{
  background:linear-gradient(155deg,#fafcfd,#f0f5f6)!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day.is-weekend .stip-month-day-number{
  color:#b92f41!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-primary{
  min-width:0!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-dot{
  width:19px!important;
  height:19px!important;
  border:2px solid rgba(255,255,255,.95)!important;
  box-shadow:0 4px 10px rgba(17,59,72,.14),inset 0 0 0 1px rgba(0,0,0,.045)!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-events{
  font-size:1.38rem!important;
  line-height:1!important;
  filter:drop-shadow(0 2px 2px rgba(16,54,65,.07))!important;
}

.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge{
  --stip-month-shift-bg:var(--stip-accent);
  --stip-month-shift-ink:#fff;
  min-width:32px!important;
  height:28px!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:0 7px!important;
  border:1px solid color-mix(in srgb,var(--stip-month-shift-bg) 68%,#fff)!important;
  border-radius:10px!important;
  background:var(--stip-month-shift-bg)!important;
  color:var(--stip-month-shift-ink)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 4px 9px color-mix(in srgb,var(--stip-month-shift-bg) 18%,transparent)!important;
  font-size:.72rem!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge.code-m{--stip-month-shift-bg:var(--stip-shift-m)}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge.code-j{--stip-month-shift-bg:var(--stip-shift-j)}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge.code-j4{--stip-month-shift-bg:var(--stip-shift-j4)}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge.code-s{
  --stip-month-shift-bg:var(--stip-shift-s);
  --stip-month-shift-ink:var(--stip-shift-s-ink);
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-shift-badge.code-n{--stip-month-shift-bg:var(--stip-shift-n)}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-events:empty{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day.is-today:not(.is-selected){
  border-color:rgba(12,147,169,.38)!important;
  background:linear-gradient(150deg,#f8feff,#eaf7f9)!important;
  box-shadow:0 0 0 3px rgba(12,147,169,.065),0 8px 18px rgba(12,100,118,.09),inset 0 1px 0 #fff!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day.is-selected{
  z-index:2!important;
  border:2px solid #0a8fa8!important;
  background:linear-gradient(145deg,#fbffff 0%,#e5f6f8 100%)!important;
  box-shadow:0 0 0 4px rgba(10,143,168,.10),0 14px 29px rgba(10,107,127,.16),inset 0 1px 0 #fff!important;
}
.stip-month-calendar[data-stip-month-table="1"] .stip-month-day.is-selected::before{
  content:""!important;
  position:absolute!important;
  left:14px!important;
  right:14px!important;
  bottom:5px!important;
  height:3px!important;
  border-radius:99px!important;
  background:linear-gradient(90deg,#19b7c8,#087f9b)!important;
  box-shadow:0 2px 7px rgba(8,127,155,.24)!important;
}
/* Empty placeholders are not visual content. The first real date is aligned by JS. */
.stip-month-calendar[data-stip-month-table="1"] .ph-empty,
.stip-month-calendar[data-stip-month-table="1"] .metiers-month-empty{
  display:none!important;
}
@media(max-width:520px){
  .stip-month-calendar[data-stip-month-table="1"]{padding-inline:10px!important}
  .stip-month-calendar[data-stip-month-table="1"]{--stip-card-radius:28px}
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-nav{
    min-height:76px!important;
    grid-template-columns:50px minmax(0,1fr) 50px!important;
    padding:12px 12px 9px!important;
  }
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-nav>button{width:48px!important;height:48px!important}
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-grid,
  .stip-month-table-weekdays{column-gap:4px!important}
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-day{border-radius:16px!important;padding-top:6px!important}
  .stip-month-table-week-separator{margin-top:9px!important}
}
@media(min-width:760px){
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-day{padding-top:9px!important}
  .stip-month-calendar[data-stip-month-table="1"] .stip-month-day-number{font-size:1.2rem!important}
}
