/* Kadex V33 visual system: executive clarity, operational density, mobile-first touch. */
:root{--kadex-navy:#10253b;--kadex-navy-deep:#0b1a2b;--kadex-red:#d71920;--kadex-gold:#c99a36;--kadex-paper:#f4f6f9;--kadex-border:#e1e7ee}
body{background:var(--kadex-paper)!important}
#appShell .shell{align-items:flex-start!important}
@media(min-width:801px){#appShell aside#side{position:sticky!important;top:72px!important;align-self:flex-start!important;height:calc(100dvh - 72px)!important;max-height:calc(100dvh - 72px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;flex:0 0 258px!important;z-index:60!important}#appShell .main{min-height:calc(100vh - 72px);padding:30px clamp(22px,2.6vw,42px)!important}}
#appShell .top{box-shadow:0 1px 0 rgba(16,37,59,.06),0 6px 20px rgba(16,37,59,.025)!important}
#appShell .nav-group-title{padding-left:13px!important}
#appShell .nav button{min-height:43px!important;transition:background .16s ease,color .16s ease,transform .16s ease!important}
#appShell .nav button:active{transform:scale(.99)}
#appShell .nav button.active{background:linear-gradient(90deg,#263e58,#1a3048)!important;box-shadow:inset 3px 0 var(--kadex-red)!important}
#appShell .card{box-shadow:0 2px 7px rgba(16,37,59,.025)!important;border-color:var(--kadex-border)!important}
#appShell .card h3{color:#17314a!important}
#appShell .primary{background:var(--kadex-red)!important;box-shadow:0 3px 9px rgba(215,25,32,.13)!important}
#appShell .primary:hover{background:#b9131a!important}
#appShell .secondary{border:1px solid #dbe2ea!important}
#appShell .page-head h1{letter-spacing:-.045em!important}
#appShell .kpi,#appShell .admin-kpi-card{border-radius:14px!important}
#appShell .tablewrap{box-shadow:0 2px 7px rgba(16,37,59,.025)!important}
/* Activity calendar */
.v33-calendar-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:25px 27px;margin:4px 0 18px;border-radius:18px;background:linear-gradient(115deg,#10253b,#193954);color:#fff;overflow:hidden;position:relative}
.v33-calendar-intro:after{content:"";position:absolute;width:230px;height:230px;border:1px solid #ffffff17;border-radius:50%;right:45px;top:-145px;box-shadow:0 0 0 28px #ffffff08,0 0 0 58px #ffffff05;pointer-events:none}
.v33-calendar-intro>div:first-child{position:relative;z-index:1;max-width:690px}.v33-calendar-intro h2{font-size:clamp(20px,2.2vw,28px);margin:7px 0 6px;letter-spacing:-.035em;color:#fff}.v33-calendar-intro p{margin:0;color:#c4d2df;font-size:13px;line-height:1.7}.v33-eyebrow{display:block;font-size:9px;font-weight:850;letter-spacing:.15em;color:#8da8c0}.v33-intro-mark{font-size:42px;color:#e3b34e;background:#ffffff12;border:1px solid #ffffff1d;border-radius:16px;width:74px;height:74px;display:grid;place-items:center;flex:0 0 auto;z-index:1}
.v33-activity-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 18px}.v33-activity-toolbar label{font-size:12px;font-weight:750;color:#34485d}.v33-activity-toolbar select{min-width:210px;max-width:100%;padding:10px 12px;border:1px solid #d6dee8;border-radius:10px;background:#fff;color:#20364d}.v33-activity-toolbar button{min-height:40px}
.v33-calendar-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);gap:16px;align-items:start}.v33-calendar-card,.v33-selected-card,.v33-recent-card{min-width:0}.v33-calendar-head{display:grid;grid-template-columns:40px 1fr 40px auto;align-items:center;gap:8px;margin-bottom:18px}.v33-calendar-head strong{text-align:center;color:#19314a;font-size:15px}.v33-calendar-head button{min-width:0;padding:8px 10px;font-size:20px;line-height:1}.v33-calendar-head .v33-today-btn{font-size:12px;font-weight:750}.v33-weekdays,.v33-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.v33-weekdays{margin-bottom:7px}.v33-weekdays span{text-align:center;color:#8492a3;font-size:10px;font-weight:800;padding:5px 0}.v33-day{border:1px solid transparent;background:#fff;border-radius:10px;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:8px 2px;color:#273c51;font-size:12px;position:relative;touch-action:manipulation}.v33-day:hover{background:#f6f8fb;border-color:#d9e2ed}.v33-day.outside{color:#b1bac5;background:#fafbfc}.v33-day.today{border-color:#d71920;font-weight:850}.v33-day.selected{background:#132c44;color:#fff;border-color:#132c44;box-shadow:0 4px 12px #10253b20}.v33-event-count{font-style:normal;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#fbe7e8;color:#b71920;font-size:9px;font-weight:850}.v33-day.selected .v33-event-count{background:#fff;color:#b71920}.v33-calendar-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:17px;padding-top:14px;border-top:1px solid #edf0f4;color:#68788a;font-size:11px}.v33-calendar-legend span{display:flex;align-items:center;gap:7px}.v33-legend-dot,.v33-legend-today{width:8px;height:8px;border-radius:50%;background:#d71920;display:inline-block}.v33-legend-today{background:#fff;border:2px solid #d71920;width:9px;height:9px}
.v33-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.v33-section-head h3{margin:5px 0 0;font-size:17px}.v33-count-pill{white-space:nowrap;border-radius:999px;background:#f0f4f8;color:#3f5870;padding:6px 9px;font-size:10px;font-weight:800}.v33-activity-row{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid #edf0f4;min-width:0}.v33-activity-row:last-child{border-bottom:0}.v33-activity-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#edf3f8;color:#244765;font-weight:800}.v33-activity-icon.receipt{background:#e9f8ef;color:#18794e}.v33-activity-icon.issue{background:#fff1e7;color:#a84a12}.v33-activity-copy{flex:1;min-width:0}.v33-activity-copy strong{display:block;color:#21384f;font-size:12px;overflow-wrap:anywhere}.v33-activity-copy p{margin:4px 0;color:#5c6d7f;font-size:11px;overflow-wrap:anywhere}.v33-activity-copy small{font-size:10px;color:#8b98a7;line-height:1.5}.v33-activity-row time{color:#8290a0;font-size:10px;white-space:nowrap;padding-top:2px}.v33-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 12px;color:#718096}.v33-empty>span{font-size:28px;color:#c1ccd8}.v33-empty strong{font-size:12px;color:#344b61;margin-top:8px}.v33-empty p{font-size:11px;line-height:1.6;max-width:270px;margin:5px 0 0}.v33-recent-card{margin-top:16px}.v33-recent-card .v33-activity-row{align-items:center}
@media(max-width:1050px){.v33-calendar-layout{grid-template-columns:minmax(0,1fr)}.v33-calendar-card{max-width:none}}
@media(max-width:800px){#appShell aside#side{position:fixed!important;top:0!important;height:100dvh!important;max-height:100dvh!important;z-index:220!important}.v33-calendar-intro{padding:20px 18px;border-radius:15px}.v33-intro-mark{width:54px;height:54px;font-size:30px}.v33-calendar-layout{grid-template-columns:minmax(0,1fr);gap:12px}.v33-calendar-card,.v33-selected-card,.v33-recent-card{padding:15px!important}.v33-day{min-height:46px;border-radius:8px;padding-top:6px}.v33-weekdays,.v33-days{gap:3px}.v33-event-count{min-width:15px;height:15px;font-size:8px}.v33-activity-toolbar{align-items:stretch}.v33-activity-toolbar label{width:100%}.v33-activity-toolbar select,.v33-activity-toolbar button{flex:1 1 100%;width:100%}.v33-calendar-head{grid-template-columns:36px 1fr 36px auto;gap:5px}.v33-calendar-head button{padding:8px 6px}.v33-calendar-head .v33-today-btn{font-size:11px}.v33-activity-row{gap:9px}.v33-activity-row time{font-size:9px}}
@media(max-width:380px){.v33-calendar-intro{padding:17px 14px}.v33-intro-mark{display:none}.v33-day{min-height:40px;font-size:11px}.v33-calendar-head{grid-template-columns:32px 1fr 32px}.v33-calendar-head .v33-today-btn{grid-column:1/-1}.v33-calendar-legend{gap:10px}}
