* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f5f2;
  color: #1f1e1b;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a {
  color: oklch(0.45 0.08 235);
  text-decoration: none;
}
a:hover {
  color: #1f1e1b;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
small {
  display: block;
  color: #6b6862;
  font-size: 12px;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.muted {
  color: #6b6862;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  border-right: 1px solid #e4e2dc;
  padding: 22px 12px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand {
  padding: 0 10px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a877f;
  padding: 0 10px 4px;
}
.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  color: #4a4843;
}
.nav-item:hover {
  background: #ecebe6;
}
.nav-item.active {
  background: #e8e7e1;
  color: #1f1e1b;
  font-weight: 600;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px 0;
  border-top: 1px solid #e4e2dc;
  font-size: 13px;
}
.user {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.user strong {
  font-size: 14px;
}
.user .text-button {
  font-size: 12px;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: none;
  color: oklch(0.45 0.08 235);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-weight: 500;
}
.text-button.muted {
  color: #6b6862;
}
main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 80px;
}
.main-inner {
  max-width: 1180px;
  margin: auto;
}
.global-search {
  max-width: 620px;
  margin-bottom: 26px;
}
.global-search input {
  height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.page-heading p {
  margin: 4px 0 0;
}
h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.section-heading h2 {
  margin: 0;
}
section {
  margin-top: 28px;
}
.card {
  background: white;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  overflow: hidden;
}
.card-padding {
  padding: 18px 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 18px 20px;
  color: #1f1e1b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric span {
  color: #6b6862;
  font-size: 13px;
}
.metric strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric:hover {
  border-color: #d9d6ce;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  font-size: 12px;
  font-weight: 500;
  color: #6b6862;
  text-align: left;
  background: #faf9f6;
  padding: 10px 16px;
  border-bottom: 1px solid #e4e2dc;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid #eeece7;
  vertical-align: top;
}
td small {
  margin-top: 3px;
  white-space: normal;
}
td strong {
  font-size: 13px;
  font-weight: 500;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #faf9f6;
}
td.actions {
  display: flex;
  align-items: center;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d9d6ce;
  border-radius: 6px;
  background: white;
  color: #1f1e1b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  font-size: 13px;
}
.button:hover {
  background: #f1f0eb;
}
.button.primary {
  background: oklch(0.45 0.08 235);
  border-color: oklch(0.45 0.08 235);
  color: white;
}
.button.primary:hover {
  background: oklch(0.39 0.08 235);
}
.button.small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.button.danger {
  color: oklch(0.48 0.12 25);
}
.full {
  width: 100%;
}
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
  white-space: nowrap;
  background: #efeee9;
  color: #5b5953;
}
.ok {
  color: oklch(0.45 0.09 155);
  background: oklch(0.95 0.035 155);
}
.warning {
  color: oklch(0.48 0.09 65);
  background: oklch(0.96 0.035 80);
}
.error {
  color: oklch(0.48 0.12 25);
  background: oklch(0.95 0.03 25);
}
.error-text {
  color: oklch(0.48 0.12 25);
}
.warning-text {
  color: oklch(0.48 0.09 65);
}
.banner {
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0;
  background: #efeee9;
}
.banner.error {
  background: oklch(0.95 0.03 25);
}
.banner.warning {
  background: oklch(0.96 0.035 80);
}
.todo-row {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid #eeece7;
  color: #1f1e1b;
}
.todo-row strong {
  font-weight: 500;
}
.todo-row small {
  margin-top: 3px;
}
.todo-row:last-child {
  border: 0;
}
.todo-row:hover {
  background: #faf9f6;
}
.event-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #eeece7;
}
.event-row:last-child {
  border-bottom: 0;
}
.event-row strong {
  display: block;
  font-weight: 500;
  margin: 3px 0;
}
.event-label {
  font-size: 12px;
  color: #6b6862;
  margin-right: 10px;
}
.empty {
  padding: 24px;
  text-align: center;
  color: #8a877f;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.filters {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.toolbar .filters {
  margin: 0;
}
.filter {
  padding: 6px 12px;
  border-radius: 6px;
  color: #6b6862;
  font-size: 13px;
}
.filter.selected {
  background: #e8e7e1;
  color: #1f1e1b;
  font-weight: 600;
}
.filter:hover {
  background: #ecebe6;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 20px;
}
.facts small {
  margin-bottom: 5px;
}
.facts strong {
  font-weight: 500;
}
.holding-card {
  margin-bottom: 10px;
}
.holding-card .facts {
  padding: 12px 0 0;
}
.record-title {
  font-size: 15px;
  font-weight: 600;
}
.back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
}
.check-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  border-radius: 6px;
  padding: 11px 14px;
  margin: 8px 0;
  color: inherit;
}
.check-row > span {
  font-size: 12px;
}
.check-row strong {
  font-weight: 500;
}
.check-row small {
  color: inherit;
  margin-top: 3px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 30, 27, 0.4);
  z-index: 80;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 24px;
}
.modal {
  background: white;
  border: 1px solid #e4e2dc;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  width: 640px;
  max-width: 100%;
  outline: none;
}
.modal-heading {
  padding: 18px 24px;
  border-bottom: 1px solid #e4e2dc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-heading h2 {
  font-size: 18px;
  margin: 0;
}
.modal-heading small {
  margin-top: 4px;
}
.modal-body {
  padding: 18px 24px;
}
.modal-footer {
  border-top: 1px solid #e4e2dc;
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.close {
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b6862;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d6ce;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  height: 36px;
  color: #1f1e1b;
  font-weight: 400;
}
textarea {
  height: auto;
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: oklch(0.45 0.08 235);
  width: 15px;
  height: 15px;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
fieldset {
  border: 1px solid #e4e2dc;
  border-radius: 6px;
  margin: 16px 0;
  padding: 14px;
}
legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.details {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}
.details dt {
  color: #6b6862;
  font-size: 13px;
}
.details dd {
  margin: 0;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1f1e1b;
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 90;
  max-width: 460px;
  display: flex;
  gap: 18px;
}
.toast button {
  color: oklch(0.82 0.08 235);
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  width: 420px;
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 10px;
  padding: 32px;
}
.login-card h2 {
  font-size: 20px;
}
.login-card p {
  margin: 4px 0 20px;
}
.steps {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #8a877f;
}
.steps .current {
  color: oklch(0.45 0.08 235);
  font-weight: 600;
}
.hidden,
[hidden] {
  display: none !important;
}
.viewer {
  position: fixed;
  inset: 0;
  background: #262521;
  z-index: 85;
  color: white;
  display: flex;
  flex-direction: column;
}
.viewer-bar {
  height: 62px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f1e1b;
  gap: 10px;
}
.viewer-bar .button {
  color: #fff;
  background: #373630;
  border-color: #55524a;
}
.viewer-content {
  display: flex;
  flex: 1;
  min-height: 0;
}
.viewer-pages {
  flex: 1;
  overflow: auto;
  padding: 24px;
  text-align: center;
}
.viewer-pages canvas {
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px #0004;
  max-width: none;
}
.viewer-meta {
  width: 280px;
  background: #faf9f6;
  color: #1f1e1b;
  padding: 24px;
  overflow: auto;
}
.viewer-meta .details {
  display: block;
}
.viewer-meta dt {
  margin-top: 16px;
}
.paper {
  background: #fff;
  border: 1px solid #e4e2dc;
  border-radius: 8px;
  padding: 36px;
  max-width: 940px;
}
.paper h1 {
  font-size: 22px;
}
.paper h2 {
  margin-top: 22px;
}
.paper .facts {
  padding: 16px 0;
}
.report-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.report-controls label {
  flex: 1;
  margin: 0;
}
.report-controls form {
  display: flex;
  gap: 12px;
  align-items: end;
  width: 100%;
}
.summary {
  padding: 12px 16px;
  background: #faf9f6;
  border: 1px solid #e4e2dc;
  border-radius: 6px;
  margin-bottom: 16px;
}
.signature {
  margin-top: 40px;
  border-top: 1px solid #8a877f;
  padding-top: 6px;
  width: 280px;
}
.dropzone {
  border: 1px dashed #d9d6ce;
  border-radius: 8px;
  background: #faf9f6;
  padding: 28px;
  text-align: center;
  margin-bottom: 18px;
}
.attendance label {
  margin: 0 0 5px;
}
.attendance input[type="text"] {
  min-width: 140px;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 1000px) {
  main {
    padding: 28px 24px 60px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .facts {
    gap: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  [data-noprint],
  .toast,
  .global-search,
  .modal-overlay,
  .page-heading .actions {
    display: none !important;
  }
  main {
    padding: 0 !important;
  }
  .paper {
    padding: 0;
    border: 0;
    max-width: none;
  }
  .shell {
    display: block;
  }
  .main-inner {
    max-width: none;
  }
  section,
  .facts,
  .holding-card {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
  table {
    white-space: normal;
  }
  .signature {
    break-inside: avoid;
  }
}

.todo-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #eeece7;
  align-items: start;
}
.todo-grid:last-child {
  border-bottom: 0;
}
.todo-grid strong {
  font-weight: 500;
}
.todo-grid small {
  margin-top: 3px;
}
.todo-category {
  font-size: 12px;
  color: oklch(0.48 0.12 25);
}
.filters .filter {
  border: 1px solid #d9d6ce;
  background: #fff;
}
.filters .filter.selected {
  background: #1f1e1b;
  border-color: #1f1e1b;
  color: #fff;
}
.badge.blue {
  background: oklch(0.95 0.025 235);
  color: oklch(0.4 0.08 235);
}

.metrics {
  gap: 0;
}
.metric {
  border: 0;
  border-right: 1px solid #e4e2dc;
  border-radius: 0;
  padding: 18px 20px;
}
.metric:last-child {
  border-right: 0;
}
.dashboard-panel .panel-heading {
  padding: 16px 18px;
  border-bottom: 1px solid #e4e2dc;
  margin: 0;
}
.panel-heading h2 {
  margin: 0 0 3px;
}
.panel-heading.section-heading h2 {
  margin: 0;
}
.panel-heading small {
  font-size: 13px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.dashboard-event {
  display: grid;
  grid-template-columns: 86px 106px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid #eeece7;
  font-size: 13px;
  align-items: baseline;
}
.dashboard-event:last-child {
  border: 0;
}
.event-type {
  font-size: 12px;
  font-weight: 500;
}
.todo-grid {
  grid-template-columns: 102px minmax(0, 1fr) auto;
  gap: 14px;
}
.text-link {
  font-size: 13px;
  align-self: center;
}
.ok-text {
  color: oklch(0.45 0.09 155);
}
.accent-text {
  color: oklch(0.45 0.08 235);
}
tbody a {
  color: inherit;
}
tbody a:hover {
  color: oklch(0.45 0.08 235);
}
@media (max-width: 1100px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

.global-search {
  position: relative;
}
.global-search > turbo-frame {
  position: absolute;
  inset: 45px 0 auto;
  z-index: 15;
}
.search-results {
  max-height: 460px;
  overflow-y: auto;
  box-shadow: 0 8px 24px #1f1e1b18;
}
[hidden] {
  display: none !important;
}

/* Keep action buttons within the table formatting context. */
td.actions {
  display: table-cell;
  white-space: nowrap;
}
td.actions .button + .button {
  margin-left: 6px;
}

.report-controls label {
  flex: none;
  width: 250px;
}
.report-controls label:nth-child(2) {
  width: 180px;
}
.report-controls input[type="submit"] {
  width: auto;
}
.report-actions {
  margin-left: auto;
}
.paper {
  max-width: 820px;
  padding: 56px 60px;
  margin: 20px auto 0;
  border-radius: 3px;
}
.paper-heading {
  border-bottom: 2px solid #1f1e1b;
  padding-bottom: 16px;
  margin-bottom: 26px;
}
.paper-heading h1 {
  margin: 0 0 5px;
  font-size: 20px;
}
.paper-heading > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.paper-heading .mono {
  font-size: 13px;
}
.register-section {
  margin: 26px 0;
}
.register-section h2 {
  color: #6b6862;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.register-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 18px;
}
.register-facts strong {
  font-weight: 500;
}
.register-owner {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #dedcd7;
  padding: 8px 0;
}
.register-owner > :last-child {
  text-align: right;
}
.register-section p {
  font-size: 13px;
  margin: 10px 0;
}
.register-pledge {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #dedcd7;
}
.register-pledge > :last-child {
  text-align: right;
}
.register-pledge small {
  margin-top: 5px;
  font-size: 13px;
}
.paper-footer {
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid #dedcd7;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
@media print {
  .paper {
    margin: 0;
    padding: 0;
    max-width: none;
  }
}

.page-heading {
  align-items: end;
}
.heading-actions {
  margin-left: auto;
  gap: 8px;
}
.heading-actions form {
  width: 280px;
}
.heading-actions input {
  width: 100%;
}
.filter {
  border-radius: 20px;
}
.pledge-table {
  table-layout: fixed;
}
.pledge-table th:nth-child(1) {
  width: 56px;
}
.pledge-table th:nth-child(2) {
  width: 182px;
}
.pledge-table th:nth-child(3) {
  width: 19%;
}
.pledge-table th:nth-child(4) {
  width: 23%;
}
.pledge-table th:nth-child(5),
.pledge-table th:nth-child(6) {
  width: 112px;
}
.pledge-table th:nth-child(7) {
  width: 108px;
}
.pledge-table th:nth-child(8) {
  width: 92px;
}
@media (max-width: 800px) {
  .report-controls form {
    flex-wrap: wrap;
  }
  .report-actions {
    margin-left: 0;
  }
  .paper {
    padding: 28px 24px;
  }
  .register-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.global-search {
  margin-bottom: 29px;
}
.global-search input[type="search"] {
  height: 40px;
}
tr[data-controller="row"] {
  cursor: pointer;
}
