/* BrasilBid v12.20 — brighter palette, accessible contrast and admin orders */
:root{
  --bb-navy:#0d3658;
  --bb-navy-2:#14587f;
  --bb-blue:#0b73b5;
  --bb-blue-2:#1a9dce;
  --bb-background:#f5f8fb;
}

body.app-shell{
  background:
    linear-gradient(180deg,rgba(231,241,248,.86) 0,rgba(247,249,251,.97) 300px),
    #f5f8fb;
}

.topbar{
  background:linear-gradient(110deg,#0d3e62 0%,#105f84 58%,#126f92 100%);
  box-shadow:0 8px 23px rgba(13,56,89,.14);
}

.topbar .main-navigation a,
.topbar .main-navigation a:visited{
  color:#f2f8fc!important;
}

.topbar .main-navigation a:hover{
  color:#fff!important;
}

.hero{
  background:linear-gradient(125deg,#10496f 0%,#146b8e 62%,#177a9d 100%);
  box-shadow:0 17px 39px rgba(13,77,113,.15);
}

.hero::before{
  background:
    linear-gradient(90deg,rgba(7,36,60,.28),rgba(12,83,119,.05)),
    radial-gradient(circle at 86% 20%,rgba(145,225,248,.22),transparent 35%);
}

.member-hero::after{opacity:.18;}

.panel,
.member-data-launcher,
.stats article{
  box-shadow:0 10px 27px rgba(25,62,92,.065);
}

/* Explicit contrast rules for links placed on colored backgrounds. */
a.primary,
a.primary:visited,
a.buttonlink.primary,
.register-choice,
.register-choice strong,
.register-choice small,
.floating-email-alert,
.floating-email-alert span,
.floating-email-alert svg,
.membership-spotlight,
.membership-spotlight span,
.plan-payment-button,
.plan-payment-button strong,
.plan-payment-button span{
  color:#fff!important;
}

.register-choice{
  background:linear-gradient(135deg,#0e6195,#0c7398);
}

.login-choice,
.login-choice strong,
.login-choice small{
  color:#124f73!important;
}

.floating-email-alert{
  background:linear-gradient(135deg,#0e6195,#0b7399);
  text-shadow:0 1px 1px rgba(0,44,72,.16);
}

.floating-email-alert path{stroke:#fff!important;}

.guest-lock-icon,
.primary{
  background:linear-gradient(135deg,#0e6599,#0d769d);
}

.membership-spotlight{
  background:linear-gradient(135deg,#0e6195,#0c7398);
}

.auth-branded{
  background:
    linear-gradient(90deg,rgba(8,39,65,.8) 0%,rgba(10,58,88,.58) 42%,rgba(13,77,111,.08) 74%),
    url('/static/assets/brasilbid-business-bg-v2.jpg') center/cover no-repeat;
}

.auth-branded .authcard{
  box-shadow:0 23px 55px rgba(12,45,70,.23);
}

.contact-nav-link::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#57d59a;
  box-shadow:0 0 0 3px rgba(87,213,154,.13);
}

/* WhatsApp configuration */
.whatsapp-config-panel{
  border-color:#cfe3ea;
  background:linear-gradient(145deg,#fff,#f5fbfd);
}

.whatsapp-config-grid{
  display:grid;
  grid-template-columns:minmax(260px,.75fr) minmax(360px,1.25fr);
  gap:16px;
  align-items:start;
}

.whatsapp-config-grid>label:not(.check){
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#2b3a4d;
  font-size:13px;
  font-weight:700;
}

.whatsapp-config-grid textarea{min-height:94px;}
.whatsapp-enable-card{grid-column:1/-1;margin:0;}

/* Order management */
.admin-orders-hero .member strong{font-size:24px;}

.order-stats article{
  border-top:3px solid #83c7e4;
}

.order-filter-grid{
  display:grid;
  grid-template-columns:minmax(280px,1.5fr) minmax(170px,.7fr) 140px auto auto;
  gap:12px;
  align-items:end;
}

.order-filter-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#2b3a4d;
  font-size:13px;
  font-weight:700;
}

.admin-order-table table{min-width:1240px;}
.admin-order-table td small{display:block;margin-top:4px;color:#708195;line-height:1.45;}
.order-number{display:block;max-width:250px;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;}
.breakable{overflow-wrap:anywhere;}

.order-status{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 9px;
  border:1px solid #d8e2ea;
  border-radius:7px;
  background:#edf3f7;
  color:#45596d;
  font-size:12px;
  font-weight:780;
}

.order-status.status-paid{border-color:#b9e0cf;background:#e8f7ef;color:#176a49;}
.order-status.status-created{border-color:#eed9ac;background:#fff7e5;color:#7a5716;}
.order-status.status-failed,
.order-status.status-cancelled{border-color:#edcbd1;background:#fff0f2;color:#953545;}

.order-row-actions{display:flex;gap:7px;flex-wrap:wrap;min-width:190px;}
.admin-order-detail-card{width:min(1050px,96vw);}
.order-raw-json{
  max-height:48vh;
  overflow:auto;
  padding:17px;
  border:1px solid #294b64;
  border-radius:9px;
  background:#153349;
  color:#f3f8fb;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.65;
}

@media(max-width:1100px){
  .order-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .order-filter-grid>button,
  .order-filter-grid>.buttonlink{width:100%;}
}

@media(max-width:760px){
  .topbar{background:linear-gradient(120deg,#0e476d,#146d91);}
  .whatsapp-config-grid,
  .order-filter-grid{grid-template-columns:minmax(0,1fr);}
  .whatsapp-enable-card{grid-column:auto;}
  .admin-orders-page .order-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-order-detail-card{width:100%;}
}

@media(max-width:430px){
  .admin-orders-page .order-stats{grid-template-columns:1fr;}
}
