/* NetPesa reference-style cards. Requested primary colors: #075BCE and #FFFFFF.
   This file overrides cards only: forms and all business logic remain unchanged. */
#appShell .main .cards{gap:14px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
#appShell .main .cards>.metric,
#appShell .main .page-cards>.info-card{
 position:relative!important;isolation:isolate!important;
 display:flex!important;flex-direction:column!important;justify-content:space-between!important;
 background:linear-gradient(140deg,#073C86 0%,#075BCE 100%)!important;
 color:#FFFFFF!important;min-height:178px!important;
 border:1px solid #075BCE!important;border-radius:19px!important;
 box-shadow:0 8px 21px #075BCE1C, inset 0 1px 0 #FFFFFF22!important;
 padding:17px 18px!important;overflow:hidden!important;text-align:left!important;
}
#appShell .main .cards>.metric:nth-child(3n+2),#appShell .main .page-cards>.info-card:nth-child(3n+2){background:linear-gradient(145deg,#075BCE 3%,#06499F 100%)!important}
#appShell .main .cards>.metric:nth-child(3n+3),#appShell .main .page-cards>.info-card:nth-child(3n+3){background:linear-gradient(145deg,#054A9F 0%,#0876DE 100%)!important}
#appShell .main .cards>.metric::before,#appShell .main .page-cards>.info-card::before{
 content:"";position:absolute;width:152px;height:152px;right:-62px;top:-67px;
 border-radius:44%;transform:rotate(23deg);background:#FFFFFF12;z-index:-1;pointer-events:none;
}
#appShell .main .cards>.metric::after,#appShell .main .page-cards>.info-card::after{
 content:"";position:absolute;width:95px;height:95px;right:23px;bottom:-70px;
 border-radius:50%;background:#FFFFFF08;z-index:-1;pointer-events:none;
}
#appShell .main .cards>.metric .metric-top{min-height:46px;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;margin-bottom:22px}
#appShell .main .cards>.metric .metric-icon{width:45px!important;height:45px!important;display:grid!important;place-items:center!important;
 font-size:23px!important;font-weight:800!important;color:#075BCE!important;background:#FFFFFF!important;
 border-radius:13px!important;box-shadow:0 3px 12px #073C8640!important}
#appShell .main .cards>.metric .metric-corner{width:29px;height:29px;border-radius:50%;background:#042F6E75;color:#D8E8FF;
 display:grid;place-items:center;font-size:17px;line-height:1}
#appShell .main .cards>.metric .metric-copy{display:grid!important;gap:2px!important;align-content:end!important;min-width:0!important}
#appShell .main .cards>.metric .metric-label{color:#E7F1FF!important;font-weight:670!important;font-size:13px!important;
 line-height:1.35!important;letter-spacing:.005em!important}
#appShell .main .cards>.metric .metric-value{color:#FFFFFF!important;display:block!important;margin:2px 0 1px!important;
 font-size:clamp(19px,2.2vw,29px)!important;font-weight:820!important;line-height:1.18!important;
 letter-spacing:-.035em!important;overflow-wrap:anywhere!important;max-width:100%!important}
#appShell .main .cards>.metric .metric-foot{color:#E0EEFF!important;font-size:11px!important;line-height:1.35!important;opacity:.95!important}
#appShell .main .cards>.metric *,#appShell .main .page-cards>.info-card *{position:relative;z-index:1}
/* Module cards mirror the silhouette and glow of the screenshot, but stay in brand blue/white. */
#appShell .main .page-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important}
#appShell .main .page-cards>.info-card{gap:9px!important;min-height:192px!important;justify-content:flex-start!important}
#appShell .main .page-cards>.info-card>strong{font-size:14px!important;line-height:1.35!important;font-weight:800!important}
#appShell .main .page-cards>.info-card .big{font-weight:850!important;font-size:clamp(20px,2vw,29px)!important;line-height:1.2!important;overflow-wrap:anywhere!important}
#appShell .main .page-cards>.info-card p{font-size:12px!important;line-height:1.5!important;color:#E4F0FF!important}
#appShell .main .page-cards>.info-card .primary.outline,#appShell .main .page-cards>.info-card .table-action{
 background:#FFFFFF!important;border:1px solid #FFFFFF!important;color:#075BCE!important;
 border-radius:9px!important;padding:8px 10px!important;box-shadow:none!important;font-weight:750!important;
}
#appShell .main .page-cards>.info-card .status{background:#FFFFFF!important;color:#075BCE!important}
/* Shortcut cards use the same blue decorative circles and bright icon tile. */
#appShell .main .quick-grid{gap:11px!important}
#appShell .main .quick-grid .quick{min-height:126px!important;position:relative!important;isolation:isolate!important;
 border-radius:17px!important;border:1px solid #075BCE!important;
 background:linear-gradient(145deg,#075BCE,#06499F)!important;
 box-shadow:0 8px 18px #075BCE17!important;padding:15px!important;
 display:flex!important;flex-direction:column!important;justify-content:space-between!important;overflow:hidden!important;
}
#appShell .main .quick-grid .quick::before{content:"";position:absolute;width:100px;height:100px;right:-43px;top:-45px;border-radius:50%;background:#FFFFFF15;pointer-events:none}
#appShell .main .quick-grid .quick .qi{font-size:19px!important;width:38px;height:38px;display:grid;place-items:center;background:#FFFFFF!important;color:#075BCE!important;border-radius:11px!important}
#appShell .main .quick-grid .quick strong{color:#FFFFFF!important;font-size:12px!important;line-height:1.35!important;font-weight:780!important}
#appShell .main .quick-grid .quick:hover{transform:translateY(-2px)!important;filter:brightness(1.07)!important}
/* Content boxes containing editable forms must remain WHITE for readable inputs. */
#appShell .main .panel,#appShell .main .config-box,#appShell .main .form-panel,#appShell .main .table-panel{
 border-radius:18px!important;border:1px solid #C9DDF8!important;box-shadow:0 7px 25px #075BCE0C!important;background:#FFFFFF!important;
}
#appShell .main .config-box{border-top:3px solid #075BCE!important}
#appShell .main .panel-head h2,#appShell .main .config-box h3{color:#103D78!important;font-size:clamp(14px,1.3vw,17px)!important}
#appShell .main .location-support-grid{border-radius:13px!important;padding:16px!important;background:#F4F8FF!important}
#appShell .main .location-support-grid .field{min-width:0}
#appShell .main input,#appShell .main select,#appShell .main textarea{max-width:100%!important}
@media(max-width:1050px){#appShell .main .cards,#appShell .main .page-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){#appShell .main .cards,#appShell .main .page-cards{gap:10px!important}
 #appShell .main .cards>.metric{min-height:160px!important;padding:14px 12px!important;border-radius:17px!important}
 #appShell .main .cards>.metric .metric-top{margin-bottom:16px!important;min-height:42px!important}
 #appShell .main .cards>.metric .metric-icon{width:40px!important;height:40px!important;font-size:20px!important;border-radius:11px!important}
 #appShell .main .cards>.metric .metric-label{font-size:12px!important}
 #appShell .main .cards>.metric .metric-value{font-size:clamp(17px,4.5vw,24px)!important;line-height:1.22!important}
 #appShell .main .cards>.metric .metric-foot{font-size:10.5px!important}
 #appShell .main .page-cards>.info-card{padding:14px 12px!important;min-height:175px!important;border-radius:17px!important}
 #appShell .main .page-cards>.info-card .big{font-size:clamp(18px,4.6vw,23px)!important}
 #appShell .main .page-cards>.info-card p{font-size:11px!important}
 #appShell .main .quick-grid .quick{min-height:112px!important;padding:12px!important}
 #appShell .main .config-box{padding:14px!important}
}
@media(max-width:360px){#appShell .main .cards>.metric{min-height:150px!important;padding:12px 10px!important}#appShell .main .cards>.metric .metric-value{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){#appShell .main .quick-grid .quick{transition:none!important}}
/* Neutral gutters: legacy stylesheet mistakenly styles .cards itself as a dark card. */
#appShell .main .cards,#appShell .main .page-cards,#appShell .main .quick-grid{
 background:transparent!important;background-image:none!important;border:0!important;
 box-shadow:none!important;padding:0!important;
}
/* Remaining standalone workspace cards use the same visual family. */
#appShell .main .wallet-balance-card,#appShell .main .subscription-card,
#appShell .main .router-mini-card,#appShell .main .pppoe-count{
 background:linear-gradient(140deg,#073C86,#075BCE)!important;
 color:#FFFFFF!important;border:1px solid #075BCE!important;border-radius:19px!important;
 box-shadow:0 9px 24px #075BCE1C!important;position:relative!important;overflow:hidden!important;
}
#appShell .main .wallet-balance-card::before,#appShell .main .subscription-card::before,
#appShell .main .router-mini-card::before,#appShell .main .pppoe-count::before{
 content:"";width:145px;height:145px;position:absolute;top:-79px;right:-60px;
 border-radius:50%;background:#FFFFFF12;pointer-events:none;
}
#appShell .main .wallet-balance-card .wallet-amount,#appShell .main .wallet-balance-card .eyebrow,
#appShell .main .subscription-days strong,#appShell .main .subscription-days span,
#appShell .main .router-mini-card strong,#appShell .main .router-mini-card>span:not(.status),
#appShell .main .pppoe-count strong,#appShell .main .pppoe-count span{color:#FFFFFF!important}
#appShell .main .router-mini-card .table-action,#appShell .main .subscription-card .primary.outline{
 background:#FFFFFF!important;color:#075BCE!important;border:1px solid #FFFFFF!important;
 border-radius:9px!important;padding:9px 11px!important;font-weight:750!important;
}
#appShell .main .download-cards{background:transparent!important;box-shadow:none!important;border:0!important}
#appShell .main .download-cards .download-link{
 display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
 background:linear-gradient(140deg,#075BCE,#06499F)!important;color:#FFFFFF!important;
 border:1px solid #075BCE!important;border-radius:15px!important;
 box-shadow:0 7px 20px #075BCE16!important;min-height:88px!important;
 padding:14px!important;font-size:13px!important;font-weight:760!important;line-height:1.4!important;
}
#appShell .main .download-cards .download-link:hover{filter:brightness(1.08)!important}
@media(max-width:600px){#appShell .main .wallet-balance-card{min-height:178px!important;padding:20px!important}
 #appShell .main .subscription-card{padding:16px!important}
 #appShell .main .router-mini-card{padding:14px!important}
 #appShell .main .download-cards .download-link{min-height:74px!important}
}
