:root {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  color: #172b43;
  background: #f4f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #173c67;
  --navy2: #254e7f;
  --teal: #188f86;
  --blue: #3379bc;
  --purple: #7155b7;
  --amber: #d88b29;
  --green: #278b63;
  --red: #b94b53;
  --line: #e8ecf1;
  --muted: #7c8796;
  --white: #fff;
  --shadow: 0 10px 28px #20334d08;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #569ad66e;
  outline-offset: 2px;
}
button:focus:not(:focus-visible) {
  outline: 0;
}
::selection {
  background: #d8e7fa;
  color: #173c67;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 254px;
  z-index: 30;
  background: linear-gradient(175deg, #173c67, #132f51 70%, #122a47);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 23px 16px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 10px 26px;
  border-bottom: 1px solid #ffffff19;
}
.brand-icon,
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 15px #091d382e;
}
.brand > b,
.brand span {
  display: grid;
  gap: 4px;
}
.brand b {
  font-size: 17px;
}
.brand small {
  color: #bdcbdb;
  font-size: 13px;
}
.nav-caption {
  padding: 24px 12px 11px;
  color: #a9bbcf;
  font-size: 13px;
  font-weight: 600;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  border: 0;
  border-radius: 10px;
  width: 100%;
  height: 45px;
  background: transparent;
  color: #d2dfed;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 15px;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-link:hover {
  background: #ffffff10;
  color: #fff;
}
.nav-link.active {
  background: linear-gradient(90deg, #fff1, #ffffff17);
  color: #fff;
  font-weight: 700;
  box-shadow: inset -3px 0 #79c8cb;
}
.nav-link i {
  margin-right: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86d5cb;
}
.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff1c;
  padding: 15px 8px 3px;
  display: grid;
  grid-template-columns: 11px 1fr;
  align-items: center;
  gap: 6px;
  color: #d5e0ed;
  font-size: 14px;
}
.secure-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4bc698;
  box-shadow: 0 0 0 4px #4bc69820;
}
.sidebar-bottom small {
  grid-column: 2;
  color: #91a7bd;
  font-size: 12px;
}
.main-area {
  margin-left: 0;
  margin-right: 254px;
  min-height: 100vh;
}
.topbar {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffeb;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
  gap: 20px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #778494;
  font-size: 14px;
}
.crumb b {
  color: #b9c0cb;
}
.crumb strong {
  font-weight: 700;
  color: #223b58;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-date {
  color: #778494;
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #e7eef7;
  font-weight: 800;
}
.header-user {
  display: grid;
  gap: 2px;
  min-width: 96px;
}
.header-user b {
  font-size: 14px;
}
.header-user small {
  color: var(--muted);
  font-size: 12px;
}
.logout {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #536276;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.logout:hover {
  color: var(--red);
  border-color: #eccfd0;
}
.logout:first-letter {
  font-size: 19px;
}
.content {
  max-width: 1500px;
  padding: 28px 31px 12px;
  margin: auto;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 3px 8px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  color: #96a0ad;
  font-size: 12px;
}
.mobile-menu,
.menu-overlay {
  display: none;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 21px;
}
.page-title h1 {
  margin: 4px 0 7px;
  color: #203b5c;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
}
.page-title .muted {
  margin: 0;
}
.eyebrow {
  color: #8390a2;
  font-size: 12px;
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.title-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card {
  min-width: 0;
  background: var(--white);
  border: 1px solid #e9edf2;
  border-radius: 15px;
  padding: 20px 21px;
  margin-bottom: 17px;
  box-shadow: var(--shadow);
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-heading h2 {
  margin: 0 0 5px;
  font-size: 17px;
  color: #233e5d;
}
.card-heading p {
  margin: 0;
  color: #8793a1;
  font-size: 13px;
  line-height: 1.7;
}
.section-heading {
  margin: 22px 0 12px;
}
.section-heading h2 {
  margin: 0 0 5px;
  font-size: 18px;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.87fr);
  gap: 16px;
}
.dashboard-grid > .card {
  height: 100%;
  margin: 0 0 17px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.stat-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.stat-icon {
  flex: 0 0 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.stat-icon.blue {
  background: #eaf2fb;
  color: #3677b7;
}
.stat-icon.violet {
  background: #f0ecfb;
  color: #745ab5;
}
.stat-icon.amber {
  background: #fff3e0;
  color: #d08726;
}
.stat-icon.green {
  background: #e8f6ee;
  color: #2b9064;
}
.stat-card > div {
  display: grid;
  gap: 4px;
}
.stat-card small {
  color: #758395;
  font-size: 12px;
}
.stat-card b {
  color: #233d5a;
  font-size: 22px;
  line-height: 1.4;
}
.stat-card div > span {
  font-size: 11px;
  color: #a0a9b4;
}
.text-link {
  border: 0;
  background: transparent;
  color: #3577af;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.text-link span {
  font-size: 19px;
  margin-right: 4px;
}
.quick-links {
  display: grid;
  gap: 8px;
}
.quick-links button {
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
  min-height: 52px;
  padding: 9px 11px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #344b65;
}
.quick-links button:hover {
  background: #f7f9fc;
  border-color: #dfe7f0;
}
.quick-links button span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf3f8;
  display: grid;
  place-items: center;
  color: #3a739f;
  font-size: 19px;
}
.quick-links button b {
  font-size: 13px;
}
.quick-links button i {
  font-style: normal;
  margin-right: auto;
  color: #98a5b3;
}
.attendance-chart {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 6px;
}
.ring {
  width: 146px;
  height: 146px;
  flex: 0 0 146px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#298d64 var(--present), #e8b95e 0);
}
.ring > div {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
}
.ring b {
  font-size: 25px;
  color: #203b5a;
}
.ring small {
  font-size: 12px;
  color: #8a95a3;
}
.chart-legend {
  display: grid;
  gap: 14px;
}
.chart-legend > span {
  font-size: 13px;
  color: #6d7a8a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-legend b {
  margin-right: auto;
  color: #354e69;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.legend-dot.present {
  background: #298d64;
}
.legend-dot.absent {
  background: #e8b95e;
}
.legend-dot.total {
  background: #457ab0;
}
.trend-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  padding: 12px 1px 0;
}
.trend-point {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 17px 13px;
  justify-items: center;
  gap: 1px;
  align-items: end;
}
.trend-bar {
  height: 100%;
  width: min(19px, 75%);
  align-self: stretch;
  border-radius: 7px 7px 2px 2px;
  background: #edf1f5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.bar-absent {
  display: block;
  width: 100%;
  background: #e7b957;
  min-height: 0;
}
.bar-present {
  display: block;
  width: 100%;
  background: #2a946d;
  min-height: 0;
}
.trend-point small,
.trend-point > span {
  color: #8793a1;
  font-size: 11px;
  white-space: nowrap;
}
.trend-point > span {
  font-size: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition:
    filter 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button.light {
  color: #345879;
  background: #f1f5f9;
  border-color: #e3eaf0;
}
.button.danger {
  background: #fff3f2;
  border-color: #f1d9d7;
  color: #a84a4f;
}
.button.success {
  background: #eaf7f0;
  border-color: #d5eddf;
  color: #26784f;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.row-actions .button {
  min-height: 31px;
  padding: 6px 9px;
  font-size: 12px;
}
.required {
  color: var(--red);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #46576a;
  font-size: 13px;
  font-weight: 600;
}
.field.wide,
.form-span {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea,
.date-picker > input,
.builder-field input,
.builder-field select,
.builder-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  color: #233b56;
  padding: 9px 11px;
  min-height: 39px;
  font-size: 14px;
  outline-color: #81afd5;
}
.field textarea,
.builder-field textarea {
  resize: vertical;
  line-height: 1.8;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b1b9c3;
}
.field input[readonly] {
  background: #f5f7f9;
  color: #748195;
}
.form-span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.field input[type="number"] {
  direction: ltr;
  text-align: right;
}
.field input[type="file"] {
  padding: 7px;
  height: auto;
}
.notice {
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.8;
}
.notice.error {
  color: #9b3e49;
  background: #fff3f2;
  border-color: #f1d9d8;
}
.notice.success {
  color: #27704f;
  background: #edf8f2;
  border-color: #d5eddf;
}
.notice.warning {
  color: #8a6424;
  background: #fff8e9;
  border-color: #f0e0b9;
}
.empty {
  padding: 24px 14px;
  border: 1px dashed #dde4ec;
  border-radius: 10px;
  text-align: center;
  color: #8995a2;
  font-size: 13px;
  line-height: 1.8;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #edf0f3;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}
thead th {
  background: #f7f9fb;
  color: #66768a;
  font-size: 12px;
  font-weight: 700;
}
tbody tr:last-child > td,
tbody tr:last-child > th {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfd;
}
tbody td {
  color: #40546b;
  max-width: 300px;
  white-space: normal;
  line-height: 1.7;
}
tbody td:first-child {
  font-weight: 600;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: #eef4fa;
  color: #3e709d;
  padding: 4px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.table-wrap td input {
  width: 84px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  direction: ltr;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
}
.school-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e9f1f8;
  color: #315e85;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.profile-summary > div {
  display: grid;
  gap: 4px;
}
.profile-summary b {
  font-size: 17px;
}
.profile-summary span,
.profile-summary small {
  font-size: 12px;
  color: #77869a;
}
.summary-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin: 13px 0;
}
.summary-detail > span {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f8fa;
}
.summary-detail small {
  font-size: 11px;
  color: #8996a5;
}
.summary-detail b {
  font-size: 13px;
  font-weight: 600;
}
.count-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.count-table h3,
.profile-summary + h3 {
  margin: 8px 0 9px;
  color: #37516e;
  font-size: 14px;
}
.count-table table {
  text-align: center;
}
.count-table th,
.count-table td {
  text-align: center;
  padding: 7px;
}
.detail-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: #f4f6f9;
  padding: 23px;
  box-shadow: 0 18px 80px #0c20375e;
}
.detail-dialog::backdrop {
  background: #12253e81;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: sticky;
  top: 0;
  float: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #59687a;
  padding: 6px 9px;
  font-size: 12px;
  z-index: 3;
}
.detail-dialog > .card {
  margin-top: 10px;
}
.date-picker {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.date-picker > input {
  border-radius: 8px 0 0 8px;
  direction: ltr;
  text-align: center;
}
.date-toggle {
  flex: 0 0 42px;
  border: 1px solid #dfe5ec;
  border-right: 0;
  border-radius: 0 8px 8px 0;
  background: #edf3f8;
  color: #375b7d;
  font-size: 21px;
}
.calendar-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: transparent;
  border: 0;
  cursor: default;
}
.calendar {
  position: absolute;
  z-index: 46;
  top: calc(100% + 7px);
  right: 0;
  width: min(320px, calc(100vw - 45px));
  padding: 13px;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 42px #18283a2b;
}
.calendar-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 83px 34px;
  gap: 5px;
  margin-bottom: 9px;
}
.calendar-head select,
.calendar-head button {
  min-width: 0;
  height: 36px;
  border: 1px solid #e8ecf1;
  border-radius: 7px;
  background: #f9fafb;
  color: #3a4f65;
  font-size: 13px;
  text-align: center;
}
.calendar-head button {
  font-size: 20px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.calendar-days > span {
  padding: 6px 1px;
  color: #8895a4;
  font-size: 12px;
}
.calendar-days i {
  height: 32px;
}
.calendar-days button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344a63;
  font-size: 13px;
}
.calendar-days button:hover {
  background: #edf3f8;
}
.calendar-days button.selected {
  background: #173c67;
  color: #fff;
}
.today-link {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-top: 1px solid #eef0f3;
  background: transparent;
  color: #3577a8;
  padding: 9px 4px 1px;
  font-size: 12px;
}
.today-link:hover {
  color: var(--teal);
}
.target-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
}
.check-label {
  display: flex !important;
  grid-template-columns: 18px 1fr !important;
  align-items: center;
  gap: 8px !important;
  padding: 7px 5px;
  color: #455971 !important;
  font-size: 12px !important;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}
.form-editor .field.wide {
  gap: 10px;
}
.builder-fields {
  display: grid;
  gap: 11px;
}
.builder-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 13px;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  background: #fafbfd;
}
.builder-top {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.builder-index {
  font-size: 12px;
  color: #748398;
  font-weight: 700;
}
.icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
}
.danger-icon {
  background: #fff1f0;
  color: #aa4850;
  font-size: 21px;
}
.check-label > span {
  font-size: 12px;
}
.form-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-form-card {
  margin: 0;
}
.info-form-card h2,
.info-form-card h3 {
  margin: 9px 0;
  font-size: 16px;
}
.info-form-card > .card-heading {
  align-items: flex-start;
}
.answer-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.answer-cell {
  padding: 9px 10px;
  background: #f7f9fb;
  border-radius: 7px;
  min-width: 0;
}
.answer-cell small {
  color: #8391a0;
  font-size: 11px;
}
.answer-cell p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer-details summary {
  color: #3375a9;
  cursor: pointer;
  font-size: 12px;
}
.answer-details .answers-grid {
  min-width: 250px;
}
.summary-form {
  padding: 15px;
  border: 1px solid #ebeff3;
  border-radius: 10px;
}
.summary-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.summary-form h3 {
  margin: 9px 0 5px;
  color: #294664;
  font-size: 15px;
}
.summary-form p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #84909f;
}
.small {
  font-size: 12px;
}
.forward-form {
  display: grid;
  gap: 11px;
}
.review-note {
  padding: 9px 11px;
  margin: 8px 0;
  background: #fff7e8;
  color: #795e2e;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.8;
}
.inbox-list {
  display: grid;
  gap: 10px;
  max-height: 690px;
  overflow: auto;
}
.message-card {
  padding: 13px;
  border: 1px solid #ebeff3;
  border-radius: 10px;
  background: #fff;
}
.message-card.unread {
  border-right: 3px solid #3b8a83;
  background: #fbfefd;
}
.message-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.message-top time {
  font-size: 11px;
  color: #84909d;
}
.message-card > b {
  font-size: 14px;
  color: #294765;
}
.message-byline {
  margin: 4px 0;
  color: #8290a0;
  font-size: 12px;
}
.message-content {
  margin: 8px 0 11px;
  color: #526379;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forward-form > .target-list {
  max-height: 210px;
  overflow: auto;
}
.password-card {
  max-width: 720px;
}
.security-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eef4fa;
  color: #385d84;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: linear-gradient(145deg, #eef3f8, #f6f8fa 56%, #ecf3f3);
}
.login-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shape-one {
  width: 390px;
  height: 390px;
  top: -220px;
  right: -95px;
  background: #dae6f0;
}
.shape-two {
  width: 300px;
  height: 300px;
  bottom: -210px;
  left: -105px;
  background: #dcebe9;
}
.login-card {
  position: relative;
  width: min(100%, 470px);
  padding: 36px 38px;
  border: 1px solid #e6ebf0;
  border-radius: 17px;
  background: #ffffffed;
  box-shadow: 0 22px 72px #1c385017;
}
.login-card .logo-mark {
  margin-bottom: 19px;
  background: var(--navy);
  color: #fff;
}
.login-card h1 {
  font-size: 24px;
  margin: 4px 0 5px;
  color: #1d3957;
}
.login-card .muted {
  margin: 4px 0 18px;
}
.login-form {
  grid-template-columns: 1fr;
  gap: 12px;
}
.login-form > .button {
  width: 100%;
  margin-top: 4px;
  min-height: 43px;
}
.login-foot {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  color: #8a96a3;
  font-size: 11px;
}
.loading-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: #758494;
  font-size: 14px;
}
.loader {
  width: 31px;
  height: 31px;
  border: 3px solid #dce5ed;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 220px;
    padding-inline: 13px;
  }
  .main-area {
    margin-right: 220px;
  }
  .content,
  .topbar {
    padding-inline: 22px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .attendance-chart {
    gap: 18px;
  }
  .ring {
    width: 124px;
    height: 124px;
    flex-basis: 124px;
  }
  .ring > div {
    width: 96px;
    height: 96px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 254px;
    inset: 0 0 0 auto;
    transform: translate(105%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }
  .sidebar.is-open {
    transform: translate(0);
    box-shadow: 0 0 50px #101e3152;
  }
  .main-area {
    margin-right: 0;
  }
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: #101e3180;
    z-index: 29;
  }
  .menu-overlay.show {
    display: block;
  }
  .mobile-menu {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: #344e69;
    font-size: 19px;
  }
  .topbar {
    height: 62px;
    padding-inline: 15px;
  }
  .header-date {
    display: none;
  }
  .content {
    padding: 21px 15px 10px;
  }
  .crumb {
    margin-left: auto;
    font-size: 12px;
  }
  .top-actions {
    gap: 8px;
  }
  .header-user {
    min-width: 0;
  }
  .header-user b {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .logout span {
    display: none;
  }
  .logout {
    width: 34px;
    justify-content: center;
    padding: 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .card {
    margin-bottom: 0;
  }
  .chart-card,
  .quick-card {
    min-height: 210px;
  }
}
@media (max-width: 560px) {
  .topbar {
    gap: 9px;
  }
  .crumb > span,
  .crumb > b {
    display: none;
  }
  .crumb strong {
    font-size: 12px;
  }
  .header-avatar {
    width: 33px;
    height: 33px;
  }
  .header-user small {
    font-size: 11px;
  }
  .header-user b {
    font-size: 12px;
    max-width: 84px;
  }
  .content {
    padding: 17px 11px 8px;
  }
  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .page-title h1 {
    font-size: 21px;
  }
  .page-title .muted {
    font-size: 12px;
  }
  .title-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .card {
    padding: 15px 13px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .card-heading {
    gap: 8px;
    margin-bottom: 12px;
  }
  .card-heading h2 {
    font-size: 15px;
  }
  .card-heading p {
    font-size: 12px;
  }
  .stat-grid {
    gap: 8px;
    margin-bottom: 11px;
  }
  .stat-card {
    padding: 11px 9px;
    gap: 8px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 10px;
    font-size: 18px;
  }
  .stat-card small {
    font-size: 11px;
  }
  .stat-card b {
    font-size: 19px;
  }
  .stat-card div > span {
    font-size: 10px;
  }
  .dashboard-grid {
    gap: 11px;
  }
  .attendance-chart {
    justify-content: center;
    gap: 23px;
  }
  .ring {
    width: 113px;
    height: 113px;
    flex-basis: 113px;
  }
  .ring > div {
    width: 86px;
    height: 86px;
  }
  .ring b {
    font-size: 22px;
  }
  .chart-legend {
    gap: 11px;
  }
  .chart-legend > span {
    font-size: 12px;
  }
  .trend-chart {
    gap: 2px;
    height: 151px;
  }
  .trend-bar {
    width: min(15px, 82%);
  }
  .trend-point small {
    font-size: 10px;
  }
  .trend-point > span {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .field.wide,
  .form-span {
    grid-column: 1;
  }
  .form-span {
    flex-wrap: wrap;
  }
  .button {
    font-size: 12px;
    min-height: 36px;
    padding: 7px 11px;
  }
  .table-wrap {
    border-radius: 8px;
  }
  table {
    font-size: 12px;
  }
  th,
  td {
    padding: 9px;
  }
  thead th {
    font-size: 11px;
  }
  .row-actions {
    flex-wrap: wrap;
  }
  .row-actions .button {
    font-size: 11px;
  }
  .count-tables {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .summary-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .builder-field {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }
  .builder-top {
    grid-column: 1;
  }
  .answers-grid {
    grid-template-columns: 1fr;
  }
  .profile-summary b {
    font-size: 15px;
  }
  .detail-dialog {
    padding: 13px;
    width: calc(100vw - 16px);
  }
  .detail-dialog .page-title h1 {
    font-size: 18px;
  }
  .login {
    padding: 17px;
  }
  .login-card {
    padding: 26px 20px;
  }
  .login-card h1 {
    font-size: 21px;
  }
  .login-foot {
    font-size: 10px;
  }
  .site-footer {
    font-size: 10px;
    gap: 12px;
  }
  .calendar {
    width: min(300px, calc(100vw - 32px));
    right: auto;
    left: 0;
  }
  .date-picker > input {
    font-size: 13px;
  }
  .inbox-list {
    max-height: 550px;
  }
  .message-card {
    padding: 11px;
  }
  .summary-form-head {
    align-items: flex-start;
  }
  .summary-form-head > .button {
    max-width: 115px;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.forward-options {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.forward-options summary {
  cursor: pointer;
  color: #345879;
  font-size: 14px;
  font-weight: 700;
}
.forward-options[open] summary {
  margin-bottom: 12px;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.message-actions .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.brand small {
  line-height: 1.7;
}
.title-actions {
  flex-wrap: wrap;
}
.form-export-controls {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.form-export-controls > .field {
  min-width: min(240px, 65vw);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.staff-person {
  min-width: 0;
  border: 1px solid #ebeff3;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.staff-person > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.staff-person h3 {
  margin: 0 0 5px;
  color: #294664;
  font-size: 15px;
}
.staff-person header p {
  margin: 0;
  color: #7c8796;
  font-size: 12px;
}
.staff-person header > .tag {
  max-width: 55%;
  white-space: normal;
  line-height: 1.7;
}
.staff-person .summary-detail {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}
.staff-person .summary-detail b {
  overflow-wrap: anywhere;
}
.staff-address {
  grid-column: 1/-1;
}
@media (max-width: 700px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .form-export-controls {
    width: 100%;
    align-items: flex-end;
  }
  .form-export-controls > .field {
    flex: 1;
    min-width: 145px;
  }
  .staff-person header > .tag {
    max-width: 48%;
  }
}

.brand-icon {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
}
.login-card .logo-mark {
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
}
.topbar-logo {
  display: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 1180px) {
  .topbar-logo {
    display: block;
  }
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fafbfd;
}
.filter-bar .field:first-child {
  grid-column: span 2;
}
.filter-reset {
  display: flex;
  align-items: flex-end;
}
.filter-reset .button {
  width: 100%;
}
@media (max-width: 560px) {
  .filter-bar .field:first-child {
    grid-column: auto;
  }
}

.brand-icon {
  width: 72px;
  height: 72px;
}
.topbar-logo {
  display: block;
  width: 44px;
  height: 44px;
}
.login-card .logo-mark {
  width: 190px;
  height: 190px;
}

/* ---- آیکون‌های جدید و فعال ---- */
.nama-ic {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}
.nav-icon {
  --ni: #9fd6e6;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  color: var(--ni);
  background: color-mix(in srgb, var(--ni) 16%, transparent);
  transition:
    transform 0.22s cubic-bezier(0.3, 1.5, 0.5, 1),
    background 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.nav-link:hover .nav-icon {
  transform: translateY(-2px) scale(1.1);
  background: color-mix(in srgb, var(--ni) 30%, transparent);
}
.nav-link.active .nav-icon {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--ni),
    color-mix(in srgb, var(--ni) 45%, #0d3a6b)
  );
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ni) 55%, transparent);
  animation: ni-pop 0.45s ease;
}
.nav-link:hover .nama-ic {
  animation: ic-wiggle 0.5s ease;
}
@keyframes ni-pop {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes ic-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-9deg);
  }
  65% {
    transform: rotate(7deg);
  }
}
.ni-dashboard {
  --ni: #5cc8ff;
}
.ni-accounts {
  --ni: #b39bff;
}
.ni-schools,
.ni-profile {
  --ni: #4ade80;
}
.ni-staff {
  --ni: #f9a8d4;
}
.ni-attendance {
  --ni: #fbbf24;
}
.ni-visits {
  --ni: #fb923c;
}
.ni-forms {
  --ni: #2dd4bf;
}
.ni-messages {
  --ni: #7db3ff;
}
.ni-password {
  --ni: #cbd5e1;
}
.nav-link {
  height: 50px;
}
.mobile-menu .nama-ic {
  width: 21px;
  height: 21px;
}
.logout .nama-ic {
  width: 16px;
  height: 16px;
}
.school-symbol .nama-ic {
  width: 28px;
  height: 28px;
}
.header-date {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  white-space: nowrap;
  border-left: 0;
  border-right: 0;
  padding: 0 0 0 15px;
  border-inline-end: 1px solid var(--line);
  font-weight: 600;
  color: #5d6b7c;
}
button.stat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  text-align: right;
  font: inherit;
  color: inherit;
  margin: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
button.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #20334d22;
  border-color: #c9dcee;
}
button.stat-card:active {
  transform: translateY(-1px);
}
button.stat-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button.stat-card::after {
  content: "←";
  position: absolute;
  left: 12px;
  top: 10px;
  color: #8a99ad;
  font-size: 16px;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
button.stat-card:hover::after {
  opacity: 1;
  transform: none;
}
.stat-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 25px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}
button.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
}
.stat-icon.blue {
  background: linear-gradient(135deg, #55b0ff, #2a62b8);
  box-shadow: 0 7px 16px #2a62b845;
  color: #fff;
}
.stat-icon.violet {
  background: linear-gradient(135deg, #a58bff, #6240b8);
  box-shadow: 0 7px 16px #6240b845;
  color: #fff;
}
.stat-icon.amber {
  background: linear-gradient(135deg, #ffc15a, #e07b12);
  box-shadow: 0 7px 16px #e07b1245;
  color: #fff;
}
.stat-icon.green {
  background: linear-gradient(135deg, #4fd69c, #1b8a5e);
  box-shadow: 0 7px 16px #1b8a5e45;
  color: #fff;
}
@media (max-width: 560px) {
  .stat-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 21px;
  }
  .nav-link {
    height: 48px;
  }
}
@media (max-width: 700px) {
  .header-date {
    display: block;
    font-size: 11px;
    padding-left: 8px;
    max-width: 92px;
    white-space: normal;
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-icon,
  .stat-icon,
  button.stat-card,
  .nama-ic {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== نسخهٔ ۱.۳.۵ ===== */
body {
  font-size: 15px;
  line-height: 1.7;
}
.nav-icon {
  font-size: 20px;
}
.stat-icon {
  font-size: 23px;
}
.school-symbol {
  font-size: 26px;
}
.mobile-menu {
  font-size: 17px;
}
.security-icon {
  font-size: 22px;
}
.calendar-head button {
  font-size: 18px;
}
.date-toggle {
  font-size: 19px;
}
.text-link span {
  font-size: 17px;
}
.danger-icon {
  font-size: 19px;
}
@media (max-width: 560px) {
  .stat-icon {
    font-size: 19px;
  }
  .mobile-menu {
    font-size: 17px;
  }
  .field input,
  .field select,
  .field textarea,
  .date-picker > input {
    font-size: 16px;
  }
}
.nav-link {
  font-size: 15px;
}
/* صفحهٔ ورود: وسط‌چین */
.login-card {
  text-align: center;
}
.login-card .eyebrow,
.login-card h1,
.login-card .muted {
  text-align: center;
  display: block;
}
.login-card .field {
  text-align: right;
}
.login-extra {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.login-extra .notice {
  margin: 0;
  text-align: center;
}
.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.link-btn {
  border: 0;
  background: transparent;
  color: #2d6aa3;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #bcd2e8;
  border-radius: 10px;
  background: #eef5fb;
  color: #173c67;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  min-height: 42px;
}
.install-btn:hover {
  background: #e1eef9;
}
.install-btn .nama-ic {
  width: 19px;
  height: 19px;
}
.login-foot {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* عکس پروفایل */
.avatar-btn {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  display: grid;
}
.header-avatar.has-img {
  object-fit: cover;
  background: #e7eef7;
  display: block;
}
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e3ebf4;
  display: grid;
  place-items: center;
  background: #e7eef7;
  color: #173c67;
  font-size: 36px;
  font-weight: 800;
}
.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.avatar-actions .muted {
  flex-basis: 100%;
}
.button.disabled {
  opacity: 0.55;
  pointer-events: none;
}
label.button {
  cursor: pointer;
}
.avatar-card {
  max-width: 720px;
}
/* راهنما */
.help-list {
  display: grid;
  gap: 10px;
}
.help-list details {
  border: 1px solid #e5ebf2;
  border-radius: 11px;
  background: #fafcfe;
  padding: 2px 14px;
}
.help-list summary {
  cursor: pointer;
  padding: 13px 2px;
  font-weight: 700;
  color: #234469;
  font-size: 15px;
}
.help-list details[open] {
  background: #fff;
}
.help-list p {
  margin: 0 0 14px;
  color: #4a5b70;
  line-height: 2;
  font-size: 14px;
}
.ni-help {
  --ni: #7dd3fc;
}
.ni-reports {
  --ni: #f472b6;
}
/* نمودارها */
.nx-charts {
  margin-top: 8px;
}
.nx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}
.nx-card {
  margin: 0;
}
.nx-card h3 {
  margin: 0 0 14px;
  color: #233e5d;
  font-size: 15px;
}
.nx-wide {
  grid-column: 1/-1;
}
.nx-donut {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.nx-donut svg {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
}
.nx-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  flex: 1;
  min-width: 160px;
}
.nx-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a5b70;
}
.nx-legend li i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.nx-legend li b {
  margin-right: auto;
  color: #233e5d;
}
.nx-legend li small {
  color: #8a95a3;
  min-width: 34px;
  text-align: left;
}
.nx-bars {
  display: grid;
  gap: 12px;
}
.nx-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 32%) 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.nx-bar-label {
  color: #4a5b70;
  line-height: 1.5;
}
.nx-bar-track {
  height: 14px;
  border-radius: 8px;
  background: #edf1f5;
  overflow: hidden;
}
.nx-bar-track i {
  display: block;
  height: 100%;
  border-radius: 8px;
}
.nx-bar-row b {
  color: #233e5d;
  text-align: left;
}
.nx-cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 230px;
  padding-top: 6px;
}
.nx-col {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  justify-items: center;
}
.nx-col-bars {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.nx-col-bar {
  flex: 1;
  max-width: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.nx-col-bar i {
  display: block;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  min-height: 2px;
}
.nx-col-bar em {
  font-style: normal;
  font-size: 11px;
  color: #66768a;
  margin-bottom: 3px;
}
.nx-col > span {
  font-size: 13px;
  color: #4a5b70;
  text-align: center;
}
.nx-key {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #5d6b7c;
  margin: 12px 0 0;
}
.nx-key i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
@media (max-width: 560px) {
  .nx-grid {
    grid-template-columns: 1fr;
  }
  .nx-cols {
    gap: 4px;
    height: 200px;
  }
  .nx-col-bar em {
    font-size: 9px;
  }
  .nx-bar-row {
    grid-template-columns: minmax(70px, 38%) 1fr 30px;
    gap: 7px;
  }
  .avatar-preview {
    width: 80px;
    height: 80px;
  }
}
/* جدول‌ها در موبایل: کارت عمودی، بدون کشویی */
@media (max-width: 700px) {
  .rtable {
    border: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .rtable > table,
  .rtable > table > tbody {
    display: block;
    white-space: normal;
    width: 100%;
  }
  .rtable > table > thead {
    display: none;
  }
  .rtable > table > tbody > tr {
    display: block;
    margin: 0 0 12px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .rtable > table > tbody > tr:hover {
    background: #fff;
  }
  .rtable > table > tbody > tr > td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: none;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f3f6;
    text-align: left;
    overflow-wrap: anywhere;
    line-height: 1.8;
  }
  .rtable > table > tbody > tr > td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 42%;
    text-align: right;
    color: #7c8796;
    font-size: 13px;
    font-weight: 600;
  }
  .rtable > table > tbody > tr > td:first-child {
    background: #f1f6fb;
    color: #173c67;
    font-weight: 800;
    font-size: 15px;
  }
  .rtable > table > tbody > tr:last-child > td {
    border-bottom: 1px solid #f0f3f6;
  }
  .rtable > table > tbody > tr > td:last-child {
    border-bottom: 0;
  }
  .rtable > table > tbody > tr > td .row-actions {
    justify-content: flex-end;
  }
  .rtable > table > tbody > tr > td .tag {
    white-space: normal;
  }
}

.tag-warn {
  background: #fff3e0;
  color: #a0600f;
}
.tag-ok {
  background: #e8f6ee;
  color: #26784f;
}
.visit-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.visit-reply {
  display: grid;
  gap: 8px;
}
.visit-reply textarea {
  width: 100%;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
}
@media (max-width: 700px) {
  .rtable > table > tbody > tr > td .visit-actions {
    min-width: 0;
    width: 100%;
  }
  .rtable > table > tbody > tr > td:has(.visit-actions) {
    flex-direction: column;
    align-items: stretch;
  }
  .rtable > table > tbody > tr > td:has(.visit-actions)::before {
    max-width: none;
  }
}

/* ===== ۱.۳.۸ ===== */
.table-wrap {
  border: 1.5px solid #c9d6e4;
  box-shadow:
    0 6px 18px #20334d1f,
    0 1px 3px #20334d14;
  background: #fff;
}
.table-wrap th,
.table-wrap td {
  border-bottom-color: #e1e8f0;
}
.count-table .table-wrap {
  box-shadow: 0 3px 10px #20334d14;
}
@media (max-width: 700px) {
  .rtable {
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .rtable > table > tbody > tr {
    border: 1.5px solid #c9d6e4;
    box-shadow: 0 5px 14px #20334d1f;
  }
}
/* رنگ هر سطح */
.role-deputy {
  --navy: #173c67;
  --navy2: #254e7f;
  --role: #2f6fb3;
  --role-soft: #e8f1fb;
}
.role-mentor {
  --navy: #0e6a62;
  --navy2: #168a7f;
  --role: #14a08f;
  --role-soft: #e4f6f3;
}
.role-manager {
  --navy: #6a3fb0;
  --navy2: #7f56c6;
  --role: #8a5fd0;
  --role-soft: #f0eafb;
}
.role-mentor .sidebar {
  background: linear-gradient(175deg, #0e6a62, #0b524d 70%, #093f3b);
}
.role-manager .sidebar {
  background: linear-gradient(175deg, #6a3fb0, #52308f 70%, #402570);
}
.role-mentor .nav-link.active {
  box-shadow: inset -3px 0 #8ee6d6;
}
.role-manager .nav-link.active {
  box-shadow: inset -3px 0 #d3b8ff;
}
.topbar {
  border-bottom: 3px solid var(--role, #2f6fb3);
}
.role-mentor .header-avatar,
.role-manager .header-avatar,
.role-deputy .header-avatar {
  background: var(--role-soft);
  color: var(--navy);
}
.role-mentor .brand-icon,
.role-manager .brand-icon {
  filter: drop-shadow(0 4px 10px #0003);
}
.role-mentor .page-title h1,
.role-manager .page-title h1,
.role-deputy .page-title h1 {
  color: var(--navy);
}
.role-mentor thead th,
.role-manager thead th,
.role-deputy thead th {
  background: var(--role-soft);
  color: var(--navy);
}
.role-mentor .site-footer,
.role-manager .site-footer {
  border-top-color: var(--role);
}
/* نمای کلی انیمیشنی */
@property --present {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.nx-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 132px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(
    120deg,
    var(--navy),
    var(--role),
    var(--navy2),
    var(--navy)
  );
  background-size: 300% 300%;
  animation:
    hero-bg 12s ease infinite,
    rise 0.7s both;
  box-shadow: 0 14px 34px #20334d33;
}
.hero-text {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
}
.hero-text small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffffcc;
  font-size: 14px;
}
.hero-text h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
}
.hero-text p {
  margin: 0;
  color: #ffffffd9;
  font-size: 15px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ef3b4;
  display: inline-block;
  box-shadow: 0 0 0 0 #6ef3b4aa;
  animation: pulse 1.8s infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff55, #ffffff10);
  pointer-events: none;
}
.o1 {
  width: 170px;
  height: 170px;
  left: -40px;
  top: -60px;
  animation: float 7s ease-in-out infinite;
}
.o2 {
  width: 100px;
  height: 100px;
  left: 34%;
  bottom: -40px;
  animation: float 9s ease-in-out -2s infinite;
}
.o3 {
  width: 60px;
  height: 60px;
  left: 20%;
  top: 16px;
  animation: float 6s ease-in-out -4s infinite;
}
.hero-wave {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}
.hero-wave i {
  display: block;
  width: 8px;
  border-radius: 5px;
  background: #ffffffb0;
  height: 100%;
  transform-origin: bottom;
  animation: wave 1.4s ease-in-out infinite;
}
@keyframes hero-bg {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(18px) scale(1.08);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #6ef3b4aa;
  }
  70% {
    box-shadow: 0 0 0 10px #6ef3b400;
  }
  100% {
    box-shadow: 0 0 0 0 #6ef3b400;
  }
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ringfill {
  from {
    --present: 0%;
  }
}
@keyframes growY {
  from {
    transform: scaleY(0);
  }
}
@keyframes growX {
  from {
    transform: scaleX(0);
  }
}
@keyframes donutin {
  from {
    opacity: 0;
    transform: rotate(-120deg) scale(0.6);
  }
}
@keyframes iconfloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.stat-card {
  animation: rise 0.6s backwards;
}
.stat-grid > :nth-child(1) {
  animation-delay: 0.05s;
}
.stat-grid > :nth-child(2) {
  animation-delay: 0.15s;
}
.stat-grid > :nth-child(3) {
  animation-delay: 0.25s;
}
.stat-grid > :nth-child(4) {
  animation-delay: 0.35s;
}
.stat-icon {
  animation: iconfloat 3.4s ease-in-out infinite;
}
.dashboard-grid > .card {
  animation: rise 0.7s 0.3s backwards;
}
.dashboard-grid > .card:nth-child(2) {
  animation-delay: 0.45s;
}
.nx-card {
  animation: rise 0.6s backwards;
}
.nx-grid > :nth-child(2) {
  animation-delay: 0.08s;
}
.nx-grid > :nth-child(3) {
  animation-delay: 0.16s;
}
.nx-grid > :nth-child(4) {
  animation-delay: 0.24s;
}
.nx-grid > :nth-child(5) {
  animation-delay: 0.32s;
}
.nx-grid > :nth-child(6) {
  animation-delay: 0.4s;
}
.ring {
  animation:
    ringfill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    pulse-ring 3s ease-in-out 1.4s infinite;
}
@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 #298d6400;
  }
  50% {
    box-shadow: 0 0 22px 2px #298d6444;
  }
}
.trend-bar i {
  transform-origin: bottom;
  animation: growY 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.trend-point:nth-child(odd) .trend-bar i {
  animation-delay: 0.1s;
}
.nx-bar-track i {
  transform-origin: right;
  animation: growX 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nx-col-bar i {
  transform-origin: bottom;
  animation: growY 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nx-donut svg {
  animation: donutin 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nx-card:hover,
.dashboard-grid > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #20334d24;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
@media (max-width: 560px) {
  .nx-hero {
    padding: 18px;
    min-height: 112px;
  }
  .hero-text h2 {
    font-size: 20px;
  }
  .hero-text p {
    font-size: 13px;
  }
  .hero-wave {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-hero,
  .hero-orb,
  .hero-wave i,
  .live-dot,
  .stat-card,
  .stat-icon,
  .ring,
  .trend-bar i,
  .nx-bar-track i,
  .nx-col-bar i,
  .nx-donut svg,
  .nx-card,
  .dashboard-grid > .card {
    animation: none !important;
  }
}

/* ===== ۱.۳.۹: صفحهٔ ورود جدید و حق نشر ===== */
.copyright {
  margin: 0;
  flex-basis: 100%;
  text-align: center;
  color: #6b7a8d;
  font-size: 13px;
  line-height: 1.9;
}
.site-footer {
  flex-wrap: wrap;
  gap: 6px 14px;
}
.login2 {
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 85% -10%, #cfe3f7, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #d4efe9, transparent 60%),
    linear-gradient(145deg, #eef3f8, #f7f9fb);
}
.login-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(100%, 980px);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid #cbd9e8;
  box-shadow:
    0 30px 80px #173c6733,
    0 4px 14px #173c6720;
  background: #fff;
  animation: rise 0.8s both;
}
.login-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #173c67, #1f5a95 55%, #14907f);
  background-size: 200% 200%;
  animation: hero-bg 14s ease infinite;
}
.login-hero .hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px #0006);
  animation: float 6s ease-in-out infinite;
}
.login-hero h2 {
  margin: 6px 0 0;
  font-size: 32px;
  font-weight: 800;
}
.login-hero .hero-sub {
  margin: 0 0 14px;
  color: #ffffffd0;
  font-size: 15px;
}
.hero-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}
.hero-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ffffff1a;
  border: 1px solid #ffffff38;
  backdrop-filter: blur(4px);
}
.hero-feats li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff26;
  font-size: 18px;
  flex: none;
}
.login2 .login-card {
  width: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login2 .card-logo {
  display: none;
}
.login2 .login-card h1 {
  font-size: 25px;
  font-weight: 800;
  color: #173c67;
}
.input-ic {
  position: relative;
  display: block;
}
.input-ic > .nama-ic {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: #6d8aab;
  pointer-events: none;
}
.login2 .input-ic input {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border: 1.5px solid #cbd9e8;
  border-radius: 12px;
  background: #f8fafd;
  box-shadow:
    inset 0 1px 2px #173c670d,
    0 2px 6px #173c670d;
  font-size: 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.login2 .input-ic input:focus {
  border-color: #2f6fb3;
  background: #fff;
  box-shadow:
    0 0 0 4px #2f6fb326,
    0 2px 8px #173c6714;
  outline: 0;
}
.pw-toggle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #e8f0f9;
  color: #2d5f95;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}
.login2 .input-ic:has(.pw-toggle) input {
  padding-left: 64px;
}
.login2 .login-form > .button {
  min-height: 50px;
  font-size: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f5a95, #173c67);
  box-shadow: 0 8px 20px #173c6740;
}
.login2 .login-form > .button:hover:not(:disabled) {
  box-shadow: 0 12px 26px #173c6755;
}
.login2 .login-extra {
  margin-top: 16px;
}
.login2 .copyright {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e3eaf2;
}
.login2 .install-btn {
  box-shadow: 0 3px 10px #173c6718;
}
@media (max-width: 820px) {
  .login-wrap {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .login-hero {
    display: none;
  }
  .login2 .card-logo {
    display: block;
    width: 120px;
    height: 120px;
  }
  .login2 .login-card {
    padding: 28px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-wrap,
  .login-hero,
  .login-hero .hero-logo {
    animation: none !important;
  }
}
.login2 .field {
  display: block;
}
.login2 .field > .input-ic {
  margin-top: 7px;
}

/* ===== ۱.۳.۱۱ ===== */
.stat-icon.cyan {
  background: linear-gradient(135deg, #3fd0d8, #168a99);
  box-shadow: 0 7px 16px #168a9945;
  color: #fff;
}
.stat-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .stat-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .stat-grid.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid.five > :last-child {
    grid-column: 1/-1;
  }
}
.notice.info {
  color: #2b5b8a;
  background: #edf4fc;
  border-color: #d3e3f5;
}
.review-box {
  margin-top: 12px;
  border: 1.5px solid #cfdcea;
}
.review-text,
.staff-review textarea {
  width: 100%;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
  resize: vertical;
}
.staff-review {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d6dfe9;
}
.staff-review-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.staff-review-top small {
  color: #8a5a14;
  font-size: 13px;
}
.staff-edit {
  margin-top: 6px;
  padding: 14px;
  border: 1.5px solid #cfdcea;
  border-radius: 12px;
  background: #fafcfe;
}
/* جدول‌های شمارش پایه/جنسیت در موبایل */
@media (max-width: 700px) {
  .count-table .table-wrap {
    overflow: visible;
  }
  .count-table table {
    table-layout: fixed;
    white-space: normal;
    width: 100%;
  }
  .count-table th,
  .count-table td {
    padding: 6px 3px;
    font-size: 13px;
  }
  .count-table th:first-child,
  .count-table td:first-child {
    width: 24%;
  }
  .table-wrap td input,
  .count-table td input {
    width: 100%;
    min-width: 0;
    padding: 7px 2px;
    font-size: 15px;
    text-align: center;
  }
}

/* ===== ۱.۳.۱۳ ===== */
.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 transparent;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #ffffff40;
  border-radius: 6px;
}
.sidebar > * {
  flex-shrink: 0;
}
.nx-toasts {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(92vw, 440px);
  pointer-events: none;
}
.nx-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 30px #0f23403d;
  border: 1px solid #ffffff40;
  animation: toast 4.3s ease forwards;
  background: linear-gradient(135deg, #1f9d6c, #157a52);
}
.nx-toast.err {
  background: linear-gradient(135deg, #d2535c, #a63b44);
}
.nx-toast.msg {
  background: linear-gradient(135deg, #2f6fb3, #1d4f8a);
}
.nx-toast-ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff33;
  flex: none;
  font-size: 15px;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
  8% {
    opacity: 1;
    transform: none;
  }
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
.msg-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #4a5f78;
  font-size: 20px;
}
.msg-bell b {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e0364a;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.msg-bell.blink {
  color: #e0364a;
  border-color: #f1b5bb;
  background: #fff1f2;
  animation: bell 1.1s ease-in-out infinite;
}
.msg-bell.blink .nama-ic {
  animation: ring 1.1s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes bell {
  0%,
  100% {
    box-shadow: 0 0 0 0 #e0364a55;
  }
  50% {
    box-shadow: 0 0 0 8px #e0364a00;
    opacity: 0.72;
  }
}
@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-12deg);
  }
  60% {
    transform: rotate(8deg);
  }
  80% {
    transform: rotate(-5deg);
  }
}
.nav-badge {
  font-style: normal;
  margin-right: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #e0364a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  animation: bell 1.1s ease-in-out infinite;
}
.att-status {
  display: grid;
  gap: 4px;
  justify-items: start;
}
@media (prefers-reduced-motion: reduce) {
  .msg-bell.blink,
  .msg-bell.blink .nama-ic,
  .nav-badge {
    animation: none !important;
  }
}

.nx-impbar {
  position: fixed;
  z-index: 9998;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border-radius: 14px;
  background: #7a4a00;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  line-height: 1.7;
}
.nx-impbar button {
  flex: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  background: #ffd36b;
  color: #3b2500;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 600px) {
  .nx-impbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    bottom: 8px;
  }
}

.nx-maint {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
  background: linear-gradient(160deg, #eef4fb, #fdf6e8);
  color: #203b5a;
}
.nx-maint img {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(32, 59, 90, 0.18);
}
.nx-maint h1 {
  margin: 6px 0 0;
  font-size: clamp(24px, 5vw, 34px);
}
.nx-maint p {
  max-width: 520px;
  margin: 0;
  line-height: 2;
  color: #4a5f78;
}
.nx-maint small {
  color: #7b8da3;
}
.nx-maint-dots {
  width: 150px;
  height: 6px;
  border-radius: 6px;
  background: #dbe5f1;
  overflow: hidden;
  position: relative;
}
.nx-maint-dots i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 6px;
  background: #2f6fb3;
  animation: nxslide 1.4s ease-in-out infinite;
}
@keyframes nxslide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(380%);
  }
}
.nx-counter {
  margin-top: 6px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #5b6b7e;
}
.nx-counter-bar {
  height: 6px;
  border-radius: 6px;
  background: #e5ebf2;
  overflow: hidden;
}
.nx-counter-bar i {
  display: block;
  height: 100%;
  background: #e0a13a;
  border-radius: 6px;
  transition: width 0.2s;
}
.nx-counter.ok .nx-counter-bar i {
  background: #2f9e63;
}
.nx-counter.bad .nx-counter-bar i {
  background: #d0364a;
}
.nx-counter b {
  font-weight: 700;
  color: #b9770e;
}
.nx-counter.ok b {
  color: #1f8a52;
}
.nx-counter.bad b {
  color: #c0283c;
}
.nx-match {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
}
.nx-match.ok {
  color: #1f8a52;
}
.nx-match.bad {
  color: #c0283c;
}
.self-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #b9d9c6;
  border-radius: 11px;
  background: #effaf3;
  color: #1f6f45;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.self-btn svg {
  font-size: 18px;
}
@media (max-width: 700px) {
  .self-btn span {
    display: none;
  }
  .self-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}
.nx-self-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nx-self-row small {
  margin-inline-start: 8px;
  color: #7b8da3;
}
.nx-click {
  cursor: pointer;
}
li.nx-click:hover,
.nx-bar-row.nx-click:hover {
  background: #f3f7fc;
  border-radius: 8px;
}
circle.nx-click:hover {
  opacity: 0.8;
}

.role-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f5fa;
  gap: 2px;
}
.role-switch button {
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  background: transparent;
  color: #4a5f78;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.role-switch button.on {
  background: #fff;
  color: #1f4f86;
  box-shadow: 0 1px 4px rgba(32, 59, 90, 0.18);
}
.role-switch button:not(.on):hover {
  background: #e4ecf6;
}
@media (max-width: 700px) {
  .role-switch button {
    padding: 6px 8px;
    font-size: 12px;
  }
}
.nx-editing-on {
  outline: 2px solid #e9a23b;
  outline-offset: 6px;
  border-radius: 10px;
  transition: outline-color 0.3s;
}

.nx-table-field {
  min-width: 0;
}
.nx-tbl-wrap {
  overflow: auto;
  max-width: 100%;
}
.nx-tbl {
  border-collapse: collapse;
  font-size: 12px;
  width: max-content;
  min-width: 100%;
}
.nx-tbl th,
.nx-tbl td {
  border: 1px solid #dfe5ec;
  padding: 0;
  background: #fff;
}
.nx-tbl th {
  background: #eef3f8;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  min-width: 88px;
  max-width: 170px;
  white-space: normal;
  line-height: 1.5;
}
.nx-tbl td input,
.nx-tbl td select {
  width: 100%;
  min-width: 88px;
  border: 0;
  border-radius: 0;
  padding: 7px 8px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
  outline-offset: -2px;
}
.nx-tbl td input:focus,
.nx-tbl td select:focus {
  background: #fff9e6;
}
.nx-tbl td input.nx-sum {
  background: #f1f5f9;
  font-weight: 700;
}
.nx-tbl .nx-n {
  min-width: 52px;
  width: 52px;
  text-align: center;
  background: #eef3f8;
  position: sticky;
  right: 0;
  z-index: 1;
  font-size: 11px;
  color: #51606f;
  white-space: nowrap;
}
.nx-del {
  border: 0;
  background: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 15px;
  padding: 0 4px;
  line-height: 1;
}
.nx-tbl-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.nx-tbl-hint {
  margin: 0 0 6px;
  white-space: pre-wrap;
}
.answer-cell.nx-wide {
  grid-column: 1/-1;
}
.nx-view td {
  padding: 5px 8px;
  white-space: nowrap;
}
.nx-import {
  padding: 12px;
  border: 1px dashed #b9c6d3;
  border-radius: 10px;
  background: #f8fafc;
}
.nx-import .nx-file {
  display: inline-flex;
  cursor: pointer;
  width: fit-content;
}
.nx-wide-note {
  grid-column: 1/-1;
  margin: 0;
}

/* ===== نسخهٔ ۱.۳.۲۱ — رفع نمایش موبایل پنل نمایندهٔ مدارس شهری ===== */
body {
  overflow-x: clip;
}
.main-area {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 700px) {
  .topbar:has(.role-switch) {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    align-items: center;
    padding-block: 8px;
    row-gap: 8px;
    column-gap: 9px;
  }
  .topbar:has(.role-switch) .crumb {
    margin-left: 0;
    margin-inline-start: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
  .topbar:has(.role-switch) .crumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar:has(.role-switch) .top-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }
  .topbar:has(.role-switch) .header-date {
    display: none;
  }
  .topbar:has(.role-switch) .role-switch {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
  }
  .topbar:has(.role-switch) .role-switch button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
  }
  .topbar:has(.role-switch) .header-user {
    flex: 1 1 0;
    min-width: 0;
  }
  .topbar:has(.role-switch) .header-user b,
  .topbar:has(.role-switch) .header-user small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  .topbar:has(.role-switch) .header-user b {
    font-size: 13px;
  }
  .topbar:has(.role-switch) .header-user small {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .nx-self-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nx-self-row button {
    width: 100%;
  }
}

/* جدول‌های اکسلی در موبایل: هر ردیف یک کارت با فیلدهای دوستونه */
@media (max-width: 700px) {
  .nx-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .nx-card {
    border: 1px solid #d5dee8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .nx-card.open {
    border-color: #0f766e;
    box-shadow: 0 1px 6px rgba(15, 118, 110, 0.12);
  }
  .nx-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eef6f5;
    padding: 4px 8px 4px 4px;
  }
  .nx-card-toggle {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    font: inherit;
    padding: 9px 8px;
    cursor: pointer;
    text-align: right;
    color: #0f3d3a;
  }
  .nx-card-toggle b,
  .nx-card-title {
    font-size: 14px;
    white-space: nowrap;
  }
  .nx-card-title {
    padding: 9px 8px;
  }
  .nx-card-prev {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #64748b;
  }
  .nx-card-toggle i {
    font-style: normal;
    color: #0f766e;
  }
  .nx-card .nx-del {
    font-size: 22px;
    padding: 4px 10px;
  }
  .nx-card-body {
    padding: 10px;
  }
  .nx-card-group {
    margin: 12px 0 6px;
    padding: 5px 8px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    line-height: 1.7;
  }
  .nx-card-group:first-child {
    margin-top: 0;
  }
  .nx-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .nx-card-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .nx-card-field > span {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .nx-card-field input,
  .nx-card-field select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 8px;
    font: inherit;
    font-size: 16px;
    background: #fff;
  }
  .nx-card-field input:focus,
  .nx-card-field select:focus {
    border-color: #0f766e;
    outline: 2px solid rgba(15, 118, 110, 0.18);
  }
  .nx-card-field input.nx-sum {
    background: #f1f5f9;
    font-weight: 700;
  }
  .nx-cards-view .nx-card-field b {
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .nx-tbl-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(#fff0, #fff 30%);
    padding: 10px 0 4px;
    z-index: 2;
  }
  .nx-tbl-actions button {
    flex: 1 1 auto;
  }
}
@media (max-width: 340px) {
  .nx-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* جدول اکسلی داخل کادر فرم بماند و فقط خودِ جدول اسکرول شود */
.form-cards,
.info-form-card,
.answer-form,
.answer-form > .field,
.nx-table-field,
.nx-tbl-box {
  min-width: 0;
  max-width: 100%;
}
.nx-tbl-box {
  width: 100%;
}

/* نوار بالای سایر پنل‌ها (مدیر/معاون) هم در موبایل از عرض صفحه بیرون نزند */
@media (max-width: 700px) {
  .topbar:not(:has(.role-switch)) .top-actions {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }
  .topbar:not(:has(.role-switch)) .header-date {
    display: none;
  }
  .topbar:not(:has(.role-switch)) .header-user {
    min-width: 0;
    max-width: 92px;
  }
  .topbar:not(:has(.role-switch)) .header-user b,
  .topbar:not(:has(.role-switch)) .header-user small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ===== نسخهٔ ۱.۳.۲۳ ===== */
.nx-answer-dialog {
  direction: rtl;
  text-align: right;
  white-space: normal;
  line-height: 1.7;
}
.nx-answer-dialog .nx-answer-title {
  margin: 6px 0 2px;
  font-size: 17px;
  color: var(--navy);
}
.nx-answer-dialog .nx-tbl-wrap {
  max-height: 65vh;
}
.info-form-card {
  min-width: 0;
}
.form-cards > .info-form-card:has(.nx-table-field),
.form-cards > .info-form-card:has(.nx-tbl-wrap) {
  grid-column: 1/-1;
}
.nx-recipients {
  grid-column: 1/-1;
}
.nx-rec-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nx-rec-tools input {
  flex: 1 1 180px;
  min-width: 0;
}
.nx-rec-tools select {
  flex: 0 1 170px;
}
.nx-rec-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.nx-rec-count {
  margin-inline-start: auto;
  font-size: 13px;
  color: var(--navy);
}
.nx-rec-list {
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 4px;
  text-align: right;
}
.nx-rec-list .check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  min-height: 0;
  margin: 0;
}
.nx-rec-list .check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.nx-rec-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-content: start;
}
.nx-rec-list {
  grid-auto-rows: min-content;
}
.nx-rec-list .check-label {
  min-height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
}
.nx-rec-list .check-label:hover {
  background: #f1f6fb;
}
.nx-rec-list .check-label span {
  font-size: 13px;
  line-height: 1.6;
}
.nx-src-editor {
  border: 1px dashed #b9c6d3;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}
.nx-src-editor summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--navy);
}
.nx-src-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
}
.nx-src-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
@media (max-width: 700px) {
  .nx-src-row {
    grid-template-columns: 1fr;
  }
}
/* ===== نسخهٔ ۱.۳.۲۵ — سال تحصیلی و انتقال مدرسه ===== */
.nx-yearbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
}
.nx-yearbar.old {
  background: #fff8e8;
  border-color: #e9c36b;
}
.nx-yearbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #51606f;
}
.nx-yearbar select {
  min-width: 170px;
  padding: 5px 8px;
  border: 1px solid #cdd7e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.nx-yearbar-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: #8a5a14;
}
.nx-yearbar-note button {
  border: 1px solid #e0b25a;
  background: #fff;
  color: #8a5a14;
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  cursor: pointer;
}
.nx-year-help {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  line-height: 2;
}
.nx-transfer {
  max-width: 560px;
}
.nx-transfer .field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.nx-transfer select {
  width: 100%;
}

/* ===== اطلاعیه‌ها (۱.۳.۲۶) ===== */
.ni-announcements { --ni: #fcd34d; }
.nx-ann-card { margin-bottom: 14px; }
.nx-ann-card.is-new { border-color: #f3c969; box-shadow: 0 0 0 2px #fcd34d44, var(--shadow); }
.nx-ann-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.nx-ann-head h2 { margin: 0; font-size: 17px; color: var(--navy); flex: 1 1 200px; }
.nx-ann-kind.notice { background: #e8f1fb; color: #2f6fb3; }
.nx-ann-kind.circular { background: #f1ebfb; color: #6a4bb3; }
.nx-ann-new { background: #fff4d6; color: #a86b00; }
.nx-ann-body { margin: 0 0 12px; white-space: pre-wrap; line-height: 1.95; overflow-wrap: anywhere; }
.nx-ann-shared { margin: 0 0 12px; font-size: 13px; }
.nx-ann-shared summary { cursor: pointer; color: var(--navy2); }
.nx-ann-shared ul { margin: 8px 0 0; padding: 0 18px 0 0; max-height: 220px; overflow: auto; color: var(--muted); }
.nx-ann-shared li.seen { color: var(--green); }
.nx-ann-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-ann-share { width: min(720px, calc(100vw - 28px)); }
.nx-ann-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 14px; background: #12253ecc; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nx-ann-modal { direction: rtl; text-align: right; width: min(620px, 100%); max-height: calc(100vh - 28px); overflow: auto; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 18px 80px #0c203780; border-top: 5px solid var(--role, var(--navy2)); }
.nx-ann-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.nx-ann-modal h2 { margin: 4px 0 4px; font-size: 20px; color: var(--navy); }
.nx-ann-modal-body { margin: 14px 0 18px; white-space: pre-wrap; line-height: 2; overflow-wrap: anywhere; max-height: 55vh; overflow: auto; }
.nx-ann-modal-foot { display: flex; justify-content: flex-start; }
@media (max-width: 700px) {
  .nx-ann-modal { padding: 18px; }
  .nx-ann-modal-foot .button { width: 100%; }
}

/* Installation guide, shared between login and help. */
.nx-install { margin-top: 16px; text-align: right; min-width: 0; }
.nx-install-toggle { width: 100%; justify-content: center; }
.nx-install-guide { margin-top: 14px; padding: 18px; border: 1px solid #cbdceb; border-radius: 16px; background: #f4f8fc; color: #173c67; line-height: 1.9; overflow-wrap: anywhere; }
.nx-install-guide h3 { margin: 0 0 8px; font-size: 1.1rem; }
.nx-install-guide p { margin: 8px 0; }
.nx-install-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.nx-install-platforms button { flex: 1; min-width: 100px; border: 1px solid #b8cde1; border-radius: 10px; padding: 9px 12px; background: #fff; color: #173c67; font: inherit; cursor: pointer; }
.nx-install-platforms button[aria-pressed="true"] { background: #173c67; color: #fff; border-color: #173c67; }
.nx-install button:focus-visible { outline: 3px solid #2d91cb; outline-offset: 3px; }
.nx-install-guide ol { padding-inline-start: 22px; margin: 14px 0; }
.nx-install-guide li { margin: 9px 0; }
.nx-install-note { font-size: .88rem; color: #4a6077; border-top: 1px solid #cbdceb; padding-top: 10px; }
.nx-install-status { color: #116b56; }
@media (max-width: 480px) { .nx-install-guide { padding: 12px; } }

.nx39-group{border:1px solid #dce5ef;border-radius:12px;margin:12px 0;padding:14px;background:#fff}.nx39-group summary{cursor:pointer;font-weight:700;padding:8px;color:#173c67}.nx39-groups>.field{max-width:430px;margin-bottom:15px}.nx39-gate{position:fixed;inset:0;z-index:1600;background:#102942d9;display:grid;place-items:center;padding:16px;direction:rtl}.nx39-gate-panel{max-width:850px;width:100%;background:white;border-radius:20px;padding:24px;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #0005}.nx39-person-row{display:grid;grid-template-columns:1fr 110px 220px;align-items:center;gap:14px;border-top:1px solid #dde6ee;padding:12px 0}.nx39-person-row select{width:100%}.nx39-check{display:flex;align-items:center;gap:10px;padding:8px}.nx39-check input{width:18px;height:18px;flex-shrink:0}.nx39-question{border:1px solid #dce5ef;border-radius:12px;padding:18px;margin:16px 0;min-width:0}.nx39-question legend{font-weight:700;padding:0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.nx39-question textarea,.nx39-question input:not([type=radio]),.nx39-question select{max-width:100%;width:100%;padding:10px;border:1px solid #ccd9e5;border-radius:9px;font:inherit}.nx39-pre{white-space:pre-wrap;overflow-wrap:anywhere}.nx39-answer-detail{min-width:min(420px,75vw);max-width:700px;white-space:normal}.nx39-answer-detail>.field{margin:10px 0}.nx39-datetime input[type=time]{direction:ltr}.nx39-exam-run textarea{resize:vertical}@media(max-width:650px){.nx39-person-row{grid-template-columns:1fr}.nx39-gate-panel{padding:18px}.nx39-question{padding:12px}.nx39-group{padding:8px}}


/* NAMA 1.3.41 */
.nx43-profile-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:16px 20px;background:#fff6e3;color:#713f12;border:1px solid #edcc8a;border-inline-start:5px solid #b45309;border-radius:14px}
.nx43-profile-alert p{margin:5px 0}.nx43-profile-alert ul{margin:4px 0 0;padding-inline-start:20px}
.nx43-charts>*{min-width:0}.nx43-chart-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.nx43-chart-head h2{margin:0}.nx43-chart-head label{display:flex;gap:8px;align-items:center;font-size:.85rem;color:#3b526a}
.nx43-chart-head select{font:inherit;padding:5px 8px;border:1px solid #d0dce9;border-radius:8px;background:#fff;color:#243b55}
.nx43-chart-stage{display:grid;place-items:center;min-height:160px;margin:16px 0;padding:8px;background:#f3f7fd;border-radius:12px}
.nx43-chart-empty{text-align:center;color:#506579}.nx43-plot{width:100%;max-height:165px;overflow:visible}
.nx43-gridline{stroke:#cfdae8;stroke-width:1}.nx43-column{transform-box:fill-box;transform-origin:center bottom;animation:nx43-rise .65s ease-out both}
.nx43-line{fill:none;stroke:#4338ca;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;animation:nx43-draw .8s ease-out both}
.nx43-point{stroke:white;stroke-width:2;animation:nx43-fade .45s .15s ease-out both}
.nx43-round{width:136px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;animation:nx43-grow .6s cubic-bezier(.2,.7,.3,1) both}
.nx43-donut span{display:grid;place-items:center;width:62%;aspect-ratio:1;background:#fff;color:#273955;border-radius:50%;font-weight:800}
.nx43-horizontal{width:100%;display:grid;gap:6px}.nx43-horizontal div{height:9px;border-radius:20px;background:#dce6f1}
.nx43-horizontal div::before{content:'';display:block;background:var(--nx43-color);width:var(--nx43-share);height:100%;border-radius:inherit;transform-origin:right center;animation:nx43-slide .65s ease-out both}
.nx43-chart-legend{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:6px 14px}
.nx43-chart-legend li{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:6px;font-size:.85rem;min-width:0}
.nx43-swatch{width:9px;height:9px;border-radius:50%}.nx43-chart-legend b{color:#243b55}
@keyframes nx43-rise{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes nx43-slide{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes nx43-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes nx43-fade{from{opacity:0}to{opacity:1}}
@keyframes nx43-grow{from{transform:scale(.65) rotate(-25deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:650px){.nx43-profile-alert{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.nx43-column,.nx43-line,.nx43-point,.nx43-round,.nx43-horizontal div::before{animation:none}}
.nx41-work-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #b8ddd5;background:#edf9f5;border-radius:14px;padding:14px 18px;margin:14px 0 22px;line-height:1.9}
.nx41-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.nx41-summary>div{background:#fff;border:1px solid #dbe6ee;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px}.nx41-summary b{font-size:26px;color:#116b63}.nx41-summary span{font-size:13px;color:#53687d}
.nx41-reminder{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid #e2e8ed}.nx41-reminder p{font-size:13px;margin:8px 0}.nx41-event{border-right:3px solid #a8d9d0;padding:8px 14px;margin:14px 0}.nx41-event small{display:block;color:#61748a;margin-top:6px}.nx41-action>summary{line-height:2}.nx41-action button{margin:4px}.nx41-action .form-grid{margin:18px 0}
@media(max-width:700px){.nx41-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.nx41-summary>div{padding:14px}.nx41-work-strip,.nx41-reminder{align-items:flex-start;flex-direction:column}.nx41-reminder .row-actions{width:100%;flex-wrap:wrap}.nx41-action .form-grid{grid-template-columns:minmax(0,1fr)}}

.nx42-fields fieldset{min-width:0;margin:0 0 16px;padding:16px;border:1px solid #dbe6ee;border-radius:12px}.nx42-group{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:12px;margin-bottom:8px;background:#f3f8fa;border-radius:9px}.nx42-choices{display:flex;flex-wrap:wrap;gap:10px}.nx42-form{border:1px solid #dbe6ee;border-radius:12px;overflow:hidden;background:#fff}.nx42-form-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:15px;border:0;background:#edf7f6;text-align:start;cursor:pointer;color:#185e5a;font:inherit}.nx42-form [hidden]{display:none!important}.nx42-work-link{position:relative}.nx42-review,.nx42-mismatch{margin:12px 0}.nx42-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:14px}.nx42-bars{padding:0;list-style:none}.nx42-bars li{display:grid;grid-template-columns:minmax(95px,1fr) minmax(54px,1fr) minmax(28px,auto);align-items:center;gap:9px;padding:6px 0}.nx42-track{display:block;background:#eef4f7;border-radius:6px;height:10px}.nx42-track span{display:block;background:#117b78;height:100%;border-radius:6px}
