/* Box Boy V5.6.8 — compactação visual global e cantos menos arredondados */
:root{--bb-radius-card:7px;--bb-radius-control:5px;--bb-radius-modal:8px}

:where(.card,.kpi,.filters,.tablewrap,.item,.admin-grid,.registration-stat,.registration-table-wrap,
.store-profile-card,.store-image-card,.store-settings-card,.store-table-card,.store-integration-card,
.finance-requested-card,.report-detail-item,.report-stage-card,.report-modal-tabs,.report-log-row,
.orders-shop-block,.orders-form-section,.orders-calculate-section,.orders-quote,.orders-modal-card,
.orders-drawer-card,.orders-history-item,.orders-courier-list,.bb-order-card,.bb-source-option,
.whatsapp-card,.communications-card,.access-note,.mini-tablewrap){border-radius:var(--bb-radius-card)!important}

:where(input,select,textarea,.btn,.btn2,.tabbtn,.logout,.access-tab,.side-item,.registration-filter-chip,
.report-row-action,.report-integration-icon,.orders-map-action,.orders-mini-action,.orders-address-suggestions,
.orders-address-suggestions button){border-radius:var(--bb-radius-control)!important}

#financePage .finance-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:8px 0}
#financePage .finance-grid .kpi{min-height:64px;padding:8px 10px}
#financePage .finance-grid .kpi .label{font-size:7.5px;letter-spacing:.45px}
#financePage .finance-grid .kpi .value{font-size:18px;line-height:1.05;margin-top:4px}
#financePage .finance-grid .kpi .hint{font-size:8px;line-height:1.2;margin-top:3px}
@media(min-width:1600px){#financePage .finance-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:1100px){#financePage .finance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){#financePage .finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.orders-address-autocomplete{position:relative;min-width:0}
.orders-address-autocomplete>input{width:100%}
.orders-address-suggestions{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:90;max-height:240px;overflow:auto;border:1px solid #70512f;background:#111a20;box-shadow:0 12px 30px rgba(0,0,0,.35);padding:4px}
.orders-address-suggestions.hidden{display:none}
.orders-address-suggestions button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#e8edf1;padding:8px 9px;cursor:pointer;line-height:1.25}
.orders-address-suggestions button:hover,.orders-address-suggestions button:focus{background:rgba(255,158,67,.12);outline:1px solid rgba(255,158,67,.35)}
.orders-address-suggestions b{display:block;font-size:9px;font-weight:800}
.orders-address-suggestions small{display:block;margin-top:2px;font-size:7.5px;color:#8ea0ac}

/* Cobertura global das demais abas carregadas por módulos antigos. */
.tabpage :where(.card,[class$="-card"],[class*="-card "],[class$="-panel"],[class*="-panel "],[class$="-wrap"],[class*="-wrap "]){border-radius:var(--bb-radius-card)!important}
.tabpage :where(button,input:not([type="checkbox"]):not([type="radio"]),select,textarea){border-radius:var(--bb-radius-control)!important}

/* V5.6.9 – compactação extra de telas administrativas */
.finance-head-compact-v569,
.communications-head-v562,
.courier-admin-toolbar-v539,
#storesAdminPage .v50-list-head,
#billingTablesPage .v50-list-head,
#paymentTablesPage .v50-list-head{align-items:center}

.finance-filters-v569,
.collections-toolbar-grid-v569,
#dashboardPage .dash-grid{display:grid;gap:10px;align-items:end}
.finance-filters-v569{grid-template-columns:repeat(4,minmax(0,1fr))}
.collections-toolbar-grid-v569{grid-template-columns:repeat(8,minmax(0,1fr))}
#dashboardPage .dash-grid{grid-template-columns:repeat(8,minmax(0,1fr))}

.compact-primary-actions-v569{display:flex;align-items:stretch;gap:6px}
.compact-primary-actions-v569>.btn{flex:1;min-width:0}
.mini-menu-v569{position:relative}
.mini-menu-v569 summary{list-style:none;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;border:1px solid rgba(236,156,66,.45);background:#2a3136;color:#f5b15a;cursor:pointer;font-size:20px;font-weight:800;box-sizing:border-box}
.mini-menu-v569 summary::-webkit-details-marker{display:none}
.mini-menu-v569[open] summary{background:#343c42}
.mini-menu-list-v569{position:absolute;right:0;top:46px;min-width:180px;padding:6px;border-radius:12px;background:#10161a;border:1px solid rgba(236,156,66,.24);box-shadow:0 18px 38px rgba(0,0,0,.34);z-index:40;display:flex;flex-direction:column;gap:4px}
.mini-menu-item-v569{border:none;background:transparent;color:#f2f4f5;font-size:13px;font-weight:700;text-align:left;padding:10px 12px;border-radius:8px;cursor:pointer}
.mini-menu-item-v569:hover{background:rgba(245,177,90,.12)}

.collections-toolbar-card-v569{padding:16px 18px 14px}
.billing-file-filter-v569 input[type=file]{width:100%;min-height:42px;padding:9px 10px;border-radius:10px;border:1px dashed rgba(236,156,66,.35);background:#14181c;color:#dfe6ea}
.billing-toolbar-note-v569{margin-top:8px}
.collections-kpis-v569{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.collections-kpis-v569 .kpi{padding:14px 16px;min-height:auto}
.collections-kpis-v569 .kpi .value{font-size:18px}
.finance-grid-compact-v569{margin-top:10px}

.communications-filter-grid-extended-v569{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.communications-filter-grid-extended-v569 .communications-filter-actions-v562{align-self:end}

.v50-filter-top-v569{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.stores-page-actions-compact-v569{display:flex;gap:8px;flex-wrap:wrap}
.stores-page-actions-compact-v569 .btn,
.stores-page-actions-compact-v569 .btn2{min-width:44px;padding:0 14px}
#storesAdminPage .v50-filter-grid{grid-template-columns:2.1fr 1fr 1fr 1fr 1fr}
#storesAdminPage .v50-filter-actions{justify-content:flex-end}
#storesAdminPage .v50-list-head>div:first-child,
#billingTablesPage .v50-list-head>div:first-child,
#paymentTablesPage .v50-list-head>div:first-child{display:flex;flex-direction:column;justify-content:center}
#storesAdminPage .v50-list-head h2,
#billingTablesPage .v50-list-head h2,
#paymentTablesPage .v50-list-head h2{margin-bottom:3px}
#storesAdminPage .v50-actions .danger{background:rgba(120,12,29,.18);border-color:rgba(221,79,97,.3);color:#ff8b9d}
#storesAdminPage .v50-actions .danger:hover{background:rgba(120,12,29,.3)}

.courier-admin-icon-actions-v569{gap:8px}
.courier-admin-icon-actions-v569 .btn,
.courier-admin-icon-actions-v569 .btn2{min-width:44px;padding:0 14px}
#registrationsPage .courier-admin-filter-grid-v539{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#registrationsPage .courier-admin-filter-card-v539{padding:14px 14px 10px}
#registrationsPage .courier-admin-filter-actions-v539{margin-top:10px}
#registrationsPage .courier-admin-list-head-v539{align-items:center}

#commissionsPage .commission-editor-card{padding:14px}
#commissionsPage .commission-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}
#commissionsPage .commission-wide{grid-column:span 2}
#commissionsPage .commission-store-box{padding:12px}
#commissionsPage .commission-store-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:200px}
#commissionsPage .commission-rule-note{margin-top:10px}
#commissionsPage .commission-editor-head{align-items:center}

#dashboardPage .filters .filter input,
#dashboardPage .filters .filter select,
.finance-filters-v569 .filter input,
.finance-filters-v569 .filter select,
.collections-toolbar-grid-v569 .filter input,
.collections-toolbar-grid-v569 .filter select{min-height:42px}
#dashboardPage .filters .filter label,
.finance-filters-v569 .filter label,
.collections-toolbar-grid-v569 .filter label{margin-bottom:5px}

@media (max-width:1500px){
  .collections-toolbar-grid-v569{grid-template-columns:repeat(4,minmax(0,1fr))}
  #dashboardPage .dash-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .communications-filter-grid-extended-v569{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1180px){
  .finance-filters-v569{grid-template-columns:repeat(2,minmax(0,1fr))}
  .collections-kpis-v569{grid-template-columns:repeat(2,minmax(0,1fr))}
  .communications-filter-grid-extended-v569{grid-template-columns:repeat(3,minmax(0,1fr))}
  #storesAdminPage .v50-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #registrationsPage .courier-admin-filter-grid-v539{grid-template-columns:repeat(3,minmax(0,1fr))}
  #commissionsPage .commission-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #commissionsPage .commission-store-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .finance-filters-v569,
  .collections-toolbar-grid-v569,
  .communications-filter-grid-extended-v569,
  #dashboardPage .dash-grid,
  #storesAdminPage .v50-filter-grid,
  #registrationsPage .courier-admin-filter-grid-v539,
  #commissionsPage .commission-form-grid{grid-template-columns:1fr}
  .collections-kpis-v569,
  #commissionsPage .commission-store-list{grid-template-columns:1fr}
  .v50-filter-top-v569{flex-direction:column;align-items:flex-start}
}

/* V5.6.13 — Painel de Pedidos: barra superior por ícones + rodapé operacional compacto */
#ordersPanelPage .orders-map-actions-v5613{left:10px!important;right:10px!important;top:9px!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-actions-left{gap:6px!important;align-items:center!important;flex-wrap:nowrap!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-action{
  position:relative!important;
  width:35px!important;height:32px!important;min-width:35px!important;min-height:32px!important;
  padding:0!important;gap:0!important;justify-content:center!important;
  border-radius:7px!important;border-color:rgba(87,121,145,.68)!important;
  background:linear-gradient(180deg,rgba(8,31,47,.94),rgba(8,25,38,.94))!important;
  color:#f6f9fb!important;box-shadow:0 3px 10px rgba(0,0,0,.23)!important;
  backdrop-filter:blur(7px)!important;
}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-action.primary{
  width:39px!important;min-width:39px!important;
  background:linear-gradient(180deg,#ffbd58,#f4a331)!important;
  border-color:#f0a43d!important;color:#17202a!important
}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-action:hover{transform:translateY(-1px);border-color:#ffb45a!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-action svg{width:15px!important;height:15px!important;stroke-width:2!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-extra-fees-count,
#ordersPanelPage .orders-position-count-v5613{
  position:absolute;top:-5px;right:-5px;min-width:15px;height:15px;padding:0 4px;
  border-radius:999px;background:#ff9f43;color:#111820;font-size:7px;font-weight:950;
  display:grid;place-items:center;border:1px solid rgba(9,26,38,.9)
}
#ordersPanelPage .orders-map-actions-v5613 .orders-position-count-v5613{background:#35b7ff;color:#06151f}
#ordersPanelPage .orders-map-actions-v5613 .orders-position-quick-v5613.active{border-color:rgba(45,204,112,.75)!important;color:#7af0ac!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-position-quick-v5613:disabled{opacity:.48;cursor:default;transform:none}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-inline-notices{position:absolute;left:0;top:39px;max-width:560px!important}
#ordersPanelPage .orders-map-actions-v5613 .orders-map-inline-notices .orders-point-notice{min-height:24px!important;padding:0 7px!important;font-size:7.5px!important}
.visually-hidden-v5613{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

#ordersPanelPage .bb-map-footer-v5613{
  position:absolute!important;z-index:520!important;left:9px!important;right:9px!important;bottom:7px!important;
  min-height:38px!important;padding:5px 7px!important;margin:0!important;
  display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;
  background:linear-gradient(180deg,rgba(6,26,40,.94),rgba(5,22,34,.96))!important;
  border:1px solid rgba(56,91,114,.82)!important;border-radius:8px!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;backdrop-filter:blur(9px)!important;
  pointer-events:auto!important
}
#ordersPanelPage .orders-footer-selection-v5613{
  position:relative!important;bottom:auto!important;margin:0!important;z-index:2!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;
  width:auto!important;min-height:28px!important;padding:0 7px 0 0!important;
  border:0!important;border-right:1px solid rgba(103,132,151,.35)!important;
  background:transparent!important;box-shadow:none!important;flex:0 0 auto!important
}
#ordersPanelPage .orders-footer-selection-v5613.hidden{display:none!important}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540{height:28px!important;font-size:8.5px!important;gap:5px!important;white-space:nowrap!important}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540 input{width:13px!important;height:13px!important}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-menu-v540{height:28px!important}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-menu-toggle-v540{
  min-height:27px!important;height:27px!important;padding:0 8px!important;border-radius:6px!important;font-size:8.5px!important
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-dropdown-v540{bottom:calc(100% + 3px)!important}

#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613{
  position:static!important;display:flex!important;align-items:center!important;gap:5px!important;
  flex:0 0 auto!important;max-width:none!important;pointer-events:auto!important
}
#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  min-height:28px!important;height:28px!important;padding:0 8px!important;
  border-radius:6px!important;border:1px solid rgba(88,118,139,.68)!important;
  background:rgba(12,36,52,.84)!important;color:#edf4f8!important;
  box-shadow:none!important;font-size:8.3px!important;font-weight:800!important;line-height:1!important
}
#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button svg{width:13px;height:13px;flex:0 0 auto}
#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button:disabled{opacity:.55!important}

#ordersPanelPage .orders-footer-stats-v5613{
  min-height:28px!important;height:28px!important;padding:0 8px!important;margin:0!important;
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;
  border:1px solid rgba(88,118,139,.48)!important;border-radius:6px!important;
  background:rgba(12,36,52,.74)!important;box-shadow:none!important;
  color:#eaf1f5!important;font-size:8.2px!important;line-height:1!important;white-space:nowrap!important
}
#ordersPanelPage .orders-footer-stats-v5613 span{display:inline-flex!important;align-items:center!important;gap:4px!important}
#ordersPanelPage .orders-footer-stats-v5613 span.hidden{display:none!important}
#ordersPanelPage .orders-footer-stats-v5613 b{font-size:8.7px!important;color:#f6f8f9!important}
.orders-stat-dot-v5613{width:7px;height:7px;border-radius:50%;display:inline-block;flex:0 0 auto}
.orders-stat-dot-v5613.open{background:#ffae2f}.orders-stat-dot-v5613.route{background:#249ff2}.orders-stat-dot-v5613.online{background:#22cb7a}.orders-stat-dot-v5613.total{background:#94a8b6}

#ordersPanelPage .orders-refresh-cadence-v5613{
  min-height:28px;height:28px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;
  border:1px solid rgba(88,118,139,.48);border-radius:6px;background:rgba(12,36,52,.74);
  color:#e8eff3;font-size:8.2px;font-weight:750;white-space:nowrap;flex:0 0 auto
}
#ordersPanelPage .orders-refresh-cadence-v5613 svg{width:13px;height:13px}

#ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{
  position:static!important;left:auto!important;bottom:auto!important;margin-left:auto!important;
  min-height:28px!important;height:28px!important;padding:0 8px!important;
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;
  border:1px solid rgba(88,118,139,.48)!important;border-radius:6px!important;
  background:rgba(12,36,52,.74)!important;box-shadow:none!important;
  color:#e8eff3!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;max-width:none!important
}
#ordersPanelPage .orders-map-legend-v5613>span{display:inline-flex!important;align-items:center!important;gap:4px!important}
.orders-legend-pin-v5613{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;border:1px solid rgba(255,255,255,.75)}
.orders-legend-pin-v5613.store{background:#8037f2;border-color:#a978ff}.orders-legend-pin-v5613.allocated{background:#ff1d55}.orders-legend-pin-v5613.waiting{background:#24d47f;width:6px;height:6px;border:0}

body.boxboy-theme-light #ordersPanelPage .bb-map-footer-v5613{background:rgba(245,249,251,.96)!important;border-color:#b7c7d1!important}
body.boxboy-theme-light #ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button,
body.boxboy-theme-light #ordersPanelPage .orders-footer-stats-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-refresh-cadence-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-map-legend-v5613{background:rgba(255,255,255,.95)!important;color:#263640!important;border-color:#c6d2da!important}

@media(max-width:1500px){
  #ordersPanelPage .bb-map-footer-v5613{gap:5px!important;padding:5px!important}
  #ordersPanelPage .orders-footer-stats-v5613{gap:5px!important;padding:0 6px!important}
  #ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{gap:5px!important;padding:0 6px!important}
  #ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button{padding:0 6px!important}
}
@media(max-width:1180px){
  #ordersPanelPage .bb-map-footer-v5613{flex-wrap:wrap!important;align-items:center!important}
  #ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{margin-left:0!important}
}
@media(max-width:760px){
  #ordersPanelPage .orders-map-actions-v5613 .orders-map-action{width:32px!important;height:30px!important;min-width:32px!important;min-height:30px!important}
  #ordersPanelPage .orders-map-actions-v5613 .orders-map-action.primary{width:35px!important;min-width:35px!important}
  #ordersPanelPage .bb-map-footer-v5613{left:6px!important;right:6px!important;bottom:6px!important}
  #ordersPanelPage .orders-footer-stats-v5613{overflow-x:auto!important;max-width:100%!important}
  #ordersPanelPage .orders-refresh-cadence-v5613{display:none!important}
  #ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{display:none!important}
}

/* V5.6.14 — unificação visual do painel de pedidos */
#ordersPanelPage .bb-map-footer-v5613{
  background:linear-gradient(180deg,rgba(28,63,92,.92),rgba(15,35,52,.92))!important;
  border-color:#294257!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
}
#ordersPanelPage .orders-footer-selection-v5613{
  border-right:1px solid rgba(143,179,205,.24)!important;
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540{
  gap:6px!important;
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540 #ordersSelectedCount{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:18px!important;height:18px!important;padding:0 5px!important;
  border-radius:999px!important;border:1px solid rgba(143,179,205,.3)!important;
  background:rgba(6,24,38,.35)!important;color:#f4f8fb!important;font-size:8.7px!important;font-weight:900!important;
}
#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button,
#ordersPanelPage .orders-footer-stats-v5613,
#ordersPanelPage .orders-refresh-cadence-v5613,
#ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{
  background:rgba(8,28,42,.36)!important;
  border-color:rgba(143,179,205,.24)!important;
}
#ordersPanelPage .orders-group-body{
  background:linear-gradient(180deg,rgba(28,63,92,.92),rgba(15,35,52,.92))!important;
  border-top:1px solid rgba(255,255,255,.04)!important;
}
#ordersPanelPage .orders-empty-create-v5614{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:10px!important;text-align:center!important;min-height:160px!important;
  background:linear-gradient(180deg,rgba(28,63,92,.92),rgba(15,35,52,.92))!important;
  border:1px dashed rgba(143,179,205,.28)!important;border-radius:8px!important;
}
#ordersPanelPage .orders-empty-create-button-v5614{
  min-height:34px!important;padding:0 14px!important;font-size:10px!important;font-weight:900!important;
  border-radius:7px!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-map-footer-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-group-body,
body.boxboy-theme-light #ordersPanelPage .orders-empty-create-v5614{
  background:linear-gradient(180deg,rgba(245,249,251,.98),rgba(236,243,247,.98))!important;
  border-color:#c6d2da!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540 #ordersSelectedCount{
  background:rgba(255,255,255,.9)!important;color:#20313c!important;border-color:#c6d2da!important;
}

/* V5.6.15 — Painel de pedidos alinhado ao head global */
#ordersPanelPage .bb-map-footer-v5613{
  left:16px!important;
  right:10px!important;
  bottom:7px!important;
  overflow:visible!important;
  background:rgba(36,35,35,.97)!important;
  border-color:#4b423b!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
}
#ordersPanelPage .orders-footer-selection-v5613{
  z-index:760!important;
  overflow:visible!important;
  margin-left:2px!important;
  padding-left:2px!important;
  border-right-color:#4b423b!important;
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-dropdown-v540{
  left:0!important;
  right:auto!important;
  z-index:900!important;
  background:#242323!important;
  border-color:#534a43!important;
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-menu-toggle-v540,
#ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button,
#ordersPanelPage .orders-footer-stats-v5613,
#ordersPanelPage .orders-refresh-cadence-v5613,
#ordersPanelPage .bb-map-footer-v5613 .orders-map-legend-v5613{
  background:#302e2c!important;
  border-color:#534a43!important;
  color:#f7f3ef!important;
}
#ordersPanelPage .orders-group-body{
  background:#242323!important;
  border-top-color:#4b423b!important;
}
#ordersPanelPage .orders-empty-create-v5614{
  background:#242323!important;
  border-color:#534a43!important;
}
#ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-select-v540 #ordersSelectedCount{
  background:#302e2c!important;
  border-color:#534a43!important;
  color:#f7f3ef!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-map-footer-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-group-body,
body.boxboy-theme-light #ordersPanelPage .orders-empty-create-v5614{
  background:#f4f2ef!important;
  border-color:#d8d0c9!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-footer-selection-v5613 .orders-bulk-menu-toggle-v540,
body.boxboy-theme-light #ordersPanelPage .bb-map-footer-v5613 .orders-layer-controls-v5613 button,
body.boxboy-theme-light #ordersPanelPage .orders-footer-stats-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-refresh-cadence-v5613,
body.boxboy-theme-light #ordersPanelPage .orders-map-legend-v5613{
  background:#fff!important;
  border-color:#d8d0c9!important;
  color:#272321!important;
}


/* ============================================================
   V5.6.18 — Tema claro consistente + contraste global + Pedidos slim
   ============================================================ */

/* Tema claro: textos estruturais realmente escuros em todas as páginas. */
body.boxboy-theme-light .main-content,
body.boxboy-theme-light .tabpage{
  color:#111820!important;
}
body.boxboy-theme-light .main-content :where(
  h1,h2,h3,h4,h5,h6,label,legend,
  .toolbar,.toolbar b,.toolbar strong,
  .filter label,.desc,.sub,.loading,.finance-note,
  .v50-section-title,.v50-list-head,.v50-pane-head,
  .courier-admin-section-title-v539,.communications-head-v562,
  .commission-head,.commission-editor-head,.commission-history-head,
  .registration-stat-title,.report-detail-title
){
  color:#111820!important;
}
body.boxboy-theme-light .main-content :where(.desc,.sub,.loading,.finance-note,.v50-muted,.item-meta){
  color:#394650!important;
}

/* Inputs e seletores customizados claros. */
body.boxboy-theme-light .searchable-select-btn,
body.boxboy-theme-light .extra-fee-store-selector-btn-v557{
  background:#fff!important;color:#111820!important;border-color:#2f3940!important;
}
body.boxboy-theme-light .searchable-select-btn.has-selection{color:#9c4f12!important;border-color:#b86626!important}
body.boxboy-theme-light .searchable-select-menu,
body.boxboy-theme-light .extra-fee-store-menu-v557{
  background:#fff!important;color:#111820!important;border-color:#363f45!important;
  box-shadow:0 12px 26px rgba(0,0,0,.14)!important;
}
body.boxboy-theme-light .searchable-select-options,
body.boxboy-theme-light .searchable-select-confirm{border-color:rgba(0,0,0,.18)!important}
body.boxboy-theme-light .searchable-select-option,
body.boxboy-theme-light .searchable-select-option b,
body.boxboy-theme-light .extra-fee-store-options-v557 label,
body.boxboy-theme-light .extra-fee-store-options-v557 label span{color:#111820!important}
body.boxboy-theme-light .searchable-select-option:hover,
body.boxboy-theme-light .searchable-select-option.active,
body.boxboy-theme-light .extra-fee-store-options-v557 label:hover{background:#eef2f4!important}

/* Bordas mais nítidas e sombra mínima em TODOS os blocos no tema claro. */
body.boxboy-theme-light .tabpage :where(
  .card,.kpi,.filters,.tablewrap,.item,.registration-stat,.registration-table-wrap,
  .v50-filter-card,.v50-list-card,.v50-editor-shell,.v50-linked-card,
  .courier-admin-filter-card-v539,.courier-admin-list-card-v539,.courier-admin-detail-card-v539,
  .commission-rule-list-card,.commission-editor-card,.commission-history-card,
  .communications-filter-card-v562,.communications-card-v562,
  .clan-list-card,.clan-editor-card,.finance-requested-card,
  .report-filter-panel,.report-detail-item,.report-stage-card,
  .orders-form-section,.orders-shop-block,.orders-calculate-section,.orders-quote,
  [class$="-card"],[class*="-card "],[class*="-card-"],
  [class$="-panel"],[class*="-panel "],[class*="-panel-"]
){
  border-color:rgba(0,0,0,.30)!important;
  border-bottom-color:rgba(0,0,0,.52)!important;
  box-shadow:0 2px 6px rgba(0,0,0,.075)!important;
}
body.boxboy-theme-light .tabpage :where(.tablewrap,.registration-table-wrap){
  outline:1px solid rgba(0,0,0,.08)!important;
  outline-offset:-1px!important;
}
body.boxboy-theme-light table thead th{border-bottom-color:rgba(0,0,0,.32)!important;color:#101820!important}
body.boxboy-theme-light table tbody td{border-bottom-color:rgba(0,0,0,.17)!important;color:#111820!important}

/* Mascote no tema claro: sem bloco escuro, fundo branco/transparente e borda preta fina. */
body.boxboy-theme-light #sidebarToggle.show-boxboy-icon,
body.boxboy-theme-light .report-integration-icon.boxboy,
body.boxboy-theme-light #ordersPanelPage .bb-card-brand.boxboy{
  background:#fff!important;
  border:1px solid rgba(0,0,0,.58)!important;
  box-shadow:0 1px 4px rgba(0,0,0,.07)!important;
}
body.boxboy-theme-light #sidebarToggle.show-boxboy-icon img,
body.boxboy-theme-light .report-integration-icon.boxboy img,
body.boxboy-theme-light #ordersPanelPage .bb-card-brand.boxboy img{
  background:transparent!important;
}
body.boxboy-theme-light .sidebar-brand-mascot{background:transparent!important}

/* Painel de Pedidos: legibilidade do cartão no claro. */
body.boxboy-theme-light #ordersPanelPage .orders-card{
  background:#fff!important;color:#111820!important;
  border-color:rgba(0,0,0,.34)!important;
  border-bottom-color:rgba(0,0,0,.52)!important;
  box-shadow:0 2px 6px rgba(0,0,0,.075)!important;
}
body.boxboy-theme-light #ordersPanelPage :where(
  .orders-code,.orders-card-client,.orders-card-client strong,.orders-card-address,
  .bb-card-distance,.bb-card-distance b,.bb-card-courier,.bb-card-courier span,
  .bb-card-platform,.orders-card-time
){color:#111820!important}
body.boxboy-theme-light #ordersPanelPage .orders-card-address{color:#222d34!important}
body.boxboy-theme-light #ordersPanelPage .bb-card-footer{border-top-color:rgba(0,0,0,.24)!important}

/* Mascote/coluna de integração e botão Alocar ~30% menores. */
#ordersPanelPage .bb-card-body{
  grid-template-columns:30px minmax(0,1fr)!important;
  column-gap:6px!important;
}
#ordersPanelPage .bb-card-brand-stack{width:30px!important;min-width:30px!important;gap:2px!important}
#ordersPanelPage .bb-card-brand{width:25px!important;height:25px!important;border-radius:6px!important}
#ordersPanelPage .bb-card-brand img{width:17px!important;height:17px!important}
#ordersPanelPage .bb-card-brand.ifood img{width:21px!important;height:21px!important;border-radius:5px!important}
#ordersPanelPage .bb-card-platform{max-width:30px!important;font-size:6.5px!important;line-height:8px!important}
#ordersPanelPage .bb-card-meta,
#ordersPanelPage .bb-card-footer{margin-left:36px!important}
#ordersPanelPage .bb-card-footer{min-height:25px!important;gap:5px!important}
#ordersPanelPage .bb-card-courier{max-width:calc(100% - 88px)!important;font-size:8px!important;gap:4px!important}
#ordersPanelPage .bb-card-assign.flat{
  min-width:76px!important;min-height:21px!important;height:21px!important;
  padding:0 6px!important;border-radius:5px!important;font-size:7.2px!important;gap:3px!important;
}
#ordersPanelPage .bb-card-assign.flat .bb-icon{width:10px!important;height:10px!important;flex-basis:10px!important}
#ordersPanelPage .bb-card-track-icon-v5616{
  width:22px!important;height:21px!important;min-width:22px!important;min-height:21px!important;padding:0!important;
}
#ordersPanelPage .bb-card-track-icon-v5616 .bb-icon{width:10px!important;height:10px!important}
#ordersPanelPage .orders-card-address,
#ordersPanelPage .bb-card-distance{
  font-size:8.4px!important;line-height:1.28!important;
}
#ordersPanelPage .orders-card-address{
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
}

/* Cartões/agrupadores da fila também usam linha escura no claro. */
body.boxboy-theme-light #ordersPanelPage .orders-group,
body.boxboy-theme-light #ordersPanelPage .orders-group-body{
  border-color:rgba(0,0,0,.34)!important;
  box-shadow:0 2px 6px rgba(0,0,0,.06)!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-group-body{background:#f9fafb!important}

/* Componentes administrativos que ainda tinham fundos hardcoded escuros. */
body.boxboy-theme-light :where(
  .courier-admin-filter-card-v539,.courier-admin-list-card-v539,.courier-admin-detail-card-v539,
  .commission-rule-list-card,.commission-editor-card,.commission-history-card,
  .extra-fee-card-v557,.extra-fee-section-v557,.extra-fee-store-group-v557
){background:#fff!important;color:#111820!important}

@media(max-width:700px){
  #ordersPanelPage .bb-card-footer{margin-left:36px!important;flex-direction:row!important;align-items:center!important}
  #ordersPanelPage .bb-card-assign.flat{width:auto!important;min-width:76px!important}
}


/* ============================================================
   V5.6.19 — Cards de pedido clean + rastreio por pin + alocação clara
   ============================================================ */
/* Remove o excesso de linhas internas introduzido pelo tratamento global de cards. */
#ordersPanelPage .orders-card{
  border:0!important;
  outline:0!important;
  background:linear-gradient(180deg,#22272a,#1d2225)!important;
  box-shadow:0 3px 10px rgba(0,0,0,.24)!important;
  padding:6px 7px 8px!important;
}
#ordersPanelPage .orders-card:hover{
  box-shadow:0 4px 13px rgba(0,0,0,.28)!important;
}
#ordersPanelPage .orders-card.selected{
  border:0!important;
  box-shadow:inset 3px 0 #ffb153,0 3px 10px rgba(0,0,0,.24)!important;
}
#ordersPanelPage .orders-card :where(
  .orders-card-top,.bb-card-body,.bb-card-brand-stack,.bb-card-recipient,
  .orders-card-client,.orders-card-address,.bb-card-distance,.bb-card-meta,
  .bb-card-footer,.bb-card-footer-actions-v561,.bb-card-courier
){
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
#ordersPanelPage .bb-card-footer{
  border-top:0!important;
  padding-top:3px!important;
  margin-top:4px!important;
}
#ordersPanelPage .bb-card-meta{border:0!important}
#ordersPanelPage .orders-group-body{
  border:0!important;
  box-shadow:none!important;
  padding:5px!important;
}

/* Tema claro: cartão sem molduras internas, usando relevo suave. */
body.boxboy-theme-light #ordersPanelPage .orders-card{
  background:#fff!important;
  color:#101820!important;
  border:0!important;
  outline:0!important;
  box-shadow:0 2px 8px rgba(18,31,41,.12)!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-card:hover{
  box-shadow:0 3px 11px rgba(18,31,41,.15)!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-card.selected{
  box-shadow:inset 3px 0 #ff9f43,0 2px 8px rgba(18,31,41,.12)!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-card :where(
  .orders-card-top,.bb-card-body,.bb-card-brand-stack,.bb-card-recipient,
  .orders-card-client,.orders-card-address,.bb-card-distance,.bb-card-meta,
  .bb-card-footer,.bb-card-footer-actions-v561,.bb-card-courier
){
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body.boxboy-theme-light #ordersPanelPage .orders-group-body{
  border:0!important;
  box-shadow:none!important;
  background:#f5f7f8!important;
}

/* Alocar / Realocar deixa de usar fundo escuro no tema claro. */
body.boxboy-theme-light #ordersPanelPage .bb-card-assign.flat{
  background:#fff!important;
  color:#111820!important;
  border:1px solid #68757d!important;
  box-shadow:0 1px 3px rgba(15,29,38,.08)!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-card-assign.flat:hover{
  background:#f1f4f6!important;
  color:#111820!important;
  border-color:#cc742d!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-card-assign.flat svg{
  color:#111820!important;
  stroke:#111820!important;
}

/* Rastreio fica só como pin, seguindo o botão ordersPositionQuick. */
#ordersPanelPage .bb-card-track-icon-v5616{
  border-radius:6px!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-card-track-icon-v5616{
  background:#fff!important;
  color:#111820!important;
  border-color:#68757d!important;
  box-shadow:0 1px 3px rgba(15,29,38,.08)!important;
}
body.boxboy-theme-light #ordersPanelPage .bb-card-track-icon-v5616 svg{
  stroke:#111820!important;
}

/* V5.6.53 — Cadastros: 50% menos arredondado que o padrão anterior */
#registrationsPage .courier-admin-filter-card-v539,
#registrationsPage .courier-admin-list-card-v539,
#registrationsPage .courier-admin-detail-card-v539,
#registrationsPage .courier-profile-card-v539,
#registrationsPage .courier-simple-modal-v539,
#registrationsPage .courier-review-card-v5653,
#registrationsPage .registration-detail-item,
#registrationsPage .registration-documents,
#registrationsPage .registration-doc-btn{border-radius:4px!important}
#registrationsPage :where(button,input:not([type="checkbox"]):not([type="radio"]),select,textarea){border-radius:3px!important}


/* V5.6.70 — endereço alinhado ao lado do ícone na fila de pedidos */
#ordersPanelPage .orders-card-address.bb-card-address-v5662{
  display:grid!important;
  grid-template-columns:11px minmax(0,1fr)!important;
  column-gap:5px!important;
  align-items:start!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:unset!important;
}
#ordersPanelPage .orders-card-address.bb-card-address-v5662>svg{
  grid-column:1!important;
  width:11px!important;
  height:11px!important;
  margin-top:1px!important;
  flex:none!important;
}
#ordersPanelPage .orders-card-address.bb-card-address-v5662>span{
  grid-column:2!important;
  min-width:0!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  line-height:13px!important;
}
