/* STI Student Management Suite v2.4.333 — Student Attendance mobile-only UI.
 * A presentation-only layer: attendance rules, forms, and dates stay intact.
 * Desktop (>700px) intentionally has no layout changes. */
.mye-a333-appbar,.mye-a333-bottom {display:none}
@media(max-width:700px){
  body:has(.mye-a333-attendance-page) :is(#masthead,.site-header,.ast-mobile-header-wrap,.elementor-location-header,.entry-header,.page-header,#colophon,.site-footer,.elementor-location-footer){display:none!important}
  body:has(.mye-a333-attendance-page) :is(.site-content,.content-area,.site-main,.ast-container,.entry-content,.elementor-widget-shortcode,.elementor-shortcode){width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
  body:has(.mye-a333-attendance-page){background:#f3f6fb!important;overflow-x:hidden!important}
  body:has(.mye-a333-attendance-page).mye-a333-drawer-open{overflow:hidden!important}
  body .mye-att-page.mye-a333-attendance-page{
    display:block!important;max-width:none!important;width:100%!important;min-width:0!important;
    margin:0!important;padding:0 12px calc(124px + env(safe-area-inset-bottom,0px))!important;
    min-height:100dvh!important;overflow:visible!important;background:#f3f6fb!important;
    color:#193453!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  }
  body .mye-a333-attendance-page *,body .mye-a333-attendance-page *:before,body .mye-a333-attendance-page *:after{box-sizing:border-box}

  /* Shared topbar (same language as Dashboard/Courses/Fees). */
  body .mye-a333-attendance-page .mye-a333-appbar{
    display:grid!important;position:sticky!important;top:0!important;z-index:150!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;
    align-items:center!important;margin:0 -12px 12px!important;padding:10px 14px!important;
    min-height:64px!important;background:linear-gradient(110deg,#10315e,#194781)!important;
    box-shadow:0 5px 16px rgba(11,39,81,.14)!important;
  }
  body .mye-a333-attendance-page :is(.mye-a333-menu,.mye-a333-bell,.mye-a333-profile){
    display:grid!important;place-items:center!important;flex:none!important;
    width:38px!important;height:38px!important;min-width:38px!important;
    border:1px solid rgba(255,255,255,.22)!important;border-radius:11px!important;
    margin:0!important;padding:0!important;background:rgba(255,255,255,.11)!important;
    color:#fff!important;cursor:pointer!important;box-shadow:none!important;text-decoration:none!important;
  }
  body .mye-a333-attendance-page :is(.mye-a333-menu,.mye-a333-bell) svg{width:19px!important;height:19px!important;display:block!important;stroke:currentColor!important}
  body .mye-a333-attendance-page .mye-a333-brand{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
  body .mye-a333-attendance-page .mye-a333-logo{display:grid!important;place-items:center!important;flex:0 0 37px!important;width:37px!important;height:37px!important;border-radius:10px!important;background:#2f75ed!important;color:#fff!important;font-size:15px!important;font-weight:900!important}
  body .mye-a333-attendance-page .mye-a333-brand-text{min-width:0!important;display:block!important}
  body .mye-a333-attendance-page .mye-a333-brand-text strong{display:block!important;color:#fff!important;font-size:14px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body .mye-a333-attendance-page .mye-a333-brand-text small{display:block!important;color:#b7d0f0!important;font-size:8.5px!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body .mye-a333-attendance-page .mye-a333-top-actions{display:flex!important;align-items:center!important;gap:7px!important}
  body .mye-a333-attendance-page .mye-a333-bell{position:relative!important}
  body .mye-a333-attendance-page .mye-a333-bell em{position:absolute!important;right:-4px!important;top:-5px!important;min-width:17px!important;height:17px!important;display:grid!important;place-items:center!important;padding:0 3px!important;background:#e74b5c!important;border-radius:20px!important;color:#fff!important;font-size:9px!important;font-style:normal!important}
  body .mye-a333-attendance-page .mye-a333-profile{padding:2px!important;border-radius:50%!important;overflow:hidden!important}
  body .mye-a333-attendance-page .mye-a333-profile img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}

  /* Keep one drawer: reuse shared student navigation generated by v304. */
  body:has(.mye-a333-attendance-page) .mye-courses-hn-trigger{display:none!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-drawer{
    left:0!important;right:auto!important;top:0!important;bottom:0!important;
    height:100dvh!important;min-height:0!important;width:min(340px,calc(100vw - 42px))!important;
    padding:15px 13px calc(18px + env(safe-area-inset-bottom,0px))!important;
    border-radius:0 20px 20px 0!important;background:#fff!important;color:#172b4b!important;
    box-shadow:16px 0 48px rgba(9,28,55,.24)!important;
  }
  body:has(.mye-a333-attendance-page) .mye-courses-hn-brand{padding:1px 3px 15px!important;border-bottom:1px solid #e5ecf5!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-brand strong{font-size:16px!important;color:#152c51!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-brand small{font-size:10px!important;color:#8190a7!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-close{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:11px!important;background:#f0f5fc!important;color:#4a6586!important;font-size:27px!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-links{gap:3px!important;padding-top:12px!important}
  body:has(.mye-a333-attendance-page) :is(.mye-courses-hn-links,.mye-courses-hn-footer) a{min-height:47px!important;gap:11px!important;padding:7px 9px!important;border-radius:11px!important;background:#fff!important;color:#2c486b!important;font-size:12px!important}
  body:has(.mye-a333-attendance-page) :is(.mye-courses-hn-links,.mye-courses-hn-footer) a>span{width:31px!important;height:31px!important;flex:0 0 31px!important;border:0!important;border-radius:9px!important;background:#eef4fc!important;color:#376bb1!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-links a.is-current,body:has(.mye-a333-attendance-page) .mye-courses-hn-links a:hover{background:#eaf2ff!important;color:#1c5bc0!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-links a.is-current>span{background:#2568d8!important;color:#fff!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-footer{padding-top:12px!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-footer a{color:#ad3447!important}
  body:has(.mye-a333-attendance-page) .mye-courses-hn-backdrop{background:rgba(9,26,49,.56)!important}

  /* More compact, readable attendance welcome/period card. */
  body .mye-a333-attendance-page .mye-att-hero{
    position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;gap:9px!important;overflow:hidden!important;
    margin:0 0 12px!important;padding:15px!important;border-radius:17px!important;
    border:1px solid #dce9fb!important;background:linear-gradient(120deg,#fff,#edf5ff)!important;
    box-shadow:0 5px 16px rgba(24,63,117,.045)!important;color:#173657!important;
  }
  body .mye-a333-attendance-page .mye-att-hero:after{right:-40px!important;top:-100px!important;border-color:rgba(41,104,207,.06)!important}
  body .mye-a333-attendance-page .mye-att-hero-main{display:flex!important;align-items:flex-start!important;gap:11px!important;min-width:0!important}
  body .mye-a333-attendance-page .mye-att-hero-main>div:last-child{min-width:0!important}
  body .mye-a333-attendance-page .mye-att-hero-icon{display:grid!important;place-items:center!important;width:41px!important;height:41px!important;flex:0 0 41px!important;border-radius:12px!important;background:#e7f0ff!important;color:#2765c9!important}
  body .mye-a333-attendance-page .mye-att-hero-icon svg{display:block!important;width:22px!important;height:22px!important}
  body .mye-a333-attendance-page .mye-att-eyebrow{font-size:9px!important;line-height:1.4!important;letter-spacing:.085em!important;color:#3670cb!important;margin:0 0 4px!important}
  body .mye-a333-attendance-page .mye-att-hero h2{font-size:22px!important;line-height:1.15!important;letter-spacing:-.035em!important;font-weight:900!important;color:#152e54!important;margin:0 0 4px!important}
  body .mye-a333-attendance-page .mye-att-hero p:not(.mye-att-eyebrow){font-size:11px!important;line-height:1.45!important;color:#6d819e!important;margin:0!important}
  body .mye-a333-attendance-page .mye-att-hero-month{position:relative!important;align-self:flex-start!important;margin:0 0 0 52px!important;padding:7px 10px!important;border-radius:9px!important;border:1px solid #d8e6fc!important;background:#f0f6ff!important;color:#3265af!important;font-size:11px!important;line-height:1.3!important;box-shadow:none!important}

  /* Equal-sized workflow tabs, reliably separated active state. */
  body .mye-a333-attendance-page .mye-att-workflow-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:5px!important;margin:0 0 12px!important;border:1px solid #e0eaf6!important;border-radius:14px!important;background:#edf3fb!important;box-shadow:none!important}
  body .mye-a333-attendance-page button.mye-att-workflow-tab{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:7px!important;min-width:0!important;min-height:56px!important;padding:9px!important;border-radius:11px!important;box-shadow:none!important}
  body .mye-a333-attendance-page button.mye-att-workflow-tab[aria-selected="true"]{background:#fff!important;border-color:#c9dcf9!important;box-shadow:0 3px 11px rgba(20,78,155,.08)!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-icon{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:9px!important;font-size:15px!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-icon svg{display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-copy{display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-copy strong{font-size:12px!important;line-height:1.25!important;font-weight:800!important;white-space:normal!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-copy small{display:none!important}
  body .mye-a333-attendance-page .mye-att-workflow-panel{min-width:0!important}

  /* Keep all original attendance wording; improve action readability. */
  body .mye-a333-attendance-page .mye-attop-reminder{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 8px!important;align-items:center!important;width:100%!important;margin:0 0 11px!important;padding:12px!important;border-radius:13px!important;background:#fff7e8!important;color:#875a1b!important;font-size:11px!important;line-height:1.45!important}
  body .mye-a333-attendance-page .mye-attop-reminder>strong{display:block!important;min-width:0!important;font-size:11.5px!important;color:#8f5d16!important}
  body .mye-a333-attendance-page .mye-attop-reminder>span{display:block!important;grid-column:1/-1!important;grid-row:2!important;color:#8f724d!important;font-size:11px!important;line-height:1.45!important}
  body .mye-a333-attendance-page .mye-attop-reminder>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;margin:0!important;padding:7px 10px!important;grid-column:2!important;grid-row:1!important;border:1px solid #f1d5a7!important;border-radius:9px!important;background:#fff!important;color:#965a12!important;font-size:10px!important;font-weight:850!important;text-decoration:none!important;white-space:nowrap!important}

  body .mye-a333-attendance-page .mye-att-combined{min-width:0!important;width:100%!important;margin:0 0 12px!important;padding:13px!important;border:1px solid #e1eaf7!important;border-radius:16px!important;box-shadow:0 4px 15px rgba(28,72,124,.04)!important;background:#fff!important}
  body .mye-a333-attendance-page .mye-att-self-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;margin:0 0 10px!important}
  body .mye-a333-attendance-page .mye-att-self-title{display:flex!important;align-items:flex-start!important;gap:9px!important;min-width:0!important}
  body .mye-a333-attendance-page .mye-att-self-title>div{min-width:0!important;flex:1!important}
  body .mye-a333-attendance-page .mye-att-self-icon{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:10px!important}
  body .mye-a333-attendance-page .mye-att-self-title h3{font-size:15px!important;font-weight:850!important;line-height:1.25!important;color:#193957!important;margin:0 0 4px!important}
  body .mye-a333-attendance-page .mye-att-self-title p{font-size:11px!important;line-height:1.5!important;color:#6c8099!important;margin:0!important}
  body .mye-a333-attendance-page .mye-att-self-date{align-self:flex-start!important;width:auto!important;max-width:100%!important;min-height:32px!important;display:inline-flex!important;align-items:center!important;padding:5px 10px!important;font-size:11px!important;border-radius:9px!important}
  body .mye-a333-attendance-page .mye-att-self-state{max-width:100%!important;font-size:11.5px!important;line-height:1.55!important;border-radius:11px!important}
  body .mye-a333-attendance-page .mye-att-topic-bridge{margin:12px 0!important;padding:12px!important;border-radius:13px!important;box-shadow:none!important;min-width:0!important;max-width:100%!important}
  body .mye-a333-attendance-page .mye-att-topic-head{gap:8px!important;margin-bottom:10px!important}
  body .mye-a333-attendance-page .mye-att-topic-head h3{font-size:14px!important;line-height:1.25!important}
  body .mye-a333-attendance-page .mye-att-topic-head p{font-size:11px!important;line-height:1.5!important}
  body .mye-a333-attendance-page .mye-att-extra{max-width:100%!important;min-width:0!important}
  body .mye-a333-attendance-page :is(.mye-att-course-picker,.mye-att-topic-card,.mye-att-completed-row,.mye-att-mark-more){min-width:0!important;max-width:100%!important}
  body .mye-a333-attendance-page :is(input,select,textarea){max-width:100%!important}
  body .mye-a333-attendance-page .mye-att-panel{min-width:0!important;width:100%!important;padding:14px!important;border-radius:15px!important}
  body .mye-a333-attendance-page .mye-att-panel h3{font-size:16px!important}
  body .mye-a333-attendance-page .mye-att-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important}
  body .mye-a333-attendance-page .mye-att-stat{min-width:0!important;min-height:105px!important;padding:12px!important;border-radius:13px!important}
  body .mye-a333-attendance-page .mye-att-stat-value strong{font-size:25px!important}
  body .mye-a333-attendance-page .mye-att-day{min-height:42px!important}
  body .mye-a333-attendance-page .mye-att-history-wrap{min-width:0!important;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body .mye-a333-attendance-page .mye-att-content{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}

  /* Fixed bottom navigation and bottom-safe scroll spacing. */
  body .mye-a333-attendance-page .mye-a333-bottom{display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:500!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;width:100%!important;padding:7px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;border:1px solid #e2e8f1!important;border-bottom:0!important;border-radius:18px 18px 0 0!important;background:rgba(255,255,255,.985)!important;box-shadow:0 -5px 24px rgba(22,47,86,.09)!important}
  body .mye-a333-attendance-page .mye-a333-bottom a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:51px!important;border-radius:12px!important;color:#6b7d97!important;background:transparent!important;text-decoration:none!important;font-size:10px!important;font-weight:750!important}
  body .mye-a333-attendance-page .mye-a333-bottom svg{display:block!important;width:21px!important;height:21px!important;flex:0 0 21px!important;stroke:currentColor!important}
  body .mye-a333-attendance-page .mye-a333-bottom span{line-height:1.2!important}
  body .mye-a333-attendance-page a:focus-visible,body .mye-a333-attendance-page button:focus-visible{outline:3px solid #90b7ff!important;outline-offset:2px!important}
}
@media(max-width:365px){
  body .mye-a333-attendance-page{padding-left:9px!important;padding-right:9px!important}
  body .mye-a333-attendance-page .mye-a333-appbar{margin-left:-9px!important;margin-right:-9px!important;grid-template-columns:35px minmax(0,1fr) auto!important;gap:6px!important;padding:9px 10px!important}
  body .mye-a333-attendance-page :is(.mye-a333-menu,.mye-a333-bell,.mye-a333-profile){width:35px!important;height:35px!important;min-width:35px!important}
  body .mye-a333-attendance-page .mye-a333-logo{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:13px!important}
  body .mye-a333-attendance-page .mye-a333-top-actions{gap:5px!important}
  body .mye-a333-attendance-page .mye-a333-brand-text strong{font-size:13px!important}
  body .mye-a333-attendance-page .mye-a333-brand-text small{font-size:8px!important}
  body .mye-a333-attendance-page .mye-att-hero{padding:13px!important}
  body .mye-a333-attendance-page .mye-att-hero h2{font-size:20px!important}
  body .mye-a333-attendance-page button.mye-att-workflow-tab{padding:8px 6px!important;gap:6px!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-copy strong{font-size:11px!important}
  body .mye-a333-attendance-page .mye-att-workflow-tab-icon{width:27px!important;height:27px!important;flex-basis:27px!important}
  body .mye-a333-attendance-page .mye-attop-reminder{grid-template-columns:minmax(0,1fr)!important}
  body .mye-a333-attendance-page .mye-attop-reminder>a{grid-column:1!important;grid-row:3!important;justify-self:start!important}
}
@media(prefers-reduced-motion:reduce){
  body:has(.mye-a333-attendance-page) .mye-courses-hn-drawer{transition:none!important}
}
