/* Transportadoras V5: lighter lookup controls, minimal icons only where useful. */
[data-view="fx-carriers"][data-carriers-pro]{--cr-green:#176b47;--cr-ink:#173329;--cr-line:#d5e3da;--cr-muted:#60796c;max-width:1280px;margin-inline:auto;min-width:0}
[data-view="fx-carriers"] .cr4-title{font-size:22px!important;font-weight:750!important;color:var(--cr-ink)!important;margin:0 0 6px!important}
[data-view="fx-carriers"] .cr4-title::before{content:'GESTÃO FISCAL E VENDAS';display:block;font-size:11px;font-weight:750;letter-spacing:.11em;color:var(--cr-green);margin:0 0 6px}
[data-view="fx-carriers"] .cr4-intro{margin-bottom:20px!important}
[data-view="fx-carriers"] .cr4-panel{border:1px solid var(--cr-line)!important;border-radius:12px!important;background:#fff!important;padding:20px!important;box-shadow:none!important;min-width:0}
[data-view="fx-carriers"] .cr4-list-title{font-size:17px!important;color:var(--cr-ink)!important}
[data-view="fx-carriers"] .cr4-new{background:var(--cr-green)!important;border-color:var(--cr-green)!important;color:#fff!important;border-radius:8px!important;min-height:40px!important}
[data-view="fx-carriers"] .cr4-search{border:1px solid #cbded1!important;border-radius:8px!important;min-height:40px!important}
[data-view="fx-carriers"] .cr4-table{border:1px solid var(--cr-line)!important;border-radius:8px!important;border-spacing:0!important}
[data-view="fx-carriers"] .cr4-table th{background:#f2f6f3!important;color:#526b5e!important;padding:12px!important}
[data-view="fx-carriers"] .cr4-table td{padding:12px!important}
[data-view="fx-carriers"] .cr4-table:has(.cr4-empty) thead{display:none!important}
[data-view="fx-carriers"] .cr4-empty{padding:30px 16px!important;text-align:center!important;background:#f3f7f4!important;color:var(--cr-ink)!important;border:1px dashed #cbded1!important;border-radius:8px!important;font-weight:650!important}
[data-view="fx-carriers"] .cr4-empty::before{content:'';display:block;width:36px;height:36px;border-radius:8px;background:#e5f1e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b47' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h12v12H2zM14 8h4l4 4v5h-8'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E") center/21px no-repeat;margin:0 auto 10px}
/* Match original shared dialog structure, not arbitrary nested form/action classes. */
html body dialog.av-form-dialog.av-catalog-dialog[data-carriers-pro-dialog="1"]{--cr-green:#176b47;--cr-ink:#173329;--cr-line:#d5e3da;--cr-muted:#60796c;box-sizing:border-box!important;width:min(860px,calc(100vw - 28px))!important;max-width:none!important;max-height:calc(100dvh - 36px)!important;padding:0!important;border:1px solid var(--cr-line)!important;border-radius:14px!important;background:#fff!important;color:var(--cr-ink)!important;overflow:hidden!important;box-shadow:0 20px 56px #10291f30!important}
html body dialog[data-carriers-pro-dialog="1"]::backdrop{background:rgba(20,44,34,.48)!important}
html body dialog[data-carriers-pro-dialog="1"] form.av-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:calc(100dvh - 38px)!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body dialog[data-carriers-pro-dialog="1"] .cr4-modal-title{display:block!important;position:static!important;flex:none!important;width:auto!important;text-align:left!important;padding:18px 24px 16px!important;margin:0!important;border:0!important;border-bottom:1px solid #e3ebe5!important;font-size:21px!important;line-height:1.3!important;font-weight:750!important;color:var(--cr-ink)!important}
html body dialog[data-carriers-pro-dialog="1"] .cr4-modal-title::before{content:'GESTÃO FISCAL E VENDAS';display:block;font-size:10px;line-height:1.3;font-weight:750;letter-spacing:.11em;color:var(--cr-green);margin:0 0 6px}
html body dialog[data-carriers-pro-dialog="1"] .av-form-desc{flex:none!important;padding:8px 24px!important;margin:0!important;color:var(--cr-muted)!important;font-size:13px!important}
html body dialog.av-catalog-dialog[data-carriers-pro-dialog="1"] .av-form-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;align-content:start!important;gap:13px 16px!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 24px 20px!important;margin:0!important;background:#fff!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields > *{min-width:0!important;box-sizing:border-box!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields > :is(.av-catalog-wide,.cr4-wide,.cr4-section){grid-column:1/-1!important}
html body dialog[data-carriers-pro-dialog="1"] .av-catalog-field{padding:0!important;margin:0!important;min-width:0!important;max-width:none!important;border:0!important;background:transparent!important}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section{display:block!important;margin:5px 0 0!important;padding:9px 12px!important;border:0!important;border-radius:7px!important;background:#f0f5f1!important;color:#176b47!important;font-size:13px!important;font-weight:750!important;line-height:1.4!important}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section > *{margin:0!important;padding:0!important;border:0!important;color:inherit!important;font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;background:transparent!important}
html body dialog[data-carriers-pro-dialog="1"] .av-catalog-field > label:not(:has(input[type=checkbox],input[type=radio])){display:grid!important;gap:6px!important;color:var(--cr-ink)!important;font-size:13px!important;font-weight:650!important;margin:0!important;padding:0!important;line-height:1.4!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields :is(input:not([type=hidden],[type=checkbox],[type=radio],[type=button],[type=submit]),select,textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;border:1px solid #cbded1!important;border-radius:8px!important;background:#fff!important;color:var(--cr-ink)!important;font-size:14px!important;font-weight:400!important;padding:8px 11px!important;box-shadow:none!important;margin:0!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields textarea{min-height:84px!important;resize:vertical!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields :is(input,select,textarea):focus-visible{outline:2px solid #8cbca2!important;outline-offset:1px!important}
/* Do not change original controls, hidden state, messages or event listeners. */
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields :is(.av-cnpj-tools,.av-ie-tools,.av-ie-actions,.av-fiscal-cep-tools,.cr4-lookup-group):not([hidden]){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;padding:0!important;margin:5px 0 0!important;border:0!important;position:static!important;min-height:0!important;background:transparent!important;box-shadow:none!important;width:auto!important;max-width:100%!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:32px!important;height:auto!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:6px 9px!important;border:1px solid #cbded1!important;border-radius:7px!important;background:#f5f9f6!important;color:#176b47!important;font-size:12px!important;font-weight:650!important;line-height:1.25!important;white-space:normal!important;box-shadow:none!important;text-decoration:none!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup:hover:not(:disabled){background:#e5f1e9!important;border-color:#a9cdb8!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields :is(.av-cnpj-status,.av-ie-status,.av-fiscal-cep-status):empty{display:none!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields :is(.av-cnpj-status,.av-ie-status,.av-fiscal-cep-status):not(:empty){flex:1 0 100%!important;min-width:0!important;overflow-wrap:anywhere;font-size:12px!important;margin:0!important;padding:0!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .av-catalog-field small:not([data-tone]){font-size:12px!important;line-height:1.4!important;margin:4px 0 0!important;padding:0!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions{display:flex!important;flex:none!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;margin:0!important;padding:12px 24px!important;border:0!important;border-top:1px solid #dce7df!important;background:#fff!important;position:static!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions button{min-height:40px!important;width:auto!important;padding:9px 16px!important;border-radius:8px!important;font-size:13px!important;font-weight:650!important;box-shadow:none!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions button[type=submit]{background:var(--cr-green)!important;border:1px solid var(--cr-green)!important;color:#fff!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-error:not(:empty){flex:none!important;margin:0!important;padding:8px 24px!important}
html body dialog[data-carriers-pro-dialog="1"] [hidden]{display:none!important}
@media(max-width:620px){html body dialog.av-catalog-dialog[data-carriers-pro-dialog="1"] .av-form-fields{grid-template-columns:minmax(0,1fr)!important;padding:12px 16px 16px!important;gap:12px!important}html body dialog[data-carriers-pro-dialog="1"] .cr4-modal-title,html body dialog[data-carriers-pro-dialog="1"] .av-form-actions{padding:12px 16px!important}}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions button:not([type=submit]){border:1px solid #cbded1!important;background:#fff!important;color:var(--cr-ink)!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions button:not([type=submit]):hover:not(:disabled){background:#f0f5f1!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-actions button:disabled,html body dialog[data-carriers-pro-dialog="1"] .cr4-lookup:disabled{opacity:.55!important;cursor:not-allowed!important}


/* V5: subtler consultation controls and only essential icons. */
html body dialog[data-carriers-pro-dialog="1"] .cr4-section{display:flex!important;align-items:center!important;gap:8px!important}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section::before{content:"";display:inline-block;flex:none;width:16px;height:16px;background-repeat:no-repeat;background-position:center;background-size:16px 16px;opacity:.95}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section[data-cr4-section-type="fiscal"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10M7 12h6M7 16h4'/%3E%3C/svg%3E")}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section[data-cr4-section-type="address"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6-5.2 6-11a6 6 0 1 0-12 0c0 5.8 6 11 6 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E")}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section[data-cr4-section-type="contact"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1A19.4 19.4 0 0 1 5.2 12.8 19.8 19.8 0 0 1 2.1 4.1 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7l.4 2.6a2 2 0 0 1-.6 1.8L7 9.9a16 16 0 0 0 7.1 7.1l1.8-1.9a2 2 0 0 1 1.8-.6l2.6.4A2 2 0 0 1 22 16.9Z'/%3E%3C/svg%3E")}
html body dialog[data-carriers-pro-dialog="1"] .cr4-section[data-cr4-section-type="notes"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14l4-3h10a2 2 0 0 0 2-2V9Z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E")}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup:not([hidden]){min-height:34px!important;padding:7px 12px!important;background:#fff!important;background-image:none!important;color:var(--cr-ink)!important;border:1px solid #dce7df!important;border-radius:8px!important;box-shadow:none!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup:hover:not(:disabled){background:#f6faf7!important;border-color:#b8d2c2!important;color:#15392d!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup[data-cr4-lookup-kind="official"]{min-height:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;color:var(--cr-green)!important;text-decoration:underline!important;text-underline-offset:2px!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup[data-cr4-lookup-kind="official"]:hover:not(:disabled){background:transparent!important;border:0!important;color:#115338!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup-group{row-gap:8px!important}
html body dialog[data-carriers-pro-dialog="1"] .av-form-fields .cr4-lookup-group :is(.av-cnpj-status,.av-ie-status,.av-fiscal-cep-status){margin-top:2px!important}
