:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.35);
  --indigo: #4338ca;
  --indigo-soft: rgba(79, 70, 229, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 0% 0%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(900px 450px at 100% 0%, rgba(99, 102, 241, 0.14), transparent 45%),
    linear-gradient(150deg, #f8fafc 0%, #eef2ff 45%, #e2e8f0 100%);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.glass-header {
  background: rgba(255, 255, 255, 0.5);
}

.panel-sky {
  border-color: rgba(56, 189, 248, 0.35);
}

.panel-indigo {
  border-color: rgba(129, 140, 248, 0.45);
}

.panel-emerald {
  border-color: rgba(52, 211, 153, 0.4);
}

.panel-amber {
  border-color: rgba(251, 191, 36, 0.45);
}

.panel-rose {
  border-color: rgba(251, 113, 133, 0.4);
}

.panel-violet {
  border-color: rgba(167, 139, 250, 0.4);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header .app-header {
  padding: 0.75rem 1rem;
}

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

.brand img,
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
}

.letterhead-img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-caption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #1e293b;
}

.check-row input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #0f766e;
}

.field {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.72rem 0.85rem;
  outline: none;
}

.field:focus {
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.field.is-required {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16);
}

.btn {
  border: 0;
  border-radius: 0.55rem;
  padding: 0.32rem 0.58rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  filter: brightness(1.04);
}

.btn:active:not(:disabled),
.btn.is-pressed:not(:disabled) {
  transform: translateY(1px) scale(0.96);
  box-shadow: none;
  filter: brightness(0.94);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: #4338ca;
  color: #fff;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-danger {
  background: #e11d48;
  color: #fff;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  padding: 0;
  border-radius: 0.5rem;
  text-decoration: none;
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.5rem;
}

.icon-label svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  pointer-events: none;
}

.google-btn {
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  padding: 0.42rem 0.7rem;
  font-weight: 650;
}

.google-btn .google-logo {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-email-box {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.auth-email-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569;
}

.auth-email-box #forgotBtn {
  justify-self: start;
  padding: 0;
  background: none;
  border: 0;
}

.icon-btn-ok {
  color: #047857;
}

.icon-btn-ok:hover {
  background: #d1fae5;
  color: #065f46;
}

.icon-btn-x {
  color: #be123c;
}

.icon-btn-x:hover {
  background: #ffe4e6;
  color: #9f1239;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.btn-emerald {
  background: #059669;
  color: #fff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill:active,
.pill.is-pressed {
  transform: translateY(1px) scale(0.96);
}

.pill.active {
  border-color: rgba(129, 140, 248, 0.9);
  background: var(--indigo-soft);
  color: #3730a3;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-draft {
  background: #e2e8f0;
  color: #334155;
}

.status-sent {
  background: #fef3c7;
  color: #92400e;
}

.status-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-failed,
.status-void {
  background: #ffe4e6;
  color: #9f1239;
}

.status-active {
  background: #dbeafe;
  color: #1e3a8a;
}

.status-inactive,
.status-stopped {
  background: #e2e8f0;
  color: #475569;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.meta-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
}

button.meta-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.meta-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.stack-rows {
  display: grid;
  gap: 10px;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 0.65rem 0.1rem;
  border-bottom: 1px solid var(--line);
}

.stack-row:last-child {
  border-bottom: 0;
}

.zman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.zman-card {
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
}

.zman-card.alos { background: rgba(224, 242, 254, 0.75); }
.zman-card.netz { background: rgba(254, 243, 199, 0.75); }
.zman-card.shema { background: rgba(224, 231, 255, 0.8); }
.zman-card.tefillah { background: rgba(237, 233, 254, 0.8); }
.zman-card.chatzos { background: rgba(254, 226, 226, 0.7); }
.zman-card.mincha { background: rgba(209, 250, 229, 0.75); }
.zman-card.shkiah { background: rgba(255, 237, 213, 0.8); }
.zman-card.tzeis { background: rgba(226, 232, 240, 0.85); }

.month-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.month-pager,
.hebrew-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.month-pager strong,
.hebrew-cal-nav strong {
  min-width: 7.5rem;
  text-align: center;
  font-size: 1.05rem;
}

.month-pager button,
.hebrew-cal-nav button {
  width: 2rem;
  height: 2rem;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.hebrew-date-field {
  position: relative;
}

.hebrew-date-btn {
  text-align: right;
  direction: rtl;
  cursor: pointer;
}

.hebrew-cal-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 17.5rem;
  padding: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.hebrew-cal-week,
.hebrew-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 8px;
  text-align: center;
}

.hebrew-cal-week span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.hebrew-cal-grid button {
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.hebrew-cal-grid button:hover {
  background: #eef2ff;
}

.hebrew-cal-grid button.is-selected {
  background: #4338ca;
  color: #fff;
}

.hebrew-cal-grid button.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #4338ca;
}

.day-card {
  border-radius: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
}

.day-card.selected {
  outline: 2px solid #4338ca;
}

.day-card.shabbos {
  background: rgba(238, 242, 255, 0.9);
}

.day-card.yomtov {
  background: rgba(254, 243, 199, 0.88);
}

.admin-shell:not(.hidden) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0.75rem;
  gap: 0.75rem;
  box-sizing: border-box;
}

.admin-header {
  flex: 0 0 auto;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 0 1rem 0.75rem;
}

.tab {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab:active,
.tab.is-pressed {
  transform: translateY(1px) scale(0.96);
}

.tab.active {
  background: #4338ca;
  color: #fff;
  border-color: transparent;
}

.table-wrap {
  max-height: calc(100vh - 13rem);
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.admin-main {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: start;
}

body:has(#membersPanel:not(.hidden)),
body:has(#duesPanel:not(.hidden)),
body:has(#billsPanel:not(.hidden)),
body:has(#solaPanel:not(.hidden)),
body:has(#booksPanel:not(.hidden)),
body:has(#logPanel:not(.hidden)),
body:has(#receiptsPanel:not(.hidden)),
body:has(#reportPanel:not(.hidden)),
body:has(#listPanel:not(.hidden)),
body:has(#notesPanel:not(.hidden)) {
  overflow: hidden;
}

body:has(#membersPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#duesPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#billsPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#solaPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#booksPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#logPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#receiptsPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#reportPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#listPanel:not(.hidden)) .admin-shell:not(.hidden),
body:has(#notesPanel:not(.hidden)) .admin-shell:not(.hidden) {
  height: 100dvh;
  overflow: hidden;
}

body:has(#membersPanel:not(.hidden)) .admin-main,
body:has(#duesPanel:not(.hidden)) .admin-main,
body:has(#billsPanel:not(.hidden)) .admin-main,
body:has(#solaPanel:not(.hidden)) .admin-main,
body:has(#booksPanel:not(.hidden)) .admin-main,
body:has(#logPanel:not(.hidden)) .admin-main,
body:has(#receiptsPanel:not(.hidden)) .admin-main,
body:has(#reportPanel:not(.hidden)) .admin-main,
body:has(#listPanel:not(.hidden)) .admin-main,
body:has(#notesPanel:not(.hidden)) .admin-main {
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

#membersPanel:not(.hidden),
#duesPanel:not(.hidden),
#billsPanel:not(.hidden),
#solaPanel:not(.hidden),
#booksPanel:not(.hidden),
#logPanel:not(.hidden),
#receiptsPanel:not(.hidden),
#reportPanel:not(.hidden),
#listPanel:not(.hidden),
#notesPanel:not(.hidden) {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.members-panel {
  background: #fff;
}

.notes-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.7rem;
  align-content: start;
}

.note-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.note-card.is-dragging {
  opacity: 0.45;
}

.note-card.is-drop {
  outline: 2px solid #4338ca;
  outline-offset: 2px;
}

.note-card.is-min .note-card-main {
  display: none;
}

.note-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.3rem;
}

.note-card-grip {
  cursor: grab;
}

.note-card-grip:active {
  cursor: grabbing;
}

.note-card-min svg {
  transition: transform 0.15s ease;
}

.note-card-min.is-open svg {
  transform: rotate(180deg);
}

.note-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}

.note-card-balance {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1e3a5f;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.note-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.note-card-entry {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 0.25rem 0.4rem;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding: 0.18rem 0;
  font-size: 0.8rem;
}

.note-card-entry.is-editing {
  grid-template-columns: auto 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem;
}

.note-card-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.2rem;
}

.note-card-entry.is-editing [data-note-edit-note] {
  grid-column: 1 / -1;
  min-height: 4.6rem;
  width: 100%;
  resize: vertical;
}

.note-sign {
  display: flex;
  gap: 0.2rem;
}

.note-sign .btn {
  min-width: 2.1rem;
  padding-inline: 0.45rem;
}

.note-card-when {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
}

.note-card-amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.note-card-amt.is-add {
  color: #166534;
}

.note-card-amt.is-sub {
  color: #9f1239;
}

.note-card-body {
  color: #334155;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-card-move {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto auto;
  gap: 0.35rem;
  align-items: end;
  margin-top: 0.25rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e2e8f0;
}

.report-section {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.members-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.members-table {
  width: max-content;
  min-width: 100%;
}

.members-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f1f5f9;
  color: #334155;
  box-shadow: inset 0 -1px 0 #cbd5e1;
  white-space: nowrap;
}

.members-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.25;
  padding-top: 5px;
  padding-bottom: 5px;
  max-width: 9rem;
}

.members-table td:nth-child(1) {
  max-width: 16rem;
}

.members-table td:nth-child(3),
.members-table td:nth-child(4) {
  max-width: 18rem;
}

.members-table td.table-actions {
  max-width: none;
  overflow: visible;
}

.dues-table {
  min-width: 100%;
}

.dues-table .dues-month,
.dues-table .dues-num {
  padding-left: 4px;
  padding-right: 4px;
  font-size: 0.78rem;
  max-width: 5.5rem;
}

.dues-table .dues-due {
  background: #fff7ed;
}

.dues-table .dues-credit {
  color: #0f766e;
}

.dues-table .dues-month {
  text-align: right;
  max-width: 6.5rem;
}

.dues-table .dues-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f1f5f9;
  color: #334155;
  box-shadow: inset 0 -1px 0 #cbd5e1;
}

.data-table thead tr.filter-row th {
  top: 2.15rem;
  z-index: 3;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

.data-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #ecfdf5;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #cbd5e1;
}

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 6px;
}

.data-table td {
  padding: 7px 6px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  vertical-align: top;
  font-size: 0.86rem;
}

.data-table input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  min-height: 1.4rem;
  margin: 0;
  accent-color: #4338ca;
  cursor: pointer;
}

.data-table th[data-log-sort],
.data-table th[data-aliyah-sort],
.data-table th[data-bill-sort],
.data-table th[data-receipt-sort] {
  cursor: pointer;
  user-select: none;
}

.data-table th[data-log-sort]:hover,
.data-table th[data-aliyah-sort]:hover,
.data-table th[data-bill-sort]:hover,
.data-table th[data-receipt-sort]:hover {
  color: #312e81;
}

.data-table tr.filter-row th {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: #f8fafc;
  vertical-align: top;
  cursor: default;
}

.data-table tr.filter-row .field {
  min-width: 0;
  width: 100%;
}

.data-table tr.filter-row .filter-stack {
  display: grid;
  gap: 4px;
}

.data-table tr.filter-row .filter-pair {
  display: flex;
  gap: 4px;
  align-items: center;
}

.data-table th.is-sort-desc::after,
.data-table th.is-sort-asc::after {
  margin-left: 0.25rem;
  color: #4338ca;
}

.data-table th.is-sort-desc::after {
  content: "▼";
  font-size: 0.65rem;
}

.data-table th.is-sort-asc::after {
  content: "▲";
  font-size: 0.65rem;
}

.notice {
  color: #475569;
  font-size: 0.92rem;
}

.notice.error {
  color: #be123c;
}

.notice.ok {
  color: #047857;
}

.hidden {
  display: none !important;
}

.ifields-box,
.card-fields-host,
#payFields,
#walletCardSlot,
#membershipCardSlot,
#billCardSlot,
#adminPayFields {
  position: relative;
  z-index: 2;
  isolation: isolate;
  transform: translateZ(0);
  filter: none;
  backdrop-filter: none;
}

.ifields-box {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  padding: 0;
}

.ifields-box iframe {
  display: block;
  width: 100%;
  height: 2.88rem;
  border: 0;
  background: transparent;
  pointer-events: auto;
  overflow: hidden;
  scrollbar-width: none;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.wallet-card .btn,
.wallet-card .icon-label {
  width: auto;
  min-width: 0;
  justify-self: start;
}

.name-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.name-link:hover {
  text-decoration: underline;
}

.wallet-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 150px;
  padding: 1rem 2.6rem 1.05rem 1.05rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.78));
  border: 1px solid rgba(165, 180, 252, 0.45);
}

.wallet-card.is-default {
  border-color: rgba(16, 185, 129, 0.45);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(209, 250, 229, 0.55));
}

.wallet-card .wallet-brand {
  font-size: 1.15rem;
  font-weight: 800;
}

.wallet-card .wallet-pan {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.wallet-card .wallet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wallet-card .wallet-remove.icon-btn,
.wallet-card .wallet-remove {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  justify-self: auto;
}

body.modal-open {
  overflow: hidden;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow: auto;
}

.modal-root.hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100dvh - 8vh);
  overflow: auto;
  margin: auto;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: none;
}

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

.aliyah-row {
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.aliyah-row.is-split-off {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

.aliyah-row.is-split-off [data-split-total],
.aliyah-row.is-split-off [data-amount] {
  border-color: #dc2626;
}

.aliyah-row [data-split-balance-note] {
  flex: 1 1 100%;
  margin: 0;
}

.aliyah-shares {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.aliyah-share + .aliyah-share {
  padding-top: 0.65rem;
  border-top: 1px dashed #cbd5e1;
}

.member-picker {
  position: relative;
}

.member-picker-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 14rem;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.member-picker-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.member-picker-list button:hover,
.member-picker-list button.is-active {
  background: rgba(99, 102, 241, 0.1);
}

.member-picker-empty {
  padding: 0.65rem 0.85rem;
  color: #64748b;
}

.apply-pledge-all {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.45rem;
  font-weight: 650;
  cursor: pointer;
}

.apply-pledge-all input[type="checkbox"],
.apply-pledge-list input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  min-height: 1.4rem;
  margin: 0;
  accent-color: #4338ca;
  cursor: pointer;
}

.apply-pledge-list {
  max-height: 16rem;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.2rem 0.35rem;
}

.apply-pledge-list label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0.4rem;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
}

.apply-pledge-list label:first-child {
  border-top: 0;
}

.apply-pledge-list .notice {
  margin-top: 0.15rem;
}

.apply-pledge-empty {
  padding: 0.75rem 0.55rem;
  color: #64748b;
}

.check-review-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .check-review-layout {
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr);
    align-items: start;
  }
}

.check-preview {
  position: relative;
  display: block;
  margin-top: 0.65rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0f172a;
}

.check-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.check-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.check-review-row.is-mark-row {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 4px;
  border-radius: 0.8rem;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  position: sticky;
  top: -1.25rem;
  z-index: 2;
  padding-top: 0.15rem;
  padding-bottom: 0.65rem;
  background: #fff;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

[data-panel] {
  padding: 0.55rem 0.75rem 0.6rem !important;
}

[data-panel] .panel-toolbar {
  gap: 0.35rem 0.75rem;
  align-items: center;
}

[data-panel] .panel-toolbar h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

[data-panel] .panel-toolbar .notice {
  display: none;
}

[data-panel] .field-stack {
  gap: 2px;
}

[data-panel] .field-caption {
  font-size: 0.66rem;
}

[data-panel] .field {
  padding: 0.32rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.86rem;
}

[data-panel] .grid.gap-3,
[data-panel] .grid.gap-4 {
  gap: 0.45rem;
}

[data-panel] .mt-4 {
  margin-top: 0.4rem !important;
}

[data-panel] .mt-3,
[data-panel] .my-3,
[data-panel] .my-4 {
  margin-top: 0.3rem !important;
}

[data-panel] .my-3,
[data-panel] .my-4 {
  margin-bottom: 0.25rem !important;
}

[data-panel] > .notice {
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

[data-panel] .notice:empty,
#mailAlerts:empty {
  display: none !important;
  margin: 0 !important;
}

[data-panel] .meta-grid {
  margin-top: 0.35rem;
}

[data-panel] .meta-card {
  padding: 0.4rem 0.65rem;
}

[data-panel] .dropzone {
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  gap: 0.35rem 0.75rem;
  grid-auto-flow: column;
  justify-content: start;
  justify-items: start;
  text-align: left;
  border-radius: 0.7rem;
}

[data-panel] .dropzone strong {
  font-size: 0.82rem;
}

.menu-btn {
  position: relative;
}

.menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 12rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 0.3rem;
}

.menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.menu-pop button:hover {
  background: rgba(99, 102, 241, 0.1);
}

.bill-pdf-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 8.5in;
  background: #fff;
}

.bill-pdf-stage.is-landscape {
  width: 11in;
}

.report-pdf-page {
  width: 8.5in;
  padding: 0.4in 0.45in 0.5in;
  background: #fff;
  color: #1e293b;
}

.report-pdf-page.is-landscape {
  width: 11in;
}

.report-pdf-page.is-paged {
  box-sizing: border-box;
  height: 11in;
  overflow: hidden;
}

.report-pdf-page.is-landscape.is-paged {
  height: 8.5in;
  padding: 0.38in 0.4in 0.22in;
}

.report-pdf-page.is-paged table {
  table-layout: fixed;
}

.report-pdf-page.is-paged th,
.report-pdf-page.is-paged td {
  padding: 3px 4px;
  font-size: 8pt;
}

.report-pdf-page.is-paged th {
  white-space: normal;
  line-height: 1.15;
}

.report-pdf-page.is-paged .dues-pdf-table col.dues-name {
  width: 16%;
}

.report-pdf-page.is-paged .dues-pdf-table col.dues-pay {
  width: 7%;
}

.report-pdf-page.is-paged .dues-pdf-table col.dues-total {
  width: 6.5%;
}

.report-pdf-page.is-paged .dues-pdf-table td.num {
  white-space: nowrap;
}

.report-pdf-page h1 {
  margin: 0 0 0.08in;
  font-size: 16pt;
}

.report-pdf-page .report-pdf-sub {
  margin: 0 0 0.12in;
  color: #64748b;
  font-size: 10pt;
}

.report-pdf-page h2 {
  margin: 0.28in 0 0.1in;
  font-size: 12pt;
}

.report-pdf-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}

.report-pdf-page th,
.report-pdf-page td {
  border: 1px solid #cbd5e1;
  padding: 4px 5px;
  text-align: left;
}

.report-pdf-page th {
  background: #f1f5f9;
  font-weight: 700;
}

.report-pdf-page .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-pdf-page tfoot td {
  font-weight: 700;
  background: #ecfdf5;
}

.bill-pdf-page {
  width: 8.5in;
  min-height: 0;
  padding: 0.4in 0.65in 0.5in;
  background: #fff;
  color: #1e293b;
}

.bill-pdf-page .bill-sheet-to,
.bill-pdf-page .mail-block {
  margin: 0.5in 0 0.45in 0.05in;
  min-height: 1in;
  font-size: 12pt;
}

.bill-pdf-page .mail-block {
  margin: 0;
  min-height: 0;
}

.bill-sheet-head {
  text-align: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.bill-sheet-to {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0 0 1.5rem;
}

.bill-sheet-meta {
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}

.bill-sheet-no,
.bill-sheet-date {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  color: inherit;
}

.bill-sheet-no strong {
  font-weight: 700;
}

.bill-sheet-head .letterhead-img {
  margin: 0 auto;
}

.bill-sheet-intro {
  margin: 0 0 1rem;
}

.bill-sheet-amount {
  text-align: right;
  font-weight: 800;
}

.bill-sheet-total {
  text-align: right;
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 1.5rem;
}

.bill-sheet-honor {
  font-weight: 800;
}

.dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 1.1rem;
  border: 2px dashed rgba(5, 150, 105, 0.45);
  background: rgba(209, 250, 229, 0.35);
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dropzone strong {
  color: #065f46;
  font-size: 1.02rem;
}

.dropzone.is-drag {
  border-color: #059669;
  background: rgba(167, 243, 208, 0.55);
}

.pay-footer {
  margin-top: 1rem;
  padding: 0.55rem 0.75rem 0.6rem;
  border-top: 2px solid #1e3a5f;
  background: rgba(248, 250, 252, 0.92);
  border-radius: 0 0 1rem 1rem;
}

.pay-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a5f;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pay-footer p {
  margin: 0;
  color: #334155;
  line-height: 1.3;
  font-size: 0.92rem;
}

.pay-check {
  margin-top: 0.4rem;
}

.pay-check p {
  line-height: 1.25;
}

.pay-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  margin: 0 0 0.2rem;
}

.pay-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-link:hover {
  color: #1e3a8a;
}

.pay-url {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
  word-break: break-all;
  color: #1e3a5f;
}

.pay-bill-id {
  margin: 0 0 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #1e3a5f;
}

.bill-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e3a5f;
  white-space: nowrap;
}

.bill-pdf-page .pay-footer {
  margin-top: 0.28in;
  padding: 0.1in 0.12in 0.12in;
}

.bill-pdf-page .pay-title {
  margin-bottom: 0.06in;
  font-size: 8.5pt;
}

.bill-pdf-page .pay-footer p {
  font-size: 10pt;
}

.toast-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(28rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  font-weight: 650;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  animation: toast-in 0.22s ease;
}

.toast-ok {
  border-color: #6ee7b7;
  color: #047857;
}

.toast-error {
  border-color: #fda4af;
  color: #be123c;
}

.toast-info {
  border-color: #a5b4fc;
  color: #3730a3;
}

.toast-out {
  animation: toast-out 0.18s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.menu-pop button {
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.menu-pop button:active,
.menu-pop button.is-pressed {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .tab,
  .pill,
  .menu-pop button,
  .toast {
    transition: none;
    animation: none;
  }
  .btn:hover:not(:disabled),
  .btn:active:not(:disabled),
  .btn.is-pressed:not(:disabled),
  .tab:hover,
  .tab:active,
  .tab.is-pressed,
  .pill:hover,
  .pill:active,
  .pill.is-pressed {
    transform: none;
  }
}

.zmanim-chart-host {
  overflow: auto;
}

.zmanim-print-only {
  display: none;
}

.zmanim-hint {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.zmanim-cell-text {
  display: inline-block;
  min-width: 2.4rem;
  cursor: default;
}

.zmanim-cell-text.is-wide {
  min-width: 6rem;
}

.zmanim-edit {
  width: 4.4rem;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  padding: 0.12rem 0.2rem;
  text-align: center;
  font: inherit;
  background: #fff;
}

.zmanim-edit-wide {
  width: 9.5rem;
}

.zmanim-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.zmanim-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  white-space: normal;
}

.zmanim-formula {
  font-size: 0.68rem;
  font-weight: 500;
  color: #475569;
  max-width: 9.5rem;
}

.zmanim-formula summary {
  cursor: pointer;
  list-style: none;
  line-height: 1.2;
}

.zmanim-formula summary::-webkit-details-marker {
  display: none;
}

.zmanim-formula-box {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.35rem;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  direction: ltr;
  text-align: left;
}

.zmanim-formula-field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.zmanim-formula-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  padding: 0.15rem 0.25rem;
  font: inherit;
}

.zmanim-formula-restore {
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  background: #f8fafc;
  padding: 0.2rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.zmanim-sheet {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem 0.7rem 1rem;
}

.zmanim-sheet-title {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.zmanim-sheet-sub {
  margin: 0.15rem 0 0.7rem;
  text-align: center;
  color: #475569;
  font-size: 0.85rem;
}

.zmanim-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  direction: rtl;
}

.zmanim-sheet-table th,
.zmanim-sheet-table td {
  border: 1px solid #cbd5e1;
  padding: 0.28rem 0.22rem;
  text-align: center;
  white-space: nowrap;
}

.zmanim-sheet-table th {
  background: #f1f5f9;
  font-weight: 700;
  line-height: 1.2;
}

.zmanim-sheet-table td:first-child,
.zmanim-sheet-table th:first-child {
  text-align: right;
  font-weight: 600;
}

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }
  html,
  body {
    background: #fff;
    min-height: 0 !important;
    height: auto !important;
  }
  .no-print,
  #printNotice {
    display: none !important;
  }
  .print-sheet {
    box-shadow: none;
    background: #fff;
    max-width: none;
    margin: 0;
    padding: 0;
    break-after: avoid;
    page-break-after: avoid;
  }
  .bill-sheet-to,
  .mail-block {
    margin: 0 0 0.35in;
    min-height: 0;
    font-size: 12pt;
  }
  .mail-block {
    margin: 0;
  }
}

@page zmanim {
  size: letter landscape;
  margin: 0.35in;
}

html.print-zmanim body,
html.print-zmanim .admin-shell,
html.print-zmanim .admin-main {
  background: #fff !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: block !important;
}

html.print-zmanim .admin-header,
html.print-zmanim .no-print,
html.print-zmanim .zmanim-chart-host,
html.print-zmanim [data-panel]:not(#zmanimPanel) {
  display: none !important;
}

html.print-zmanim .zmanim-print-only {
  display: block !important;
}

html.print-zmanim #zmanimPanel {
  display: block !important;
  border: 0;
  box-shadow: none;
  background: #fff;
  padding: 0;
}

html.print-zmanim .zmanim-sheet {
  border: 0;
  border-radius: 0;
  padding: 0;
  page: zmanim;
}

html.print-zmanim .zmanim-sheet-table {
  font-size: 9pt;
}

.choice-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.choice-row input {
  margin-top: 0.2rem;
}

.zmanim-week {
  display: grid;
  gap: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.zmanim-week-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 1.1rem;
  font-weight: 800;
  font-size: 1.15rem;
  background: rgba(79, 70, 229, 0.1);
}

.zmanim-week-title-he {
  direction: rtl;
  text-align: right;
}

.zmanim-week-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.78rem 1.1rem;
  border-top: 1px solid var(--line);
}

.zmanim-week-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.35);
}

.zmanim-week-label {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.zmanim-week-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.zmanim-week-he {
  font-weight: 700;
  text-align: right;
  direction: rtl;
}

.zmanim-flyer {
  overflow: visible;
}

#zmanimDate:empty {
  display: none;
}

.zmanim-flyer-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #94a3b8;
  border-radius: 0;
  background: #fff;
}

.bulletin-board-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.bulletin-board-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #94a3b8;
  background: #fff;
}

.bulletin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.bulletin-lightbox.hidden {
  display: none;
}

.bulletin-lightbox-img {
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.bulletin-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
