/* Dental-EMT – notifications center. Scoped to new notification elements. */
#emt-notification-trigger{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;border-radius:50%;border:1px solid transparent;background:transparent;color:inherit;cursor:pointer;padding:7px;margin-left:auto;margin-right:2px}
#emt-notification-trigger svg{width:24px;height:24px;display:block}
#emt-notification-trigger:hover,#emt-notification-trigger:focus-visible{background:rgba(116,133,145,.13)}
#emt-notification-trigger[hidden]{display:none!important}
#emt-notification-trigger .emt-notification-badge{position:absolute;top:-3px;right:-5px;min-width:18px;height:18px;padding:1px 4px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;background:#d62939;border:2px solid var(--bg,#fff);font-size:11px;line-height:1;font-weight:750;white-space:nowrap}
#emt-notification-trigger .emt-notification-badge[hidden]{display:none!important}
#tabs .nav-badge:not([hidden]){border-radius:999px;color:#fff;background:#d62939;font-weight:700;min-width:17px;line-height:1.1;text-align:center}
#emt-notification-dialog{position:fixed;inset:0;border:none;padding:0;margin:auto 0 0 auto;max-width:min(440px,100%);width:min(440px,100%);height:min(100dvh,900px);max-height:100dvh;background:var(--surface,#fff);color:inherit;box-shadow:0 10px 38px rgba(0,0,0,.28);overflow:hidden;border-radius:18px 0 0 18px}
#emt-notification-dialog::backdrop{background:rgba(0,0,0,.42)}
.emt-notification-panel{display:flex;flex-direction:column;height:100%;min-height:0}
.emt-notification-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid rgba(128,128,128,.18);flex:0 0 auto}
.emt-notification-head h2{font-size:1.17rem;margin:0}
#emt-notification-close{font-size:26px;font-weight:400;line-height:1;background:transparent;border:none;color:inherit;width:40px;height:40px;border-radius:9px;cursor:pointer}
.emt-notification-summary{padding:16px 18px 12px;font-size:.95rem;font-weight:600}
.emt-notification-list{overflow:auto;flex:1;min-height:0;padding:0 12px 10px}
.emt-notification-entry{width:100%;display:flex;align-items:center;gap:11px;padding:14px 8px;background:transparent;color:inherit;text-align:left;border:none;border-bottom:1px solid rgba(128,128,128,.14);cursor:pointer;border-radius:6px}
.emt-notification-entry:hover,.emt-notification-entry:focus-visible{background:rgba(125,125,125,.1)}
.emt-notification-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(0,110,155,.11);flex:0 0 auto}
.emt-notification-icon svg{width:22px;height:22px}
.emt-notification-entry-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.emt-notification-entry-text strong{font-size:.97rem}
.emt-notification-entry-text small{opacity:.72;font-size:.77rem;line-height:1.25}
.emt-notification-count{min-width:23px;text-align:center;border-radius:999px;background:#d62939;color:white;padding:4px 6px;font-weight:700;font-size:.75rem}
.emt-notification-count.is-zero{background:rgba(128,128,128,.14);color:inherit}
.emt-notification-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 18px 20px;border-top:1px solid rgba(128,128,128,.18);font-size:.73rem;line-height:1.3}
.emt-notification-foot span{opacity:.78}
#emt-notification-refresh{font-size:.77rem;white-space:nowrap}
@media(max-width:580px){#emt-notification-dialog{width:100%;max-width:100%;height:100dvh;border-radius:0}#emt-notification-trigger{width:40px;height:40px;min-width:40px}}
@media(prefers-reduced-motion:reduce){#emt-notification-dialog *{scroll-behavior:auto!important}}
/* Keep notification bell and account button adjacent on an existing flex header. */
body > header #account{margin-left:0}
[data-theme="dark"] #emt-notification-dialog{background:#142630;color:#f3f7fa}
[data-theme="dark"] #emt-notification-trigger .emt-notification-badge{border-color:#142630}
