/* Performance Operacional — dashboard desktop responsivo */
.aa-performance-desktop{
    --aa-perf-bg:#08090b;
    --aa-perf-surface:#101216;
    --aa-perf-surface-2:#14171c;
    --aa-perf-border:rgba(255,255,255,.065);
    --aa-perf-border-strong:rgba(255,255,255,.10);
    --aa-perf-text:#f2ecdd;
    --aa-perf-muted:#979994;
    --aa-perf-gold:var(--g,#CD9C20);
    --aa-perf-gold-soft:var(--g2,#F5CB5C);
    --aa-perf-green:#65c23d;
    --aa-perf-red:#ff3838;
    position:relative;
    display:none;
    width:100%;
    min-height:100%;
    padding:22px;
    color:var(--aa-perf-text);
    background:
        radial-gradient(circle at 68% 0%,rgba(205,156,32,.05),transparent 34%),
        linear-gradient(180deg,#090a0c 0%,#07080a 100%);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
@media(min-width:861px){.aa-performance-desktop{display:block}}
.aa-performance-desktop *{box-sizing:border-box}
.aa-performance-shell{width:100%;max-width:none;margin:0 auto}
.aa-performance-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.aa-performance-heading{display:block;min-width:0}
.aa-performance-heading h1{margin:0;color:var(--aa-perf-text);font-family:var(--aa-ff-heading,Georgia,serif);font-size:28px;line-height:1.08;font-weight:500;letter-spacing:-.015em}
.aa-performance-heading p{margin:6px 0 0;color:var(--aa-perf-muted);font-size:12px;line-height:1.4}
.aa-performance-period{display:flex;align-items:center;gap:10px;min-width:320px;padding:9px 12px;border:1px solid var(--aa-perf-border);border-radius:8px;background:#0c0e12;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.aa-performance-period>svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:var(--aa-perf-gold);stroke-width:1.7}
.aa-performance-period-inputs{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-width:0;width:100%}
.aa-performance-period input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#dad8d1!important;font:600 11px/1.2 Inter,sans-serif;padding:4px 0!important;box-shadow:none!important;color-scheme:dark;cursor:pointer}
.aa-performance-period-separator{color:#6f716f;font-size:12px}

.aa-performance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.aa-performance-metric{display:flex;align-items:center;gap:12px;min-width:0;min-height:94px;padding:13px 14px;border:1px solid var(--aa-perf-border);border-radius:8px;background:#111111;box-shadow:0 10px 24px rgba(0,0,0,.16);overflow:hidden}
.aa-performance-metric-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid rgba(226,177,38,.14);border-radius:50%;background:rgba(226,177,38,.055);color:var(--aa-perf-gold-soft)}
.aa-performance-metric-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.aa-performance-metric.is-green .aa-performance-metric-icon{color:var(--aa-perf-green);border-color:rgba(101,194,61,.16);background:rgba(101,194,61,.055)}
.aa-performance-metric.is-red .aa-performance-metric-icon{color:var(--aa-perf-red);border-color:rgba(255,56,56,.16);background:rgba(255,56,56,.055)}
.aa-performance-metric.is-neutral .aa-performance-metric-icon{color:#c4c7c9;border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.025)}
.aa-performance-metric-copy{min-width:0;overflow:hidden}
.aa-performance-metric-label{display:block;margin-bottom:4px;color:#b9b8b2;font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-performance-metric-value{display:block;color:#f5f4ef;font-size:19px;line-height:1.1;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-performance-metric-value.is-positive{color:var(--aa-perf-green)}
.aa-performance-metric-value.is-negative{color:var(--aa-perf-red)}
.aa-performance-metric-value.is-gold{color:var(--aa-perf-gold-soft)}
.aa-performance-metric-detail{display:block;margin-top:5px;color:#8f918c;font-size:9px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-performance-metric-detail.is-positive{color:#75cf50}
.aa-performance-metric-detail.is-negative{color:#ff6363}
.aa-performance-metric-detail.is-gold{color:var(--aa-perf-gold-soft)}

.aa-performance-layout{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(390px,.92fr);grid-template-areas:"chart form" "history checklist";gap:10px;align-items:stretch}
.aa-performance-panel{min-width:0;border:1px solid var(--aa-perf-border);border-radius:8px;background:#111111;box-shadow:0 14px 34px rgba(0,0,0,.18);overflow:hidden}
.aa-performance-chart-panel{grid-area:chart;min-height:390px;padding:16px;display:flex;flex-direction:column}
.aa-performance-history-panel{grid-area:history;min-height:330px;height:100%;display:flex;flex-direction:column}
.aa-performance-form-panel{grid-area:form;display:flex;flex-direction:column;min-height:390px;padding:16px}
.aa-performance-checklist-panel{position:relative;grid-area:checklist;display:flex;flex-direction:column;min-height:330px;padding:16px;overflow:hidden}
.aa-performance-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.aa-performance-panel-title{display:flex;align-items:center;gap:9px;margin:0;color:var(--aa-perf-text);font-family:Inter,system-ui,sans-serif;font-size:16px;line-height:1.1;font-weight:650}
.aa-performance-panel-title svg{width:20px;height:20px;fill:none;stroke:var(--aa-perf-gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aa-performance-chart-tools{display:flex;align-items:center;gap:7px;min-width:0}
.aa-performance-chart-select{height:31px;min-width:132px;padding:0 28px 0 10px;border:1px solid var(--aa-perf-border)!important;border-radius:5px;background:#0c0e12!important;color:#bdbbb4!important;font:500 10px Inter,sans-serif!important;box-shadow:none!important}
.aa-performance-range-buttons{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid rgba(255,255,255,.06);border-radius:5px;background:#0c0e11}
.aa-performance-range-button{min-width:36px;height:27px;padding:0 8px;border:0!important;border-radius:4px!important;background:transparent!important;color:#8e908b!important;font:600 9px Inter,sans-serif!important;cursor:pointer}
.aa-performance-range-button:hover,.aa-performance-range-button.is-active{background:rgba(226,177,38,.1)!important;color:var(--aa-perf-gold-soft)!important;box-shadow:inset 0 0 0 1px rgba(226,177,38,.3)}
.aa-performance-chart-filter{display:none}
.aa-performance-chart-total{display:none}
.aa-performance-chart-wrap{position:relative;flex:1;height:320px;min-height:320px}
.aa-performance-chart-wrap canvas{width:100%!important;height:100%!important}

.aa-performance-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px 11px;border-bottom:1px solid rgba(255,255,255,.045)}
.aa-performance-export-pdf{min-height:30px;padding:0 12px;border:1px solid rgba(226,177,38,.42)!important;border-radius:5px!important;background:rgba(226,177,38,.055)!important;color:var(--aa-perf-gold-soft)!important;font:650 9px Inter,sans-serif!important;cursor:pointer;white-space:nowrap}
.aa-performance-export-pdf:hover{background:rgba(226,177,38,.1)!important}
.aa-performance-table-wrap{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.aa-performance-table{width:100%;border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed;background:transparent!important;border:0!important}
.aa-performance-table th{position:sticky;top:0;z-index:3;padding:10px 8px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;color:#aaa8a2!important;font-size:8px;line-height:1.15;font-weight:550;text-align:left;white-space:nowrap;background:#0c0e11!important}
.aa-performance-table td{padding:10px 8px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.05)!important;color:#c7c6bf!important;font-size:9px;line-height:1.28;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent!important}
.aa-performance-table tbody tr,.aa-performance-table tbody tr:nth-child(odd),.aa-performance-table tbody tr:nth-child(even){background:transparent!important}
.aa-performance-table tbody tr:hover{background:rgba(255,255,255,.018)!important}
.aa-performance-table tbody tr:last-child td{border-bottom:0!important}
.aa-performance-table .is-positive{color:var(--aa-perf-green)!important;font-weight:650}
.aa-performance-table .is-negative{color:var(--aa-perf-red)!important;font-weight:650}
.aa-performance-table .aa-performance-observation{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a5a49f!important}
.aa-performance-emotion{display:inline-flex;align-items:center;min-height:22px;max-width:100%;padding:0 7px;border:1px solid rgba(226,177,38,.48);border-radius:4px;color:var(--aa-perf-gold-soft);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-performance-emotion.is-positive{border-color:rgba(101,194,61,.5);color:#83d65e}
.aa-performance-emotion.is-negative{border-color:rgba(255,56,56,.5);color:#ff6666}
.aa-performance-actions{position:relative;text-align:center;overflow:visible!important}
.aa-performance-actions-toggle{width:26px;height:26px;border:0!important;border-radius:50%;background:transparent!important;color:#c4c2bc!important;font-size:18px;line-height:1;cursor:pointer}
.aa-performance-actions-menu{position:absolute;right:5px;top:25px;z-index:30;display:none;min-width:112px;padding:5px;border:1px solid var(--aa-perf-border);border-radius:7px;background:#15171b;box-shadow:0 14px 30px rgba(0,0,0,.45)}
.aa-performance-actions.is-open .aa-performance-actions-menu{display:block}
.aa-performance-actions-menu button{display:block;width:100%;padding:8px 10px;border:0!important;border-radius:5px;background:transparent!important;color:#d7d5cf!important;text-align:left;font:500 10px Inter,sans-serif;cursor:pointer}
.aa-performance-actions-menu button:hover{background:rgba(255,255,255,.05)!important}
.aa-performance-actions-menu button[data-action="delete"]{color:#ff7070!important}
.aa-performance-empty{display:grid;place-items:center;gap:8px;min-height:205px;padding:28px 16px;color:#85847f;text-align:center}
.aa-performance-empty[hidden]{display:none!important}
.aa-performance-empty-icon{width:50px;height:42px;color:#5c5f62}
.aa-performance-empty-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5}
.aa-performance-empty strong{color:#d0cec7;font-size:13px;font-weight:550}
.aa-performance-empty span{font-size:10px}
.aa-performance-history-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px 14px;border-top:1px solid rgba(255,255,255,.05);color:#8f918d;font-size:9px}
.aa-performance-history-toggle{min-height:28px;padding:0 12px;border:0!important;border-radius:4px;background:transparent!important;color:var(--aa-perf-gold-soft)!important;font:600 9px Inter,sans-serif;cursor:pointer}

.aa-performance-form-panel .aa-performance-panel-head{margin-bottom:13px}
.aa-performance-form{display:flex;flex:1;flex-direction:column}
.aa-performance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.aa-performance-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.aa-performance-field.is-wide{grid-column:1/-1}
.aa-performance-field span{color:#aaa8a2;font-size:9px;line-height:1.2}
.aa-performance-field input,.aa-performance-field select,.aa-performance-field textarea{width:100%;min-width:0;border:1px solid rgba(255,255,255,.1)!important;border-radius:5px!important;background:#0d0f12!important;color:#dddcd6!important;outline:0!important;box-shadow:none!important;font:500 10px/1.3 Inter,sans-serif!important}
.aa-performance-field input,.aa-performance-field select{height:34px!important;padding:0 10px!important}
.aa-performance-field textarea{height:280px!important;min-height:200px!important;max-height:280px;padding:12px!important;resize:vertical;line-height:1.5!important}
.aa-performance-field span small{color:#737671;font-size:8px;font-weight:400}
.aa-performance-field input[readonly]{cursor:default;color:var(--aa-perf-gold-soft);background:rgba(255,255,255,.025)}
.aa-performance-field[hidden]{display:none!important}
.aa-performance-field input:focus,.aa-performance-field select:focus,.aa-performance-field textarea:focus{border-color:rgba(226,177,38,.72)!important;box-shadow:0 0 0 2px rgba(226,177,38,.07)!important}
.aa-performance-field input[data-perf-result]{color:var(--aa-perf-gold-soft)!important;background:rgba(226,177,38,.035)!important}
.aa-performance-field input[type="date"]{position:relative;z-index:1;pointer-events:auto!important;cursor:pointer;color-scheme:dark}
.aa-performance-field input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.78}
.aa-performance-form-actions{display:flex;gap:9px;margin-top:auto;padding-top:14px}
.aa-performance-submit{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border:0!important;border-radius:5px!important;background:linear-gradient(90deg,#f5cb5c,#dda90d)!important;color:#17140a!important;font:700 11px Inter,sans-serif!important;cursor:pointer;box-shadow:0 10px 26px rgba(226,177,38,.14)}
.aa-performance-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.aa-performance-submit:disabled{opacity:.55;cursor:wait}
.aa-performance-cancel{display:none;min-width:94px;min-height:39px;border:1px solid var(--aa-perf-border)!important;border-radius:5px!important;background:#121419!important;color:#c7c5bf!important;font:600 10px Inter,sans-serif!important;cursor:pointer}
.aa-performance-form.is-editing .aa-performance-cancel{display:block}

.aa-performance-checklist-panel .aa-performance-panel-head{margin-bottom:18px}
.aa-performance-checklist-content{flex:0 0 auto;min-height:auto;overflow:visible;padding-right:0;scrollbar-gutter:auto}
.aa-performance-checklist-summary{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:16px;margin:4px 0 22px;padding:2px 2px 0}
.aa-performance-checklist-ring{--aa-checklist-progress:0deg;position:relative;width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--aa-perf-gold-soft) var(--aa-checklist-progress),rgba(255,255,255,.075) 0)}
.aa-performance-checklist-ring::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#111419}
.aa-performance-checklist-ring span{position:relative;z-index:1;color:#d9d7d0;font-size:12px}.aa-performance-checklist-ring strong{font-size:16px;color:#fff}
.aa-performance-checklist-copy strong{display:block;margin-bottom:6px;color:#e7e5df;font-size:14px;font-weight:550}
.aa-performance-checklist-copy span{display:block;color:#92948f;font-size:9px;line-height:1.4}
.aa-performance-checklist-bar{height:6px;margin-top:10px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}
.aa-performance-checklist-bar span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f5cb5c,#dda90d);transition:width .2s ease}
.aa-performance-checklist-list{display:grid;gap:8px;margin:0 0 24px;padding:0;list-style:none}
.aa-performance-checklist-item{display:grid;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:9px;min-height:41px;padding:8px 9px;border:1px solid rgba(255,255,255,.055);border-radius:6px;background:rgba(255,255,255,.012);cursor:pointer}
.aa-performance-checklist-item input{position:absolute;opacity:0;pointer-events:none}
.aa-performance-checklist-box{width:18px;height:18px;display:grid;place-items:center;border:1px solid #555a5d;border-radius:4px;color:#16140a;background:#111317}
.aa-performance-checklist-box svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.3;opacity:0}
.aa-performance-checklist-item.is-checked .aa-performance-checklist-box{border-color:var(--aa-perf-gold);background:var(--aa-perf-gold-soft)}
.aa-performance-checklist-item.is-checked .aa-performance-checklist-box svg{opacity:1}
.aa-performance-checklist-text{color:#c5c4be;font-size:9px;line-height:1.3}
.aa-performance-checklist-status{width:16px;height:16px;display:grid;place-items:center;border:1px solid rgba(101,194,61,.4);border-radius:50%;color:var(--aa-perf-green);opacity:0}
.aa-performance-checklist-status svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2}
.aa-performance-checklist-item.is-checked .aa-performance-checklist-status{opacity:1}
.aa-performance-checklist-history-button{flex:0 0 auto;margin-top:14px;padding-top:0;min-height:39px;border:1px solid rgba(226,177,38,.55)!important;border-radius:5px!important;background:transparent!important;color:var(--aa-perf-gold-soft)!important;font:650 10px Inter,sans-serif!important;cursor:pointer}
.aa-performance-checklist-modal{position:absolute;inset:12px;z-index:4;display:none;flex-direction:column;padding:14px;border:1px solid var(--aa-perf-border-strong);border-radius:7px;background:#111419;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.aa-performance-checklist-panel.is-history-open .aa-performance-checklist-modal{display:flex}
.aa-performance-checklist-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.aa-performance-checklist-modal-head strong{font-size:13px}.aa-performance-checklist-modal-head button{width:28px;height:28px;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.04)!important;color:#ddd!important;cursor:pointer}
.aa-performance-checklist-history-list{display:grid;gap:7px;overflow:auto}
.aa-performance-checklist-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid rgba(255,255,255,.055);border-radius:5px;color:#bdbcb6;font-size:9px}.aa-performance-checklist-history-row span{display:grid;gap:2px}.aa-performance-checklist-history-row small{color:#7f817d;font-size:8px}
.aa-performance-checklist-history-row strong{color:var(--aa-perf-gold-soft);font-size:10px}


.aa-performance-psychology{position:relative;flex:0 0 auto;margin:0 0 24px;padding:1px 16px 1px;border:0;border-radius:9px;background:#111111;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 28px rgba(0,0,0,.16)}
.aa-performance-psychology-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.055)}
.aa-performance-psychology-kicker{display:block;margin-bottom:4px;color:#777a76;font-size:8px;line-height:1.2;text-transform:uppercase;letter-spacing:.1em}
.aa-performance-psychology-head h3{margin:0;color:#ebe8df;font-size:13px;line-height:1.2;font-weight:650}
.aa-performance-psychology-period{flex:0 0 auto;padding:4px 7px;border:1px solid rgba(226,177,38,.18);border-radius:999px;background:rgba(226,177,38,.045);color:#bda96f;font-size:7px;line-height:1;white-space:nowrap}
.aa-performance-psychology-list{display:grid;gap:12px}
.aa-performance-psychology-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}
.aa-performance-psychology-name{min-width:0;color:#c8c7c0;font-size:9px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aa-performance-psychology-note{color:var(--aa-perf-gold-soft);font-size:9px;line-height:1;font-weight:700;white-space:nowrap}
.aa-performance-psychology-track{grid-column:1/-1;height:6px;border-radius:999px;background:rgba(255,255,255,.065);overflow:hidden}
.aa-performance-psychology-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d7a20c,#f5b800);transition:width .28s ease}
.aa-performance-psychology-item.is-strong .aa-performance-psychology-track span{background:linear-gradient(90deg,#3f9d32,#22c55e)}
.aa-performance-psychology-item.is-strong .aa-performance-psychology-note{color:#67d85f}
.aa-performance-psychology-empty{padding:16px 10px;border:1px dashed rgba(255,255,255,.08);border-radius:6px;color:#7f817d;font-size:9px;line-height:1.45;text-align:center}
.aa-performance-psychology-score{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;padding:14px 15px;border:0;border-radius:8px;background:#111111;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.aa-performance-psychology-score span{color:#aaa8a2;font-size:9px}
.aa-performance-psychology-score strong{color:var(--aa-perf-gold-soft);font-size:17px;line-height:1;font-weight:700}
.aa-performance-table-wrap::-webkit-scrollbar,.aa-performance-checklist-content::-webkit-scrollbar{width:8px;height:8px}
.aa-performance-table-wrap::-webkit-scrollbar-track,.aa-performance-checklist-content::-webkit-scrollbar-track{background:rgba(255,255,255,.025)}
.aa-performance-table-wrap::-webkit-scrollbar-thumb,.aa-performance-checklist-content::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:rgba(226,177,38,.35);background-clip:padding-box}

.aa-performance-confirm-modal{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}
.aa-performance-confirm-modal[hidden]{display:none!important}
.aa-performance-confirm-dialog{width:min(460px,calc(100vw - 48px));padding:28px;border:1px solid rgba(226,177,38,.24);border-radius:12px;background:#111111;box-shadow:0 28px 90px rgba(0,0,0,.65);text-align:center}
.aa-performance-confirm-icon{width:46px;height:46px;display:grid;place-items:center;margin:0 auto 16px;border-radius:50%;background:rgba(226,177,38,.12);color:var(--aa-perf-gold-soft);font:700 22px/1 Inter,sans-serif}
.aa-performance-confirm-dialog h2{margin:0;color:#f2ecdd;font-family:var(--aa-ff-heading,Georgia,serif);font-size:24px;font-weight:500}
.aa-performance-confirm-dialog p{margin:16px 0 24px;color:#b6b4ad;font-size:12px;line-height:1.65}
.aa-performance-confirm-actions{display:flex;justify-content:center;gap:10px}
.aa-performance-confirm-actions button{min-height:40px;padding:0 18px;border-radius:6px!important;font:650 10px Inter,sans-serif!important;cursor:pointer}
.aa-performance-confirm-cancel{border:1px solid rgba(255,255,255,.12)!important;background:#17191d!important;color:#d7d5cf!important}
.aa-performance-confirm-submit{border:0!important;background:linear-gradient(90deg,#f5cb5c,#dda90d)!important;color:#17140a!important}
.aa-performance-confirm-submit:disabled{opacity:.55;cursor:wait}
.aa-performance-toast{position:fixed;right:28px;bottom:28px;z-index:2147483000;max-width:360px;padding:12px 15px;border:1px solid rgba(101,194,61,.34);border-radius:8px;background:#121712;color:#cce8be;font-size:12px;line-height:1.4;box-shadow:0 18px 50px rgba(0,0,0,.48);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.aa-performance-toast.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.aa-performance-toast.is-error{border-color:rgba(255,56,56,.36);background:#1a1112;color:#ffc1c1}
.aa-performance-loading{position:absolute;inset:0;z-index:20;display:none;place-items:center;background:rgba(7,8,10,.68);backdrop-filter:blur(2px)}
.aa-performance-desktop.is-loading .aa-performance-loading{display:grid}
.aa-performance-spinner{width:30px;height:30px;border:2px solid rgba(255,255,255,.12);border-top-color:var(--aa-perf-gold);border-radius:50%;animation:aa-performance-spin .7s linear infinite}
@keyframes aa-performance-spin{to{transform:rotate(360deg)}}

/* Monitores intermediários: 1366px a 1719px. */
@media(min-width:1366px) and (max-width:1719px){
    .aa-performance-desktop{padding:18px}
    .aa-performance-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
    .aa-performance-layout{grid-template-columns:minmax(0,1.62fr) minmax(390px,.96fr);grid-template-areas:"chart form" "history checklist";grid-template-rows:minmax(470px,auto) minmax(540px,1fr);gap:12px;align-items:stretch}
    .aa-performance-chart-panel{min-height:470px}
    .aa-performance-chart-wrap{height:auto;min-height:385px}
    .aa-performance-form-panel{min-height:470px}
    .aa-performance-history-panel,.aa-performance-checklist-panel{min-height:540px}
}

/* Widescreen: ocupa toda a área livre ao lado da sidebar. */
@media(min-width:1720px){
    .aa-performance-desktop{padding:18px 20px 22px}
    .aa-performance-metrics{grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}
    .aa-performance-metric{min-height:96px;padding:12px;gap:10px}
    .aa-performance-metric-icon{width:42px;height:42px;flex-basis:42px}
    .aa-performance-metric-icon svg{width:24px;height:24px}
    .aa-performance-metric-label{font-size:9px}
    .aa-performance-metric-value{font-size:18px}
    .aa-performance-metric-detail{font-size:8px}
    .aa-performance-layout{
        height:calc(100vh - 214px);
        height:calc(100dvh - 214px);
        min-height:790px;
        grid-template-columns:minmax(0,1.62fr) minmax(390px,.84fr) minmax(320px,.64fr);
        grid-template-areas:"chart form checklist" "history form checklist";
        grid-template-rows:minmax(390px,47%) minmax(360px,53%);
        gap:10px;
        align-items:stretch;
    }
    .aa-performance-chart-panel{min-height:390px}
    .aa-performance-chart-wrap{height:315px;min-height:315px}
    .aa-performance-history-panel{min-height:360px}
    .aa-performance-form-panel,.aa-performance-checklist-panel{min-height:0;height:100%}
    .aa-performance-form-actions,.aa-performance-checklist-history-button{min-height:39px}
}

@media(max-width:1365px) and (min-width:1181px){
    .aa-performance-desktop{padding:16px}
    .aa-performance-layout{grid-template-columns:minmax(0,1.35fr) minmax(360px,.95fr);grid-template-rows:minmax(460px,auto) minmax(500px,1fr)}
    .aa-performance-chart-panel{min-height:460px}
    .aa-performance-chart-wrap{height:auto;min-height:375px}
    .aa-performance-history-panel,.aa-performance-checklist-panel{min-height:500px}
    .aa-performance-chart-tools{gap:4px}.aa-performance-chart-select{display:none}
    .aa-performance-metric{padding:12px;gap:9px}.aa-performance-metric-icon{width:40px;height:40px;flex-basis:40px}
}
@media(max-width:1180px) and (min-width:861px){
    .aa-performance-desktop{padding:16px}
    .aa-performance-header{align-items:flex-start}.aa-performance-period{min-width:290px}
    .aa-performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .aa-performance-layout{grid-template-columns:1fr;grid-template-areas:"chart" "form" "history" "checklist"}
    .aa-performance-form-panel,.aa-performance-checklist-panel{min-height:0}
}
@media(max-width:860px){.aa-performance-desktop{display:none!important}}

/* Neutraliza estilos globais de tabela do tema/WordPress. */
.aa-performance-history-panel .aa-performance-table-wrap{background:transparent!important}
.aa-performance-history-panel table,.aa-performance-history-panel thead,.aa-performance-history-panel tbody,.aa-performance-history-panel tr{background:transparent!important;border:0!important;box-shadow:none!important}
.aa-performance-table th:nth-child(1){width:8%}
.aa-performance-table th:nth-child(2){width:11%}
.aa-performance-table th:nth-child(3){width:7%}
.aa-performance-table th:nth-child(4){width:8%}
.aa-performance-table th:nth-child(5){width:8%}
.aa-performance-table th:nth-child(6){width:10%}
.aa-performance-table th:nth-child(7){width:8%}
.aa-performance-table th:nth-child(8){width:9%}
.aa-performance-table th:nth-child(9){width:10%}
.aa-performance-table th:nth-child(10){width:8%;text-align:center}
.aa-performance-table th:nth-child(11){width:18%}
.aa-performance-history-panel.has-admin-actions .aa-performance-table th:nth-child(11){width:14%}
.aa-performance-history-panel.has-admin-actions .aa-performance-table th:nth-child(12){width:5%;text-align:center}
.aa-performance-history-panel.has-admin-actions .aa-performance-table td:last-child{text-align:center}
