/* Shared Web PKM navbar - konsisten di desktop & mobile */
.site-navbar{position:sticky;top:0;z-index:1000;height:82px;background:rgba(255,255,255,.98);border-bottom:1px solid #edf1ed;box-shadow:0 4px 18px rgba(0,0,0,.05);font-family:Poppins,Arial,sans-serif}
.site-navbar-inner{width:min(100% - 48px,1200px);height:100%;margin:auto;display:flex;align-items:center;gap:28px}
.site-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;text-decoration:none}
.site-brand img{width:48px;height:48px;object-fit:contain;border-radius:12px}
.site-brand-text{display:flex;flex-direction:column;line-height:1.05}
.site-brand-text strong{color:#075b43;font-size:20px;font-weight:800}
.site-brand-text small{color:#78807e;font-size:10px;margin-top:4px}
.site-nav{display:flex;align-items:center;justify-content:center;gap:30px;margin-left:auto}
.site-nav a{position:relative;text-decoration:none;color:#4f5857;font-size:13px;font-weight:600;padding:29px 0 24px;transition:.2s}
.site-nav a:hover,.site-nav a.active{color:#4d9e3c}
.site-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:15px;height:3px;border-radius:99px;background:#67b847}
.site-account{min-width:104px;height:40px;padding:0 14px;border-radius:24px;display:flex!important;align-items:center;justify-content:center;gap:8px;text-decoration:none!important;color:#fff!important;background:linear-gradient(135deg,#6bc346,#54ad3c);box-shadow:0 7px 17px rgba(82,174,61,.2);font-size:12px!important;font-weight:700!important}
.site-account:hover{color:#fff!important;transform:translateY(-1px)}
.account-avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.95);color:#54a83d;font-size:10px;font-weight:800;flex-shrink:0}
.account-label{line-height:1}
.site-menu-toggle{display:none;border:0;background:transparent;cursor:pointer;width:42px;height:42px;border-radius:10px}
.site-menu-toggle span{display:block;width:24px;height:3px;margin:4px auto;border-radius:99px;background:#075b43}
.site-mobile-account{display:none}

/* app pages: navbar tetap satu gaya walaupun berada di .app */
.site-navbar.app-site-navbar{margin:-22px -28px 22px;width:calc(100% + 56px);border-radius:0}

@media(max-width:850px){
  .site-navbar{height:72px}
  .site-navbar-inner{width:min(100% - 30px,650px);gap:12px}
  .site-brand-text{display:none}
  .site-brand img{width:43px;height:43px}
  .site-menu-toggle{display:block;margin-left:auto}
  .site-nav{position:absolute;display:none;top:72px;left:15px;right:15px;margin:0;padding:8px 16px;background:#fff;border:1px solid #edf1ed;border-radius:16px;box-shadow:0 14px 35px rgba(0,0,0,.10);flex-direction:column;align-items:stretch;gap:0}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 5px;border-bottom:1px solid #f0f2ef;font-size:13px}
  .site-nav a.active::after{display:none}
  .site-nav .site-account{margin-top:8px;margin-bottom:4px;border-bottom:0;justify-content:center;height:40px}
  .site-menu-toggle[aria-expanded="true"]{background:#eff9e7}
  .site-mobile-account{display:none}
  .site-navbar.app-site-navbar{margin:-14px -11px 18px;width:calc(100% + 22px)}
}


/* Menu Profil Akun */
.profile-menu-backdrop{position:fixed;inset:0;z-index:1998;background:rgba(10,28,20,.18);backdrop-filter:blur(2px);display:none}
.profile-menu-backdrop.show{display:block}
.profile-menu{position:fixed;z-index:2000;top:72px;right:28px;width:330px;background:#fff;border:1px solid #e6eee5;border-radius:20px;box-shadow:0 22px 55px rgba(20,60,35,.18);padding:18px;display:none;font-family:Poppins,Arial,sans-serif}
.profile-menu.show{display:block;animation:profileIn .16s ease-out}
@keyframes profileIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.profile-menu-head{display:flex;align-items:center;gap:13px;padding-bottom:14px;border-bottom:1px solid #edf2ed}
.profile-menu-avatar{width:58px;height:58px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eff9e9;color:#4d9e3c;font-size:22px;flex:0 0 58px;border:2px solid #dcefd5}
.profile-menu-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-menu-info{min-width:0}
.profile-menu-name{font-size:15px;font-weight:800;color:#173b2a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-menu-email{font-size:11px;color:#7b8781;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-menu-close{margin-left:auto;border:0;background:#f4f7f4;color:#66716c;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:18px;line-height:1}
.profile-menu-actions{display:grid;gap:9px;margin-top:14px}
.profile-menu-btn{width:100%;height:42px;border:1px solid #dcebd8;border-radius:12px;background:#f8fcf6;color:#245c32;font:700 12px Poppins,Arial,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
.profile-menu-btn:hover{background:#eef9e9}
.profile-menu-btn.primary{background:linear-gradient(135deg,#69c346,#54ad3c);border-color:transparent;color:#fff}
.profile-menu-btn.logout{background:#fff6f5;border-color:#f1d9d6;color:#b44a40}
.profile-menu-file{display:none}
.profile-menu-note{font-size:10px;color:#8b9690;text-align:center;margin-top:9px;line-height:1.5}
.profile-menu-status{font-size:11px;text-align:center;min-height:16px;color:#4f6e57}
.account-avatar.has-photo{background:#fff;padding:0}
.account-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
@media(max-width:850px){
  .profile-menu{top:68px;right:15px;left:15px;width:auto;max-width:none}
}

@media(max-width:650px){
  .app .table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  .app .title{flex-wrap:wrap}
  .app .filters{flex-wrap:wrap}
  .app .filters input,.app .filters select{min-width:0}
  .app button,.app input,.app select{min-height:44px}
}
