@font-face {
  font-family: RiayaUI;
  src: url("/static/ui-arabic-regular.ttf");
}
@font-face {
  font-family: RiayaUI;
  src: url("/static/ui-arabic-bold.ttf");
  font-weight: 700;
}
:root {
  --green: #174e43;
  --deep: #103e35;
  --mint: #e5efea;
  --paper: #f5f6f2;
  --ink: #233a34;
  --muted: #74827b;
  --line: #e1e6df;
  --gold: #a78a49;
  --red: #ac4343;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px RiayaUI,
    Tahoma,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  transition: 0.15s;
}
button:hover {
  border-color: #76988a;
  background: #f0f5f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: var(--deep);
}
button.danger {
  color: var(--red);
  background: #fff5f3;
  border-color: #efcfcb;
}
button.small {
  font-size: 12px;
  padding: 5px 9px;
}
a {
  color: var(--green);
}
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid #d8e0d7;
  border-radius: 8px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}
textarea {
  min-height: 95px;
  width: 100%;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  margin-bottom: 6px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 30px 19px;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px 26px;
}
.brandmark {
  font-size: 29px;
  color: #d7d6aa;
  border: 1px solid #ffffff50;
  border-radius: 13px;
  padding: 4px 11px;
}
.brand b {
  font-size: 29px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: #adc6ba;
  font-size: 11px;
}
.nav-label {
  color: #94b3a5;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 16px 12px 7px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  background: none;
  border: 0;
  color: #d1e0d7;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.nav button:hover,
.nav button.active {
  background: #ffffff15;
  color: white;
}
.nav button.active {
  box-shadow: inset -3px 0 #d8c99c;
}
.nav i {
  font-size: 17px;
  font-style: normal;
  width: 22px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff24;
  padding: 18px 10px 0;
}
.sidebar-bottom small {
  color: #aac6b7;
}
.sidebar-bottom button {
  background: none;
  border: 0;
  color: #d0ded5;
  padding: 6px 0;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.topbar .identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.topbar small {
  display: block;
  font-size: 11px;
}
.topbar select {
  font-size: 12px;
  background: #f8faf7;
  border-color: #e7ebe4;
}
.today {
  color: var(--muted);
  font-size: 12px;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 31px 36px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 700;
}
.pagehead p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  background: linear-gradient(110deg, #235f4c, #174c40);
  color: white;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 31px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.banner h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.banner p {
  font-size: 13px;
  color: #d7e5db;
  margin: 0;
}
.banner .emblem {
  font-size: 76px;
  line-height: 1;
  color: #c3d0ab;
  font-weight: 400;
  padding: 0 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 21px;
}
.card .label {
  font-size: 12px;
  color: var(--muted);
}
.card strong {
  display: block;
  font-size: 32px;
  line-height: 1.7;
  letter-spacing: -1px;
}
.card .foot {
  font-size: 10px;
  color: #83948a;
}
.card .symbol {
  float: left;
  background: #eef4ee;
  padding: 7px;
  border-radius: 8px;
  color: var(--green);
}
.card.warn .symbol {
  background: #fbf2dd;
  color: #9b7834;
}
.card.warn strong {
  color: #9b7834;
}
.columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
  gap: 12px;
}
.panelhead h2,
.panelhead h3 {
  margin: 0;
}
.panelhead small {
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 20px;
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 11px;
}
.filters label {
  flex: 1;
  min-width: 120px;
}
.filters .hdate {
  min-width: 220px;
}
.hdate {
  display: flex;
  gap: 4px;
}
.hdate select {
  min-width: 0;
  padding: 8px 5px;
  font-size: 12px;
  flex: 1;
}
.hdate select:nth-child(2) {
  flex: 1.7;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 400;
  text-align: right;
  background: #f7f9f5;
  border-bottom: 1px solid var(--line);
  padding: 11px;
  white-space: nowrap;
}
td {
  padding: 13px 11px;
  border-bottom: 1px solid #edf0ea;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td.name {
  font-weight: 700;
  min-width: 140px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #e9f2ea;
  color: #3c7250;
  font-size: 10px;
  padding: 3px 8px;
  white-space: nowrap;
}
.badge.gold {
  background: #fbf2df;
  color: #997326;
}
.badge.red {
  background: #f9e9e5;
  color: #ad5142;
}
.badge.gray {
  background: #edf0ec;
  color: #778578;
}
.barrow {
  display: grid;
  grid-template-columns: 140px 1fr 35px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 16px 0;
}
.track {
  height: 8px;
  border-radius: 5px;
  background: #eff2eb;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: #5c9277;
  border-radius: 5px;
}
.barrow:nth-child(even) .fill {
  background: #b3bf96;
}
.empty {
  text-align: center;
  padding: 36px 15px;
  color: var(--muted);
  font-size: 13px;
}
.empty b {
  display: block;
  color: var(--green);
  font-size: 17px;
  margin-bottom: 9px;
}
.quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quicklinks button {
  text-align: right;
  padding: 20px;
  background: #fcfdf9;
}
.quicklinks b {
  display: block;
  font-size: 13px;
}
.quicklinks small {
  font-size: 10px;
}
.hint {
  font-size: 12px;
  background: #eef3ea;
  border-right: 3px solid #94af85;
  padding: 12px 15px;
  border-radius: 5px;
  color: #576c57;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid .full {
  grid-column: 1/-1;
}
.grid label > input,
.grid label > select {
  width: 100%;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search {
  min-width: 220px;
}
.group {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
  background: #fff;
}
.group summary {
  cursor: pointer;
  padding: 16px 18px;
  background: #fafbf7;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.group .inside {
  padding: 20px;
}
.incident {
  display: flex;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #edf0eb;
  font-size: 12px;
  align-items: center;
}
.incident small {
  margin-right: auto;
}
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.tabs button.active {
  background: var(--green);
  color: white;
}
.attendance-grid th:not(:first-child) {
  text-align: center;
  min-width: 48px;
  font-size: 10px;
}
.attendance-grid td {
  padding: 5px;
}
.attendance-grid td:first-child {
  position: sticky;
  right: 0;
  background: white;
  z-index: 1;
  border-left: 1px solid #ddd;
}
.attendance-grid select {
  padding: 5px 2px;
  border: 0;
  min-width: 42px;
  font-size: 11px;
}
.attendance-grid .weekend {
  background: #f0f1ed;
  color: #a5afa4;
}
.status-abs {
  background: #fce9e5;
  color: #9d4c3c;
}
.status-exc {
  background: #edf4eb;
  color: #50733c;
}
.status-late {
  background: #fbf2dc;
  color: #92712f;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login .intro {
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vw 8vw;
}
.login .intro h1 {
  font-size: 46px;
}
.login .intro p {
  color: #c5d7ca;
  line-height: 2;
  font-size: 17px;
}
.login .intro small {
  color: #a6c1ad;
}
.login .intro .brandmark {
  width: fit-content;
  margin-bottom: 30px;
}
.login .formarea {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login form {
  width: 100%;
  max-width: 380px;
}
.login form label {
  margin: 17px 0;
}
.login form input {
  padding: 12px;
}
.login form button {
  width: 100%;
  margin-top: 10px;
}
.login .sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.error {
  color: var(--red);
  font-size: 13px;
}
.loading {
  padding: 70px;
  text-align: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 27px;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #122b2666;
  backdrop-filter: blur(3px);
}
dialog .actions {
  justify-content: end;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 28px;
  max-width: 450px;
  background: #164b3f;
  color: white;
  padding: 14px 23px;
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 4px 25px #0002;
  font-size: 13px;
}
#toast.error {
  background: #943c36;
  color: white;
}
.footerline {
  text-align: center;
  color: #91a08f;
  font-size: 10px;
  margin: 26px 0 4px;
}
.checklabel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.labelrow {
  display: flex;
  gap: 15px;
  align-items: center;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.printtiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.printtiles button {
  text-align: right;
  padding: 18px;
}
.printtiles button.selected {
  border-color: var(--green);
  background: #eef4ee;
}
.printtiles small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
}
.notice-count {
  background: #cfbe84;
  color: #153e32;
  border-radius: 4px;
  font-size: 10px;
  padding: 0 5px;
}
.graphcolumns {
  display: flex;
  gap: 14px;
  align-items: end;
  min-height: 170px;
  padding-top: 15px;
  overflow: auto;
}
.graphitem {
  flex: 1;
  min-width: 70px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.graphitem .colbar {
  max-width: 45px;
  background: #72947a;
  border-radius: 5px 5px 0 0;
  margin: 0 auto 8px;
  min-height: 3px;
}
.graphitem b {
  display: block;
  color: var(--green);
  margin-bottom: 5px;
}
.mobile-toggle {
  display: none;
}
.sticky-actions {
  padding: 12px 0;
  background: white;
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 1600px) {
  .content {
    padding: 38px 50px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .quicklinks,
  .printtiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    right: 0;
    z-index: 50;
    width: 235px;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar {
    height: auto;
    min-height: 70px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .topbar .today {
    display: none;
  }
  .content {
    padding: 20px 14px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pagehead {
    align-items: start;
  }
  .pagehead h1 {
    font-size: 22px;
  }
  .banner {
    padding: 23px;
  }
  .banner .emblem {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid .full {
    grid-column: auto;
  }
  .quicklinks,
  .printtiles {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 15px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    min-width: 100px;
  }
  .barrow {
    grid-template-columns: 100px 1fr 25px;
  }
  .login {
    display: block;
  }
  .login .intro {
    padding: 30px;
  }
  .login .intro h1 {
    font-size: 30px;
  }
  .login .intro .brandmark {
    display: none;
  }
  .login .intro p {
    font-size: 13px;
  }
  .login .formarea {
    padding: 30px;
  }
  .signatures {
    flex-wrap: wrap;
  }
  .labelrow {
    flex-wrap: wrap;
  }
}
@media print {
  .sidebar,
  .topbar,
  .filters,
  .actions,
  button,
  #toast {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel,
  .card {
    break-inside: avoid;
    border: 1px solid #bbb;
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
body {
  font-size: 17px;
}
.nav button {
  font-size: 14px;
}
.topbar small,
.sidebar-bottom small,
.brand small {
  font-size: 12px;
}
.today {
  font-size: 13px;
}
table {
  font-size: 13px;
}
.card .label {
  font-size: 13px;
}
.card .foot {
  font-size: 11px;
}
.pagehead p {
  font-size: 14px;
}
.section-note {
  font-size: 13px;
}
.barrow {
  font-size: 13px;
}
.sidebar .nav {
  min-height: 0;
  overflow: visible;
}
.sidebar-bottom {
  flex-shrink: 0;
}

body {
  font-size: 15px;
  line-height: 1.8;
}
button,
input,
select,
textarea {
  line-height: 1.65;
}
.sidebar .nav button {
  font-size: 13px;
}
.attendance-grid .day-cell {
  display: block;
  width: 100%;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 2px;
  border: 1px solid #d9e2d8;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  touch-action: manipulation;
}
.attendance-grid td.weekend,
.attendance-grid th.weekend {
  background: #e0e4df !important;
  color: #778277;
}
.attendance-grid .day-cell:disabled {
  cursor: not-allowed;
}
.attendance-grid .day-cell.weekend-cell {
  background: #e0e4df;
  border-color: #d5d9d1;
  opacity: 1;
  color: #778277;
}
.attendance-grid .day-cell.status-abs {
  background: #f9d8d3;
  color: #922f27;
}
.attendance-grid .day-cell.status-exc {
  background: #ddecda;
  color: #326133;
}
.attendance-grid .day-cell.status-late {
  background: #fbebc0;
  color: #806116;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
}
.filter-actions button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* Filter controls occupy complete grid cells; quick actions have a separate row. */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  align-items: end;
}
.filters > label {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.filters > label > select,
.filters > label > input {
  width: 100%;
  min-width: 0;
}
.filters .hdate {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.hdate {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}
.hdate select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.filters > .filter-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.filters > button {
  justify-self: start;
}
.degree-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.degree-legend span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.behavior-picker {
  max-width: 100%;
  min-width: 200px;
  font-weight: 700;
}
.degree-1 {
  background: #e5f3e8;
  color: #245637;
}
.degree-2 {
  background: #e2eefb;
  color: #204f7e;
}
.degree-3 {
  background: #fff0c7;
  color: #715313;
}
.degree-4 {
  background: #fde2d7;
  color: #853b24;
}
.degree-5 {
  background: #efdef5;
  color: #643a77;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.pagination select {
  padding: 5px 9px;
}
.pagination button {
  padding: 6px 11px;
  font-size: 12px;
}
.pagination .actions {
  flex-wrap: wrap;
}
#dialog .hdate {
  min-width: 0;
}

/* A continuous sidebar shares the page scroll; no independently scrolling nav. */
.sidebar-toggle,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-toggle {
  background: transparent;
  border: 1px solid #ffffff30;
  color: white;
  padding: 8px 12px;
  margin-bottom: 20px;
}
.sidebar-toggle i,
.sidebar-bottom i {
  width: 22px;
  text-align: center;
  font-style: normal;
}
.sidebar .nav {
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: 24px;
}
.app-version {
  display: block;
  font-size: 11px;
  padding-top: 12px;
}
.sidebar-backdrop[hidden] {
  display: none;
}
@media (min-width: 761px) {
  .layout.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar-collapsed .sidebar {
    padding: 20px 10px;
  }
  .sidebar-collapsed .nav-text,
  .sidebar-collapsed .brand-text,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-bottom small {
    display: none;
  }
  .sidebar-collapsed .brand {
    padding: 0 0 22px;
    justify-content: center;
  }
  .sidebar-collapsed .brandmark {
    font-size: 24px;
    padding: 1px 8px;
  }
  .sidebar-collapsed .nav button,
  .sidebar-collapsed .sidebar-toggle,
  .sidebar-collapsed .sidebar-bottom button {
    justify-content: center;
    padding: 12px;
  }
  .sidebar-collapsed .sidebar-bottom {
    padding: 16px 0 0;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 18px 14px;
  }
  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: #0007;
    z-index: 49;
  }
}

.behavior-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.behavior-tabs button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.student-card {
  border: 1px solid #bdd4de;
  border-radius: 14px;
  margin: 16px 0;
  overflow: hidden;
  background: #fff;
}
.student-card > summary {
  background: #eaf3f7;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style-position: inside;
}
.student-card[open] > summary {
  background: #dceef5;
}
.student-card > summary span {
  color: #627785;
  font-size: 13px;
}
.student-card > .inside {
  padding: 16px;
}
.student-card .group {
  margin: 0 0 12px;
}
.behavior-group > summary {
  background: #edf7f0;
}
@media (max-width: 760px) {
  .student-card > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .student-card > .inside {
    padding: 10px;
  }
}
.student-card .incident {
  flex-direction: row;
  flex-wrap: wrap;
  text-align: right;
  justify-content: flex-start;
  background: #f8fbfc;
  border: 1px solid #e4edf0;
  border-radius: 9px;
  margin: 8px 0;
  padding: 12px;
}
.student-card .incident > span {
  flex: 1;
  min-width: 150px;
}
.student-card .incident input {
  flex: 0 0 auto;
}
.student-card > summary::after,
.student-card .group > summary::after {
  content: "⌄";
  margin-inline-start: 6px;
  font-size: 18px;
}
.student-card[open] > summary::after,
.student-card .group[open] > summary::after {
  content: "⌃";
}
.student-link {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--green);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.absence-counts {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
  align-items: center;
}
.absence-total {
  color: #14733a;
}
.absence-marked {
  color: #b72d2d;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.metric-card {
  padding: 0;
  border: 0;
  text-align: right;
  background: transparent;
  width: 100%;
}
.metric-card .card {
  height: 100%;
}
@media (max-width: 760px) {
  .permission-grid {
    grid-template-columns: 1fr;
  }
}
.noor-table td:nth-child(5),
.noor-table th:nth-child(5) {
  width: 90px;
  white-space: nowrap;
}
.noor-table td:nth-child(6) {
  text-align: center;
}

.form-groups { display:grid; gap:24px; }
.form-group { border:1px solid var(--line, #dde5df); border-radius:14px; padding:20px; background:#fafcf9; }
.form-group h3 { margin:0 0 5px; }
.form-group > p { margin:0 0 16px; font-size:.88rem; }
.form-group .printtiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.form-group .printtiles button { display:grid; grid-template-columns:32px 1fr; align-content:start; gap:6px 10px; padding:17px; text-align:right; min-height:110px; }
.form-tile-icon { grid-row:span 2; font-size:1.5rem; }
.form-group .printtiles small { grid-column:2; }
@media(max-width:520px) { .form-group { padding:12px; } .form-group .printtiles { grid-template-columns:1fr; } }

.form-group summary { cursor:pointer; padding-left:26px; position:relative; }
.form-group summary::marker { color:#315c50; }
.form-group summary h3 { display:inline; margin:0; font-size:1rem; }
.form-group summary span { display:block; margin:5px 0 0; font-size:.85rem; }
.form-group[open] summary { margin-bottom:16px; }
