/* email_panel.css -- account EMAIL PANEL + icon (2026-12-02). ADP theme vars only (dark + html.light).
   Orange uppercase section titles; green / yellow / red keep their site meaning; cyan = active. */

/* ---------- the row icon: unread (amber, loud) + read (muted) ---------- */
.mtem-ico{display:inline-flex;align-items:center;gap:3px;height:18px;padding:0 4px 0 3px;margin-left:2px;border-radius:9px;
  border:1px solid transparent;background:none;color:var(--adp-mut,#8fa3bd);cursor:pointer;font-family:inherit;font-weight:800;font-size:10.5px;line-height:1;
  vertical-align:middle;white-space:nowrap}
.mtem-ico svg{width:14px;height:14px;flex:none}
.mtem-ico:hover,.mtem-ico:focus-visible{border-color:var(--adp-pulse,#22d3ee);outline:none}
.mtem-ico .mtem-n{display:inline-flex;align-items:center;gap:3px}
.mtem-u{display:inline-block;min-width:15px;padding:2px 4px;border-radius:8px;background:#f59e0b;color:#111827;font-weight:900;
  font-style:normal;text-align:center;box-shadow:0 0 0 1px rgba(245,158,11,.35)}
.mtem-r{font-style:normal;font-weight:700;color:var(--adp-mut,#8fa3bd);opacity:.85}
.mtem-unread{color:#fbbf24}
.mtem-calm{color:var(--adp-mut,#8fa3bd)}
.mtem-tot{color:var(--adp-mut,#8fa3bd)}
.mtem-none{opacity:.38}
.mtem-wait{opacity:.55}
.mtem-gated{display:none}
html.mtem-rows-on .mtem-gated{display:inline-flex}

/* ---------- the panel (right-side drawer; full screen on a phone) ---------- */
.mtem-ovl{position:fixed;inset:0;z-index:4000;background:rgba(3,7,18,.45);display:flex;justify-content:flex-end}
.mtem-win{width:min(640px,100vw);height:100%;background:var(--adp-bg,#111a30);color:var(--adp-txt,#e8eef8);
  border-left:1px solid var(--adp-bd,#2b3a55);box-shadow:-18px 0 40px rgba(0,0,0,.35);display:flex;flex-direction:column;
  animation:mtemIn .16s ease-out}
@keyframes mtemIn{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}
.mtem-host{display:flex;flex-direction:column;height:100%;min-height:0}
.mtem-inline .mtem-list{max-height:none}
.mtem-top{padding:12px 14px 10px;border-bottom:1px solid var(--adp-bd,#2b3a55);background:linear-gradient(180deg,var(--adp-hero2,#182a52),var(--adp-hero1,#0b1226))}
.mtem-ttl{display:flex;align-items:center;gap:8px;font-size:15px}
.mtem-ttl svg{width:18px;height:18px;color:var(--adp-pulse,#22d3ee)}
.mtem-acct{font-weight:600;color:var(--adp-txt,#e8eef8);opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtem-ids{font-size:11.5px;color:var(--adp-mut,#8fa3bd);margin:3px 0 8px 26px}
.mtem-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mtem-sp{flex:1}
.mtem-pill{font-family:inherit;font-weight:800;font-size:11px;line-height:1;padding:4px 8px;border-radius:10px;border:1px solid var(--adp-bd,#2b3a55);color:var(--adp-mut,#8fa3bd)}
.mtem-pill-u{background:#f59e0b;border-color:#f59e0b;color:#111827}
.mtem-pill-u.zero{background:none;border-color:var(--adp-bd,#2b3a55);color:var(--adp-mut,#8fa3bd)}
.mtem-stat{font-size:11px;color:var(--adp-mut,#8fa3bd);display:inline-flex;align-items:center;gap:6px}
.mtem-spin{width:11px;height:11px;border-radius:50%;border:2px solid var(--adp-bd,#2b3a55);border-top-color:var(--adp-pulse,#22d3ee);
  animation:mtemSpin .8s linear infinite}
@keyframes mtemSpin{to{transform:rotate(360deg)}}
.mtem-btn{font-family:inherit;font-weight:700;font-size:11.5px;line-height:1;padding:6px 10px;border-radius:8px;border:1px solid var(--adp-bd,#2b3a55);background:var(--adp-surf,#16213e);
  color:var(--adp-txt,#e8eef8);cursor:pointer}
.mtem-btn:hover:not([disabled]){border-color:var(--adp-pulse,#22d3ee)}
.mtem-btn[disabled]{opacity:.45;cursor:default}
.mtem-x{background:none;border:0;color:var(--adp-mut,#8fa3bd);font-size:16px;cursor:pointer;padding:2px 4px}
.mtem-msg{margin:8px 14px 0;padding:7px 10px;border-radius:8px;font-size:12px;background:rgba(251,191,36,.10);color:#fcd34d;border:1px solid rgba(251,191,36,.35)}
.mtem-msg.bad{background:rgba(248,113,113,.10);color:#f87171;border-color:rgba(248,113,113,.4)}
.mtem-list{flex:1;min-height:0;overflow:auto;padding:4px 14px 24px}

/* sections: a clear divider + orange wayfinding title */
.mtem-sec{padding:12px 0 6px;border-top:1px solid var(--adp-bd,#2b3a55)}
.mtem-sec:first-child{border-top:0}
.mtem-g-stale,.mtem-g-possible{border-top:2px dashed var(--adp-bd,#2b3a55)}
.mtem-g-routine{border-top:3px solid var(--adp-bd,#2b3a55);margin-top:6px}
.mtem-h{display:flex;align-items:baseline;gap:8px;width:100%;background:none;border:0;padding:0;color:inherit;text-align:left;font:inherit}
button.mtem-h{cursor:pointer}
.mtem-ht{font-size:12px;font-weight:800;color:#d97706;text-transform:uppercase;letter-spacing:1.4px}
.mtem-hn{font-size:11px;font-weight:700;color:var(--adp-mut,#8fa3bd)}
.mtem-hn b{color:#fbbf24}
.mtem-car{color:var(--adp-mut,#8fa3bd);width:10px}
.mtem-sub{font-size:11px;font-weight:600;color:var(--adp-mut,#8fa3bd);margin:3px 0 8px}
.mtem-empty{font-size:12px;color:var(--adp-mut,#8fa3bd);padding:6px 2px 4px}

/* rows */
.mtem-row{position:relative;padding:8px 10px 8px 22px;margin:0 0 6px;border-radius:10px;border:1px solid var(--adp-bd,#2b3a55);background:var(--adp-surf,#16213e)}
.mtem-row.can{cursor:pointer}
.mtem-row.can:hover,.mtem-row.can:focus-visible{border-color:var(--adp-pulse,#22d3ee);outline:none}
.mtem-dot{position:absolute;left:8px;top:13px;width:7px;height:7px;border-radius:50%;background:transparent}
.mtem-row.unread .mtem-dot{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.mtem-row.unread .mtem-subj{font-weight:800;color:var(--adp-txt,#e8eef8)}
.mtem-r1{display:flex;align-items:baseline;gap:8px;font-size:11px;color:var(--adp-mut,#8fa3bd);min-width:0}
.mtem-when{white-space:nowrap;font-weight:700}
.mtem-from{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cbd5e1}
html.light .mtem-from{color:#334155}
.mtem-box{white-space:nowrap;opacity:.8}
.mtem-subj{font-size:13px;font-weight:600;margin:3px 0 2px;color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.light .mtem-subj{color:#1e293b}
.mtem-snip{font-size:11.5px;color:var(--adp-mut,#8fa3bd);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mtem-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.mtem-chips>span{font-family:inherit;font-weight:800;font-size:9.5px;line-height:1;padding:3px 6px;border-radius:7px;text-transform:uppercase;letter-spacing:.04em;border:1px solid}
.mtem-why{color:#22d3ee;border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.08)}
.mtem-tag{color:var(--adp-mut,#8fa3bd);border-color:var(--adp-bd,#2b3a55)}
.mtem-t-fee-approval{color:#34d399;border-color:rgba(52,211,153,.5);background:rgba(52,211,153,.10)}
.mtem-t-fee-denial{color:#f87171;border-color:rgba(248,113,113,.5);background:rgba(248,113,113,.10)}
.mtem-t-client-reply{color:#fcd34d;border-color:rgba(252,211,77,.45);background:rgba(252,211,77,.08)}
.mtem-t-our-reply,.mtem-t-our-mail{color:#a5b4fc;border-color:rgba(165,180,252,.45)}
.mtem-t-close-request,.mtem-t-hold-request{color:#fb923c;border-color:rgba(251,146,60,.45)}
.mtem-stalechip{color:#94a3b8;border-color:rgba(148,163,184,.45);background:rgba(148,163,184,.10)}
.mtem-note{color:var(--adp-mut,#8fa3bd);border-color:transparent!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}
.mtem-need{color:#f87171;border-color:rgba(248,113,113,.45)}
.mtem-g-stale .mtem-row,.mtem-g-possible .mtem-row,.mtem-g-routine .mtem-row,.mtem-g-other .mtem-row{background:var(--adp-surf2,#1b2747);opacity:.88}

@media (max-width:700px){
  .mtem-win{width:100vw;border-left:0}
  .mtem-top{padding:10px 10px 8px}
  .mtem-list{padding:2px 8px 24px}
  .mtem-ids{margin-left:0}
  .mtem-box{display:none}
  .mtem-btn{padding:8px 10px}
}
