/* Attendance section (from attendance.bfanh.org's stylesheet: only what Extended Day's ed.css doesn't already have). */
.toolbar input[type=date] { width: auto; }
.teach { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1.5rem 7rem; }
.teach-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.teach-head h1 { margin: 0; }
.teach-clock { margin-left: auto; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.class-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; }
.class-tab { flex: 0 0 auto; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: .6rem .9rem;
             font: inherit; cursor: pointer; min-width: 190px; }
.class-tab b { display: block; font-size: .95rem; white-space: nowrap; }
.class-tab small { display: block; color: var(--muted); font-size: .8rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-tab.on { border-color: var(--primary); background: var(--primary-l); }
.class-tab .tag { float: right; margin-left: .5rem; }
.late-alert { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--red); color: #fff; border-radius: 14px;
              padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; animation: flash 1.2s ease-in-out infinite; }
.late-alert .btn { margin-left: auto; background: #fff; color: var(--red); }
.sheet-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .75rem; }
.sheet-meta h2 { font-size: 1.4rem; margin: 0; }
.sheet-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.stu { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green);
       border-radius: 12px; padding: .6rem .7rem .6rem .9rem; }
.stu-name { flex: 1; min-width: 0; font-weight: 650; font-size: 1.05rem; line-height: 1.2; }
.stu-name small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.stu.st-absent { border-left-color: var(--red); background: #fff7f7; }
.stu.st-tardy { border-left-color: var(--amber); background: #fffbeb; }
.marks { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; flex-shrink: 0; }
.marks button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; min-width: 64px; min-height: 44px;
                border-radius: 8px; cursor: pointer; color: var(--muted); padding: 0 .5rem; }
.marks button.on.m-present { background: var(--green); color: #fff; }
.marks button.on.m-absent { background: var(--red); color: #fff; }
.marks button.on.m-tardy { background: var(--amber); color: #fff; }
.sheet-foot { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 20;
              box-shadow: 0 -6px 20px rgba(15,23,42,.06); }
.sheet-foot-inner { max-width: 1400px; margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sheet-foot .counts { display: flex; gap: 1rem; font-weight: 650; }
.sheet-foot .btn { margin-left: auto; min-width: 240px; }
.sound-gate { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.75); display: grid; place-items: center; padding: 1rem; }
.sound-gate .panel { max-width: 460px; text-align: center; padding: 2rem; }
.no-class { text-align: center; padding: 3rem 1rem; }
@media (max-width: 600px) {
  .teach { padding: 1rem .75rem 8rem; }
  .sheet-grid { grid-template-columns: 1fr; }
  .marks button { min-width: 0; padding: 0 .55rem; font-size: .85rem; }
  .sheet-foot-inner { padding: .6rem .75rem; }
  .sheet-foot .btn { min-width: 0; width: 100%; }
  .teach-clock { font-size: 1.2rem; }
}
.state-submitted { color: var(--green); }
.state-late, .state-missed { color: var(--red); font-weight: 700; }
tr.row-missing td { background: #fff7f7; }
.import-text { width: 100%; min-height: 220px; font-family: ui-monospace, monospace; font-size: .85rem; }
.period-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
