.topbar{position:relative;height:98px;overflow:hidden;padding:0 30px 0 0;gap:19px;background:linear-gradient(108deg,#063879 0%,#0759ad 57%,#063879 100%);border-bottom:4px solid #f6c514;color:#fff}
.topbar:before,.topbar:after{content:'';position:absolute;z-index:0;pointer-events:none}.topbar:before{width:270px;height:210px;left:48%;top:-120px;border-radius:50%;background:rgba(25,133,231,.24)}.topbar:after{width:210px;height:180px;left:62%;top:-78px;transform:skewX(-31deg);background:rgba(0,34,91,.22)}
.brand{position:relative;z-index:1;align-self:stretch;display:flex;align-items:center;justify-content:center;width:210px;min-width:210px;margin:0;padding:10px 35px 10px 21px;background:#fff;clip-path:polygon(0 0,93% 0,100% 12%,84% 100%,0 100%);filter:drop-shadow(1px 2px 3px rgba(0,24,70,.35))}
.brand:after{content:'';position:absolute;right:17px;top:-16px;width:5px;height:135px;transform:rotate(24deg);background:#f6c514}.brand img{position:relative;z-index:1;width:151px;height:76px;object-fit:contain;filter:none}
.agency{position:relative;z-index:1;margin-left:0;min-width:0;display:flex;align-items:center;gap:13px;color:#fff;font-size:12px;line-height:1.25}
.topbar .agency-logo{float:none;width:56px;height:66px;margin:0;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3));flex:0 0 56px}
.agency span{display:block}.agency b{font-size:17px;letter-spacing:.1px}.agency small{margin-top:6px;font-size:11px;letter-spacing:4px;color:#d9e9ff}.agency small:after{content:'';display:block;width:60px;height:3px;margin-top:8px;background:#f6c514;border-radius:99px}
.user-actions{position:relative;z-index:1;margin-left:auto;display:flex;align-items:center;color:#fff}.user-actions:before{content:'';width:1px;height:32px;margin-right:14px;background:rgba(217,233,255,.7)}.avatar{width:39px;height:39px;background:#f6c514;color:#063879}.icon-button{color:#fff}.chevron{font-size:15px;color:#d9e9ff;margin-left:-4px}.logout-button{border-color:#9ac3ee;background:transparent;color:#fff;padding:9px 14px}
.site-footer{margin-top:28px;background:#06264f;border-top:6px solid #f6c514;color:#fff}
.footer-main{display:grid;grid-template-columns:1.55fr .65fr .9fr 1.05fr;gap:36px;max-width:1400px;margin:auto;padding:34px clamp(22px,5vw,70px) 30px}
.footer-title{display:flex;align-items:center;gap:15px}.footer-title img{width:174px;height:67px;object-fit:contain}.footer-title b,.footer-title strong{display:block}.footer-title b{font-size:12px;letter-spacing:.45px}.footer-title strong{margin-top:4px;color:#f8cf28;font-size:10px;line-height:1.3}.footer-identity>p{max-width:390px;margin:17px 0 19px;color:#d7e5f7;font-size:12px;line-height:1.65}
.footer-social{display:flex;gap:9px}.footer-social span{display:grid;place-items:center;width:33px;height:33px;border-radius:3px;background:#f6c514;color:#063879;font-weight:800}
.site-footer h2{margin:3px 0 16px;color:#f8cf28;font:700 15px 'Inter',sans-serif}.footer-links{display:grid;align-content:start;gap:11px}.footer-links a{color:#e3eefb;text-decoration:none;font-size:12px}.footer-links a:before{content:'›';color:#f6c514;font-size:19px;line-height:0;vertical-align:-2px;margin-right:10px}.footer-contact p{position:relative;margin:0 0 13px;padding-left:0;color:#e3eefb;font-size:12px;line-height:1.5}.footer-contact p b{display:block;color:#f6c514;font-size:10px;text-transform:uppercase;letter-spacing:.5px}.location-card{position:relative;height:220px;overflow:hidden;background:#dfeaf4;box-shadow:0 2px 8px rgba(0,0,0,.22)}.location-map{display:block;width:100%;height:100%;border:0}.location-map-link{position:absolute;top:12px;left:12px;padding:8px 11px;border-radius:2px;background:#fff;color:#1a73e8!important;font-size:12px;font-weight:700;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.28);z-index:1}.location-map-link:hover{background:#f7faff}
.footer-bottom{border-top:1px solid rgba(246,197,20,.35);padding:13px 20px;background:#f6c514;color:#06264f;text-align:center;font-size:10px;font-weight:800;letter-spacing:.55px}
@media(max-width:900px){.topbar{height:80px;padding-right:18px;gap:12px}.brand{width:174px;min-width:174px;padding:8px 27px 8px 14px}.brand img{width:132px;height:62px}.topbar .agency-logo{width:46px;height:55px;flex-basis:46px}.agency{gap:9px}.agency b{font-size:12px}.agency small{font-size:8px;letter-spacing:2.5px}.user-actions:before{margin-right:9px}.footer-main{grid-template-columns:1fr 1fr;gap:30px}.footer-location{grid-column:span 2}}
@media(max-width:600px){.topbar{height:68px;padding-right:12px}.brand{width:140px;min-width:140px;padding:6px 19px 6px 9px}.brand img{width:112px;height:55px}.brand:after{right:11px}.agency{display:none}.user-actions{gap:5px}.user-actions:before,.user-actions .icon-button,.user-actions .logout-button,.user-actions .chevron{display:none}.avatar{width:34px;height:34px}.footer-main{grid-template-columns:1fr;padding:29px 24px}.footer-location{grid-column:auto}.site-footer h2{margin-top:0}}

/* Navigasi ringkas dengan ikon garis seperti identitas visual PAMONA. */
.nav{height:52px;position:relative;z-index:2;gap:12px;background:rgba(255,255,255,.96);box-shadow:0 7px 22px rgba(5,45,98,.10)}
.nav-link{height:52px;display:inline-flex;align-items:center;gap:8px;padding:0 20px;border:0;border-bottom:3px solid transparent;background:transparent;color:#163f73;font-size:12px;transition:background .18s,color .18s,transform .18s}
.nav-link svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-link[data-route="pencatatan"] svg,.nav-link[data-route="scan"] svg,.nav-link[data-route="profil"] svg{fill:none}.nav-link.active{position:relative;border-bottom-color:#f6c514;background:linear-gradient(135deg,#1685ee,#0759b8);color:#fff;border-radius:5px 5px 0 0;box-shadow:0 5px 12px rgba(4,92,189,.25)}.nav-link:hover:not(.active){background:#edf6ff;color:#0759b8}

/* Kartu akun sederhana pada header. */
.user-actions{gap:12px}.user-actions:before{margin-right:2px}.notification-button{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-right:1px solid rgba(217,233,255,.35);background:transparent;color:#fff;cursor:pointer}.notification-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button b{position:absolute;top:2px;right:3px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#e63946;color:#fff;font-size:9px;line-height:1;box-shadow:0 0 0 2px #0759ad}.account-card{display:flex;align-items:center;gap:9px;min-width:145px;padding:4px 9px 4px 4px;border:1px solid rgba(246,197,20,.9);border-radius:8px;background:rgba(0,38,89,.30);box-shadow:inset 0 1px rgba(255,255,255,.12)}.account-card .avatar{width:37px;height:37px;border:2px solid #ffe36a;background:linear-gradient(135deg,#ffe878,#f2bd0e);color:#064181;font-size:18px;box-shadow:0 1px 3px rgba(0,0,0,.25)}.account-copy{display:grid;gap:2px;min-width:0}.account-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:12px}.account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9d8f7;font-size:8px}.account-chevron{width:15px;height:15px;margin-left:auto;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.logout-button{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:0;border-radius:5px;background:#fff;color:#0762c4;font-size:11px;box-shadow:0 4px 10px rgba(0,23,65,.22)}.logout-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.logout-button:hover{background:#fff7cf;transform:translateY(-1px)}

/* Latar dashboard: gradasi biru yang tenang dengan aksen emas. */
body:has(#dashboard.active){background:linear-gradient(128deg,#e5f3ff 0%,#f8fbff 45%,#fff8d8 100%)}
#dashboard.active{position:relative;max-width:none;padding:28px clamp(22px,5vw,72px) 46px;overflow:hidden;background:radial-gradient(circle at 5% 8%,rgba(18,133,232,.20),transparent 29%),radial-gradient(circle at 92% 12%,rgba(246,197,20,.23),transparent 25%),linear-gradient(128deg,#e8f5ff 0%,#f8fbff 48%,#fff9df 100%)}
#dashboard.active:before,#dashboard.active:after{content:'';position:absolute;pointer-events:none;border-radius:50%;filter:blur(2px)}#dashboard.active:before{width:380px;height:380px;right:-190px;top:170px;border:50px solid rgba(246,197,20,.11)}#dashboard.active:after{width:480px;height:480px;left:-300px;bottom:-260px;border:72px solid rgba(8,119,232,.08)}
#dashboard.active>*{position:relative;z-index:1}#dashboard.active .hero{border-radius:16px;box-shadow:0 18px 36px rgba(5,57,116,.22);border:1px solid rgba(255,255,255,.45)}#dashboard.active .stat{box-shadow:0 10px 22px rgba(19,75,130,.15)}#dashboard.active .section-heading{margin-top:30px;padding:18px 20px;border-radius:12px;background:rgba(255,255,255,.74);box-shadow:0 8px 22px rgba(28,84,139,.08)}#dashboard.active .irrigation-card{border-color:rgba(159,190,218,.65);box-shadow:0 8px 20px rgba(19,75,130,.10)}#dashboard.active .irrigation-card:hover{box-shadow:0 13px 25px rgba(7,88,184,.18)}
@media(max-width:600px){.user-actions{gap:4px}.user-actions:before,.notification-button,.logout-button{display:none}.account-card{min-width:auto;padding:3px;border-color:transparent;background:transparent}.account-copy,.account-chevron{display:none}.account-card .avatar{width:35px;height:35px}.nav{height:48px;gap:0;justify-content:space-around}.nav-link{height:48px;padding:0 9px}.nav-link svg{width:17px;height:17px}.nav-link span{display:inline;font-size:10px}#dashboard.active{padding:18px 15px 34px}#dashboard.active .section-heading{margin-top:18px;padding:14px}}

/* Navigasi ponsel: cegah ikon SVG mengikuti ukuran bawaan browser atau CSS lama. */
@media(max-width:600px){
  .nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;height:52px!important;overflow:visible!important}
  .nav-link{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:2px!important;height:52px!important;min-width:0!important;padding:3px 1px!important;font-size:0!important;line-height:1!important}
  .nav-link svg{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important;fill:currentColor!important;stroke:currentColor!important}
  .nav-link[data-route="pencatatan"] svg,.nav-link[data-route="scan"] svg,.nav-link[data-route="profil"] svg{fill:none!important}
  .nav-link span{display:block!important;overflow:hidden!important;max-width:100%!important;color:inherit!important;font-size:8px!important;line-height:10px!important;white-space:nowrap!important}
  .nav-link.active{border-radius:0!important;box-shadow:none!important}
}
