/* NetPesa official communications: premium reference-theme surfaces, accessible forms. */
.np-comm-head {border:1px solid #41364e;border-radius:19px;padding:19px 22px;background:linear-gradient(125deg,#242030,#191521);margin:0 0 19px}
.np-comm-head h1{color:#fff;margin:3px 0 9px}
.np-comm-head .subhead{color:#d2c9db;max-width:850px}
.comm-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:17px;align-items:start}
.comm-panel{min-width:0;border-radius:20px!important;background:#211a2b!important;border:1px solid #44374e!important;color:#f9f6ff!important;padding:20px!important}
.comm-panel .panel-head{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:16px}
.comm-panel h2,.comm-panel h3{color:#fff!important;margin:0 0 4px}
.comm-panel p,.comm-panel .panel-head p{color:#cec4d8}
.comm-form{display:flex;flex-direction:column;gap:15px;min-width:0}
.comm-form .field{display:flex;flex-direction:column;gap:7px;min-width:0}
.comm-form .field>label{color:#f7f2ff!important;font-weight:700;font-size:13px;letter-spacing:.01em}
.comm-form input:not([type=checkbox]),.comm-form textarea,.comm-form select{width:100%;max-width:100%;min-height:46px;box-sizing:border-box;border-radius:12px!important;border:2px solid #c5bbd1!important;color:#1d1930!important;background:#fff!important;font:inherit!important;font-size:15px!important;line-height:1.5!important;padding:11px 12px!important;box-shadow:none!important;-webkit-text-fill-color:#1d1930!important}
.comm-form textarea{min-height:145px;resize:vertical}
.comm-form input::placeholder,.comm-form textarea::placeholder{color:#5f586d!important;opacity:1}
.comm-form input:focus,.comm-form textarea:focus,.comm-form select:focus{outline:3px solid #bfa5ff!important;outline-offset:1px;border-color:#6542bb!important}
.comm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.comm-hint{color:#d2c8dd!important;font-size:12px;line-height:1.6;margin:0}
.comm-pill{background:#393047;border:1px solid #5d4f6d;color:#e8dcf8;font-size:12px;font-weight:700;padding:6px 9px;border-radius:999px;display:inline-flex;white-space:nowrap}
.comm-recipient-panel{border:1px solid #59496e;border-radius:14px;padding:14px;background:#2b2337}
.comm-recipient-panel[hidden],.comm-detail[hidden]{display:none!important}
.comm-account-list{max-height:240px;overflow:auto;border:1px solid #574a63;border-radius:11px;background:#1d1726;margin:12px 0;padding:5px}
.comm-account{display:flex;gap:11px;align-items:center;padding:11px;border-bottom:1px solid #3e334b;color:#fff;cursor:pointer}
.comm-account:last-child{border-bottom:0}
.comm-account input{width:18px;height:18px;accent-color:#9d6cff;flex:0 0 18px}
.comm-account span{display:flex;flex-direction:column;gap:2px;min-width:0}.comm-account strong{font-size:13px;overflow-wrap:anywhere}.comm-account small{font-size:12px;color:#c7b9d2;overflow-wrap:anywhere}
.comm-submit{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.comm-submit .primary{background:linear-gradient(125deg,#7a49ef,#6043bd)!important;color:#fff!important;border-color:#a186e8!important;min-height:44px}
.comm-submit .primary:disabled{opacity:.6;cursor:wait}.comm-submit [role=status]{color:#e7d8f6;font-size:12px}
.comm-history{display:flex;flex-direction:column;gap:12px;min-width:0}
.comm-history-item{background:linear-gradient(145deg,#2c2339,#241b31);border:1px solid #50415e;border-radius:17px;padding:15px;min-width:0;box-shadow:0 7px 25px #100b1640}
.comm-history-item.comm-unread{border-color:#aa8ce1;box-shadow:inset 3px 0 0 #8e68e9,0 7px 25px #100b1640}
.comm-history-title{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;color:#fff;margin-bottom:9px}
.comm-history-title strong{font-size:15px;overflow-wrap:anywhere}
.comm-history-item>p{color:#e4ddeb!important;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:13px;margin:0 0 11px}
.comm-history-item .comm-body{font-size:14px}
.comm-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:#d0c4da;font-size:11px;margin:9px 0}
.comm-history-item .table-action{background:#3b2a5c;color:#fff;border:1px solid #8063ae;border-radius:10px;padding:8px 12px;cursor:pointer}
.comm-detail{margin-top:14px;max-width:100%;overflow-x:auto;border-top:1px solid #554365;padding-top:14px}
.comm-detail table{min-width:490px}
.comm-empty{color:#d1c4de;padding:35px 14px;text-align:center;border:1px dashed #63526d;border-radius:14px}
@media(max-width:1020px){.comm-layout{grid-template-columns:1fr}}
@media(max-width:600px){.np-comm-head{padding:16px 15px}.comm-panel{padding:14px!important}.comm-form-grid{grid-template-columns:1fr}.comm-history-item{padding:13px}.comm-panel .panel-head{flex-wrap:wrap}.comm-submit .primary{width:100%}.comm-form input:not([type=checkbox]),.comm-form textarea,.comm-form select{font-size:16px!important}}
/* Outrank legacy mobile input rules (which otherwise force dark inputs). */
#appShell #main .comm-form input:not([type=checkbox]),
#appShell #main .comm-form textarea,
#appShell #main .comm-form select{
  background:#fff!important;background-color:#fff!important;
  color:#1d1930!important;-webkit-text-fill-color:#1d1930!important;
  caret-color:#5530b6!important;border:2px solid #c5bbd1!important;
  border-radius:12px!important;line-height:1.5!important;
  color-scheme:light!important;
}
#appShell #main .comm-form input::placeholder,
#appShell #main .comm-form textarea::placeholder{
  color:#655d70!important;-webkit-text-fill-color:#655d70!important;opacity:1!important;
}
#appShell #main .comm-form input:focus,
#appShell #main .comm-form textarea:focus,
#appShell #main .comm-form select:focus{
  background:#fff!important;color:#1d1930!important;-webkit-text-fill-color:#1d1930!important;
  outline:3px solid #bfa5ff!important;outline-offset:1px!important;
  border-color:#6542bb!important;
}
.comm-panel .panel-head button{white-space:nowrap!important;flex:0 0 auto!important;min-width:90px!important;padding:9px 12px!important}
@media(max-width:390px){.comm-panel .panel-head button{min-width:0!important}}
