/* ALMOX360 V23 — módulo Romaneios */
.rom-fluxo{display:flex;align-items:center;gap:10px;margin:-10px 0 18px;padding:11px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;width:max-content;max-width:100%;font-size:10px;font-weight:850;color:#475569}
.rom-fluxo span{padding:6px 9px;border-radius:8px;background:#fff;border:1px solid #e2e8f0}.rom-fluxo .virtual{color:#7c3aed;background:#f5f3ff;border-color:#ddd6fe}.rom-fluxo .real{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.rom-fluxo i{font-style:normal;color:#94a3b8}
.rom-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.rom-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}.rom-card span,.rom-card small{display:block;color:#64748b}.rom-card span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.rom-card b{display:block;font-size:24px;margin:5px 0 2px;color:#0f172a}.rom-card b.danger{color:#dc2626}.rom-card small{font-size:9px}
.rom-panel{padding:16px}.rom-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.rom-search{width:min(350px,100%)}.rom-table td small,.rom-detail-head small{display:block;color:#94a3b8;font-size:8.5px;margin-top:3px}.rom-table td b{font-size:10.5px}.rom-link{border:0;background:none;color:#1d4ed8;font-weight:900;padding:0;cursor:pointer;font-size:11px}.rom-actions{white-space:nowrap}.rom-actions .btn-sm{margin-left:4px}
.rom-modal{width:min(980px,calc(100vw - 28px));max-height:88vh;overflow:auto}.rom-detail-head{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.rom-detail-head>div{min-width:0}.rom-detail-head span{display:block;font-size:8px;text-transform:uppercase;color:#94a3b8;font-weight:850;margin-bottom:5px}.rom-detail-head b{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rom-detail-body{padding-top:14px}.danger-outline{border:1px solid #fecaca!important;color:#b91c1c!important;background:#fff!important}.danger-outline:hover{background:#fef2f2!important}
.rom-conf-list{display:grid;gap:9px}.rom-conf-row{display:grid;grid-template-columns:1fr 135px 135px;gap:12px;align-items:end;padding:12px;border:1px solid #e2e8f0;border-radius:11px}.rom-conf-row b,.rom-conf-row small{display:block}.rom-conf-row b{font-size:10px}.rom-conf-row small{font-size:8.5px;color:#64748b;margin-top:4px}.rom-conf-row label{font-size:8.5px;color:#64748b}.rom-conf-row input{width:100%;margin-top:5px}
@media(max-width:900px){.rom-cards{grid-template-columns:repeat(2,1fr)}.rom-detail-head{grid-template-columns:repeat(2,1fr)}.rom-conf-row{grid-template-columns:1fr 1fr}.rom-conf-row>div{grid-column:1/3}}
@media(max-width:560px){.rom-cards{grid-template-columns:1fr}.rom-fluxo{width:100%;overflow:auto}.rom-conf-row{grid-template-columns:1fr}.rom-conf-row>div{grid-column:auto}}


.rom-novo-modal{width:min(1050px,calc(100vw - 28px))}.rom-novo-topo{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.rom-novo-topo label,.full-field{font-size:9px;color:#64748b;font-weight:700}.rom-novo-topo input,.rom-novo-topo select,.full-field textarea{display:block;width:100%;margin-top:6px}.rom-novo-barra{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #e2e8f0}.rom-novo-barra .search-box{width:min(520px,100%)}.rom-novo-barra span{font-size:9px;color:#64748b}.rom-novo-body{max-height:55vh;overflow:auto}.rom-qtd{width:110px}.rom-item-bloq{opacity:.58}.rom-warn{color:#b45309!important}.rom-novo-body .full-field{display:block;margin-top:14px}.rom-novo-body textarea{min-height:74px;resize:vertical}
@media(max-width:700px){.rom-novo-topo{grid-template-columns:1fr}.rom-novo-barra{align-items:stretch;flex-direction:column}.rom-qtd{width:90px}}

/* V25 */
#romNovo{font-weight:800}.rom-novo-modal .modal-head h2:after{content:"  VIRTUAL → REAL";font-size:9px;color:#64748b;margin-left:8px}


/* ==============================================================
   ALMOX360 V35 — ROMANEIO PREMIUM / UX SIMPLIFICADA
   ============================================================== */
.rom35-modal{
  width:min(1240px,calc(100vw - 34px))!important;
  max-width:1240px!important;
  max-height:92vh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:#fff!important;
}
.rom35-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 24px 16px;border-bottom:1px solid #e8edf5}
.rom35-header h2{font-size:20px;line-height:1.2;margin:0;color:#0f172a;font-weight:850}
.rom35-header p{margin:5px 0 0;font-size:11px;color:#64748b}
.rom35-close{width:38px;height:38px;border:0;border-radius:10px;background:#f8fafc;color:#334155;font-size:22px;cursor:pointer}
.rom35-close:hover{background:#eef2f7}
.rom35-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:14px 24px;border-bottom:1px solid #edf1f6;background:#fff}
.rom35-step{display:flex;align-items:center;gap:10px;min-width:0;position:relative}
.rom35-step:not(:last-child)::after{content:"";position:absolute;right:-8px;top:18px;width:20%;height:1px;background:#dbe3ef}
.rom35-step i{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:50%;border:1px solid #d7e0eb;color:#64748b;font-size:10px;font-style:normal;font-weight:850;background:#fff}
.rom35-step.active i{background:#2563eb;border-color:#2563eb;color:#fff}
.rom35-step b,.rom35-step span{display:block}.rom35-step b{font-size:10px;color:#334155}.rom35-step span{font-size:8.5px;color:#94a3b8;margin-top:2px}
.rom35-step.active b{color:#1d4ed8}
.rom35-route{display:grid;grid-template-columns:1fr 52px 1fr;align-items:end;gap:12px;padding:14px 24px 16px;background:#fbfcfe;border-bottom:1px solid #edf1f6}
.rom35-field{display:block;min-width:0}.rom35-field>span{display:block;font-size:8.5px;text-transform:uppercase;letter-spacing:.04em;font-weight:850;color:#64748b;margin-bottom:6px}
.rom35-field select{width:100%;height:48px;border:1px solid #dbe4f0;border-radius:10px;background:#fff;padding:0 14px;font-size:11px;font-weight:750;color:#1e293b}
.rom35-origin{height:48px;display:flex;align-items:center;gap:11px;padding:0 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}
.rom35-origin strong{font-size:18px;color:#2563eb}.rom35-origin b{font-size:12px;color:#172554}.rom35-origin em{font-style:normal;font-size:9px;color:#1d4ed8;background:#dbeafe;padding:5px 8px;border-radius:7px}
.rom35-arrow{display:grid;place-items:center;height:48px;color:#64748b;font-size:24px}
.rom35-content{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,.95fr);gap:14px;padding:14px 18px 16px;min-height:0;overflow:hidden;background:#f8fafc}
.rom35-catalog,.rom35-summary{min-width:0;background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}
.rom35-catalog{display:flex;flex-direction:column;min-height:0}
.rom35-section-title{padding:14px 15px 9px}.rom35-section-title.inline{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f6}
.rom35-section-title h3{font-size:13px;color:#0f172a;margin:0;font-weight:850}.rom35-section-title p{font-size:9px;color:#64748b;margin:3px 0 0}
.rom35-count{font-size:8.5px;font-weight:850;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:5px 8px;white-space:nowrap}
.rom35-search{display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:0 11px;height:40px;border:1px solid #dbe4f0;border-radius:9px;background:#fff;color:#64748b}
.rom35-search svg{width:16px;height:16px}.rom35-search input{border:0!important;outline:0!important;box-shadow:none!important;width:100%;font-size:10px;background:transparent!important}
.rom35-list-head{display:grid;grid-template-columns:minmax(300px,1fr) 125px 165px 104px;gap:10px;padding:9px 14px;background:#f8fafc;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}
.rom35-list-head span{font-size:8px;text-transform:uppercase;font-weight:850;color:#64748b}
.rom35-list{min-height:0;overflow:auto;padding:0 12px 8px;max-height:410px}
.rom35-item{display:grid;grid-template-columns:48px minmax(220px,1fr) 125px 165px 104px;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #edf1f6}
.rom35-item:last-child{border-bottom:0}.rom35-item.is-blocked{opacity:.55}
.rom35-thumb{width:42px;height:42px;border-radius:9px;background:#f8fafc;border:1px solid #edf1f6;overflow:hidden;display:grid;place-items:center;flex:0 0 auto}
.rom35-thumb.small{width:38px;height:38px}.rom35-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}.rom35-thumb-fallback{width:100%;height:100%;place-items:center;background:#f1f5f9;color:#64748b;font-size:9px;font-weight:850}
.rom35-item-main b,.rom35-item-main small{display:block}.rom35-item-main b{font-size:10px;color:#0f172a;line-height:1.25}.rom35-item-main small{font-size:8px;color:#64748b;margin-top:2px}
.rom35-warning{color:#b45309!important}
.rom35-stock span,.rom35-qty>span{display:block;font-size:7.5px;color:#94a3b8;text-transform:uppercase;font-weight:800;margin-bottom:4px}.rom35-stock b{font-size:11px;color:#0f172a}
.rom35-qty-wrap{display:flex;align-items:center;gap:6px}.rom35-qty-wrap input{width:100px;height:36px;border:1px solid #dbe4f0;border-radius:8px;padding:0 9px}.rom35-qty-wrap em{font-style:normal;font-size:9px;color:#475569}
.rom35-add .btn{height:36px;min-width:90px;padding:0 10px;border-radius:8px;font-size:9px}
.rom35-summary{display:flex;flex-direction:column;min-height:0;padding-bottom:12px}
.rom35-selected-list{min-height:165px;max-height:255px;overflow:auto;padding:0 13px}
.rom35-selected{display:grid;grid-template-columns:40px minmax(0,1fr) 88px 24px;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid #edf1f6}
.rom35-selected-main b,.rom35-selected-main small{display:block}.rom35-selected-main b{font-size:9px;color:#0f172a;line-height:1.25}.rom35-selected-main small{font-size:7.5px;color:#64748b;margin-top:2px}
.rom35-selected-qtd span{display:block;font-size:7px;color:#94a3b8}.rom35-selected-qtd b{display:block;font-size:9.5px;margin-top:3px;color:#0f172a}
.rom35-remove{border:0;background:#fff;color:#ef4444;font-size:18px;cursor:pointer;padding:2px;border-radius:6px}.rom35-remove:hover{background:#fef2f2}
.rom35-summary-empty{display:grid;place-items:center;text-align:center;min-height:160px;color:#94a3b8}.rom35-summary-empty b{font-size:10px;color:#64748b}.rom35-summary-empty span{font-size:8px;max-width:210px}
.rom35-totals{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:12px 13px;background:#bfdbfe;border:1px solid #bfdbfe;border-radius:11px;overflow:hidden}.rom35-totals>div{background:#eff6ff;padding:11px 13px}.rom35-totals span{display:block;font-size:8px;color:#64748b}.rom35-totals b{display:block;font-size:20px;color:#172554;margin-top:3px}
.rom35-note{display:block;padding:0 13px}.rom35-note span{display:block;font-size:8px;text-transform:uppercase;font-weight:850;color:#64748b;margin-bottom:5px}.rom35-note textarea{width:100%;min-height:58px;max-height:80px;resize:vertical;border:1px solid #dbe4f0;border-radius:9px;padding:8px 10px;font-size:9px}
.rom35-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid #e8edf5;background:#fff}
.rom35-footer-info{display:flex;align-items:center;gap:9px;min-width:0}.rom35-footer-info strong{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eff6ff;color:#2563eb}.rom35-footer-info b,.rom35-footer-info span{display:block}.rom35-footer-info b{font-size:9px;color:#334155}.rom35-footer-info span{font-size:8px;color:#64748b;margin-top:2px}
.rom35-footer-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}.rom35-footer-actions .btn{height:40px;border-radius:9px;padding:0 16px}.rom35-submit{min-width:205px}
.rom35-empty{padding:20px}.rom35-modal .modal-actions{display:none!important}

@media(max-width:980px){
  .rom35-content{grid-template-columns:1fr;overflow:auto}
  .rom35-summary{min-height:310px}
  .rom35-list{max-height:330px}
  .rom35-list-head{grid-template-columns:minmax(250px,1fr) 110px 150px 95px}
  .rom35-item{grid-template-columns:44px minmax(190px,1fr) 110px 150px 95px}
}
@media(max-width:720px){
  .rom35-modal{width:calc(100vw - 16px)!important;max-height:95vh!important}
  .rom35-header{padding:15px}
  .rom35-steps{grid-template-columns:1fr;padding:10px 15px}.rom35-step:not(:last-child)::after{display:none}
  .rom35-route{grid-template-columns:1fr;padding:12px 15px}.rom35-arrow{height:20px;transform:rotate(90deg)}
  .rom35-content{padding:10px}
  .rom35-list-head{display:none}
  .rom35-item{grid-template-columns:42px 1fr;gap:8px;padding:11px 2px}
  .rom35-stock,.rom35-qty,.rom35-add{grid-column:2}
  .rom35-stock{display:flex;gap:8px;align-items:center}.rom35-stock span{margin:0}
  .rom35-qty-wrap input{width:120px}
  .rom35-footer{align-items:flex-start;flex-direction:column}.rom35-footer-actions{width:100%}.rom35-footer-actions .btn{flex:1}.rom35-submit{min-width:0}
}
