/* EBP Tesouraria 4.5.4 — camada final única de interface. */
:root{--ebp45-bg:#f3f7fb;--ebp45-surface:#fff;--ebp45-line:#d8e4f0;--ebp45-text:#10233f;--ebp45-muted:#64748b;--ebp45-primary:#1f5fae;--ebp45-navy:#0b2147;--ebp45-radius:18px;--ebp45-shadow:0 12px 30px rgba(15,35,63,.07)}
body.ebp-system-page{background:var(--ebp45-bg)!important;color:var(--ebp45-text)!important}
body.ebp-system-page .entry-content{overflow:visible!important}
body.ebp-system-page :where(button,a,input,select,textarea):focus-visible{outline:3px solid rgba(31,95,174,.24)!important;outline-offset:2px!important}
body.ebp-system-page :where(.ebp-dashboard__header,.ebp-header-dashboard,.ebp-tes-hero,.wp-elegant-page__hero,.wp-lo-app .lo-header,.ebp-page-hero) h1{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.ebp-system-page :where(.ebp-dashboard__header,.ebp-header-dashboard,.ebp-tes-hero,.wp-elegant-page__hero,.wp-lo-app .lo-header,.ebp-page-hero) p{color:#dbeafe!important;-webkit-text-fill-color:#dbeafe!important}
body.ebp-system-page :where(.ebp-table-wrap,.ebp-tabela-container,.lo-table-wrap,.wp-members-table-wrap,.ebpc-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){body.ebp-system-page :where(table,.admin-table,.wp-members-table,.widefat):not(.ebpc-people-table .ebpc-table){min-width:0!important}body.ebp-system-page :where(.ebp-dashboard__header,.ebp-header-dashboard,.ebp-tes-hero,.wp-elegant-page__hero,.wp-lo-app .lo-header,.ebp-page-hero){min-height:0!important;padding:18px!important;border-radius:17px!important}}

/* Área operacional fluida no desktop: o tema não pode voltar a limitar o sistema. */
@media(min-width:901px){
  html body.ebp-system-page.ebp-plugin-shell-page #page,
  html body.ebp-system-page.ebp-plugin-shell-page .site,
  html body.ebp-system-page.ebp-plugin-shell-page #content,
  html body.ebp-system-page.ebp-plugin-shell-page .site-content,
  html body.ebp-system-page.ebp-plugin-shell-page .ast-container,
  html body.ebp-system-page.ebp-plugin-shell-page .content-area,
  html body.ebp-system-page.ebp-plugin-shell-page #primary,
  html body.ebp-system-page.ebp-plugin-shell-page .site-main,
  html body.ebp-system-page.ebp-plugin-shell-page article,
  html body.ebp-system-page.ebp-plugin-shell-page .inside-article,
  html body.ebp-system-page.ebp-plugin-shell-page .entry-content{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  html body.ebp-system-page :is(
    .ebp-painel,
    .wp-elegant-page,
    .wp-tesouraria-app,
    .wp-lo-app,
    .wp-livraria-page,
    .ebp-dashboard,
    .ebp-central-container,
    .ebp-tes-home,
    .ebp-home-v45,
    .ebp-home-v45__inner,
    .wp-members-page,
    .ebpc-app,
    .ebp-jornadas-pro
  ){
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  html body.ebp-system-page :is(
    .ebp-table-wrap,
    .ebp-tabela-container,
    .table-responsive,
    .table-wrap,
    .lo-table-wrap,
    .wp-members-table-wrap,
    .ebpc-table-wrap,
    .ebp-j-table-wrap
  ){
    width:100%!important;
    max-width:none!important;
  }
  html body.ebp-system-page table{
    width:100%!important;
    max-width:none!important;
  }
  html body.ebp-system-page table th{
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  html body.ebp-system-page table td{
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

.ebp-home-v45{width:100%;min-height:70vh;padding:clamp(14px,2.5vw,36px);background:var(--ebp45-bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ebp45-text)}
.ebp-home-v45 *{box-sizing:border-box}.ebp-home-v45__inner{width:100%;max-width:none;margin:0}.ebp-home-v45__hero{min-height:150px;padding:30px 34px;border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(132deg,#091e42 0%,#164985 62%,#2272c8 100%);box-shadow:0 20px 46px rgba(15,35,63,.18);color:#fff}.ebp-home-v45__eyebrow{display:block;margin-bottom:10px;color:#9edcff;font-size:11px;font-weight:950;letter-spacing:.11em}.ebp-home-v45__hero h1{margin:0 0 8px!important;color:#fff!important;font-size:clamp(30px,4vw,48px)!important;line-height:1!important;letter-spacing:-.045em}.ebp-home-v45__hero p{margin:0!important;color:#dbeafe!important;font-size:15px}.ebp-home-v45__identity{min-width:220px;padding:14px 16px;border:1px solid rgba(255,255,255,.2);border-radius:15px;background:rgba(255,255,255,.1);display:grid;gap:3px}.ebp-home-v45__identity small{color:#bfdbfe}.ebp-home-v45__identity strong{overflow-wrap:anywhere}
.ebp-home-v45__notice{margin-top:16px;padding:14px 17px;border:1px solid #b9d8f4;border-radius:14px;background:#edf7ff;color:#164d7a;display:flex;align-items:center;gap:8px;font-size:13px}.ebp-home-v45__notice span{color:#436b8d}
.ebp-home-v45__section{margin-top:28px}.ebp-home-v45__heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:13px}.ebp-home-v45__heading span{color:#39709f;font-size:10px;font-weight:950;letter-spacing:.11em}.ebp-home-v45__heading h2{margin:4px 0 0!important;color:#102c4b!important;font-size:25px!important;letter-spacing:-.025em}.ebp-home-v45__heading p{margin:4px 0 0;color:var(--ebp45-muted);font-size:13px}.ebp-home-v45__cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.ebp-home-v45__card{min-width:0;min-height:245px;padding:20px;border:1px solid var(--ebp45-line);border-top:4px solid var(--tone,#1f5fae);border-radius:18px;background:#fff;box-shadow:var(--ebp45-shadow);display:flex;flex-direction:column;color:var(--ebp45-text)!important;text-decoration:none!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.ebp-home-v45__card:hover{transform:translateY(-3px);border-color:#b8cde1;box-shadow:0 17px 36px rgba(15,35,63,.11)}.ebp-home-v45__card--blue{--tone:#1f67b1;--soft:#eaf3fd}.ebp-home-v45__card--teal{--tone:#0d9488;--soft:#e8faf7}.ebp-home-v45__card--violet{--tone:#7c3aed;--soft:#f3edff}.ebp-home-v45__card--amber{--tone:#c47a12;--soft:#fff6e7}.ebp-home-v45__card--cyan{--tone:#0891b2;--soft:#e9f9fc}.ebp-home-v45__icon{width:52px;height:52px;margin-bottom:18px;border-radius:15px;display:grid;place-items:center;background:var(--soft);color:var(--tone);font-size:13px;font-weight:950;letter-spacing:.02em}.ebp-home-v45__card>strong{font-size:18px;line-height:1.25}.ebp-home-v45__card>small{margin-top:9px;color:var(--ebp45-muted);font-size:12px;line-height:1.55}.ebp-home-v45__card>em{margin-top:auto;padding-top:17px;color:var(--tone);font-size:12px;font-style:normal;font-weight:900}
.ebp-home-v45__pending{padding:22px;border:1px solid var(--ebp45-line);border-radius:21px;background:#fff;box-shadow:var(--ebp45-shadow)}.ebp-home-v45__total{padding:7px 11px;border-radius:999px;background:#edf4fb;color:#235b8d;font-size:12px}.ebp-home-v45__pending-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ebp-home-v45__pending-item{min-width:0;padding:14px;border:1px solid #dbe6f0;border-radius:14px;display:grid;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;gap:12px;background:#fbfdff;color:#17314f!important;text-decoration:none!important}.ebp-home-v45__pending-item>strong{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#eaf2fa;color:#225d92;font-size:19px}.ebp-home-v45__pending-item.has-items{border-left:4px solid #d68a22}.ebp-home-v45__pending-item.has-items>strong{background:#fff4df;color:#a25b08}.ebp-home-v45__pending-item>span{display:grid;gap:3px;min-width:0}.ebp-home-v45__pending-item b{font-size:13px}.ebp-home-v45__pending-item small{color:var(--ebp45-muted);font-size:11px;line-height:1.4}.ebp-home-v45__pending-item em{color:#5880a4;font-style:normal}.ebp-home-v45__empty{padding:18px;border:1px solid #bfe7d3;border-radius:14px;background:#f0fbf6;display:flex;align-items:center;gap:13px}.ebp-home-v45__empty>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#d9f5e6;color:#067647;font-weight:950}.ebp-home-v45__empty>div{display:grid;gap:3px}.ebp-home-v45__empty small{color:#537465}.ebp-home-v45__admin{margin:18px 0 0;padding:12px 15px;border:1px dashed #c6d7e7;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#64748b;font-size:12px}.ebp-home-v45__admin a{color:#1f5fae;font-weight:850;text-decoration:none}
@media(max-width:1180px){.ebp-home-v45__cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.ebp-home-v45{padding:10px}.ebp-home-v45__hero{min-height:0;padding:22px 20px;border-radius:19px}.ebp-home-v45__identity{display:none}.ebp-home-v45__notice{align-items:flex-start;flex-direction:column}.ebp-home-v45__cards{grid-template-columns:1fr}.ebp-home-v45__card{min-height:0}.ebp-home-v45__heading{align-items:flex-start;flex-direction:column}.ebp-home-v45__pending{padding:15px}.ebp-home-v45__pending-grid{grid-template-columns:1fr}.ebp-home-v45__admin{align-items:flex-start;flex-direction:column}}

/* Modais operacionais: tela inteira, rolagem interna e fechamento sempre visível. */
html.ebp-lo-modal-open,body.ebp-lo-modal-open{overflow:hidden!important}
body.ebp-system-page :where(#modal-nova,#modal-acerto,#modal-historico-consignante).lo-modal{position:fixed!important;inset:0!important;z-index:999999!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important}
body.ebp-system-page :where(#modal-nova,#modal-acerto,#modal-historico-consignante).lo-modal>.lo-modal-content{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important}
body.ebp-system-page :where(#modal-nova,#modal-acerto,#modal-historico-consignante) .lo-modal-content>h3{position:sticky!important;top:0!important;z-index:40!important;min-height:66px!important;margin:0!important;padding:20px 72px 18px 25px!important;background:linear-gradient(135deg,#0b2147,#1f5fae)!important;color:#fff!important}
body.ebp-system-page :where(#modal-nova,#modal-acerto,#modal-historico-consignante) .lo-close{position:fixed!important;z-index:60!important;top:13px!important;right:16px!important;width:40px!important;max-width:40px!important;height:40px!important;padding:0!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:12px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:27px!important;display:grid!important;place-items:center!important}
