/* Brothers portal and 50th anniversary page */
.portal { padding: 60px 0 90px; color: #3a2b40; }
.portal_top { padding-bottom: 0; }
.portal_nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 14px 20px; margin-bottom: 30px; background: #f4edf5; border-left: 4px solid #c29c3a; border-radius: 6px; }
.portal_nav span { font-weight: 700; color: #660066; margin-right: auto; }
.portal_nav a { color: #660066; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.portal_nav a:hover { color: #c29c3a; }
.portal_flash { padding: 14px 18px; margin-bottom: 24px; background: #fff8e6; border: 1px solid #e6cf8f; border-radius: 6px; }
.portal_error { padding: 14px 18px; margin-bottom: 24px; background: #fdecec; border: 1px solid #e3a3a3; border-radius: 6px; color: #8a1f1f; }
.portal_card { background: #fff; border-radius: 10px; box-shadow: 0 4px 22px rgba(0,0,0,.07); padding: 28px; margin-bottom: 26px; }
.portal_card h2, .portal_card h3 { color: #660066; font-weight: 700; margin-bottom: 14px; }
.portal_narrow { max-width: 520px; margin: 0 auto; }
.portal_form label { display: block; font-weight: 600; margin-bottom: 14px; color: #3a2b40; }
.portal_form input, .portal_form select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #c9bccd; border-radius: 6px; font-weight: 400; }
.portal_form .row_2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.portal_form .hint { font-weight: 400; font-size: 13px; color: #75667a; }
.portal_form .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; }
.portal_form .choice input { width: auto; margin-top: 4px; }
.portal_btn { display: inline-block; padding: 12px 26px; border: 0; border-radius: 6px; background: #660066; color: #fff !important; font-weight: 700; text-transform: uppercase; font-size: 14px; cursor: pointer; }
.portal_btn:hover { background: #c29c3a; color: #fff; }
.portal_btn:disabled { opacity: .45; cursor: not-allowed; }
.portal_btn.secondary { background: #fff; color: #660066 !important; border: 2px solid #660066; }
.portal_links { margin-top: 16px; font-size: 14px; }
.portal_links a { color: #660066; font-weight: 600; }
.portal_metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.portal_metrics div { background: #f4edf5; border-radius: 8px; padding: 14px; font-size: 13px; text-transform: uppercase; }
.portal_metrics strong { display: block; font-size: 22px; color: #660066; text-transform: none; }
.portal_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.portal_table th, .portal_table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.portal_badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #eee; }
.portal_badge.paid { background: #e2f4e5; color: #1d6b2c; }
.portal_badge.active { background: #f4edf5; color: #660066; }
.portal_badge.pending { background: #fff3d6; color: #7a5a00; }
.portal_badge.past_due, .portal_badge.cancelled { background: #fdecec; color: #8a1f1f; }
.portal_ack { height: 180px; overflow: auto; border: 1px solid #c9bccd; padding: 14px; background: #faf8fb; border-radius: 6px; font-size: 14px; margin-bottom: 12px; }
.portal_summary { background: #f4edf5; padding: 14px; border-radius: 8px; margin: 14px 0; }
@media (max-width: 600px) {
  .portal_form .row_2, .portal_metrics { grid-template-columns: 1fr; }
  .portal_card { padding: 20px; }
  .portal_table { font-size: 13px; }
}
.portal_form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #c9bccd; border-radius: 6px; font-weight: 400; }
.portal_doc_search { display: grid; grid-template-columns: 2fr 1fr auto; gap: 0 16px; align-items: end; margin-bottom: 10px; }
.portal_doc_search > div { margin-bottom: 14px; }
.portal_doc_table { margin-bottom: 26px; }
.portal_doc_table td:last-child { white-space: nowrap; text-align: right; }
@media (max-width: 600px) {
  .portal_doc_search { grid-template-columns: 1fr; }
  .portal_doc_table td:last-child { white-space: normal; text-align: left; }
}
.portal_nav_manage { margin-top: -18px; background: #fbf7ec; }
.portal_thumb { max-width: 220px; max-height: 140px; border-radius: 6px; border: 1px solid #eee; }
.portal_actions { white-space: nowrap; }
.portal_actions form, .portal_actions .portal_btn { margin: 2px 0; }
.portal_role_form select { padding: 6px 8px; border: 1px solid #c9bccd; border-radius: 6px; }
.portal_check { display: flex !important; gap: 10px; align-items: center; font-weight: 600; }
.portal_check input { width: auto !important; margin: 0 !important; }
@media (max-width: 600px) { .portal_actions { white-space: normal; } }
