/* EVPL Refined Pack v20260603.10 - layout limpo, compacto e responsivo */
:root{
  --evpl-red:#d41111;
  --evpl-red-dark:#9f0f0f;
  --evpl-yellow:#ffc400;
  --evpl-bg:#fff8ed;
  --evpl-card:#ffffff;
  --evpl-line:#f0d2a4;
  --evpl-text:#111827;
  --evpl-muted:#64748b;
  --evpl-radius:16px;
  --evpl-shadow:0 10px 30px rgba(148,80,0,.10);
  --evpl-vh:100vh;
  --header-h:112px;
  --tabs-h:54px;
  --filters-h:138px;
}
*{box-sizing:border-box}html,body{min-height:100%;overflow-x:hidden;background:var(--evpl-bg)!important;color:var(--evpl-text)!important}body.evpl-refined{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;margin:0!important}
body.evpl-refined .app-header{position:sticky;top:0;z-index:80;min-height:auto!important;display:grid!important;grid-template-columns:minmax(250px,1fr) minmax(560px,auto)!important;align-items:center!important;gap:18px!important;padding:14px 18px!important;background:rgba(255,255,255,.96)!important;border-bottom:3px solid var(--evpl-yellow)!important;box-shadow:0 10px 28px rgba(0,0,0,.08)!important;backdrop-filter:saturate(140%) blur(10px)}
body.evpl-refined .app-header .left{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important}body.evpl-refined .app-header .logo{width:54px!important;height:54px!important;object-fit:contain!important;flex:0 0 auto!important}body.evpl-refined .app-header h1{margin:0!important;font-size:clamp(1.15rem,1.8vw,1.55rem)!important;line-height:1.05!important;color:#10162f!important}body.evpl-refined .app-header small{font-size:.78rem!important;color:var(--evpl-muted)!important}body.evpl-refined .app-header .aplicar-container:empty{display:none!important}body.evpl-refined .right.top-meta{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:flex-start!important;border-left:1px dashed #e5e7eb!important;padding-left:14px!important;min-width:0!important}body.evpl-refined .btns{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
body.evpl-refined button,body.evpl-refined .btn,body.evpl-refined .apply-btn{min-height:38px!important;border-radius:12px!important;border:1px solid transparent!important;padding:0 16px!important;font-weight:800!important;letter-spacing:-.01em!important;box-shadow:0 6px 16px rgba(160,20,20,.10)!important;transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important;white-space:nowrap!important}body.evpl-refined button:hover,body.evpl-refined .btn:hover{transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(160,20,20,.15)!important}body.evpl-refined .apply-btn,body.evpl-refined .btn:not(.ghost){background:linear-gradient(180deg,#e71919,#bc1010)!important;color:#fff!important}body.evpl-refined .btn.ghost{background:#fff!important;color:#b51212!important;border-color:#e5e7eb!important}
body.evpl-refined .tabs{position:sticky!important;top:var(--header-h)!important;z-index:70;display:flex!important;gap:8px!important;overflow-x:auto!important;padding:10px 14px!important;background:rgba(255,248,237,.96)!important;border-bottom:1px solid #f0dfc6!important;box-shadow:0 8px 24px rgba(105,64,0,.06)!important;scrollbar-width:thin!important}body.evpl-refined .tab{flex:0 0 auto!important;background:#fffaf0!important;border:1px solid #f4ba3b!important;color:#713f12!important;border-radius:999px!important;min-height:36px!important;padding:0 16px!important}body.evpl-refined .tab.active{background:linear-gradient(180deg,#fff3bd,#ffe38a)!important;color:#5c3200!important;box-shadow:inset 0 -3px 0 #ff3b17!important}
body.evpl-refined .filters{position:sticky!important;top:calc(var(--header-h) + var(--tabs-h))!important;z-index:60;display:grid!important;grid-template-columns:1fr auto auto!important;gap:10px 12px!important;align-items:end!important;padding:12px 16px!important;background:rgba(255,248,237,.97)!important;border-bottom:1px solid #f1d6ab!important;box-shadow:0 10px 26px rgba(124,73,0,.07)!important}body.evpl-refined .filter-group{display:none!important;width:100%!important;grid-template-columns:repeat(6,minmax(140px,1fr))!important;gap:10px!important;align-items:end!important}body.evpl-refined .filter-group.active{display:grid!important}body.evpl-refined .field{min-width:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}body.evpl-refined .field.wide{grid-column:span 2!important}body.evpl-refined .field.tiny{width:130px!important}body.evpl-refined label{font-size:.68rem!important;text-transform:uppercase!important;letter-spacing:.04em!important;font-weight:900!important;color:#64748b!important}body.evpl-refined input,body.evpl-refined select,body.evpl-refined textarea{width:100%!important;min-height:38px!important;border-radius:11px!important;border:1px solid #f4b322!important;background:#fff!important;color:#111827!important;padding:0 12px!important;font-size:.92rem!important;outline:none!important;box-shadow:0 2px 0 rgba(255,196,0,.16)!important}body.evpl-refined input:focus,body.evpl-refined select:focus{border-color:#f97316!important;box-shadow:0 0 0 3px rgba(249,115,22,.16)!important}body.evpl-refined .filter-chips{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-height:0!important}body.evpl-refined .filter-chips:empty{display:none!important}body.evpl-refined .pager{display:flex!important;gap:6px!important;align-items:center!important}body.evpl-refined .pager .btn{min-width:34px!important;padding:0!important}
body.evpl-refined main{padding:10px 0 0!important;min-height:calc(var(--evpl-vh) - var(--header-h) - var(--tabs-h) - var(--filters-h))!important}body.evpl-refined .panel{display:none!important}body.evpl-refined .panel.active{display:block!important}body.evpl-refined .kpi-bar{display:grid!important;grid-template-columns:repeat(5,minmax(120px,1fr))!important;gap:8px!important;padding:0 8px 8px!important}body.evpl-refined .kpi,body.evpl-refined .kpi-card{background:#fff!important;border:1px solid #facdba!important;border-radius:12px!important;box-shadow:0 4px 14px rgba(120,80,0,.07)!important;padding:8px 10px!important}body.evpl-refined .table-wrap,body.evpl-refined .cards-wrap{height:calc(var(--evpl-vh) - var(--header-h) - var(--tabs-h) - var(--filters-h) - 54px)!important;min-height:360px!important;overflow:auto!important;background:#fff!important;border-top:1px solid #f1d6ab!important;border-bottom:1px solid #f1d6ab!important;box-shadow:inset 0 1px 0 #fff!important}body.evpl-refined table{width:max-content!important;min-width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:.82rem!important}body.evpl-refined th{position:sticky!important;top:0!important;z-index:5!important;background:linear-gradient(180deg,#ffc400,#f5b400)!important;color:#3b2600!important;font-weight:900!important;text-transform:uppercase!important;font-size:.72rem!important;border-bottom:1px solid #ce8b00!important}body.evpl-refined th,body.evpl-refined td{padding:8px 10px!important;border-right:1px solid #f2dcae!important;border-bottom:1px solid #f4e6c8!important;white-space:nowrap!important}body.evpl-refined td:nth-child(2){white-space:normal!important;min-width:280px!important;max-width:520px!important}body.evpl-refined tbody tr:hover td{background:#fff7d6!important}body.evpl-refined .empty{margin:10px 16px!important;border:1px dashed #f2b705!important;border-radius:14px!important;background:#fff!important;padding:14px 16px!important;color:#795000!important}
body.evpl-refined #pagerBottom{position:fixed!important;right:16px!important;bottom:10px!important;z-index:65;background:rgba(255,255,255,.95)!important;border:1px solid #f0d2a4!important;border-radius:999px!important;box-shadow:0 10px 30px rgba(0,0,0,.12)!important;padding:6px 8px!important}body.evpl-refined #scrollTop{position:fixed!important;right:18px!important;bottom:68px!important;z-index:66;border-radius:999px!important;background:#fff!important;color:#b51212!important;border:1px solid #f0d2a4!important;box-shadow:0 10px 30px rgba(0,0,0,.12)!important}.hidden{display:none!important}
body.evpl-refined .toast{position:fixed!important;left:50%!important;bottom:26px!important;transform:translateX(-50%) translateY(14px)!important;z-index:9999!important;background:#111827!important;color:#fff!important;border-radius:999px!important;padding:10px 16px!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important;opacity:0!important;pointer-events:none!important;transition:.18s ease!important}body.evpl-refined .toast.show{opacity:1!important;transform:translateX(-50%) translateY(0)!important}.toast.success{background:#047857!important}.toast.error{background:#b91c1c!important}.toast.info{background:#1f2937!important}
body.evpl-refined .loader{position:fixed!important;inset:0!important;z-index:9990!important;display:grid!important;place-items:center!important;background:rgba(255,248,237,.72)!important;backdrop-filter:blur(6px)!important}body.evpl-refined .loader.hidden{display:none!important}body.evpl-refined .loader-panel{width:min(430px,92vw)!important;background:#fff!important;border-radius:22px!important;border:1px solid #f0d2a4!important;box-shadow:0 24px 80px rgba(0,0,0,.18)!important;padding:20px!important}.evpl-safe-panel{position:fixed;right:16px;top:calc(var(--header-h) + var(--tabs-h) + 10px);z-index:75;display:none;max-width:360px;background:#fff;border:1px solid #f0d2a4;border-radius:16px;box-shadow:var(--evpl-shadow);padding:14px}.evpl-safe-panel.show{display:block}.evpl-safe-panel h3{margin:0 0 8px;font-size:1rem}.evpl-safe-panel p{margin:0 0 10px;color:#475569;font-size:.88rem}.evpl-safe-panel code{background:#fff7ed;padding:2px 6px;border-radius:7px;color:#9a3412}
@media (max-width:1100px){:root{--header-h:154px;--filters-h:196px}body.evpl-refined .app-header{grid-template-columns:1fr!important}body.evpl-refined .right.top-meta{border-left:0!important;border-top:1px dashed #e5e7eb!important;padding:10px 0 0!important}body.evpl-refined .filter-group.active{grid-template-columns:repeat(3,minmax(150px,1fr))!important}.evpl-safe-panel{top:12px;left:12px;right:12px;max-width:none}}
@media (max-width:700px){:root{--header-h:184px;--tabs-h:56px;--filters-h:300px}body.evpl-refined .app-header{padding:12px!important}body.evpl-refined .btns{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}body.evpl-refined .btns .btn,body.evpl-refined .btns .apply-btn{width:100%!important;padding:0 10px!important}body.evpl-refined .filters{grid-template-columns:1fr 1fr!important;padding:10px!important}body.evpl-refined .filter-group.active{grid-column:1/-1!important;grid-template-columns:1fr 1fr!important}body.evpl-refined .field.wide{grid-column:1/-1!important}body.evpl-refined .field.tiny{width:auto!important}body.evpl-refined .kpi-bar{grid-template-columns:1fr 1fr!important}body.evpl-refined th,body.evpl-refined td{padding:7px 8px!important;font-size:.76rem!important}body.evpl-refined td:nth-child(2){min-width:220px!important;max-width:320px!important}}
@media print{body.evpl-refined .app-header,body.evpl-refined .tabs,body.evpl-refined .filters,body.evpl-refined #pagerBottom,body.evpl-refined #scrollTop{display:none!important}body.evpl-refined .table-wrap{height:auto!important;overflow:visible!important}body.evpl-refined th{position:static!important}}
