/*
 * Fallback if Tailwind is not rebuilt: keep the institute logo small.

 */

.org-logo {
  height: 2.5rem;
  width: 2.5rem;
  max-height: 2.5rem;
  max-width: 2.5rem;
  object-fit: contain;
  display: block;
}

.org-logo-lg {
  height: 4.5rem;
  width: 4.5rem;
  max-height: 4.5rem;
  max-width: 4.5rem;
  object-fit: contain;
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.dashboard-card {
  min-width: 0;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.06);
}

.dashboard-card-solid {
  border: 1px solid #e7e5e4;
}

.dashboard-card-planned {
  border: 1px dashed #d6d3d1;
}

@media (min-width: 700px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-span-2 {
    grid-column: span 2;
  }
}

.person-photo,
.person-photo-lg {
  object-fit: cover;
  border-radius: 0.75rem;
  background: #d5f4f1;
  display: block;
}

.person-photo {
  width: 5.5rem;
  height: 5.5rem;
}

.person-photo-lg {
  width: 8.5rem;
  height: 8.5rem;
}

.image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.image-upload--stack {
  flex-direction: column;
}

.image-upload__frame {
  border-radius: 0.75rem;
  background: #d5f4f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f5f66;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.image-upload__frame--avatar,
.image-upload__frame--logo {
  width: 8.5rem;
  height: 8.5rem;
}

.image-upload__frame--banner {
  width: 100%;
  max-width: 28rem;
  height: 7.5rem;
}

.image-upload--stack .image-upload__frame--banner,
.image-upload--stack .image-upload__frame--bg-desktop {
  max-width: 100%;
}

.image-upload__frame--bg-desktop {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 7.5rem;
}

.image-upload__frame--bg-mobile {
  width: 9rem;
  height: 16rem;
}

.image-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-upload__frame--logo .image-upload__img {
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
}

.image-upload__empty {
  padding: 0.75rem;
  text-align: center;
}

.image-upload__actions {
  min-width: 0;
  flex: 1;
}

.image-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.password-field {
  position: relative;
}

.password-field__input {
  padding-right: 2.75rem;
}

.password-field__toggle {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #78716c;
  cursor: pointer;
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible {
  color: #0f5f66;
  background: #f5f5f4;
  outline: none;
}

.password-field__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.has-org-bg {
  position: relative;
  isolation: isolate;
  background-color: #e8eaed;
}

.org-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.org-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}

.org-bg--mobile-only .org-bg__img--mobile,
.org-bg--desktop-only .org-bg__img--desktop,
.org-bg--both .org-bg__img--mobile {
  display: block;
}

@media (min-width: 1100px) {
  .org-bg--both .org-bg__img--mobile {
    display: none;
  }

  .org-bg--both .org-bg__img--desktop {
    display: block;
  }
}

.org-bg__wash {
  position: absolute;
  inset: 0;
  background: rgb(232 234 237 / 0.78);
}

.transcript-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 0 0;
}

.transcript-footer__hint {
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #78716c;
}

.transcript-qr {
  width: 7rem;
  height: 7rem;
  flex-shrink: 0;
  background: #fff;
}

.transcript-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.impersonation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #0f5f66;
  color: #fff;
  font-size: 0.875rem;
}

.impersonation-bar p {
  margin: 0;
}

.impersonation-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.impersonation-bar__edit {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.impersonation-bar__edit:hover {
  background: rgb(255 255 255 / 0.22);
}

.impersonation-bar__stop {
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.impersonation-bar__stop:hover {
  background: rgb(255 255 255 / 0.22);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.transcript-subject {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.correlatives-select {
  position: relative;
  flex-shrink: 0;
}

.correlatives-select__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 11.5rem;
  padding: 0.3rem 0.55rem 0.3rem 0.7rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  background: #fff;
  color: #44403c;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.correlatives-select__button:hover,
.correlatives-select.is-open .correlatives-select__button {
  border-color: #0f5f66;
  background: #f8fafc;
}

.correlatives-select__chevron {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: #78716c;
}

.correlatives-select.is-open .correlatives-select__chevron {
  transform: rotate(180deg);
}

.correlatives-select__panel {
  position: fixed;
  z-index: 50;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 16rem;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px -12px rgb(15 23 42 / 0.28);
}

.correlatives-select__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #1e293b;
}

.correlatives-select__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.correlatives-select__icon--ok {
  color: #059669;
}

.correlatives-select__icon--no {
  color: #dc2626;
}

.correlatives-select__name {
  min-width: 0;
}

.equivalence-add__panel {
  padding: 0.75rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}

.combobox {
  position: relative;
}

.combobox__list {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  left: 0;
  margin: 0.25rem 0 0;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px rgb(28 25 23 / 0.12);
}

.combobox__option,
.combobox__empty {
  padding: 0.5rem 0.75rem;
}

.combobox__option {
  cursor: pointer;
}

.combobox__option + .combobox__option {
  border-top: 1px solid #f5f5f4;
}

.combobox__option:hover,
.combobox__option.is-active {
  background: #d5f4f1;
}

.combobox__label,
.combobox__hint {
  display: block;
}

.combobox__hint,
.combobox__empty {
  font-size: 0.75rem;
  color: #78716c;
}

.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #1e293b;
  font-size: 1.125rem;
  line-height: 1;
}

.calendar-view-switch {
  display: inline-flex;
  border: 1px solid #d6d3d1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.calendar-view-switch__item {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #57534e;
}

.calendar-view-switch__item.is-active {
  background: #0f5f66;
  color: #fff;
}

.calendar-month,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #e7e5e4;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  overflow: hidden;
}

.calendar-month__head {
  background: #f5f5f4;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78716c;
}

.calendar-month__cell {
  background: #fff;
  min-height: 6.75rem;
  padding: 0.4rem;
}

.calendar-month__cell.is-outside {
  background: #fafaf9;
  color: #a8a29e;
}

.calendar-month__cell.is-today {
  box-shadow: inset 0 0 0 2px #0f5f66;
}

.calendar-chip {
  display: block;
  border-radius: 0.35rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-chip--brand {
  background: #d5f4f1;
  color: #0f5f66;
}

.calendar-chip--recess {
  background: #fce7f3;
  color: #9d174d;
}

.calendar-chip--ceremony {
  background: #d1fae5;
  color: #065f46;
}

.calendar-dot {
  display: flex;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.1;
}

.calendar-dot--brand {
  background: #d5f4f1;
  color: #0f5f66;
}

.calendar-dot--recess {
  background: #fce7f3;
  color: #9d174d;
}

.calendar-dot--ceremony {
  background: #d1fae5;
  color: #065f46;
}

.calendar-day__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.9rem;
  background: #fff;
}

.guide-layout {
  display: grid;
  gap: 2rem;
}

.guide-nav {
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  background: #fff;
  padding: 1.25rem;
}

.guide-prose h1 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.875rem;
  font-weight: 500;
}

.guide-prose h2 {
  margin-top: 2.25rem;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.guide-prose h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.guide-prose p,
.guide-prose ul,
.guide-prose ol,
.guide-prose table {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #44403c;
}

.guide-prose ul,
.guide-prose ol {
  padding-left: 1.25rem;
}

.guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }

.guide-prose a {
  color: #0f5f66;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e7e5e4;
  background: #fff;
}

.guide-prose th,
.guide-prose td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.guide-prose thead th {
  background: #d5f4f1;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #0f5f66;
}

@media (min-width: 900px) {
  .guide-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }
}

@media print {
  .correlatives-select,
  .transcript-correlatives,
  .transcript-equivalence,
  .cardex-actions {
    display: none !important;
  }
}
