.topbar .topbar-period{display:flex;align-items:center;padding:0;border:0;background:transparent}
.topbar #header-financial-year{width:132px;max-width:100%;min-height:36px;padding:7px 10px;border:1px solid #d8e3f1;border-radius:6px;background:#f7faff;color:#355273;font:600 12px/1.4 'DM Sans',sans-serif;cursor:pointer}
.header-clock-button{padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.header-clock-button:focus-visible,#header-financial-year:focus-visible{outline:2px solid #78aafa;outline-offset:3px}
.header-clock-button .topbar-clock{cursor:pointer}
.header-notification-list{display:grid;max-height:420px;overflow:auto;padding:12px;font-size:13px;line-height:1.5}
.header-notification-list>a{display:grid;gap:5px;padding:12px 4px;border-bottom:1px solid #dce5ef;color:#263b55;text-decoration:none}
.header-notification-list>a:hover{background:#edf4ff}
.header-notification-list small{color:#52647c;font-size:12px;line-height:1.5}
#header-calendar-dialog{box-sizing:border-box;width:min(980px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:clamp(12px,3vw,22px);border:1px solid #b8c8db;border-radius:12px;background:#fff;color:#263b55;font-size:14px}
#header-calendar-dialog h2{font-size:20px;margin:0 0 4px}
#header-calendar-dialog p{margin:0}
#header-calendar-dialog iframe{display:block;width:100%;height:clamp(240px,64dvh,650px);margin-block:14px;border:1px solid #d8e3f1;border-radius:8px;background:#fff}
#header-calendar-dialog::backdrop{background:#07162999}
.header-calendar-heading,.header-calendar-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dark #header-financial-year,.dark #header-calendar-dialog{background:#172b40;color:#e1ebf6;border-color:#526b86;color-scheme:dark}
.dark .header-notification-list>a{color:#e1ebf6;border-color:#344b64}
.dark .header-notification-list small{color:#b4c5d9}
.dark .header-notification-list>a:hover{background:#203956}
.notification-dot[hidden]{display:none!important}


/* Keep the clock and year selector visible at every viewport size. */
body .topbar .topbar-period{display:flex!important;flex:0 0 auto;min-width:0}
body .topbar .top-actions .header-clock-button{display:inline-flex!important;align-items:center;flex:0 0 auto;max-width:none}
body .topbar .top-actions .topbar-clock{display:block!important;white-space:nowrap;line-height:1.4}
body .topbar #header-financial-year{width:148px;min-height:36px;box-sizing:border-box;flex:none;padding:7px 10px;cursor:pointer}
@media(max-width:1180px){body .topbar .global-search{min-width:100px;flex:1 1 180px}body .topbar .top-actions{gap:8px}body .topbar #header-financial-year{width:128px}body .topbar .topbar-clock{font-size:11px;padding:7px}}
@media(max-width:900px){body .topbar{flex-wrap:wrap;height:auto;min-height:62px;gap:6px;padding-block:8px}body .topbar .top-actions{flex:1 1 auto!important;min-width:0;flex-wrap:wrap}body .topbar .top-actions .header-clock-button{margin-left:auto}body .topbar #header-financial-year{width:124px}body .topbar .topbar-clock{font-size:11px}}
@media(max-width:480px){body .topbar .top-actions{justify-content:flex-end;gap:6px}body .topbar .top-actions .header-clock-button{margin-left:0}body .topbar .topbar-clock{padding:6px;font-size:10px}body .topbar #header-financial-year{font-size:11px;width:120px}}
.header-notification-list [data-bell-reminders]{display:grid;gap:4px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #dce5ef}
.header-notification-list [data-bell-reminders]>a{display:grid;gap:4px;padding:10px 4px;text-decoration:none;color:inherit}
.dark .header-notification-list [data-bell-reminders]{border-color:#344b64}
/* Separate the dimmed backdrop from the opaque account drawer. */
.profile-menu-backdrop{position:fixed;inset:0;z-index:1999;background:rgba(7,22,41,.48)}
.profile-menu-backdrop[hidden]{display:none!important}
body.profile-menu-open{overflow:hidden}
body .profile-drawer{position:fixed;inset:0 0 0 auto;z-index:2000;isolation:isolate;width:min(360px,calc(100vw - 24px));max-width:100%;height:100dvh;box-sizing:border-box;padding:20px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;background:#fff;color:#263b55;border-left:1px solid #dce5ef;box-shadow:-12px 0 40px #07162933}
body .profile-drawer[hidden]{display:none!important}
body .profile-drawer:not([hidden])::before{content:none!important;display:none!important}
body .profile-drawer-close{align-self:flex-end;display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:1px solid #dce5ef;border-radius:8px;background:#f5f8fc;color:#304862;cursor:pointer}
body .profile-drawer-close>.app-icon{margin:0}
body .profile-drawer-heading{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:0 0 20px;border-bottom:1px solid #dce5ef}
body .profile-drawer-heading>.avatar{width:48px;height:48px;flex:0 0 48px}
body .profile-drawer-heading>span:last-child{display:grid;gap:5px;min-width:0}
body .profile-drawer-heading b{font-size:15px;line-height:1.5}
body .profile-drawer-heading small{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#52647c}
body .profile-drawer>a{display:flex;align-items:center;min-height:44px;padding:11px 12px;border-radius:8px;font-size:14px;line-height:1.5;text-decoration:none;color:#304862}
body .profile-drawer>a:hover{background:#edf4ff;color:#1756a9}
body .profile-drawer>[data-signout]{margin-top:auto;min-height:44px;padding:12px;border:1px solid #efbdc7;border-radius:8px;background:#fff1f3;color:#9c2942;text-align:left;font-size:14px;cursor:pointer}
body .profile-drawer :is(a,button):focus-visible{outline:2px solid #78aafa;outline-offset:2px}
body.dark .profile-drawer{background:#122437!important;color:#e1ebf6;border-color:#344b64}
body.dark .profile-drawer-close{background:#1b3045;color:#c5dcff;border-color:#526b86}
body.dark .profile-drawer-heading{border-color:#344b64}
body.dark .profile-drawer>a{color:#c5dcff}
body.dark .profile-drawer>a:hover{background:#203956}
body.dark .profile-drawer>[data-signout]{background:#422832;color:#ffb6c4;border-color:#a55c70}
