:root {
  --green: #008b55;
  --green-dark: #006c43;
  --green-soft: #d9f1e8;
  --ink: #1f2f46;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(115deg, #fff9ef 0%, #fffdf8 48%, #fff4e4 100%);
  overflow: hidden;
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.wave {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 40vh;
  min-height: 220px;
  pointer-events: none;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  padding: 14px 22px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(32, 45, 69, .12);
}

.school-logo {
  width: 104px;
  height: 104px;
  display: block;
  margin: 0 auto 2px;
  object-fit: contain;
}

.title {
  margin: 0;
  color: #009456;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
}

.subtitle {
  margin: 4px 0 10px;
  color: #67778d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .7px;
  text-align: center;
}

.title-line {
  width: 64px;
  height: 2px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: var(--green);
}

.form-group {
  margin-bottom: 10px;
}

.role-group {
  margin-bottom: 8px;
}

.form-label {
  margin-bottom: 5px;
  color: #253144;
  font-size: 11px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #698096;
  transform: translateY(-50%);
  pointer-events: none;
}

.eye-button {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  color: #657a90;
  background: transparent;
  transform: translateY(-50%);
}

.eye-button svg {
  width: 16px;
  height: 16px;
}

.form-control,
.form-select {
  min-height: 38px;
  border: 1.5px solid #43b384;
  border-radius: 6px;
  color: #24334a;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.form-control {
  padding-left: 43px;
}

.password-field {
  padding-right: 42px;
}

.form-select {
  padding-left: 43px;
  background-size: 12px 10px;
}

.form-control::placeholder {
  color: #8a9aaa;
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .18rem rgba(0, 139, 85, .14);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  padding-left: 0;
  margin-top: 3px;
  margin-bottom: 16px;
}

.remember-row .form-check-input {
  flex: 0 0 auto;
  float: none;
  width: 15px;
  height: 15px;
  margin-top: 0;
  margin-left: 0;
  border-color: #8bb9a4;
}

.form-check-input:checked {
  border-color: var(--green);
  background-color: var(--green);
}

.form-check-label {
  color: #39495e;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
}

.btn-login {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 14px rgba(0, 139, 85, .18);
}

.btn-login:hover,
.btn-login:focus {
  background: var(--green-dark);
  color: #fff;
}

.btn-login:disabled,
.btn-login:disabled:hover,
.btn-login:disabled:focus {
  background: #9ca3af;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.login-icon {
  width: 15px;
  height: 15px;
  margin-right: 7px;
}

.footer-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  margin: 14px 0 0;
  color: #3a506b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 575.98px) {
  body {
    overflow-y: auto;
  }

  .login-page {
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 18px 14px;
  }

  .login-card {
    width: min(100%, 330px);
    padding: 14px 18px 15px;
  }

  .school-logo {
    width: 88px;
    height: 88px;
  }

  .title {
    font-size: 21px;
  }

  .subtitle {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .title-line {
    margin-bottom: 12px;
  }

  .form-group {
    margin-bottom: 8px;
  }

  .form-control,
  .form-select {
    min-height: 36px;
    font-size: 11px;
  }

  .btn-login {
    min-height: 36px;
    font-size: 13px;
  }

  .footer-copy {
    width: min(100%, 330px);
    margin-top: 10px;
  }

  .wave {
    height: 24vh;
    min-height: 135px;
  }
}

@media (max-width: 380px), (max-height: 640px) {
  .login-page {
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .login-card {
    padding: 12px 16px 13px;
  }

  .school-logo {
    width: 76px;
    height: 76px;
  }

  .title {
    font-size: 20px;
  }

  .subtitle {
    margin-bottom: 6px;
  }

  .title-line {
    margin-bottom: 10px;
  }

  .remember-row {
    margin-bottom: 8px;
  }
}

.dashboard-body {
  min-height: 100vh;
  background: #f8f6f2;
  color: #111827;
  overflow-x: hidden;
  overflow-y: auto;
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 58px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #020b12;
  color: #fff;
  transition: width .24s ease;
}

.dashboard-sidebar:hover,
.dashboard-sidebar:focus-within {
  width: 230px;
}

.sidebar-brand {
  min-height: 78px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 14px 15px;
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  justify-self: center;
}

.brand-text,
.sidebar-link span {
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity .18s ease;
}

.dashboard-sidebar:hover .brand-text,
.dashboard-sidebar:focus-within .brand-text,
.dashboard-sidebar:hover .sidebar-link span,
.dashboard-sidebar:focus-within .sidebar-link span {
  opacity: 1;
  visibility: visible;
}

.brand-text {
  min-width: 116px;
  color: #fff;
  line-height: 1.15;
  transform: translateY(2px);
}

.brand-text strong,
.brand-text span {
  display: block;
  font-size: 9px;
  font-weight: 800;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}

.sidebar-link {
  min-height: 30px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 13px;
  margin: 0 10px;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-link.active,
.sidebar-link.active:hover,
.sidebar-link.active:focus {
  background: #06a86b;
  color: #fff;
}

.sidebar-link:hover,
.sidebar-link:focus {
  color: #fff;
}

.sidebar-link img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  justify-self: center;
  filter: brightness(0) invert(1);
}

.logout-link {
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 42px;
}

.dashboard-main {
  min-height: 100vh;
  margin-left: 58px;
  transition: margin-left .24s ease;
}

.dashboard-sidebar:hover + .dashboard-main,
.dashboard-sidebar:focus-within + .dashboard-main {
  margin-left: 230px;
}

.dashboard-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px 0 28px;
  background: #06a86b;
}

.active-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-8px);
}

.active-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.app-flash {
  margin: 14px 52px -4px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}

.app-flash.is-success {
  background: #d9f1e8;
  color: #008b55;
}

.app-flash.is-error,
.login-error {
  background: #ffd8d3;
  color: #ef1717;
}

.login-error {
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-content {
  width: 100%;
  min-height: calc(100vh - 48px);
  padding: 24px 52px 32px;
}

.dashboard-content h1 {
  margin: 0 0 24px;
  color: #111;
  font-size: 24px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8vw;
  width: 100%;
  margin-bottom: 34px;
}

.summary-card {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  border-radius: 8px;
  color: #fff;
}

.summary-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.teacher-card {
  background: #08aa6e;
}

.attendance-card {
  background: #03090f;
}

.summary-text {
  min-width: 95px;
  text-align: center;
}

.summary-text strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.summary-text span {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 800;
}

.chart-panel {
  width: 100%;
  padding: 16px 18px 20px;
  border: 1px solid #ede9e2;
  border-radius: 3px;
  background: #fff;
}

.chart-panel h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.chart-box {
  position: relative;
  height: clamp(235px, 34vh, 310px);
  display: grid;
  grid-template-columns: 34px 1fr;
  margin-bottom: 18px;
  overflow: visible;
}

.chart-scale {
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  align-items: center;
  padding: 0 6px 0 0;
  color: #111;
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.dashboard-chart-scale {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 0;
}

.chart-scale span {
  transform: translateY(2px);
}

.bar-chart {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  border: 1px solid #ececec;
  padding: 0 38px;
  background:
    linear-gradient(to bottom, #ececec 1px, transparent 1px);
  background-size: 100% 10%;
  background-position: left top;
}

.dashboard-chart {
  grid-template-columns: repeat(7, 1fr);
  background-size: 100% calc(100% / var(--grid-scale, 10));
}

.bar-item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bar-item span {
  width: 36px;
  height: var(--bar-height, calc(var(--value) * 10%));
  min-height: 0;
  display: block;
  background: #06a86b;
}

.bar-item span[title^="0 "] {
  height: 0;
}

.bar-item strong {
  position: absolute;
  top: calc(100% + 6px);
  color: #111;
  font-size: 8px;
  font-weight: 800;
}

.data-guru-content h1 {
  margin-bottom: 42px;
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.teacher-search {
  position: relative;
  width: min(100%, 280px);
  margin: 0;
}

.teacher-search input {
  width: 100%;
  height: 34px;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  padding: 0 34px 0 10px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

.teacher-search input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.teacher-search input:focus {
  border-color: #06a86b;
  box-shadow: 0 0 0 .16rem rgba(6, 168, 107, .13);
}

.teacher-search span {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 13px;
  height: 13px;
  border: 2px solid #9aa3af;
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.teacher-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #9aa3af;
  transform: rotate(45deg);
}

.btn-add-teacher {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 13px;
  background: #06a86b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn-add-teacher:hover,
.btn-add-teacher:focus {
  background: #008b55;
  color: #fff;
}

.teacher-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #8b8b8b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .1);
}

.teacher-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.teacher-table th {
  height: 42px;
  border-right: 1px solid #058253;
  background: #06a86b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.teacher-table th:last-child,
.teacher-table td:last-child {
  border-right: 0;
}

.teacher-table td {
  height: 38px;
  border-right: 1px solid #8b8b8b;
  border-bottom: 1px solid #c7c7c7;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.teacher-table th:nth-child(1) {
  width: 17%;
}

.teacher-table th:nth-child(2) {
  width: 19%;
}

.teacher-table th:nth-child(3) {
  width: 27%;
}

.teacher-table th:nth-child(4) {
  width: 19%;
}

.teacher-table th:nth-child(5) {
  width: 18%;
}

.teacher-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.teacher-actions a {
  min-width: 42px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.teacher-actions button {
  min-width: 42px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.action-edit,
.action-qr {
  background: #06a86b;
}

.action-delete {
  background: #020b12;
}

.user-content h1 {
  margin-bottom: 42px;
}

.user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.btn-add-user {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #06a86b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.btn-add-user:hover,
.btn-add-user:focus {
  color: #fff;
}

.btn-add-user span {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-1px);
}

.btn-add-user:hover,
.btn-add-user:focus {
  background: #008b55;
}

.user-search {
  width: min(100%, 250px);
}

.user-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #8b8b8b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .1);
}

.user-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.user-table th {
  height: 42px;
  border-right: 1px solid #058253;
  background: #06a86b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.user-table td {
  height: 38px;
  border-right: 1px solid #8b8b8b;
  border-bottom: 1px solid #c7c7c7;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.user-table th:last-child,
.user-table td:last-child {
  border-right: 0;
}

.user-table th:nth-child(1) {
  width: 12.2%;
}

.user-table th:nth-child(2) {
  width: 24.4%;
}

.user-table th:nth-child(3),
.user-table th:nth-child(4) {
  width: 20%;
}

.user-table th:nth-child(5) {
  width: 23.4%;
}

.user-actions {
  gap: 6px;
}

.audit-log-content h1 {
  margin-bottom: 42px;
}

.audit-log-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.audit-log-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #8b8b8b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .1);
}

.audit-log-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.audit-log-table th {
  height: 42px;
  border-right: 1px solid #058253;
  background: #06a86b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.audit-log-table td {
  min-height: 38px;
  border-right: 1px solid #8b8b8b;
  border-bottom: 1px solid #c7c7c7;
  padding: 9px 10px;
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.audit-log-table th:last-child,
.audit-log-table td:last-child {
  border-right: 0;
}

.audit-log-table th:nth-child(1) { width: 18%; }
.audit-log-table th:nth-child(2) { width: 15%; }
.audit-log-table th:nth-child(3) { width: 12%; }
.audit-log-table th:nth-child(4) { width: 20%; }
.audit-log-table th:nth-child(5) { width: 35%; }

.user-actions button {
  min-width: 42px;
  min-height: 22px;
  border-radius: 6px;
  font-size: 9px;
}

.empty-user-row {
  height: 152px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
}

.user-modal.is-open,
.delete-modal.is-open {
  display: flex;
}

.user-modal-card {
  width: min(100%, 520px) !important;
}

.user-form h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: 16px;
  font-weight: 800;
}

.user-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-password-wrap {
  position: relative;
}

.user-password-wrap input {
  padding-right: 36px;
}

.user-password-wrap .user-password-toggle {
  right: 6px;
  width: 24px;
  height: 24px;
  color: #657a90;
}

.user-password-wrap .user-password-toggle svg {
  width: 15px;
  height: 15px;
}

.user-form-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: #ef1717;
  font-size: 12px;
  font-weight: 800;
}

.modal-form-error {
  margin: 0 0 14px;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffd8d3;
  color: #ef1717;
  font-size: 11px;
  font-weight: 800;
}

.delete-modal button {
  border: 0;
}

.recap-content h1 {
  margin-bottom: 42px;
  font-size: 24px;
}

.recap-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.recap-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recap-filter label {
  margin: 0;
  color: #050505;
  font-size: 13px;
  font-weight: 800;
}

.recap-filter input {
  width: 180px;
  height: 34px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 0 10px;
  color: #111;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

.recap-filter input:focus {
  border-color: #06a86b;
  box-shadow: 0 0 0 .16rem rgba(6, 168, 107, .13);
}

.btn-show-recap {
  min-width: 110px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  background: #06a86b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.btn-show-recap:hover,
.btn-show-recap:focus {
  background: #008b55;
}

.recap-export-group {
  display: inline-flex;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
}

.recap-export-group button {
  min-width: 62px;
  min-height: 30px;
  border: 0;
  border-right: 1px solid #d8dde5;
  padding: 0 12px;
  background: #f8f9fa;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.recap-export-group button:last-child {
  border-right: 0;
}

.recap-export-group button:hover,
.recap-export-group button:focus {
  background: #eef2f6;
}

.recap-export-group button[data-export="print"] {
  text-align: left;
  padding-left: 9px;
  padding-right: 15px;
}

.recap-right-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.recap-search {
  width: min(100%, 240px);
}

.recap-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #8b8b8b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .1);
}

.recap-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.recap-table th {
  height: 42px;
  border-right: 1px solid #058253;
  background: #06a86b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.recap-table td {
  height: 38px;
  border-right: 1px solid #b8b8b8;
  border-bottom: 1px solid #d3d3d3;
  color: #050505;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.recap-table th:last-child,
.recap-table td:last-child {
  border-right: 0;
}

.recap-table th:nth-child(1) {
  width: 10%;
}

.recap-table th:nth-child(2) {
  width: 30%;
}

.recap-table th:nth-child(3) {
  width: 20%;
}

.recap-table th:nth-child(4) {
  width: 22%;
}

.recap-table th:nth-child(5) {
  width: 18%;
}

.settings-content h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.settings-page .settings-content {
  min-height: calc(100vh - 48px);
  padding-top: 22px;
  padding-bottom: 18px;
}

.settings-subtitle {
  margin: 0 0 12px;
  color: #070707;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.settings-form {
  display: grid;
  gap: 10px;
}

.settings-panel {
  width: 100%;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  padding: 14px 24px 16px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, .08);
}

.settings-panel label {
  display: block;
  margin: 0 0 4px;
  color: #050505;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}

.settings-panel p {
  margin: 0 0 8px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.time-input-wrap {
  width: min(100%, 330px);
}

.time-input-wrap input {
  width: 100%;
  height: 42px;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  padding: 0 20px;
  color: #050505;
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  outline: none;
  box-shadow: 0 1px 8px rgba(15, 23, 42, .08);
}

.time-input-wrap input:focus {
  border-color: #06a86b;
  box-shadow: 0 0 0 .16rem rgba(6, 168, 107, .13);
}

.time-input-wrap input::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 1;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.btn-save-settings {
  min-width: 270px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: #06a86b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.btn-save-settings:hover,
.btn-save-settings:focus {
  background: #008b55;
}

.btn-save-settings img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.settings-message {
  color: #008b55;
  font-size: 13px;
  font-weight: 800;
}

.profile-content h1 {
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(260px, 380px);
  gap: 24px;
  align-items: start;
}

.profile-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
}

.profile-card h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.profile-card .form-field {
  margin-bottom: 14px;
}

.profile-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
  object-fit: cover;
}

.profile-save {
  margin-top: 8px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.profile-actions .profile-save {
  margin-top: 0;
}

.profile-actions a.profile-save {
  transform: translateY(1px);
}

.profile-qr-actions .qr-close-btn,
.profile-qr-actions .qr-download-btn {
  border: 0;
}

.presensi-content h1 {
  margin-bottom: 30px;
  font-size: 26px;
}

.attendance-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: clamp(22px, 3.6vw, 42px);
  margin-bottom: 36px;
}

.attendance-time-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  text-align: center;
}

.attendance-time-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.attendance-time-card strong {
  display: block;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.attendance-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #aeb4bd;
  border-radius: 4px;
  background: #fff;
}

.attendance-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.attendance-table th {
  height: 40px;
  border-right: 1px solid #058253;
  background: #06a86b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.attendance-table th:last-child,
.attendance-table td:last-child {
  border-right: 0;
}

.attendance-table td {
  height: 38px;
  border-right: 1px solid #b8b8b8;
  border-bottom: 1px solid #b8b8b8;
  color: #070707;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.attendance-table tbody tr:last-child td {
  border-bottom: 0;
}

.attendance-table th:nth-child(1) {
  width: 12.3%;
}

.attendance-table th:nth-child(2) {
  width: 24.6%;
}

.attendance-table th:nth-child(3),
.attendance-table th:nth-child(4) {
  width: 20.2%;
}

.attendance-table th:nth-child(5) {
  width: 22.7%;
}

.attendance-status {
  width: min(112px, 80%);
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.status-present {
  background: #d0f0d9;
  color: #62a587;
}

.status-absent {
  background: #ffd8d3;
  color: #ff756c;
}

.status-late {
  background: #ffedc3;
  color: #df8733;
}

.presensi-page .presensi-content h1 {
  margin-bottom: 30px;
  font-size: 26px;
}

.presensi-page .attendance-time-grid {
  gap: clamp(22px, 3.6vw, 42px);
  margin-bottom: 36px;
}

.presensi-page .attendance-table-wrap {
  border-color: #b4b4b4;
  border-radius: 3px;
}

.scan-form {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.scan-form label {
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.scan-form input {
  height: 40px;
  border: 1px solid #d8dde5;
  border-radius: 7px;
  padding: 0 12px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.scan-form input:focus {
  border-color: #06a86b;
  box-shadow: 0 0 0 .16rem rgba(6, 168, 107, .13);
}

.scan-success-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(2px);
}

.scan-success-modal.is-open {
  display: flex;
}

.scan-success-card {
  position: relative;
  width: min(100%, 330px);
  border-radius: 12px;
  padding: 28px 24px 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  text-align: center;
}

.scan-success-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 12px;
  background: #111827;
  object-fit: cover;
}

.scan-success-card strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.scan-success-card p {
  margin: 8px 0 0;
  color: #06a86b;
  font-size: 17px;
  font-weight: 900;
}

.scan-success-card.is-error p {
  color: #ef1717;
}

.scan-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.teacher-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background: rgba(248, 250, 252, .86);
  backdrop-filter: blur(2px);
}

.teacher-modal:target {
  display: flex;
}

.teacher-modal-card {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid #9aa3af;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.edit-teacher-modal::before {
  content: none;
}

.teacher-modal-strip {
  height: 42px;
  background: #06a86b;
}

.teacher-form {
  padding: 22px 44px 36px;
}

.teacher-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 800;
}

.required-mark {
  color: #ef1717;
}

.form-field small {
  margin-top: -3px;
  color: #111;
  font-size: 7px;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 31px;
  border: 1px solid #d2d6dc;
  border-radius: 6px;
  padding: 0 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.form-field input[type="file"] {
  padding: 3px 8px;
  font-size: 11px;
}

.form-field input[type="file"]::file-selector-button {
  height: 23px;
  margin: 0 8px 0 0;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  vertical-align: middle;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #06a86b;
  box-shadow: 0 0 0 .16rem rgba(6, 168, 107, .13);
}

.teacher-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
}

.teacher-modal .teacher-modal-card {
  width: min(100%, 600px);
}

.teacher-modal .teacher-modal-strip {
  height: 34px;
}

.teacher-modal .teacher-form {
  padding: 18px 34px 28px;
}

.teacher-modal .teacher-form-grid {
  column-gap: 42px;
  row-gap: 12px;
}

.teacher-modal .form-field {
  gap: 5px;
}

.teacher-modal .form-field label {
  font-size: 13px;
}

.teacher-modal .form-field input,
.teacher-modal .form-field select {
  height: 28px;
  border-radius: 5px;
  font-size: 12px;
}

.teacher-modal .form-field input[type="file"] {
  padding: 3px 7px;
  font-size: 10px;
}

.teacher-modal .form-field input[type="file"]::file-selector-button {
  height: 20px;
}

.teacher-modal .teacher-modal-actions {
  margin-top: 28px;
}

.teacher-modal .modal-close-btn,
.teacher-modal .modal-save-btn {
  min-width: 92px;
  min-height: 30px;
  gap: 9px;
  border-radius: 6px;
  font-size: 11px;
}

.teacher-modal .modal-close-btn img,
.teacher-modal .modal-save-btn img {
  width: 15px;
  height: 15px;
}

.modal-close-btn,
.modal-save-btn {
  min-width: 104px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.modal-close-btn {
  background: #ff1414;
}

.modal-save-btn {
  background: #06a86b;
}

.modal-close-btn img,
.modal-save-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(2px);
}

.delete-modal:target {
  display: flex;
}

.delete-modal-card {
  width: min(100%, 420px);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 30px 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  text-align: center;
}

.delete-modal-card h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.delete-modal-message {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.delete-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.delete-confirm-btn,
.delete-cancel-btn {
  min-width: 104px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.delete-confirm-btn,
.delete-confirm-btn:hover,
.delete-confirm-btn:focus {
  background: #ef1717;
  color: #fff;
}

.delete-cancel-btn,
.delete-cancel-btn:hover,
.delete-cancel-btn:focus {
  background: #020b12;
  color: #fff;
}

.logout-modal {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(2px);
}

.logout-modal:target {
  display: flex;
}

.logout-modal-card {
  width: min(100%, 390px);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 30px 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  text-align: center;
}

.logout-modal-card h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.logout-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.logout-confirm-btn,
.logout-cancel-btn {
  min-width: 104px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.logout-confirm-btn,
.logout-confirm-btn:hover,
.logout-confirm-btn:focus {
  background: #ef1717;
  color: #fff;
}

.logout-cancel-btn,
.logout-cancel-btn:hover,
.logout-cancel-btn:focus {
  background: #020b12;
  color: #fff;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(2px);
}

.qr-modal:target {
  display: flex;
}

.qr-modal-card {
  width: min(100%, 330px);
  border-radius: 6px;
  padding: 17px 20px 19px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.qr-modal-card h2 {
  margin: 0 0 11px;
  color: #111827;
  font-size: 17px;
  font-weight: 500;
}

.qr-card-preview {
  position: relative;
  width: 205px;
  margin: 0 auto;
  aspect-ratio: 1280 / 1792;
}

.qr-template {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qr-pattern {
  position: absolute;
  top: 35.3%;
  left: 50%;
  width: 79px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px;
  border: 2px solid #fff;
  background: #fff;
  transform: translateX(-50%);
}

.qr-pattern span {
  background: #111;
}

.qr-pattern span:nth-child(2),
.qr-pattern span:nth-child(4),
.qr-pattern span:nth-child(7),
.qr-pattern span:nth-child(10),
.qr-pattern span:nth-child(11),
.qr-pattern span:nth-child(14),
.qr-pattern span:nth-child(18),
.qr-pattern span:nth-child(20),
.qr-pattern span:nth-child(22),
.qr-pattern span:nth-child(25) {
  background: #fff;
}

.qr-real-image {
  position: absolute;
  top: 32.6%;
  left: 50%;
  width: 86px;
  height: 86px;
  border: 4px solid #fff;
  background: #fff;
  transform: translateX(-50%);
}

.qr-card-preview strong {
  position: absolute;
  top: 75.8%;
  left: 50%;
  width: 160px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.qr-card-preview em {
  position: absolute;
  top: 82.3%;
  left: 50%;
  width: 185px;
  color: #6b7280;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
}

.qr-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}

.qr-close-btn,
.qr-download-btn {
  min-width: 116px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.qr-close-btn,
.qr-close-btn:hover,
.qr-close-btn:focus {
  background: #ff1414;
  color: #fff;
}

.qr-download-btn,
.qr-download-btn:hover,
.qr-download-btn:focus {
  background: #06a86b;
  color: #fff;
}

@media (max-width: 767.98px) {
  .dashboard-sidebar,
  .dashboard-sidebar:hover,
  .dashboard-sidebar:focus-within {
    width: 58px;
  }

  .dashboard-main,
  .dashboard-sidebar:hover + .dashboard-main,
  .dashboard-sidebar:focus-within + .dashboard-main {
    margin-left: 58px;
  }

  .dashboard-content {
    padding: 20px 16px 36px;
  }

  .data-guru-content h1 {
    margin-bottom: 24px;
  }

  .presensi-content h1 {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .attendance-time-grid {
    gap: 16px;
    margin-bottom: 24px;
  }

  .attendance-time-card {
    min-height: 104px;
  }

  .attendance-time-card h2 {
    font-size: 16px;
  }

  .attendance-table th {
    height: 42px;
    font-size: 13px;
  }

  .attendance-table td {
    height: 40px;
    font-size: 12px;
  }

  .attendance-status {
    min-height: 28px;
    font-size: 12px;
  }

  .data-toolbar {
    align-items: stretch;
    margin-bottom: 18px;
  }

  .recap-content h1 {
    margin-bottom: 34px;
    font-size: 26px;
  }

  .recap-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  .recap-right-tools {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }

  .recap-filter {
    flex-wrap: wrap;
    gap: 12px;
  }

  .recap-filter label {
    font-size: 16px;
  }

  .recap-filter input {
    width: 180px;
    height: 40px;
    font-size: 13px;
  }

  .btn-show-recap {
    min-width: 140px;
    min-height: 40px;
    font-size: 15px;
  }

  .recap-export-group button {
    min-width: 64px;
    min-height: 40px;
    font-size: 14px;
  }

  .recap-table th {
    height: 46px;
    font-size: 14px;
  }

  .recap-table td {
    height: 44px;
    font-size: 12px;
  }

  .user-content h1 {
    margin-bottom: 24px;
  }

  .settings-content h1 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .settings-subtitle {
    font-size: 15px;
  }

  .settings-panel {
    padding: 18px;
  }

  .settings-panel label {
    font-size: 18px;
  }

  .settings-panel p {
    font-size: 14px;
  }

  .time-input-wrap input {
    height: 48px;
    font-size: 16px;
  }

  .settings-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .btn-save-settings {
    min-width: 0;
    width: min(100%, 270px);
    min-height: 46px;
    gap: 12px;
    font-size: 14px;
  }

  .btn-save-settings img {
    width: 24px;
    height: 24px;
  }

  .user-toolbar {
    align-items: stretch;
    margin-bottom: 20px;
  }

  .btn-add-user {
    min-height: 34px;
    gap: 10px;
    font-size: 14px;
  }

  .btn-add-user span {
    font-size: 24px;
  }

  .teacher-search {
    width: min(100%, 240px);
  }

  .teacher-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 44px;
  }

  .teacher-modal-strip {
    height: 42px;
  }

  .teacher-form {
    padding: 20px 20px 28px;
  }

  .teacher-form-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .form-field label {
    font-size: 14px;
  }

  .teacher-modal-actions {
    margin-top: 28px;
  }

  .modal-close-btn,
  .modal-save-btn {
    min-width: 104px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .summary-card {
    min-height: 104px;
  }

  .chart-box {
    height: 205px;
  }

  .bar-chart {
    padding-inline: 12px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-body {
    background: #f8f6f2;
  }

  .dashboard-sidebar,
  .dashboard-sidebar:hover,
  .dashboard-sidebar:focus-within {
    inset: auto 0 0 0;
    width: 100%;
    height: 58px;
    flex-direction: row;
    align-items: center;
    overflow: visible;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    padding: 0;
  }

  .sidebar-link,
  .logout-link {
    width: 44px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    margin: 0;
  }

  .sidebar-link.active,
  .sidebar-link.active:hover,
  .sidebar-link.active:focus {
    width: 40px;
    min-height: 40px;
    margin: 0 2px;
  }

  .sidebar-link img {
    width: 21px;
    height: 21px;
  }

  .dashboard-sidebar .sidebar-link span,
  .dashboard-sidebar:hover .sidebar-link span,
  .dashboard-sidebar:focus-within .sidebar-link span {
    display: none;
  }

  .dashboard-main,
  .dashboard-sidebar:hover + .dashboard-main,
  .dashboard-sidebar:focus-within + .dashboard-main {
    margin-left: 0;
    padding-bottom: 58px;
  }

  .dashboard-topbar {
    height: 40px;
    padding: 0 14px;
  }

  .active-user {
    gap: 5px;
    font-size: 10px;
    transform: translateX(-6px);
  }

  .active-user img {
    width: 26px;
    height: 26px;
  }

  .guru-sidebar {
    justify-content: center;
  }

  .guru-sidebar .sidebar-nav {
    flex: 0 0 auto;
    justify-content: center;
    gap: 14px;
  }

  .guru-sidebar .logout-link {
    margin-left: 14px;
  }

  .dashboard-content {
    min-height: calc(100vh - 98px);
    padding: 16px 14px 24px;
  }

  .app-flash {
    margin: 10px 14px -2px;
  }

  .dashboard-content h1 {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .settings-subtitle {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .settings-form {
    gap: 12px;
  }

  .settings-panel {
    padding: 16px;
  }

  .settings-panel label {
    font-size: 18px;
  }

  .settings-panel p {
    font-size: 14px;
  }

  .time-input-wrap {
    width: 100%;
  }

  .time-input-wrap input {
    height: 46px;
    padding-inline: 14px;
    font-size: 16px;
  }

  .btn-save-settings {
    width: 100%;
  }

  .attendance-time-grid {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .attendance-time-card {
    min-height: 92px;
  }

  .attendance-time-card h2 {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .attendance-table {
    min-width: 680px;
  }

  .recap-filter {
    width: 100%;
  }

  .recap-filter input,
  .btn-show-recap {
    width: 100%;
  }

  .recap-table {
    min-width: 760px;
  }

  .user-toolbar {
    flex-direction: column;
  }

  .user-search {
    width: 100%;
  }

  .user-table {
    min-width: 680px;
  }

  .user-table th {
    height: 42px;
    font-size: 12px;
  }

  .user-table td {
    height: 40px;
    font-size: 11px;
  }

  .user-actions button {
    min-width: 42px;
    min-height: 22px;
    font-size: 9px;
  }

  .summary-grid {
    gap: 12px;
    margin-bottom: 18px;
  }

  .summary-card {
    min-height: 92px;
    justify-content: flex-start;
    gap: 22px;
    padding: 0 26px;
  }

  .summary-card img {
    width: 46px;
    height: 46px;
  }

  .summary-text {
    min-width: 86px;
  }

  .summary-text strong {
    font-size: 34px;
  }

  .summary-text span {
    margin-top: 7px;
    font-size: 14px;
  }

  .chart-panel {
    padding: 12px 10px 14px;
  }

  .chart-panel h2 {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .chart-box {
    height: 210px;
    grid-template-columns: 28px 1fr;
  }

  .chart-scale {
    padding-right: 4px;
    font-size: 7px;
  }

  .bar-chart {
    padding: 0 8px;
  }

  .bar-item {
    gap: 5px;
  }

  .bar-item span {
    width: 20px;
  }
}

@media print {
  .dashboard-sidebar,
  .dashboard-topbar,
  .recap-toolbar,
  .logout-modal {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  .dashboard-content {
    min-height: auto;
    padding: 0;
  }

  .recap-content h1 {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .recap-table-wrap {
    overflow: visible;
    border-color: #111;
  }

  .recap-table {
    min-width: 0;
  }

  .recap-table th,
  .recap-table td {
    height: 34px;
    color: #111;
    font-size: 11px;
  }
}
