.abcrm-portal-page .site-content,
.abcrm-portal-page .content-area,
.abcrm-portal-page main.site-main { max-width: none; width: 100%; padding: 0; margin: 0; }
.abcrm-portal-page .bt-sidebar-wrap,
.abcrm-portal-page aside.sidebar-wrap,
.abcrm-portal-page .page-sidebar,
.abcrm-portal-page .blog-sidebar,
.abcrm-portal-page #sidebar { display: none !important; }
.abcrm-portal-page .site-content > .container,
.abcrm-portal-page .content-wrap > .container { width: 100% !important; max-width: none !important; padding-right: 0 !important; padding-left: 0 !important; }
.abcrm-portal-page .site-content > .container > .row,
.abcrm-portal-page .content-wrap > .container > .row { display: block !important; margin-right: 0 !important; margin-left: 0 !important; }
.abcrm-portal-page .bt-content-wrap,
.abcrm-portal-page .content-wrap > .container > .row > .col-lg-8,
.abcrm-portal-page .content-wrap > .container > .row > .col-md-8 { width: 100% !important; max-width: none !important; flex: 0 0 100% !important; padding-right: 0 !important; padding-left: 0 !important; }
.abcrm-portal-page .entry-header { display: none; }
.abcrm-portal-page .entry-content { margin: 0; max-width: none; }
.abcrm-portal-page .abcrm-wrap { margin: 0; }
.abcrm-portal-page .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 18px; border: 1px solid #174fae; border-radius: 10px; background: #fff; color: #174fae; text-decoration: none; cursor: pointer; }
.abcrm-portal-page .button-primary { background: #174fae; color: #fff; }
.abcrm-frontend-gate { direction: rtl; max-width: 620px; margin: 48px auto; padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(20,55,100,.12); text-align: right; }
.abcrm-frontend-gate h2 { color: #174fae; margin-top: 0; }
.abcrm-frontend-gate label { display: grid; gap: 8px; margin: 20px 0; }
.abcrm-frontend-gate input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #ccd8e8; border-radius: 12px; }
.abcrm-staff-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.abcrm-logout-link { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 12px; padding: 9px 12px; color: #fff; background: rgba(255,255,255,.1); border-radius: 10px; text-decoration: none; }
.abcrm-logout-link:hover, .abcrm-logout-link:focus { color: #fff; background: rgba(255,255,255,.18); }
.abcrm-frontend-notice { max-width: 1120px; margin: 24px auto 0; padding: 0 18px; }
.abcrm-entry-paths, .abcrm-public-portal { max-width: 1120px; margin: 42px auto; padding: 0 18px; }
.abcrm-entry-intro { margin-bottom: 24px; text-align: right; }
.abcrm-entry-intro h2, .abcrm-public-head h2 { margin: 4px 0 8px; color: #123c73; }
.abcrm-entry-intro p, .abcrm-public-head p { color: #64748b; }
.abcrm-entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.abcrm-entry-card { display: flex; min-height: 250px; padding: 26px; flex-direction: column; align-items: flex-start; gap: 14px; color: #173a66; background: #fff; border: 1px solid #d9e4f1; border-radius: 22px; box-shadow: 0 15px 40px rgba(20,55,100,.09); text-decoration: none; }
.abcrm-entry-card:hover { color: #173a66; border-color: #6ca0e4; transform: translateY(-2px); }
.abcrm-entry-card > .dashicons { width: 56px; height: 56px; font-size: 30px; line-height: 56px; text-align: center; color: #fff; background: #1752ae; border-radius: 17px; }
.abcrm-entry-card.is-agency > .dashicons { background: #0b8a75; }
.abcrm-entry-card.is-staff > .dashicons { background: #d97706; }
.abcrm-entry-card strong { font-size: 21px; }
.abcrm-entry-card small { min-height: 68px; color: #64748b; line-height: 1.9; }
.abcrm-entry-card b { margin-top: auto; color: #1752ae; font-size: 14px; }
.abcrm-public-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.abcrm-public-form, .abcrm-public-history { padding: 24px; background: #fff; border: 1px solid #d9e4f1; border-radius: 22px; box-shadow: 0 15px 40px rgba(20,55,100,.08); }
.abcrm-public-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.abcrm-public-form .abcrm-field { display: grid; gap: 7px; margin: 0; }
.abcrm-public-form .abcrm-field-wide { grid-column: 1/-1; }
.abcrm-public-form input, .abcrm-public-form select, .abcrm-public-form textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #cad7e8; border-radius: 11px; background: #f8fbff; }
.abcrm-public-form textarea { resize: vertical; }
.abcrm-public-form small { color: #64748b; }
.abcrm-public-consent { display: flex; align-items: center; gap: 9px; margin: 20px 0; }
.abcrm-public-consent input { width: auto; min-height: 0; }
.abcrm-public-history { margin-top: 22px; }
.abcrm-public-history article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #e5edf6; }
.abcrm-public-history article:last-child { border-bottom: 0; }
.abcrm-public-history article > div { display: grid; gap: 5px; }
.abcrm-public-history small { color: #64748b; }
.abcrm-public-history .abcrm-state { padding: 7px 11px; border-radius: 999px; background: #eef3f8; white-space: nowrap; }
.abcrm-public-history .is-pending, .abcrm-public-history .is-processing { color: #965b00; background: #fff2c7; }
.abcrm-public-history .is-accepted { color: #067647; background: #dff8ea; }
.abcrm-public-history .is-rejected { color: #b42318; background: #fee4e2; }
@media (max-width: 782px) {
	.abcrm-frontend-gate { margin: 20px 12px; padding: 22px; }
	.abcrm-staff-entry-actions .button { width: 100%; }
	.abcrm-entry-grid, .abcrm-public-grid { grid-template-columns: 1fr; }
	.abcrm-public-head, .abcrm-public-history article { align-items: stretch; flex-direction: column; }
	.abcrm-public-form, .abcrm-public-history { padding: 18px; }
}

/* Keep the portal usable inside WordPress block-theme content constraints. */
.abcrm-portal-page .wp-block-post-content,
.abcrm-portal-page .wp-block-post-content > .abcrm-wrap { max-width: none !important; width: auto; }
.abcrm-portal-page main.has-global-padding,.abcrm-portal-page main .has-global-padding,.abcrm-portal-page .wp-block-post-content{padding-inline:0!important}
.abcrm-portal-page main>.wp-block-post-title{display:none}
.abcrm-portal-page main .alignfull{margin-inline:0!important;width:auto!important;max-width:100%!important}
.abcrm-portal-page .wp-block-post-title{display:none}

/* Public feature checkboxes stay compact and accessible inside the shared form. */
.abcrm-public-features { grid-column: 1 / -1; }
.abcrm-public-feature-group { border: 1px solid #d9e4f1; border-radius: 12px; margin: 12px 0; padding: 12px; }
.abcrm-public-feature-options { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.abcrm-public-feature-option { display: inline-flex; align-items: center; gap: 6px; }
.abcrm-public-form .abcrm-public-feature-option input { width: auto; min-height: auto; margin: 0; }
.abcrm-public-features [hidden], .abcrm-public-details [hidden] { display: none !important; }
