@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700.ttf) format('truetype');
}
:root {
  --primary-color: #164b38;
  --primary-hover: #103b2c;
  --green-deep: #123d2e;
  --leaf: #548e2b;
  --green-soft: #edf5eb;
  --accent-color: #e9bc38;
  --gold-ink: #826318;
  --gold-soft: #fbf5e5;
  --maroon: #8f293e;
  --maroon-soft: #faedf0;
  --bg-color: #f7f9f7;
  --card-bg: #fff;
  --text-dark: #243b31;
  --text-muted: #718078;
  --border: #e5eae6;
  --border-radius: 18px;
  --shadow: 0 4px 22px #173d2905;
  --sidebar-width: 246px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.brand-name,
.stat-value {
  font-family: Poppins, Inter, Arial, sans-serif;
  line-height: 1.35;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
img {
  max-width: 100%;
}
a,
button {
  touch-action: manipulation;
}
strong {
  font-weight: 600;
}
small {
  font-size: 12px;
}
p {
  line-height: 1.7;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
  border-radius: 5px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 270px;
  z-index: 10010;
  background: #fff;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.app-container {
  min-height: 100vh;
  padding-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-content {
  padding: 30px 36px 32px;
  flex: 1;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  min-width: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--green-deep);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 29px 18px 18px;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  padding: 0 9px 28px;
  border-bottom: 1px solid #ffffff15;
}
.sidebar-brand img {
  width: 45px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #0002);
}
.brand-name {
  display: block;
  font-size: 19px;
  letter-spacing: 1.3px;
  font-weight: 600;
}
.brand-caption {
  display: block;
  font-size: 9px;
  letter-spacing: 1.25px;
  color: #bed1c6;
  margin-top: 2px;
}
.nav-label {
  font-size: 10px;
  color: #92b3a1;
  letter-spacing: 1.7px;
  margin: 28px 15px 13px;
  font-weight: 600;
}
.nav-item,
.nav-group summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 15px;
  margin: 3px 0;
  border-radius: 9px;
  font-size: 13px;
  color: #c6d9ce;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 500;
  min-height: 47px;
}
.nav-item:hover,
.nav-group summary:hover {
  background: #ffffff0b;
  color: white;
}
.nav-item.active {
  background: var(--accent-color);
  color: #263e2c;
  box-shadow: 0 4px 20px #e9bc381c;
  font-weight: 700;
}
.nav-item.active:after {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--green-deep);
  margin-left: auto;
}
.nav-group summary {
  cursor: pointer;
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary .chevron {
  margin-left: auto;
  width: 14px;
  transition: transform 0.2s;
}
.nav-group[open] summary .chevron {
  transform: rotate(90deg);
}
.nav-children {
  margin: 3px 0 10px 24px;
  border-left: 1px solid #ffffff22;
  padding-left: 10px;
}
.nav-children .nav-item {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 13px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-note {
  border: 1px solid #ffffff16;
  border-radius: 12px;
  padding: 17px 15px;
  background: #ffffff04;
}
.sidebar-note svg {
  color: var(--accent-color);
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  margin: 9px 0 5px;
  color: #ebf2ed;
}
.sidebar-note p {
  font-size: 11px;
  color: #a9c0b3;
  line-height: 1.8;
}
.logout-button {
  margin-top: 16px;
  color: #c5d6cc;
}
.sidebar-edition {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #a9bdb0;
  padding: 10px 15px 0;
}
.sidebar-edition:before {
  content: '';
  width: 5px;
  height: 5px;
  background: #b9d898;
  border-radius: 50%;
}
.topbar {
  height: 85px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-brand img {
  width: 31px;
  height: 35px;
  object-fit: contain;
}
.topbar-title {
  display: block;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.25px;
  line-height: 1.5;
}
.topbar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 12px;
}
.topbar-date svg {
  width: 17px;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 0 0 0 21px;
  background: transparent;
  text-align: left;
  color: var(--text-dark);
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--primary-color);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.profile-name {
  max-width: 145px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.profile-role {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}
.profile-button > .icon {
  width: 14px;
  color: var(--text-muted);
}
.mobile-toggle,
.sidebar-close,
.drawer-overlay {
  display: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.page-heading p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 9px 12px;
  white-space: nowrap;
}
.date-tag svg {
  width: 16px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-heading p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.card-heading h2 {
  font-size: 15px;
  letter-spacing: -0.15px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.text-link .icon {
  width: 15px;
}
.welcome-banner {
  position: relative;
  overflow: hidden;
  background: #eaf1e6;
  border: 1px solid #e1eadb;
  border-radius: var(--border-radius);
  padding: 27px 30px;
  min-height: 183px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.welcome-copy {
  z-index: 1;
  max-width: 75%;
}
.welcome-copy .eyebrow {
  color: #658157;
}
.welcome-copy h2 {
  font-size: 25px;
  line-height: 1.5;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: -0.7px;
}
.welcome-copy h2 strong {
  font-weight: 600;
}
.welcome-copy p {
  color: #687b60;
  font-size: 12px;
  margin: 8px 0 17px;
}
.welcome-copy .btn {
  font-size: 11px;
  padding: 9px 14px;
  min-height: 38px;
}
.welcome-watermark {
  position: absolute;
  right: 56px;
  top: -20px;
  width: 238px;
  height: 238px;
  object-fit: contain;
  opacity: 0.065;
  transform: rotate(-9deg);
  pointer-events: none;
}
.welcome-seal {
  position: relative;
  width: 117px;
  flex-shrink: 0;
  text-align: center;
  margin-right: 16px;
  z-index: 1;
}
.welcome-seal img {
  width: 80px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px #31552512);
}
.welcome-seal span {
  display: block;
  margin-top: 7px;
  color: #5b7450;
  font-size: 9px;
  letter-spacing: 2px;
}
.welcome-banner:after {
  content: '';
  position: absolute;
  right: -32px;
  bottom: -90px;
  border: 1px solid #54754112;
  width: 320px;
  height: 320px;
  transform: rotate(45deg);
  border-radius: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat-card {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #728075;
}
.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--primary-color);
}
.stat-icon .icon {
  width: 18px;
}
.stat-icon.gold {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.stat-icon.maroon {
  background: var(--maroon-soft);
  color: var(--maroon);
}
.stat-value {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--primary-color);
  line-height: 1.2;
}
.stat-foot {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 10px;
}
.stat-foot strong {
  color: var(--leaf);
  font-weight: 500;
}
.stat-card.maroon .stat-value {
  color: var(--maroon);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 23px;
}
.dashboard-grid > .column {
  min-width: 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.quick-item:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
}
.quick-icon {
  width: 36px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--primary-color);
  flex-shrink: 0;
}
.quick-item:nth-child(2) .quick-icon {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.quick-item strong {
  display: block;
  font-size: 11px;
}
.quick-item small {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  margin-top: 4px;
}
.quick-item > .icon {
  margin-left: auto;
  width: 13px;
  color: #8e9a91;
}
.clock-card {
  background: var(--primary-color);
  color: white;
  border: 0;
  position: relative;
  overflow: hidden;
}
.clock-card:after {
  content: '';
  width: 180px;
  height: 180px;
  border: 1px solid #ffffff0a;
  transform: rotate(45deg);
  position: absolute;
  right: -80px;
  top: 0;
  border-radius: 22px;
  pointer-events: none;
}
.clock-card .section-label {
  color: #c6d8b6;
  display: flex;
  gap: 8px;
  align-items: center;
}
.clock-card .section-label svg {
  width: 15px;
  color: var(--accent-color);
}
.digital-clock {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  margin: 16px 0 2px;
}
.digital-clock small {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #c5d4c4;
}
.clock-date {
  font-size: 11px;
  color: #c5d4c4;
}
.clock-divider {
  border-top: 1px solid #ffffff1a;
  margin: 18px 0 14px;
}
.clock-note {
  font-size: 10px;
  color: #c5d4c4;
  display: flex;
  align-items: center;
  gap: 7px;
}
.clock-note .icon {
  width: 13px;
  color: var(--accent-color);
}
.calendar-card {
  padding: 22px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.calendar-header strong {
  font-size: 12px;
  font-weight: 600;
}
.calendar-nav {
  display: flex;
  gap: 2px;
}
.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: var(--green-soft);
  color: var(--primary-color);
}
.icon-button .icon {
  width: 16px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.calendar-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.calendar-grid .day-label {
  aspect-ratio: auto;
  padding-bottom: 7px;
  font-size: 9px;
  color: var(--text-muted);
}
.calendar-grid .today {
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  position: relative;
  font-weight: 600;
}
.calendar-grid .today:after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 50%;
}
.calendar-grid .sunday {
  color: var(--maroon);
}
.calendar-note {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-muted);
  font-size: 9px;
  padding-top: 15px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.calendar-note:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}
.table-container {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  width: 100%;
  scrollbar-width: thin;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-card .card-heading {
  padding: 23px 24px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: normal;
}
.table th {
  background: #f7f9f6;
  color: #7c897d;
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 13px 24px;
  border-block: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 16px 24px;
  border-bottom: 1px solid #edf0eb;
  vertical-align: middle;
  line-height: 1.7;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fafcf9;
}
.table td strong {
  font-size: 12px;
}
.table td .text-muted {
  font-size: 10px;
}
.table td[colspan] {
  padding: 42px 20px;
  white-space: normal;
  line-height: 1.8;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-cell .avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
  background: #f0f4eb;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 13px 24px;
  color: var(--text-muted);
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.7;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  background: #f1f4f1;
  color: #607267;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-hadir,
.badge-aktif,
.badge-success {
  background: var(--green-soft);
  color: #487435;
}
.badge-terlambat,
.badge-pending,
.badge-warning {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.badge-tidak-hadir,
.badge-error {
  background: var(--maroon-soft);
  color: var(--maroon);
}
.badge-neutral {
  background: #f0f3f0;
  color: #607267;
}
.badge-info {
  background: #edf3ec;
  color: #53704e;
}
.status-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--text-muted);
  padding: 13px 0;
}
.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-legend i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--leaf);
}
.status-legend i.gold {
  background: var(--accent-color);
}
.status-legend i.maroon {
  background: var(--maroon);
}
.table-search {
  position: relative;
  max-width: 270px;
  min-width: 120px;
}
.table-search svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 15px;
  color: #86958a;
}
.table-search input {
  padding-left: 35px;
  font-size: 11px;
  min-height: 38px;
}
.empty-visual {
  width: 43px;
  height: 43px;
  margin: 0 auto 13px;
  background: var(--green-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--leaf);
}
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
}
.empty-state h3 {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.empty-state p {
  font-size: 11px;
}
.data-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 23px;
}
.data-tabs a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0 13px;
  border-bottom: 2px solid transparent;
}
.data-tabs a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 3px 7px #174d3810;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 5px 13px #174d3820;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--primary-color);
}
.btn-secondary:hover {
  background: #f4f7f2;
}
.btn-gold {
  background: var(--accent-color);
  color: var(--green-deep);
}
.btn-danger {
  background: var(--maroon-soft);
  color: var(--maroon);
  border-color: #efdce1;
}
.btn-danger:hover {
  background: #f3dce2;
}
.btn-block {
  width: 100%;
}
.btn-small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 10px;
}
.form-group {
  margin-bottom: 19px;
  text-align: left;
  min-width: 0;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #516457;
}
.form-control {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  background: #fff;
  color: var(--text-dark);
  font-size: 12px;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-control::placeholder {
  color: #94a094;
}
.form-control:focus {
  outline: none;
  border-color: #6c9060;
  box-shadow: 0 0 0 3px #6c906015;
}
.form-control[readonly] {
  background: #f6f8f4;
  color: var(--text-muted);
}
select.form-control {
  padding-right: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .form-full,
.form-grid > hr,
.form-grid > p,
.form-grid > .form-actions {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 21px;
  margin-top: 6px;
}
.form-section {
  font-size: 12px;
  color: var(--text-muted);
  margin: 5px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  gap: 18px;
  align-items: end;
}
.filter-grid .form-group {
  margin: 0;
}
.filter-grid.payroll-filter {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}
.help-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e4eadc;
  border-radius: 11px;
  background: #f1f5ed;
  font-size: 11px;
  color: #6c7c60;
  line-height: 1.8;
  margin-top: 18px;
}
.help-note .icon {
  width: 18px;
  color: var(--leaf);
  margin-top: 2px;
  flex-shrink: 0;
}
.help-note strong {
  color: #48613c;
}
.alert {
  display: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.alert-error {
  color: var(--maroon);
  background: var(--maroon-soft);
  border-color: #f0d9df;
}
.alert-success {
  color: #426d31;
  background: var(--green-soft);
  border-color: #dbe6d5;
}
.alert-info {
  color: #657943;
  background: #f2f5e9;
  border-color: #e2e9cf;
}
#loader {
  display: none;
  position: fixed;
  inset: 0;
  background: #f8faf7d9;
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: var(--primary-color);
  font-size: 12px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e9dd;
  border-top-color: var(--primary-color);
  border-right-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.welcome-banner,
.stats-grid,
.dashboard-grid {
  animation: rise 0.35s ease-out;
}
.app-footer {
  border-top: 1px solid var(--border);
  padding: 17px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  color: #8a958b;
  background: #fff;
}
.app-footer strong {
  font-size: 9px;
  font-weight: 500;
  color: #63755f;
  letter-spacing: 0.4px;
}
.attendance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 23px;
  align-items: start;
}
.attendance-main {
  padding: 32px;
}
.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--primary-color);
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}
.feature-icon.gold {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.attendance-main h2 {
  font-size: 21px;
  margin-bottom: 10px;
}
.attendance-main > p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 530px;
}
.location-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.location-status {
  padding: 19px;
  background: #f7f9f3;
  border: 1px dashed #d6e1cc;
  border-radius: 12px;
  text-align: center;
  margin: 24px 0;
  font-size: 12px;
}
.attendance-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.steps {
  list-style: none;
  counter-reset: steps;
  margin-top: 20px;
}
.steps li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 11px;
  align-items: center;
}
.steps li:before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 600;
  border-radius: 7px;
}
.scanner-container {
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px dashed #c5d4bc;
  background: #f8faf5;
  margin: 23px 0 0;
  padding: 10px;
}
.scanner-container video {
  max-width: 100%;
  border-radius: 10px;
}
#reader {
  width: 100%;
  border: 0 !important;
  font-size: 12px;
  color: var(--text-muted);
}
#reader button,
#reader select {
  font: inherit;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cdd9c6;
  background: #fff;
  color: var(--primary-color);
  margin: 5px;
  max-width: 100%;
}
#reader img {
  max-width: 60px;
}
#reader a {
  color: var(--primary-color);
}
#scan-status {
  margin-top: 8px;
  min-height: 22px;
}
.manual-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 18px;
}
.manual-form .form-group {
  flex: 1;
  margin: 0;
}
.student-card {
  background: linear-gradient(135deg, #fafcf7, #eef4e7);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.student-card > .eyebrow {
  margin-bottom: 18px;
}
.student-card #user-name {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.student-qr {
  display: block;
  background: white;
  padding: 20px;
  width: 244px;
  margin: 24px auto;
  border-radius: 18px;
  border: 1px solid #e3e9dd;
  box-shadow: 0 7px 18px #2e4b2510;
}
.student-qr img {
  display: block;
  width: 200px;
  height: 200px;
}
.student-details {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.qr-help {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0 auto;
}
.profile-facts {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 13px;
  font-size: 12px;
}
.profile-facts dt {
  color: var(--text-muted);
}
.profile-facts dd {
  overflow-wrap: anywhere;
}
.modal {
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 90px #123d2e30;
  padding: 28px;
  width: min(440px, calc(100vw - 32px));
  color: var(--text-dark);
  margin: auto;
}
.modal::backdrop {
  background: #102d2266;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal .btn {
  margin-top: 24px;
}
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 12%, #d4e4cf 0, transparent 46%),
    linear-gradient(125deg, #eff5ea, #fbfcf9 60%, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 24px;
}
.login-masthead {
  position: absolute;
  top: 28px;
  left: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 1px;
}
.login-masthead img {
  width: 31px;
  height: 35px;
  object-fit: contain;
}
.login-wrap {
  width: min(100%, 985px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 25px 90px #173d2911;
  border-radius: 25px;
  overflow: hidden;
  min-height: 611px;
  border: 1px solid #e5eadd;
  background: #fff;
  margin: 62px 0 30px;
}
.login-story {
  background: var(--green-deep);
  color: #fff;
  padding: 51px 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-story:before,
.login-story:after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -65px;
  width: 310px;
  height: 310px;
  border: 1px solid #dfc57515;
  border-radius: 80px 80px 0 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.login-story:after {
  width: 240px;
  height: 240px;
  right: -20px;
  bottom: -20px;
  border-color: #dfc57512;
}
.login-story .eyebrow {
  color: #d9c57c;
  font-size: 9px;
  margin-bottom: 25px;
}
.login-story h2 {
  font-size: 32px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.8px;
  max-width: 340px;
  z-index: 1;
}
.login-story h2 span {
  color: #e3c35c;
}
.login-story > p {
  font-size: 12px;
  color: #b1c5b7;
  line-height: 1.9;
  margin-top: 18px;
  max-width: 300px;
}
.login-arch {
  height: 110px;
  border: 1px solid #ffffff20;
  border-radius: 80px 80px 0 0;
  width: 86px;
  margin: 0 0 30px;
  position: relative;
  display: grid;
  place-items: center;
}
.login-arch:before {
  content: '';
  position: absolute;
  inset: 10px 9px 0;
  border: 1px solid #e1be471f;
  border-radius: 80px 80px 0 0;
}
.login-arch .icon {
  width: 35px;
  height: 35px;
  color: var(--accent-color);
  margin-top: 16px;
}
.login-story-foot {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  line-height: 1.7;
  color: #b1c5b7;
}
.login-story-foot svg {
  color: var(--accent-color);
  width: 19px;
  flex-shrink: 0;
}
.login-form-panel {
  padding: 39px 43px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-logo {
  width: 78px;
  height: 84px;
  object-fit: contain;
  display: block;
  margin: 0 auto 17px;
}
.login-brand {
  text-align: center;
  margin-bottom: 27px;
}
.login-brand h1 {
  font-size: 20px;
  color: var(--primary-color);
  letter-spacing: 1.3px;
  line-height: 1.5;
}
.login-brand h1 span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.65px;
}
.login-brand p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 9px;
}
.login-intro h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.login-intro p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 22px;
}
.input-wrap {
  position: relative;
}
.input-wrap > .icon {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 17px;
  height: 17px;
  color: #8c9b87;
}
.input-wrap input {
  padding-left: 40px;
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #7f8f7a;
}
.password-toggle svg {
  width: 17px;
  height: 17px;
}
.login-form-panel .btn-primary {
  margin-top: 5px;
  border-bottom: 3px solid var(--accent-color);
  min-height: 47px;
}
.login-form-panel .form-group {
  margin-bottom: 17px;
}
.login-help {
  text-align: center;
  font-size: 10px;
  color: #86917e;
  margin-top: 19px;
}
.login-help strong {
  display: block;
  color: #68775c;
  font-weight: 500;
  margin-top: 2px;
}
.login-footer {
  text-align: center;
  font-size: 9px;
  color: #8b9584;
  letter-spacing: 0.15px;
}
.login-footer strong {
  display: block;
  font-weight: 500;
  color: #68795d;
  margin-bottom: 3px;
}
.login-topnote {
  position: absolute;
  top: 34px;
  right: 36px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #7a8d71;
  display: flex;
  gap: 7px;
  align-items: center;
}
.login-topnote .icon {
  width: 14px;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.hidden,
[hidden] {
  display: none !important;
}
.no-margin {
  margin: 0;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.refresh-button.spinning .icon {
  animation: spin 1s linear infinite;
}
.refresh-button:disabled {
  opacity: 0.6;
}
.summary-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.summary-bar > div {
  flex: 1;
  min-width: 120px;
  background: white;
  border: 1px solid var(--border);
  padding: 17px 20px;
  border-radius: 13px;
  font-size: 11px;
  color: var(--text-muted);
}
.summary-bar strong {
  display: block;
  font-size: 23px;
  color: var(--primary-color);
  margin-top: 4px;
}
.report-print-heading {
  display: none;
}
@media (min-width: 1550px) {
  .app-content {
    padding-inline: 45px;
  }
  .welcome-banner {
    min-height: 205px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .quick-item {
    padding: 20px;
  }
  .stat-card {
    padding: 25px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 224px;
  }
  .app-content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .dashboard-grid,
  .attendance-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-label {
    font-size: 10px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-item {
    padding: 11px 14px;
  }
  .quick-item small {
    margin-top: 1px;
  }
  .table th,
  .table td {
    padding: 14px 18px;
  }
  .topbar-date {
    display: none;
  }
  .filter-grid.payroll-filter {
    grid-template-columns: repeat(3, 1fr);
  }
  .payroll-filter .btn {
    grid-column: 1/-1;
    justify-self: end;
  }
  .digital-clock {
    font-size: 31px;
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .drawer-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #102d2266;
    backdrop-filter: blur(2px);
    z-index: 99;
  }
  .sidebar-close {
    display: grid;
    position: absolute;
    right: 5px;
    top: 7px;
    color: #d4dfd7;
  }
  .mobile-toggle {
    display: grid;
    flex-shrink: 0;
    border: 1px solid var(--border);
    width: 37px;
    height: 37px;
  }
  .topbar-brand {
    margin-right: auto;
  }
  .topbar {
    gap: 15px;
    height: 78px;
  }
  .topbar-right {
    gap: 0;
  }
  .profile-button {
    padding-left: 17px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 282px;
  }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-item {
    flex-direction: column;
    text-align: center;
    gap: 9px;
  }
  .quick-item > .icon {
    display: none;
  }
  .table th,
  .table td {
    padding: 14px;
  }
  .app-footer {
    padding-inline: 26px;
  }
  .skip-link {
    left: 15px;
  }
  .attendance-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
}
@media (max-width: 720px) {
  .app-content {
    padding: 23px 18px;
  }
  .topbar {
    height: 73px;
    padding: 0 18px;
    gap: 11px;
  }
  .topbar-brand {
    gap: 8px;
  }
  .topbar-title {
    font-size: 9px;
    letter-spacing: 0.6px;
    max-width: 215px;
  }
  .topbar-subtitle {
    font-size: 9px;
  }
  .topbar-brand img {
    width: 26px;
    height: 30px;
  }
  .profile-button {
    border: 0;
    padding: 0;
  }
  .profile-button > span:not(.avatar),
  .profile-button > .icon {
    display: none;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 260px;
  }
  .page-heading .date-tag {
    display: none;
  }
  .heading-actions .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .heading-actions .refresh-label {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
  }
  .welcome-banner {
    padding: 24px;
    min-height: 170px;
    gap: 10px;
  }
  .welcome-copy {
    max-width: 80%;
  }
  .welcome-copy h2 {
    font-size: 22px;
  }
  .welcome-copy p {
    font-size: 11px;
    max-width: 250px;
  }
  .welcome-seal {
    width: 75px;
    margin-right: 0;
  }
  .welcome-seal img {
    width: 61px;
    height: 67px;
  }
  .welcome-seal span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .welcome-watermark {
    width: 210px;
    right: -35px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 21px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .dashboard-grid,
  .attendance-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dashboard-grid > .column:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .card {
    padding: 21px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  .table-card {
    padding: 0;
  }
  .table-card .card-heading {
    padding: 20px 20px 0;
  }
  .table-card .card-heading h2 {
    font-size: 14px;
  }
  .table-card .table {
    min-width: 500px;
  }
  .table-search {
    max-width: 190px;
  }
  .table-foot {
    padding: 13px 18px;
  }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .quick-item {
    padding: 13px 8px;
  }
  .clock-card {
    min-height: 215px;
  }
  .clock-card .digital-clock {
    font-size: 31px;
  }
  .filter-grid,
  .filter-grid.payroll-filter {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .filter-grid .btn {
    grid-column: 1/-1;
    justify-self: stretch;
  }
  .filter-grid.payroll-filter .form-group:last-of-type {
    grid-column: 1/-1;
  }
  .card-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .card-heading .table-search {
    max-width: none;
    flex: 1;
  }
  .form-grid {
    gap: 0 15px;
  }
  .app-footer {
    padding: 18px;
    text-align: center;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
  }
  .app-footer strong {
    font-size: 8px;
  }
  .attendance-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .attendance-grid > aside > .help-card {
    grid-column: 1/-1;
  }
  .attendance-main {
    padding: 26px;
  }
  .login-page {
    padding: 20px;
  }
  .login-wrap {
    max-width: 770px;
    grid-template-columns: 0.82fr 1fr;
    margin-top: 75px;
    min-height: 570px;
  }
  .login-story {
    padding: 37px 26px;
  }
  .login-story h2 {
    font-size: 26px;
  }
  .login-story > p {
    font-size: 11px;
  }
  .login-form-panel {
    padding: 30px 25px;
  }
  .login-brand h1 {
    font-size: 19px;
  }
  .login-masthead {
    left: 22px;
    top: 23px;
    font-size: 9px;
  }
  .login-topnote {
    right: 22px;
    top: 30px;
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .topbar-title {
    font-size: 8px;
    max-width: 171px;
    letter-spacing: 0.4px;
  }
  .topbar-subtitle {
    font-size: 8px;
  }
  .topbar-brand img {
    display: none;
  }
  .avatar {
    width: 33px;
    height: 33px;
  }
  .welcome-banner {
    padding: 21px;
  }
  .welcome-copy {
    max-width: 100%;
  }
  .welcome-copy h2 {
    font-size: 21px;
    max-width: 260px;
  }
  .welcome-seal {
    display: none;
  }
  .welcome-watermark {
    width: 195px;
    right: -30px;
    top: 8px;
  }
  .welcome-copy p {
    max-width: 260px;
  }
  .stat-top {
    gap: 5px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .stat-icon .icon {
    width: 16px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 9px;
  }
  .dashboard-grid > .column:last-child,
  .attendance-grid > aside {
    display: block;
  }
  .clock-card {
    min-height: 0;
  }
  .clock-card .digital-clock {
    font-size: 38px;
  }
  .calendar-grid span {
    aspect-ratio: 1.6;
  }
  .calendar-grid .day-label {
    aspect-ratio: auto;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .heading-actions .btn {
    min-height: 38px;
    padding: 9px;
    font-size: 10px;
  }
  .quick-item strong {
    font-size: 10px;
  }
  .quick-item small {
    font-size: 8px;
  }
  .quick-icon {
    width: 32px;
    height: 35px;
  }
  .quick-item {
    padding: 13px 5px;
  }
  .card-heading .text-link {
    font-size: 10px;
  }
  .form-grid,
  .filter-grid,
  .filter-grid.payroll-filter,
  .location-fields {
    grid-template-columns: 1fr;
  }
  .filter-grid .btn,
  .filter-grid.payroll-filter .form-group:last-of-type {
    grid-column: auto;
  }
  .form-actions .btn {
    flex: 1;
  }
  .attendance-actions .btn {
    width: 100%;
  }
  .manual-form {
    flex-wrap: wrap;
  }
  .manual-form .form-group,
  .manual-form .btn {
    width: 100%;
    flex: auto;
  }
  .data-tabs {
    gap: 22px;
  }
  .data-tabs a {
    font-size: 11px;
  }
  .login-story {
    display: none;
  }
  .login-wrap {
    display: block;
    max-width: 420px;
    margin-top: 65px;
    min-height: 0;
    border-radius: 21px;
  }
  .login-form-panel {
    padding: 31px 27px 30px;
  }
  .login-logo {
    width: 78px;
    height: 84px;
  }
  .login-brand h1 {
    font-size: 21px;
  }
  .login-form-panel .form-control {
    font-size: 16px;
    min-height: 48px;
  }
  .login-form-panel .form-group label {
    font-size: 12px;
  }
  .login-topnote {
    display: none;
  }
  .login-masthead {
    font-size: 9px;
    left: 24px;
  }
  .login-intro h2 {
    font-size: 18px;
  }
  .login-footer {
    font-size: 8px;
  }
  .form-control {
    font-size: 16px;
  }
  .table-search input {
    font-size: 16px;
  }
  .table th,
  .table td {
    padding: 13px 17px;
  }
  .summary-bar {
    gap: 9px;
  }
  .summary-bar > div {
    min-width: calc(50% - 9px);
    padding: 13px 15px;
  }
  .student-card #user-name {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .app-footer,
  .page-heading,
  .filter-card,
  .heading-actions,
  .table-search,
  .drawer-overlay,
  .skip-link,
  .no-print,
  dialog,
  #loader {
    display: none !important;
  }
  .app-container {
    padding: 0 !important;
    min-height: 0;
  }
  .app-content {
    padding: 0;
    max-width: none;
  }
  .card {
    box-shadow: none;
    border-color: #ddd;
    break-inside: avoid;
  }
  .table-card,
  .table-container {
    overflow: visible;
  }
  .table {
    min-width: 0 !important;
    width: 100%;
  }
  .table th,
  .table td {
    font-size: 10px;
    padding: 9px;
  }
  .badge {
    color: #222 !important;
    background: white !important;
    border: 1px solid #ddd;
  }
  .table-foot {
    font-size: 9px;
  }
  body {
    background: white;
    color: #000;
  }
  .report-print-heading {
    display: block !important;
    text-align: center;
    margin-bottom: 22px;
  }
  .report-print-heading img {
    width: 48px;
    height: 52px;
    object-fit: contain;
  }
  .report-print-heading h2 {
    font-size: 15px;
  }
  .report-print-heading p {
    font-size: 11px;
  }
  .report-print-heading small {
    display: block;
  }
}
/* Teacher registration and account verification */
.register-link {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 18px;
}
.register-link a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #edf4e8, #fafbf8 58%, #fff);
}
.public-header {
  padding: 22px 6%;
  background: #ffffffbb;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.registration-wrap {
  max-width: 820px;
  margin: 42px auto;
  padding: 0 24px;
}
.registration-intro {
  text-align: center;
  margin-bottom: 28px;
}
.registration-intro h1 {
  font-size: 29px;
}
.registration-intro p {
  max-width: 560px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px auto 0;
}
.registration-steps {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 32px;
  margin-top: 27px;
  font-size: 11px;
  color: var(--text-muted);
}
.registration-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.registration-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e6edde;
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 600;
}
.registration-steps li:first-child {
  color: var(--primary-color);
  font-weight: 600;
}
.registration-steps li:first-child span {
  background: var(--accent-color);
}
.registration-card {
  padding: 32px 36px;
}
.service-notice {
  display: flex;
  gap: 12px;
  border: 1px solid #efe1b7;
  border-radius: 10px;
  background: var(--gold-soft);
  padding: 16px;
  color: var(--gold-ink);
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.service-notice > span:first-child {
  flex-shrink: 0;
}
.required {
  color: var(--maroon);
}
.field-hint {
  font-size: 10px;
  line-height: 1.8;
  color: var(--text-muted);
  display: block;
  margin-top: 7px;
}
.form-control:is(textarea) {
  resize: vertical;
  min-height: 90px;
  font: inherit;
  font-size: 12px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0 25px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}
.consent-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 3px;
}
.public-footer {
  padding: 8px 24px 28px;
}
.account-status-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge-disabled {
  background: #edeff0;
  color: #444d50;
}
.account-dialog {
  max-width: 540px;
  width: calc(100vw - 32px);
}
.account-dialog .profile-facts {
  grid-template-columns: 125px 1fr;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 196px;
}
.table-actions .btn {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 9px;
}
.registration-success {
  text-align: center;
  padding: 35px 15px;
}
.registration-success p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 15px 0;
}
.registration-success > .badge {
  display: table;
  margin: 18px auto;
}
.registration-success > .btn {
  margin-top: 10px;
}
.success-emblem {
  width: 70px;
  height: 70px;
  background: var(--green-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-color);
  margin: 0 auto 24px;
}
.success-emblem svg {
  width: 32px;
  height: 32px;
}
#approval-dialog .form-actions .btn {
  margin-top: 0;
}
#registration-availability:not([hidden]) ~ form #register-submit {
  opacity: 0.6;
}
@media (max-width: 720px) {
  .public-header {
    padding: 18px 24px;
  }
  .public-header > .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .registration-wrap {
    margin-top: 30px;
  }
  .registration-card {
    padding: 26px;
  }
  .registration-intro h1 {
    font-size: 25px;
  }
  .registration-steps {
    gap: 18px;
    font-size: 10px;
  }
  .account-dialog .profile-facts {
    grid-template-columns: 105px 1fr;
  }
}
@media (max-width: 480px) {
  .public-header {
    padding: 17px 19px;
    gap: 10px;
  }
  .public-header > .text-link {
    font-size: 9px;
  }
  .public-header > .text-link svg {
    display: none;
  }
  .registration-wrap {
    padding: 0 17px;
  }
  .registration-card {
    padding: 22px;
  }
  .registration-intro h1 {
    font-size: 24px;
  }
  .registration-steps {
    gap: 10px;
    font-size: 8px;
  }
  .registration-steps li {
    gap: 5px;
  }
  .registration-steps span {
    height: 23px;
    width: 23px;
    font-size: 9px;
  }
  .form-control:is(textarea) {
    font-size: 16px;
  }
  .consent-row {
    font-size: 11px;
  }
  .account-dialog .profile-facts {
    grid-template-columns: 95px 1fr;
    font-size: 11px;
  }
}

@media (min-width: 961px) {
  .mobile-toggle,
  .sidebar-close {
    display: none;
  }
}
@media (max-width: 480px) {
  .topbar-brand img {
    display: block;
    width: 26px;
    height: 28px;
    flex-shrink: 0;
  }
  .topbar-title {
    max-width: 152px;
  }
  .public-header .topbar-title {
    max-width: 160px;
  }
}
/* Integrated workflow components, 2.0 */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar .form-group {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.toolbar .btn {
  flex-shrink: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.metric {
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  color: var(--text-dark);
  min-width: 0;
}
.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1.4;
}
.metric span {
  font-size: 12px;
}
.metric small {
  color: var(--text-muted);
}
.metric:hover {
  border-color: var(--leaf);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.status-grid .metric strong {
  font-size: 23px;
}
.section-gap {
  margin-top: 24px;
}
.receipt {
  padding: 24px;
  background: #edf5eb;
  border: 1px solid #a6c795;
  border-radius: 14px;
  margin-top: 20px;
}
.receipt h3 {
  margin-bottom: 10px;
}
.receipt dl,
.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}
.receipt dd,
.detail-list dd {
  overflow-wrap: anywhere;
}
.notice {
  background: var(--gold-soft);
  border: 1px solid #efe1b7;
  color: #735a20;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 11px;
}
.wide-dialog {
  width: calc(100vw - 32px);
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
}
.wide-dialog form {
  margin: 8px 0;
}
.form-grid .full {
  grid-column: 1/-1;
}
.filter-card {
  padding: 24px;
}
.table-panel {
  padding: 24px;
}
.status-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.status-summary span {
  background: #eef3ee;
  padding: 7px 12px;
  border-radius: 8px;
}
.selection-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.trend-bars {
  display: flex;
  align-items: end;
  gap: 16px;
  height: 180px;
  padding-top: 20px;
}
.trend-item {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.trend-fill {
  background: var(--leaf);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  margin: 0 auto;
  width: 70%;
}
.trend-item small {
  font-size: 10px;
}
.print-card {
  padding: 28px;
  border: 1px solid var(--border);
  max-width: 420px;
  text-align: center;
  margin: auto;
}
.print-card svg {
  max-width: 240px;
  height: auto;
}
.export-progress {
  padding: 12px;
  color: var(--primary-color);
  font-weight: 600;
}
.page-heading .heading-actions {
  flex-wrap: wrap;
}
.card > h2 {
  margin-bottom: 12px;
}
.form-control:disabled {
  background: #f1f3f2;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary-color);
}
.days {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.days label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.subtle {
  color: var(--text-muted);
  font-size: 12px;
}
.attendance-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.attendance-actions .btn {
  flex: 1;
  min-width: 160px;
}
.badge-neutral {
  background: #edf1ef;
  color: #50645a;
}
#result-content {
  overflow-wrap: anywhere;
}
#action-dialog::backdrop {
  background: #10271b77;
}
button.metric {
  width: 100%;
}
button.metric:disabled {
  opacity: 1;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.print-only {
  display: none;
}
@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .toolbar {
    gap: 10px;
  }
  .toolbar .btn {
    width: 100%;
  }
  .metrics-grid {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-card,
  .table-panel {
    padding: 18px;
  }
  .pager {
    align-items: start;
    flex-direction: column;
  }
  .wide-dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .receipt dl,
  .detail-list {
    grid-template-columns: 1fr;
  }
  .receipt dt,
  .detail-list dt {
    font-weight: 600;
  }
  .receipt dd,
  .detail-list dd {
    margin-bottom: 8px;
  }
  .selection-bar .btn {
    width: 100%;
  }
}
@media print {
  .toolbar,
  .pager,
  .selection-bar,
  .row-actions,
  .no-print,
  #alert-msg {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  #action-dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    max-width: none;
    border: 0;
  }
  .print-card {
    border: 0;
  }
  body:has(#action-dialog[open]) > .app-container,
  body:has(#action-dialog[open]) > .sidebar {
    display: none !important;
  }
  .print-slip {
    break-after: page;
  }
  .print-slip:last-child {
    break-after: auto;
  }
}

@media print {
  #action-dialog[open] {
    display: block !important;
    position: static;
    overflow: visible;
    padding: 0;
  }
  #action-dialog .modal-header {
    display: none !important;
  }
  #action-dialog .table {
    table-layout: fixed;
  }
  #action-dialog .table th,
  #action-dialog .table td {
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 5px;
    font-size: 8px;
  }
  #action-dialog thead {
    display: table-header-group;
  }
  #action-dialog tr {
    break-inside: avoid;
  }
  body:has(#action-dialog[open]) {
    overflow: visible;
    min-height: 0;
  }
  .print-letterhead {
    text-align: center;
    margin-bottom: 18px;
  }
  .print-letterhead img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
}

.alert{white-space:pre-line}.teacher-message p{line-height:1.8;margin:10px 0}.teacher-message small{color:var(--text-muted)}#teacher-month-summary{white-space:pre-line}
