/* Skeleton loading — Gestione scuola
   Usage: add aria-busy="true" on the container and fill it with Skeletons.html('lessons') */
.pv-custom-skeleton{
  --sk-base:rgba(18,33,60,.045); /* near-transparent tint; set to #fff or transparent for pure white */
  --sk-shine:rgba(255,255,255,.9);
  --sk-border:#e6e9f0;
  --sk-card:#fff;
  --sk-radius:8px;
}

.sk{ /* every placeholder block */
  display:block;
  background:var(--sk-base);
  border-radius:6px;
  position:relative;
  overflow:hidden;
}
.sk::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,transparent 20%,var(--sk-shine) 50%,transparent 80%);
  transform:translateX(-100%);
  animation:sk-shimmer 1.4s ease-in-out infinite;
}
@keyframes sk-shimmer{to{transform:translateX(100%)}}

/* primitives */
.sk-line{height:12px;margin:8px 0}
.sk-line.sm{height:10px}
.sk-title{height:22px;width:220px;max-width:60%;margin:0 0 10px}
.sk-h1{height:34px;width:300px;max-width:70%}
.sk-btn{height:36px;width:110px;border-radius:8px;flex:none}
.sk-btn.lg{width:150px}
.sk-btn.primary{background:rgba(52,87,255,.08)}
.sk-input{height:40px;width:100%;border-radius:8px}
.sk-pill{height:20px;width:72px;border-radius:999px}
.sk-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.sk-tab{height:14px;width:80px;margin:14px 0}
.sk-avatar{width:28px;height:28px;border-radius:50%;flex:none}

/* layout helpers */
.sk-wrap{display:flex;flex-direction:column;gap:20px;width:100%}
.sk-card{background:var(--sk-card);border:1px solid var(--sk-border);border-radius:12px;padding:20px}
.sk-box{border:1px solid var(--sk-border);border-radius:10px;padding:14px}
.sk-row{display:flex;align-items:center;gap:12px}
.sk-between{display:flex;align-items:center;justify-content:space-between;gap:16px}
.sk-col{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.sk-grid{display:grid;gap:16px}
.sk-g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sk-g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sk-g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sk-g7{grid-template-columns:repeat(7,minmax(0,1fr))}
.sk-list>*+*{border-top:1px solid var(--sk-border)}
.sk-list>*{padding:14px 0}
.sk-tabs{display:flex;gap:22px;border-bottom:1px solid var(--sk-border);overflow:hidden}
.sk-stat{border:1px solid var(--sk-border);border-radius:10px;padding:14px}
.sk-stat .sk-num{height:28px;width:36px;margin:8px 0}
.sk-cal{border:1px solid var(--sk-border);border-radius:8px;overflow:hidden}
.sk-cal-row{display:grid;grid-template-columns:56px repeat(7,1fr);border-top:1px solid var(--sk-border);min-height:44px}
.sk-cal-row>div{border-left:1px solid var(--sk-border);padding:6px}
.sk-cal-row>div:first-child{border-left:0}

/* accessibility */
.sk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){
  .sk::after{animation:none;opacity:.0}
  .sk{animation:none}
  @keyframes sk-pulse{50%{opacity:.55}}
}
@media (max-width:760px){
  .sk-g4,.sk-g3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sk-g7{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sk-cal-row{grid-template-columns:48px repeat(2,1fr)}
  .sk-cal-row>div:nth-child(n+4){display:none}
}

/* Existing containers own the real header, tabs, feedback and loading lifetime. */
.pv-custom-skeleton{font-size:14px;min-width:0;margin-top:12px;overflow:hidden}
.pv-custom-skeleton *{box-sizing:border-box;min-width:0}
.portal-skeleton:has(> .pv-custom-skeleton)::after{display:none!important}
.ops-initial-skeleton > .pv-custom-skeleton{display:block!important}
:root[data-pv-motion="reduce"] .pv-custom-skeleton .sk::after{animation:none;opacity:0}
@media(max-width:760px){
 .pv-custom-skeleton .sk-between{flex-wrap:wrap}
 .pv-custom-skeleton .sk-row{flex-wrap:wrap}
 .pv-custom-skeleton .sk-col{flex-basis:100px}
 .pv-custom-skeleton .sk-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .pv-custom-skeleton .sk-grid.sk-g7{grid-template-columns:minmax(0,1fr)!important}
 .pv-custom-skeleton .sk-btn{max-width:100%}
}
@media(forced-colors:active){.pv-custom-skeleton .sk{background:CanvasText;opacity:.15}.pv-custom-skeleton .sk::after{display:none}}
.pv-custom-skeleton .sk{max-width:100%}
