/* dashboard.css — dashboard (analitik + versi mobile) */
/* ---- dashboard analytics ---- */
.insight{background:linear-gradient(145deg,#8f1206,var(--red-d));color:#fff;border-radius:22px;padding:18px;margin-bottom:14px;box-shadow:0 10px 26px rgba(126,3,6,.28)}
.insight .ihead{font-size:12px;opacity:.85;display:flex;align-items:center;gap:6px;margin-bottom:8px;font-weight:600}
.insight .ibig{font-size:20px;font-weight:800;line-height:1.3}
.insight .isub{font-size:12px;opacity:.9;margin-top:8px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.tile{background:#fff;border-radius:20px;padding:16px;box-shadow:0 6px 18px rgba(40,40,60,.05)}
.tile .tl2{font-size:12px;color:var(--muted)}
.tile .tv{font-size:21px;font-weight:800;margin-top:4px}
.tile .tc{font-size:11px;margin-top:6px;font-weight:700;color:var(--muted)}
.tc.chgup{color:var(--green)}.tc.chgdn{color:var(--red)}
.chartcard{background:#fff;border-radius:22px;padding:18px;box-shadow:0 6px 18px rgba(40,40,60,.05);margin-bottom:14px}
.chartcard h3{font-size:15px;margin-bottom:14px}
.barrow2{margin-bottom:11px;font-size:12px}
.barrow2 .brtop{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}
.barrow2 .brtop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.barrow2 .brbar{height:10px;border-radius:6px;background:#f1eeed;overflow:hidden}
.barrow2 .brbar>span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,var(--orange),var(--red))}
.donutwrap{display:flex;align-items:center;gap:14px}
.legend{display:flex;flex-direction:column;gap:9px;flex:1;min-width:0}
.legend .lg{display:flex;align-items:center;gap:8px;font-size:12px}
.legend .lg .dot{width:11px;height:11px;border-radius:4px;flex-shrink:0}
.legend .lg .lgv{margin-left:auto;font-weight:700}
.trend{display:flex;align-items:flex-end;gap:8px;height:130px}
.trend .tb{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.trend .tb .tbar{width:66%;max-width:32px;background:linear-gradient(180deg,var(--orange),var(--red));border-radius:6px 6px 0 0;min-height:4px}
.trend .tb .tl{font-size:10px;color:var(--muted)}
.lrrow{display:flex;justify-content:space-between;gap:10px;padding:10px 2px;border-bottom:1px solid var(--line);font-size:14px}
.lrrow.tot{font-weight:700;border-top:2px solid var(--line);border-bottom:none;margin-top:2px}
.lrrow.big{font-size:16px;padding-top:12px}
.monthsel{max-width:230px;font-weight:600;margin-bottom:14px}
.donutcap{text-align:center;margin-top:14px;font-size:13px;color:var(--muted)}
.donutcap b{color:var(--ink);font-size:17px;margin-left:5px}
.trend .tb .tbar.on{outline:2px solid var(--red-d);outline-offset:1px}
.legend2{display:flex;gap:16px;justify-content:center;font-size:12px;color:var(--muted);margin-top:8px}
.legend2 i{display:inline-block;width:14px;height:3px;border-radius:2px;vertical-align:middle;margin-right:5px}
.actrow{display:flex;gap:10px;align-items:flex-start;padding:9px 2px;border-bottom:1px solid var(--line);font-size:13px}
.actrow:last-child{border-bottom:none}
.actdot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex-shrink:0}
.logobox{width:88px;height:88px;border-radius:18px;background:var(--cream);display:flex;align-items:center;justify-content:center;font-size:40px;overflow:hidden;flex-shrink:0;border:1px solid var(--line)}
.logobox img{width:100%;height:100%;object-fit:cover}
.ptmb{width:36px;height:36px;object-fit:cover;border-radius:8px;flex-shrink:0;border:1px solid var(--line)}
.ptmb.noimg{display:inline-flex;align-items:center;justify-content:center;background:var(--bg);font-size:18px}
.logobox img{width:100%;height:100%;object-fit:contain}
.hero3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
@media(max-width:560px){.hero3{grid-template-columns:1fr}}
.pchart{overflow-x:auto}
.pchart svg{display:block}
.permgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.permchk{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;background:var(--bg);border-radius:10px;padding:9px 11px;cursor:pointer}
.permchk input{width:auto;min-width:0;margin:0;flex-shrink:0}
@media(max-width:560px){.permgrid{grid-template-columns:1fr}}
/* ---- dashboard mobile (redesign v2) ---- */
.dgreet{padding:8px 4px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dgreet h2{font-size:21px;font-weight:800;line-height:1.15}
.dgreet p{font-size:12.5px;color:var(--muted);margin-top:2px}
.dgreet .davatar{width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,var(--orange),var(--red));color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;flex-shrink:0;box-shadow:0 6px 16px rgba(213,62,15,.3)}
.hero2{background:linear-gradient(150deg,var(--orange) -12%,var(--red) 46%,var(--red-d) 112%);color:#fff;border-radius:26px;padding:20px 20px 18px;box-shadow:0 16px 34px rgba(126,3,6,.30);position:relative;overflow:hidden;margin-bottom:16px}
.hero2::after{content:"";position:absolute;right:-40px;top:-50px;width:170px;height:170px;border-radius:50%;background:#ffffff14}
.hero2 .hl{font-size:12.5px;opacity:.9;font-weight:600;display:flex;align-items:center;gap:6px;position:relative}
.hero2 .hv{font-size:33px;font-weight:800;letter-spacing:-.5px;margin:6px 0 2px;line-height:1.05;position:relative}
.hero2 .hpills{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px;position:relative}
.hpill{background:#ffffff26;border-radius:20px;padding:5px 11px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.hpill.up{background:#eafff0;color:#0d6b34}.hpill.dn{background:#fff0eb;color:#a5240b}
.hact{display:flex;gap:9px;margin-top:16px;position:relative}
.hact button{flex:1;background:#ffffff1f;border:1px solid #ffffff33;color:#fff;border-radius:16px;padding:11px 6px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;font-weight:700;cursor:pointer}
.hact button:active{background:#ffffff33}
.hact .hai{font-size:18px;line-height:1}
.dsec{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 2px 11px}
.dsec h3{font-size:15.5px;font-weight:800}
.dsec a{font-size:12.5px;color:var(--red);font-weight:700;text-decoration:none;cursor:pointer}
.mcard{background:#fff;border-radius:20px;padding:15px;box-shadow:0 6px 18px rgba(40,40,60,.05)}
.mcard .mi{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:17px;margin-bottom:10px}
.mcard .ml{font-size:12px;color:var(--muted)}
.mcard .mv{font-size:19px;font-weight:800;margin-top:3px;letter-spacing:-.2px}
.mcard .ms{font-size:11px;font-weight:700;margin-top:6px}
.card2{background:#fff;border-radius:22px;padding:16px 16px 8px;box-shadow:0 6px 18px rgba(40,40,60,.05);margin-bottom:2px}
.crow .ci.mono{font-weight:800;font-size:16px;color:var(--red);background:var(--cream)}
.barrow2 .brtop .bname{flex:1;min-width:0;font-weight:600}
.barrow2 .brsub{font-size:11px;color:var(--muted);margin-top:4px}
.hlcard{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#33291f,#171210);color:#fff;border-radius:20px;padding:14px 15px;margin-bottom:16px;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.hlcard .hli{width:38px;height:38px;border-radius:12px;background:#ffffff1a;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}
.hlcard .hlmain{flex:1;min-width:0}
.hlcard .hlh{font-weight:700;font-size:14px;line-height:1.25}
.hlcard .hls{font-size:11.5px;opacity:.72;margin-top:2px}
.hlcard .hlgo{font-size:11px;font-weight:800;color:var(--orange-l);flex-shrink:0}
.botnav .fab{flex:0 0 auto;width:56px;height:56px;border-radius:50%;background:linear-gradient(145deg,var(--orange),var(--red));color:#fff;font-size:30px;font-weight:300;line-height:1;box-shadow:0 10px 22px rgba(213,62,15,.5);margin-top:-26px;display:flex;align-items:center;justify-content:center;padding:0;border:4px solid var(--bg)}
.botnav .fab:active{transform:scale(.95)}
