/* Zeven Agenda — sistema visual moderno */

/* Relatórios: linguagem visual inspirada em infográficos com gradientes. */
.report-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
.report-analytics-grid .analytics-card{grid-column:auto!important;min-height:356px!important;padding:24px!important;border:1px solid #dce9ed!important;border-radius:22px!important;background:#fff!important;box-shadow:0 14px 34px rgba(18,65,82,.09)!important}
.report-analytics-grid .analytics-card-head{align-items:center!important;min-height:48px!important;margin-bottom:12px!important}
.report-analytics-grid .analytics-index{flex:0 0 36px!important;width:36px!important;height:36px!important;border:1px solid #c7e9e8!important;border-radius:12px!important;background:#e8f8f6!important;color:#087c83!important;box-shadow:none!important}
.report-analytics-grid .analytics-card-head small{color:#6f8794!important;letter-spacing:.14em!important}
.report-analytics-grid .analytics-card-head h3{color:#193548!important;font-size:18px!important;font-weight:800!important;letter-spacing:-.025em!important}
.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head h3{font-size:0!important}
.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head h3:after{content:'Eventos e Aulas por Tipo';font-size:18px!important}
.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head small{font-size:0!important}
.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head small:after{content:'POR TIPO';font-size:9px!important}
.report-analytics-grid .analytics-card:nth-child(3) .analytics-card-head:after,.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head:after{margin-left:auto;color:#71818b;font-size:10px;font-weight:750;content:'●  Aulas    ●  Eventos'}
.report-analytics-grid .analytics-legend{color:#657986!important}
.report-analytics-grid .legend-class{background:#12d8f4!important;box-shadow:0 0 9px rgba(18,216,244,.5)}
.report-analytics-grid .legend-event{background:#9b63ff!important;box-shadow:0 0 9px rgba(155,99,255,.5)}
.report-analytics-grid .analytics-bar-chart{position:relative;height:255px!important;padding:28px 8px 0!important;border-bottom:1px solid #cfe2e7!important;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,rgba(92,137,153,.13) 50px)!important}
.report-analytics-grid .analytics-bars{height:200px!important;gap:5px!important}
.report-analytics-grid .analytics-bar{min-width:10px!important;max-width:30px!important;border-radius:8px 8px 2px 2px!important;background:linear-gradient(180deg,#20edf2 0%,#05aaf1 58%,#5267fb 100%)!important;box-shadow:0 0 18px rgba(17,203,241,.24)!important}
.report-analytics-grid .analytics-bar.secondary{background:linear-gradient(180deg,#e35cff 0%,#9d5cff 48%,#5e72ff 100%)!important;box-shadow:0 0 18px rgba(164,91,255,.24)!important}
.report-analytics-grid .analytics-bar b{display:block!important;bottom:calc(100% + 6px)!important;color:#3f5664!important;font-size:10px!important;font-weight:850!important;text-shadow:none!important}
.report-analytics-grid .analytics-bar-item small{margin-top:12px!important;color:#627986!important;font-size:10px!important;letter-spacing:.02em!important}
.report-analytics-grid .analytics-empty{color:#748590!important}
@media(max-width:900px){.report-analytics-grid{grid-template-columns:1fr!important}.report-analytics-grid .analytics-card{min-height:330px!important}.report-analytics-grid .analytics-card-head{flex-wrap:wrap}.report-analytics-grid .analytics-card:nth-child(3) .analytics-card-head:after,.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head:after{width:100%;margin-left:46px}}
:root{
 --brand-950:#073548;--brand-900:#0a465c;--brand-800:#08667e;--brand-700:#078aa2;--brand-600:#08a7b5;--brand-500:#16b9aa;
 --brand-100:#ddf7f5;--brand-50:#f0fbfa;--ink:#172235;--ink-2:#33445b;--muted:#6c7c90;
 --surface:#fff;--surface-soft:#f7fafc;--line:#dfe9ee;--line-strong:#c9dce3;
 --danger:#c63f5f;--success:#087c69;--radius-sm:10px;--radius-md:15px;--radius-lg:22px;--radius-xl:28px;
 --shadow-xs:0 2px 8px rgba(16,58,78,.05);--shadow-sm:0 8px 24px rgba(16,58,78,.075);--shadow-md:0 18px 48px rgba(16,58,78,.11);--shadow-focus:0 0 0 4px rgba(8,167,181,.14);--sidebar-w:258px
}
html{color-scheme:light;scroll-behavior:smooth}body{background:linear-gradient(145deg,#f7fafc 0%,#f2f9fa 45%,#f7fafc 100%);color:var(--ink);font-size:15px;line-height:1.5;overflow-x:hidden}body:before{content:"";position:fixed;z-index:-1;inset:0;background:radial-gradient(circle at 90% 0,rgba(8,167,181,.09),transparent 27%),radial-gradient(circle at 18% 100%,rgba(8,102,126,.055),transparent 30%);pointer-events:none}::selection{background:#bfeeea;color:var(--brand-950)}
.sidebar{width:var(--sidebar-w);padding:24px 16px 20px;background:rgba(255,255,255,.96);border-right:1px solid rgba(201,220,227,.75);box-shadow:12px 0 40px rgba(18,65,82,.04)}.brand{margin:0 8px 26px;padding:8px 6px 18px;border-bottom:1px solid #edf2f4}.brand-logo{width:148px}.brand-caption{font-size:9px!important;color:#7a8c9b!important}.nav-label{margin:20px 13px 7px;color:#92a1ae;font-size:10px;letter-spacing:.13em}.nav-link{min-height:44px;margin:3px 0;padding:11px 13px;border-radius:12px;color:#53677a;font-size:14px;font-weight:650;transition:.18s ease}.nav-link .icon{width:18px;height:18px;color:#6e8797}.nav-link:hover{background:#f0f8f9;color:var(--brand-800);transform:translateX(2px)}.nav-link.active{background:linear-gradient(100deg,#e5f8f6,#eefafa);color:var(--brand-800);box-shadow:inset 0 0 0 1px rgba(8,167,181,.10)}.nav-link.active:before{inset:9px auto 9px 0;width:4px;background:linear-gradient(var(--brand-700),var(--brand-500))}.nav-link.active .icon{color:var(--brand-700)}.sidebar-foot{margin:18px 4px 0;padding:14px;border:1px solid #e1f1f0;border-radius:14px;background:var(--brand-50);color:#496873}.sidebar-foot small{color:#81959c}
.main{width:calc(100% - var(--sidebar-w));margin-left:var(--sidebar-w)}.topbar{min-height:72px;padding:11px clamp(20px,3vw,48px);background:rgba(250,253,253,.88);border-color:rgba(207,223,229,.82);box-shadow:0 8px 30px rgba(19,63,80,.04);backdrop-filter:blur(18px)}.topbar-copy strong{font-size:17px;color:var(--ink)}.profile{padding:6px 12px 6px 7px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-xs)}.avatar{width:36px;height:36px;background:linear-gradient(145deg,#ddf7f5,#c7edf1);color:var(--brand-800)}.icon-button{min-width:42px;min-height:42px;border-radius:12px;background:#fff;border-color:var(--line);color:#607789;box-shadow:var(--shadow-xs)}.icon-button:hover{background:var(--brand-50);border-color:#b9ddde;color:var(--brand-700)}
.content{max-width:1700px;padding:30px clamp(18px,3vw,50px) 64px}.page-head{min-height:126px;margin-bottom:24px;padding:28px 30px;border:1px solid rgba(196,222,228,.85);border-radius:var(--radius-xl);background:linear-gradient(112deg,rgba(255,255,255,.98),rgba(244,251,252,.97) 58%,rgba(225,248,245,.9));box-shadow:var(--shadow-sm)}.page-head:before{width:280px;height:280px;right:-90px;top:-150px;background:radial-gradient(circle,rgba(8,167,181,.15),transparent 68%)}.page-head:after{border-color:rgba(8,138,162,.10);box-shadow:0 0 0 30px rgba(8,167,181,.025),0 0 0 60px rgba(8,102,126,.015)}.page-head h1{margin:6px 0;color:var(--ink);font-size:clamp(30px,3vw,40px);letter-spacing:-.045em}.page-head p{max-width:740px;color:var(--muted);font-size:15px}.eyebrow{color:var(--brand-700);font-size:10px;letter-spacing:.14em}
.panel,.metric,.professor-card,.calendar-shell,.form-panel,.report-filters,.settings-layout>*,.recycle-panel{border:1px solid rgba(207,224,230,.9);background:rgba(255,255,255,.97);box-shadow:var(--shadow-sm)}.panel{padding:24px;border-radius:var(--radius-lg)}.panel:hover{transform:none;border-color:#c8e0e5;box-shadow:var(--shadow-md)}.panel-head{gap:16px;margin-bottom:22px}.panel-head h2{font-size:21px;color:#193548}.panel-head a{padding:8px 11px;border-radius:10px;background:#edf9f8;color:var(--brand-800)}.empty{margin:8px 0;padding:38px 20px;border:1px dashed #d6e5e9;border-radius:15px;background:#fafcfd;color:#7c8c99}
.button{min-height:44px;gap:9px;padding:11px 17px;border-radius:12px;font-size:14px;font-weight:750;letter-spacing:-.01em;box-shadow:none;transition:.18s ease}.button.primary{background:linear-gradient(120deg,var(--brand-700),var(--brand-500));color:#fff;box-shadow:0 10px 22px rgba(8,138,162,.20)}.button.primary:hover{background:linear-gradient(120deg,#087f9b,#0fb39f);box-shadow:0 14px 28px rgba(8,138,162,.27);transform:translateY(-2px)}.button.ghost{background:#fff;border-color:var(--line-strong);color:#476477;box-shadow:var(--shadow-xs)}.button.ghost:hover{background:var(--brand-50);border-color:#a9d5db;color:var(--brand-800)}.button.danger{background:#fff1f4;border-color:#f3ccd5;color:var(--danger)}.text-action{min-height:34px!important;padding:7px 9px!important;border-radius:9px!important;transition:.16s ease}.text-action:hover{background:#edf8f8!important}.text-action.delete:hover{background:#fff0f3!important}.action-row,.action-group,.user-actions{gap:8px}
.form-panel{overflow:hidden;border-radius:var(--radius-xl);background:#fff}.form-section{grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:42px;padding:34px 36px;border-color:#e8eff2}.form-section:nth-child(even){background:linear-gradient(105deg,#fff,#fbfdfd)}.form-section>div:first-child h2{margin:10px 0 7px;color:#18384a;font-size:21px;letter-spacing:-.025em}.form-section>div:first-child p{margin:0;color:#7b8c98;font-size:14px;line-height:1.55}.step{min-width:36px;justify-content:center;padding:6px 9px;border-radius:9px;background:#e4f7f5;color:var(--brand-800);font-size:11px}.form-grid{gap:20px 18px}.form-grid label,.login-card label,.report-filters label,.settings-form label{gap:8px;color:#3b5568;font-size:14px;font-weight:680}.form-grid small,.login-card small{color:#84959f;font-size:12px;font-weight:500;line-height:1.45}
.form-grid input,.form-grid select,.form-grid textarea,.login-card input,.report-filters input,.report-filters select,.calendar-filters select,.settings-form input,.settings-form select,.settings-form textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fbfdfe;color:var(--ink);font-size:15px;outline:none;box-shadow:inset 0 1px 2px rgba(18,57,75,.025);transition:.16s ease}.form-grid textarea,.settings-form textarea{min-height:112px;line-height:1.6;resize:vertical}.form-grid input:hover,.form-grid select:hover,.form-grid textarea:hover,.login-card input:hover,.report-filters input:hover,.report-filters select:hover,.calendar-filters select:hover{border-color:#a7cbd4;background:#fff}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.login-card input:focus,.report-filters input:focus,.report-filters select:focus,.calendar-filters select:focus,.settings-form input:focus,.settings-form select:focus,.settings-form textarea:focus{border-color:var(--brand-600);background:#fff;box-shadow:var(--shadow-focus)}.form-grid input[type=color]{min-height:48px;padding:5px}.form-grid input[type=checkbox],.report-filters input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--brand-700)}.form-grid input[type=file]{padding:9px;background:linear-gradient(105deg,#f8fcfd,#fff)}input::file-selector-button{margin-right:12px;padding:8px 12px;border:0;border-radius:9px;background:#e3f6f5;color:var(--brand-800);font-weight:750;cursor:pointer}.form-footer,.form-actions{gap:10px;padding:22px 34px;background:#fbfdfd;border-top:1px solid #e8eff2}.check-line{min-height:48px;margin-top:22px!important;padding:10px 12px;border:1px solid #e0ecef;border-radius:12px;background:#f8fbfc}
.metric-grid{gap:18px;margin-bottom:22px}.metric{min-height:142px;padding:24px;border-radius:var(--radius-lg);background:linear-gradient(145deg,#fff,#f7fbfc);border-color:#dce9ed}.metric:hover{transform:translateY(-3px);border-color:#c4dde3;box-shadow:var(--shadow-md)}.metric:after{background:radial-gradient(circle,rgba(8,167,181,.11),transparent 68%)}.metric-icon{width:52px;height:52px;border-radius:16px;box-shadow:0 10px 22px rgba(16,79,96,.10)}.metric-icon.purple,.metric-icon.blue{background:#e4f4fb;color:#087eaa}.metric-icon.teal{background:#e0f8f4;color:#087c69}.metric-icon.gold{background:#fff4dc;color:#b97b0d}.metric-icon.rose{background:#fff0f3;color:#c84967}.metric small{color:#718895;font-size:10px}.metric strong{margin-top:9px;color:#18384a;font-size:34px}.metric p{color:#7d8d99;font-size:13px}.professor-grid{gap:20px}.professor-card{padding:24px;border-radius:var(--radius-lg);background:linear-gradient(145deg,#fff 55%,#f3fafb)}.professor-card:hover{transform:translateY(-4px);border-color:#c6dfe4;box-shadow:var(--shadow-md)}.professor-card h2{font-size:19px;color:#18384a}.professor-card>p{font-size:14px}.professor-stats{margin:20px 0;border-color:#e3ecef}.professor-stats strong{color:#173a4c}.insight{border-color:#cce6e5;background:linear-gradient(110deg,#e9f8f7,#fff 52%,#e7f5fb)}
.calendar-shell{border-radius:var(--radius-xl);background:#fff;box-shadow:var(--shadow-md)}.calendar-toolbar{padding:20px 22px;background:linear-gradient(110deg,#fff,#effafa);border-color:#dce9ed}.calendar-nav h2{font-size:22px;color:#16384a}.calendar-toolbar button,.calendar-views button{min-height:40px;border-radius:11px;border-color:var(--line-strong);background:#fff;color:#496779}.calendar-views button.active{background:linear-gradient(120deg,var(--brand-700),var(--brand-500));color:#fff;box-shadow:0 8px 18px rgba(8,138,162,.2)}.calendar-filters{gap:12px;padding:14px 22px;background:#fbfdfd;border-color:#e1ebee}.calendar-filters select{min-height:44px;font-size:14px}.cal-weekday{padding:14px 10px!important;background:#f6fafb!important;color:#637d8c!important;font-size:10px}.cal-day{min-height:130px!important;background:#fff;border-color:#e1eaee}.cal-day:hover{background:#f9fcfc;box-shadow:inset 0 0 0 1px #cce4e6}.cal-day.muted-day{background:#f7f9fa}.cal-list{gap:12px;padding:22px}.cal-list-row{margin:0;padding:18px 20px 18px 24px!important;border-radius:17px;min-height:92px}.cal-list-row>time strong{font-size:15px}.cal-list-row>div>strong{font-size:16px}
.report-filters{gap:14px;padding:20px;border-radius:var(--radius-lg);background:#fff}.report-filters .button{min-height:48px}.table-scroll{max-width:100%;overflow:auto;border:1px solid #e0eaed;border-radius:16px;background:#fff;scrollbar-width:thin;scrollbar-color:#b8d1d8 transparent}.table-scroll::-webkit-scrollbar{height:9px;width:9px}.table-scroll::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:999px;background:#b8d1d8}table{font-size:14px}thead{background:#f5f9fa}th{position:sticky;top:0;z-index:1;padding:13px 14px;color:#667f8e;font-size:10px;letter-spacing:.11em;background:#f5f9fa;border-color:#dfe9ed}td{padding:15px 14px;color:#344b5c;border-color:#e6eef1}tbody tr:hover{background:#f6fbfb!important}.managed-events-panel{padding:22px}.managed-events-table{font-size:12px}.event-code,.event-type-pill,.delivery-pill,.period-pill,.status-label,.badge,.admin-only-badge,.security-pill{border-radius:999px;font-weight:750}.event-code{background:#e8f6fb;color:#087eaa}.event-type-pill{background:#edf8f7;color:#087c69}.admin-only-badge{background:#e7f8f4;color:#087c69}
.auth-body{background:#f4fafb}.login-layout{background:#fff}.login-story{background:linear-gradient(145deg,#f7fbfd,#ecf8f8 55%,#eaf6fb);padding:7vh 6vw}.login-story h1{font-size:clamp(44px,5vw,72px);color:#102f42}.login-story h1 span{background:linear-gradient(110deg,var(--brand-800),var(--brand-500));-webkit-background-clip:text;background-clip:text;color:transparent}.login-story p{color:#607789}.login-star{opacity:.35}.login-panel{background:#fff}.login-card{width:min(430px,100%);padding:34px;border:1px solid #e0eaed;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(14,68,89,.11)}.login-card h2{color:#173548}.login-card>p{color:#71828f}.login-card input{min-height:50px}.microsoft-login{min-height:50px!important;border-radius:12px!important}.login-card .button.primary{min-height:50px}
.alert,.toast{padding:14px 16px;border-radius:13px;font-size:14px;box-shadow:var(--shadow-sm)}.alert.success,.toast-success{background:#eaf9f5;color:#086b5d;border-color:#bfe7dc}.alert.error,.toast-error{background:#fff0f3;color:#a93450;border-color:#f1c8d2}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(8,167,181,.32);outline-offset:2px}
@media(max-width:1100px){.content{padding-inline:24px}.page-head{padding:25px 26px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.professor-grid{grid-template-columns:repeat(2,1fr)}.form-section{grid-template-columns:190px minmax(0,1fr);gap:26px;padding:28px}.report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.report-filters>button{grid-column:1/-1}}
@media(max-width:780px){:root{--sidebar-w:0px}.main{width:100%;margin:0}.sidebar{width:min(86vw,290px);padding-top:18px;box-shadow:18px 0 55px rgba(12,47,62,.18)}.topbar{min-height:64px;padding:10px 14px}.mobile-brand-logo{width:82px;margin-left:7px}.top-actions{gap:6px}.profile{padding:0;border:0;background:transparent;box-shadow:none}.profile .avatar{width:36px;height:36px}.profile>span:last-child{display:none}.content{padding:18px 12px 46px}.page-head{min-height:0;margin-bottom:18px;padding:22px 18px;border-radius:20px;align-items:stretch}.page-head:after{display:none}.page-head h1{font-size:29px}.page-head p{font-size:14px}.page-head>.button,.page-head .action-row{width:100%}.page-head .action-row{display:grid;grid-template-columns:1fr}.page-head .button{width:100%}.button{min-height:46px}.metric-grid,.professor-grid,.dashboard-grid,.report-grid{grid-template-columns:1fr}.metric{min-height:116px;padding:20px}.metric strong{font-size:31px}.span-2,.span-3{grid-column:auto}.panel{padding:18px;border-radius:18px}.form-panel{border-radius:20px}.form-section{grid-template-columns:1fr;gap:18px;padding:22px 17px}.form-section>div:first-child{padding-bottom:14px;border-bottom:1px solid #e6eff1}.form-grid{grid-template-columns:1fr;gap:17px}.form-grid .full{grid-column:auto}.form-footer,.form-actions{display:grid;grid-template-columns:1fr;padding:17px}.form-footer>*{width:100%}.form-footer span{display:none}.check-line{margin-top:0!important}.profile-photo-upload{padding:17px}.photo-upload-actions{width:100%}.photo-upload-actions .button{width:100%}.calendar-toolbar{gap:16px;padding:17px;align-items:stretch}.calendar-nav{width:100%;display:grid;grid-template-columns:repeat(3,auto) 1fr}.calendar-nav h2{grid-column:1/-1;grid-row:1;margin:0 0 5px;font-size:20px}.calendar-nav button{grid-row:2}.calendar-views{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.calendar-views button{width:100%}.calendar-filters{grid-template-columns:1fr;padding:14px 17px}.calendar-stage{max-width:100%;overflow:auto}.cal-grid{min-width:760px}.cal-week{min-width:900px}.cal-list{min-width:0;padding:13px}.cal-list-row{grid-template-columns:1fr;gap:12px;padding:16px!important}.cal-list-row>time{grid-column:1;flex-direction:column;align-items:flex-start}.cal-list-row>div,.cal-list-row>.badge,.cal-list-row>.holiday-list-badge{grid-column:1;grid-row:auto;justify-self:start}.report-filters{grid-template-columns:1fr;padding:17px}.report-filters>button{grid-column:auto;width:100%}.table-scroll{margin:0;border-radius:14px}table{min-width:680px}.managed-events-panel{padding:12px}.managed-events-table{min-width:980px}.professor-card{padding:20px}.professor-card footer{align-items:flex-start;gap:14px;flex-direction:column}.professor-actions,.user-actions{flex-wrap:wrap}.timeline-row{grid-template-columns:44px 4px minmax(0,1fr);gap:10px}.timeline-row>.badge{grid-column:3;justify-self:start}.timeline-professor>span:last-child{white-space:normal}.insight{gap:16px}.insight .button{width:100%;margin:0}.donut-wrap{grid-template-columns:1fr}.login-panel{min-height:100dvh;padding:18px}.login-card{padding:26px 20px;border-radius:20px;box-shadow:none}.login-panel-logo{width:132px}.login-card h2{font-size:27px}.toast{left:12px;right:12px;top:12px;max-width:none}}

/* Agenda refinada: dias úteis, cards com hierarquia e modal de leitura confortável. */
.calendar-filters{grid-template-columns:repeat(4,minmax(145px,1fr)) 1fr}
.calendar-filters select[data-cal-type]{border-color:#b9e1e3!important;background:linear-gradient(135deg,#fff,#f2fbfb)!important;font-weight:750;color:#185261}
.cal-month-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}
.cal-month-grid .weekend-column{display:block!important;background:#f8fbfb!important}
.cal-week{grid-template-columns:60px repeat(7,minmax(132px,1fr))!important;min-width:1040px!important}
.cal-week>.cal-weekend-head{display:block!important;background:#f4f8f9!important;color:#627b86!important}.cal-week>.cal-week-all-day.weekend-column,.cal-week>.cal-week-period-slot.weekend-column{display:block!important;background:linear-gradient(145deg,#fbfdfd,#f7fafb)!important}
.cal-event:not(.holiday-event){min-height:154px!important;padding:15px 16px 14px 18px!important;border-radius:18px!important;box-shadow:0 10px 22px var(--event-shadow,rgba(18,77,92,.16))!important}
.cal-event:not(.holiday-event) .cal-event-top{gap:6px;min-height:24px}
.cal-event:not(.holiday-event) .cal-event-top time{font-size:10px;padding:5px 8px;font-weight:900}
.cal-event:not(.holiday-event) .cal-event-period{font-size:9px;padding:5px 8px}
.cal-event:not(.holiday-event) .cal-event-name{margin-top:8px;font-size:15px!important;line-height:1.24!important;letter-spacing:-.02em}
.cal-event:not(.holiday-event) .cal-event-details{margin-top:8px;gap:7px;font-size:9px!important}
.cal-event:not(.holiday-event) .cal-event-code{padding:5px 7px;font-size:9px;font-weight:900}
.cal-event:not(.holiday-event) .cal-event-status{padding:5px 9px;font-size:10px;font-weight:900;box-shadow:0 3px 8px rgba(17,90,99,.12)}
.cal-event:not(.holiday-event) .cal-event-status:before{width:6px;height:6px}
.cal-event:not(.holiday-event) .cal-event-professor{margin-top:auto;padding-top:10px!important;font-size:10px!important;gap:8px}
.cal-event:not(.holiday-event) .cal-event-professor .cal-professor-avatar{width:30px!important;height:30px!important;flex-basis:30px!important;box-shadow:0 4px 10px rgba(20,80,95,.18)}
.cal-event:not(.holiday-event){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important}
.cal-event:not(.holiday-event) .cal-event-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:34px!important}
.cal-event:not(.holiday-event) .cal-event-professor{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0!important;color:#173e4d!important;font-size:10px!important;font-weight:800!important}
.cal-event:not(.holiday-event) .cal-event-professor>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-event:not(.holiday-event) .cal-event-professor:before{display:none!important}
.cal-event:not(.holiday-event) .cal-event-professor .cal-professor-avatar{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:50%!important;overflow:hidden!important;border:2px solid rgba(255,255,255,.82)!important;box-shadow:0 5px 12px rgba(20,80,95,.2)!important}
.cal-event:not(.holiday-event) .cal-event-professor .cal-professor-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.cal-event:not(.holiday-event) .cal-event-status{flex:0 0 auto!important;margin-left:auto!important;padding:6px 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important;letter-spacing:.01em!important}
.cal-event:not(.holiday-event) .cal-event-name{order:2!important;margin:0!important;font-size:16px!important;line-height:1.22!important;font-weight:900!important;color:#123c4e!important}
.cal-event:not(.holiday-event) .cal-event-details{order:3!important;margin:0!important;display:flex!important;gap:0!important}
.cal-event:not(.holiday-event) .cal-event-code{padding:5px 8px!important;font-size:9px!important;font-weight:900!important}
.cal-event:not(.holiday-event) .cal-event-time{order:4!important;display:flex!important;align-items:center!important;gap:6px!important;margin-top:auto!important;padding-top:2px!important;color:#0b7390!important;font-size:10px!important;font-weight:850!important}
.cal-event:not(.holiday-event) .cal-event-time .cal-event-period{padding:4px 7px!important;font-size:9px!important}
.cal-event:not(.holiday-event) .cal-event-time time{padding:4px 7px!important;font-size:10px!important;font-weight:900!important}
.agenda-modal-dialog{width:min(94vw,860px)!important;max-height:min(90vh,860px)!important;padding:40px!important;border-radius:28px!important;box-shadow:0 34px 100px rgba(10,50,65,.34)!important;background:linear-gradient(180deg,#fff 0%,#fbfefe 100%)!important}
.agenda-modal-heading{padding:4px 4px 20px;border-bottom:1px solid #e3eef0;margin-bottom:20px}
.agenda-modal-kicker{font-size:11px!important;color:#079ca7!important}
.agenda-modal-heading h2{font-size:32px!important;letter-spacing:-.035em;margin-bottom:0!important}
.agenda-modal-grid{gap:14px!important}
.agenda-modal-field{min-height:82px;padding:16px 17px!important;border-radius:17px!important;background:linear-gradient(145deg,#f5fbfc,#fff)!important;border-color:#d6e8eb!important;box-shadow:0 5px 14px rgba(30,90,103,.05)}
.agenda-modal-field small,.agenda-modal-description small{font-size:10px!important;color:#5d7b86!important;letter-spacing:.12em!important}
.agenda-modal-field strong{font-size:15px!important;color:#173e4d!important}
.agenda-modal-description{margin-top:18px!important;padding:19px!important;border-radius:17px!important;background:#fff!important;border-color:#d6e8eb!important;box-shadow:0 5px 14px rgba(30,90,103,.05)}
.agenda-modal-description p{font-size:14px!important;line-height:1.7!important;color:#345966!important}
.agenda-modal-actions{position:sticky;bottom:-40px;margin:22px -40px -40px!important;padding:18px 40px 22px;background:rgba(255,255,255,.94);border-top:1px solid #e3eef0;backdrop-filter:blur(8px)}
.agenda-modal-edit,.agenda-modal-attachment{min-height:46px!important;padding:12px 18px!important;border-radius:12px!important;font-size:13px!important}
/* Modal de detalhes: mais espaço visual e sem barra de rolagem interna. */
.agenda-modal{padding:14px!important;overflow:hidden!important}
.agenda-modal-dialog{width:min(96vw,1040px)!important;max-height:calc(100vh - 28px)!important;overflow:hidden!important;padding:30px 34px!important;border-radius:30px!important}
.agenda-modal-heading{padding:2px 2px 16px!important;margin-bottom:16px!important}
.agenda-modal-heading h2{font-size:34px!important}
.agenda-modal-grid{gap:11px!important}
.agenda-modal-field{min-height:60px!important;padding:10px 14px!important;gap:4px!important}
.agenda-modal-description{margin-top:14px!important;padding:15px 17px!important}
.agenda-modal-description p{font-size:13px!important;line-height:1.5!important}
.agenda-modal-actions{position:static!important;margin:10px 0 0!important;padding:0!important;background:transparent!important;border-top:0!important;backdrop-filter:none!important}
@media(max-width:780px){.agenda-modal{padding:8px!important}.agenda-modal-dialog{width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)!important;padding:22px 18px!important;border-radius:22px!important}.agenda-modal-heading h2{font-size:27px!important}.agenda-modal-grid{grid-template-columns:1fr!important;gap:8px!important}.agenda-modal-field{min-height:58px!important;padding:10px 12px!important}.agenda-modal-description{max-height:150px!important;overflow:hidden!important}.agenda-modal-actions{margin-top:12px!important}}
@media(max-width:780px){.calendar-filters{grid-template-columns:1fr!important}.cal-month-grid{min-width:680px!important}.cal-week{min-width:1040px!important}.agenda-modal-dialog{padding:26px 20px!important;border-radius:22px!important}.agenda-modal-heading h2{font-size:25px!important}.agenda-modal-actions{bottom:-26px;margin:18px -20px -26px!important;padding:14px 20px 18px!important}}
.cal-day:not(.holiday-disabled):not(.weekend-column){background:#edf3f4!important}
.cal-day.muted-day:not(.holiday-disabled){background:#e6edef!important}
.cal-day-head{background:#e5eef0!important}
.cal-day-head .cal-date{min-width:31px!important;height:31px!important;font-size:14px!important;font-weight:900!important;color:#244b5b!important}
.cal-day.muted-day .cal-date{font-size:13px!important;color:#7d969f!important}
.cal-weekday{background:#e6eff1!important;font-size:10px!important;font-weight:850!important;color:#557481!important}
@media(max-width:420px){.content{padding-inline:9px}.page-head{padding:20px 16px}.panel{padding:15px}.metric{gap:14px}.metric-icon{width:46px;height:46px}.calendar-toolbar{padding:14px}.calendar-nav{grid-template-columns:repeat(3,1fr)}.calendar-nav button{width:100%}}
@media(max-width:780px){body.menu-open{overflow:hidden}body.menu-open:after{content:"";position:fixed;z-index:25;inset:0;background:rgba(7,40,54,.28);backdrop-filter:blur(2px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.sidebar,.topbar,.page-head .button,.page-head .action-row,.report-filters{display:none!important}.main{width:100%;margin:0}.content{padding:0}.panel,.metric,.form-panel{box-shadow:none}}

/* Status da confirmação: seleção com cor semântica e retorno de salvamento automático. */
.agenda-confirmation-status-select{min-width:118px!important;border:1px solid #cfe2e7!important;border-radius:10px!important;padding:8px 28px 8px 10px!important;background:#fff!important;color:#315469!important;font:inherit!important;font-size:12px!important;font-weight:750!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important}
.agenda-confirmation-status-select.is-confirmed{border-color:#22b58c!important;background:#effbf7!important;color:#08795d!important}
.agenda-confirmation-status-select.is-declined{border-color:#df526f!important;background:#fff1f4!important;color:#a52443!important}
.agenda-confirmation-status-select.is-pending{border-color:#e2ab32!important;background:#fff9e9!important;color:#916d13!important}
.agenda-confirmation-status-select.is-saving{border-color:#dc3545!important;background:#fff0f1!important;box-shadow:0 0 0 3px rgba(220,53,69,.14)!important;animation:confirmation-save-pulse 1s ease-in-out infinite}
.agenda-confirmation-status-select.is-saved{box-shadow:0 0 0 3px rgba(22,181,138,.13)!important}
.agenda-confirmation-status-select.is-error{border-color:#b4233f!important;background:#fff0f3!important;box-shadow:0 0 0 3px rgba(180,35,63,.12)!important}
.agenda-confirmation-save-state{display:inline-flex;align-items:center;min-height:24px;color:#718894;font-size:10px;font-weight:750;white-space:nowrap}
.agenda-confirmation-save-state.is-saving{color:#c52f45}.agenda-confirmation-save-state.is-saved{color:#087c69}.agenda-confirmation-save-state.is-error{color:#b4233f}
.agenda-confirmation-load-error{display:inline-flex;align-items:center;gap:8px;color:#a52443;font-size:12px;font-weight:700;padding:8px 0}
@keyframes confirmation-save-pulse{0%,100%{box-shadow:0 0 0 3px rgba(220,53,69,.12)}50%{box-shadow:0 0 0 6px rgba(220,53,69,.2)}}

/* Modal de detalhes: conteúdo completo, rodapé fixo e rolagem discreta. */
.agenda-modal{padding:18px!important;overflow:hidden!important}
.agenda-modal-dialog{width:min(96vw,1120px)!important;height:min(92vh,900px)!important;max-height:92vh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;border-radius:30px!important;background:linear-gradient(180deg,#fff 0%,#fbfefe 100%)!important;box-shadow:0 34px 100px rgba(10,50,65,.34)!important}
.agenda-modal-dialog>[data-modal-content]{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;padding:0 42px!important}
.agenda-modal-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:32px 0 6px!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
.agenda-modal-scroll::-webkit-scrollbar{width:0!important;height:0!important}
.agenda-modal-heading{padding:2px 2px 18px!important;margin-bottom:18px!important;border-bottom:1px solid #e3eef0!important}
.agenda-modal-heading h2{font-size:36px!important;letter-spacing:-.04em!important}
.agenda-modal-grid{gap:12px!important}
.agenda-modal-field{min-height:68px!important;padding:12px 15px!important;border-radius:16px!important}
.agenda-modal-confirmation{padding:15px 18px!important;border-radius:16px!important}
.agenda-modal-description{margin-top:14px!important;padding:17px 18px!important;border-radius:16px!important}
.agenda-modal-description p{font-size:14px!important;line-height:1.62!important;white-space:normal!important;overflow-wrap:anywhere!important}
.agenda-modal-actions{flex:0 0 auto!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:0 -42px!important;padding:16px 42px 22px!important;background:linear-gradient(180deg,rgba(255,255,255,.84),#fff 34%)!important;border-top:1px solid #e3eef0!important;box-shadow:0 -10px 24px rgba(20,75,90,.06)!important;backdrop-filter:blur(10px)!important}
.agenda-modal-edit,.agenda-modal-attachment{min-height:46px!important;padding:12px 18px!important;border-radius:12px!important;font-size:13px!important}
@media(max-width:780px){
 .agenda-modal{padding:8px!important;align-items:flex-end!important}
 .agenda-modal-dialog{width:100vw!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;border-radius:24px 24px 0 0!important}
 .agenda-modal-dialog>[data-modal-content]{padding:0 20px!important}
 .agenda-modal-scroll{padding:24px 0 4px!important}
 .agenda-modal-heading h2{font-size:28px!important}
 .agenda-modal-grid{grid-template-columns:1fr!important;gap:9px!important}
 .agenda-modal-field{min-height:58px!important;padding:10px 13px!important}
 .agenda-modal-description{max-height:none!important;overflow:visible!important}
 .agenda-modal-actions{margin:0 -20px!important;padding:14px 20px 18px!important}
}

/* Divisão visual do dia em dois turnos na visão mensal. */
.cal-period-lane{position:relative;margin:7px -2px 0;padding:5px 5px 2px;border-radius:9px;background:#f8fbfc;border:1px solid #e5eff1}.cal-period-lane.afternoon{background:#fbfaff;border-color:#ebe7f7}.cal-period-label{display:block;margin-bottom:3px;color:#6d8791;font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.cal-period-lane .cal-event{margin:4px 0;padding:6px 7px}.cal-period-lane .cal-event-period{display:none}.cal-period-lane .cal-event-range{display:none}.cal-more-events{display:block;margin:5px 2px;color:#58727f;font-size:9px;font-weight:700}

/* A visão mensal mantém cada dia dividido em dois turnos empilhados. */
.cal-day{display:flex;flex-direction:column;min-height:270px!important;padding:0!important;overflow:hidden}
.cal-day-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:10px 11px 7px;border-bottom:1px solid #e5eef1;background:rgba(255,255,255,.82)}
.cal-day-head .cal-date{margin:0;font-weight:800;color:#38566a}
.cal-day-head .cal-closed{padding:4px 7px;border-radius:999px;background:#edf2f4;color:#78909a;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cal-day-head .cal-add{color:#0a91a1;font-size:9px;font-weight:750;opacity:0;transition:opacity .16s ease}
.cal-day:hover .cal-add{opacity:1}
.cal-day-holiday{padding:7px 8px 3px;background:#fffaf0}
.cal-day-holiday .cal-event{margin:0}
.cal-day-periods{display:grid;grid-template-rows:1fr 1fr;flex:1;min-height:220px}
.cal-period-lane{display:flex;flex-direction:column;min-height:108px;margin:0!important;padding:8px 8px 7px!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,#f8fcfd,#fff)!important}
.cal-period-lane+.cal-period-lane{border-top:2px solid #d5e7ea!important;background:linear-gradient(135deg,#fff,#fbfaff)!important}
.cal-period-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:17px;margin-bottom:4px}
.cal-period-label{margin:0;color:#557786;font-size:9px;letter-spacing:.13em}
.cal-period-count{display:grid;place-items:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;border-radius:999px;background:#e7f5f6;color:#0b8691;font-size:9px;font-weight:800}
.cal-period-empty{margin:auto 0;color:#9aabb2;font-size:9px;font-style:normal;text-align:center}
.cal-period-lane .cal-event{margin:3px 0;padding:7px 8px;border-radius:9px;box-shadow:0 4px 10px rgba(21,75,89,.08)}
.cal-period-lane .cal-event+.cal-event{margin-top:4px}
.cal-period-lane .cal-event-name{font-size:10px}
.cal-period-lane .cal-event-professor{font-size:9px}
.cal-period-lane .cal-more-events{margin:3px 2px 0;font-size:9px}
.cal-day.holiday-disabled .cal-day-periods{background:#fffdf8}
.cal-day.holiday-disabled .cal-period-lane{opacity:.72}

/* A visão semanal usa as mesmas duas faixas: manhã acima e tarde abaixo. */
.cal-week-period-title{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 12px;border-top:2px solid #d5e7ea;border-bottom:1px solid #dcebed;background:linear-gradient(110deg,#f8fcfd,#fff);color:#426b79;font-size:13px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.cal-week-period-title.afternoon{background:linear-gradient(110deg,#fff,#fbfaff)}
.cal-week-period-slot{position:relative;min-height:150px;padding:9px;background:linear-gradient(135deg,#f8fcfd,#fff);border-right:1px solid #dcebed;border-bottom:1px solid #dcebed}
.cal-week-period-slot:nth-of-type(8n){border-right:0}
.cal-week-period-slot.afternoon{background:linear-gradient(135deg,#fff,#fbfaff)}
.cal-week-period-slot .cal-event{margin:4px 0;padding:8px 9px;border-radius:9px;box-shadow:0 4px 10px rgba(21,75,89,.08)}
.cal-week-period-slot.weekend-disabled,.cal-week-period-slot.holiday-disabled{display:grid;place-items:center;background:repeating-linear-gradient(135deg,#f5f7f8,#f5f7f8 8px,#f1f4f5 8px,#f1f4f5 16px);color:#96a5ab}
.cal-week-period-slot.holiday-disabled{background:linear-gradient(145deg,#fffaf0,#fff4cf);color:#8b681d}

/* O filtro por sigla usa exatamente o mesmo acabamento dos demais filtros. */
.calendar-filters{grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(180px,1fr)!important}
.calendar-filters select[data-cal-type]{min-height:44px!important;padding:12px 14px!important;border:1px solid var(--line-strong)!important;border-radius:12px!important;background:#fbfdfe!important;color:var(--ink)!important;font-size:14px!important;font-weight:600!important;box-shadow:inset 0 1px 2px rgba(18,57,75,.025)!important}
.calendar-filters select[data-cal-type]:hover{border-color:#a7cbd4!important;background:#fff!important}
@media(max-width:1100px){.calendar-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.calendar-filters .calendar-legend{grid-column:1/-1;text-align:left}}
@media(max-width:780px){.calendar-filters{grid-template-columns:1fr!important}.calendar-filters .calendar-legend{grid-column:auto}}
 .cal-event-confirmation{display:inline-flex;align-items:center;margin-left:6px;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800;background:#fff1c8;color:#8b6512}.cal-event-confirmation.is-confirmed{background:#dff7ef;color:#08795d}.cal-event-confirmation.is-declined{background:#ffe4e8;color:#a52443}.cal-event-confirmation.is-expired{background:#edf0f2;color:#6b7780}.cal-event-alert{margin-left:4px;color:#e19b25;font-size:14px}.agenda-modal-confirmation{grid-column:1/-1;padding:16px 18px;border:1px solid #dcebee;border-radius:14px;background:#f7fbfc}.agenda-modal-confirmation small{display:block;color:#6e8999;font-size:10px;font-weight:800;letter-spacing:.1em}.agenda-modal-confirmation>strong{display:block;margin-top:5px;color:#15384d}.agenda-confirmation-history{margin-top:12px;display:grid;gap:7px}.agenda-confirmation-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:9px 0;border-top:1px solid #e2edf0;font-size:13px}.agenda-confirmation-row b{font-size:12px}.agenda-confirmation-row b.status-confirmed{color:#08795d}.agenda-confirmation-row b.status-declined{color:#a52443}.agenda-confirmation-row b.status-pending{color:#9a7415}.agenda-confirmation-row em{grid-column:1/-1;color:#6f8592;font-style:normal;font-size:12px}
.agenda-confirmation-row select{border:1px solid #cfe2e7;border-radius:8px;padding:5px 8px;background:#fff;color:#315469;font:inherit;font-size:12px}.agenda-confirmation-resend{border:0;border-radius:8px;padding:6px 9px;background:#e7f6f4;color:#087f85;font-weight:700;font-size:11px;cursor:pointer;white-space:nowrap}.agenda-confirmation-resend:disabled{opacity:.6}.agenda-confirmation-person{display:flex;align-items:center;gap:9px;min-width:0}.agenda-confirmation-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#183d52;font-weight:700}.agenda-confirmation-signal{width:12px;height:12px;flex:0 0 12px;border-radius:50%;background:#e5a52b;box-shadow:0 0 0 4px rgba(229,165,43,.12),0 2px 6px rgba(24,61,82,.18)}.agenda-confirmation-signal.is-confirmed{background:#16b58a;box-shadow:0 0 0 4px rgba(22,181,138,.13),0 2px 6px rgba(22,181,138,.25)}.agenda-confirmation-signal.is-declined{background:#e0526f;box-shadow:0 0 0 4px rgba(224,82,111,.12),0 2px 6px rgba(224,82,111,.22)}.agenda-confirmation-signal.is-expired{background:#8998a1;box-shadow:0 0 0 4px rgba(137,152,161,.12),0 2px 6px rgba(137,152,161,.2)}.agenda-confirmation-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px}.agenda-confirmation-requested{grid-column:1/-1;display:block;margin-top:-1px;color:#58788a;font-size:11px;font-weight:700}.agenda-confirmation-row.is-confirmed .agenda-confirmation-name{color:#08795d}.agenda-confirmation-row.is-declined .agenda-confirmation-name{color:#a52443}.agenda-confirmation-row.is-expired .agenda-confirmation-name{color:#687983}@media(max-width:640px){.agenda-confirmation-row{grid-template-columns:1fr;gap:8px}.agenda-confirmation-controls{justify-content:flex-start}.agenda-confirmation-resend{font-size:10px}}

/* Cartão completo da agenda: professores, sigla, cidade, PAX e confirmação individual. */
.cal-event:not(.holiday-event){min-height:224px!important;padding:14px 15px!important;gap:10px!important;white-space:normal!important;overflow:visible!important}
.cal-event-participants{display:flex;align-items:flex-start;gap:9px;min-height:55px;overflow:hidden}
.cal-event-participant{display:flex;flex:0 0 42px;min-width:0;flex-direction:column;align-items:center;gap:4px;color:#284f5e;font-size:8px;font-weight:850;line-height:1;text-align:center}
.cal-participant-avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;border:2px solid rgba(255,255,255,.9);border-radius:50%;overflow:visible;background:color-mix(in srgb,var(--avatar-color,#11a8b5),white 76%);color:var(--avatar-color,#087eaa);font-size:13px;font-weight:900;box-shadow:0 5px 13px rgba(18,75,90,.18)}
.cal-participant-avatar>img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.cal-participant-avatar>b{font-size:10px;color:#337083}
.cal-participant-name{display:block;width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-participant-signal{position:absolute;z-index:2;right:-3px;top:-2px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#e7a426;box-shadow:0 2px 6px rgba(34,70,80,.24)}
.cal-participant-signal.is-confirmed{display:grid;place-items:center;width:17px;height:17px;right:-5px;top:-4px;background:#16b58a;color:#fff;font-size:10px;font-weight:1000;line-height:1}
.cal-participant-signal.is-declined{background:#e0526f}
.cal-participant-signal.is-expired{background:#8998a1}
.cal-event-participant-more .cal-participant-avatar{border-style:dashed;background:rgba(255,255,255,.55)}
.cal-event-title-row{display:flex;align-items:flex-start;gap:7px;min-width:0}
.cal-event-title-row .cal-event-name{order:initial!important;flex:1;min-width:0;margin:0!important;color:#123c4e!important;font-size:15px!important;font-weight:900!important;line-height:1.2!important;white-space:normal!important}
.cal-event-type{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:22px;padding:0 7px;border:1px solid rgba(255,255,255,.72);border-radius:8px;background:rgba(255,255,255,.68);color:#08738d;font-size:9px;font-weight:950;letter-spacing:.05em;box-shadow:0 3px 8px rgba(18,75,90,.08)}
.cal-event-modality{flex:0 1 auto;display:inline-flex;align-items:center;justify-content:center;max-width:112px;height:22px;padding:0 8px;border:1px solid rgba(16,143,155,.16);border-radius:8px;background:rgba(231,249,247,.9);color:#087a82;font-size:9px;font-weight:850;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 3px 8px rgba(18,75,90,.06)}
.cal-event-facts{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;align-items:center}
.cal-event-facts>span{min-width:0;padding:4px 6px;border:1px solid rgba(255,255,255,.58);border-radius:7px;background:rgba(255,255,255,.48);color:#3f6876;font-size:8px;font-weight:850;line-height:1.15}
.cal-event-facts .cal-event-code{max-width:none!important;font-size:8px!important;padding:4px 6px!important}
.cal-event-city{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-event-pax{white-space:nowrap;color:#176f68!important}
.cal-event-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;margin-top:auto;padding-top:8px;border-top:1px solid rgba(255,255,255,.52)}
.cal-event-footer .cal-event-time{order:initial!important;display:flex!important;align-items:center!important;gap:4px!important;margin:0!important;padding:0!important;min-width:0;flex-wrap:wrap}
.cal-event-footer .cal-event-time .cal-event-period{display:none!important}
.cal-event-footer .cal-event-time time{padding:4px 6px!important;border-radius:7px;background:rgba(255,255,255,.55);font-size:9px!important}
.cal-event-footer .cal-event-range{font-size:8px!important;color:#4f7885!important}
.cal-event-footer .cal-event-status{flex:0 0 auto!important;margin:0!important;padding:5px 8px!important;font-size:9px!important}
.cal-event-footer .cal-event-status.status-declined{background:#ffe5e9!important;color:#b92f50!important}.cal-event-footer .cal-event-status.status-expired{background:#edf0f2!important;color:#697982!important}

/* Agenda: cartão leve, com hierarquia clara e a cor do tipo usada como acento. */
.cal-event.cal-event-button:not(.holiday-event){min-height:226px!important;padding:14px 14px 13px 17px!important;gap:9px!important;overflow:hidden!important;border:1px solid color-mix(in srgb,var(--color,#11a8b5),white 58%)!important;border-left:0!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(255,255,255,.98) 0%,color-mix(in srgb,var(--color,#11a8b5),white 94%) 100%)!important;box-shadow:inset 5px 0 0 var(--color,#11a8b5),0 8px 20px rgba(28,71,88,.11)!important}
.cal-event.cal-event-button:not(.holiday-event):before{background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--color,#11a8b5),transparent 72%),transparent 58%)!important;opacity:1!important}
.cal-event.cal-event-button:not(.holiday-event):after{right:12px;left:12px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--color,#11a8b5),white 52%),transparent);opacity:.38}
.cal-event.cal-event-button:not(.holiday-event):hover{transform:translateY(-3px)!important;border-color:color-mix(in srgb,var(--color,#11a8b5),white 38%)!important;background:#fff!important;box-shadow:inset 5px 0 0 var(--color,#11a8b5),0 14px 28px rgba(28,71,88,.16)!important}
.cal-event.cal-event-button .cal-event-participants{min-height:52px;padding:0 2px;gap:10px}
.cal-event.cal-event-button .cal-event-participant{color:#466573;font-weight:800}
.cal-event.cal-event-button .cal-participant-avatar{border-color:#fff;background:color-mix(in srgb,var(--avatar-color,#11a8b5),white 88%);box-shadow:0 4px 11px rgba(22,65,82,.14)}
.cal-event-heading{display:grid;gap:7px;min-width:0;padding:2px 1px 3px}
.cal-event-badges{display:flex;align-items:center;gap:6px;min-width:0}
.cal-event-heading .cal-event-name{display:-webkit-box!important;overflow:hidden!important;margin:0!important;color:#163b4c!important;font-size:15px!important;font-weight:900!important;line-height:1.24!important;letter-spacing:-.02em!important;white-space:normal!important;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.cal-event-heading .cal-event-modality,.cal-event-heading .cal-event-type{height:21px;border-color:color-mix(in srgb,var(--color,#11a8b5),white 67%);background:color-mix(in srgb,var(--color,#11a8b5),white 91%);color:color-mix(in srgb,var(--color,#11a8b5),#153b4c 38%);box-shadow:none}
.cal-event-heading .cal-event-type{margin-left:auto;background:#fff;font-weight:950}
.cal-event.cal-event-button .cal-event-facts{gap:6px;padding-top:7px;border-top:1px solid #e8eff1}
.cal-event-schedule{display:block;overflow:hidden;margin-top:6px;color:#56727d;font-size:8px;font-weight:800;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.cal-event.cal-event-button .cal-event-facts>span{padding:5px 7px;border-color:#e1ebee;background:rgba(255,255,255,.82);color:#58717d;box-shadow:0 2px 7px rgba(24,68,84,.045)}
.cal-event.cal-event-button .cal-event-pax{color:#13766f!important}
.cal-event.cal-event-button .cal-event-footer{padding-top:8px;border-top:1px solid #e8eff1}
.cal-event.cal-event-button .cal-event-footer .cal-event-time time{border:1px solid #e2ecef;background:#f7fafb;color:#617985;box-shadow:none}
.cal-event.cal-event-button .cal-event-footer .cal-event-status{box-shadow:none!important}
@media(max-width:1200px){.cal-event.cal-event-button .cal-event-participants{gap:6px}.cal-event-heading .cal-event-name{font-size:14px!important}.cal-event.cal-event-button:not(.holiday-event){padding-right:12px!important;padding-left:15px!important}}
@media(max-width:1200px){.cal-event-participants{gap:5px}.cal-event-participant{flex-basis:38px}.cal-participant-avatar{width:34px;height:34px}.cal-participant-name{width:40px}.cal-event-facts{grid-template-columns:1fr 1fr}.cal-event-city{grid-column:1/-1;grid-row:2}.cal-event-pax{text-align:right}}
.analytics-card-wide{grid-column:span 2}.report-analytics-grid .analytics-card:nth-child(3){grid-column:span 2}.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head h3{font-size:0}.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head h3:after{content:'Eventos e Aulas por Tipo';font-size:16px}.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head small{font-size:0}.report-analytics-grid .analytics-card:nth-child(4) .analytics-card-head small:after{content:'POR TIPO';font-size:9px}.analytics-card-head .analytics-legend{display:flex;gap:10px;margin-left:auto;color:#6e8591;font-size:10px;font-weight:750}.analytics-legend span{display:inline-flex;align-items:center;gap:5px}.analytics-legend i{display:inline-block;width:8px;height:8px;border-radius:3px;background:#0b91a1}.analytics-legend i.legend-event{background:#795bd1}@media(max-width:780px){.analytics-card-wide,.report-analytics-grid .analytics-card:nth-child(3){grid-column:auto}.analytics-card-head .analytics-legend{margin-left:0;margin-top:8px}}

/* Relatórios: matriz de professor por sigla e painel analítico. */
.report-type-matrix{margin-top:20px;padding:26px;overflow:hidden}.report-type-matrix-head{align-items:flex-start}.report-type-matrix-head h2,.report-analytics-heading h2{margin:6px 0 5px;color:#18394c;font-size:25px;letter-spacing:-.035em}.matrix-legend{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto;color:#597384;font-size:12px;font-weight:750}.matrix-legend span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e0ecef;border-radius:999px;background:#fbfdfd}.matrix-dot{width:8px;height:8px;border-radius:50%;background:#119bad}.matrix-dot.event{background:#8468dc}.type-matrix-scroll{margin-top:4px;border-radius:15px}.type-matrix-table{min-width:900px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.type-matrix-table th,.type-matrix-table td{padding:12px 10px;text-align:center;white-space:nowrap}.type-matrix-table thead tr:first-child th{height:44px;background:#eff8f9;color:#1a485d;font-size:11px}.type-matrix-table thead tr:nth-child(2) th{background:#f8fbfc;color:#6a8793;font-size:9px}.type-matrix-table .matrix-professor{position:sticky;left:0;z-index:3;min-width:200px;text-align:left;background:#f5fafb}.type-matrix-table tbody .matrix-professor{background:#fff;color:#274a5c}.type-matrix-table tbody tr:hover .matrix-professor{background:#f6fbfb}.type-matrix-table .matrix-type{position:relative;color:var(--matrix-accent,#087eaa)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--matrix-accent,#087eaa),white 88%),#f8fbfc)!important}.type-matrix-table .matrix-type:after{position:absolute;right:0;bottom:7px;left:0;width:24px;height:3px;margin:auto;border-radius:4px;background:var(--matrix-accent,#087eaa);content:""}.matrix-total-group{background:#e7f5f4!important;color:#087c76!important}.matrix-total-cell{background:#f4fbfa;color:#16675f;font-weight:800}.matrix-grand-total{background:#dff3f0;color:#08736f;font-weight:900}.type-matrix-table tfoot th,.type-matrix-table tfoot td{background:#173d50;color:#fff;border-color:#285468;font-weight:850}.type-matrix-table tfoot th{text-align:left}.type-matrix-table tfoot td:last-child{background:#0b928c}.report-analytics{margin:30px 0 4px}.report-analytics-heading{margin:0 0 14px}.report-analytics-heading .eyebrow{color:#0b8791}.report-analytics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.analytics-card{min-height:300px;padding:20px!important;overflow:hidden}.analytics-card-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}.analytics-card-head small{display:block;color:#71909c;font-size:9px;font-weight:850;letter-spacing:.1em}.analytics-card-head h3{margin:4px 0 0;color:#204459;font-size:16px;letter-spacing:-.02em}.analytics-index{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e5f5f5;color:#0a8490;font-size:11px;font-weight:900}.analytics-bar-chart{display:flex;align-items:flex-end;gap:8px;height:210px;padding:17px 3px 0;border-bottom:1px solid #dce9ed}.analytics-bar-item{display:flex;flex:1;flex-direction:column;justify-content:flex-end;min-width:0;height:100%;text-align:center}.analytics-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:170px}.analytics-bar{position:relative;display:block;min-width:8px;width:calc(50% - 2px);max-width:22px;min-height:2px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#20b7ba,#087d98);box-shadow:0 5px 12px rgba(8,125,152,.15);transition:height .45s ease}.analytics-bar.secondary{background:linear-gradient(180deg,#a58af1,#7052cf);box-shadow:0 5px 12px rgba(112,82,207,.15)}.analytics-bar b{position:absolute;bottom:calc(100% + 4px);left:50%;display:none;transform:translateX(-50%);color:#41606f;font-size:9px}.analytics-bar-item:hover .analytics-bar b{display:block}.analytics-bar-item small{display:block;overflow:hidden;margin-top:10px;color:#6b8490;font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.analytics-bar-chart.single .analytics-bar{width:min(28px,72%);max-width:28px}.analytics-bar-chart.event-chart .analytics-bar{background:linear-gradient(180deg,#aa91f5,#7256d0);box-shadow:0 5px 12px rgba(112,82,207,.15)}.analytics-empty{align-self:center;width:100%;padding:24px;color:#788f99;font-size:13px;text-align:center}@media(max-width:1250px){.report-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.report-type-matrix{padding:18px}.report-type-matrix-head{display:block}.matrix-legend{margin:14px 0 0}.type-matrix-table .matrix-professor{min-width:160px}.report-analytics-grid{grid-template-columns:1fr}.analytics-card{min-height:280px}.report-analytics-heading h2,.report-type-matrix-head h2{font-size:22px}}

/* Relatórios: filtros únicos e consistentes para toda a página. */
.report-filters{position:relative;z-index:12;display:grid!important;grid-template-columns:repeat(7,minmax(120px,1fr));align-items:end;gap:14px!important;padding:20px!important}
.report-filter-field{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;color:#3b5568;font-size:13px;font-weight:750}
.report-filter-field>span:first-child{line-height:1.2}
.report-filter-field select,.report-multiselect summary{width:100%;height:48px;min-height:48px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fbfdfe;color:var(--ink);font:650 14px/1.2 inherit;outline:none;box-shadow:inset 0 1px 2px rgba(18,57,75,.025);transition:.16s ease}
.report-filter-field select:hover,.report-multiselect summary:hover{border-color:#a7cbd4;background:#fff}
.report-multiselect{position:relative}
.report-multiselect summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;white-space:nowrap}
.report-multiselect summary::-webkit-details-marker{display:none}
.report-multiselect summary:after{width:7px;height:7px;border-right:2px solid #5c7686;border-bottom:2px solid #5c7686;transform:rotate(45deg) translateY(-2px);content:"";transition:.16s ease}
.report-multiselect[open] summary,.report-multiselect.has-selection summary{border-color:#87cbd1;background:#f5fcfc;box-shadow:var(--shadow-focus)}
.report-multiselect[open] summary:after{transform:rotate(225deg) translate(-2px,-2px)}
.report-multiselect-menu{position:absolute;z-index:30;top:calc(100% + 7px);left:0;width:max(100%,250px);max-height:290px;padding:8px;overflow:auto;border:1px solid #cfe1e6;border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(16,58,78,.18)}
.report-multiselect-menu label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;min-height:39px;margin:0;padding:8px 9px;border-radius:9px;color:#345267!important;font-size:13px!important;font-weight:600!important;cursor:pointer}
.report-multiselect-menu label:hover{background:#eef9f8;color:#087b83!important}
.report-multiselect-menu input[type=checkbox]{flex:0 0 17px;width:17px!important;height:17px;min-height:17px!important;margin:0;padding:0}
.report-multiselect-menu span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-filter-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:10px;padding-top:3px}
.report-filter-actions .button{min-width:128px}
@media(max-width:1350px){.report-filters{grid-template-columns:repeat(4,minmax(150px,1fr))}}
@media(max-width:900px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-actions{grid-column:1/-1}}
@media(max-width:560px){.report-filters{grid-template-columns:1fr}.report-filter-actions{display:grid;grid-template-columns:1fr}.report-filter-actions .button{width:100%}.report-multiselect-menu{width:100%}}
.agenda-modal-delete-button{min-height:46px;padding:12px 18px;border:0;border-radius:12px;background:#d95367;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(217,83,103,.18)}.agenda-modal-delete-button:hover{background:#b83d51}
/* Keep the consolidated totals visible while the wide matrix is scrolled. */
.type-matrix-scroll{position:relative}
.type-matrix-table thead tr:first-child .matrix-total-group{position:sticky;right:0;z-index:5;min-width:174px;background:#e7f5f4!important;box-shadow:-10px 0 16px rgba(23,61,80,.08)}
.type-matrix-table thead tr:nth-child(2) th:nth-last-child(-n+3),.type-matrix-table tbody tr>td:nth-last-child(-n+3),.type-matrix-table tfoot tr>td:nth-last-child(-n+3){position:sticky;z-index:4;width:58px;min-width:58px}
.type-matrix-table thead tr:nth-child(2) th:nth-last-child(3),.type-matrix-table tbody tr>td:nth-last-child(3),.type-matrix-table tfoot tr>td:nth-last-child(3){right:116px}
.type-matrix-table thead tr:nth-child(2) th:nth-last-child(2),.type-matrix-table tbody tr>td:nth-last-child(2),.type-matrix-table tfoot tr>td:nth-last-child(2){right:58px}
.type-matrix-table thead tr:nth-child(2) th:last-child,.type-matrix-table tbody tr>td:last-child,.type-matrix-table tfoot tr>td:last-child{right:0}
.type-matrix-table thead tr:nth-child(2) th:nth-last-child(-n+3){background:#f8fbfc;box-shadow:-10px 0 16px rgba(23,61,80,.06)}
.type-matrix-table tbody tr>td:nth-last-child(3),.type-matrix-table tbody tr>td:nth-last-child(2),.type-matrix-table tbody tr>td:last-child{box-shadow:-10px 0 16px rgba(23,61,80,.06)}
.type-matrix-table tfoot tr>td:nth-last-child(-n+3){background:#173d50;box-shadow:-10px 0 16px rgba(5,35,48,.2)}
.type-matrix-table tfoot tr>td:last-child{background:#0b928c}
.managed-date-assignments{display:grid;gap:10px;padding:16px 18px;border:1px solid #d6e8eb;border-radius:14px;background:#f8fcfc}.managed-date-assignments>strong{color:#244d5e;font-size:13px}.managed-date-assignments>small{margin-top:-6px;color:#7b929b;font-size:11px}.managed-date-assignments>div{display:grid;gap:10px}.managed-date-professor{min-width:0;margin:0;padding:10px 12px;border:1px solid #dcebed;border-radius:11px;background:#fff}.managed-date-professor legend{padding:0 5px;color:#0b7f87;font-size:11px;font-weight:800}.managed-date-options{display:flex;flex-wrap:wrap;gap:7px}.managed-date-options label{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:30px!important;margin:0!important;padding:5px 8px!important;border:1px solid #d9e8eb;border-radius:8px;background:#fbfefe;color:#587582;font-size:10px!important;font-weight:700!important;cursor:pointer}.managed-date-options label:has(input:checked){border-color:#76c9c6;background:#e8f8f5;color:#08766f}.managed-date-options input{width:14px!important;min-height:14px!important;margin:0!important}
.managed-events-table th:last-child,.managed-events-table td:last-child{position:sticky;right:0;min-width:178px;background:#fff;box-shadow:-8px 0 16px rgba(18,57,75,.08);z-index:2}.managed-events-table thead th:last-child{background:#f5f9fa;z-index:3}.managed-events-table tbody tr:hover td:last-child{background:#f6fbfb!important}.managed-events-table .user-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.managed-events-table .text-action{white-space:nowrap}
