/* Harmonized notification design across Sysadmin, Administrator,
   Admin Cabang and Supervisor. Presentation-only; role scopes are unchanged. */
.notify-panel.notify{
  width:min(510px,calc(100vw - 24px))!important;
  max-height:min(650px,calc(100dvh - 92px))!important;
  border-radius:18px!important;
  border-color:#dce9e1!important;
  box-shadow:0 22px 60px rgba(16,58,38,.16)!important;
}
.notify-panel.notify .notify-header{
  min-height:72px!important;padding:16px 18px!important;
  border-bottom:1px solid #e9f0eb!important;
}
.notify-panel.notify .notify-heading>div:last-child{min-width:0}
.notify-panel.notify .notify-heading-icon{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  border-radius:12px!important;
}
.notify-panel.notify .notify-header b{font-size:15px!important;line-height:1.35!important}
.notify-panel.notify .notify-header small{font-size:11.5px!important;line-height:1.5!important}
/* Branch notice summary has its own clear two-line heading. */
.notify-panel.notify .ui-branch-notify-title-variant{
  display:flex!important;align-items:center!important;gap:10px!important;
  padding:12px 18px!important;min-height:64px!important;
  border-bottom:1px solid #e5eee7!important;background:#f7faf8!important;
}
.notify-panel.notify .ui-branch-title-icon{
  width:36px;height:36px;flex:0 0 36px;
  border-radius:11px;background:#e6f4eb;display:grid;place-items:center;
}
.notify-panel.notify .ui-branch-title-icon i{font-size:16px!important;color:#168458!important}
.notify-panel.notify .ui-branch-title-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.notify-panel.notify .ui-branch-title-text b{font-size:12.5px!important;color:#244b38!important;line-height:1.3!important}
.notify-panel.notify .ui-branch-title-text small{font-size:11px!important;font-weight:400;color:#6c8575;line-height:1.4}
/* One card style in all notification categories, including decision rows. */
.notify-panel.notify .notify-content{
  display:block!important;flex:1 1 auto!important;min-height:0!important;
  padding:12px 14px!important;overflow-y:auto!important;overscroll-behavior:contain;
}
.notify-panel.notify .notify-content .notify-item,
.notify-panel.notify .notify-content .hris-bpjs-item-variant{
  display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;
  align-items:start!important;gap:11px!important;
  width:100%!important;min-height:76px;
  padding:13px!important;margin:0 0 9px!important;
  text-align:left!important;border:1px solid #e2ece5!important;
  border-radius:13px!important;background:#fff!important;
  box-shadow:0 2px 7px rgba(30,75,49,.025)!important;
  white-space:normal!important;cursor:pointer;
}
.notify-panel.notify .notify-content .notify-item:last-of-type{margin-bottom:0!important}
.notify-panel.notify .notify-content .notify-item:hover{
  background:#f8fcf9!important;border-color:#badbc5!important;
  box-shadow:0 5px 14px rgba(32,94,54,.055)!important;
}
.notify-panel.notify .notify-content .notify-item:focus-visible{
  outline:2px solid #399c73!important;outline-offset:2px!important;
}
.notify-panel.notify .notify-content .notify-item .birthday-mini-cake,
.notify-panel.notify .notify-content .hris-bpjs-item-variant .birthday-mini-cake{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  border-radius:11px!important;display:grid!important;place-items:center!important;
  font-size:16px!important;
}
.notify-panel.notify .notify-content .notify-item .birthday-person{
  min-width:0!important;width:100%!important;max-width:100%!important;
  padding:0!important;overflow:visible!important;line-height:1.45!important;
}
.notify-panel.notify .notify-content .notify-item .birthday-person>b,
.notify-panel.notify .notify-content .notify-item .birthday-person .ui-notice-name{
  color:#244434!important;font-size:13px!important;font-weight:750!important;
  line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;
}
.notify-panel.notify .notify-content .notify-item .birthday-person small{
  font-size:11.2px!important;line-height:1.5!important;color:#71877a!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
}
/* Pending and HRD decision: consistent header / status / reason / action. */
.notify-panel.notify .notify-content .ui-notice{
  min-height:112px!important;
}
.notify-panel.notify .ui-notice-body{display:flex!important;flex-direction:column!important;gap:5px!important}
.notify-panel.notify .ui-notice-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:10px!important;min-width:0!important;
}
.notify-panel.notify .ui-notice-head .ui-notice-name{flex:1 1 auto;min-width:0;display:block}
.notify-panel.notify .ui-notice-badge{
  display:inline-flex!important;align-items:center;justify-content:center;
  padding:4px 8px!important;min-height:23px;flex:0 0 auto;
  border-radius:7px!important;border:1px solid transparent;
  font-size:10px!important;line-height:1.3!important;font-weight:750!important;
  white-space:nowrap!important;
}
.notify-panel.notify .ui-notice-badge.is-pending{color:#926018!important;background:#fff7e8!important;border-color:#f1dfb9!important}
.notify-panel.notify .ui-notice-badge.is-approved{color:#17784c!important;background:#eaf7ed!important;border-color:#c6e8d3!important}
.notify-panel.notify .ui-notice-badge.is-rejected{color:#a74848!important;background:#fff0ef!important;border-color:#f0d2cd!important}
.notify-panel.notify .ui-notice-pending .ui-notice-icon{background:#fff4e7!important;color:#a7742b!important}
.notify-panel.notify .ui-notice-rejected .ui-notice-icon{background:#fff0ef!important;color:#bc5654!important}
.notify-panel.notify .ui-notice-approved .ui-notice-icon{background:#eaf7ee!important;color:#258758!important}
.notify-panel.notify .ui-notice-detail{display:block!important;margin:0!important;color:#61786a!important;font-weight:550!important}
.notify-panel.notify .ui-notice-department{display:flex!important;align-items:baseline;gap:5px;margin:0!important}
.notify-panel.notify .ui-notice-department i{font-size:10px;color:#81a58c}
.notify-panel.notify .ui-notice-reason{
  display:block!important;margin:3px 0 0!important;padding:8px 10px;
  background:#fff8f6;border:1px solid #f4e6e1;border-radius:8px;
  font-size:11px!important;line-height:1.5!important;color:#9e544b!important;
  overflow-wrap:anywhere;white-space:normal;
}
.notify-panel.notify .ui-notice-reason strong{font-weight:750!important}
.notify-panel.notify .ui-notice-bottom{
  display:flex!important;align-items:center;justify-content:space-between;
  gap:8px;flex-wrap:wrap;margin-top:4px!important;padding-top:7px;
  border-top:1px solid #edf2ee;
}
.notify-panel.notify .ui-notice-actor{margin:0!important;flex:1 1 160px;font-size:10.5px!important}
.notify-panel.notify .ui-notice-actor strong{color:#42694e;font-weight:700}
.notify-panel.notify .ui-notice-unread-variant{
  display:inline-flex!important;align-items:center;gap:5px;margin:0!important;
  color:#18835b!important;font-size:10.5px!important;
}
.notify-panel.notify .ui-notice-unread-variant i{font-size:6px!important}
.notify-panel.notify .ui-notice-open{
  display:inline-flex!important;align-items:center;gap:6px;flex:0 0 auto;
  color:#167950!important;font-size:10.8px!important;font-weight:750!important;
  white-space:nowrap!important;
}
.notify-panel.notify .ui-notice-open i{font-size:10px!important}
/* All tabs share card rhythm and text hierarchy, without changing existing actions. */
.notify-panel.notify .notify-content .employee-contract-alert .birthday-mini-cake{background:#fff2ed!important;color:#ad6255!important}
.notify-panel.notify .notify-content .hris-bpjs-item-variant .birthday-mini-cake{background:#eaf5f0!important;color:#258469!important}
.notify-panel.notify .notify-content .notify-birthday .birthday-mini-cake{background:#f2f2ff!important;color:#7776ad!important}
.notify-panel.notify .notify-content .hris-retirement-row .birthday-mini-cake{background:#eef4fc!important;color:#577b9d!important}
.notify-panel.notify .notify-content .birthday-date{
  display:inline-block!important;width:fit-content!important;max-width:100%!important;
  padding:5px 8px!important;margin-top:7px!important;
  border:1px solid #e0eae4!important;border-radius:7px!important;
  background:#f5f9f6!important;color:#446c54!important;
  font-size:10.8px!important;line-height:1.4!important;
  white-space:normal!important;
}
.notify-panel.notify .notify-content .birthday-item:disabled{opacity:.6;cursor:default}
.notify-panel.notify .notify-tabs{padding:10px 14px!important;gap:6px!important}
.notify-panel.notify .notify-tabs button{min-width:0!important}
.notify-panel.notify .notify-footer{flex:0 0 auto!important;padding:10px 14px 13px!important;border-top:1px solid #e7eee8!important}
.notify-panel.notify .ui-notify-footer .notify-see-all{
  width:100%!important;min-height:39px!important;border-radius:9px!important;
  background:#f0f8f3!important;border-color:#d6e9dd!important;
  font-size:11.5px!important;
}
.notify-panel.notify .ui-pager button{width:33px!important;height:33px!important}
@media(max-width:700px){
  .birthday-popover.employee-alert-popover.notify-panel.notify{
    left:10px!important;right:10px!important;top:65px!important;
    width:auto!important;
    /* Reserve the phone bottom navigation and a 12px gap so the pager remains visible. */
    max-height:calc(100dvh - 65px - var(--phone-bottom-bar, 0px) - var(--hris-phone-safe, 0px) - 12px)!important;
  }
  .notify-panel.notify .notify-header{padding:13px 14px!important;min-height:65px!important}
  .notify-panel.notify .ui-branch-notify-title-variant{padding:10px 14px!important;min-height:58px!important}
  .notify-panel.notify .notify-content{padding:10px 11px!important;min-height:110px!important}
  .notify-panel.notify .notify-content .notify-item,
  .notify-panel.notify .notify-content .hris-bpjs-item-variant{padding:11px!important;gap:10px!important;margin-bottom:8px!important}
  .notify-panel.notify .ui-notice-head{gap:8px!important}
  .notify-panel.notify .ui-notice-badge{font-size:9.8px!important;padding:4px 6px!important}
  .notify-panel.notify .notify-content .notify-item .birthday-person b{font-size:12.7px!important}
  .notify-panel.notify .notify-tabs{padding:10px 10px!important;gap:5px!important}
  .notify-panel.notify .notify-tabs button{font-size:10px!important;min-height:44px!important;padding:7px 3px!important}
}
@media(max-width:390px){
  .notify-panel.notify .ui-notice-head{flex-wrap:wrap!important}
  .notify-panel.notify .ui-notice-head .ui-notice-badge{margin-left:auto!important}
}
