.commercial-view{max-width:1440px;margin:0 auto 44px}
.commercial-admin-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border:1px solid #cfe5e9;border-radius:12px;background:#eaf5f7}
.commercial-admin-bar strong,.commercial-admin-bar span{display:block}
.commercial-admin-bar strong{font-size:15px;color:var(--navy)}
.commercial-admin-bar span{font-size:12px;color:var(--muted);margin-top:3px}
.commercial-list{display:grid;gap:10px}
.commercial-report-card{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.commercial-report-open{display:flex;align-items:center;gap:13px;width:100%;padding:16px 18px;border:0;background:transparent;text-align:left;color:var(--ink)}
.commercial-report-open:hover{background:#f6fbfc;border-radius:12px}
.commercial-report-icon,.commercial-empty-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8f4f4;color:#156082;font-size:14px;font-weight:850}
.commercial-report-open>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}
.commercial-report-open strong{font-size:14px;overflow-wrap:anywhere}
.commercial-report-open small{font-size:11px;color:var(--muted)}
.commercial-report-open>b{font-size:25px;color:#79a0a9}
.commercial-empty{display:grid;justify-items:center;text-align:center;align-content:center;min-height:240px;padding:30px;border:1px dashed #c6dce1;border-radius:14px;background:#fbfdfe}
.commercial-empty-mark{width:54px;height:54px;font-size:17px}
.commercial-empty h3{margin:14px 0 4px;color:var(--navy)}
.commercial-empty p{max-width:540px;color:var(--muted);font-size:13px}
.commercial-empty.compact{min-height:100px;padding:18px}
.commercial-empty.compact h3{margin:0 0 2px;font-size:15px}
.commercial-empty.compact p{margin:5px 0;font-size:12px}
.commercial-editor-toolbar{display:flex;align-items:flex-end;gap:14px;margin:0 0 12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.commercial-report-title{display:grid;gap:5px;flex:1;min-width:200px}
.commercial-report-title span{font-size:11px;font-weight:800;color:var(--muted)}
.commercial-report-title input{width:100%;height:42px;padding:8px 11px;border:1px solid #cddae2;border-radius:8px;color:var(--navy);font-weight:750}
.commercial-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.commercial-editor-actions .btn{min-height:38px;padding:7px 10px;font-size:11px}
.commercial-editor-actions>span{font-size:11px;color:var(--muted);min-width:65px}
.commercial-visit-state{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 11px;padding:11px 14px;border:1px solid #dce8ed;border-radius:10px;background:#f6fafb;color:#49616c;font-size:12px}
.commercial-visit-state>span{flex:1}
.commercial-visit-state strong{display:block}
.commercial-visit-state small{font-size:11px;color:var(--muted)}
.commercial-link-row{display:flex;align-items:center;gap:8px;min-width:min(500px,100%)}
.commercial-link-row input{flex:1;min-width:0;height:38px;padding:7px 9px;border:1px solid #cddae2;border-radius:7px;background:white;font-size:12px}
.commercial-step-nav{display:flex;gap:7px;overflow:auto;padding:3px 1px 9px;margin:0 0 10px}
.commercial-step-button{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 12px;border:1px solid #dbe6eb;border-radius:9px;background:#fff;color:#526a76;font-size:12px;font-weight:750;white-space:nowrap}
.commercial-step-button span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#eef4f6;color:#55717f;font-size:10px}
.commercial-step-button:hover{border-color:#8ccbd1}
.commercial-step-button.is-active{border-color:var(--teal);background:#eaf7f8;color:#0b5965;box-shadow:inset 0 -2px var(--teal)}
.commercial-step-button.is-active span{background:var(--teal);color:#fff}
.commercial-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0 13px}
.commercial-stage-heading .eyebrow{margin-bottom:3px}
.commercial-stage-heading h2{margin:0;color:var(--navy);font-size:24px}
.commercial-stage-heading p:not(.eyebrow){margin:4px 0 0;color:var(--muted);font-size:13px}
.commercial-stage-controls{display:flex;gap:7px}
.commercial-stage-controls .btn{min-height:38px}
.commercial-form-card{margin:0 0 13px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(11,52,66,.04)}
.commercial-form-heading{margin-bottom:11px}
.commercial-form-heading h3{margin:0;color:var(--navy);font-size:16px}
.commercial-form-heading p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.commercial-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px}
.commercial-fields>.field{display:grid;align-content:start;gap:5px;min-width:0}
.commercial-fields>.field.full{grid-column:1/-1}
.commercial-fields>.field>span,.commercial-question-fields label>span{font-size:11px;font-weight:750;color:#526b78}
.commercial-fields input,.commercial-fields select,.commercial-fields textarea,.commercial-question-fields select,.commercial-question-fields textarea{width:100%;min-width:0;min-height:39px;padding:8px 10px;border:1px solid #cddae2;border-radius:8px;background:#fff;color:#173b56;font-size:13px}
.commercial-fields textarea,.commercial-question-fields textarea{resize:vertical;line-height:1.5}
.commercial-fields input:focus,.commercial-fields select:focus,.commercial-fields textarea:focus,.commercial-question-fields select:focus,.commercial-question-fields textarea:focus{outline:3px solid rgba(34,179,193,.17);border-color:#62bfc8}
.commercial-question-list{display:grid;gap:8px}
.commercial-question-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:14px;align-items:start;padding:12px;border:1px solid #e0e9ed;border-radius:9px;background:#fbfdfe}
.commercial-question-card>div:first-child{display:grid;gap:4px}
.commercial-question-card>div:first-child>small{color:#168596;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.commercial-question-card>div:first-child>strong{font-size:12px;line-height:1.45;color:#284657}
.commercial-question-fields{display:grid;grid-template-columns:1fr;gap:7px}
.commercial-question-fields label{display:grid;gap:4px}
.commercial-data-row{padding:12px;border:1px solid #e1eaee;border-radius:10px;background:#fbfdfe}
.commercial-row-list{display:grid;gap:9px;margin:0 0 10px}
.commercial-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.commercial-row-top>b{font-size:12px;color:#156082}
.commercial-resource-row{display:grid;grid-template-columns:116px minmax(0,1fr);gap:13px;padding:13px;border:1px solid #dce7ec;border-radius:10px;background:#fbfdfe}
.commercial-resource-image{width:116px;height:100px;display:grid;place-items:center;overflow:hidden;border:1px solid #dce6eb;border-radius:8px;background:#f0f5f7;color:#81929b;font-size:11px}
.commercial-resource-image img{width:100%;height:100%;object-fit:contain;background:#fff}
.commercial-resource-fields{min-width:0}
.commercial-add-resource{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:11px;border-radius:9px;background:#f4f8fa}
.commercial-add-resource .field{flex:1;min-width:240px}
.commercial-add-resource select{min-height:40px;width:100%;border:1px solid #cddae2;border-radius:8px;padding:7px}
.commercial-cost-banner{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;margin:0 0 12px;padding:15px 18px;border-left:4px solid var(--teal);border-radius:10px;background:#eaf6f7}
.commercial-cost-banner span{font-size:12px;font-weight:800;color:#526b78}
.commercial-cost-banner strong{font-size:21px;color:var(--navy)}
.commercial-cost-banner small{grid-column:1/-1;color:var(--muted);font-size:11px}
.commercial-cost-table{display:grid;overflow:auto}
.commercial-cost-table>div{display:grid;grid-template-columns:1.1fr 1.5fr .5fr .9fr .9fr;gap:8px;min-width:600px;padding:9px;border-bottom:1px solid #e3ebef;font-size:11px}
.commercial-cost-table>div:first-child{background:#eef5f7;color:#355563}
.commercial-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.commercial-editor-bottom span{color:var(--muted);font-size:11px;text-align:center}
.commercial-catalog-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start}
.commercial-catalog-layout .commercial-form-card{margin:0}
.commercial-catalog-layout .commercial-form-card h3{margin:0 0 12px}
.commercial-catalog-preview{display:block;width:min(100%,260px);max-height:190px;object-fit:contain;margin:10px 0;border:1px solid var(--line);border-radius:8px}
.commercial-catalog-list{display:grid;gap:9px}
.commercial-catalog-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.commercial-catalog-item>img,.commercial-catalog-placeholder{width:70px;height:64px;display:grid;place-items:center;object-fit:contain;border-radius:7px;background:#f0f5f7;color:#80919a;font-size:10px}
.commercial-catalog-item>div:nth-child(2){display:grid;gap:3px;min-width:0}
.commercial-catalog-item small{color:#168596;font-size:10px;font-weight:800}
.commercial-catalog-item strong{font-size:12px;color:var(--navy);overflow-wrap:anywhere}
.commercial-catalog-item span{font-size:11px;color:var(--muted)}
.commercial-catalog-actions{display:flex;gap:5px}
.commercial-catalog-actions .btn{min-height:34px;padding:6px 9px;font-size:10px}
.commercial-future{min-height:380px;display:grid;align-content:center;justify-items:center;gap:8px;padding:34px;text-align:center;border:1px dashed #c8dfe4;border-radius:15px;background:#fff}
.commercial-future h2{margin:0;color:var(--navy);font-size:26px}
.commercial-future p:not(.eyebrow){max-width:600px;color:var(--muted)}
.commercial-future-mark{display:grid;place-items:center;width:54px;height:54px;border:3px solid #c8e7e9;border-radius:50%;color:#147181;font-weight:900}
.commercial-future .notice{max-width:620px;margin:5px 0 8px;padding:11px 14px;border-radius:8px;background:#f0f7f8;color:#4f6873;font-size:12px}
.commercial-public-view{max-width:100%;margin:0}
body.commercial-visit-public{background:#f1f5f7}
body.commercial-visit-public .topbar,body.commercial-visit-public .dbbar,body.commercial-visit-public .gri-watermark,body.commercial-visit-public .toast{display:none!important}
body.commercial-visit-public .shell{max-width:100%;padding:0 14px}
body.commercial-visit-public .commercial-visit-view{margin:0}
.commercial-public-shell{max-width:900px;margin:20px auto 34px}
.commercial-public-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-radius:12px 12px 0 0;background:#0b3442;color:#c8e8eb;font-size:11px;font-weight:800;letter-spacing:.08em}
.commercial-public-brand{font-size:13px;color:white;letter-spacing:0}
.commercial-public-brand b{font-size:19px}
.commercial-public-card{padding:clamp(18px,4vw,32px);border:1px solid #dce6eb;border-top:3px solid var(--teal);border-radius:0 0 13px 13px;background:#fff;box-shadow:var(--shadow)}
.commercial-public-card h1{margin:0;color:var(--navy);font-size:clamp(23px,4vw,31px);line-height:1.2}
.commercial-public-lead{margin:7px 0 17px;color:var(--muted);font-size:13px}
.commercial-form-progress{display:grid;gap:7px;margin:0 0 15px;color:#49636e;font-size:11px;font-weight:800}
.commercial-form-progress>div{height:7px;overflow:hidden;border-radius:10px;background:#e7eef1}
.commercial-form-progress i{display:block;height:100%;border-radius:10px;background:var(--teal);transition:width .2s}
.commercial-public-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #e2eaee}
.commercial-public-actions .btn{min-width:120px}
.commercial-autosave{margin:7px 0 0;color:#7d8f97;font-size:10px;text-align:right}
.commercial-public-footer{padding:10px 4px;color:#81929a;font-size:10px;text-align:center}
.commercial-visit-guidance{margin:0 0 16px;padding:12px 14px;border:1px solid #b9dfe4;border-left:4px solid var(--teal);border-radius:9px;background:#eef8f9;color:#245362;font-size:13px;line-height:1.5}
.commercial-visit-resource-submenu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 14px;padding:6px;border:1px solid #d6e7ec;border-radius:10px;background:#f3f8fa}
.commercial-visit-resource-tab{min-width:0;min-height:48px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#315563;font-size:13px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.commercial-visit-resource-tab:hover{background:#eaf5f7}
.commercial-visit-resource-tab.is-active{border-color:#afe0e5;background:#ddf4f5;color:#075b6d;box-shadow:0 2px 0 var(--teal)}
.commercial-visit-catalog-search{margin:0 0 9px}
.commercial-visit-catalog-search input,.commercial-visit-selected-item input{min-height:44px;font-size:16px}
.commercial-visit-catalog-list{display:grid;gap:6px;max-height:350px;overflow:auto;padding:3px 5px 3px 0;overscroll-behavior:contain}
.commercial-visit-catalog-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;padding:9px 12px;border:1px solid #e0e9ed;border-radius:9px;background:#f7fafb;color:var(--ink);text-align:left}
.commercial-visit-catalog-item:hover{border-color:#8ecbd4;background:#eff9fa}
.commercial-visit-catalog-item span,.commercial-visit-selected-item>div{min-width:0}
.commercial-visit-catalog-item strong,.commercial-visit-selected-item strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.commercial-visit-catalog-item small,.commercial-visit-selected-item small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.commercial-visit-catalog-item>b{flex:none;color:#12697b;font-size:12px}
.commercial-visit-selection-title{margin:17px 0 8px;color:var(--navy);font-size:14px}
.commercial-visit-selected{display:grid;gap:7px;margin-bottom:14px}
.commercial-visit-selected-item{display:grid;grid-template-columns:minmax(0,1fr) 112px auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dce7eb;border-radius:9px;background:#fbfdfe}
.commercial-visit-selected-item>div,.commercial-visit-selected-item label{min-width:0}
.commercial-visit-selected-item label{display:grid;gap:4px;color:#506b76;font-size:11px;font-weight:700}
.commercial-visit-selected-item input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.commercial-visit-selected-item .btn{min-height:42px}
.commercial-visit-public .commercial-data-row{padding:14px}
.commercial-visit-public .commercial-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.commercial-visit-public .commercial-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.commercial-visit-public .commercial-fields input,.commercial-visit-public .commercial-fields select,.commercial-visit-public .commercial-fields textarea{font-size:16px}
.commercial-visit-public .commercial-question-fields{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(0,1.3fr);gap:10px}
@media(max-width:640px){
 body.commercial-visit-public .shell{padding:0 8px}
 .commercial-public-shell{margin:8px auto 18px}
 .commercial-public-header{padding:12px 14px;border-radius:10px 10px 0 0}
 .commercial-public-card{padding:17px 13px;border-radius:0 0 10px 10px}
 .commercial-public-card h1{font-size:23px}
 .commercial-visit-guidance{font-size:12px;padding:10px 11px}
 .commercial-visit-public .commercial-fields,.commercial-visit-public .commercial-question-fields{grid-template-columns:minmax(0,1fr);gap:0}
 .commercial-visit-public .commercial-data-row{padding:11px}
 .commercial-visit-resource-submenu{gap:4px;padding:4px}
 .commercial-visit-resource-tab{min-height:50px;padding:6px 4px;font-size:11px}
 .commercial-visit-catalog-list{max-height:42vh}
 .commercial-visit-catalog-item{min-height:50px;padding:9px}
 .commercial-visit-selected-item{grid-template-columns:minmax(0,1fr) minmax(0,92px);gap:8px;padding:9px}
 .commercial-visit-selected-item .btn{grid-column:1/-1;width:100%}
 .commercial-public-actions{display:grid;grid-template-columns:1fr 1fr}
 .commercial-public-actions .btn{min-width:0;width:100%;min-height:46px;padding:9px 7px;font-size:12px}
 .commercial-public-actions [data-next],.commercial-public-actions [data-complete]{grid-column:1/-1}
 .commercial-autosave{text-align:left;line-height:1.4}
}
.commercial-visit-gate{max-width:580px;margin:0 auto;border-radius:0 0 13px 13px}
.commercial-visit-gate>p:not(.eyebrow){color:var(--muted);font-size:13px}
.commercial-visit-gate form{display:grid;gap:14px;margin-top:17px}
.commercial-visit-gate form .field{display:grid;gap:6px}
.commercial-visit-gate input{height:48px;width:100%;padding:10px 12px;border:1px solid #cddae2;border-radius:8px;font-size:18px;letter-spacing:.16em}
.commercial-visit-gate .btn{width:100%}
.commercial-final-note{margin:8px 0;padding:20px;border-left:4px solid var(--teal);border-radius:9px;background:#eef6f7;color:#355563}
.commercial-final-note h3{margin:0 0 9px;color:var(--navy)}
.commercial-final-note p{font-size:13px;line-height:1.55}
.commercial-visit-complete{text-align:center;padding:44px 28px}
.commercial-visit-complete h1{margin:12px 0 8px}
.commercial-visit-complete p{color:var(--muted)}
.commercial-complete-mark{display:grid;place-items:center;width:56px;height:56px;margin:auto;border-radius:50%;background:#e2f4e9;color:#177245;font-size:29px;font-weight:800}
@media(max-width:820px){.commercial-editor-toolbar{align-items:stretch;flex-direction:column}.commercial-editor-actions{justify-content:flex-start}.commercial-catalog-layout{grid-template-columns:1fr}}
@media(max-width:640px){
 .commercial-admin-bar{align-items:stretch;flex-direction:column}
 .commercial-admin-bar .btn{width:100%}
 .commercial-editor-actions{display:grid;grid-template-columns:1fr 1fr}
 .commercial-editor-actions>span{grid-column:1/-1}
 .commercial-editor-actions .btn{width:100%}
 .commercial-stage-heading{align-items:flex-start;flex-direction:column}
 .commercial-stage-heading h2{font-size:21px}
 .commercial-stage-controls{width:100%}
 .commercial-stage-controls .btn{flex:1}
 .commercial-fields{grid-template-columns:1fr}
 .commercial-fields>.field.full{grid-column:auto}
 .commercial-question-card{grid-template-columns:1fr}
 .commercial-question-fields{grid-template-columns:1fr}
 .commercial-resource-row{grid-template-columns:1fr}
 .commercial-resource-image{width:100%;height:150px}
 .commercial-add-resource .field{min-width:100%}
 .commercial-add-resource .btn{flex:1}
 .commercial-editor-bottom{align-items:stretch;flex-direction:column}
 .commercial-editor-bottom span{text-align:left}
 .commercial-editor-bottom .btn{width:100%}
 .commercial-catalog-item{grid-template-columns:56px minmax(0,1fr)}
 .commercial-catalog-item>img,.commercial-catalog-placeholder{width:56px;height:55px}
 .commercial-catalog-actions{grid-column:1/-1;justify-content:flex-end}
 .commercial-catalog-actions .btn{flex:1}
 .commercial-public-shell{margin:0 auto 18px}
 .commercial-public-header{border-radius:0;padding:12px 15px}
 .commercial-public-card{border-radius:0 0 10px 10px}
 .commercial-public-actions{display:grid;grid-template-columns:1fr 1fr}
 .commercial-public-actions .btn{width:100%;min-width:0;padding:9px 7px;font-size:12px}
 .commercial-public-actions .btn-primary{grid-column:1/-1;grid-row:1}
 .commercial-public-actions .btn-secondary:first-child{grid-row:2}
 .commercial-autosave{text-align:left}
}
.commercial-resource-categories{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:5px;border:1px solid #d8e7eb;border-radius:12px;background:#f4f8fa}
.commercial-resource-category{border:1px solid transparent;border-radius:9px;padding:10px 15px;background:transparent;color:#34566b;font:inherit;font-weight:700;cursor:pointer}
.commercial-resource-category:hover{background:#e8f2f5}
.commercial-resource-category.is-active{border-color:#b5e7e9;background:#dff5f5;color:#075b6a;box-shadow:inset 0 -2px #19b6c2}
.commercial-course-stage{display:grid;gap:16px;padding:22px;border:1px solid #d9e6eb;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(18,54,79,.05)}
.commercial-course-intro{padding:4px 2px 14px;border-bottom:1px solid #e0eaee}
.commercial-course-intro .eyebrow{margin:0 0 7px;color:#17aebb;font-size:11px;font-weight:800;letter-spacing:.12em}
.commercial-course-intro h3{margin:0 0 7px;color:#12364f;font-size:22px}
.commercial-course-intro p{margin:0;max-width:900px;color:#688095;line-height:1.6}
.commercial-course-list{display:grid;gap:12px}
.commercial-course-stage>[data-add-course]{justify-self:start}
.commercial-post-cost-table,.commercial-cost-table{overflow:auto;border:1px solid #dce7ec;border-radius:10px;background:#fff}
.commercial-post-cost-table>div,.commercial-cost-table>div{display:grid;grid-template-columns:minmax(190px,2fr) repeat(4,minmax(130px,1fr));gap:12px;align-items:center;min-width:780px;padding:12px 14px;border-bottom:1px solid #e5edf0}
.commercial-post-cost-table>div:first-child,.commercial-cost-table>div:first-child{background:#12364f;color:#fff;font-weight:700}
.commercial-cost-table>div{grid-template-columns:minmax(160px,1fr) minmax(240px,2fr) minmax(130px,1fr) minmax(200px,1.5fr);min-width:700px}
.commercial-post-cost-table>div:last-child,.commercial-cost-table>div:last-child{border-bottom:0}
.commercial-post-cost-table>div:nth-child(odd):not(:first-child),.commercial-cost-table>div:nth-child(odd):not(:first-child){background:#f4f8fa}
.commercial-question-actions{display:flex;justify-content:flex-end;margin:0 0 12px}
@media(max-width:700px){.commercial-resource-categories{display:grid;grid-template-columns:1fr}.commercial-resource-category{width:100%;text-align:left}.commercial-course-stage{padding:15px}.commercial-course-intro h3{font-size:19px}.commercial-question-actions .btn{width:100%}}

/* Menus de sugestões e diálogos seguem os componentes compartilhados do portal. */
.commercial-suggestion-field{position:relative;z-index:2}
.commercial-suggestion-field:focus-within{z-index:20}
.commercial-suggestion-menu{position:absolute;z-index:100;top:calc(100% + 4px);right:0;left:0;display:grid;gap:3px;max-height:260px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(11,52,66,.18)}
.commercial-suggestion-menu[hidden]{display:none}
.commercial-suggestion-field input,.commercial-suggestion-field select,#commercialApp .commercial-fields select,.commercial-public-shell select{color-scheme:light}
.commercial-suggestion-menu,.commercial-suggestion-menu *{color-scheme:light}
.commercial-suggestion-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 10px;border:1px solid transparent;border-radius:7px;background:#f8fbfc;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.commercial-suggestion-option:hover,.commercial-suggestion-option:focus{border-color:#86beca;background:#eef8f9;outline:0}
.commercial-suggestion-option>span{display:grid;gap:3px;min-width:0}
.commercial-suggestion-option strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.commercial-suggestion-option small,.commercial-suggestion-option>b{color:var(--muted);font-size:10px;font-weight:650}
.commercial-share-dialog,.commercial-edit-dialog,.commercial-confirm-dialog{position:fixed;inset:0;width:min(660px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:min(88vh,820px);margin:auto;overflow:auto;border:0;padding:0;background:transparent;color:var(--ink)}
.commercial-share-dialog::backdrop,.commercial-edit-dialog::backdrop,.commercial-confirm-dialog::backdrop{background:rgba(7,25,35,.52);backdrop-filter:blur(2px)}
.commercial-share-dialog>.card,.commercial-edit-dialog>form.card,.commercial-confirm-dialog>form.card{margin:0;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.commercial-share-dialog .card-head,.commercial-edit-dialog .card-head,.commercial-confirm-dialog .card-head{align-items:center;margin:0 0 14px}
.commercial-share-dialog .card-head h3,.commercial-edit-dialog .card-head h3,.commercial-confirm-dialog .card-head h3{margin:0;color:var(--navy);font-size:19px;line-height:1.3}
.commercial-share-dialog .card-head p,.commercial-edit-dialog .card-head p,.commercial-confirm-dialog .card-head p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.commercial-share-dialog h4{margin:16px 0 5px;color:var(--navy);font-size:14px}
.commercial-share-dialog .share-results,.commercial-share-dialog .share-list{max-height:250px;margin:8px 0 14px;padding:0}
.commercial-share-dialog .share-result,.commercial-share-dialog .share-row{min-height:58px;border-color:var(--line);border-radius:9px;background:#f8fbfc;padding:10px 12px;text-align:left;color:var(--ink);font:inherit}
.commercial-share-dialog .share-result:hover,.commercial-share-dialog .share-result:focus{border-color:#86beca;background:#f0f8f9;outline:0}
.commercial-share-dialog .share-row{background:#fff}
.commercial-share-person{display:grid;gap:3px;min-width:0}
.commercial-share-person strong{color:var(--navy);font-size:13px;overflow-wrap:anywhere}
.commercial-share-person small,.commercial-share-row small{color:var(--muted);font-size:11px}
.commercial-share-action{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;color:#147181;font-size:11px;font-weight:800;white-space:nowrap}
.commercial-share-row>span{display:grid;gap:3px;min-width:0}
.commercial-confirm-dialog{width:min(500px,calc(100vw - 28px))}
.commercial-confirm-dialog .actions{justify-content:flex-end;margin-top:8px}
.commercial-edit-dialog{width:min(820px,calc(100vw - 28px))}
.commercial-edit-dialog .commercial-fields{margin-top:8px}
.commercial-edit-dialog .actions{justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.commercial-resource-dialog-body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;align-items:start}
.commercial-resource-dialog-photo{width:150px;height:130px;display:grid;place-items:center;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:#f4f8fa;color:var(--muted);font-size:11px}
.commercial-form-error{margin:12px 0 0}
.commercial-section-toolbar{display:flex;justify-content:flex-end;margin:0 0 10px}
.commercial-staff-table-wrap{overflow:auto;border:1px solid #dce7ec;border-radius:10px;background:#fff}
.commercial-staff-table{width:100%;min-width:1320px;border-collapse:separate;border-spacing:0;font-size:11px}
.commercial-staff-table th{position:sticky;top:0;padding:10px 9px;background:#12364f;color:#fff;text-align:left;white-space:nowrap}
.commercial-staff-table td{padding:9px;border-bottom:1px solid #e5edf0;color:#355563;white-space:nowrap}
.commercial-staff-table tbody tr:nth-child(even){background:#f6fafb}
.commercial-staff-table tbody tr[data-edit-post]{cursor:pointer}
.commercial-staff-table tbody tr[data-edit-post]:hover{background:#eaf7f8}
.commercial-table-actions{display:flex;gap:5px}
.commercial-table-actions .btn{min-height:30px;padding:5px 8px;font-size:10px}
.commercial-resource-lines{display:grid;gap:7px}
.commercial-resource-line{display:grid;grid-template-columns:48px minmax(180px,1.2fr) minmax(200px,1fr) auto;gap:11px;align-items:center;min-height:66px;padding:8px 10px;border:1px solid #dce7ec;border-radius:10px;background:#fff;cursor:pointer}
.commercial-resource-line:hover{border-color:#9bcfd5;background:#fbfefe}
.commercial-resource-thumbnail{width:44px;height:44px;display:grid;place-items:center;object-fit:contain;border:1px solid #e2eaee;border-radius:7px;background:#f3f7f8;color:#78909a;font-size:9px}
.commercial-resource-line-name{display:grid;gap:4px;min-width:0}
.commercial-resource-line-name strong{color:var(--navy);font-size:12px;overflow-wrap:anywhere}
.commercial-resource-line-name small{color:var(--muted);font-size:10px}
.commercial-resource-inline-allocation{display:grid;grid-template-columns:auto minmax(140px,1fr);align-items:center;gap:7px;min-width:0}
.commercial-resource-inline-allocation>span{color:var(--muted);font-size:10px;font-weight:750}
.commercial-resource-inline-allocation select{width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid #cddae2;border-radius:7px;background:#fff;color:var(--ink);font-size:11px}
.commercial-resource-line-actions{display:flex;gap:5px;justify-content:flex-end}
.commercial-resource-line-actions .btn{min-height:32px;padding:6px 9px;font-size:10px;white-space:nowrap}
.commercial-add-resource{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:10px}
.commercial-add-resource .field{min-width:0}
.commercial-add-resource-select{min-width:0;flex:1}
.commercial-resource-add-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.commercial-resource-search-results{display:grid;gap:5px;margin:0 0 12px;padding:6px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 20px rgba(11,52,66,.1);max-height:min(60vh,520px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.commercial-resource-search-results[hidden]{display:none}
.commercial-resource-search-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:7px;background:#f8fbfc;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.commercial-resource-search-result:hover,.commercial-resource-search-result:focus{border-color:#86beca;background:#eef8f9;outline:0}
.commercial-resource-search-result>span{display:grid;gap:3px}
.commercial-resource-search-result strong{font-size:12px}
.commercial-resource-search-result small,.commercial-resource-search-result>b{color:var(--muted);font-size:10px}
@media(max-width:760px){.commercial-share-dialog>.card,.commercial-edit-dialog>form.card,.commercial-confirm-dialog>form.card{padding:16px}.commercial-resource-dialog-body{grid-template-columns:1fr}.commercial-resource-dialog-photo{width:100%;height:150px}.commercial-resource-line{grid-template-columns:42px minmax(0,1fr);gap:8px}.commercial-resource-thumbnail{width:40px;height:40px}.commercial-resource-inline-allocation{grid-column:1/-1;grid-template-columns:68px minmax(0,1fr)}.commercial-resource-line-actions{grid-column:1/-1}.commercial-resource-line-actions .btn{flex:1}.commercial-add-resource{grid-template-columns:1fr}.commercial-resource-add-buttons .btn{flex:1}.commercial-share-action{font-size:0}.commercial-share-action b{font-size:15px}}


/* Ajustes compactos para unidades, postos, cursos e custos no padrão das planilhas RT. */
.commercial-view{width:calc(100% - 36px);max-width:1900px}
.commercial-edit-dialog{width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(94vh,960px)}
.commercial-edit-dialog .commercial-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.commercial-edit-dialog .commercial-fields>.field.full{grid-column:1/-1}
.commercial-units-card{display:grid;gap:10px;margin:0 0 14px;padding:14px 16px;border:1px solid #d9e6eb;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(18,54,79,.04)}
.commercial-units-heading h3{margin:0;color:#12364f;font-size:16px}
.commercial-units-heading p{margin:3px 0 0;color:#688095;font-size:12px}
.commercial-unit-entry{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:10px}
.commercial-unit-entry .field{margin:0}
.commercial-unit-list{display:grid;overflow:hidden;border:1px solid #dce7ec;border-radius:9px;background:#fff}
.commercial-unit-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:40px;padding:5px 10px;border-bottom:1px solid #e5edf0}
.commercial-unit-row:last-child{border-bottom:0}
.commercial-unit-row:nth-child(even){background:#f4f8fa}
.commercial-unit-number{color:#355563;font-variant-numeric:tabular-nums;font-weight:800;text-align:center}
.commercial-unit-row strong{color:#12364f;font-size:12px}
.commercial-unit-row .btn{min-height:28px;padding:4px 8px;font-size:10px}
.commercial-staff-content{grid-column:1/-1;width:100%;min-width:0}
.commercial-staff-table{min-width:1160px}
.commercial-cost-table,.commercial-post-cost-table{grid-column:1/-1;width:100%;min-width:0}
.commercial-cost-table>div{width:100%;grid-template-columns:minmax(150px,1.1fr) minmax(240px,2fr) minmax(130px,.8fr) minmax(200px,1.6fr)}
.commercial-course-table-wrap{width:100%;overflow:auto;border:1px solid #dce7ec;border-radius:10px;background:#fff}
.commercial-course-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;font-size:11px}
.commercial-course-table th{position:sticky;top:0;padding:10px 9px;background:#12364f;color:#fff;text-align:left;white-space:nowrap}
.commercial-course-table td{padding:8px 9px;border-bottom:1px solid #e5edf0;color:#355563;vertical-align:middle}
.commercial-course-table tbody tr:nth-child(even){background:#f4f8fa}
.commercial-course-table tbody tr[data-edit-course]{cursor:pointer}
.commercial-course-table tbody tr[data-edit-course]:hover{background:#eaf7f8}
.commercial-course-table td:nth-child(2){min-width:220px}
.commercial-course-table td:nth-child(2) strong,.commercial-course-table td:nth-child(2) small{display:block}
.commercial-course-table td:nth-child(2) small{max-width:380px;margin-top:3px;color:#688095;white-space:normal}
.commercial-course-dialog .commercial-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.commercial-course-dialog .commercial-fields>.field.full{grid-column:1/-1}
@media(max-width:760px){
 .commercial-view{width:calc(100% - 20px)}
 .commercial-edit-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}
 .commercial-edit-dialog .commercial-fields,.commercial-course-dialog .commercial-fields{grid-template-columns:1fr}
 .commercial-edit-dialog .commercial-fields>.field.full,.commercial-course-dialog .commercial-fields>.field.full{grid-column:auto}
 .commercial-unit-entry{grid-template-columns:1fr}
 .commercial-unit-entry .btn{width:100%}
 .commercial-unit-row{grid-template-columns:38px minmax(0,1fr) auto}
 .commercial-course-stage{padding:14px}
 .commercial-course-intro{align-items:flex-start;gap:10px}
}

/* Resource search and unit picker use the portal's under-field menu pattern. */
.commercial-resource-picker{position:relative;min-width:0;grid-column:span 1}
.commercial-resource-picker>.field{min-width:0;margin:0}
.commercial-resource-search-results{position:absolute;z-index:90;top:calc(100% + 5px);left:0;right:0;max-height:min(340px,52vh);overflow:auto;margin:0}
.commercial-add-resource{grid-template-columns:minmax(240px,1fr) auto}
.commercial-suggestion-field{position:relative}
@media(max-width:760px){.commercial-add-resource{grid-template-columns:1fr}.commercial-resource-picker{grid-column:1/-1}}

/* Postos editados diretamente na grade, com controles compactos no padrão do portal. */
.commercial-staff-table{width:max-content;min-width:100%;table-layout:auto;font-size:12px}
.commercial-staff-table th{padding:10px 8px;font-size:11px;vertical-align:bottom}
.commercial-staff-table td{padding:8px;vertical-align:middle;white-space:nowrap}
.commercial-staff-table td:first-child,.commercial-staff-table th:first-child{min-width:52px;text-align:center}
.commercial-staff-table td:nth-child(2),.commercial-staff-table th:nth-child(2){min-width:170px}
.commercial-staff-table td:nth-child(3),.commercial-staff-table th:nth-child(3){min-width:225px}
.commercial-staff-table td:nth-child(4),.commercial-staff-table th:nth-child(4){min-width:78px}
.commercial-staff-table td:nth-child(5),.commercial-staff-table th:nth-child(5){min-width:110px}
.commercial-staff-table td:nth-child(6),.commercial-staff-table th:nth-child(6){min-width:164px}
.commercial-staff-table td:nth-child(7),.commercial-staff-table th:nth-child(7){min-width:145px}
.commercial-staff-table td:nth-child(8),.commercial-staff-table th:nth-child(8),.commercial-staff-table td:nth-child(9),.commercial-staff-table th:nth-child(9){min-width:125px}
.commercial-staff-table td:nth-child(10),.commercial-staff-table th:nth-child(10){min-width:138px}
.commercial-staff-table td:nth-child(11),.commercial-staff-table th:nth-child(11),.commercial-staff-table td:nth-child(12),.commercial-staff-table th:nth-child(12),.commercial-staff-table td:nth-child(13),.commercial-staff-table th:nth-child(13){min-width:138px}
.commercial-staff-table td:nth-child(14),.commercial-staff-table th:nth-child(14){min-width:125px}
.commercial-staff-table td:nth-child(15),.commercial-staff-table th:nth-child(15){min-width:185px}
.commercial-staff-table td:last-child,.commercial-staff-table th:last-child{min-width:135px}
.commercial-staff-table tbody tr[data-edit-post]{cursor:default}
.commercial-staff-table tbody tr[data-edit-post]:hover{background:#f2fbfc}
.commercial-staff-table tbody tr.is-editing{background:#eaf8fa}
.commercial-staff-table tbody tr.is-editing td{padding-top:8px;padding-bottom:8px}
.commercial-inline-control{display:block;width:100%;min-width:0;min-height:36px;height:auto;padding:7px 8px;border:1px solid #cbdce3;border-radius:7px;background:#fff;color:#173e50;font:inherit;font-size:12px}
.commercial-inline-control:focus{border-color:#20b4c3;outline:2px solid rgba(32,180,195,.2)}
.commercial-inline-control[readonly]{background:#f1f6f8;color:#607d8b}
.commercial-inline-role{display:grid;gap:5px;min-width:210px}
.commercial-inline-times{display:grid;grid-template-columns:repeat(2,minmax(72px,1fr));gap:5px;min-width:154px}
.commercial-inline-suggestion{position:relative;min-width:0}
.commercial-staff-table .commercial-table-actions{gap:5px;flex-wrap:nowrap}
.commercial-staff-table .commercial-table-actions .btn{min-height:32px;padding:5px 8px;font-size:11px}
.commercial-suggestion-menu-portal{position:fixed!important;z-index:10000;top:0;left:0;right:auto;display:grid;gap:3px;max-height:min(280px,48vh);overflow:auto;margin:0;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(11,52,66,.22)}
@media(max-width:760px){.commercial-staff-table{min-width:1980px}.commercial-inline-control{min-height:36px;height:auto;font-size:12px}}

/* Revisão 6: campos compactos sem sacrificar o texto dos horários e da unidade. */
.commercial-staff-table{width:1894px;min-width:1894px;table-layout:fixed;font-size:11px}
.commercial-staff-table th{padding:8px 6px;font-size:10px;white-space:normal;line-height:1.2}
.commercial-staff-table td{padding:6px;overflow:visible}
.commercial-staff-table th:nth-child(1),.commercial-staff-table td:nth-child(1){width:44px;min-width:44px}
.commercial-staff-table th:nth-child(2),.commercial-staff-table td:nth-child(2){width:170px;min-width:170px}
.commercial-staff-table th:nth-child(3),.commercial-staff-table td:nth-child(3){width:205px;min-width:205px}
.commercial-staff-table th:nth-child(4),.commercial-staff-table td:nth-child(4){width:62px;min-width:62px}
.commercial-staff-table th:nth-child(5),.commercial-staff-table td:nth-child(5){width:92px;min-width:92px}
.commercial-staff-table th:nth-child(6),.commercial-staff-table td:nth-child(6){width:196px;min-width:196px}
.commercial-staff-table th:nth-child(7),.commercial-staff-table td:nth-child(7){width:118px;min-width:118px}
.commercial-staff-table th:nth-child(8),.commercial-staff-table td:nth-child(8){width:108px;min-width:108px}
.commercial-staff-table th:nth-child(9),.commercial-staff-table td:nth-child(9){width:108px;min-width:108px}
.commercial-staff-table th:nth-child(10),.commercial-staff-table td:nth-child(10){width:110px;min-width:110px}
.commercial-staff-table th:nth-child(11),.commercial-staff-table td:nth-child(11),.commercial-staff-table th:nth-child(12),.commercial-staff-table td:nth-child(12),.commercial-staff-table th:nth-child(13),.commercial-staff-table td:nth-child(13){width:105px;min-width:105px}
.commercial-staff-table th:nth-child(14),.commercial-staff-table td:nth-child(14){width:100px;min-width:100px}
.commercial-staff-table th:nth-child(15),.commercial-staff-table td:nth-child(15){width:140px;min-width:140px}
.commercial-staff-table th:nth-child(16),.commercial-staff-table td:nth-child(16){width:126px;min-width:126px}
.commercial-staff-table .commercial-inline-control{box-sizing:border-box;width:100%;min-width:0;min-height:32px;height:32px;padding:5px 6px;font-size:11px;line-height:1.2}
.commercial-staff-table .commercial-inline-role{min-width:0;width:100%;gap:4px}
.commercial-staff-table .commercial-inline-times{grid-template-columns:repeat(2,minmax(86px,1fr));gap:4px;min-width:176px}
.commercial-staff-table input[type="time"].commercial-inline-control{min-width:86px;padding-left:4px;padding-right:3px;font-size:11px}
.commercial-staff-table .commercial-table-actions{gap:3px}
.commercial-staff-table .commercial-table-actions .btn{min-height:28px;padding:4px 6px;font-size:10px}
@media(max-width:760px){.commercial-staff-table{width:1894px;min-width:1894px}.commercial-staff-table .commercial-inline-control{min-height:32px;height:32px;font-size:11px}}

/* Revisão 7: grade compacta para telas largas e edição sem campos empilhados à toa. */
.commercial-staff-table{width:100%;min-width:1440px;max-width:100%;table-layout:fixed;font-size:11px}
.commercial-staff-table th{padding:6px 4px;font-size:10px;line-height:1.15;text-align:center;white-space:normal}
.commercial-staff-table td{padding:4px 3px;white-space:normal;overflow-wrap:anywhere;line-height:1.2;vertical-align:middle}
.commercial-staff-table th,.commercial-staff-table td{min-width:0!important}
.commercial-staff-table th:nth-child(1),.commercial-staff-table td:nth-child(1){width:38px;text-align:center}
.commercial-staff-table th:nth-child(2),.commercial-staff-table td:nth-child(2){width:112px}
.commercial-staff-table th:nth-child(3),.commercial-staff-table td:nth-child(3){width:150px}
.commercial-staff-table th:nth-child(4),.commercial-staff-table td:nth-child(4){width:44px;text-align:center}
.commercial-staff-table th:nth-child(5),.commercial-staff-table td:nth-child(5){width:66px}
.commercial-staff-table th:nth-child(6),.commercial-staff-table td:nth-child(6){width:138px}
.commercial-staff-table th:nth-child(7),.commercial-staff-table td:nth-child(7){width:76px}
.commercial-staff-table th:nth-child(8),.commercial-staff-table td:nth-child(8){width:82px}
.commercial-staff-table th:nth-child(9),.commercial-staff-table td:nth-child(9){width:58px}
.commercial-staff-table th:nth-child(10),.commercial-staff-table td:nth-child(10){width:82px}
.commercial-staff-table th:nth-child(11),.commercial-staff-table td:nth-child(11){width:76px}
.commercial-staff-table th:nth-child(12),.commercial-staff-table td:nth-child(12),.commercial-staff-table th:nth-child(13),.commercial-staff-table td:nth-child(13){width:82px}
.commercial-staff-table th:nth-child(14),.commercial-staff-table td:nth-child(14){width:65px}
.commercial-staff-table th:nth-child(15),.commercial-staff-table td:nth-child(15){width:100px}
.commercial-staff-table th:nth-child(16),.commercial-staff-table td:nth-child(16){width:112px}
.commercial-staff-table .commercial-inline-control{box-sizing:border-box;width:100%;min-width:0;min-height:28px;height:28px;padding:3px 4px;font-size:10px;line-height:1.15}
.commercial-staff-table .commercial-inline-role{width:100%;min-width:0;gap:3px}
.commercial-staff-table .commercial-inline-other-role{width:100%;min-width:0}
.commercial-staff-table .commercial-inline-times{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;min-width:0}
.commercial-staff-table input[type="time"].commercial-inline-control{min-width:0;padding:2px;font-size:10px}
.commercial-staff-table .commercial-table-actions{gap:2px;flex-wrap:wrap;justify-content:center}
.commercial-staff-table .commercial-table-actions .btn{min-height:25px;padding:3px 4px;font-size:9px}
@media(max-width:760px){.commercial-staff-table{width:1440px;min-width:1440px;max-width:none}.commercial-staff-table .commercial-inline-control{min-height:28px;height:28px;font-size:10px}}

