/* =========================================================
   DIPAYUDA - FLASH MESSAGE (replaces the bottom-right toast)
   Shown above the page content, as wide as the container.
   Used by: layout.php (server messages) and
   window.dpFlash(message, type) in assets/js/flash.js.
   ========================================================= */
.dp-flash-host{
  width:calc(100% - var(--container-gutter,32px));
  max-width:var(--container,1140px);
  margin:14px auto 0;
  display:flex;flex-direction:column;gap:8px;
  scroll-margin-top:76px;
}
.dp-flash-host:empty{display:none;margin:0}
.dp-flash-host.in-modal{width:auto;max-width:none;margin:0 0 12px}

.dp-flash{
  --fl-bg:#f6f8f8;--fl-line:#dbe5e2;--fl-ink:#27413b;--fl-ico:#5d7a73;
  display:flex;align-items:flex-start;gap:10px;
  padding:11px 10px 11px 13px;
  background:var(--fl-bg);border:1px solid var(--fl-line);border-radius:10px;
  color:var(--fl-ink);font-size:13px;line-height:1.5;
  animation:dpFlashIn .22s ease-out;
}
.dp-flash.is-success{--fl-bg:#f1faf5;--fl-line:#cde8d9;--fl-ink:#14573a;--fl-ico:#1f9d63}
.dp-flash.is-error{--fl-bg:#fdf2f0;--fl-line:#f0cbc5;--fl-ink:#8f2a1f;--fl-ico:#d6483a}
.dp-flash.is-info{--fl-bg:#f4f8fb;--fl-line:#d5e3ee;--fl-ink:#234a63;--fl-ico:#3b83b3}
.dp-flash-ico{flex:0 0 auto;width:18px;height:18px;margin-top:1px;color:var(--fl-ico)}
.dp-flash-ico svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dp-flash-text{flex:1;min-width:0;word-wrap:break-word;overflow-wrap:anywhere}
.dp-flash-close{
  flex:0 0 auto;width:22px;height:22px;margin:-1px 0 0;padding:0;border:0;border-radius:6px;
  background:transparent;color:var(--fl-ink);opacity:.55;cursor:pointer;
  font-size:18px;line-height:22px;text-align:center;
}
.dp-flash-close:hover{opacity:1;background:rgba(0,0,0,.05)}
.dp-flash-close:focus-visible{outline:2px solid var(--fl-ico);outline-offset:1px;opacity:1}
.dp-flash.is-leaving{opacity:0;transform:translateY(-4px);transition:opacity .18s,transform .18s}
@keyframes dpFlashIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:800px){
  .dp-flash-host{margin-top:10px}
  .dp-flash{font-size:12.5px;padding:10px 8px 10px 12px}
}
@media(prefers-reduced-motion:reduce){.dp-flash{animation:none}.dp-flash.is-leaving{transition:none}}

/* ===== Account status notice =====
   Uses the same theme components as the dashboard notices (.dashboard-notice, .notice-icon, .notice-body, .btn.mini).
   Color variants per status: inactive (neutral green, default), pending (.sub-notice-warn, already in profile.css), suspended (red). */
.dp-acct-wrap{width:calc(100% - var(--container-gutter,32px));max-width:var(--container,1140px);margin:14px auto 14px}
.dp-acct-wrap .dashboard-notice{margin:0;padding:11px 12px;gap:10px}
.dp-acct-wrap .dashboard-notice b{font-size:12.5px}
.dp-acct-wrap .dashboard-notice p{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dp-acct-wrap .notice-icon{width:22px;height:22px;flex:0 0 22px;font-size:12px}
.dashboard-notice.sub-notice-danger{background:#fff0ee;border-color:#f3cbc5}
.dashboard-notice.sub-notice-danger .notice-icon{background:#f6cdc7;color:#a12a1e}
.dashboard-notice.sub-notice-danger b{color:#7a2419}
.dashboard-notice.sub-notice-muted{background:var(--tint);border-color:var(--tint-line)}
.dashboard-notice.sub-notice-muted .notice-icon{background:#dcebe6;color:#456a60}
.btn.mini.notice-action.is-danger{background:#b83a2d;border-color:#b83a2d;color:#fff}
.btn.mini.notice-action.is-danger:hover{background:#9f2f24;border-color:#9f2f24}
@media(max-width:800px){
  .dp-acct-wrap{width:100%;max-width:430px;padding:0 12px;margin:10px auto 12px}
}
@media(max-width:560px){
  .dp-acct-wrap .dashboard-notice{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px 10px;align-items:start}
  .dp-acct-wrap .notice-icon{margin:0;align-self:start}
  .dp-acct-wrap .notice-action{grid-column:2;margin:2px 0 0;justify-self:start;align-self:start}
}

/* Email verification warning (layout.php, accounts with users.email_verified_at NULL while OTP is enabled) */
.dp-verify-notice{position:relative;padding-right:44px!important}
.dp-verify-notice .notice-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dp-verify-notice .notice-action{white-space:nowrap}
.dp-verify-close{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#85600a;cursor:pointer}
.dp-verify-close:hover{background:rgba(133,96,10,.1)}
.dp-verify-close:focus-visible{outline:2px solid #85600a;outline-offset:1px}
.dp-verify-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dp-verify-wrap[hidden]{display:none}
@media(max-width:800px){.dp-verify-close{top:8px;transform:none}}
