#tab-chamada .chamada-form-modality-field,
#tab-chamada [data-field="modalidade-form"],
#tab-chamada #chamadaModalidadeField,
#tab-chamada #attendanceModalityField {
  display: none !important;
}
#tab-chamada {
  background:
    radial-gradient(circle at top left, rgba(164, 27, 67, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

#tab-chamada .chamada-shell {
  color: #20324d;
  padding: 20px 32px 176px;
}

#tab-chamada .chamada-topbar {
  align-items: center;
  border-bottom: 1px solid rgba(135, 152, 177, 0.2);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 18px;
}

#tab-chamada .chamada-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

#tab-chamada .chamada-brand__seal {
  align-items: center;
  background: linear-gradient(135deg, #7d1736, #a41b43);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-family: inherit;
  font-size: 1.05rem;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 40px;
}

#tab-chamada .chamada-brand__copy {
  display: grid;
  gap: 2px;
}

#tab-chamada .chamada-brand__copy strong {
  font-size: 1.05rem;
}

#tab-chamada .chamada-brand__copy span,
#tab-chamada .chamada-topbar__date {
  color: #617898;
  font-size: 0.96rem;
}

#tab-chamada .chamada-topbar__date {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

#tab-chamada .chamada-topbar__date-icon {
  color: #7b8ca8;
  font-size: 0.95rem;
}

#tab-chamada .chamada-hero {
  padding: 18px 0 12px;
}

#tab-chamada .chamada-hero__eyebrow {
  color: #7084a6;
  font-size: 0.83rem;
  letter-spacing: 0.28em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

#tab-chamada .chamada-hero__title {
  color: #243654;
  font-family: inherit;
  font-size: clamp(2.35rem, 3vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

#tab-chamada #attendanceGreetingName {
  color: #a41b43;
}

#tab-chamada .chamada-hero__summary,
#tab-chamada .chamada-hero__meta {
  align-items: center;
  color: #5f7393;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#tab-chamada .chamada-hero__summary {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 20px;
}

#tab-chamada .chamada-hero__meta {
  font-size: 1rem;
  margin-top: 8px;
}

#tab-chamada .chamada-dot {
  color: #c1cad8;
}

#tab-chamada .chamada-setup-card,
#tab-chamada .chamada-students-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(147, 162, 184, 0.2);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(37, 59, 94, 0.06);
}

#tab-chamada .chamada-setup-card {
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(37, 59, 94, 0.06);
}

#tab-chamada .chamada-inline-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #30476d;
  cursor: pointer;
  display: flex;
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: space-between;
  padding: 16px 18px 14px;
  width: 100%;
}

#tab-chamada .chamada-inline-toggle .badge {
  display: none !important;
}

#tab-chamada .chamada-inline-toggle__copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

#tab-chamada .chamada-inline-toggle__copy strong {
  color: #243654;
  font-size: 1.02rem;
  line-height: 1.1;
}

#tab-chamada .chamada-inline-toggle__copy small {
  color: #6d809c;
  font-size: 0.82rem;
  font-weight: 500;
}

#tab-chamada .chamada-inline-toggle::after {
  color: #5f7393;
  content: "⌄";
  font-size: 1rem;
  line-height: 1;
}

#tab-chamada .chamada-setup-panel {
  border-top: 1px solid rgba(147, 162, 184, 0.16);
  padding: 6px 18px 18px;
}

#tab-chamada .chamada-setup-panel__intro {
  margin-bottom: 18px;
}

#tab-chamada .chamada-setup-panel__title {
  color: #243654;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

#tab-chamada .chamada-setup-panel__copy {
  color: #6c809f;
  margin: 0;
}

#tab-chamada .chamada-setup-panel__facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

#tab-chamada .chamada-fact-card {
  background: #f8fbff;
  border: 1px solid rgba(147, 162, 184, 0.18);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

#tab-chamada .chamada-fact-card span {
  color: #7a8ca7;
  font-size: 0.82rem;
  text-transform: uppercase;
}

#tab-chamada .chamada-fact-card strong {
  color: #2c4165;
}

#tab-chamada .chamada-setup-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "date schedule"
    "instructor monitor";
}

#tab-chamada .chamada-field {
  color: #425677;
  display: grid;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 8px;
  min-width: 0;
}

#tab-chamada .chamada-field--date {
  grid-area: date;
}


#tab-chamada .chamada-field--schedule {
  grid-area: schedule;
}

#tab-chamada .chamada-field--instructor {
  grid-area: instructor;
}

#tab-chamada .chamada-field--monitor {
  grid-area: monitor;
}

#tab-chamada .chamada-field input,
#tab-chamada .chamada-field select,
#tab-chamada .chamada-search input {
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.24);
  border-radius: 16px;
  color: #243654;
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

#tab-chamada .chamada-field input:focus,
#tab-chamada .chamada-field select:focus,
#tab-chamada .chamada-search input:focus {
  border-color: rgba(74, 111, 179, 0.45);
  box-shadow: 0 0 0 4px rgba(94, 132, 200, 0.12);
}

#tab-chamada .chamada-field__hint {
  color: #7a8ca7;
  font-size: 0.84rem;
  min-height: 1.2em;
}

#tab-chamada .chamada-setup-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

#tab-chamada .chamada-students-panel {
  padding: 12px 12px 20px;
}

#tab-chamada .chamada-students-panel__header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

#tab-chamada .chamada-students-panel__header h3 {
  color: #243654;
  font-size: 1.25rem;
  margin: 0 0 6px;
}

#tab-chamada .chamada-students-panel__header p {
  margin: 0;
}

#tab-chamada .chamada-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

#tab-chamada .chamada-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#tab-chamada .chamada-filter-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.24);
  border-radius: 999px;
  color: #5e7291;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#tab-chamada .chamada-filter-chip strong {
  color: inherit;
  font-size: 0.92rem;
}

#tab-chamada .chamada-filter-chip.is-active {
  background: #243654;
  border-color: #243654;
  color: #fff;
}

#tab-chamada .chamada-toolbar__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

#tab-chamada .chamada-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.24);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  min-width: 250px;
  min-height: 38px;
  padding: 0 14px;
}

#tab-chamada .chamada-search__icon {
  color: #7185a5;
  font-size: 1rem;
}

#tab-chamada .chamada-search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 38px;
  padding: 0;
}

#tab-chamada .chamada-visitor-trigger {
  background: transparent;
  border: 1px solid rgba(147, 162, 184, 0.24);
  border-radius: 999px;
  color: #5e7291;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  min-height: 38px;
  padding: 0 16px;
}

#tab-chamada .chamada-visitor-panel {
  background: #fbfdff;
  border: 1px solid rgba(147, 162, 184, 0.16);
  border-radius: 22px;
  margin-bottom: 14px;
  padding: 18px;
}

#tab-chamada .chamada-board {
  display: grid;
  gap: 12px;
}

#tab-chamada .attendance-class-column,
#tab-chamada .attendance-class-shell {
  min-width: 0;
}

#tab-chamada .attendance-class-shell {
  background: transparent;
  border: 0;
  padding: 0;
}

#tab-chamada .nucleus-header,
#tab-chamada .class-meta,
#tab-chamada .attendance-class-kicker,
#tab-chamada .attendance-class-heading h3 {
  display: none;
}

#tab-chamada .attendance-student-list {
  display: grid;
  gap: 8px;
}

#tab-chamada .attendance-student-card-v2 {
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(31, 46, 72, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  overflow: hidden;
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#tab-chamada .attendance-student-list > .attendance-student-card-v2:first-child {
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

#tab-chamada .attendance-student-list > .attendance-student-card-v2:last-child,
#tab-chamada .attendance-student-list > details:last-child .attendance-student-card-v2:last-child {
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

#tab-chamada .attendance-student-card-v2.is-present {
  background: #fbfffc;
  border-color: rgba(44, 155, 91, 0.24);
  box-shadow: inset 4px 0 0 #2b995d;
}

#tab-chamada .attendance-student-card-v2.is-absent {
  background: #fffafb;
  border-color: rgba(164, 27, 67, 0.24);
  box-shadow: inset 4px 0 0 #8f193e;
}

#tab-chamada .attendance-student-card-v2.is-justified {
  background: #fbfcff;
  border-color: rgba(56, 108, 243, 0.24);
  box-shadow: inset 4px 0 0 #386cf3;
}

#tab-chamada .attendance-student-card-v2__main {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

#tab-chamada .attendance-student-card-v2__identity {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

#tab-chamada .attendance-student-card-v2__avatar {
  align-items: center;
  background: linear-gradient(135deg, #fce6df, #e8f2ff);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

#tab-chamada .attendance-student-card-v2__avatar-text {
  color: #61728e;
  font-family: inherit;
  font-size: 1rem;
}

#tab-chamada .attendance-student-card-v2__avatar-dot {
  background: #4bd09a;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -2px;
  height: 12px;
  position: absolute;
  right: -2px;
  width: 12px;
}

#tab-chamada .student-card-body {
  min-width: 0;
}

#tab-chamada .student-name {
  color: #233654;
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}

#tab-chamada .student-class-info,
#tab-chamada .student-contact,
#tab-chamada .student-status {
  color: #647895;
  margin: 0;
  font-size: 0.9rem;
}

#tab-chamada [data-attendance-badge] {
  color: #7a8ca7;
  display: none;
  font-size: 0.86rem;
  font-weight: 700;
}

#tab-chamada .student-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 0;
}

#tab-chamada .student-actions button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.24);
  border-radius: 999px;
  color: #5f7393;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 36px;
  min-width: 96px;
  padding: 0 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#tab-chamada .student-actions button:hover {
  border-color: rgba(95, 115, 147, 0.4);
}

#tab-chamada .student-actions .btn-present.is-selected {
  background: #e6f7ee;
  border-color: #8fd5ab;
  color: #1f7a48;
}

#tab-chamada .student-actions .btn-absent.is-selected {
  background: #fdecef;
  border-color: #e7a1b4;
  color: #9d2147;
}

#tab-chamada .student-actions .btn-justified.is-selected {
  background: #eaf1ff;
  border-color: #a8c0fb;
  color: #2f65dd;
}

#tab-chamada .attendance-visitor-block {
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.18);
  border-radius: 24px;
  margin-top: 14px;
  overflow: hidden;
}

#tab-chamada .attendance-visitor-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 18px 20px;
}

#tab-chamada .attendance-visitor-summary small {
  color: #7084a6;
  display: block;
  margin-top: 4px;
}

#tab-chamada .attendance-bottom-space {
  height: 108px;
}

#tab-chamada .attendance-final-bar,
#tab-chamada .chamada-finalbar-bridge {
  display: none !important;
}

#tab-chamada progress,
#tab-chamada .progress,
#tab-chamada .progress-bar,
#tab-chamada .attendance-progress,
#tab-chamada .attendance-progress-track,
#tab-chamada .chamada-progress-track {
  display: none !important;
}

#tab-chamada .chamada-finalbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(147, 162, 184, 0.18);
  border-radius: 20px;
  bottom: 14px;
  box-shadow: 0 18px 42px rgba(31, 46, 72, 0.12);
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  left: max(24px, calc(var(--sidebar-width, 72px) + 20px));
  max-width: calc(100vw - max(24px, calc(var(--sidebar-width, 72px) + 20px)) - 24px);
  overflow: visible;
  right: 24px;
  padding: 14px 20px;
  position: fixed;
  z-index: 20;
}

#tab-chamada .chamada-finalbar__main {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.95fr) auto;
  width: 100%;
}

#tab-chamada .chamada-finalbar__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#tab-chamada .chamada-finalbar-count {
  color: #243654;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

#tab-chamada .chamada-finalbar-detail {
  color: #677b98;
  font-size: 0.83rem;
  line-height: 1.3;
}

#tab-chamada .chamada-finalbar__progress {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

#tab-chamada .chamada-finalbar-track {
  background: rgba(147, 162, 184, 0.18);
  border-radius: 999px;
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  width: auto;
}

#tab-chamada .chamada-finalbar-fill {
  background: linear-gradient(90deg, #8f193e, #2b995d);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 0;
}

#tab-chamada .chamada-finalbar-percent {
  color: #5f7393;
  font-size: 0.94rem;
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 40px;
  text-align: right;
}

#tab-chamada .chamada-finalbar-button {
  background: #a91f45;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(169, 31, 69, 0.16);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  min-height: 44px;
  min-width: 220px;
  padding: 0 20px;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#tab-chamada .chamada-finalbar-button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

#tab-chamada .chamada-finalbar-button.is-ready {
  opacity: 1;
}

#tab-chamada .chamada-finalbar-button.is-pending {
  opacity: 0.82;
}

#tab-chamada .report-status.muted {
  color: #7084a6;
}

#tab-chamada .hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  #tab-chamada .chamada-toolbar,
  #tab-chamada .chamada-students-panel__header,
  #tab-chamada .chamada-finalbar__main {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  #tab-chamada .chamada-toolbar,
  #tab-chamada .chamada-students-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  #tab-chamada .chamada-toolbar__actions {
    flex-wrap: wrap;
  }

  #tab-chamada .chamada-search {
    min-width: 0;
    width: 100%;
  }

  #tab-chamada .chamada-finalbar {
    left: max(16px, calc(var(--sidebar-width, 72px) + 12px));
    max-width: calc(100vw - max(16px, calc(var(--sidebar-width, 72px) + 12px)) - 16px);
    padding: 14px 16px;
    right: 16px;
  }

  #tab-chamada .chamada-finalbar-button {
    justify-self: stretch;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 780px) {
  #tab-chamada .chamada-shell {
    padding: 16px 16px 156px;
  }

  #tab-chamada .chamada-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #tab-chamada .chamada-setup-panel__facts,
  #tab-chamada .chamada-setup-grid {
    grid-template-columns: 1fr;
  }

  #tab-chamada .chamada-setup-grid {
    grid-template-areas:
      "date"
      "modality"
      "schedule"
      "instructor"
      "monitor";
  }

  #tab-chamada .attendance-student-card-v2,
  #tab-chamada .attendance-student-card-v2__main,
  #tab-chamada .student-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #tab-chamada .student-actions button {
    width: 100%;
  }

  #tab-chamada .attendance-bottom-space {
    height: 132px;
  }

  #tab-chamada .chamada-finalbar {
    border-radius: 18px;
    bottom: 12px;
    left: 16px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px;
    right: 16px;
  }

  #tab-chamada .chamada-finalbar__main {
    column-gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy copy"
      "progress button";
    row-gap: 10px;
  }

  #tab-chamada .chamada-finalbar__copy {
    gap: 2px;
    grid-area: copy;
  }

  #tab-chamada .chamada-finalbar-count {
    font-size: 0.95rem;
  }

  #tab-chamada .chamada-finalbar-detail {
    font-size: 0.8rem;
  }

  #tab-chamada .chamada-finalbar__progress {
    gap: 10px;
    grid-area: progress;
  }

  #tab-chamada .chamada-finalbar-percent {
    font-size: 0.88rem;
    min-width: 36px;
  }

  #tab-chamada .chamada-finalbar-button {
    font-size: 0.9rem;
    grid-area: button;
    justify-self: end;
    min-height: 40px;
    min-width: 168px;
    padding: 0 16px;
    width: auto;
  }
}

@media (max-width: 560px) {
  #tab-chamada .attendance-bottom-space {
    height: 144px;
  }

  #tab-chamada .chamada-finalbar {
    left: 12px;
    max-width: calc(100vw - 24px);
    right: 12px;
  }

  #tab-chamada .chamada-finalbar__main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "progress"
      "button";
  }

  #tab-chamada .chamada-finalbar-button {
    justify-self: stretch;
    min-width: 0;
    width: 100%;
  }
}

#tab-chamada .chamada-executive,
#tab-chamada .chamada-executive * {
  font-family: inherit !important;
}

#tab-chamada .chamada-executive {
  display: grid;
  gap: 24px;
  padding-top: 18px;
}

#tab-chamada .chamada-executive-kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#tab-chamada .chamada-executive-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#tab-chamada .chamada-executive-card {
  background: #fff;
  border: 1px solid rgba(147, 162, 184, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(37, 59, 94, 0.08);
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  overflow: hidden;
}