/* Bounded adapter for recovered _Layout/_Header/_LeftSideBar structure and
   pinned Bootstrap/app styles. Current handlers, CSRF and data-* hooks stay.
   No legacy ProfileHelper, provider widgets or old controller is executed. */
body.ct-legacy-presentation { background:#f5f6f8; color:#495057; font-family:Roboto,Arial,sans-serif; font-size:.875rem; }
.ct-legacy-presentation .ct-app-shell { display:block; min-height:100vh; }
.ct-legacy-presentation .ct-rail { display:block;position:fixed; top:0; bottom:0; left:0; width:250px; background:#fff; color:#545a6d; border-right:1px solid #e9e9ef; z-index:1002; overflow:auto; }
.ct-legacy-presentation .ct-rail-brand { height:70px; padding:15px 24px; display:flex; align-items:center; justify-content:center; border-bottom:1px solid #f6f6f6; }
.ct-legacy-presentation .ct-rail-brand img { max-width:180px; object-fit:contain; }
.ct-legacy-presentation .ct-rail-brand-compact { display:none; }
.ct-legacy-presentation .ct-rail-brand-full { display:block; }
.ct-legacy-presentation .ct-nav-group h2,.ct-legacy-presentation .ct-nav-item > span:not(.ct-nav-glyph) { display:block; }
.ct-legacy-presentation .ct-nav-group h2 { color:#7b8190; font-size:11px; text-transform:uppercase; letter-spacing:.05em; padding:12px 24px 5px; }
.ct-legacy-presentation .ct-nav-item { justify-content:flex-start;color:#545a6d; border-radius:0; padding:10px 24px; font-weight:400; }
.ct-legacy-presentation .ct-nav-item:hover,.ct-legacy-presentation .ct-nav-item.is-active { color:#5156be; background:#f3f3f9; }
.ct-legacy-presentation .ct-nav-glyph { color:inherit; background:transparent; font-size:11px; }
.ct-legacy-presentation .ct-app-main { margin-left:250px; min-width:0; }
.ct-legacy-presentation #page-topbar { position:fixed; top:0; right:0; left:250px; height:70px; padding:0 24px; background:#fff; border-bottom:1px solid #e9e9ef; z-index:1001; box-shadow:none; }
.ct-legacy-presentation .ct-page { padding:94px 12px 24px; max-width:none; }
.ct-legacy-presentation .ct-page-header h1 { font-size:18px; font-weight:500; color:#495057; }
.ct-legacy-presentation .ct-page-header p { color:#74788d; }
.ct-legacy-presentation .ct-button--primary { background:#5156be; border-color:#5156be; }
.ct-legacy-presentation .ct-operational-table,.ct-legacy-presentation .ct-card,.ct-legacy-presentation .ct-panel { background:#fff; border-radius:4px; box-shadow:0 2px 6px rgba(18,38,63,.03); }
.ct-legacy-presentation input,.ct-legacy-presentation select,.ct-legacy-presentation textarea { border-radius:4px; }
.ct-legacy-presentation :focus-visible { outline:3px solid #5156be; outline-offset:2px; }
/* Recovered anonymous layout: centered responsive form over auth-bg, without
   the redesigned split marketing panel or the legacy scripts/remote widgets. */
.ct-legacy-auth.authentication-bg { position:relative;background-image:url("assets/Images/auth-bg.jpg");background-size:cover;background-position:center; }
.ct-legacy-auth > .bg-overlay { position:absolute;inset:0;opacity:.9;pointer-events:none; }
.ct-legacy-auth > .container { position:relative; }
.ct-legacy-auth .ct-auth-panel { width:100%; }
.ct-legacy-auth .auth-logo img { max-width:100%;object-fit:contain; }
.ct-legacy-auth .ct-auth-heading { text-align:center;margin-bottom:1.5rem; }
.ct-legacy-auth .ct-auth-heading h1 { font-size:1.09375rem;line-height:1.4;font-weight:500;color:#495057;letter-spacing:normal; }
.ct-legacy-auth .ct-auth-heading p { color:#74788d;font-size:.875rem; }
.ct-legacy-auth .ct-eyebrow { display:none; }
.ct-legacy-auth .ct-state-mark { margin:0 auto 1rem; }
.ct-legacy-auth .ct-field label { font-weight:400; }
.ct-legacy-auth .ct-input { min-height:38px;border-color:#ced4da;font-size:.875rem; }
.ct-legacy-auth .ct-auth-secondary { text-align:center; }
.ct-legacy-auth .ct-button--primary { background:#50a5f1;border-color:#50a5f1; }
.ct-legacy-auth .ct-auth-form .ct-field-row { grid-template-columns:1fr; }
/* Recovered Offer/Campaign _AddEdit: centered col-md-8 with label/control
   rows; recovered Buyer _AddEdit: two-column identity/routing fields.
   Presentation hooks do not change names, actions, CSRF or dependencies. */
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] { max-width:none;background:#fff;border:1px solid #e9e9ef;border-radius:4px;padding:1.5rem;gap:1.5rem; }
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-form-section { border:0;border-radius:0;padding:0;gap:1rem; }
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-form-section > header h2 { font-size:.9375rem;font-weight:500;color:#495057; }
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-field { min-width:0; }
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-field label { font-weight:400; }
.ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-input { min-height:38px;border-color:#ced4da;font-size:.875rem; }
@media(min-width:768px) {
  .ct-legacy-presentation .ct-workflow-form[data-ct-presentation="offer"],
  .ct-legacy-presentation .ct-workflow-form[data-ct-presentation="campaign"] { width:66.666667%;margin-left:auto;margin-right:auto; }
  .ct-legacy-presentation .ct-workflow-form:is([data-ct-presentation="offer"],[data-ct-presentation="campaign"]) .ct-field-row { display:block; }
  .ct-legacy-presentation .ct-workflow-form:is([data-ct-presentation="offer"],[data-ct-presentation="campaign"]) .ct-field { display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);column-gap:1rem;align-items:start;margin-bottom:1rem; }
  .ct-legacy-presentation .ct-workflow-form:is([data-ct-presentation="offer"],[data-ct-presentation="campaign"]) .ct-field > :is(label,span:first-child) { grid-column:1;padding-top:.5rem; }
  .ct-legacy-presentation .ct-workflow-form:is([data-ct-presentation="offer"],[data-ct-presentation="campaign"]) .ct-field > :is(input,select,textarea,strong,.ct-field-help) { grid-column:2; }
}
@media(max-width:767px) {
  .ct-legacy-presentation .ct-workflow-form[data-ct-presentation] { width:100%;padding:1rem; }
  .ct-legacy-presentation .ct-workflow-form[data-ct-presentation] .ct-field-row { grid-template-columns:1fr; }
}
.ct-legacy-buyers .mb-g { margin-bottom:1.5rem; }
.ct-legacy-buyers .flex-1 { flex:1;min-width:0; }
.ct-legacy-buyers .info-card-text { font-size:.875rem;line-height:1.35;font-weight:500; }
.ct-legacy-buyers .ct-legacy-buyer-contact { overflow-wrap:anywhere;color:#74788d;font-size:.8125rem; }
.ct-legacy-buyers .col-label { display:block;margin-bottom:.25rem;color:#495057;font-weight:400; }
.ct-legacy-buyers .ct-legacy-readonly { background:#f7f9fa;color:#495057;min-height:32px;padding:.375rem .5rem;overflow-wrap:anywhere;font-size:.8125rem; }
.ct-legacy-buyers .card { border-color:rgba(34,34,34,.12)!important;box-shadow:none; }
.ct-legacy-buyers .card-body { padding:1rem; }
@media(max-width:1023px) {
  .ct-legacy-presentation .ct-app-main { margin-left:0!important; }
  .ct-legacy-presentation #page-topbar { left:0; padding:0 12px; }
  .ct-legacy-presentation .ct-rail { transform:translateX(-100%); }
  .ct-legacy-presentation .ct-app-shell[data-navigation-open="true"] .ct-rail { transform:translateX(0); }
  .ct-legacy-presentation .ct-mobile-menu { display:inline-flex; }
  .ct-legacy-presentation .ct-topbar { gap:8px; }
  .ct-legacy-presentation .ct-context { min-width:0; }
  .ct-legacy-presentation .ct-context strong { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-legacy-presentation .ct-page { padding-top:90px; }
}
@media(max-width:575px) {
  .ct-legacy-presentation .ct-context-divider,.ct-legacy-presentation .ct-context>span:last-child { display:none; }
  .ct-legacy-presentation .ct-topbar>a { max-width:140px; font-size:12px; }
}
