/* Portal UI foundation. Load after legacy Bootstrap; keep its grid and widget geometry. */
:root {
  --portal-ink: #243b40;
  --portal-muted: #566b70;
  --portal-brand: #17545c;
  --portal-brand-hover: #103e45;
  --portal-canvas: #f5f7f7;
  --portal-surface: #fff;
  --portal-border: #d5dfe0;
  --portal-focus: #2469b3;
  --portal-radius: 6px;
  --portal-space-1: 4px;
  --portal-space-2: 8px;
  --portal-space-3: 12px;
  --portal-space-4: 16px;
  --portal-space-6: 24px;
  --portal-space-8: 32px;
}
body { color: var(--portal-ink); background: var(--portal-canvas); font-family: Arial, Helvetica, sans-serif; }
h1, h2, h3 { color: var(--portal-ink); line-height: 1.25; }
h1 { font-size: 30px; margin: 0 0 20px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
a { color: var(--portal-brand); }
a:hover, a:focus { color: var(--portal-brand-hover); }
.muted, .help-block { color: var(--portal-muted); }
:focus-visible { outline: 3px solid var(--portal-focus) !important; outline-offset: 3px; }
.portal-skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 20px; background: #fff; border: 2px solid var(--portal-brand); border-radius: 4px; }
.portal-skip-link:focus { top: 8px; }
#main-content:focus { outline: none; }
.navbar-inner { background: #fff; border-bottom: 1px solid var(--portal-border); box-shadow: 0 1px 4px rgba(24, 60, 65, .07); }
.navbar .nav > li > a { color: var(--portal-ink); text-shadow: none; }
.navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { color: var(--portal-brand); background: #e4eeee; box-shadow: inset 0 -3px var(--portal-brand); }
.btn { background-image: none; border-color: #a8b9bc; border-radius: var(--portal-radius); text-shadow: none; box-shadow: none; }
.btn-primary { color: #fff; background: var(--portal-brand); border-color: var(--portal-brand); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { color: #fff; background: var(--portal-brand-hover); border-color: var(--portal-brand-hover); }
.btn-primary.disabled, .btn-primary[disabled] { background: var(--portal-brand); }
.btn-large { font-size: 16px; line-height: 24px; white-space: normal; }
.well, .hero-unit { background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius); box-shadow: none; }
input[type="text"], input[type="password"], input[type="email"], textarea, select { border-color: #a8b9bc; border-radius: 4px; color: var(--portal-ink); }
input:focus, textarea:focus, select:focus { border-color: var(--portal-brand); }
.table { background: #fff; }
.table th { color: var(--portal-ink); background-color: #edf2f2; }
.table-bordered, .table td, .table th { border-color: var(--portal-border); }
.alert { border-radius: var(--portal-radius); text-shadow: none; }
.alert a { text-decoration: underline; }
footer { color: var(--portal-muted); font-size: 13px; line-height: 1.7; padding: 8px 0 16px; }
footer a { text-decoration: underline; }
.portal-footer-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; }
.portal-footer-details a { white-space: nowrap; }
.portal-footer-payment { margin: 0; }
hr { border-top-color: var(--portal-border); border-bottom: 0; margin: 24px 0; }
.portal-eyebrow { color: var(--portal-brand); font-size: 12px; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.portal-login { padding-top: 24px; }
.portal-login .navbar { display: none; }
.portal-login-brand { text-align: center; margin: 32px 0; }
.portal-login-brand img { display: block; width: 360px; max-width: 90%; height: auto; margin: 0 auto; }
.portal-login .form-signin { box-sizing: border-box; max-width: 440px; padding: 32px; margin: 0 auto 32px; background: #fff; border: 1px solid var(--portal-border); border-top: 4px solid var(--portal-brand); border-radius: 8px; box-shadow: 0 8px 24px rgba(24, 60, 65, .06); }
.portal-login h1 { margin: 0 0 8px; }
.portal-login-intro { color: var(--portal-muted); line-height: 1.6; margin-bottom: 24px; }
.portal-login .form-signin > label { font-weight: bold; margin-bottom: 8px; }
.portal-login .form-signin input[type="text"], .portal-login .form-signin input[type="password"] { height: 48px; padding: 12px; margin-bottom: 24px; }
.portal-login-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.portal-login-options .checkbox { display: inline-flex; align-items: center; gap: 8px; padding: 0; margin: 0; line-height: 20px; }
.portal-login-options .checkbox input { float: none; flex-shrink: 0; width: 16px; height: 16px; margin: 0; }
.portal-login-options a { text-decoration: underline; }
.portal-login .btn { box-sizing: border-box; min-height: 48px; padding: 11px 12px; line-height: 24px; margin-bottom: 0; }
.portal-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; line-height: 20px; color: var(--portal-muted); }
.portal-divider:before, .portal-divider:after { content: ""; height: 1px; background: var(--portal-border); flex: 1; }
.portal-login .portal-entra-button { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--portal-ink); margin-top: 12px; padding: 11px 12px; font-size: 14px; }
.portal-divider + .portal-entra-button { margin-top: 0; }
.portal-entra-button:hover { background: #edf2f2; }
.portal-microsoft-mark { display: grid; grid-template-columns: 8px 8px; gap: 2px; flex-shrink: 0; }
.portal-microsoft-mark span { width: 8px; height: 8px; background: #f25022; }
.portal-microsoft-mark span:nth-child(2) { background: #7fba00; }
.portal-microsoft-mark span:nth-child(3) { background: #00a4ef; }
.portal-microsoft-mark span:nth-child(4) { background: #ffb900; }
@media (max-width: 767px) {
  .portal-login { padding-top: 16px; }
  .portal-login-brand { margin: 24px 0; }
  .portal-login .form-signin { padding: 24px; }
  h1 { font-size: 26px; }
}
@media print {
  body { color: #000; background: #fff; }
  .portal-skip-link { display: none; }
  .well, .hero-unit, .form-signin { box-shadow: none; }
}
.portal-page-heading { margin: 0 0 24px; }
.portal-page-heading > p:last-child { margin-bottom: 0; }
.portal-page-heading h1 { margin-bottom: 8px; }
.portal-quote-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portal-quote-action { box-sizing: border-box; min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--portal-border); border-radius: var(--portal-radius); margin: 0; }
.portal-quote-action h2 { font-size: 20px; margin: 0 0 16px; }
.portal-quote-action .btn { box-sizing: border-box; max-width: 100%; min-height: 44px; padding: 11px 16px; line-height: 20px; vertical-align: top; white-space: normal; }
.portal-quote-action .multi-row { margin-bottom: 0; }
.portal-quote-action .multi-row + .multi-row { margin-top: 8px; }
.portal-estimator-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-estimator-actions .btn { min-width: 0; }
.portal-estimator-logo { display: block; flex: 0 0 auto; width: 90px; height: auto; margin: 0 0 0 auto; }
.portal-quote-search { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(0, 2fr)); gap: 8px 16px; margin-bottom: 24px; }
.portal-quote-search label { margin: 0 0 8px; font-weight: bold; }
.portal-quote-search input { box-sizing: border-box; width: 100%; height: 44px; padding: 10px 12px; margin: 0; }
.portal-quote-search > p { grid-column: 1 / -1; margin: 0; }
.portal-access-form { max-width: 640px; }
/* Legacy div#form applies -19px margins. Reset only this standalone editor. */
.portal-access-form > #form { margin: 0 0 24px; }
.portal-access-form .control-group { margin: 0 0 24px; }
.portal-access-form .control-label { margin-bottom: 8px; font-weight: bold; }
.portal-access-form textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; padding: 12px; margin: 0; resize: vertical; }
.portal-access-form > .btn { box-sizing: border-box; min-height: 44px; padding: 11px 16px; line-height: 20px; }
@media (max-width: 767px) {
  .portal-quote-actions { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portal-quote-search { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portal-quote-action { padding: 24px; }
}
.portal-empty-state { padding: 24px; border: 1px dashed #a8b9bc; border-radius: var(--portal-radius); text-align: center; background: #fff; }
.portal-empty-state h2 { font-size: 20px; margin: 0 0 8px; }
.portal-empty-state p { margin: 0; color: var(--portal-muted); }
.portal-return-link { text-align: center; margin: 20px 0 0; }
.portal-return-link a { text-decoration: underline; }
