/* Header approved 1 October 2026: equal icon buttons and compact mobile actions. */
.topbar{--header-button-size:44px;--header-gap:8px;box-sizing:border-box;gap:var(--header-gap)}
.topbar .top-actions{display:flex;align-items:center;gap:var(--header-gap);min-width:0}
.topbar .notification-wrap{display:flex;align-items:center;flex:0 0 auto}
.topbar .icon-btn,.topbar .menu-toggle,.topbar .kiosk-home-button{box-sizing:border-box;width:var(--header-button-size);height:var(--header-button-size);min-height:var(--header-button-size);flex:0 0 auto;padding:0;border:1px solid #b888c1;border-radius:9px;background:#fff;color:#762b8a;align-items:center;justify-content:center;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
.topbar .icon-btn{display:inline-flex}
.topbar .icon-btn svg,.topbar .menu-toggle svg,.topbar .kiosk-home-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar .icon-btn:hover,.topbar .icon-btn:focus-visible,.topbar .menu-toggle:hover,.topbar .menu-toggle:focus-visible,.topbar .kiosk-home-button:hover,.topbar .kiosk-home-button:focus-visible{background:#fce9f4;border-color:#8b3f9c;box-shadow:0 0 0 1px #8b3f9c;color:#762b8a}
.topbar .icon-btn>svg{position:static;background:transparent}
.topbar .mobile-action-icon{display:none}
.topbar .kiosk-home-button{width:auto;padding:0 14px}
.topbar .kiosk-home-button[hidden]{display:none!important}
@media(max-width:780px){
 .topbar,.kiosk-mode .topbar{height:72px;width:100%;max-width:100%;padding:0 15px;--header-gap:6px}
 .topbar .breadcrumb,.topbar .role-switch{display:none!important}
 .topbar .menu-toggle{display:flex}
 body:not(.kiosk-mode) .topbar .icon-btn,.topbar .help-button,.topbar .kiosk-toggle{display:inline-flex!important}
 .topbar .top-actions{margin-left:auto;flex:0 0 auto}
 .topbar .quick-add,.topbar .renewal-quick{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--header-button-size);height:var(--header-button-size);min-height:var(--header-button-size);flex:0 0 auto;padding:0;border:0;border-radius:9px;font-size:14px;background:linear-gradient(135deg,#a2238e,#692d91);color:#fff;box-shadow:0 3px 8px rgba(122,50,143,.18)}
 .topbar .quick-add:hover,.topbar .renewal-quick:hover{background:linear-gradient(135deg,#b51b91,#572476)}
 .topbar .quick-add:first-letter{font-size:inherit}
 .topbar .action-label,.topbar .quick-add>.desktop-action-icon{display:none}
 .topbar .mobile-action-icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .topbar .kiosk-home-button{display:inline-flex;width:var(--header-button-size);padding:0}
 .topbar .notification-panel{max-width:calc(100vw - 24px);right:12px}
}
@media(max-width:375px){.topbar,.kiosk-mode .topbar{--header-button-size:38px;--header-gap:4px;padding:0 15px}}

/* Mobile toolbar: the only flexible space is between menu and alerts. */
@media(max-width:780px){
 .topbar{justify-content:flex-start}
 .topbar .top-actions{margin-left:auto;gap:var(--header-gap);flex-shrink:0}
 .topbar #quickAdd,.topbar #renewalQuick{width:var(--header-button-size);min-width:var(--header-button-size);max-width:var(--header-button-size);height:var(--header-button-size);min-height:var(--header-button-size);max-height:var(--header-button-size);padding:0;flex:0 0 var(--header-button-size)}
 .topbar #quickAdd .mobile-action-icon,.topbar #renewalQuick .mobile-action-icon{margin:0}
}
.notification-count[hidden]{display:none!important}
.notification-panel{max-height:min(70vh,600px);overflow-y:auto}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.notification-panel-head h3{margin:0}
.notification-panel-head button{font-size:14px;font-weight:700;color:#762b8a;background:#fff;border:1px solid #b888c1;border-radius:8px;padding:6px 8px;cursor:pointer}
.notification-message{font-size:14px;line-height:1.5;color:#78677e;margin:10px 0}
.notification-item b,.notification-item small{font-size:14px;overflow-wrap:anywhere}
.notification-item time{font-size:12px}
.notification-item.is-read i{background:#cbb7d0}
