/* STI v2.4.336 — mobile View Attendance upper-section alignment.
 * Scoped to Attendance page only, <=700px, and primarily its View tab.
 * No changes to dates, submissions, correction data or desktop rules. */
@media (max-width:700px) {
  /* Balanced gaps between month picker, correction request, notice and cards. */
  body .mye-a333-attendance-page #mye-att-workflow-panel-view{
    min-width:0!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form.mye-att-toolbar{
    width:100%!important;min-width:0!important;min-height:0!important;
    display:block!important;margin:0 0 11px!important;padding:12px 13px!important;
    border-radius:15px!important;background:#fff!important;
    border:1px solid #dee9f8!important;box-shadow:0 4px 15px rgba(24,67,127,.045)!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-control{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;gap:10px!important;width:100%!important;
    min-width:0!important;margin:0!important;padding:0!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form label.mye-att-month-label{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:flex-start!important;gap:10px!important;min-width:0!important;
    width:100%!important;margin:0!important;padding:0!important;
    font-size:12px!important;line-height:1.3!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-label-icon{
    display:grid!important;place-items:center!important;flex:0 0 33px!important;
    width:33px!important;height:33px!important;min-width:33px!important;
    border-radius:10px!important;background:#eaf2ff!important;color:#256be0!important;
    box-shadow:none!important;font-size:16px!important;line-height:1!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-label>span:last-child{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;min-width:0!important;gap:2px!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-label strong{
    display:block!important;font-size:13px!important;line-height:1.25!important;
    font-weight:850!important;color:#1a3a60!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-label small{
    display:block!important;margin:0!important;font-size:10.5px!important;
    line-height:1.35!important;font-weight:500!important;color:#8292aa!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-picker{
    position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form button.mye-att-month-trigger{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    width:100%!important;min-width:0!important;min-height:45px!important;
    gap:10px!important;padding:0 12px!important;margin:0!important;
    border:1px solid #d4e3f8!important;border-radius:11px!important;
    background:#f8fbff!important;color:#24507f!important;
    box-shadow:none!important;font-size:12px!important;font-weight:800!important;
    transform:none!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-trigger-icon{
    display:grid!important;place-items:center!important;width:24px!important;height:24px!important;
    flex:0 0 24px!important;border-radius:7px!important;font-size:13px!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form #mye-att-month-trigger-label{
    display:block!important;min-width:0!important;flex:1 1 auto!important;text-align:left!important;
    font-size:12px!important;line-height:1.35!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-popover{
    box-sizing:border-box!important;left:0!important;right:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    z-index:60!important;
  }
  body .mye-a333-attendance-page #mye-attendance-month-form .mye-att-month-option{
    min-height:40px!important;
  }

  /* Correction request remains a functional details/form, but reads like a row. */
  body .mye-a333-attendance-page #mye-attop-request.mye-attop-card{
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0 0 11px!important;padding:12px 13px!important;
    border:1px solid #e0eaf6!important;border-radius:13px!important;
    box-shadow:0 3px 12px rgba(19,57,108,.035)!important;
    background:#fff!important;
  }
  body .mye-a333-attendance-page #mye-attop-request details{margin:0!important;min-width:0!important}
  body .mye-a333-attendance-page #mye-attop-request summary{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;gap:4px!important;min-height:47px!important;
    width:100%!important;min-width:0!important;padding:0!important;margin:0!important;
    background:transparent!important;border:0!important;border-radius:0!important;
    text-align:left!important;list-style:none!important;cursor:pointer!important;
  }
  body .mye-a333-attendance-page #mye-attop-request summary strong{
    display:block!important;color:#243f65!important;font-weight:800!important;
    font-size:12.2px!important;line-height:1.35!important;
  }
  body .mye-a333-attendance-page #mye-attop-request summary span{
    display:block!important;color:#71859f!important;font-weight:500!important;
    font-size:10.5px!important;line-height:1.45!important;
  }
  body .mye-a333-attendance-page #mye-attop-request details[open] summary{
    padding-bottom:10px!important;margin-bottom:11px!important;
    border-bottom:1px solid #e7edf6!important;
  }
  body .mye-a333-attendance-page #mye-attop-request .mye-attop-form{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;margin:12px 0!important;min-width:0!important;
  }
  body .mye-a333-attendance-page #mye-attop-request :is(input,select,textarea){
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  body .mye-a333-attendance-page #mye-attop-request .mye-attop-primary{
    min-height:43px!important;width:100%!important;
  }

  body .mye-a333-attendance-page #mye-att-workflow-panel-view>.mye-att-tracking-notice{
    margin:0 0 11px!important;padding:0 2px!important;
    color:#667d9b!important;font-size:10.5px!important;line-height:1.45!important;
  }

  /* Summary cards: aligned top labels/icons, matching row heights and values. */
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stats{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;gap:9px!important;margin:0 0 12px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stats>.mye-att-stat{
    display:flex!important;flex-direction:column!important;min-width:0!important;
    min-height:112px!important;padding:12px 11px 11px!important;border-radius:13px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-top{
    display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
    gap:6px!important;margin:0 0 6px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-labels{
    display:flex!important;flex-direction:column!important;gap:2px!important;
    flex:1 1 auto!important;min-width:0!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-labels small{
    font-size:11px!important;line-height:1.25!important;
    font-weight:800!important;letter-spacing:0!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-labels>span{
    display:block!important;margin:0!important;font-size:9.5px!important;line-height:1.25!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-icon{
    display:grid!important;place-items:center!important;flex:0 0 28px!important;
    width:28px!important;height:28px!important;border-radius:9px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-icon svg{
    width:16px!important;height:16px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-value{
    display:block!important;margin:0!important;line-height:1.1!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-value strong{
    font-size:25px!important;line-height:1.1!important;
    font-weight:850!important;font-variant-numeric:tabular-nums!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-bottom{
    margin-top:auto!important;padding-top:7px!important;min-height:12px!important;
  }
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-caption{
    font-size:9.4px!important;line-height:1.25!important;gap:5px!important;
  }
}
@media (max-width:365px) {
  body .mye-a333-attendance-page #mye-attendance-month-form.mye-att-toolbar{padding:11px!important}
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stats{gap:8px!important}
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stats>.mye-att-stat{padding:11px 9px!important}
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-labels small{font-size:10.5px!important}
  body .mye-a333-attendance-page #mye-att-workflow-panel-view .mye-att-stat-icon{width:26px!important;height:26px!important;flex-basis:26px!important}
}
