/* STI Student Management Suite v2.4.335 — Attendance View mobile calendar alignment.
 * Applied only to Student Attendance page at <=700px. Desktop, statuses,
 * dates, counts and attendance processing remain unchanged.
 * Holiday labels/reasons stay in each date cell's title/aria-label;
 * tapping a date reveals that information below the grid. */
.mye-a335-day-detail{display:none!important}
@media (max-width:700px){
  /* Balanced 2 x 2 attendance metrics. */
  body .mye-a333-attendance-page .mye-att-stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    margin:0 0 12px!important;
    align-items:stretch!important;
  }
  body .mye-a333-attendance-page .mye-att-stats>.mye-att-stat{
    min-width:0!important;
    min-height:115px!important;
    padding:12px!important;
    border-radius:14px!important;
    display:flex!important;flex-direction:column!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-top{
    display:flex!important;align-items:flex-start!important;
    justify-content:space-between!important;
    gap:5px!important;margin:0 0 8px!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-labels{
    min-width:0!important;flex:1 1 auto!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-labels small{
    font-size:11px!important;line-height:1.25!important;
    font-weight:800!important;color:#324d72!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-labels>span{
    display:block!important;font-size:9.5px!important;
    line-height:1.25!important;margin-top:3px!important;
  }
  body .mye-a333-attendance-page .mye-att-stats .mye-att-stat-icon{
    flex:0 0 29px!important;width:29px!important;height:29px!important;
    border-radius:9px!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-icon svg{
    width:16px!important;height:16px!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-value{
    margin:0!important;line-height:1!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-value strong{
    font-size:26px!important;line-height:1.12!important;
    font-variant-numeric:tabular-nums!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-value .att-unit{font-size:13px!important}
  body .mye-a333-attendance-page .mye-att-stat-bottom{
    padding-top:7px!important;min-height:12px!important;
    margin-top:auto!important;
  }
  body .mye-a333-attendance-page .mye-att-stat-caption{
    font-size:9.5px!important;line-height:1.3!important;gap:5px!important;
  }

  /* Calendar heading and month badge share a predictable hierarchy. */
  body .mye-a333-attendance-page .mye-att-content{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body .mye-a333-attendance-page .mye-att-panel{
    padding:14px 12px 16px!important;
    border-radius:16px!important;
    min-width:0!important;
  }
  body .mye-a333-attendance-page .mye-att-panel-head{
    display:block!important;margin:0 0 11px!important;
  }
  body .mye-a333-attendance-page .mye-att-panel-head>div{
    display:block!important;min-width:0!important;
  }
  body .mye-a333-attendance-page .mye-att-panel-head h3{
    display:flex!important;flex-wrap:wrap!important;
    justify-content:space-between!important;align-items:center!important;
    gap:7px!important;margin:0 0 5px!important;
    font-size:16px!important;line-height:1.25!important;
    font-weight:850!important;
  }
  body .mye-a333-attendance-page .mye-att-calendar-month{
    margin:0!important;padding:5px 9px!important;
    font-size:10px!important;line-height:1.25!important;
    border-radius:999px!important;
  }
  body .mye-a333-attendance-page .mye-att-panel-sub{
    font-size:10.5px!important;line-height:1.35!important;
  }

  /* Clear two-column legend; status details are available by tapping dates. */
  body .mye-a333-attendance-page .mye-att-legend{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;margin:0 0 13px!important;
    padding:9px!important;border:1px solid #e5edf7!important;
    border-radius:11px!important;background:#f7f9fd!important;
  }
  body .mye-a333-attendance-page .mye-att-legend span{
    display:inline-flex!important;align-items:center!important;
    gap:6px!important;min-width:0!important;
    font-size:10px!important;line-height:1.25!important;
    white-space:normal!important;
  }
  body .mye-a333-attendance-page .mye-att-legend .mye-att-dot{
    flex:0 0 7px!important;width:7px!important;height:7px!important;
  }
  body .mye-a333-attendance-page .mye-att-calendar{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:4px!important;min-width:0!important;
  }
  body .mye-a333-attendance-page .mye-att-weekday{
    font-size:9px!important;line-height:1.1!important;
    font-weight:800!important;padding:4px 0 5px!important;
    text-align:center!important;
  }
  body .mye-a333-attendance-page .mye-att-day{
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    min-width:0!important;min-height:43px!important;
    height:43px!important;max-height:43px!important;
    gap:4px!important;padding:4px 2px!important;
    overflow:hidden!important;border-radius:8px!important;
    font-size:11.5px!important;line-height:1!important;
    font-variant-numeric:tabular-nums!important;
    text-align:center!important;
  }
  body .mye-a333-attendance-page .mye-att-day>span{
    display:block!important;line-height:1.15!important;
    flex:0 0 auto!important;
  }
  body .mye-a333-attendance-page .mye-att-day .mye-att-dot{
    display:block!important;flex:0 0 6px!important;
    width:6px!important;height:6px!important;margin:0!important;
  }
  /* Long holiday text no longer stretches date boxes. Its original content
     remains preserved in title and aria-label and in mobile tap details. */
  body .mye-a333-attendance-page .mye-att-day .mye-att-holiday-label,
  body .mye-a333-attendance-page .mye-att-day .mye-att-holiday-reason{
    display:none!important;
  }
  body .mye-a333-attendance-page .mye-att-day.is-empty{
    min-height:43px!important;height:43px!important;
    background:transparent!important;border-color:transparent!important;
  }
  body .mye-a333-attendance-page .mye-att-day[tabindex="0"]{
    cursor:pointer!important;touch-action:manipulation!important;
  }
  body .mye-a333-attendance-page .mye-att-day[tabindex="0"]:focus-visible{
    outline:2px solid #1d65d9!important;outline-offset:1px!important;
  }
  body .mye-a333-attendance-page .mye-att-day.mye-a335-selected{
    box-shadow:inset 0 0 0 2px #266adf!important;
  }
  body .mye-a333-attendance-page .mye-a335-day-detail{
    display:block!important;margin-top:11px!important;padding:10px 11px!important;
    border:1px solid #d6e5fa!important;border-radius:10px!important;
    background:#f1f6fe!important;color:#2b4a70!important;
    font-size:11px!important;line-height:1.45!important;
  }
  body .mye-a333-attendance-page .mye-a335-day-detail[hidden]{display:none!important}
  body .mye-a333-attendance-page .mye-att-calendar-note{
    margin:10px 0 0!important;font-size:10px!important;line-height:1.45!important;
  }
}
@media(max-width:360px){
  body .mye-a333-attendance-page .mye-att-stats>.mye-att-stat{padding:10px!important;min-height:112px!important}
  body .mye-a333-attendance-page .mye-att-stat-labels small{font-size:10px!important}
  body .mye-a333-attendance-page .mye-att-stats .mye-att-stat-icon{width:26px!important;height:26px!important;flex-basis:26px!important}
  body .mye-a333-attendance-page .mye-att-panel{padding:12px 10px 14px!important}
  body .mye-a333-attendance-page .mye-att-calendar{gap:3px!important}
  body .mye-a333-attendance-page .mye-att-day,body .mye-a333-attendance-page .mye-att-day.is-empty{height:39px!important;min-height:39px!important;max-height:39px!important}
  body .mye-a333-attendance-page .mye-att-panel-head h3{font-size:15px!important}
  body .mye-a333-attendance-page .mye-att-calendar-month{font-size:9px!important;padding:5px 8px!important}
}
