#page-planilhaautomatica{max-width:1500px;margin:0 auto}
.auto-sheet-shell{display:grid;gap:12px}
.auto-sheet-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid #29292e;border-radius:21px;background:radial-gradient(circle at 0 0,rgba(239,38,47,.14),transparent 38%),linear-gradient(145deg,#17171a,#09090b)}
.auto-sheet-hero span{font-size:10px;font-weight:950;letter-spacing:.12em;color:#ff5962}.auto-sheet-hero h3{margin:4px 0 2px;font-size:25px;letter-spacing:-.035em}.auto-sheet-hero p{margin:0;color:#9898a2;font-size:12px}
.auto-sheet-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.auto-sheet-actions button,.auto-sheet-actions a{height:34px!important;min-height:34px!important;padding:0 11px!important;border:1px solid #38383e!important;border-radius:10px!important;background:linear-gradient(180deg,#19191c,#101012)!important;color:#e9e9ed!important;font-size:11px!important;font-weight:850!important;text-decoration:none;display:inline-flex;gap:7px;align-items:center;justify-content:center;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 7px 18px rgba(0,0,0,.18)!important;transition:.15s ease!important}
.auto-sheet-actions button i,.auto-sheet-actions a i{width:17px;height:17px;border-radius:6px;background:rgba(255,255,255,.06);display:grid;place-items:center;font-style:normal;font-size:12px;line-height:1}
.auto-sheet-actions button:hover,.auto-sheet-actions a:hover{transform:translateY(-1px);border-color:#5a5a62!important;background:linear-gradient(180deg,#202024,#131316)!important}
.auto-sheet-actions .primary{background:linear-gradient(135deg,#ef2630,#99131c)!important;border-color:rgba(255,85,94,.65)!important;color:#fff!important;box-shadow:0 9px 22px rgba(239,38,47,.18),inset 0 1px 0 rgba(255,255,255,.16)!important}
.auto-sheet-status{justify-self:end;width:max-content;max-width:100%;padding:6px 9px;border:1px solid #29292e;border-radius:9px;background:#101012;color:#85858e;font-size:9px;font-weight:750;line-height:1.2}.auto-sheet-status.online{border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.07);color:#8de3ae}.auto-sheet-status.error{border-color:rgba(239,38,47,.35);background:rgba(239,38,47,.08);color:#ff9da4}
.auto-sheet-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:stretch}
.auto-sheet-total{--accent:#a78bfa;--accent-rgb:167,139,250;position:relative;height:176px!important;min-height:176px!important;padding:17px 18px 22px!important;border:1px solid rgba(167,139,250,.32);border-radius:18px;background:radial-gradient(circle at 9% 8%,rgba(var(--accent-rgb),.13),transparent 34%),linear-gradient(145deg,#171719,#09090a 75%);display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 12px 35px rgba(0,0,0,.2)}
.auto-sheet-total.deposit{--accent:#ff3d52;--accent-rgb:255,61,82;border-color:rgba(255,61,82,.3)}
.auto-sheet-total.withdrawal{--accent:#16d76b;--accent-rgb:22,215,107;border-color:rgba(22,215,107,.3)}
.auto-sheet-total.balance.positive{--accent:#35c8ff;--accent-rgb:53,200,255;border-color:rgba(53,200,255,.3)}
.auto-sheet-total.balance.negative{--accent:#ff3d52;--accent-rgb:255,61,82;border-color:rgba(255,61,82,.3)}
.auto-sheet-total-head{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.auto-sheet-total-head i{width:35px;height:35px;border:1px solid rgba(var(--accent-rgb),.42);border-radius:11px;background:rgba(var(--accent-rgb),.09);color:var(--accent);display:grid;place-items:center;font:500 23px/1 Arial,sans-serif;box-shadow:inset 0 0 15px rgba(var(--accent-rgb),.08),0 0 12px rgba(var(--accent-rgb),.08)}
.auto-sheet-total-head span{color:#ededf1;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.045em}
.auto-sheet-total strong{color:var(--accent)!important;font-size:25px;line-height:1;margin-bottom:8px;letter-spacing:-.025em;text-shadow:0 0 16px rgba(var(--accent-rgb),.18)}
.auto-sheet-total small{color:#9a9aa3;font-size:9px}
.auto-sheet-pulse{position:absolute;left:22px;right:22px;bottom:17px;height:32px;filter:drop-shadow(0 0 5px rgba(var(--accent-rgb),.75))}
.auto-sheet-pulse:before{content:"";position:absolute;left:0;right:0;bottom:3px;height:2px;border-radius:4px;background:var(--accent);clip-path:polygon(0 47%,73% 47%,78% 47%,82% 0,86% 100%,90% 47%,100% 47%,100% 57%,90% 57%,86% 100%,82% 14%,78% 57%,0 57%)}
.auto-sheet-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auto-sheet-ledger{border:1px solid #29292e;border-radius:22px;background:#0d0d0f;overflow:hidden}.auto-sheet-ledger header{padding:16px 18px;border-bottom:1px solid #29292e;display:flex;justify-content:space-between;align-items:center}.auto-sheet-ledger header h4{margin:0;font-size:16px}.auto-sheet-ledger header span{color:#8c8c96;font-size:11px}.auto-sheet-list{max-height:540px;overflow:auto;padding:9px;display:grid;gap:7px}.auto-sheet-event{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;border:1px solid #29292e;border-radius:14px;background:#141416}.auto-sheet-event b{font-size:15px}.auto-sheet-event div{display:grid;gap:3px}.auto-sheet-event small{color:#898994;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auto-sheet-event time{color:#b8b8c0;font-size:11px;text-align:right}.auto-sheet-event.deposit b{color:#f59e0b}.auto-sheet-event.withdrawal b{color:#22c55e}.auto-sheet-empty{padding:38px 16px;text-align:center;color:#777781}
.auto-sheet-token{width:max-content;max-width:100%;padding:5px 9px;border:1px solid #29292e;border-radius:8px;background:#101012;font:9px/1.2 Consolas,monospace;color:#777781}
@media(max-width:900px){.auto-sheet-hero{align-items:flex-start;flex-direction:column}.auto-sheet-actions{justify-content:flex-start}.auto-sheet-totals,.auto-sheet-columns{grid-template-columns:1fr}.auto-sheet-total{padding:16px}}
/* Ciclos e planilhas automÃ¡ticas */
.auto-sheet-tabs{display:flex;gap:9px;overflow:auto;padding:2px 1px 5px}.auto-sheet-tabs button{white-space:nowrap;border:1px solid rgba(139,92,246,.32);border-radius:12px;background:#111116;color:#aaa6b8;padding:10px 16px;font-weight:900;cursor:pointer}.auto-sheet-tabs button.active{background:linear-gradient(135deg,#7c3aed,#a855f7);border-color:#b488ff;color:#fff;box-shadow:0 10px 26px rgba(124,58,237,.28)}
.auto-sheet-total.chest{border-color:rgba(245,158,11,.3)}.auto-sheet-total.chest strong{color:#fbbf24}.auto-cycle-card{border:1px solid rgba(139,92,246,.23);border-radius:20px;background:linear-gradient(180deg,#14131a,#09090c);overflow:hidden}.auto-cycle-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.07)}.auto-cycle-card h4{margin:0;font-size:17px}.auto-cycle-card header small{display:block;margin-top:4px;color:#858292}.auto-cycle-table-wrap{overflow:auto}.auto-cycle-table{width:100%;min-width:980px;border-collapse:collapse}.auto-cycle-table th{padding:12px;background:#101015;color:#9e99aa;font-size:10px;text-transform:uppercase;text-align:left}.auto-cycle-table td{padding:12px;border-top:1px solid rgba(255,255,255,.065);vertical-align:middle}.auto-cycle-table td:first-child strong,.auto-cycle-table td:first-child small{display:block}.auto-cycle-table td small{color:#817d8b}.auto-values{max-width:300px;color:#f3f0fa;font-weight:800;line-height:1.55;word-break:break-word}.auto-chest-edit{display:flex;align-items:center;gap:6px;min-width:135px;border:1px solid rgba(245,158,11,.3);border-radius:10px;background:#09090c;padding:0 9px;color:#fbbf24}.auto-chest-edit input{width:100%;border:0!important;background:transparent!important;color:#fff;padding:9px 0;outline:0}.auto-cycle-table .positive{color:#4ade80}.auto-cycle-table .negative{color:#fb7185}
@media(max-width:760px){.auto-cycle-card>header{align-items:flex-start;flex-direction:column}.auto-sheet-tabs{margin-inline:-4px}.auto-sheet-actions{width:100%}.auto-sheet-actions>*{flex:1}}
.auto-cycle-table.dashboard-like{min-width:900px;table-layout:fixed}.auto-cycle-table.dashboard-like th{text-align:center;height:48px;color:#f2f0f5;background:#141418;border-right:1px solid #2a2930}.auto-cycle-table.dashboard-like th:first-child{width:46px}.auto-cycle-table.dashboard-like th:last-child{width:74px}.auto-cycle-table.dashboard-like td{text-align:center;height:50px;padding:7px 9px;background:#09090c;border-right:1px solid #25242b}.auto-cycle-table.dashboard-like tr:hover td{background:#101014}.auto-cell-input{width:100%;height:36px;border:1px solid rgba(124,92,255,.42)!important;border-radius:10px!important;background:#050507!important;color:#fff!important;text-align:center;font-weight:850;outline:0;padding:7px 10px!important}.auto-cell-input:focus{border-color:#9b7cff!important;box-shadow:0 0 0 3px rgba(124,92,255,.13)!important}.auto-result{font-size:14px}.auto-cycle-delete{width:34px;height:34px;border:1px solid rgba(239,38,47,.5);border-radius:10px;background:rgba(239,38,47,.12);color:#ff6b73;cursor:pointer;font-size:15px}.auto-cycle-delete:hover{background:rgba(239,38,47,.24)}
.auto-sheet-shell.compact{gap:14px}.auto-sheet-controlbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(139,92,246,.22);border-radius:15px;background:linear-gradient(180deg,#121117,#0b0b0e)}.auto-sheet-controlbar .auto-sheet-tabs{flex:1;min-width:0;padding:0}.auto-sheet-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.auto-sheet-inline-actions>button,.auto-sheet-inline-actions>a,.auto-cycle-head-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;border:1px solid rgba(139,92,246,.32);border-radius:10px;background:#15141b;color:#fff;text-decoration:none;font-size:11px;font-weight:900;cursor:pointer}.auto-sheet-inline-actions>a.primary{border-color:rgba(239,38,47,.55);background:linear-gradient(135deg,#ef2630,#a9141c);box-shadow:0 8px 22px rgba(239,38,47,.18)}.auto-help{position:relative!important;width:37px;padding:0!important;border-radius:50%!important;font-size:16px!important}.auto-help span{display:none;position:absolute;z-index:40;right:0;top:calc(100% + 10px);width:310px;padding:13px;border:1px solid rgba(139,92,246,.35);border-radius:12px;background:#111016;color:#d6d2df;text-align:left;font-size:11px;font-weight:700;line-height:1.55;box-shadow:0 18px 45px rgba(0,0,0,.55)}.auto-help:hover span,.auto-help:focus span{display:block}.auto-cycle-head-actions{display:flex;align-items:center;gap:9px}.auto-cycle-head-actions>button{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.1);color:#7bea9f}.auto-sheet-shell.compact>.auto-sheet-status{margin:0}.auto-sheet-shell.compact .auto-sheet-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.auto-sheet-controlbar{align-items:stretch;flex-direction:column}.auto-sheet-inline-actions{width:100%}.auto-sheet-inline-actions>*{flex:1}.auto-cycle-head-actions{width:100%;justify-content:space-between}.auto-sheet-shell.compact .auto-sheet-totals{grid-template-columns:1fr}.auto-help span{right:auto;left:0;width:min(310px,80vw)}}

/* BotÃ£o manual sempre legÃ­vel, independentemente do tema selecionado. */
html[data-color-scheme] body #page-planilhaautomatica #autoCycleAdd,
html[data-color-scheme="dark"] body #page-planilhaautomatica #autoCycleAdd,
html[data-color-scheme="light"] body #page-planilhaautomatica #autoCycleAdd{
  background:#ffffff!important;background-image:none!important;border:1px solid #ffffff!important;
  color:#09090b!important;-webkit-text-fill-color:#09090b!important;opacity:1!important;
  font-weight:950!important;text-shadow:none!important;box-shadow:0 8px 22px rgba(255,255,255,.16)!important
}
html[data-color-scheme] body #page-planilhaautomatica #autoCycleAdd:hover{
  background:#ececf0!important;border-color:#ececf0!important;color:#050506!important;transform:translateY(-1px)
}
html[data-color-scheme] body #page-planilhaautomatica #autoCycleAdd:disabled{
  background:#d8d8dc!important;border-color:#d8d8dc!important;color:#505056!important;opacity:.82!important
}
.auto-row-mode{display:inline-flex!important;align-items:center!important;gap:7px!important;height:37px!important;min-height:37px!important;padding:4px 10px 4px 7px!important;margin:0!important;border:1px solid #34343b!important;border-radius:10px!important;background:linear-gradient(180deg,#17171b,#101013)!important;color:#f5f5f7!important;font-size:10px!important;font-weight:900!important;letter-spacing:.01em;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}.auto-row-mode:hover{border-color:#55545e!important;background:#1d1d22!important}.auto-row-mode input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}.auto-row-mode i{display:block;width:30px;height:18px;border:1px solid #4b4b54;border-radius:999px;background:#29292f;position:relative;flex:0 0 auto;transition:.2s}.auto-row-mode i:after{content:'';position:absolute;width:12px;height:12px;left:2px;top:2px;border-radius:50%;background:#a1a1aa;box-shadow:0 1px 4px #0008;transition:.2s}.auto-row-mode input:checked+i{background:#22c55e;border-color:#35d672;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.auto-row-mode input:checked+i:after{left:14px;background:#fff}.auto-row-mode span{color:inherit!important;line-height:1!important}html[data-color-scheme="light"] .auto-row-mode{background:#fff!important;color:#25272b!important;border-color:#cfd3d8!important;box-shadow:0 3px 10px rgba(20,30,40,.05)!important}html[data-color-scheme="light"] .auto-row-mode i{background:#e3e6e9;border-color:#b9bec4}
.has-mini-help{position:relative!important}.has-mini-help:not(.auto-row-mode){padding-right:27px!important}.has-mini-help:after{content:'?';position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:13px;height:13px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.06);color:#d7d7dc;font:900 8px/1 Arial;pointer-events:none}.has-mini-help.auto-row-mode:after{right:5px}.has-mini-help.auto-row-mode{padding-right:24px!important}.has-mini-help:before{content:attr(data-help);position:absolute;z-index:9999;right:0;bottom:calc(100% + 8px);width:max-content;max-width:235px;padding:8px 10px;border:1px solid #3a3a42;border-radius:9px;background:#111114;color:#f2f2f4;font:700 10px/1.4 Inter,Segoe UI,Arial,sans-serif;white-space:normal;text-align:left;box-shadow:0 12px 32px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(3px);transition:.15s;pointer-events:none}.has-mini-help:hover:before,.has-mini-help:focus-visible:before,.has-mini-help:focus-within:before{opacity:1;visibility:visible;transform:none}.auto-sheet-tabs .has-mini-help:before{left:0;right:auto}.auto-cycle-delete.has-mini-help{padding-right:20px!important}.auto-cycle-delete.has-mini-help:after{right:2px}html[data-color-scheme="light"] .has-mini-help:after{border-color:#b8bec5;background:#f1f3f5;color:#33383d}html[data-color-scheme="light"] .has-mini-help:before{background:#fff;color:#25282c;border-color:#ccd1d6;box-shadow:0 12px 28px rgba(25,35,45,.16)}

.auto-sheet-controlbar{display:flex!important;grid-template-columns:none!important;justify-content:flex-end!important}
.auto-sheet-controlbar>.auto-sheet-tabs{display:none!important}
.auto-sheet-tabs-row{min-width:0;padding:10px 12px;border:1px solid rgba(139,92,246,.22);border-radius:15px;background:linear-gradient(180deg,#121117,#0b0b0e)}
.auto-sheet-tabs-row .auto-sheet-tabs{display:flex!important;width:100%;padding:0;overflow-x:auto}
.auto-sheet-tabs-row .auto-sheet-tabs button{flex:0 0 auto}
.auto-sheet-controlbar{position:relative!important;justify-content:center!important;padding:14px 48px 14px 14px!important}
.auto-sheet-controlbar .auto-sheet-inline-actions{width:auto!important;justify-content:center!important;margin:0 auto!important}
.auto-sheet-controlbar #autoSheetHelp{position:absolute!important;top:7px!important;right:7px!important;width:22px!important;height:22px!important;min-height:22px!important;padding:0!important;border-radius:7px!important;font-size:10px!important;line-height:1!important}
.auto-sheet-controlbar #autoSheetHelp span{top:calc(100% + 6px)!important;right:0!important}
@media(max-width:900px){.auto-sheet-controlbar{padding:38px 10px 10px!important}.auto-sheet-controlbar .auto-sheet-inline-actions{justify-content:center!important}.auto-sheet-controlbar #autoSheetHelp{top:8px!important;right:8px!important}}
