/* Rina se Hoekie | Agent application and Admin readability repair
   2026-11-10 | Deliberately the FINAL CSS layer.
   Does not hide controls or change form/business logic. */

/* Checkboxes must not inherit the site's generous text-input padding or height.
   This was making the agent-terms field explode into separate columns. */
body.site.site.site label.check-line {
  display:flex!important;
  flex-flow:row nowrap!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  column-gap:12px!important;
  row-gap:0!important;
  grid-template-columns:none!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  text-align:left!important;
  line-height:1.48!important;
  overflow-wrap:normal!important;
}
body.site.site.site label.check-line > input[type="checkbox"],
body.site.site.site label.check-line > input[type="radio"] {
  display:block!important;
  position:static!important;
  float:none!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  padding:0!important;
  margin:2px 0 0!important;
  border-radius:5px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  transform:none!important;
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  accent-color:#923e59!important;
  cursor:pointer!important;
}
body.site.site.site label.check-line > .check-line-copy {
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1.48!important;
  overflow-wrap:break-word!important;
}

/* Agent application: visually group details, addresses and confirmation. */
body.site.site.site.page-apply_agent .cart-layout {
  grid-template-columns:minmax(0,1fr) minmax(255px,310px)!important;
  gap:20px!important;
  align-items:start!important;
}
body.site.site.site.page-apply_agent .cart-layout > article,
body.site.site.site.page-apply_agent .cart-layout > aside {
  min-width:0!important;
  border-radius:24px!important;
}
body.site.site.site.page-apply_agent .cart-layout > article.glass-panel {
  padding:clamp(22px,2.3vw,34px)!important;
}
body.site.site.site.page-apply_agent .cart-layout > aside.glass-card {
  padding:24px!important;
}
body.site.site.site.page-apply_agent .cart-layout .stacked-form {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:18px!important;
  margin-top:21px!important;
  width:100%!important;
  min-width:0!important;
}
body.site.site.site.page-apply_agent .stacked-form .form-grid {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
body.site.site.site.page-apply_agent .stacked-form .form-grid > .span-2 {
  grid-column:1 / -1!important;
}
body.site.site.site.page-apply_agent .stacked-form label:not(.check-line) {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  font-size:.84rem!important;
  font-weight:650!important;
  line-height:1.4!important;
  color:#594650!important;
}
body.site.site.site.page-apply_agent .stacked-form :is(input:not([type="checkbox"]),select,textarea) {
  width:100%!important;
  max-width:100%!important;
  min-height:46px!important;
  font-size:.92rem!important;
  line-height:1.45!important;
  border-radius:13px!important;
  border:1px solid rgba(126,74,95,.20)!important;
  background:rgba(255,255,255,.92)!important;
  padding:12px 14px!important;
  color:#34252c!important;
}
body.site.site.site.page-apply_agent .stacked-form textarea {
  min-height:86px!important;
  resize:vertical!important;
}
body.site.site.site.page-apply_agent .stacked-form > h3 {
  margin:12px 0 0!important;
  padding:0 0 8px!important;
  border-bottom:1px solid rgba(126,74,95,.13)!important;
  font-size:1.08rem!important;
  line-height:1.35!important;
  letter-spacing:-.015em!important;
}
body.site.site.site.page-apply_agent .stacked-form > label.check-line {
  grid-column:1 / -1!important;
  width:100%!important;
  min-width:0!important;
  min-height:auto!important;
  margin:0!important;
  padding:15px 17px!important;
  border:1px solid rgba(146,62,89,.18)!important;
  border-radius:15px!important;
  background:rgba(146,62,89,.052)!important;
  color:#4b353f!important;
  font-size:.89rem!important;
  font-weight:560!important;
}
body.site.site.site.page-apply_agent .stacked-form > button[type="submit"] {
  min-height:48px!important;
  width:100%!important;
  font-size:.92rem!important;
  font-weight:750!important;
  letter-spacing:.005em!important;
  border-radius:13px!important;
}
body.site.site.site.page-apply_agent .cart-layout aside p {
  line-height:1.65!important;
  font-size:.92rem!important;
}

/* Admin typography: make working controls readable without sacrificing density. */
body.site.site.site.admin-theme .content-shell {min-width:0!important;}
body.site.site.site.admin-theme .admin-section-heading {
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-end!important;
  flex-wrap:wrap!important;
  gap:12px 20px!important;
  margin-bottom:20px!important;
}
body.site.site.site.admin-theme .admin-section-heading h2 {
  margin:0!important;
  font-size:clamp(1.45rem,2vw,1.95rem)!important;
  line-height:1.16!important;
  letter-spacing:-.035em!important;
  font-weight:750!important;
}
body.site.site.site.admin-theme .admin-section-heading > span {
  font-size:.8rem!important;
  line-height:1.5!important;
  text-align:left!important;
  color:#c2b5c9!important;
}
body.site.site.site.admin-theme .content-shell :is(.dashboard-header,.page-header) h1 {
  font-size:clamp(1.8rem,2.6vw,2.5rem)!important;
  line-height:1.16!important;
}
body.site.site.site.admin-theme .content-shell :is(.dashboard-header,.page-header) p,
body.site.site.site.admin-theme .content-shell .panel > p {
  font-size:.88rem!important;
  line-height:1.6!important;
}
body.site.site.site.admin-theme .content-shell :is(.stacked-form,.settings-form,.mini-form,.admin-filter-bar,.batch-toolbar) label {
  font-size:.84rem!important;
  line-height:1.48!important;
}
body.site.site.site.admin-theme :is(.content-shell input:not([type="checkbox"]):not([type="radio"]),.content-shell select,.content-shell textarea) {
  min-height:42px!important;
  font-size:.88rem!important;
  line-height:1.4!important;
}
body.site.site.site.admin-theme .content-shell :is(.btn,button.btn,a.btn) {
  font-size:.84rem!important;
  line-height:1.35!important;
}

/* Dashboard performance: 4 roomy columns instead of 7 squeezed cards. */
body.site.site.site.admin-theme.page-admin .admin-dashboard-section {
  min-width:0!important;
  padding:clamp(20px,2.2vw,30px)!important;
  margin:0!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(34,29,49,.88),rgba(27,24,40,.88))!important;
  border:1px solid rgba(226,191,226,.14)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.03)!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr))!important;
  align-items:stretch!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid > .metric-card {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:0!important;
  min-height:146px!important;
  height:auto!important;
  padding:20px 22px!important;
  border-radius:18px!important;
  border:1px solid rgba(226,191,226,.16)!important;
  background:linear-gradient(145deg,rgba(55,47,72,.82),rgba(38,33,55,.82))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 22px rgba(0,0,0,.07)!important;
  overflow:hidden!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid > .metric-card:hover {
  transform:translateY(-2px)!important;
  border-color:rgba(240,173,191,.34)!important;
  box-shadow:0 14px 28px rgba(0,0,0,.15)!important;
}
/* Old pseudo-icon remained in place after the next stylesheet changed the
   left padding; it was covering the metric labels. */
body.site.site.site.admin-theme .metric-card::before {
  display:none!important;
  content:none!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid .metric-card > span {
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  margin:0!important;
  color:#d0c1d4!important;
  font-size:.8rem!important;
  line-height:1.4!important;
  letter-spacing:.055em!important;
  font-weight:750!important;
  text-transform:uppercase!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid .metric-card > strong {
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#fff7fc!important;
  font-size:clamp(1.5rem,2vw,2.05rem)!important;
  line-height:1.12!important;
  font-weight:760!important;
  letter-spacing:-.04em!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid .metric-card > small {
  display:block!important;
  margin-top:auto!important;
  color:#beb1c7!important;
  font-size:.82rem!important;
  line-height:1.48!important;
  font-weight:500!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
/* Other admin report metric cards should also regain their full content area. */
body.site.site.site.admin-theme .metric-grid:not(.dashboard-widget-grid) > .metric-card {
  padding:18px 20px!important;
  min-width:0!important;
}
body.site.site.site.admin-theme .metric-grid:not(.dashboard-widget-grid) > .metric-card > strong {
  font-variant-numeric:tabular-nums!important;
  line-height:1.2!important;
}

/* The connection status widgets need usable breathing room as well. */
body.site.site.site.admin-theme.page-admin .admin-dashboard-primary-grid,
body.site.site.site.admin-theme.page-admin .admin-dashboard-operation-grid {
  gap:18px!important;
  min-width:0!important;
  align-items:stretch!important;
}
body.site.site.site.admin-theme.page-admin .admin-dashboard-primary-grid > *,
body.site.site.site.admin-theme.page-admin .admin-dashboard-operation-grid > * {min-width:0!important;}
body.site.site.site.admin-theme.page-admin .bg-dashboard-widget {
  padding:22px!important;
  border:1px solid rgba(226,191,226,.14)!important;
  border-radius:19px!important;
  background:rgba(49,41,66,.68)!important;
  box-shadow:none!important;
}
body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:11px!important;
}
body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics article {
  min-width:0!important;
  padding:16px!important;
  border-radius:13px!important;
}
body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics span {
  font-size:.76rem!important;
  line-height:1.4!important;
}
body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics strong {
  font-size:clamp(1rem,1.5vw,1.25rem)!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
body.site.site.site.admin-theme .content-shell :is(.table-wrap,.data-table-wrap) table th {
  font-size:.73rem!important;
  line-height:1.45!important;
}
body.site.site.site.admin-theme .content-shell :is(.table-wrap,.data-table-wrap) table td {
  font-size:.85rem!important;
  line-height:1.5!important;
}

@media(max-width:1499px){
  body.site.site.site.admin-theme.page-admin .admin-dashboard-primary-grid,
  body.site.site.site.admin-theme.page-admin .admin-dashboard-operation-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:1100px){
  body.site.site.site.page-apply_agent .cart-layout {grid-template-columns:1fr!important;}
  body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.site.site.site.page-apply_agent .stacked-form .form-grid {grid-template-columns:1fr!important;gap:13px!important;}
  body.site.site.site.page-apply_agent .stacked-form .form-grid > .span-2 {grid-column:1!important;}
  body.site.site.site.page-apply_agent .cart-layout > article.glass-panel {padding:18px!important;}
  body.site.site.site.page-apply_agent .cart-layout > aside.glass-card {padding:18px!important;}
  body.site.site.site.admin-theme.page-admin .admin-dashboard-section {padding:18px!important;}
  body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid {grid-template-columns:1fr!important;gap:12px!important;}
  body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid > .metric-card {min-height:124px!important;padding:18px!important;}
  body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:430px){
  body.site.site.site.admin-theme.page-admin .bg-dashboard-metrics {grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){
  body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid > .metric-card {transition:none!important;}
  body.site.site.site.admin-theme.page-admin .metric-grid.dashboard-widget-grid > .metric-card:hover {transform:none!important;}
}
/* Radio options retain their native circular appearance. */
body.site.site.site label.check-line > input[type="radio"] {
  -webkit-appearance:radio!important;
  border-radius:50%!important;
}
