.goals-view{padding:30px 0 70px;min-height:80vh;font-size:16px}.goals-view [hidden],.goals-create [hidden],[data-profitx-role="operador"] [hidden]{display:none!important}.goals-view h1{font:700 clamp(26px,3vw,36px)/1.2 'Space Grotesk',sans-serif;margin:8px 0}.goals-view h2{font:700 25px/1.3 'Space Grotesk',sans-serif;margin:8px 0}.goals-view p{color:var(--muted);line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.goals-eyebrow{font-size:13px;font-weight:700;color:var(--purple-light);letter-spacing:1px}.goals-head,.goals-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.goals-actions{justify-content:flex-start}.goals-view button,.goals-view select,.goals-create select{font:600 14px/1.4 'DM Sans',sans-serif;padding:11px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface-solid);color:var(--text);cursor:pointer}.goals-view button:hover{border-color:var(--purple-light)}.goals-view button:disabled{opacity:.5;cursor:not-allowed}.goals-view .goal-primary{background:#ce202c;border-color:#ce202c;color:#fff}.goals-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.goals-summary article,.goal-card,.goal-detail,.goals-team{background:var(--surface-solid);border:1px solid var(--line);border-radius:14px;padding:20px}.goals-summary span{font-size:14px;color:var(--muted)}.goals-summary strong{display:block;margin-top:10px;font:700 30px/1.2 'Space Grotesk',sans-serif}.goals-filter{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:14px}.goal-card{display:flex;align-items:center;gap:20px;margin:12px 0}.goal-card>div{flex:1;min-width:0}.goal-card strong{font-size:17px;overflow-wrap:anywhere}.goal-card p{font-size:14px;margin:7px 0 0}.goal-status{font-size:13px;padding:6px 10px;border-radius:7px;white-space:nowrap;background:var(--surface-2);color:var(--text)}.goal-status[data-status="aprovada"]{color:#26b891}.goal-status[data-status="devolvida"]{color:var(--danger)}.goal-status[data-status="em_conferencia"]{color:var(--cyan)}.goal-detail{margin-top:24px;scroll-margin-top:25px}.goal-detail label,.goals-team label{display:block;font-size:14px;margin:18px 0}.goal-detail textarea,.goals-team input{width:100%;display:block;margin-top:8px;padding:12px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px;font:16px/1.5 'DM Sans',sans-serif}.goal-table-scroll{overflow:auto;max-height:65vh;border:1px solid var(--line);border-radius:10px;margin:18px 0}.goal-table-scroll table{border-collapse:collapse;width:100%}.goal-table-scroll th,.goal-table-scroll td{padding:8px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.goal-table-scroll thead th{position:sticky;top:0;background:var(--surface-2);z-index:1;white-space:nowrap}.goal-table-scroll tbody th{color:var(--muted)}.goal-table-scroll input,.goal-table-scroll select{width:155px;min-height:42px;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text);font:14px/1.4 'DM Sans',sans-serif}.goal-table-scroll input:disabled,.goal-table-scroll select:disabled{opacity:1;color:var(--muted);background:transparent}.goal-table-scroll input[type="number"]{width:125px}.goal-totals{padding:14px;border-radius:8px;background:var(--bg-soft);font-size:14px}.goals-team{margin-top:28px}.goals-team summary{cursor:pointer;font-weight:700}.goals-empty{padding:30px 0}.goal-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.goals-create select{width:100%;display:block;margin-top:8px}.goals-view :focus-visible,.goals-create :focus-visible{outline:2px solid var(--purple-light);outline-offset:3px}#goal-reason:empty{display:none}#goal-reason{color:var(--danger)}#goals-message,#goal-feedback{min-height:24px}#assign-generated-list{margin:12px 0}body[data-profitx-role="operador"] #inicio,body[data-profitx-role="operador"] #cooperacoes,body[data-profitx-role="operador"] #redes,body[data-profitx-role="operador"] #pix,body[data-profitx-role="operador"] #usuarios,body[data-profitx-role="operador"] #list-panel{display:none!important}
@media(max-width:700px){.goals-view{padding-top:60px}.goals-summary{gap:8px}.goals-summary article{padding:12px}.goals-summary span{font-size:14px}.goal-card{flex-wrap:wrap;padding:16px;gap:12px}.goal-card>div{flex-basis:100%}.goal-card>button{margin-left:auto}.goal-detail{padding:14px}.goal-dates{grid-template-columns:1fr}.goals-actions button{flex:1}.goals-head>div{width:100%}.goal-detail h2{font-size:22px}}

/* Match the operation spreadsheet for both the operator and the reviewer. */
.goal-detail{padding:18px;background:#0e1119}
.goal-detail .goals-eyebrow{display:block;color:#ff554b;font-size:10px;letter-spacing:1.4px}
.goal-detail .goal-status{display:inline-block;margin:8px 0 0;font-size:11px}
.goal-detail h2{font-size:22px;margin:7px 0}
#goal-sheet-meta{font-size:12px;margin:0 0 12px}
#goal-description,#goal-target,#goal-reason{font-size:12px;margin:7px 0}
.goal-detail .sheet-toolbar{margin:14px 0 10px}
.goal-detail .sheet-toolbar label{margin:0;width:min(480px,65%)}
.goal-detail .sheet-toolbar input,.goal-detail .sheet-toolbar button{height:40px}
.goal-detail .goal-table-scroll{max-height:72vh;margin:10px 0 18px;border-radius:8px;background:#090d14}
.goal-detail .sheet-table{table-layout:fixed;min-width:1320px;width:100%}
.goal-detail .sheet-table th{padding:9px 5px;background:#111c31;color:#8496b4;font-size:10px;white-space:normal;line-height:1.15}
.goal-detail .sheet-table td{min-width:0;padding:4px 5px;border-bottom:1px solid rgba(255,255,255,.045);font-size:11px}
.goal-detail .sheet-table input,.goal-detail .sheet-table select{box-sizing:border-box;width:100%;min-width:0;min-height:0;height:34px;padding:0 7px;border:1px solid #172640;border-radius:8px;background:#080d18;color:#eef1f6;font:11px 'DM Sans',sans-serif}
.goal-detail .sheet-table input:disabled,.goal-detail .sheet-table select:disabled{opacity:1;color:#b6c0d2}
.goal-detail .sheet-table input[readonly]{color:#b6c0d2}
.goal-detail .sheet-money{gap:3px}.goal-detail .sheet-money span{font-size:9px}.goal-detail .sheet-money input{min-width:0}
.goal-detail .sheet-table .valid-bet-cell input{border-color:rgba(0,199,147,.32)}
.goal-detail .sheet-table .pix-key-select{border-color:rgba(45,212,191,.22);background:#081117;color:#bdece3;font-size:10px}
.goal-detail .row-profit{font-size:11px}
.goal-detail .sheet-table .status-ready{border-color:#694b1e;background:#40321d;color:#ffc02b}
.goal-detail .sheet-table .status-withdrawn{border-color:#0c5e47;background:#123e35;color:#35dc9c}
.goal-detail .sheet-table .status-not-withdrawn{border-color:#67352a;background:#42251f;color:#ff8a2c}
.goal-detail .sheet-table .status-blocked{border-color:#642837;background:#411925;color:#ff6975}
.goal-detail .sheet-table .status-cancelled{color:#7c879a;text-decoration:line-through}
.goal-detail .sheet-table thead th:nth-child(1){width:3%}
.goal-detail .sheet-table thead th:nth-child(2){width:8%}
.goal-detail .sheet-table thead th:nth-child(3),.goal-detail .sheet-table thead th:nth-child(4){width:7%}
.goal-detail .sheet-table thead th:nth-child(5){width:10%}
.goal-detail .sheet-table thead th:nth-child(6),.goal-detail .sheet-table thead th:nth-child(7){width:7%}
.goal-detail .sheet-table thead th:nth-child(n+8):nth-child(-n+11){width:6%}
.goal-detail .sheet-table thead th:nth-child(12){width:10%}
.goal-detail .sheet-table thead th:nth-child(13){width:17%}
.goal-detail .sheet-table tfoot th{top:auto;bottom:0;background:#0d1523;color:#dfe7f5;text-align:center;white-space:nowrap}
.goal-detail .sheet-table tfoot th:first-child{text-align:right}
.goal-detail #goal-total-apostas_validas{background:#00a851;color:#fff}
.goal-detail #goal-total-lucro{background:#087a54;color:#fff}
.goal-detail #goal-total-lucro.negative{background:#8f2634}
#goal-column-options{display:flex;flex-wrap:wrap;gap:8px 16px;border:1px solid var(--line);border-radius:8px;padding:12px}
#goal-column-options label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}
#goal-pix-message{font-size:12px}#goal-pix-message:empty{display:none}
@media(min-width:1600px){.goal-detail .sheet-table{min-width:0}}

.goal-detail input[type=number]{appearance:textfield;-moz-appearance:textfield}.goal-detail input[type=number]::-webkit-inner-spin-button,.goal-detail input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}


.goal-notifications{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid);color:var(--text)}.goal-notifications summary{cursor:pointer;font-weight:700}.goal-notifications article{padding:12px 0;border-bottom:1px solid var(--line)}.goal-notifications article p{margin:0 0 6px}.goal-notifications button{margin:8px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid);color:var(--text);cursor:pointer}.goals-create select[multiple]{height:auto;min-height:110px}.goals-create small{display:block;margin-top:6px}

.management-hub{padding:28px 0 64px}.management-hub [hidden],.management-history-dialog [hidden]{display:none!important}.management-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.management-heading h1{font-size:28px}.management-heading small{color:var(--purple-light);font-weight:700}.management-hub p,.management-history-dialog p{color:var(--muted);line-height:1.55}.management-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.management-hub button,.management-history-dialog button,.management-hub input,.management-hub select{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid);color:var(--text);font:inherit}.management-hub button,.management-history-dialog button{cursor:pointer}.management-tabs .is-active{background:#ce202c;color:#fff}.management-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.management-metric,.management-insight,.management-history-event{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid);margin:12px 0}.management-metric span{display:block;color:var(--muted);font-size:13px}.management-metric strong{display:block;font-size:24px;margin-top:10px}.management-table-scroll{overflow:auto;margin:16px 0}.management-hub table,.management-history-dialog table{border-collapse:collapse;width:100%;font-size:13px}.management-hub th,.management-hub td,.management-history-dialog th,.management-history-dialog td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.management-hub td button{margin:3px;white-space:nowrap}.management-filters,#management-cost-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.management-hub label{display:block;font-size:14px}.management-hub label input,.management-hub label select{display:block;margin-top:8px;max-width:100%}.management-chart-row{display:grid;grid-template-columns:110px 1fr 140px;gap:12px;align-items:center;margin:12px 0}.management-chart-row strong{text-align:right;font-size:13px}.management-chart-bar{height:16px;background:var(--surface-2);border-radius:4px}.management-chart-bar i{height:100%;display:block;background:#26b891;border-radius:4px}.management-chart-bar i.negative{background:#ce202c}.management-history-dialog{width:min(1000px,94vw);max-height:88vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--text)}.management-history-dialog::backdrop{background:#000a}#management-history-dialog-close{float:right}button:disabled{cursor:wait}.management-hub :focus-visible,.management-history-dialog :focus-visible{outline:2px solid var(--purple-light);outline-offset:3px}@media(max-width:700px){.management-metrics{grid-template-columns:1fr 1fr}.management-heading{flex-wrap:wrap}.management-chart-row{grid-template-columns:85px 1fr 110px;gap:7px;font-size:12px}.management-metric strong{font-size:20px}.management-history-dialog{padding:14px}}

.goals-view .goal-delete{color:var(--danger);border-color:var(--danger)}

.pending-alerts{margin:0 0 18px;padding:14px 18px;border:1px solid #353b4c;border-radius:12px;background:#151a25;color:#e7eaf2}.pending-alerts summary{cursor:pointer;font-weight:700}.pending-alerts button{margin:4px 8px 4px 0}.pending-alerts article{padding:12px 0;border-top:1px solid #353b4c}.pending-alerts p{color:#aeb7c9;font-size:13px}.pending-alerts details>div{max-height:420px;overflow:auto}

.pending-alerts button{border:1px solid #4a5264;border-radius:7px;padding:8px 12px;background:#252d3e;color:#f3f5fa;cursor:pointer}.pending-alerts button:hover{background:#35415a}.pending-alerts button:disabled{opacity:.6;cursor:wait}.pending-alerts button:focus-visible,.pending-alerts summary:focus-visible{outline:2px solid #e74655;outline-offset:3px}

.notification-mood{padding:12px 0}.notification-mood label{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.notification-mood select{background:#252d3e;color:#f3f5fa;border:1px solid #4a5264;border-radius:7px;padding:8px;max-width:100%}.notification-mood p{white-space:pre-line}

.goal-salary-panel{padding:16px;margin:16px 0;border:1px solid #454052;border-radius:10px;background:#171b28}.goal-salary-panel label{display:flex;flex-direction:column;gap:8px;font-weight:700}.goal-salary-panel input{max-width:360px;padding:10px;border-radius:7px;border:1px solid #51586b;color:#f4f5fa;background:#242b3b}.goal-salary-panel p{font-size:13px;color:#afb8c9}.goal-salary-panel strong{display:block;margin-top:10px}

.goal-top-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:16px 0}.goal-top-summary article{background:#171b28;border:1px solid #343d50;border-radius:10px;padding:14px}.goal-top-summary span{display:block;font-size:12px;color:#afb8c9}.goal-top-summary strong{display:block;margin-top:8px}.goal-top-summary .negative strong{color:#ff9191}.goal-checklist{padding:14px;border:1px solid #34534c;border-radius:10px;margin-bottom:16px}.goal-checklist.has-issues{border-color:#8c6635}.goal-checklist h3{margin:0 0 8px}.goal-checklist p,.goal-checklist li{font-size:13px}.goal-checklist ul{padding-left:22px}

.goal-mobile-controls{display:none}.goal-mother-tool{padding:7px 12px;border:1px solid #4c5365;border-radius:7px;background:#232b3c;color:#f4f5fa;cursor:pointer;margin:6px 0}.goal-mother{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:16px;border:1px solid #394054;border-radius:10px}.goal-mother label{min-width:0;display:flex;flex-direction:column;gap:5px}.goal-mother input{width:100%;box-sizing:border-box}
@media(max-width:700px){#goal-detail .goal-table-scroll{overflow:visible}#goal-detail .sheet-table,#goal-detail .sheet-table tbody{display:block;width:100%;min-width:0}#goal-detail .sheet-table thead,#goal-detail .sheet-table tfoot{display:none}#goal-detail .sheet-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #3b4354;border-radius:12px;margin-bottom:14px;padding:12px;background:#141923}#goal-detail .sheet-table tbody td{display:block;min-width:0;padding:0;border:none}#goal-detail .sheet-table tbody td::before{content:attr(data-label);display:block;font-size:12px;color:#aeb6c9;margin-bottom:5px}#goal-detail .sheet-table tbody td:first-child{grid-column:1/-1;font-weight:700}#goal-detail .sheet-table tbody td:first-child::before{content:'Conta';display:inline;margin-right:8px}#goal-detail .sheet-table tbody td.goal-extra-cell{display:none}#goal-detail .sheet-table tbody tr[data-expanded='true'] td.goal-extra-cell{display:block}#goal-detail .sheet-table tbody td.goal-mobile-controls{display:block;grid-column:1/-1}#goal-detail .sheet-table tbody td.goal-mobile-controls::before{display:none}#goal-detail .sheet-table input,#goal-detail .sheet-table select{width:100%;min-width:0;box-sizing:border-box}#goal-detail .sheet-table td[hidden]{display:none!important}.goal-mobile-controls button{width:100%;padding:10px;background:#252e40;color:#f4f5fa;border:1px solid #46536c;border-radius:7px}.goal-mother{grid-template-columns:1fr}}

/* Gestão com leitura simples e detalhes sob demanda. */
.management-hub [hidden]{display:none!important}.management-operator-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.management-operator-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface-solid)}.management-operator-card h2{font-size:21px;margin:0 0 12px}.management-state{display:inline-block;padding:6px 10px;border-radius:20px;background:rgba(226,184,93,.1);color:#e2b85d;font-size:13px}.management-card-actions{margin:14px 0}.management-operator-card details,.management-insight details{margin:14px 0}.management-hub summary{cursor:pointer;font-weight:600;line-height:1.6}.management-fold{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid)}.management-fold[open]>summary{margin-bottom:18px}.management-metric.is-negative strong{color:#ff6c86}.management-hub .management-insight{margin:12px 0}.management-hub .management-insight p{overflow-wrap:anywhere}.management-history-event h3{font-size:16px}.management-history-event details{margin-top:10px}.management-operator-card .management-metric{padding:14px 0;background:transparent;border:0}.management-operator-card .management-metric strong{font-size:24px}#management-intro{color:var(--muted);line-height:1.6}#management-analysis-summary{font-weight:600}@media(max-width:700px){.management-operator-cards{grid-template-columns:1fr}.management-fold,.management-operator-card{padding:16px}.management-hub .management-metrics{grid-template-columns:1fr}}

.goal-detail .sheet-table select.pix-key-select option:disabled{color:#8a8f9b;background:#151922;}

.push-settings{padding:22px;margin:20px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid)}.push-settings p{line-height:1.6;color:var(--muted)}.push-settings [hidden]{display:none!important}.push-settings button:disabled{opacity:.5}

.push-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.push-quick-grid button{min-height:58px;text-align:left;white-space:normal}.push-quick-result{white-space:pre-wrap;line-height:1.6}@media(max-width:650px){.push-quick-grid{grid-template-columns:1fr 1fr}}@media(max-width:380px){.push-quick-grid{grid-template-columns:1fr}}

.goal-closing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,360px));gap:16px}.goal-closing-fields input{width:100%;box-sizing:border-box}@media(max-width:600px){.goal-closing-fields{grid-template-columns:1fr}}

.goal-closing-fields{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.goal-closing-fields{grid-template-columns:1fr}}
.pix-folder-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--border,#30333f);border-radius:20px;background:var(--surface,#141620);color:var(--text,#f4f4f6);padding:24px}.pix-folder-dialog::backdrop{background:#000b}.pix-folder-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.pix-folder-head h2{font-size:24px}.pix-folder-dialog button,.pix-folder-trigger{border:1px solid #353744;background:#1c1e29;color:inherit;border-radius:9px;padding:10px 12px;text-align:left;cursor:pointer}.pix-folder-dialog button:disabled{opacity:.45;cursor:not-allowed}.pix-folder-dialog button[aria-pressed=true]{border-color:#f83243;background:#70212d}.pix-folder-list{display:grid;gap:12px;margin-top:18px}.pix-folder-list details{border:1px solid #353744;border-radius:12px;padding:12px}.pix-folder-list summary{cursor:pointer;font-weight:700;padding:8px}.pix-folder-list details button{display:block;width:100%;margin-top:8px;overflow-wrap:anywhere}.pix-folder-trigger{width:100%;min-width:0;max-width:100%;overflow:hidden}.pix-key-select[hidden]{display:none!important}#goal-feedback{white-space:pre-line}

/* PIX controls stay within their column at every table width. */
.goal-detail .sheet-table .pix-folder-trigger{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:34px;min-height:34px;padding:0 7px;font:11px/32px 'DM Sans',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px}
.pix-folder-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;overscroll-behavior:contain}.pix-folder-dialog p,.pix-folder-list summary{overflow-wrap:anywhere}.pix-folder-list details{min-width:0}.pix-folder-dialog button{box-sizing:border-box;max-width:100%;font:600 14px/1.4 'DM Sans',sans-serif}.pix-folder-head{align-items:flex-start}.pix-folder-head h2{min-width:0;margin:0}.pix-folder-head button{flex-shrink:0}.pix-folder-dialog:focus-visible,.pix-folder-dialog button:focus-visible,.pix-folder-dialog summary:focus-visible{outline:2px solid #ef4038;outline-offset:2px}
@media(max-width:700px){#goal-detail .goal-table-scroll{max-height:none;overflow:visible}#goal-detail .sheet-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}#goal-detail .sheet-table tbody td[data-label="Chave PIX"]{display:block;grid-column:1/-1}#goal-detail .sheet-table .pix-folder-trigger{font-size:13px;height:42px;line-height:40px}.pix-folder-dialog{padding:16px}.pix-folder-head h2{font-size:20px}.pix-folder-list details{padding:8px}}
@media(max-width:360px){#goal-detail .sheet-table tbody tr{grid-template-columns:minmax(0,1fr)}}

/* The sheet uses the space released by the sidebar. */
main:has(#goal-detail:not([hidden])){width:calc(100% - 32px);max-width:none}#goal-detail .sheet-table{min-width:1080px;width:100%}#goal-detail .sheet-table thead th:nth-child(1){width:3%}#goal-detail .sheet-table thead th:nth-child(2){width:9%}#goal-detail .sheet-table thead th:nth-child(3),#goal-detail .sheet-table thead th:nth-child(4){width:8%}#goal-detail .sheet-table thead th:nth-child(5){width:11%}#goal-detail .sheet-table thead th:nth-child(n+6):nth-child(-n+9){width:7%}#goal-detail .sheet-table thead th:nth-child(10){width:6%}#goal-detail .sheet-table thead th:nth-child(11){width:7%}#goal-detail .sheet-table thead th:nth-child(12),#goal-detail .sheet-table thead th:nth-child(13){width:10%}#goal-detail .sheet-table td .row-profit{overflow:hidden;text-overflow:ellipsis}#goal-detail .sheet-toolbar{flex-wrap:wrap;justify-content:flex-start}#goal-detail .sheet-toolbar label{flex:1 1 220px;width:auto;max-width:480px}#goal-expand{margin-left:auto}body.sheet-expanded{overflow:hidden}#goal-detail.sheet-expanded{position:fixed;inset:12px;z-index:60;margin:0;display:flex;flex-direction:column;gap:8px;overflow:auto;box-sizing:border-box;box-shadow:0 0 0 100vmax #000b}#goal-detail.sheet-expanded>*{flex-shrink:0}#goal-detail.sheet-expanded>.goal-salary-panel,#goal-detail.sheet-expanded>.goal-top-summary,#goal-detail.sheet-expanded>.goal-checklist,#goal-detail.sheet-expanded>.goal-mother,#goal-detail.sheet-expanded>#goal-sheet-meta,#goal-detail.sheet-expanded>#goal-description,#goal-detail.sheet-expanded>#goal-target,#goal-detail.sheet-expanded>#goal-reason,#goal-detail.sheet-expanded>label,#goal-detail.sheet-expanded>#goal-notes{display:none}#goal-detail.sheet-expanded>.goal-table-scroll{flex:1 1 auto;min-height:160px;max-height:none;margin:0}#goal-detail.sheet-expanded .sheet-toolbar{margin:0}#goal-detail.sheet-expanded #goal-pix-message,#goal-detail.sheet-expanded #goal-feedback{margin:0;font-size:12px}#goal-detail.sheet-expanded>.goals-head h2{margin:0}#goal-detail.sheet-expanded .goals-eyebrow,#goal-detail.sheet-expanded #goal-state{display:none}@media(max-width:700px){main:has(#goal-detail:not([hidden])){width:calc(100% - 24px)}#goal-detail .sheet-table{min-width:0}#goal-detail.sheet-expanded{inset:6px;padding:12px}#goal-detail.sheet-expanded>.goal-table-scroll{overflow:auto}#goal-detail .sheet-toolbar label{max-width:none}#goal-expand{margin-left:0}#goal-detail.sheet-expanded .goals-head h2{font-size:18px}}
@media(min-width:1600px){#goal-detail .sheet-table th{font-size:12px}#goal-detail .sheet-table input,#goal-detail .sheet-table select,#goal-detail .sheet-table .pix-folder-trigger{font-size:13px;height:38px}#goal-detail .row-profit{font-size:13px}}

.pix-folder-list summary small{display:block;margin:5px 0 0 22px;font-size:12px;line-height:1.4;font-weight:400;color:var(--muted,#a5adbd)}

.sheet-dialog .sheet-table .pix-folder-trigger{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:34px;padding:0 7px;font:11px/32px "DM Sans",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:8px}#coop-closing-feedback{white-space:pre-line}
.sheet-dialog{overflow:auto}.sheet-dialog .sheet-table-wrap{min-height:160px}

.pix-origin-details{margin:12px 0;display:grid;gap:10px}.pix-origin-details article{padding:14px;border:1px solid #825c36;border-radius:10px;background:var(--surface-solid,#171b28);overflow-wrap:anywhere}.pix-origin-details p{margin:7px 0;font-size:13px}.pix-origin-details a{display:inline-block;padding:8px 11px;border:1px solid var(--line,#454052);border-radius:7px;color:var(--text,#f4f5fa);font-size:13px}.pix-origin-row{outline:2px solid #e5ae52;outline-offset:-2px}

.pix-origin-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:85dvh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--line,#454052);border-radius:14px;background:var(--surface-solid,#171b28);color:var(--text,#f4f5fa)}.pix-origin-dialog::backdrop{background:#000b}.pix-origin-dialog>button{padding:9px 12px;background:var(--bg,#10141c);color:inherit;border:1px solid var(--line,#454052);border-radius:8px}.pix-origin-table{width:100%;table-layout:fixed;border-collapse:collapse}.pix-origin-table th,.pix-origin-table td{text-align:left;border-bottom:1px solid var(--line,#454052);padding:9px;font-size:13px;overflow-wrap:anywhere}.pix-origin-dialog p{font-size:14px;overflow-wrap:anywhere}

.pix-history-panel{margin:18px 0;padding:20px;border:1px solid var(--line,#353b4c);border-radius:14px;background:var(--surface-solid,#111520)}.pix-history-panel[hidden]{display:none!important}.pix-toolbar{flex-wrap:wrap;gap:12px}.pix-history-panel h2{font-size:22px}.pix-history-panel p{line-height:1.5;overflow-wrap:anywhere}.pix-history-panel form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.pix-history-panel label{grid-column:1/-1;font-size:13px}.pix-history-panel input{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid var(--line,#353b4c);border-radius:8px;background:var(--bg,#0b0e15);color:var(--text,#fff)}.pix-history-panel button,#pix-history-toggle,[data-pix-history]{padding:9px 12px;border:1px solid var(--line,#353b4c);border-radius:8px;background:var(--surface-2,#1c2230);color:var(--text,#fff);cursor:pointer}.pix-history-results{display:grid;gap:12px;margin:12px 0}.pix-history-results article{padding:15px;border:1px solid var(--line,#353b4c);border-radius:10px;min-width:0;overflow-wrap:anywhere}.pix-history-results strong{font-size:16px}.pix-history-results p{margin:7px 0;font-size:13px}.pix-history-results small{display:block;margin:9px 0;color:var(--muted,#a5adbd)}.pix-history-badge{font-size:12px;color:#e6bf72}.pix-history-panel :focus-visible{outline:2px solid #ef4038;outline-offset:2px}@media(max-width:550px){.pix-history-panel{padding:14px}.pix-history-panel form{grid-template-columns:minmax(0,1fr)}.pix-history-panel form button{width:100%}}

.pix-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:8px;row-gap:8px;padding:12px 0}.pix-key-row>div:first-child{grid-column:1;min-width:0}.pix-key-row>span{grid-column:2;max-width:none;white-space:nowrap}.pix-key-row strong{white-space:normal;overflow-wrap:anywhere}.pix-key-row small{line-height:1.5;overflow-wrap:anywhere}.pix-key-row>.pix-key-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;min-width:0}.pix-key-row .pix-key-actions button{box-sizing:border-box;flex:0 0 auto;height:32px;min-height:32px;line-height:1;white-space:nowrap;font-size:11px;padding:0}.pix-key-row .pix-key-actions button[data-pix-history]{width:auto;min-width:80px;max-width:100%;padding:0 10px}.pix-key-row .pix-key-actions button[data-pix-action="delete-key"]{width:32px;min-width:32px;font-size:17px}.pix-key-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.pix-key-row .pix-key-actions button:focus-visible{outline:2px solid #ef4038;outline-offset:2px}@media(max-width:1250px){.pix-key-columns{grid-template-columns:minmax(0,1fr)}}
.sheet-key-hint{display:block;margin:6px 0 10px;color:var(--muted,#98a1b2);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
/* Compact closing workspace keeps financial entry and review actions together. */
.goal-closing-workspace{margin:18px 0 24px;padding:18px;border:1px solid var(--line);border-top:2px solid #e94250;border-radius:14px;background:var(--surface-solid)}
.goal-closing-workspace .goal-salary-panel{border:0;background:transparent;margin:0;padding:0}
.goal-closing-workspace .goal-closing-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.goal-closing-workspace .goal-salary-panel label{margin:0;min-width:0}
.goal-closing-workspace .goal-salary-panel input{width:100%;max-width:none;box-sizing:border-box}
.goal-closing-workspace .goals-actions{margin-top:16px;gap:8px}
.goal-closing-workspace #goal-feedback{margin:10px 0 0;font-size:13px;min-height:0}
.goal-return-details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.goal-return-details summary{cursor:pointer;font-size:13px;color:var(--muted)}
.goal-finalize-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;border:1px solid var(--line);border-top:3px solid #e94250;border-radius:20px;padding:26px;background:var(--surface-solid);color:var(--text);box-shadow:0 24px 100px #0008}
.goal-finalize-dialog::backdrop{background:#08070bd9;backdrop-filter:blur(6px)}
.goal-finalize-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.goal-finalize-head h2{margin:8px 0 0}
.goal-finalize-dialog .goal-salary-panel{margin:18px 0;padding:18px;background:var(--bg);border-color:var(--line)}
.goal-finalize-dialog .goal-closing-fields{display:grid;gap:12px}.goal-finalize-dialog .goal-salary-panel label{margin:0}
.goal-finalize-dialog .goal-salary-panel input{width:100%;max-width:none;box-sizing:border-box;background:var(--surface-solid);color:var(--text);font-size:18px}
.goal-finalize-dialog #goal-closing-profit{border-top:1px solid var(--line);padding-top:14px;font-size:20px}
#goal-finalize-issues:empty,#goal-finalize-message:empty{display:none}#goal-finalize-issues{font-size:13px;border-left:2px solid #e5ad55;padding-left:12px}#goal-finalize-message{color:var(--danger)}
#goal-detail.sheet-expanded .goal-closing-workspace .goal-salary-panel,#goal-detail.sheet-expanded .goal-return-details{display:none}
#goal-detail.sheet-expanded .goal-closing-workspace{padding:8px 12px;margin:0}#goal-detail.sheet-expanded .goal-closing-workspace .goals-actions{margin:0}
@media(max-width:700px){.goal-closing-workspace{padding:14px}.goal-closing-workspace .goal-closing-fields{grid-template-columns:1fr;gap:12px}.goal-closing-workspace .goals-actions button{flex:1 1 140px}.goal-finalize-dialog{padding:20px}.goal-finalize-dialog .goals-actions button{flex:1 1 180px}}

/* Open the assigned spreadsheet as the main view, rather than below the cards. */
#metas:has(#goal-detail:not([hidden])) > #goals-list,#metas:has(#goal-detail:not([hidden])) > .goals-browse,#metas:has(#goal-detail:not([hidden])) > .goals-summary,#metas:has(#goal-detail:not([hidden])) > #goals-result-count,#metas:has(#goal-detail:not([hidden])) > #goals-trash{display:none!important}
.goal-origin{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.3px;margin:8px 0}
