.cmq-front{max-width:100%;overflow-x:auto}.cmq-front-card,.cmq-supplier-box,.cmq-alert{border:1px solid #ddd;border-radius:8px;padding:14px;margin:12px 0;background:#fff}.cmq-front-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.cmq-button{display:inline-block;border:0;border-radius:6px;background:#2271b1;color:#fff!important;text-decoration:none;padding:10px 14px;cursor:pointer;font-weight:600}.cmq-button.secondary{background:#646970}.cmq-form-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}.cmq-form-table th,.cmq-form-table td{border:1px solid #ddd;padding:8px;vertical-align:top}.cmq-form-table th{background:#f5f5f5;text-align:left}.cmq-form-table input{width:100%;box-sizing:border-box}.cmq-actions{display:flex;gap:10px;flex-wrap:wrap}.cmq-alert{background:#e7f3ff;border-color:#9ec5fe}.cmq-alert-warning{background:#fff3cd;border-color:#ffecb5}.cmq-comparison-table td:nth-child(4){white-space:nowrap}

.cmq-brand{margin:0 0 22px;background:var(--cmq-primary,#1196c4);color:#fff;border-radius:0;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.10)}
.cmq-brand-inner{display:flex;align-items:center;gap:18px;padding:18px 28px;min-height:92px}.cmq-brand-logo{background:rgba(255,255,255,.96);border-radius:4px;padding:6px;line-height:0;flex:0 0 auto}.cmq-brand-logo img{width:auto;height:74px;max-width:115px;object-fit:contain}.cmq-brand-text h1{margin:0;color:#fff;font-size:26px;line-height:1.15;font-weight:700}.cmq-brand-subtitle{margin:4px 0 0;color:#fff;font-size:17px;font-weight:600}.cmq-brand-note{background:#fff;color:#1d2327;padding:14px 24px;border:1px solid #dcdcde;border-top:0}.cmq-brand-note p{margin:4px 0}.cmq-brand-support{font-weight:600;color:#333}.cmq-supplier-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.cmq-supplier-box p{margin:0}
@media (max-width:700px){.cmq-brand-inner{padding:14px;align-items:flex-start}.cmq-brand-logo img{height:56px}.cmq-brand-text h1{font-size:20px}.cmq-brand-subtitle{font-size:15px}.cmq-brand-note{padding:12px 14px}}

/* Página direta de teste/produção da área de cotação, sem depender do template do tema. */
.cmq-direct-page{margin:0;background:#f4f6f8;color:#1d2327;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.cmq-direct-topbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 22px;background:#1d2327;color:#fff}.cmq-direct-topbar a{color:#fff;text-decoration:none;font-weight:600}.cmq-direct-topbar .cmq-current-user{font-weight:600}.cmq-direct-wrapper{width:min(1380px,calc(100% - 32px));margin:22px auto 40px}.cmq-direct-wrapper .cmq-front{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:18px}.cmq-direct-wrapper .cmq-brand{border-radius:8px}
@media (max-width:700px){.cmq-direct-topbar{padding:10px 14px}.cmq-direct-wrapper{width:calc(100% - 20px);margin:10px auto 24px}}

/* Dados do fornecedor dentro da cotação. */
.cmq-response-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:14px 0 18px;padding:14px;border:1px solid #dcdcde;border-radius:8px;background:#f8fafc}.cmq-response-meta label{display:block;font-weight:600}.cmq-response-meta span{display:block;margin-bottom:6px}.cmq-response-meta input{width:100%;box-sizing:border-box;padding:9px;border:1px solid #8c8f94;border-radius:4px;background:#fff}.cmq-response-meta input[readonly]{background:#f0f0f1;color:#50575e}.cmq-muted{color:#646970;font-weight:400;font-size:.92em}.cmq-form-table input:disabled{background:#f0f0f1;color:#646970}

.cmq-money{text-align:right}


.cmq-success-card{text-align:center;max-width:780px;margin:0 auto}.cmq-success-card h2{margin-top:0;color:#1d2327}.cmq-success-card p{font-size:16px}.cmq-success-card .cmq-actions{justify-content:center;margin-top:18px}

/* Relatórios administrativos na área pública de cotação. */
.cmq-front-admin-actions{border:1px solid #dcdcde;border-radius:8px;padding:14px;margin:12px 0 18px;background:#f8fafc}.cmq-front-admin-actions h3{margin-top:0}.cmq-front-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end;margin:14px 0 18px;padding:14px;border:1px solid #dcdcde;border-radius:8px;background:#f8fafc}.cmq-front-filter label{font-weight:600}.cmq-front-filter select,.cmq-front-filter input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #8c8f94;border-radius:4px;background:#fff}.cmq-front-filter input[type=number]{max-width:110px}.cmq-admin-report .cmq-report-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}.cmq-admin-report .cmq-report-table th,.cmq-admin-report .cmq-report-table td{border:1px solid #ddd;padding:8px;vertical-align:top}.cmq-admin-report .cmq-report-table th{background:#f5f5f5;text-align:left}.cmq-admin-report .cmq-best-row{background:#eef9ef}.cmq-admin-report .cmq-actions{margin:12px 0 18px}

/* Administração de cotações pela área direta. */
.cmq-admin-manage .cmq-report-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}.cmq-admin-manage .cmq-report-table th,.cmq-admin-manage .cmq-report-table td{border:1px solid #ddd;padding:8px;vertical-align:top}.cmq-admin-manage .cmq-report-table th{background:#f5f5f5;text-align:left}.cmq-front-admin-create{border:1px solid #dcdcde;border-radius:8px;padding:14px;margin:16px 0;background:#fff}.cmq-front-admin-create h3{margin-top:0}.cmq-create-quote-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cmq-category-checks{grid-column:1/-1}.cmq-category-checks label{display:inline-block;margin:7px 14px 4px 0;font-weight:400}.cmq-category-checks input{width:auto;margin-right:4px}.cmq-status{display:inline-block;border-radius:999px;padding:4px 9px;font-weight:600}.cmq-status-open{background:#d1e7dd;color:#0f5132}.cmq-status-closed{background:#f8d7da;color:#842029}

/* Edição de categorias e produtos na área direta. */
.cmq-admin-products .cmq-products-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;background:#fff}.cmq-admin-products .cmq-report-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}.cmq-admin-products .cmq-report-table th,.cmq-admin-products .cmq-report-table td{border:1px solid #ddd;padding:8px;vertical-align:top}.cmq-admin-products .cmq-report-table th{background:#f5f5f5;text-align:left}.cmq-category-pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.cmq-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid #c3c4c7;border-radius:999px;background:#fff;padding:7px 11px;text-decoration:none;color:#1d2327}.cmq-pill.active{background:#2271b1;color:#fff;border-color:#2271b1}.cmq-pill span{font-size:.85em;opacity:.85}.cmq-product-row-form{display:grid;grid-template-columns:minmax(160px,220px) 1fr auto;gap:8px;align-items:center;margin-bottom:8px}.cmq-product-row-form input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #8c8f94;border-radius:4px}.cmq-product-delete-form{display:inline-block}.cmq-button.danger{background:#b32d2e}.cmq-products-table td{background:#fff}@media (max-width:760px){.cmq-product-row-form{grid-template-columns:1fr}.cmq-product-delete-form{display:block;margin-top:6px}}

/* Seleção de itens na criação de COTAÇÃO. */
.cmq-product-select-panel{grid-column:1/-1;border:1px solid #dcdcde;border-radius:8px;background:#fff;padding:14px;margin:4px 0 8px}.cmq-product-select-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.cmq-product-select-head p{margin:4px 0 0}.cmq-product-select-actions{display:flex;gap:8px;flex-wrap:wrap}.cmq-product-filter-label{display:block;margin:12px 0 8px}.cmq-product-filter-label input{max-width:520px}.cmq-product-selected-count{display:inline-block;background:#f0f6fc;border:1px solid #cfe2ff;border-radius:999px;padding:6px 10px;margin:6px 0 10px;color:#1d2327}.cmq-product-select-scroll{max-height:430px;overflow:auto;border:1px solid #dcdcde;border-radius:8px;background:#fafafa;padding:8px}.cmq-product-category{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin:8px 0}.cmq-product-category summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f6f7f7;border-radius:8px;font-weight:700}.cmq-product-category[open] summary{border-bottom:1px solid #dcdcde;border-radius:8px 8px 0 0}.cmq-product-category-title small{font-weight:400;color:#646970;margin-left:6px}.cmq-product-category-actions{display:flex;gap:6px;flex-wrap:wrap}.cmq-mini-button{border:1px solid #2271b1;border-radius:5px;background:#fff;color:#2271b1;padding:4px 8px;cursor:pointer;font-weight:600}.cmq-product-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:4px 14px;padding:10px 12px}.cmq-product-list label{display:flex;align-items:flex-start;gap:7px;padding:5px;border-radius:4px;font-weight:400}.cmq-product-list label:hover{background:#f0f6fc}.cmq-product-list input{width:auto;margin-top:2px;flex:0 0 auto}.cmq-product-list span{line-height:1.3}.cmq-create-quote-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cmq-supplier-create-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cmq-admin-suppliers .cmq-report-table,.cmq-admin-suppliers .cmq-suppliers-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}.cmq-admin-suppliers .cmq-report-table th,.cmq-admin-suppliers .cmq-report-table td{border:1px solid #ddd;padding:8px;vertical-align:top}.cmq-admin-suppliers .cmq-report-table th{background:#f5f5f5;text-align:left}
@media (max-width:760px){.cmq-product-select-head{display:block}.cmq-product-select-actions{margin-top:10px}.cmq-product-select-scroll{max-height:360px}.cmq-product-category summary{align-items:flex-start;flex-direction:column}.cmq-product-list{grid-template-columns:1fr}}
.cmq-inline-fields{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cmq-inline-fields input{max-width:95px}.cmq-product-list label{align-items:center;justify-content:space-between;gap:10px}.cmq-product-main{display:flex;align-items:flex-start;gap:7px;min-width:0;flex:1}.cmq-product-main input{width:auto;margin-top:2px;flex:0 0 auto}.cmq-product-qty{display:flex;align-items:center;gap:6px;flex:0 0 auto}.cmq-product-qty input{width:70px;margin:0}.cmq-product-qty select{width:92px;margin:0}@media (max-width:760px){.cmq-product-list label{align-items:flex-start;flex-direction:column}.cmq-product-qty{margin-left:25px;flex-wrap:wrap}}
