/* Opt-in content styles for pixels, notes, knowledge and executive summary. */
:is(.settings-refined-pixels,.settings-refined-knowledge) [data-settings-item][hidden],:is(.settings-refined-pixels,.settings-refined-knowledge) [data-catalog-empty][hidden] { display:none!important; }
:is(.settings-refined-pixels,.settings-refined-knowledge) [data-settings-catalog] { min-width:0; }
:is(.settings-refined-pixels,.settings-refined-knowledge) .settings-search { flex:1 1 280px; max-width:430px; }
:is(.settings-refined-pixels,.settings-refined-knowledge) .settings-list-footer { margin:0; }
.settings-refined-pixels .settings-pixels-table table { width:100%; table-layout:fixed; }
.settings-refined-pixels .settings-pixels-table th { padding:12px 14px; font-size:11px; letter-spacing:.035em; background:var(--settings-soft); }
.settings-refined-pixels .settings-pixels-table td { padding:17px 14px; font-size:13px; vertical-align:top; overflow-wrap:anywhere; }
.settings-refined-pixels .settings-pixels-table th:first-child { width:18%; }
.settings-refined-pixels .settings-pixels-table th:nth-child(3) { width:22%; }
.settings-refined-pixels .settings-pixels-table th:nth-child(6) { width:78px; }
.settings-refined-pixels .settings-pixels-table th:nth-child(7) { width:95px; }
.settings-refined-pixels .settings-pixels-table th:last-child { width:200px; }
.settings-refined-pixels .settings-pixels-list:not(.settings-catalog-show-ids) th:nth-child(2),.settings-refined-pixels .settings-pixels-list:not(.settings-catalog-show-ids) td:nth-child(2) { display:none; }
.settings-refined-pixels .settings-pixels-table .wz-btn-icon { width:30px; height:32px; padding:6px; }
.settings-refined-pixels .settings-pixels-table td:nth-child(6) span { border:0; background:var(--settings-soft); color:var(--settings-text); padding:3px 9px; font-size:12px; }
.settings-refined-notes .internal-notes-shell { gap:0; }
.settings-refined-notes .internal-notes-surface { border:1px solid var(--settings-border); border-radius:14px; background:var(--settings-surface); box-shadow:none; }
.settings-refined-notes .settings-notes-panel { overflow:hidden; }
.settings-refined-notes .settings-notes-filters { padding:20px; background:var(--settings-surface); }
.settings-refined-notes .settings-notes-filters form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px 20px; }
.settings-refined-notes .settings-notes-filters form > label { grid-column:1/-1; background:var(--settings-soft); }
.settings-refined-notes .settings-notes-filters form > div:nth-child(2) { grid-template-columns:minmax(150px,1.3fr) repeat(2,minmax(145px,1fr)) 90px; }
.settings-refined-notes .settings-notes-filters form > div:last-child { border:0; padding:0; align-self:end; }
.settings-refined-notes .internal-notes-field { border-radius:8px; border-color:var(--settings-border); background:var(--settings-surface); color:var(--settings-text); min-width:0; }
.settings-refined-notes .settings-notes-results > div:first-child { border-top:1px solid var(--settings-border); background:var(--settings-soft); }
.settings-refined-notes #in-container { padding:0; }
.settings-refined-notes #in-container > div { gap:0; }
.settings-refined-notes .in-note-card { border:0; border-radius:0; box-shadow:none; background:transparent; border-bottom:1px solid var(--settings-border); padding:20px; }
.settings-refined-notes .in-note-card:last-child { border-bottom:0; }
.settings-refined-notes .in-note-body { font-size:13px; line-height:1.65; }
.settings-refined-notes .in-group { border:0; border-radius:0; border-bottom:1px solid var(--settings-border); }
.settings-refined-notes .in-group:last-child { border-bottom:0; }
.settings-refined-notes .in-group-head { padding:16px 20px; }
.settings-refined-notes .in-group-body { padding:0 0 0 24px; }
.settings-refined-notes .in-seg { border-radius:8px; }
.settings-refined-notes .in-seg button { border-radius:5px; }
.settings-refined-knowledge .settings-document-row { gap:20px; padding:18px 20px; }
.settings-refined-knowledge .settings-document-row > div:last-child { flex-shrink:0; }
.settings-refined-knowledge .settings-document-row > div:first-child { gap:14px; }
.settings-refined-knowledge .settings-document-row .font-medium.truncate { font-size:14px; white-space:normal; overflow-wrap:anywhere; }
.settings-refined-knowledge .settings-document-row .w-10.h-10 { width:34px; height:34px; border-radius:9px; background:var(--settings-soft); }
.settings-refined-knowledge .settings-document-row .w-10.h-10 svg { color:var(--settings-muted); width:18px; height:18px; }
.settings-refined-knowledge .settings-document-row input.peer:checked + div { background:var(--primary-color,#84cc16); }
.settings-refined-knowledge .wz-modal-panel { max-height:calc(100dvh - 32px); display:flex; flex-direction:column; }
.settings-refined-knowledge .wz-modal-body { min-height:0; overflow-y:auto; }
.settings-refined-knowledge .wz-modal-header,.settings-refined-knowledge .wz-modal-footer { flex-shrink:0; }
.settings-refined-knowledge .upload-tab { flex:1; padding:10px; white-space:normal; }
.settings-refined-executive .settings-executive-status { display:inline-flex; align-items:center; gap:8px; }
.settings-refined-executive .settings-executive-status i { width:7px; height:7px; border-radius:50%; background:#94a3b8; }
.settings-refined-executive .settings-executive-status i.is-on { background:#10b981; }
.settings-refined-executive .settings-executive-form { padding:24px; }
.settings-refined-executive .settings-form-heading h2,.settings-refined-executive .settings-executive-sections h2,.settings-refined-executive .settings-executive-history h2 { font-size:16px; font-weight:600; letter-spacing:-.2px; }
.settings-refined-executive .settings-form-heading p,.settings-refined-executive .settings-executive-sections > p { margin-top:6px; color:var(--settings-muted); font-size:13px; line-height:1.6; }
.settings-refined-executive .settings-executive-enable { display:flex; align-items:center; gap:10px; padding:16px 0; margin:8px 0 22px; border-bottom:1px solid var(--settings-border); }
.settings-refined-executive .settings-executive-enable input { flex-shrink:0; }
.settings-refined-executive .settings-executive-enable label { font-weight:500; font-size:13px; }
.settings-refined-executive .settings-executive-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 32px; }
.settings-refined-executive .settings-executive-grid > div { min-width:0; }
.settings-refined-executive .settings-executive-grid label { font-size:13px; margin-bottom:8px; }
.settings-refined-executive .settings-executive-grid :is(select,textarea,input[type=time]) { min-height:42px; min-width:0; background:var(--settings-surface); border-color:var(--settings-border); color:var(--settings-text); }
.settings-refined-executive .settings-executive-grid p { line-height:1.6; }
.settings-refined-executive .settings-field-help { font-size:12px; line-height:1.6; margin-top:8px; color:var(--settings-muted); }
.settings-refined-executive .settings-field-help summary { cursor:pointer; }
.settings-refined-executive .settings-weekdays { display:flex; flex-wrap:wrap; gap:8px; }
.settings-refined-executive .settings-weekdays label { margin:0; border:1px solid var(--settings-border); padding:10px; border-radius:8px; font-size:12px; background:var(--settings-surface); cursor:pointer; }
.settings-refined-executive .settings-weekdays label:has(:checked) { background:var(--settings-soft); border-color:var(--primary-color,#84cc16); }
.settings-refined-executive .settings-executive-sections { border-top:1px solid var(--settings-border); margin-top:28px; padding-top:24px; }
.settings-refined-executive .settings-executive-sections label { padding:12px; font-size:13px; background:var(--settings-surface); border-color:var(--settings-border); cursor:pointer; }
.settings-refined-executive .settings-executive-sections input { flex-shrink:0; }
.settings-refined-executive input[type=checkbox] { accent-color:var(--primary-color,#84cc16); }
.settings-refined-executive .settings-executive-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; border-top:1px solid var(--settings-border); padding-top:20px; margin-top:24px; }
.settings-refined-executive #es-test-result:empty { display:none; }
.settings-refined-executive .settings-executive-history { margin-top:24px; padding:24px; }
.settings-refined-executive .settings-executive-history :is(td,th) { font-size:12px; padding:12px; overflow-wrap:anywhere; }
.settings-refined-executive .settings-executive-history th { background:var(--settings-soft); }
@media(max-width:1400px) {
 .settings-refined-notes .settings-notes-filters form { grid-template-columns:minmax(0,1fr); }
 .settings-refined-notes .settings-notes-filters form > div:nth-child(2) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .settings-refined-pixels .settings-pixels-table table,.settings-refined-pixels .settings-pixels-table tbody { display:block; width:100%; }
 .settings-refined-pixels .settings-pixels-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .settings-refined-pixels .settings-pixels-table tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:20px; }
 .settings-refined-pixels .settings-pixels-table td { display:block; padding:0; min-width:0; text-align:left; }
 .settings-refined-pixels .settings-pixels-table td::before { content:attr(data-label); display:block; font-size:11px; color:var(--settings-muted); margin-bottom:6px; }
 .settings-refined-pixels .settings-pixels-table td:first-child { grid-column:1/-1; }
 .settings-refined-pixels .settings-pixels-table td:first-child::before { display:none; }
 .settings-refined-pixels .settings-pixels-table td:nth-child(3) { grid-column:1/-1; }
 .settings-refined-pixels .settings-pixels-table td:last-child { grid-column:1/-1; }
 .settings-refined-pixels .settings-pixels-table td:last-child::before { display:none; }
 .settings-refined-pixels .settings-pixels-table td:nth-child(3) > div { max-width:none; }
}
@media(max-width:640px) {
 :is(.settings-refined-pixels,.settings-refined-knowledge) .settings-search { max-width:none; flex-basis:100%; }
 .settings-refined-pixels .settings-pixels-table tr { grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px 14px; }
 .settings-refined-pixels .settings-pixels-table .wz-btn-icon { width:36px; height:36px; }
 .settings-refined-notes .settings-notes-filters { padding:14px; }
 .settings-refined-notes .settings-notes-filters form > div:nth-child(2) { grid-template-columns:minmax(0,1fr); }
 .settings-refined-notes .in-note-card { padding:16px 14px; }
 .settings-refined-notes .in-group-head { padding:14px; }
 .settings-refined-notes .in-group-body { padding-left:10px; }
 .settings-refined-knowledge .settings-document-row { align-items:flex-start; flex-direction:column; gap:12px; padding:16px 14px; }
 .settings-refined-knowledge .settings-document-row > div { width:100%; }
 .settings-refined-knowledge .settings-document-row > div:last-child { justify-content:flex-end; }
 .settings-refined-executive .settings-executive-form,.settings-refined-executive .settings-executive-history { padding:18px 14px; }
 .settings-refined-executive .settings-executive-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
 .settings-refined-executive .settings-executive-actions { align-items:stretch; flex-direction:column; }
 .settings-refined-executive .settings-executive-actions button { justify-content:center; }
 .settings-refined-executive .settings-executive-history table { min-width:480px; }
}
/* Text-button padding must not squeeze the compact tutorial icon. */
:is(.settings-refined-pixels,.settings-refined-notes,.settings-refined-knowledge,.settings-refined-executive) #settings-content-help > a { padding:0; min-width:26px; width:26px; }
:is(.settings-refined-pixels,.settings-refined-notes,.settings-refined-knowledge,.settings-refined-executive) #settings-content-help svg { flex-shrink:0; }
.settings-refined-knowledge .settings-document-row input.peer:checked + div { background:var(--primary-color,#84cc16)!important; }
@media(max-width:640px) {
 .settings-refined-executive .settings-executive-history table,.settings-refined-executive .settings-executive-history tbody { display:block; min-width:0; width:100%; }
 .settings-refined-executive .settings-executive-history thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .settings-refined-executive .settings-executive-history tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:16px 0; }
 .settings-refined-executive .settings-executive-history td { display:block; padding:0; min-width:0; font-size:12px; }
 .settings-refined-executive .settings-executive-history td::before { display:block; margin-bottom:5px; color:var(--settings-muted); font-size:11px; }
 .settings-refined-executive .settings-executive-history td:nth-child(1)::before { content:'Data'; }
 .settings-refined-executive .settings-executive-history td:nth-child(2)::before { content:'Tipo'; }
 .settings-refined-executive .settings-executive-history td:nth-child(3)::before { content:'Status'; }
 .settings-refined-executive .settings-executive-history td:nth-child(4)::before { content:'Detalhe'; }
}
/* Keep visually hidden mobile table headings inside their own scroll context. */
.settings-refined-pixels .settings-pixels-table table,.settings-refined-executive .settings-executive-history table { position:relative; }
@media(max-width:1400px) { .settings-refined-pixels .settings-pixels-table thead { top:0; left:0; } }
@media(max-width:640px) { .settings-refined-executive .settings-executive-history thead { top:0; left:0; } }
