.rv-estoque *{box-sizing:border-box}
.rv-estoque{margin:0;background:#f5f7f7;color:#1e3a3a;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.rv-estoque .wrap{max-width:1280px;margin:0 auto;padding:24px 16px 64px}
.rv-estoque h1{font-size:22px;margin:0 0 4px;font-weight:650;letter-spacing:-.01em}
.rv-estoque h2{font-size:16px;margin:0 0 12px;font-weight:650}
.rv-estoque .sub{color:#4b5563;font-size:13px}
.rv-estoque a{color:inherit}
.rv-estoque .nav{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.rv-estoque .nav a.btn{font-size:13px;text-decoration:none;border:1px solid #e5e7eb;border-radius:7px;padding:6px 11px;background:#ffffff}
.rv-estoque .nav a.btn:hover{background:#f0f4f3}
.rv-estoque .card{background:#ffffff;border:1px solid #e5e7eb;border-radius:10px;padding:16px 18px;margin-top:16px}
.rv-estoque .filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.rv-estoque .filters select,.rv-estoque .filters input{font:inherit;font-size:13px;color:#1e3a3a;background:#ffffff;border:1px solid #e5e7eb;border-radius:7px;padding:6px 9px;max-width:230px}
.rv-estoque .filters input{min-width:200px}
.rv-estoque button{font:inherit;font-size:13px;cursor:pointer;color:#1e3a3a;background:#ffffff;border:1px solid #e5e7eb;border-radius:7px;padding:6px 11px}
.rv-estoque button:hover{background:#f0f4f3}
.rv-estoque .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:16px}
.rv-estoque .tile{background:#ffffff;border:1px solid #e5e7eb;border-radius:10px;padding:14px 16px}
.rv-estoque .tile .k{font-size:12px;color:#4b5563;display:flex;align-items:center;gap:6px}
.rv-estoque .tile .v{font-size:26px;font-weight:650;margin-top:4px;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap}
.rv-estoque .tile .n{font-size:12px;color:#6b7280;margin-top:2px}
.rv-estoque a.tile{text-decoration:none;display:block}
.rv-estoque a.tile:hover{background:#f0f4f3}
.rv-estoque .sw{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.rv-estoque .seg{display:inline-flex;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.rv-estoque .seg button{border:0;border-radius:0;border-right:1px solid #e5e7eb}
.rv-estoque .seg button:last-child{border-right:0}
.rv-estoque .seg button.on{background:#eef2f1;font-weight:600}
.rv-estoque .head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.rv-estoque .legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#4b5563}
.rv-estoque .legend span{display:inline-flex;align-items:center;gap:6px}
.rv-estoque .bars{display:grid;grid-template-columns:minmax(120px,240px) 1fr 90px;gap:6px 12px;align-items:center}
.rv-estoque .bars .lb{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.rv-estoque .bars .lb:hover{text-decoration:underline}
.rv-estoque .bars .tr{height:16px;display:flex;gap:2px;cursor:pointer}
.rv-estoque .bars .tr div{height:100%}
.rv-estoque .bars .tr div:first-child{border-radius:4px 0 0 4px}
.rv-estoque .bars .tr div:last-child{border-radius:0 4px 4px 0}
.rv-estoque .bars .tr div:only-child{border-radius:4px}
.rv-estoque .bars .vl{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;color:#4b5563}
.rv-estoque .tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #e5e7eb;margin-bottom:12px}
.rv-estoque .tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:8px 12px;color:#4b5563}
.rv-estoque .tabs button.on{border-bottom-color:#1e3a3a;color:#1e3a3a;font-weight:600}
.rv-estoque .tbl{overflow-x:auto}
.rv-estoque table{border-collapse:collapse;width:100%;font-size:13px}
.rv-estoque th{text-align:left;font-weight:600;color:#4b5563;font-size:12px;padding:7px 8px;border-bottom:1px solid #e5e7eb;white-space:nowrap;cursor:pointer;background:#ffffff}
.rv-estoque td{padding:6px 8px;border-bottom:1px solid #f3f4f6;vertical-align:top}
.rv-estoque td.n,.rv-estoque th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.rv-estoque tr.grp{cursor:pointer}
.rv-estoque tr.grp:hover td{background:#f0f4f3}
.rv-estoque tr.grp td:first-child::before{content:"▸ ";color:#6b7280}
.rv-estoque tr.grp.open td:first-child::before{content:"▾ "}
.rv-estoque tr.det td{background:#f5f7f7;font-size:12px}
.rv-estoque .pill{display:inline-block;font-size:11px;padding:1px 6px;border-radius:10px;background:#eef2f1;color:#4b5563;margin:1px 3px 1px 0;white-space:nowrap}
.rv-estoque .muted{color:#6b7280}
.rv-estoque .note{font-size:12px;color:#4b5563;margin-top:8px}
.rv-estoque .method p{margin:6px 0;color:#4b5563;font-size:13px}
.rv-estoque .method b{color:#1e3a3a}
.rv-estoque .grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:900px){.rv-estoque .grid2{grid-template-columns:1fr}}
.rv-estoque .grid2 .card{margin-top:0}
.rv-estoque table.ped td.cel{border-left:1px solid #f3f4f6}
.rv-estoque table.ped thead th.n{border-left:1px solid #f3f4f6}
.rv-estoque table.ped th,.rv-estoque table.ped td{white-space:nowrap}
.rv-estoque table.ped td:nth-child(2){white-space:normal}
.rv-estoque table.ped tbody tr:hover td{background:#f0f4f3}
.rv-estoque .fornec{text-decoration:underline;text-decoration-color:#6b7280;text-underline-offset:2px}
.rv-estoque tr.clic{cursor:pointer}
.rv-estoque tr.clic:hover td{background:#f0f4f3}
.rv-estoque table.mtz{width:auto}
.rv-estoque table.mtz td,.rv-estoque table.mtz th{white-space:nowrap}
.rv-estoque table.mtz td.cm{cursor:pointer;min-width:58px;border:1px solid #ffffff}
.rv-estoque table.mtz td.cm:hover{outline:2px solid #1e3a3a}
.rv-estoque .mxbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px;font-size:13px}
.rv-estoque .mxbar select{font:inherit;font-size:13px;color:#1e3a3a;background:#ffffff;border:1px solid #e5e7eb;border-radius:7px;padding:5px 8px}
.rv-estoque .mxbar button{padding:5px 10px}
.rv-estoque table.mx{border-collapse:collapse;width:100%;font-size:13px}
.rv-estoque table.mx th,.rv-estoque table.mx td{text-align:center;vertical-align:middle;padding:7px 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.rv-estoque table.mx th{font-size:12px;color:#4b5563;font-weight:600;border-bottom:2px solid #e5e7eb;cursor:pointer;position:sticky;top:0;background:#ffffff;z-index:1}
.rv-estoque table.mx thead tr.tot td{position:sticky;top:33px;z-index:1}
.rv-estoque table.mx th.on{color:#1e3a3a}
.rv-estoque table.mx .hd{text-align:left}
.rv-estoque table.mx td.hd{max-width:440px;overflow:hidden;text-overflow:ellipsis}
.rv-estoque table.mx tr.tot td{font-weight:700;background:#eef2f1;border-bottom:1px solid #e5e7eb}
.rv-estoque table.mx tbody td{border-bottom:1px solid #f3f4f6}
.rv-estoque table.mx tr.lv0 td{font-weight:600}
.rv-estoque table.mx tr.lv1 td{background:color-mix(in srgb,#eef2f1 40%,#ffffff)}
.rv-estoque table.mx tr.lv2 td{background:color-mix(in srgb,#eef2f1 75%,#ffffff);font-size:12.5px;font-weight:400}
.rv-estoque table.mx tr.nd{cursor:pointer}
.rv-estoque table.mx tr.nd:hover td{background:#f0f4f3}
.rv-estoque table.mx .tg{display:inline-block;width:16px;color:#6b7280}
.rv-estoque table.mx td.bar{background-image:linear-gradient(90deg,color-mix(in srgb,#2c5555 24%,transparent) var(--p),transparent var(--p));background-repeat:no-repeat}
.rv-estoque .tbl{max-height:680px;overflow:auto}
.rv-estoque .kc{cursor:pointer;transition:border-color .1s}
.rv-estoque .kc:hover{border-color:#6b7280}
.rv-estoque .kc.on{border-color:#1e3a3a;box-shadow:inset 0 0 0 1px #1e3a3a}
.rv-estoque .kc.lnk .k::after{content:" \2192"}
.rv-estoque .tiles .tile .v{font-size:24px}
.rv-estoque .info{display:inline-flex;width:17px;height:17px;border-radius:50%;border:1px solid #6b7280;color:#4b5563;font-size:11px;align-items:center;justify-content:center;cursor:help;font-weight:700;margin-left:6px;vertical-align:1px}
.rv-estoque details.method{margin-top:16px}
.rv-estoque details.method summary{cursor:pointer;color:#4b5563;font-size:13px;padding:6px 0}
.rv-estoque .ctx{font-size:12.5px;color:#4b5563;margin:0 0 10px}
.rv-estoque .ped{font-size:11px;border:1px solid #e5e7eb;border-radius:5px;padding:1px 6px;margin-left:8px;cursor:pointer;color:#4b5563;font-weight:500}
.rv-estoque .ped:hover{color:#1e3a3a;border-color:#1e3a3a}
.rv-estoque .tiles{grid-template-columns:repeat(auto-fit,minmax(148px,1fr))}
.rv-estoque .tiles .tile{padding:12px 14px}
#tip{position:fixed;pointer-events:none;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px;font-size:12px;box-shadow:0 4px 16px rgba(0,0,0,.14);display:none;z-index:30;min-width:180px}
#tip .r{display:flex;justify-content:space-between;gap:14px;align-items:center}
#tip .t{font-weight:600;margin-bottom:4px}
.rv-estoque .sk{color:inherit;text-decoration:underline;text-decoration-color:#6b7280;text-underline-offset:2px;cursor:pointer}
.rv-estoque .sk:hover{text-decoration-color:#1e3a3a}
.rv-estoque .lk{cursor:pointer;border-bottom:1px dashed #6b7280}
.rv-estoque .lk:hover{border-bottom-color:#1e3a3a}
.mdl{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;z-index:20;padding:40px 16px;overflow:auto}
#modal{z-index:25}
.mdl .box{background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;max-width:1040px;width:100%;padding:18px 20px 20px}
.mdl .top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.mdl h3{margin:0;font-size:17px}
.mdl .meta{color:#4b5563;font-size:13px;margin-top:2px}
#modal .chart{position:relative;margin-top:14px}
#modal svg text{fill:#4b5563;font-size:11px}
#modal .cross{stroke:#6b7280;stroke-width:1}
.mdl .kpis{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:#4b5563}
.mdl .kpis b{color:#1e3a3a;font-size:15px}
.mdl tr.hl td{background:#eef2f1;font-weight:600}
.rv-estoque .fam{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.03em;padding:1px 6px;border-radius:4px;background:#2c5555;color:#fff;margin-right:5px;vertical-align:1px;white-space:nowrap}
.rv-estoque .callout{border:1px solid #e5e7eb;border-left:4px solid #2c5555;background:#f5f7f7;border-radius:8px;padding:10px 12px;font-size:13px;color:#4b5563;margin-top:12px}
.rv-estoque .callout b{color:#1e3a3a}
.rv-estoque .st{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.rv-estoque .st i{width:8px;height:8px;border-radius:50%;display:inline-block}
.rv-estoque .mapa{border-collapse:separate;border-spacing:2px;font-size:12px;width:auto;margin:0 auto}
.rv-estoque .mapa th{font-weight:600;font-size:11px;color:#4b5563;padding:4px;white-space:nowrap;border:0;cursor:default}
.rv-estoque .mapa th.lj{writing-mode:vertical-rl;transform:rotate(180deg);height:96px;vertical-align:bottom;text-align:left}
.rv-estoque .mapa td{border:0;padding:0;vertical-align:middle}
.rv-estoque .mapa td.nm{padding:3px 8px 3px 0;white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}
.rv-estoque .mapa td.c{width:34px;height:24px;border-radius:4px;text-align:center;font-size:10px;font-variant-numeric:tabular-nums;cursor:pointer}
.rv-estoque .mapa td.op{box-shadow:inset 0 0 0 2px #c2703a;color:#1e3a3a;font-weight:600}
.rv-estoque .mapa td.est{box-shadow:inset 0 0 0 1px #6b7280}
.rv-estoque .mapa td.vz{background:#f3f4f6}
.rv-estoque .mapa td.tt{padding-left:8px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#4b5563}
.rv-estoque .lg{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#4b5563;margin-top:10px;align-items:center;justify-content:center}
.rv-estoque .lg .b{display:inline-block;width:18px;height:14px;border-radius:3px;vertical-align:middle;margin-right:5px}
.rv-estoque{--a0:#a7e8e0;--a1:#6fd3c8;--a2:#4fd1c5;--a3:#3e6e6e;--a4:#2c5555;--a5:#1e3a3a;--a6:#16a34a}
.rv-estoque .novo{display:inline-block;font-size:10.5px;font-weight:700;padding:1px 6px;border-radius:4px;background:#4fd1c5;color:#fff;margin-left:6px;white-space:nowrap}
.rv-estoque .fx{display:flex;height:10px;border-radius:3px;overflow:hidden;gap:1px;width:110px;margin:0 auto}
.rv-estoque .fx div{height:100%}
.rv-estoque{font:14px/1.45 Manrope,'Segoe UI',Arial,sans-serif;color:#1e3a3a;background:transparent;-webkit-font-smoothing:antialiased}
.rv-estoque h2,.rv-estoque h3{font-family:Manrope,'Segoe UI',Arial,sans-serif;color:#1e3a3a}
.rv-estoque .wrap{max-width:none;padding:0 0 48px}
.rv-estoque .nav h1{display:none}
.rv-estoque .nav{margin-bottom:2px}
.rv-estoque input,.rv-estoque select,.rv-estoque textarea{width:auto}
.rv-estoque .filters input{min-width:200px}
.rv-estoque .mxbar select,.rv-estoque .filters select{max-width:230px}
.rv-estoque .card,.rv-estoque .tile{border-radius:.75rem}
.rv-estoque .tile .v{font-family:'Playfair Display',Georgia,serif;font-weight:600}
.rv-estoque button{font-family:inherit;border-radius:.375rem}
.rv-estoque .seg button,.rv-estoque .tabs button{border-radius:0}
.rv-estoque td.bar{display:table-cell;background-color:transparent;color:inherit;min-width:0;border-radius:0}
.rv-estoque .muted{color:#6b7280;font-size:inherit}
.rv-estoque table.mx td.bar{background-image:none}
.rv-estoque table.mx tr.nd:hover td,.rv-estoque tr.grp:hover td,.rv-estoque tr.clic:hover td,.rv-estoque table.ped tbody tr:hover td{background:#f1f3f3}
