/* BeliTech v4.16.01 — Unified Admin and Operator dashboard UI.
   Scoped to workspaces; intentionally does not change permissions, booking
   state transitions, finance calculations, public Explorer, or global header. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace{
  --bt-dash-ink:#0d2b48;
  --bt-dash-muted:#4e6479;
  --bt-dash-line:#dde1e5;
  --bt-dash-navy:#0d2b48;
  --bt-dash-card:#fff;
  --bt-dash-canvas:#f7f8f9;
  --bt-dash-radius:12px;
  --bt-dash-shadow:0 3px 12px rgba(13,43,72,0.05);
  color:var(--bt-dash-ink);
  background:var(--bt-dash-canvas)!important;
  max-width:1600px;
  min-width:0;
}
/* Navigation rhythm and selected-page clarity. */
@media (min-width:1024px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace{
    grid-template-columns:226px minmax(0,1fr)!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar{
    padding:26px 16px 18px!important;
    gap:18px!important;
    border-right:1px solid var(--bt-dash-line)!important;
    background:#fff!important;
    scrollbar-width:thin;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar .bst-portal-tabs{
    gap:5px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar .bst-portal-tabs button{
    min-height:44px!important;
    padding:11px 12px!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    border-radius:8px!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.35!important;
    transition:background .15s ease!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar .bst-portal-tabs button.is-active{
    background:var(--bt-dash-navy)!important;
    box-shadow:inset 3px 0 0 #2a445e!important;
    color:#fff!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar .bst-portal-tabs button:not(.is-active):hover{
    background:#f7f8f9!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-account{
    border:1px solid var(--bt-dash-line)!important;
    background:#f7f8f9!important;
    padding:12px!important;
    border-radius:10px!important;
    gap:10px!important;
  }
}
/* Main workspace visual hierarchy. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-main{
  min-width:0!important;
  box-sizing:border-box!important;
  padding:28px clamp(20px,2.2vw,36px) 54px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px 24px!important;
  margin:0 0 26px!important;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading > div:first-child{
  min-width:0;
  flex:1 1 245px;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading__eyebrow{
  display:block;
  margin-bottom:7px;
  color:#2a445e;
  font-size:10px;
  line-height:1.4;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:800;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading h1{
  margin:0!important;
  font-size:clamp(25px,2.1vw,32px)!important;
  font-weight:800!important;
  line-height:1.2!important;
  color:var(--bt-dash-ink)!important;
  letter-spacing:-.03em;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading p{
  margin:8px 0 0!important;
  max-width:58ch;
  color:var(--bt-dash-muted)!important;
  line-height:1.55!important;
  font-size:13px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading :is(.bst-ui-button,button){
  min-height:42px!important;
  line-height:1.35!important;
  gap:8px!important;
  white-space:normal;
}
/* Same spacing and card structure across both overview dashboards. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview{
  display:flex;
  flex-direction:column;
  gap:24px;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-metrics{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:142px!important;
  padding:18px!important;
  gap:9px!important;
  border:1px solid var(--bt-dash-line)!important;
  border-radius:var(--bt-dash-radius)!important;
  background:var(--bt-dash-card)!important;
  box-shadow:var(--bt-dash-shadow)!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card__label{
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:700!important;
  color:var(--bt-dash-ink)!important;
  white-space:normal!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card .text-2xl{
  font-size:clamp(23px,2vw,30px)!important;
  line-height:1.15!important;
  font-weight:800!important;
  overflow:visible!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card__sub{
  color:var(--bt-dash-muted)!important;
  line-height:1.45!important;
  overflow-wrap:anywhere;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)!important;
  gap:20px!important;
  align-items:start!important;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel{
  min-width:0!important;
  overflow:hidden!important;
  border-radius:var(--bt-dash-radius)!important;
  border:1px solid var(--bt-dash-line)!important;
  background:var(--bt-dash-card)!important;
  box-shadow:var(--bt-dash-shadow)!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel__head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:10px 16px!important;
  padding:20px 20px 16px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel__head h2{
  margin:0!important;
  font-size:17px!important;
  line-height:1.35!important;
  color:var(--bt-dash-ink)!important;
  font-weight:800!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-text-action{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.4!important;
  color:var(--bt-dash-navy)!important;
  text-decoration:none!important;
  white-space:normal!important;
  text-align:left;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-actions{
  padding:0 20px 12px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-actions > button{
  min-height:66px!important;
  padding:14px 2px!important;
  gap:12px!important;
  line-height:1.5!important;
  background:#fff!important;
  border-radius:0!important;
  border-bottom:1px solid #edeff1!important;
  text-align:left!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-actions > button:hover{
  background:#f7f8f9!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-listings{
  padding:0 20px 16px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-listings article{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px!important;
  padding:12px 0!important;
  border-bottom:1px solid #edeff1!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-listings article:last-child{
  border-bottom:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-listings article>div{
  min-width:0;
  flex:1 1 120px;
  overflow-wrap:anywhere;
}
/* Readable tables: remain horizontally scrollable, never force the page wide. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-table-wrap{
  max-width:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain;
  border-radius:10px!important;
  border:1px solid var(--bt-dash-line)!important;
  box-shadow:none!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-table :is(th,td){
  padding:12px 13px!important;
  vertical-align:top!important;
  line-height:1.5!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-table th{
  background:#f7f8f9!important;
  color:#4e6479!important;
  font-size:11px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-table td{
  color:var(--bt-dash-ink)!important;
  border-bottom:1px solid #edeff1!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel .bst-table-wrap{
  width:calc(100% - 40px)!important;
  max-width:calc(100% - 40px)!important;
  margin:0 20px 20px!important;
}
/* Tab strips and financial/operations cards. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-compact-tabs{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  max-width:100%!important;
  margin-bottom:20px!important;
  border-bottom:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-compact-tabs button{
  min-height:36px!important;
  padding:8px 14px!important;
  border-radius:999px!important;
  border:1px solid #dde1e5!important;
  background:#fff!important;
  color:#0d2b48!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-compact-tabs button.is-active{
  color:#2a445e!important;
  background:#f7f8f9!important;
  border-color:#dde1e5!important;
  box-shadow:inset 0 -2px 0 #2a445e!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace :is(.bst-payout-request-card,.bst-payout-history,.bst-payout-hero,.bst-admin-settings-card,.bst-data-card){
  border:1px solid var(--bt-dash-line)!important;
  border-radius:var(--bt-dash-radius)!important;
  box-shadow:var(--bt-dash-shadow)!important;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace :is(.bst-payout-form,.bst-admin-review-fields,.bst-payout-stats){
  gap:16px!important;
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  max-width:100%!important;
  box-sizing:border-box!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace :is(.bst-input,.bst-field input,.bst-field select,.bst-field textarea){
  min-height:42px!important;
  border:1px solid #dde1e5!important;
  border-radius:7px!important;
  background:#fff!important;
  color:var(--bt-dash-ink)!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace :is(button,a,summary,input,select,textarea):focus-visible{
  outline:2px solid var(--bt-dash-navy)!important;
  outline-offset:3px!important;
}
/* Tablet: prevent four cards or two dashboard panels becoming too cramped. */
@media (min-width:768px) and (max-width:1299px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media (max-width:767px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading > div:first-child {
    flex:0 0 auto;
  }

  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-main{
    padding:18px 14px 114px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading{
    align-items:flex-start!important;
    gap:14px!important;
    margin-bottom:20px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-heading h1{
    font-size:25px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview{
    gap:16px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card{
    padding:13px!important;
    min-height:136px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card .text-2xl{
    font-size:23px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel__head{
    padding:16px 16px 12px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-actions{
    padding:0 16px 8px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-panel .bst-table-wrap{
    width:calc(100% - 32px)!important;
    max-width:calc(100% - 32px)!important;
    margin:0 16px 16px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-listings{
    padding:0 16px 12px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-workspace-heading__actions{
    width:100%;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-bottom-nav{
    box-sizing:border-box!important;
    min-height:64px;
    padding-bottom:env(safe-area-inset-bottom,0px)!important;
    background:#fff!important;
    border-top:1px solid var(--bt-dash-line)!important;
    box-shadow:0 -5px 18px rgba(13,43,72,0.06)!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-bottom-nav button{
    min-width:0!important;
    font-size:10px!important;
    line-height:1.3!important;
    gap:3px!important;
    text-align:center!important;
  }
}
@media(max-width:355px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-metrics{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-sidebar .bst-portal-tabs button{transition:none!important;}
}

/* Complete access to ALL dashboard sections when desktop rail is unavailable. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace-mobile-switcher{display:none!important;}
@media(max-width:1023px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-mobile-switcher{
    display:flex!important;
    flex-direction:column;
    gap:6px;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    margin:0 0 20px!important;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-mobile-switcher label{
    display:block;
    color:#4e6479;
    font-size:12px;
    font-weight:700;
  }
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace-mobile-switcher select{
    display:block!important;
    width:100%;
    min-height:44px!important;
    padding:10px 34px 10px 13px!important;
    border:1px solid #dde1e5!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#0d2b48!important;
    font-size:14px!important;
    font-weight:700!important;
    box-shadow:0 2px 6px rgba(13,43,72,0.03)!important;
    box-sizing:border-box!important;
  }
}
/* Keep labels and values grouped at left in metric cards, including wide screens. */
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card,
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card__label{
  text-align:left!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
}
/* 1200px workspaces have sufficient width for a four-card overview. */
@media(min-width:1200px) and (max-width:1299px){
  body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-overview-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
body:not(.wp-admin) #bst-marketplace-root .bst-workspace .bst-stat-card__label{
  align-self:flex-start!important;
  margin-left:0!important;
  margin-right:0!important;
}


body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-workspace-main :is(
  .bst-data-header h2, .bst-inbox__intro h2, .bst-payout-hero h2
) {
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
