@import url("/admin-assets/theme.css?v=0.92.173");
:root { color-scheme: light; --brand: var(--finca-green); --brand-dark: var(--finca-dark); --ink: var(--finca-ink); --muted: var(--finca-muted); --line: var(--finca-line); --soft: #f6f3ec; --success: #2e7561; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f6f3ec; color: var(--ink); }
.access-body { padding: 24px 16px; background: linear-gradient(150deg, #f6f3ec, #fafbfa 55%, #ede9df); }
.access-shell { width: min(100%, 500px); margin: 0 auto; padding-top: 18px; }
.brand-header { display: flex; align-items: center; gap: 14px; }
.brand-header img { width: 58px; height: 58px; border-radius: 7px; object-fit: cover; }
.brand-header span, .eyebrow { color: var(--brand-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.5rem; }
.access-card, .portal-card, .welcome-card { border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 42px rgba(38, 62, 51, .08); }
.access-card { margin-top: 20px; padding: 26px; }
.muted, .help-copy { color: var(--muted); font-size: .82rem; line-height: 1.5; }
form { display: grid; gap: 15px; margin-top: 20px; }
label { display: grid; gap: 7px; color: #526758; font-size: .75rem; font-weight: 800; }
.remember-choice { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.remember-choice input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand-dark);
}
input, select, textarea { width: 100%; min-height: 45px; border: 1px solid var(--finca-control-line); border-radius: 0; padding: 10px 11px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 68px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(18, 63, 55, .12); }
button { min-height: 44px; border: 0; padding: 10px 15px; font: inherit; font-weight: 800; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.primary-button { background: var(--brand-dark); color: #fff; }
.quiet-button { border: 1px solid var(--finca-control-line); background: #fff; color: var(--brand-dark); }
.text-button { min-height: 36px; padding: 6px 0; background: transparent; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.recovery-back { margin-top: 12px; }
#recovery-panel { margin-top: 4px; }
#recovery-panel form { margin-top: 16px; }
.form-message { min-height: 19px; margin: 0; color: #8a4935; font-size: .8rem; }
.security-steps { display: grid; gap: 8px; padding-left: 20px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.qr-frame { display: grid; place-items: center; width: fit-content; margin: 18px auto; padding: 12px; border: 1px solid var(--line); background: #fff; }
.qr-frame img { display: block; width: min(230px, 70vw); height: auto; }
details { margin-top: 12px; color: var(--muted); font-size: .8rem; }
summary { cursor: pointer; font-weight: 800; }
.manual-secret { overflow-wrap: anywhere; padding: 10px; background: var(--soft); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.security-back, .primary-link { display: inline-block; margin-top: 18px; color: var(--brand-dark); font-size: .82rem; font-weight: 800; }
.primary-link { padding: 11px 14px; background: var(--brand-dark); color: #fff; text-decoration: none; }
.portal-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px max(18px, calc((100% - 1100px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.portal-header .brand-header img { width: 46px; height: 46px; }
.internal-portal-page .portal-header { flex-wrap: wrap; gap: 8px; }
.internal-portal-page .portal-header > * { min-width: 0; max-width: 100%; }
.internal-portal-page .portal-header .brand-header { flex: 1 1 180px; }
.internal-portal-page .portal-header nav { display: flex; flex-wrap: wrap; gap: 8px; }
.internal-portal-page .portal-header button { overflow-wrap: anywhere; }
.internal-portal-page .profile-grid dd { overflow-wrap: anywhere; }
.internal-portal-page fieldset { min-inline-size: 0; max-width: 100%; }
.internal-portal-page fieldset legend { width: auto; max-width: 100%; }
.portal-shell { width: min(calc(100% - 28px), 1100px); margin: 22px auto 60px; }
.welcome-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; border-top: 4px solid var(--brand); }
.hours-highlight { min-width: 145px; padding: 14px 18px; background: var(--soft); text-align: right; }
.hours-highlight span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hours-highlight strong { display: block; margin-top: 3px; color: var(--brand-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.portal-nav { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0; }
.portal-nav a { padding: 9px 12px; border: 1px solid var(--finca-control-line); background: #fff; color: var(--brand-dark); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.portal-card { margin-top: 14px; padding: 24px; scroll-margin-top: 90px; }
.portal-call-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.portal-call-actions button { width: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.status-pill { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid #decfb1; background: #fffaf0; color: #7a5a22; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.status-pill.active { border-color: #b9dbd0; background: #f1f9f6; color: var(--success); }
fieldset { display: flex; gap: 10px; border: 0; margin: 0; padding: 0; }
fieldset legend { width: 100%; margin-bottom: 7px; color: #526758; font-size: .75rem; font-weight: 800; }
fieldset label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--finca-control-line); }
fieldset input { width: auto; min-height: auto; }
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.card-list.compact { margin-top: 18px; }
.list-card { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); background: var(--finca-soft); }
.list-card strong { color: var(--brand-dark); }
.list-card small { color: var(--muted); line-height: 1.4; }
.list-card.horizontal { display: flex; justify-content: space-between; align-items: center; }
.list-card.horizontal div { display: grid; gap: 4px; }
.request-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.request-grid .wide { grid-column: 1 / -1; }
.request-grid .form-message { align-self: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: #526758; font-size: .68rem; text-transform: uppercase; }
.empty-copy { color: var(--muted); font-size: .82rem; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile-grid div { padding: 14px; border: 1px solid var(--line); background: var(--finca-soft); }
.profile-grid dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.profile-grid dd { margin: 5px 0 0; color: var(--brand-dark); font-weight: 800; }
.secret-form { max-width: 560px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.compact-heading { margin-bottom: 2px; }
@media (max-width: 680px) { .portal-header { position: static; } .portal-header h1 { font-size: 1.25rem; } .portal-header .brand-header img { width: 40px; height: 40px; } .welcome-card { align-items: flex-start; } .hours-highlight { min-width: 120px; padding: 12px; } .portal-card { padding: 19px; } .request-grid { grid-template-columns: 1fr; } .request-grid .wide { grid-column: auto; } }
@media (max-width: 430px) { .access-body { padding: 12px 10px; } .access-card { padding: 21px; } .welcome-card { display: grid; } .hours-highlight { width: 100%; text-align: left; } .section-heading { align-items: flex-start; } fieldset { display: grid; } .profile-grid { grid-template-columns: 1fr; } }
.portal-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 16px;
}

.portal-report-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

@media (max-width: 620px) {
  .portal-report-actions > * { width: 100%; }
  .portal-report-actions .primary-button { text-align: center; }
}
