/* Catalog feedback and actual available desktop width. */
#orc-wiz-main .field:has(#orc-catalogo){width:100%;max-width:none;min-width:0}
#orc-wiz-main #orc-catalogo,#orc-wiz-main #orc-itens-editor{width:100%;min-width:0;max-width:none}
#orc-catalogo .orc-cat-row{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
#orc-catalogo .orc-cat-main{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
#orc-catalogo .orc-cat-acts{display:flex;flex:1 1 300px;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0;max-width:none}
#orc-catalogo .orc-cat-acts .btn{white-space:normal;min-height:44px;height:auto;max-width:100%}
@media(max-width:760px){#orc-catalogo .orc-cat-acts{justify-content:flex-start;flex-basis:100%}#orc-catalogo .orc-cat-acts .btn{flex:1 1 100%;width:100%}}
#orc-catalogo .orc-cat-row{min-height:0;height:auto}
#orc-catalogo .orc-cat-main{flex-basis:220px}
@media(max-width:760px){#orc-catalogo .orc-cat-row{align-items:stretch;gap:12px}#orc-catalogo .orc-cat-main{flex:0 1 auto;flex-basis:auto}}
/* Override the later generic 680px modal cap only in the page wizard. */
#orc-wiz-main #crud-modal.pv-page > .modal{width:100%;max-width:none}
#orc-wiz-main .oi-bonus{font:inherit}
#orc-wiz-main .oi-bonus small{font-size:.875rem;line-height:1.45;color:var(--muted)}
#orc-itens-editor input[aria-invalid=true]{border:2px solid var(--danger,#b42318);box-shadow:0 0 0 2px #b4231818}
#orc-validation-summary{flex:1 1 100%;text-align:left;color:var(--danger,#b42318);font-size:.9rem;line-height:1.4}
#crud-modal.orc-modal .m-foot:has(#orc-validation-summary){flex-wrap:wrap}
/* Four equal catalog tabs fill the available line without changing their hooks. */
#orc-wiz-main #orc-cat-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;box-sizing:border-box}
#orc-wiz-main #orc-cat-tabs .btn{width:100%;min-width:0;margin:0!important;min-height:44px;padding:8px 4px;white-space:normal;overflow-wrap:anywhere}
#crud-modal.orc-modal .m-foot.orc-validation-fixed{position:fixed;left:var(--orc-error-left);width:var(--orc-error-width);bottom:0;z-index:30;box-sizing:border-box;background:var(--card);padding:12px;border:1px solid var(--line);border-radius:12px 12px 0 0;box-shadow:0 -4px 20px #0001}
@media(max-width:760px){#crud-modal.orc-modal .m-foot.orc-validation-fixed{left:16px;width:calc(100% - 32px)}}
/* Keep the hint separate and regular, even under the wizard label cascade. */
#crud-modal.pv-page #orc-itens-editor label.oi-bonus>small{font-size:14px!important;font-weight:400!important;line-height:1.45;flex-basis:100%}

@media(max-width:600px){#orc-wiz-main #orc-cat-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
