/* Calendário e barra de ferramentas no padrão DEB Gestão Pessoal. */
.cal-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important;margin:0!important;padding:0!important;border:0!important}
.cal-wrap{position:relative;display:inline-flex;vertical-align:middle}
.cal-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;border:1px solid #2e2e38;background:#1b1b22;color:#f3f4f6;font:600 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap;transition:border-color .15s,background .15s}
.cal-btn:hover{border-color:#8b5cf6;background:#22222b}
.cal-btn:focus-visible{outline:2px solid #a78bfa;outline-offset:2px}
.cal-btn:disabled{opacity:.5;cursor:not-allowed}
.cal-btn svg{color:#a78bfa;flex:0 0 auto}
.cal-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:10000;width:272px;padding:14px;border-radius:16px;background:#17171d;border:1px solid #2e2e38;box-shadow:0 18px 40px rgba(0,0,0,.45);color:#e5e7eb;font:13px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}
.cal-pop[hidden]{display:none}
.cal-pop.cal-right{left:auto;right:0}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cal-head strong{font-size:14px;font-weight:700;color:#f9fafb}
.cal-nav{width:30px;height:30px;border-radius:999px;border:1px solid #2e2e38;background:#1f1f27;color:#e5e7eb;font-size:18px;line-height:1;cursor:pointer}
.cal-nav:hover{border-color:#8b5cf6;color:#c4b5fd}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;justify-items:center}
.cal-dow{font-size:11px;font-weight:700;color:#8b8b98;padding:4px 0}
.cal-day{width:34px;height:34px;border-radius:999px;border:1px solid transparent;background:transparent;color:#f3f4f6;font:600 13px/1 system-ui,sans-serif;cursor:pointer}
.cal-day:hover{border-color:#8b5cf6;background:#241f38}
.cal-day.is-today{border-color:#8b5cf6}
.cal-day.is-sel{background:#8b5cf6;border-color:#8b5cf6;color:#fff}
.cal-foot{display:flex;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid #2a2a33}
.cal-link{border:0;background:none;color:#a78bfa;font:600 12px/1 system-ui,sans-serif;cursor:pointer;padding:4px 2px}
.cal-link:hover{color:#c4b5fd;text-decoration:underline}

/* Barra de ferramentas: botões em pílula, destaque roxo (como no DEB). */
.controls,.toolbar,.topbar-actions,.actions{align-items:center}
.controls button:not(.cal-btn):not(.cal-nav):not(.cal-day):not(.cal-link),
.toolbar button:not(.cal-btn):not(.cal-nav):not(.cal-day):not(.cal-link){border-radius:999px;padding-left:16px;padding-right:16px}
.controls button.primary,.toolbar button.primary,.controls button[data-primary],.toolbar button[data-primary]{background:#8b5cf6;border-color:#8b5cf6;color:#fff}

/* Tema DEB para a barra de ferramentas (marcada pelo eta-calendario.js). */
.deb-bar{background:#16161c!important;border:1px solid #2a2a33!important;border-radius:16px!important;padding:10px 12px!important;color:#e5e7eb}
.deb-bar label{color:#9ca3af!important;font-size:12px!important;font-weight:600!important}
.deb-bar button:not(.cal-btn):not(.cal-nav):not(.cal-day):not(.cal-link){background:#1f1f27!important;color:#f3f4f6!important;border:1px solid #2e2e38!important;border-radius:999px!important;padding:7px 14px!important;font-weight:600!important;box-shadow:none!important}
.deb-bar button:not(.cal-btn):not(.cal-nav):not(.cal-day):not(.cal-link):hover{border-color:#8b5cf6!important;background:#262632!important}
.deb-bar button:disabled{opacity:.45}
.deb-bar input:not(.cal-native):not([type=checkbox]),.deb-bar select{background:#1b1b22!important;color:#f3f4f6!important;border:1px solid #2e2e38!important;border-radius:999px!important;padding:7px 14px!important}
.deb-bar input:focus,.deb-bar select:focus{outline:2px solid #8b5cf6!important;outline-offset:0!important}
.deb-bar .primary,.deb-bar [data-primary],.deb-bar button.primary{background:#8b5cf6!important;border-color:#8b5cf6!important;color:#fff!important}
