:root{
  --bg:#f6f3ff;--card:#ffffff;--text:#1f1646;--muted:#7b719d;--primary:#7c3aed;--primary2:#5b21b6;--accent:#c026d3;--info:#2563eb;--success:#16a34a;--warning:#f59e0b;--danger:#dc2626;--line:#ebe4ff;--soft:#f4edff;--shadow:0 16px 45px rgba(91,33,182,.12)
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:radial-gradient(circle at top right,#eadcff 0,#f7f4ff 42%,#fbfbff 100%);color:var(--text)}a{text-decoration:none;color:inherit}.muted{color:var(--muted)}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}.login-hero{position:relative;padding:58px 70px;color:#fff;background:linear-gradient(135deg,rgba(35,16,91,.96),rgba(124,58,237,.9)),url('../img/hospital-bg.svg');background-size:cover;background-position:center}.login-hero:after{content:"";position:absolute;inset:auto -80px -130px auto;width:460px;height:460px;border-radius:50%;background:rgba(255,255,255,.12)}.hero-brand{display:flex;gap:16px;align-items:center;font-weight:800;font-size:42px}.hero-logo,.app-logo{width:58px;height:58px;border-radius:18px;background:#fff;color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 12px 35px rgba(0,0,0,.18)}.hero-title{margin-top:90px;max-width:560px}.hero-title h1{font-size:52px;line-height:1.05;margin:0 0 18px}.hero-title p{font-size:19px;line-height:1.55;color:#eee7ff}.hero-pill{margin-top:36px;display:inline-flex;gap:12px;align-items:flex-start;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);padding:18px;border-radius:18px;backdrop-filter:blur(8px)}.login-side{display:flex;align-items:center;justify-content:center;padding:28px;background:linear-gradient(145deg,#fbfaff,#efe5ff)}.login-card{width:min(460px,100%);background:rgba(255,255,255,.92);border:1px solid rgba(124,58,237,.12);border-radius:28px;padding:36px;box-shadow:var(--shadow)}.brand{text-align:center;margin-bottom:24px}.brand .logo{width:76px;height:76px;border-radius:24px;margin:auto;background:linear-gradient(135deg,var(--primary),var(--accent));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:28px;box-shadow:0 16px 35px rgba(124,58,237,.28)}.brand h1{font-size:24px;margin:16px 0 6px}.brand p{color:var(--muted);margin:0}.field{margin-bottom:15px}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px;color:#3b2b71}.input,select,textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fff;font-size:14px;outline:none}.input:focus,select:focus,textarea:focus{border-color:#a78bfa;box-shadow:0 0 0 4px #ede9fe}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:13px;padding:11px 16px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;cursor:pointer;font-weight:800;box-shadow:0 10px 24px rgba(124,58,237,.2)}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn-muted{background:#ede9fe;color:#5b21b6;box-shadow:none}.btn-success{background:linear-gradient(135deg,#22c55e,#15803d)}.btn-danger{background:var(--danger)}.btn-warning{background:var(--warning)}.alert{padding:12px;border-radius:14px;background:#fee2e2;color:#991b1b;margin:10px 0}.demo-box{margin-top:18px;padding:13px;border-radius:16px;background:#f3e8ff;color:#5b21b6;font-size:12px;text-align:center}.layout{display:flex;min-height:100vh}.sidebar{width:285px;background:linear-gradient(180deg,#4c1d95,#6d28d9 55%,#4c1d95);color:#fff;padding:18px;position:fixed;top:0;bottom:0;overflow:auto;box-shadow:12px 0 35px rgba(76,29,149,.18)}.side-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.app-logo{width:42px;height:42px;border-radius:13px;font-size:19px}.sidebar h2{font-size:18px;margin:0}.sidebar small{color:#ddd6fe}.user-chip{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:12px;margin:18px 0}.avatar{width:42px;height:42px;border-radius:50%;background:#ede9fe;color:#5b21b6;display:flex;align-items:center;justify-content:center;font-weight:900}.nav{margin-top:10px}.nav a{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:14px;margin-bottom:7px;color:#f5f3ff;font-weight:700;font-size:14px}.nav a:hover,.nav a.active{background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.main{margin-left:285px;width:calc(100% - 285px);padding:22px}.topbar{height:68px;background:rgba(255,255,255,.85);border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 32px rgba(91,33,182,.08);display:flex;justify-content:space-between;align-items:center;padding:0 18px;margin-bottom:20px;backdrop-filter:blur(10px)}.page-title h1{margin:0;font-size:25px}.page-title p{margin:4px 0 0}.top-actions{display:flex;align-items:center;gap:12px}.searchbox{min-width:280px;background:#f7f2ff;border:1px solid #eee7ff;border-radius:14px;padding:11px;color:#6b5d91}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 12px 30px rgba(91,33,182,.08);margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{color:#fff;position:relative;overflow:hidden;min-height:118px}.stat:after{content:"";position:absolute;right:-35px;top:-35px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.14)}.stat h3{margin:0;font-size:34px}.stat p{margin:7px 0 0;color:#fff}.s1{background:linear-gradient(135deg,#7c3aed,#5b21b6)}.s2{background:linear-gradient(135deg,#d946ef,#a21caf)}.s3{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.s4{background:linear-gradient(135deg,#22c55e,#15803d)}table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}th,td{padding:13px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}th{background:#faf7ff;color:#51427a;font-size:12px;text-transform:uppercase;letter-spacing:.03em}.badge{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#ede9fe;color:#5b21b6}.badge.done{background:#dcfce7;color:#166534}.badge.warn{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.actions{display:flex;gap:7px;flex-wrap:wrap}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.timeline{border-left:3px solid #ddd6fe;padding-left:16px}.timeline div{margin:0 0 13px}.print-only{display:none}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.panel-title h2{margin:0;font-size:19px}
@media(max-width:1000px){.login-page{grid-template-columns:1fr}.login-hero{display:none}.sidebar{position:relative;width:100%;bottom:auto;border-radius:0}.layout{display:block}.main{margin-left:0;width:100%;padding:14px}.grid{grid-template-columns:1fr 1fr}.row{grid-template-columns:1fr}.topbar{height:auto;align-items:flex-start;gap:12px;flex-direction:column}.searchbox{min-width:100%;width:100%}}@media(max-width:620px){.grid{grid-template-columns:1fr}.actions{display:block}.actions a,.actions button{margin-bottom:6px;width:100%;text-align:center}.login-card{padding:24px}.hero-title h1{font-size:36px}}@media print{.sidebar,.topbar,.no-print,.actions{display:none!important}.main{margin:0;width:100%;padding:0}.card{box-shadow:none;border:1px solid #ddd}.print-only{display:block}}
.alert.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;padding:12px;border-radius:12px;margin:12px 0}.alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;padding:12px;border-radius:12px;margin:12px 0}.verify-page{min-height:100vh;background:linear-gradient(135deg,#3b0764,#7c3aed,#f5f3ff);display:flex;align-items:center;justify-content:center;padding:24px}.verify-card{max-width:760px;width:100%;background:#fff;border-radius:24px;padding:32px;box-shadow:0 25px 80px rgba(55,0,120,.25)}.ok-icon,.bad-icon{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:800;margin-bottom:16px}.ok-icon{background:#dcfce7;color:#16a34a}.bad-icon{background:#fee2e2;color:#dc2626}.signed-page{max-width:1100px;margin:24px auto;background:white;border-radius:20px;box-shadow:0 20px 60px rgba(70,20,130,.12);padding:24px}.pdf-frame{width:100%;height:720px;border:1px solid #ddd;border-radius:14px;margin:16px 0}.sign-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.sign-box{border:1px solid #e9d5ff;border-radius:18px;padding:16px;background:#faf5ff;text-align:center}.qr-img{width:130px;height:130px;margin:10px auto;border-radius:8px;background:#fff;padding:4px}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* ===== Branding RS Muhammadiyah Babat - update final ===== */
.login-v2{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(38,8,91,.88) 0%,rgba(66,18,138,.74) 47%,rgba(38,8,91,.96) 100%),
    url('../img/gedung-rsmb.jpeg') left center/cover no-repeat;
  color:#fff;
  font-family:Inter,Arial,Helvetica,sans-serif;
}
.login-v2:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 18% 80%,rgba(236,72,153,.30),transparent 28%),radial-gradient(circle at 75% 18%,rgba(124,58,237,.45),transparent 30%);pointer-events:none}
.login-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,4,60,.12),rgba(20,4,60,.45));pointer-events:none}.login-branding{position:absolute;left:38px;top:34px;z-index:2}.brand-top{display:flex;align-items:center;gap:16px}.brand-logo-img{width:104px;height:104px;border-radius:50%;object-fit:cover;box-shadow:0 10px 35px rgba(0,0,0,.25)}.brand-divider{width:2px;height:64px;background:rgba(255,255,255,.70)}.brand-name-line{font-size:26px;line-height:1;font-weight:900;letter-spacing:.5px;color:#fff;white-space:nowrap}.brand-tagline{font-size:16px;margin-top:12px;color:#ffd84d;font-style:italic;font-weight:700;white-space:nowrap}.login-panel-wrap{position:relative;z-index:2;min-height:100vh;display:flex;align-items:center;justify-content:flex-end;padding:54px 86px 76px}.login-panel{width:min(560px,46vw);min-width:480px;border:2px solid rgba(255,255,255,.20);background:linear-gradient(180deg,rgba(51,13,116,.78),rgba(23,7,73,.78));box-shadow:0 28px 90px rgba(12,4,40,.38);backdrop-filter:blur(14px);border-radius:30px;padding:44px 54px;text-align:center}.panel-logo-img{width:132px;height:132px;border-radius:50%;object-fit:cover;box-shadow:0 12px 35px rgba(0,0,0,.25);margin-bottom:16px}.login-panel h1{margin:0 0 10px;font-size:35px;line-height:1.1;color:#fff}.panel-subtitle{font-size:22px;line-height:1.35;margin:0;color:#fff}.gold-line{width:70px;height:4px;border-radius:999px;background:#facc15;margin:20px auto 34px}.login-form-modern{display:grid;gap:18px}.input-icon{height:66px;display:flex;align-items:center;gap:16px;background:#fff;border-radius:11px;padding:0 22px;color:#5b21b6;box-shadow:0 10px 28px rgba(0,0,0,.12)}.input-icon input{border:0;outline:0;flex:1;font-size:18px;background:transparent;color:#2b195d}.input-icon input::placeholder{color:#8d7bad}.input-icon span{font-size:24px}.input-icon b{font-size:18px;color:#6d28d9}.login-row{display:flex;justify-content:space-between;align-items:center;font-size:16px;color:#fff}.login-row a{color:#fff}.login-row input{width:18px;height:18px;vertical-align:middle}.btn-login-modern{height:68px;border:0;border-radius:11px;background:linear-gradient(135deg,#8b5cf6,#5b21b6);color:#fff;font-size:24px;font-weight:900;cursor:pointer;box-shadow:0 16px 35px rgba(17,7,52,.35)}.btn-login-modern span{margin-left:18px}.login-separator{display:flex;align-items:center;gap:18px;color:#ddd6fe;margin:24px 0 18px;font-size:16px}.login-separator:before,.login-separator:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.35)}.btn-sso{height:56px;width:72%;border:1px solid rgba(255,255,255,.55);border-radius:11px;background:rgba(255,255,255,.06);color:#fff;font-size:20px;font-weight:900;cursor:pointer}.login-features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px;text-align:left}.login-features div{display:flex;align-items:center;gap:10px;justify-content:center;color:#fff;font-size:15px}.login-features div:first-letter{font-size:30px}.login-footer{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:360px;padding:20px 40px;background:rgba(54,14,122,.78);color:#fff;font-size:15px}.side-logo-img{width:46px;height:46px;border-radius:50%;object-fit:cover;box-shadow:0 8px 22px rgba(0,0,0,.20);background:#fff}.side-head h2{font-size:17px}.side-head small{font-size:12px}.sidebar{background:linear-gradient(180deg,#34106f,#5b21b6 55%,#32105f)}
@media(max-width:1100px){.login-v2{background-position:center}.login-branding{left:24px;top:24px}.brand-logo-img{width:72px;height:72px}.brand-divider{height:48px}.brand-name-line{font-size:20px}.brand-tagline{font-size:13px}.login-panel-wrap{justify-content:center;padding:130px 22px 80px}.login-panel{width:min(560px,100%);min-width:0;padding:34px 24px}.login-footer{gap:16px;justify-content:space-between;font-size:12px}.panel-logo-img{width:100px;height:100px}.login-panel h1{font-size:28px}.panel-subtitle{font-size:18px}.btn-sso{width:100%}.login-features{grid-template-columns:1fr}}
@media(max-width:620px){.brand-name-line{font-size:16px}.brand-tagline{font-size:11px;white-space:normal}.login-panel-wrap{padding-top:118px}.login-footer{position:relative;display:block;text-align:center}.login-footer span{display:block;margin:4px 0}.input-icon{height:58px}.btn-login-modern{height:60px;font-size:20px}}

/* =====================================================
   FINAL MOBILE MODE - e-Sekretariat RS Muhammadiyah Babat
   Login + Beranda handphone sesuai mockup akhir
   ===================================================== */
.mobile-home-hero,.mobile-quick-card,.mobile-summary-card,.mobile-activity-card,.mobile-fab,.mobile-bottom-nav{display:none}

@media(max-width:760px){
  body{background:#fff;}
  .layout{display:block;min-height:100vh;background:#fff;}
  .sidebar,.topbar{display:none!important;}
  .main{margin-left:0;width:100%;padding:0 0 98px;background:#fff;min-height:100vh;}
  .grid,.desktop-card{display:none!important;}
  .mobile-home-hero{display:block;position:relative;min-height:430px;padding:22px 24px 32px;color:#fff;overflow:hidden;background:
    linear-gradient(180deg,rgba(32,8,82,.92),rgba(91,33,182,.62) 46%,rgba(27,7,64,.86) 100%),
    url('../img/gedung-rsmb.jpeg') center bottom/cover no-repeat;border-bottom-left-radius:0;border-bottom-right-radius:0;}
  .mobile-home-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 22% 18%,rgba(168,85,247,.42),transparent 34%),linear-gradient(180deg,transparent 55%,rgba(255,255,255,.15));pointer-events:none;}
  .mobile-statusbar{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;font-size:17px;font-weight:900;margin-bottom:22px;letter-spacing:.03em;}
  .mobile-brand-row{position:relative;z-index:2;display:flex;align-items:center;gap:12px;}
  .mobile-brand-row img{width:76px;height:76px;border-radius:50%;object-fit:cover;box-shadow:0 8px 26px rgba(0,0,0,.30);background:#fff;}
  .mobile-brand-row div{border-left:1px solid rgba(255,255,255,.55);padding-left:12px;line-height:1.1;}
  .mobile-brand-row strong{display:block;font-size:15px;font-weight:900;letter-spacing:.02em;white-space:nowrap;}
  .mobile-brand-row em{display:block;color:#facc15;font-size:13px;font-style:italic;font-weight:700;margin-top:8px;line-height:1.2;}
  .mobile-brand-row .notif{margin-left:auto;position:relative;font-size:24px;}
  .mobile-brand-row .notif b{position:absolute;right:-8px;top:-8px;background:#ef4444;color:#fff;border-radius:50%;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;border:2px solid #fff;}
  .mobile-user-title{position:relative;z-index:2;margin-top:72px;}
  .mobile-user-title span{display:block;font-size:24px;color:#efe9ff;}
  .mobile-user-title h1{margin:6px 0 2px;font-size:36px;line-height:1.05;color:#fff;font-weight:900;}
  .mobile-user-title p{margin:8px 0 16px;font-size:22px;color:#efe9ff;}
  .mobile-user-title small{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:rgba(34,17,78,.82);font-size:17px;font-weight:800;color:#fff;}
  .mobile-user-title small::first-letter{color:#22c55e;}
  .mobile-quick-card{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative;z-index:3;margin:-38px 16px 20px;padding:22px 6px 18px;background:#fff;border-radius:24px;box-shadow:0 20px 48px rgba(45,19,92,.18);}
  .mobile-quick-card a{position:relative;text-align:center;color:#18102f;font-size:13px;font-weight:800;padding:0 4px;border-right:1px solid #eee7ff;}
  .mobile-quick-card a:last-child{border-right:0;}
  .mobile-quick-card i{font-style:normal;display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:#f1eaff;color:#6d28d9;margin:0 auto 10px;font-size:26px;}
  .mobile-quick-card b{position:absolute;top:-9px;right:18px;background:#ef4444;color:#fff;border-radius:999px;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;border:2px solid #fff;}
  .mobile-quick-card span{display:block;line-height:1.1;}
  .mobile-summary-card{display:block;margin:0 16px 20px;padding:22px 14px 18px;border-radius:22px;background:linear-gradient(135deg,#5b21b6,#37107b);box-shadow:0 18px 45px rgba(91,33,182,.22);color:#fff;}
  .mobile-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
  .mobile-card-title h2{margin:0;font-size:20px;color:inherit;}
  .mobile-card-title button,.mobile-card-title a{border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.08);color:inherit;border-radius:16px;padding:9px 14px;font-weight:800;}
  .mobile-summary-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border-radius:18px;padding:18px 6px;color:#1d123f;}
  .mobile-summary-inner div{text-align:center;border-right:1px solid #eee7ff;}
  .mobile-summary-inner div:last-child{border-right:0;}
  .mobile-summary-inner b{display:block;font-size:28px;color:#120d29;}
  .mobile-summary-inner span{display:block;font-size:12px;color:#6b5d91;margin-top:5px;}
  .mobile-activity-card{display:block;margin:0 16px 28px;padding:22px 16px;background:#fff;border-radius:22px;box-shadow:0 18px 45px rgba(45,19,92,.12);color:#160f33;}
  .mobile-activity-card .mobile-card-title h2{color:#160f33;}
  .mobile-activity-card .mobile-card-title a{color:#5b21b6;background:transparent;border:0;font-weight:900;padding:0;}
  .activity-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #f0ebff;color:#160f33;}
  .activity-row:last-child{border-bottom:0;}
  .activity-row i{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:15px;background:#f1eaff;color:#6d28d9;font-style:normal;font-size:22px;}
  .activity-row div{flex:1;min-width:0;}
  .activity-row b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .activity-row span{display:block;color:#7b719d;margin-top:4px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .activity-row small{color:#6d28d9;font-weight:800;font-size:11px;text-align:right;max-width:86px;}
  .mobile-fab{display:flex;position:fixed;right:22px;bottom:92px;z-index:20;width:82px;height:82px;border-radius:50%;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(135deg,#8b5cf6,#5b21b6);color:#fff;box-shadow:0 18px 45px rgba(91,33,182,.38);font-size:34px;font-weight:900;}
  .mobile-fab span{font-size:11px;margin-top:-2px;}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:linear-gradient(135deg,#5b21b6,#37107b);box-shadow:0 -14px 42px rgba(38,8,91,.28);}
  .mobile-bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#ddd6fe;font-size:11px;font-weight:800;border-radius:14px;padding:9px 3px;}
  .mobile-bottom-nav a span{font-size:22px;line-height:1;}
  .mobile-bottom-nav a.active{background:rgba(255,255,255,.14);color:#fff;}
  .mobile-bottom-nav a.qr-nav{transform:translateY(-24px);background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-radius:50%;width:66px;height:66px;margin:auto;color:#fff;box-shadow:0 14px 30px rgba(91,33,182,.34);}
  .mobile-bottom-nav a.qr-nav b{font-size:10px;}
  table{display:block;overflow:auto;white-space:nowrap;}
  .card{border-radius:18px;margin:12px;padding:16px;box-shadow:0 10px 28px rgba(45,19,92,.10);}
  .row{display:block;}
}

@media(max-width:760px){
  .login-v2{min-height:100svh;background:
    linear-gradient(180deg,rgba(31,8,83,.88),rgba(91,33,182,.56) 35%,rgba(24,7,60,.96) 100%),
    url('../img/gedung-rsmb.jpeg') center center/cover no-repeat;display:block;padding:0;overflow-x:hidden;}
  .login-v2:before{background:radial-gradient(circle at 50% 16%,rgba(168,85,247,.40),transparent 30%),radial-gradient(circle at 50% 80%,rgba(76,29,149,.42),transparent 40%);}
  .login-branding{position:relative;left:auto;top:auto;z-index:2;padding:58px 18px 0;text-align:center;}
  .brand-top{display:block;text-align:center;}
  .brand-logo-img{width:126px;height:126px;margin:0 auto 16px;display:block;border-radius:50%;object-fit:cover;box-shadow:0 16px 44px rgba(0,0,0,.36);}
  .brand-divider{display:none;}
  .brand-name-line{font-size:25px;line-height:1.12;font-weight:900;color:#fff;text-align:center;white-space:normal;letter-spacing:.02em;}
  .brand-tagline{font-size:17px;line-height:1.25;color:#facc15;text-align:center;margin-top:10px;font-style:italic;white-space:normal;}
  .login-panel-wrap{min-height:auto;display:block;padding:155px 16px 24px;}
  .login-panel{width:100%;min-width:0;border-radius:28px;padding:32px 22px 28px;background:linear-gradient(180deg,rgba(80,37,152,.56),rgba(31,13,76,.72));border:1px solid rgba(255,255,255,.22);box-shadow:0 24px 70px rgba(11,5,40,.40);backdrop-filter:blur(16px);}
  .panel-logo-img{display:none;}
  .login-panel h1{font-size:31px;margin-bottom:9px;}
  .panel-subtitle{font-size:21px;}
  .gold-line{width:70px;height:4px;margin:16px auto 28px;}
  .login-form-modern{gap:16px;}
  .input-icon{height:64px;border-radius:11px;padding:0 18px;}
  .input-icon input{font-size:18px;}
  .login-row{font-size:15px;margin:2px 0 4px;}
  .btn-login-modern{height:64px;border-radius:11px;font-size:22px;}
  .login-separator{margin:22px 0 17px;}
  .btn-sso{width:88%;height:56px;font-size:17px;}
  .login-features{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px;}
  .login-features div{font-size:11px;line-height:1.25;gap:4px;display:block;text-align:center;}
  .login-footer{position:relative;display:block;text-align:center;background:transparent;padding:18px 16px 28px;font-size:13px;color:#fff;}
  .login-footer span{display:block;margin:8px 0;}
}

@media(max-width:380px){
  .mobile-brand-row strong{font-size:13px;}
  .mobile-user-title h1{font-size:31px;}
  .mobile-summary-inner b{font-size:24px;}
  .login-panel-wrap{padding-top:128px;}
}
.workflow-steps{display:grid;gap:12px}.workflow-step{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;background:#f7f1ff;border:1px solid #eadcff}.workflow-step.disetujui{background:#eefbf1;border-color:#b9efc8}.workflow-step.ditolak,.workflow-step.revisi{background:#fff1f1;border-color:#ffd0d0}.step-no{width:34px;height:34px;border-radius:50%;background:#6d28d9;color:white;display:grid;place-items:center;font-weight:800}.approval-action{background:#fbf8ff;border:1px dashed #9b5cf6;border-radius:18px;padding:14px;margin-bottom:14px}
@media(max-width:720px){.workflow-step{border-radius:16px;padding:12px}.approval-action .btn{width:100%;margin:4px 0}}

/* ==========================================================
   FINAL LOCKED LOGIN THEME - RS Muhammadiyah Babat
   Desktop + Mobile, dominan ungu, logo asli, background gedung
   ========================================================== */
.login-v2{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(22,5,73,.92) 0%,rgba(49,11,117,.82) 44%,rgba(28,8,80,.95) 100%),
    url('../img/gedung-rsmb-final.jpeg') left center/cover no-repeat;
}
.login-v2:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 58%, rgba(168,85,247,.35), transparent 32%),
    radial-gradient(circle at 78% 16%, rgba(124,58,237,.38), transparent 28%),
    linear-gradient(180deg, rgba(17,3,56,.08), rgba(17,3,56,.44));
  pointer-events:none;
}
.login-overlay{display:none;}
.login-branding{position:absolute;left:34px;top:34px;z-index:2;}
.brand-top{display:flex;align-items:center;gap:18px;}
.brand-logo-img{width:112px;height:112px;border-radius:50%;object-fit:cover;background:#fff;box-shadow:0 16px 42px rgba(0,0,0,.35);}
.brand-divider{width:2px;height:64px;background:rgba(255,255,255,.72);}
.brand-name-line{font-size:26px;line-height:1;font-weight:900;color:#fff;letter-spacing:.02em;white-space:nowrap;text-shadow:0 4px 18px rgba(0,0,0,.25);}
.brand-tagline{font-size:17px;color:#facc15;font-style:italic;font-weight:700;margin-top:12px;white-space:nowrap;text-shadow:0 3px 12px rgba(0,0,0,.28);}
.login-panel-wrap{position:relative;z-index:2;min-height:100vh;display:flex;align-items:center;justify-content:flex-end;padding:52px 86px 86px;}
.login-panel{width:min(560px,44vw);min-width:480px;border-radius:30px;padding:44px 54px 38px;text-align:center;background:linear-gradient(180deg,rgba(80,24,151,.72),rgba(27,8,73,.84));border:2px solid rgba(255,255,255,.20);box-shadow:0 28px 90px rgba(9,4,35,.42);backdrop-filter:blur(16px);}
.panel-logo-img{width:132px;height:132px;border-radius:50%;object-fit:cover;background:#fff;box-shadow:0 16px 45px rgba(0,0,0,.32);margin:0 auto 16px;display:block;}
.login-panel h1{margin:0 0 10px;font-size:35px;line-height:1.08;color:#fff;font-weight:900;}
.panel-subtitle{font-size:22px;line-height:1.35;margin:0;color:#fff;}
.gold-line{width:70px;height:4px;border-radius:999px;background:#facc15;margin:20px auto 34px;}
.login-form-modern{display:grid;gap:18px;}
.input-icon{height:66px;display:flex;align-items:center;gap:16px;background:#fff;border-radius:11px;padding:0 22px;color:#5b21b6;box-shadow:0 10px 28px rgba(0,0,0,.16);}
.input-icon input{border:0;outline:0;flex:1;font-size:18px;background:transparent;color:#2b195d;min-width:0;}
.input-icon input::placeholder{color:#8d7bad;}
.input-icon span{font-size:24px;line-height:1;}
.input-icon b{font-size:18px;color:#6d28d9;}
.login-row{display:flex;justify-content:space-between;align-items:center;font-size:16px;color:#fff;margin:0 4px;}
.login-row a{color:#ddd6fe;}
.login-row input{width:18px;height:18px;vertical-align:middle;margin-right:7px;}
.btn-login-modern{height:68px;border:0;border-radius:11px;background:linear-gradient(135deg,#8b5cf6,#5b21b6);color:#fff;font-size:24px;font-weight:900;cursor:pointer;box-shadow:0 16px 35px rgba(17,7,52,.35);}
.btn-login-modern span{margin-left:18px;}
.login-separator{display:flex;align-items:center;gap:18px;color:#ddd6fe;margin:24px 0 18px;font-size:16px;}
.login-separator:before,.login-separator:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.35);}
.btn-sso{height:56px;width:72%;border:1px solid rgba(255,255,255,.55);border-radius:11px;background:rgba(255,255,255,.06);color:#fff;font-size:20px;font-weight:900;cursor:pointer;}
.login-features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px;text-align:center;}
.login-features div{display:flex;align-items:center;justify-content:center;gap:9px;color:#fff;font-size:15px;line-height:1.2;}
.login-features div:first-letter{font-size:30px;}
.login-footer{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:360px;padding:20px 40px;background:rgba(54,14,122,.72);color:#fff;font-size:15px;}

@media(max-width:1100px){
  .login-branding{left:24px;top:24px;}
  .brand-logo-img{width:78px;height:78px;}
  .brand-divider{height:50px;}
  .brand-name-line{font-size:20px;}
  .brand-tagline{font-size:13px;}
  .login-panel-wrap{justify-content:center;padding:128px 22px 82px;}
  .login-panel{width:min(560px,100%);min-width:0;padding:34px 24px;}
  .panel-logo-img{width:104px;height:104px;}
  .login-panel h1{font-size:30px;}
  .panel-subtitle{font-size:19px;}
  .btn-sso{width:100%;}
  .login-footer{gap:24px;justify-content:space-between;font-size:12px;}
}

@media(max-width:760px){
  .login-v2{
    min-height:100svh;
    background:
      linear-gradient(180deg,rgba(25,6,75,.88),rgba(91,33,182,.58) 36%,rgba(21,6,60,.97) 100%),
      url('../img/gedung-rsmb-final.jpeg') center center/cover no-repeat;
    display:block;
    padding:0;
    overflow-x:hidden;
  }
  .login-v2:before{
    background:
      radial-gradient(circle at 50% 14%,rgba(168,85,247,.40),transparent 30%),
      radial-gradient(circle at 50% 80%,rgba(76,29,149,.42),transparent 42%);
  }
  .login-branding{position:relative;left:auto;top:auto;z-index:2;padding:62px 16px 0;text-align:center;}
  .brand-top{display:block;text-align:center;}
  .brand-logo-img{width:126px;height:126px;margin:0 auto 16px;display:block;border-radius:50%;object-fit:cover;box-shadow:0 16px 44px rgba(0,0,0,.36);}
  .brand-divider{display:none;}
  .brand-name-line{font-size:25px;line-height:1.12;font-weight:900;color:#fff;text-align:center;white-space:normal;letter-spacing:.02em;}
  .brand-tagline{font-size:17px;line-height:1.25;color:#facc15;text-align:center;margin-top:10px;font-style:italic;white-space:nowrap;}
  .login-panel-wrap{min-height:auto;display:block;padding:148px 16px 24px;}
  .login-panel{width:100%;min-width:0;border-radius:28px;padding:32px 22px 28px;background:linear-gradient(180deg,rgba(80,37,152,.56),rgba(31,13,76,.72));border:1px solid rgba(255,255,255,.22);box-shadow:0 24px 70px rgba(11,5,40,.42);backdrop-filter:blur(16px);}
  .panel-logo-img{display:none;}
  .login-panel h1{font-size:31px;margin-bottom:9px;}
  .panel-subtitle{font-size:21px;}
  .gold-line{width:70px;height:4px;margin:16px auto 28px;}
  .login-form-modern{gap:16px;}
  .input-icon{height:64px;border-radius:11px;padding:0 18px;}
  .input-icon input{font-size:18px;}
  .login-row{font-size:15px;margin:2px 0 4px;}
  .btn-login-modern{height:64px;border-radius:11px;font-size:22px;}
  .login-separator{margin:22px 0 17px;}
  .btn-sso{width:88%;height:56px;font-size:17px;}
  .login-features{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px;}
  .login-features div{font-size:11px;line-height:1.25;gap:4px;display:block;text-align:center;}
  .login-footer{position:relative;display:block;text-align:center;background:transparent;padding:18px 16px 28px;font-size:13px;color:#fff;}
  .login-footer span{display:block;margin:8px 0;}
}

@media(max-width:380px){
  .brand-name-line{font-size:22px;}
  .brand-tagline{font-size:15px;white-space:normal;}
  .login-panel-wrap{padding-top:128px;}
}

/* ==========================================================
   UI FINAL LOCK v1.0 - RS Muhammadiyah Babat
   Sinkron logo kiri atas dashboard dengan halaman login final
   ========================================================== */
.brand-side-final{
  align-items:center;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.16);
}
.brand-side-final .side-logo-img{
  width:54px;
  height:54px;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  flex:0 0 54px;
}
.brand-side-final h2{
  font-size:13px!important;
  line-height:1.15;
  margin:0;
  font-weight:900;
  color:#fff;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.brand-side-final small{
  display:block;
  margin-top:5px;
  font-size:10.5px!important;
  line-height:1.2;
  color:#facc15!important;
  font-style:italic;
  font-weight:700;
}
.sidebar{
  background:linear-gradient(180deg,#2d0d68 0%,#5b21b6 56%,#271052 100%)!important;
}
.mobile-brand-row img{
  border-radius:50%;
  object-fit:cover;
  background:#fff;
}
.mobile-brand-row strong{
  white-space:normal;
  line-height:1.15;
}
.mobile-brand-row em{
  color:#facc15;
  font-style:italic;
  font-weight:700;
}
@media(max-width:1000px){
  .brand-side-final .side-logo-img{width:50px;height:50px;flex-basis:50px;}
  .brand-side-final h2{font-size:12.5px!important;}
  .brand-side-final small{font-size:10px!important;}
}

/* QR only final - two stage QR approval */
.qr-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}
.qr-stage-grid .sign-box{border:1px solid #e5ddff;background:#fff;border-radius:18px;padding:18px;text-align:center;box-shadow:0 8px 22px rgba(73,33,140,.08)}
.qr-stage-grid .sign-box.qr-done{border-color:#33b36b;background:linear-gradient(180deg,#ffffff,#f2fff7)}
.badge.ok{background:#e7f8ee;color:#168a43;border:1px solid #b8efcf;padding:4px 10px;border-radius:99px;font-size:12px;display:inline-block;margin-top:8px}
.two-approval{grid-template-columns:repeat(2,minmax(260px,1fr));align-items:stretch}
@media(max-width:900px){.qr-stage-grid,.two-approval{grid-template-columns:1fr}}

/* ==========================================================
   LOGIN PROFESSIONAL UPDATE - JULY 2026
   Final modern login page: bright hospital photo, purple brand,
   white rounded login card, feature tiles, and glass footer.
   ========================================================== */
.login-pro{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(25,11,74,.82) 0%,rgba(70,31,150,.42) 42%,rgba(255,255,255,.82) 100%),
    url('../img/gedung-rsmb-final.jpeg') center center/cover no-repeat;
}
.login-pro:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(circle at 6% 0%,rgba(255,255,255,.24),transparent 24%),
    radial-gradient(circle at 78% 18%,rgba(167,139,250,.20),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(36,13,92,.18));
}
.login-pro-bg:before{content:"";position:absolute;left:-120px;top:-190px;width:460px;height:460px;border-radius:50%;background:rgba(124,58,237,.26);filter:blur(.2px)}
.login-pro-bg:after{content:"";position:absolute;left:28px;top:32px;width:160px;height:160px;background-image:radial-gradient(rgba(139,92,246,.30) 3px,transparent 4px);background-size:28px 28px;opacity:.8}
.login-pro-brand{position:absolute;z-index:3;left:46px;top:34px;display:flex;align-items:center;gap:18px}
.login-pro-brand img{width:86px;height:86px;border-radius:50%;object-fit:cover;background:#fff;box-shadow:0 16px 36px rgba(25,11,74,.28)}
.login-pro-brand strong{display:block;font-size:30px;line-height:1.05;font-weight:950;letter-spacing:.015em;text-shadow:0 4px 18px rgba(0,0,0,.28);white-space:nowrap}
.login-pro-brand em{display:block;margin-top:8px;color:#ffd84d;font-size:17px;font-weight:800;font-style:italic;text-shadow:0 3px 14px rgba(0,0,0,.28);white-space:nowrap}
.login-pro-copy{position:absolute;z-index:2;left:clamp(44px,4.5vw,70px);top:31vh;width:min(560px,42vw);text-shadow:0 8px 30px rgba(16,8,46,.35)}
.login-pro-copy h2{font-size:34px;line-height:1.05;margin:0 0 8px;font-weight:900}
.login-pro-copy h1{font-size:70px;line-height:.98;margin:0;color:#fff;font-weight:950;letter-spacing:-.04em}
.login-pro-copy h3{font-size:28px;margin:14px 0 20px;color:#d8b4fe;font-weight:900}
.login-pro-line{display:block;width:90px;height:5px;border-radius:999px;background:#facc15;margin:0 0 28px}
.login-pro-copy p{font-size:21px;line-height:1.45;max-width:570px;margin:0 0 30px;color:#fff}
.login-pro-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;width:min(590px,44vw);max-width:calc(100vw - 120px)}
.login-pro-cards div{height:112px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.70);box-shadow:0 18px 45px rgba(31,13,76,.18);backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#3b236c;text-align:center;font-size:15px;line-height:1.28;font-weight:900}
.login-pro-cards span{font-size:30px;margin-bottom:9px;display:block;filter:drop-shadow(0 8px 18px rgba(91,33,182,.18))}
.login-pro-panel{position:absolute;z-index:3;right:clamp(42px,5vw,80px);top:50%;transform:translateY(-50%);width:clamp(420px,34vw,520px)}
.login-pro-card{background:rgba(255,255,255,.92);color:#1f1646;border:1px solid rgba(255,255,255,.85);border-radius:34px;padding:clamp(34px,3vw,48px) clamp(34px,3.2vw,52px);box-shadow:0 32px 80px rgba(30,16,84,.22);backdrop-filter:blur(20px)}
.login-pro-logo{width:104px;height:104px;border-radius:50%;display:block;margin:0 auto 26px;object-fit:cover;background:#fff;box-shadow:0 14px 34px rgba(91,33,182,.18);outline:10px solid rgba(124,58,237,.10)}
.login-pro-card h2{margin:0;text-align:center;font-size:34px;line-height:1.1;font-weight:950;letter-spacing:-.02em;color:#17122d}
.login-pro-card h2 span{color:#6d28d9}
.login-pro-card p{margin:12px 0 28px;text-align:center;color:#5e557b;font-size:17px}
.login-pro-form{display:grid;gap:17px}
.login-pro-input{height:62px;display:flex;align-items:center;gap:14px;border:1px solid #d8d1e7;border-radius:14px;background:rgba(255,255,255,.98);padding:0 18px;box-shadow:0 10px 24px rgba(31,13,76,.04)}
.login-pro-input span{font-size:22px;color:#6d28d9}.login-pro-input input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:17px;color:#2c214f}.login-pro-input input::placeholder{color:#7d7397}.login-pro-input i{font-style:normal;color:#6b6384}
.login-pro-row{display:flex;justify-content:space-between;align-items:center;color:#5e557b;font-size:15px}.login-pro-row a{color:#6d28d9;font-weight:800}.login-pro-row input{width:18px;height:18px;accent-color:#6d28d9;vertical-align:middle;margin-right:6px}
.login-pro-submit{height:62px;border:0;border-radius:14px;background:linear-gradient(135deg,#8b5cf6,#5b21b6);color:#fff;font-size:18px;font-weight:900;cursor:pointer;box-shadow:0 18px 36px rgba(91,33,182,.28)}
.login-pro-submit:hover{transform:translateY(-1px);filter:brightness(1.03)}
.login-pro-sep{display:flex;align-items:center;gap:18px;color:#766c94;margin:28px 0 18px;font-size:15px}.login-pro-sep:before,.login-pro-sep:after{content:"";height:1px;flex:1;background:#ded8ea}
.login-pro-sso{width:100%;height:58px;border-radius:14px;border:1px solid #8b5cf6;background:#fff;color:#5b21b6;font-size:18px;font-weight:900;cursor:pointer}
.login-pro-note{margin:26px auto 0;max-width:330px;color:#8a819e;font-size:15px;line-height:1.45;text-align:left}
.login-pro-footer{position:absolute;z-index:4;left:48px;right:48px;bottom:34px;min-height:78px;border-radius:36px;background:linear-gradient(90deg,rgba(61,26,132,.78),rgba(111,55,214,.88));border:1px solid rgba(255,255,255,.24);box-shadow:0 18px 55px rgba(31,13,76,.25);display:flex;align-items:center;padding:0 34px;gap:34px;backdrop-filter:blur(16px)}
.login-pro-footer div{display:flex;align-items:center;gap:13px;border-right:1px solid rgba(255,255,255,.22);padding-right:34px;min-width:220px}.login-pro-footer span{font-size:28px}.login-pro-footer b{display:block;color:#fff;font-size:15px}.login-pro-footer small{display:block;color:#d8d0f0;font-size:14px;margin-top:3px}.login-pro-version{margin-left:auto!important;min-width:auto!important;border-right:0!important;border:1px solid rgba(255,255,255,.25);border-radius:24px;padding:11px 18px!important;color:#fff;display:flex!important;gap:10px!important}.login-pro-version i{width:10px;height:10px;border-radius:50%;background:#22c55e;display:inline-block;box-shadow:0 0 0 5px rgba(34,197,94,.16)}
.login-pro-copyright{position:absolute;z-index:4;left:56px;bottom:8px;color:rgba(255,255,255,.92);font-size:13px}

@media (max-width:1440px) and (min-width:981px){
  .login-pro-brand{left:34px;top:28px;gap:14px}
  .login-pro-brand img{width:78px;height:78px}
  .login-pro-brand strong{font-size:26px}
  .login-pro-brand em{font-size:15px}
  .login-pro-copy h1{font-size:62px}
  .login-pro-copy h2{font-size:30px}
  .login-pro-copy h3{font-size:25px}
  .login-pro-copy p{font-size:18px}
  .login-pro-panel{width:clamp(410px,33vw,490px)}
  .login-pro-logo{width:88px;height:88px;margin-bottom:18px}
  .login-pro-card h2{font-size:30px}
  .login-pro-card p{font-size:15px;margin-bottom:22px}
  .login-pro-input{height:56px}
  .login-pro-submit{height:56px}
  .login-pro-sso{height:54px}
  .login-pro-footer{left:38px;right:38px;bottom:26px;min-height:66px;padding:0 24px}
  .login-pro-footer div{min-width:190px}
}
@media (max-height:760px) and (min-width:981px){
  .login-pro-copy{top:28vh}
  .login-pro-brand img{width:70px;height:70px}
  .login-pro-brand strong{font-size:24px}
  .login-pro-brand em{font-size:14px}
  .login-pro-cards div{height:92px;font-size:13px}
  .login-pro-card{padding:28px 34px}
  .login-pro-logo{width:76px;height:76px;margin-bottom:14px}
  .login-pro-card h2{font-size:28px}
  .login-pro-card p{margin:8px 0 18px}
  .login-pro-input,.login-pro-submit{height:52px}
  .login-pro-form{gap:13px}
  .login-pro-sep{margin:18px 0 14px}
  .login-pro-footer{display:none}
  .login-pro-copyright{bottom:10px}
}

@media(max-width:1240px){.login-pro-brand strong{font-size:24px}.login-pro-brand em{font-size:14px}.login-pro-brand img{width:72px;height:72px}.login-pro-copy{left:46px;width:480px}.login-pro-copy h1{font-size:58px}.login-pro-copy p{font-size:18px}.login-pro-cards{grid-template-columns:repeat(2,1fr);width:380px}.login-pro-panel{right:42px;width:480px}.login-pro-card{padding:38px 38px}.login-pro-footer{left:28px;right:28px;gap:18px}.login-pro-footer div{min-width:180px;padding-right:18px}}
@media(max-width:980px){.login-pro{min-height:100svh;overflow:auto;background:linear-gradient(180deg,rgba(37,12,92,.72),rgba(37,12,92,.96)),url('../img/gedung-rsmb-final.jpeg') center top/cover no-repeat;padding:24px 18px 28px}.login-pro-brand{position:relative;left:auto;top:auto;justify-content:center;text-align:left}.login-pro-copy{position:relative;left:auto;top:auto;width:auto;margin:42px 0 22px;text-align:center}.login-pro-copy h2{font-size:25px}.login-pro-copy h1{font-size:48px}.login-pro-copy h3{font-size:22px}.login-pro-line{margin:14px auto 20px}.login-pro-copy p{font-size:16px;margin-left:auto;margin-right:auto}.login-pro-cards{display:none}.login-pro-panel{position:relative;right:auto;top:auto;transform:none;width:100%;max-width:520px;margin:0 auto}.login-pro-card{border-radius:28px;padding:32px 24px}.login-pro-logo{width:88px;height:88px}.login-pro-card h2{font-size:29px}.login-pro-footer{position:relative;left:auto;right:auto;bottom:auto;margin:24px auto 10px;border-radius:24px;display:grid;grid-template-columns:1fr;padding:18px;max-width:520px}.login-pro-footer div{border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding:0 0 12px;min-width:0}.login-pro-version{margin-left:0!important;justify-content:center}.login-pro-copyright{position:relative;left:auto;bottom:auto;text-align:center;margin-top:12px}}
@media(max-width:520px){.login-pro-brand img{width:62px;height:62px}.login-pro-brand strong{font-size:18px;white-space:normal}.login-pro-brand em{font-size:12px;white-space:normal}.login-pro-copy h1{font-size:40px}.login-pro-copy h2{font-size:22px}.login-pro-card{padding:28px 18px}.login-pro-input{height:58px}.login-pro-submit{height:58px}.login-pro-note{text-align:center}.login-pro-footer{font-size:12px}.login-pro-footer b{font-size:14px}.login-pro-footer small{font-size:12px}}

/* ==========================================================
   FIX RESPONSIVE LOGIN - 2026-07-04
   Tujuan: login card lebih kecil, footer tidak tertutup pada Firefox 100%,
   branding kiri atas lebih jelas, dan layout tetap rapi di 1366x768 ke atas.
   ========================================================== */
.login-pro{
  min-height:100vh;
  height:100vh;
  overflow:hidden;
}
.login-pro-bg:before{
  width:360px;
  height:360px;
  left:-90px;
  top:-140px;
  opacity:.75;
}
.login-pro-brand{
  left:clamp(34px,3vw,54px)!important;
  top:clamp(24px,3vh,38px)!important;
  gap:16px!important;
}
.login-pro-brand img{
  width:clamp(76px,5.6vw,98px)!important;
  height:clamp(76px,5.6vw,98px)!important;
}
.login-pro-brand strong{
  font-size:clamp(27px,2.25vw,38px)!important;
  line-height:1.05!important;
  font-weight:950!important;
}
.login-pro-brand em{
  font-size:clamp(15px,1.15vw,19px)!important;
  margin-top:6px!important;
}
.login-pro-copy{
  top:29vh!important;
  left:clamp(42px,4vw,66px)!important;
  width:min(560px,41vw)!important;
}
.login-pro-copy h2{font-size:clamp(26px,2.2vw,34px)!important;}
.login-pro-copy h1{font-size:clamp(54px,5vw,78px)!important;}
.login-pro-copy h3{font-size:clamp(24px,2vw,32px)!important;margin:12px 0 16px!important;}
.login-pro-line{height:4px!important;margin-bottom:22px!important;}
.login-pro-copy p{
  font-size:clamp(16px,1.35vw,21px)!important;
  line-height:1.42!important;
  margin-bottom:24px!important;
}
.login-pro-cards{
  gap:12px!important;
  width:min(560px,41vw)!important;
}
.login-pro-cards div{
  height:clamp(86px,10vh,108px)!important;
  border-radius:16px!important;
  font-size:clamp(12px,.95vw,15px)!important;
}
.login-pro-cards span{font-size:clamp(22px,2vw,29px)!important;margin-bottom:7px!important;}
.login-pro-panel{
  right:clamp(38px,5vw,82px)!important;
  top:47.5%!important;
  width:clamp(390px,32vw,500px)!important;
}
.login-pro-card{
  border-radius:30px!important;
  padding:clamp(24px,2.35vw,36px) clamp(28px,2.75vw,44px)!important;
}
.login-pro-logo{
  width:clamp(74px,6.2vw,98px)!important;
  height:clamp(74px,6.2vw,98px)!important;
  margin-bottom:clamp(12px,1.5vh,20px)!important;
  outline-width:8px!important;
}
.login-pro-card h2{
  font-size:clamp(28px,2.3vw,36px)!important;
}
.login-pro-card p{
  font-size:clamp(14px,1.05vw,16px)!important;
  margin:8px 0 18px!important;
}
.login-pro-form{gap:12px!important;}
.login-pro-input{
  height:clamp(48px,6.1vh,58px)!important;
  border-radius:13px!important;
  padding:0 17px!important;
}
.login-pro-input input{font-size:clamp(14px,1.05vw,16px)!important;}
.login-pro-input span{font-size:20px!important;}
.login-pro-row{font-size:14px!important;}
.login-pro-row input{width:16px!important;height:16px!important;}
.login-pro-submit{
  height:clamp(48px,6.1vh,58px)!important;
  font-size:clamp(16px,1.2vw,18px)!important;
}
.login-pro-sep{
  margin:18px 0 12px!important;
  font-size:14px!important;
}
.login-pro-sso{
  height:clamp(46px,5.6vh,54px)!important;
  font-size:clamp(15px,1.15vw,18px)!important;
}
.login-pro-note{
  margin-top:16px!important;
  font-size:13.5px!important;
  text-align:center!important;
}
.login-pro-footer{
  left:clamp(28px,3vw,48px)!important;
  right:clamp(28px,3vw,48px)!important;
  bottom:22px!important;
  min-height:58px!important;
  border-radius:28px!important;
  padding:0 26px!important;
  gap:22px!important;
}
.login-pro-footer div{
  min-width:180px!important;
  padding-right:22px!important;
}
.login-pro-footer span{font-size:23px!important;}
.login-pro-footer b{font-size:14px!important;}
.login-pro-footer small{font-size:12.5px!important;}
.login-pro-version{padding:8px 15px!important;}
.login-pro-copyright{
  bottom:4px!important;
  font-size:12px!important;
}
@media (max-height: 780px) and (min-width: 981px){
  .login-pro-brand img{width:70px!important;height:70px!important;}
  .login-pro-brand strong{font-size:26px!important;}
  .login-pro-brand em{font-size:14px!important;margin-top:4px!important;}
  .login-pro-copy{top:27vh!important;}
  .login-pro-copy h2{font-size:25px!important;}
  .login-pro-copy h1{font-size:54px!important;}
  .login-pro-copy h3{font-size:23px!important;margin-bottom:12px!important;}
  .login-pro-line{margin-bottom:16px!important;}
  .login-pro-copy p{font-size:16px!important;margin-bottom:18px!important;}
  .login-pro-cards div{height:82px!important;font-size:12px!important;}
  .login-pro-cards span{font-size:22px!important;margin-bottom:5px!important;}
  .login-pro-panel{top:47%!important;width:420px!important;}
  .login-pro-card{padding:22px 30px!important;border-radius:28px!important;}
  .login-pro-logo{width:70px!important;height:70px!important;margin-bottom:10px!important;outline-width:7px!important;}
  .login-pro-card h2{font-size:26px!important;}
  .login-pro-card p{font-size:13px!important;margin:6px 0 14px!important;}
  .login-pro-form{gap:10px!important;}
  .login-pro-input,.login-pro-submit{height:46px!important;}
  .login-pro-sso{height:44px!important;}
  .login-pro-sep{margin:14px 0 10px!important;}
  .login-pro-note{display:none!important;}
  .login-pro-footer{min-height:54px!important;bottom:18px!important;padding:0 22px!important;}
  .login-pro-footer div{min-width:170px!important;}
}
@media(max-width:980px){
  .login-pro{height:auto;min-height:100svh;overflow:auto;}
  .login-pro-brand strong{font-size:24px!important;}
  .login-pro-brand em{font-size:13px!important;}
}
@media(max-width:520px){
  .login-pro-brand strong{font-size:18px!important;}
  .login-pro-brand em{font-size:12px!important;}
  .login-pro-panel{width:100%!important;}
}


/* ==========================================================
   FIX RESPONSIVE LOGIN - 2026-07-04
   Login card lebih kecil, footer tidak tertutup pada Firefox 100%,
   branding kiri atas lebih jelas, layout rapi di 1366x768 ke atas.
   ========================================================== */
.login-pro{min-height:100vh;height:100vh;overflow:hidden;}
.login-pro-bg:before{width:360px;height:360px;left:-90px;top:-140px;opacity:.75;}
.login-pro-brand{left:clamp(34px,3vw,54px)!important;top:clamp(24px,3vh,38px)!important;gap:16px!important;}
.login-pro-brand img{width:clamp(76px,5.6vw,98px)!important;height:clamp(76px,5.6vw,98px)!important;}
.login-pro-brand strong{font-size:clamp(27px,2.25vw,38px)!important;line-height:1.05!important;font-weight:950!important;}
.login-pro-brand em{font-size:clamp(15px,1.15vw,19px)!important;margin-top:6px!important;}
.login-pro-copy{top:29vh!important;left:clamp(42px,4vw,66px)!important;width:min(560px,41vw)!important;}
.login-pro-copy h2{font-size:clamp(26px,2.2vw,34px)!important;}
.login-pro-copy h1{font-size:clamp(54px,5vw,78px)!important;}
.login-pro-copy h3{font-size:clamp(24px,2vw,32px)!important;margin:12px 0 16px!important;}
.login-pro-line{height:4px!important;margin-bottom:22px!important;}
.login-pro-copy p{font-size:clamp(16px,1.35vw,21px)!important;line-height:1.42!important;margin-bottom:24px!important;}
.login-pro-cards{gap:12px!important;width:min(560px,41vw)!important;}
.login-pro-cards div{height:clamp(86px,10vh,108px)!important;border-radius:16px!important;font-size:clamp(12px,.95vw,15px)!important;}
.login-pro-cards span{font-size:clamp(22px,2vw,29px)!important;margin-bottom:7px!important;}
.login-pro-panel{right:clamp(38px,5vw,82px)!important;top:47.5%!important;width:clamp(390px,32vw,500px)!important;}
.login-pro-card{border-radius:30px!important;padding:clamp(24px,2.35vw,36px) clamp(28px,2.75vw,44px)!important;}
.login-pro-logo{width:clamp(74px,6.2vw,98px)!important;height:clamp(74px,6.2vw,98px)!important;margin-bottom:clamp(12px,1.5vh,20px)!important;outline-width:8px!important;}
.login-pro-card h2{font-size:clamp(28px,2.3vw,36px)!important;}
.login-pro-card p{font-size:clamp(14px,1.05vw,16px)!important;margin:8px 0 18px!important;}
.login-pro-form{gap:12px!important;}
.login-pro-input{height:clamp(48px,6.1vh,58px)!important;border-radius:13px!important;padding:0 17px!important;}
.login-pro-input input{font-size:clamp(14px,1.05vw,16px)!important;}
.login-pro-input span{font-size:20px!important;}
.login-pro-row{font-size:14px!important;}
.login-pro-row input{width:16px!important;height:16px!important;}
.login-pro-submit{height:clamp(48px,6.1vh,58px)!important;font-size:clamp(16px,1.2vw,18px)!important;}
.login-pro-sep{margin:18px 0 12px!important;font-size:14px!important;}
.login-pro-sso{height:clamp(46px,5.6vh,54px)!important;font-size:clamp(15px,1.15vw,18px)!important;}
.login-pro-note{margin-top:16px!important;font-size:13.5px!important;text-align:center!important;}
.login-pro-footer{left:clamp(28px,3vw,48px)!important;right:clamp(28px,3vw,48px)!important;bottom:22px!important;min-height:58px!important;border-radius:28px!important;padding:0 26px!important;gap:22px!important;}
.login-pro-footer div{min-width:180px!important;padding-right:22px!important;}
.login-pro-footer span{font-size:23px!important;}
.login-pro-footer b{font-size:14px!important;}
.login-pro-footer small{font-size:12.5px!important;}
.login-pro-version{padding:8px 15px!important;}
.login-pro-copyright{bottom:4px!important;font-size:12px!important;}
@media (max-height: 780px) and (min-width: 981px){
  .login-pro-brand img{width:70px!important;height:70px!important;}
  .login-pro-brand strong{font-size:26px!important;}
  .login-pro-brand em{font-size:14px!important;margin-top:4px!important;}
  .login-pro-copy{top:27vh!important;}
  .login-pro-copy h2{font-size:25px!important;}
  .login-pro-copy h1{font-size:54px!important;}
  .login-pro-copy h3{font-size:23px!important;margin-bottom:12px!important;}
  .login-pro-line{margin-bottom:16px!important;}
  .login-pro-copy p{font-size:16px!important;margin-bottom:18px!important;}
  .login-pro-cards div{height:82px!important;font-size:12px!important;}
  .login-pro-cards span{font-size:22px!important;margin-bottom:5px!important;}
  .login-pro-panel{top:47%!important;width:420px!important;}
  .login-pro-card{padding:22px 30px!important;border-radius:28px!important;}
  .login-pro-logo{width:70px!important;height:70px!important;margin-bottom:10px!important;outline-width:7px!important;}
  .login-pro-card h2{font-size:26px!important;}
  .login-pro-card p{font-size:13px!important;margin:6px 0 14px!important;}
  .login-pro-form{gap:10px!important;}
  .login-pro-input,.login-pro-submit{height:46px!important;}
  .login-pro-sso{height:44px!important;}
  .login-pro-sep{margin:14px 0 10px!important;}
  .login-pro-note{display:none!important;}
  .login-pro-footer{min-height:54px!important;bottom:18px!important;padding:0 22px!important;}
  .login-pro-footer div{min-width:170px!important;}
}
@media(max-width:980px){.login-pro{height:auto;min-height:100svh;overflow:auto;}.login-pro-brand strong{font-size:24px!important;}.login-pro-brand em{font-size:13px!important;}}
@media(max-width:520px){.login-pro-brand strong{font-size:18px!important;}.login-pro-brand em{font-size:12px!important;}.login-pro-panel{width:100%!important;}}


/* ==========================================================
   HOTFIX LOGIN COMPACT + FOOTER SAFE - 2026-07-04c
   Dipasang paling bawah agar menimpa aturan sebelumnya.
   ========================================================== */
.login-pro{height:100vh!important;min-height:100vh!important;overflow:hidden!important;}
.login-pro-brand{left:42px!important;top:32px!important;}
.login-pro-brand img{width:78px!important;height:78px!important;}
.login-pro-brand strong{font-size:31px!important;line-height:1.05!important;font-weight:950!important;}
.login-pro-brand em{font-size:16px!important;margin-top:5px!important;}
.login-pro-copy{top:30vh!important;left:50px!important;width:500px!important;}
.login-pro-copy h2{font-size:29px!important;margin-bottom:6px!important;}
.login-pro-copy h1{font-size:62px!important;}
.login-pro-copy h3{font-size:27px!important;margin:10px 0 14px!important;}
.login-pro-line{height:4px!important;width:86px!important;margin-bottom:18px!important;}
.login-pro-copy p{font-size:18px!important;line-height:1.42!important;margin-bottom:22px!important;max-width:520px!important;}
.login-pro-cards{width:520px!important;gap:12px!important;}
.login-pro-cards div{height:94px!important;font-size:13px!important;border-radius:16px!important;}
.login-pro-cards span{font-size:25px!important;margin-bottom:6px!important;}
.login-pro-panel{right:62px!important;top:47%!important;width:430px!important;}
.login-pro-card{padding:24px 34px 26px!important;border-radius:28px!important;}
.login-pro-logo{width:74px!important;height:74px!important;margin-bottom:14px!important;outline-width:7px!important;}
.login-pro-card h2{font-size:30px!important;margin-bottom:7px!important;}
.login-pro-card p{font-size:14px!important;margin:6px 0 15px!important;}
.login-pro-form{gap:10px!important;}
.login-pro-input{height:48px!important;border-radius:12px!important;padding:0 15px!important;}
.login-pro-input span{font-size:19px!important;}
.login-pro-input input{font-size:15px!important;}
.login-pro-row{font-size:13px!important;}
.login-pro-row input{width:15px!important;height:15px!important;}
.login-pro-submit{height:50px!important;font-size:17px!important;border-radius:12px!important;}
.login-pro-sep{margin:14px 0 10px!important;font-size:13px!important;}
.login-pro-sso{height:46px!important;font-size:16px!important;border-radius:12px!important;}
.login-pro-note{margin-top:13px!important;font-size:12.5px!important;line-height:1.35!important;}
.login-pro-footer{bottom:20px!important;left:42px!important;right:42px!important;min-height:52px!important;padding:0 22px!important;border-radius:26px!important;gap:16px!important;}
.login-pro-footer div{min-width:155px!important;padding-right:16px!important;}
.login-pro-footer span{font-size:21px!important;}
.login-pro-footer b{font-size:13px!important;}
.login-pro-footer small{font-size:11.5px!important;}
.login-pro-version{padding:7px 13px!important;font-size:12px!important;}
.login-pro-copyright{bottom:3px!important;font-size:11.5px!important;}
@media (max-height:820px) and (min-width:981px){
  .login-pro-brand{top:24px!important;}
  .login-pro-brand img{width:68px!important;height:68px!important;}
  .login-pro-brand strong{font-size:28px!important;}
  .login-pro-brand em{font-size:14px!important;}
  .login-pro-copy{top:29vh!important;width:470px!important;}
  .login-pro-copy h2{font-size:25px!important;}
  .login-pro-copy h1{font-size:54px!important;}
  .login-pro-copy h3{font-size:23px!important;}
  .login-pro-copy p{font-size:16px!important;margin-bottom:16px!important;}
  .login-pro-cards{width:470px!important;}
  .login-pro-cards div{height:78px!important;font-size:12px!important;}
  .login-pro-cards span{font-size:21px!important;margin-bottom:4px!important;}
  .login-pro-panel{top:46.5%!important;width:405px!important;}
  .login-pro-card{padding:20px 30px 22px!important;}
  .login-pro-logo{width:64px!important;height:64px!important;margin-bottom:9px!important;}
  .login-pro-card h2{font-size:26px!important;}
  .login-pro-card p{font-size:13px!important;margin-bottom:12px!important;}
  .login-pro-input,.login-pro-submit{height:44px!important;}
  .login-pro-sso{height:42px!important;}
  .login-pro-note{display:none!important;}
  .login-pro-sep{margin:12px 0 8px!important;}
  .login-pro-footer{min-height:48px!important;bottom:18px!important;}
}
@media (max-width:1100px){
  .login-pro{height:auto!important;min-height:100svh!important;overflow:auto!important;}
  .login-pro-brand{position:relative!important;left:auto!important;top:auto!important;padding:22px 18px 0!important;}
  .login-pro-copy{position:relative!important;left:auto!important;top:auto!important;width:auto!important;padding:24px 18px 0!important;}
  .login-pro-cards{width:100%!important;grid-template-columns:repeat(2,1fr)!important;}
  .login-pro-panel{position:relative!important;right:auto!important;top:auto!important;transform:none!important;width:min(430px,calc(100% - 32px))!important;margin:24px auto 22px!important;}
  .login-pro-footer{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;margin:16px!important;}
  .login-pro-copyright{position:relative!important;bottom:auto!important;text-align:center!important;padding-bottom:16px!important;}
}
@media (max-width:560px){
  .login-pro-brand{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important;}
  .login-pro-brand img{width:58px!important;height:58px!important;}
  .login-pro-brand strong{font-size:17px!important;white-space:normal!important;}
  .login-pro-brand em{font-size:11px!important;white-space:normal!important;}
  .login-pro-copy h1{font-size:44px!important;}
  .login-pro-copy h2{font-size:23px!important;}
  .login-pro-copy h3{font-size:21px!important;}
  .login-pro-cards{grid-template-columns:repeat(2,1fr)!important;}
  .login-pro-cards div{height:86px!important;}
}

/* ==========================================================
   HOTFIX SHOW/HIDE PASSWORD - 2026-07-05
   Icon mata pada halaman login aktif, nyaman diklik, dan rapi.
   ========================================================== */
.login-pro-input.password-wrap{position:relative;}
.login-pro-input.password-wrap input{padding-right:8px;}
.password-toggle{
  border:0!important;
  background:transparent!important;
  color:#6d28d9!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  cursor:pointer!important;
  font-size:18px!important;
  line-height:1!important;
  transition:background .18s ease, transform .18s ease, color .18s ease!important;
  padding:0!important;
  margin-left:4px!important;
}
.password-toggle:hover{background:rgba(109,40,217,.10)!important;transform:scale(1.06)!important;}
.password-toggle:active{transform:scale(.96)!important;}
.password-toggle:focus{outline:3px solid rgba(139,92,246,.28)!important;outline-offset:2px!important;}
@media(max-width:560px){.password-toggle{width:34px!important;height:34px!important;min-width:34px!important;font-size:17px!important;}}

/* ==========================================================
   DASHBOARD LIGHT MODERN THEME - RS Muhammadiyah Babat
   Update: sidebar putih, aksen ungu, kartu statistik modern
   ========================================================== */
body{
  background:linear-gradient(180deg,#fbfaff 0%,#f7f4ff 48%,#ffffff 100%)!important;
  color:#17113d!important;
}
.layout{background:#fbfaff!important;}
.sidebar{
  width:270px!important;
  background:rgba(255,255,255,.94)!important;
  color:#17113d!important;
  border-right:1px solid #eee7ff!important;
  box-shadow:12px 0 38px rgba(91,33,182,.08)!important;
  padding:22px 18px!important;
}
.main{
  margin-left:270px!important;
  width:calc(100% - 270px)!important;
  padding:26px 28px!important;
}
.brand-side-final{
  border-bottom:0!important;
  padding:0 0 22px!important;
  gap:12px!important;
}
.brand-side-final .side-logo-img{
  width:70px!important;
  height:70px!important;
  flex:0 0 70px!important;
  box-shadow:0 12px 26px rgba(91,33,182,.18)!important;
}
.brand-side-final h2{
  color:#4c1d95!important;
  font-size:18px!important;
  line-height:1.03!important;
  letter-spacing:.01em!important;
}
.brand-side-final small{
  color:#7c3aed!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  font-weight:700!important;
}
.user-chip{
  position:fixed!important;
  left:18px!important;
  bottom:22px!important;
  width:234px!important;
  background:#fff!important;
  color:#17113d!important;
  border:1px solid #eee7ff!important;
  box-shadow:0 14px 30px rgba(91,33,182,.10)!important;
  margin:0!important;
  border-radius:16px!important;
}
.user-chip small{color:#16a34a!important;font-weight:700!important;}
.avatar{
  background:linear-gradient(135deg,#ede9fe,#f5f3ff)!important;
  color:#5b21b6!important;
}
.nav{padding-bottom:110px!important;}
.nav a{
  color:#282052!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:13px!important;
  margin-bottom:7px!important;
  padding:12px 14px!important;
  font-size:14px!important;
}
.nav a span:first-child{
  color:#7c3aed!important;
  min-width:18px!important;
  text-align:center!important;
}
.nav a:hover{
  background:#f5f0ff!important;
  color:#5b21b6!important;
  border-color:#eee7ff!important;
  box-shadow:none!important;
}
.nav a.active{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(124,58,237,.24)!important;
}
.nav a.active span:first-child{color:#fff!important;}
.topbar{
  height:auto!important;
  min-height:72px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:4px 0 18px!important;
  margin-bottom:10px!important;
}
.page-title{position:relative;padding-left:42px;}
.page-title:before{
  content:'▦';
  position:absolute;
  left:0;top:4px;
  width:30px;height:30px;
  display:grid;place-items:center;
  color:#7c3aed;
  font-size:26px;
}
.page-title h1{font-size:30px!important;font-weight:900!important;color:#17113d!important;}
.page-title p{font-size:14px!important;color:#5f5488!important;font-weight:600!important;}
.top-actions{gap:14px!important;}
.searchbox{
  min-width:310px!important;
  height:54px!important;
  background:#fff!important;
  border:1px solid #eee7ff!important;
  border-radius:16px!important;
  box-shadow:0 10px 28px rgba(91,33,182,.06)!important;
  color:#6b5d91!important;
}
.top-actions .muted{
  background:#fff!important;
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 18px!important;
  border:1px solid #eee7ff!important;
  border-radius:16px!important;
  box-shadow:0 10px 28px rgba(91,33,182,.06)!important;
  color:#4c3b78!important;
  font-weight:800!important;
}
.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
.card{
  background:#fff!important;
  border:1px solid #eee7ff!important;
  border-radius:20px!important;
  box-shadow:0 16px 38px rgba(91,33,182,.07)!important;
}
.stat{
  min-height:134px!important;
  color:#17113d!important;
  display:grid!important;
  grid-template-columns:80px 1fr!important;
  align-items:center!important;
  gap:18px!important;
  padding:22px!important;
  background:#fff!important;
}
.stat:after{display:none!important;}
.stat:before{
  width:64px;height:64px;border-radius:18px;
  display:grid;place-items:center;
  color:#fff;font-size:34px;font-weight:900;
  box-shadow:0 16px 28px rgba(124,58,237,.25);
}
.stat h3{
  grid-column:2!important;
  grid-row:1!important;
  font-size:34px!important;
  line-height:1!important;
  color:#15103b!important;
  margin:0!important;
}
.stat p{
  grid-column:2!important;
  grid-row:1!important;
  margin:48px 0 0!important;
  color:#15103b!important;
  font-weight:900!important;
}
.stat p small{color:#736790!important;font-weight:600!important;}
.s1:before{content:'✉';background:linear-gradient(135deg,#a855f7,#6d28d9);}
.s2:before{content:'▧';background:linear-gradient(135deg,#ec4899,#c026d3);}
.s3:before{content:'➤';background:linear-gradient(135deg,#38bdf8,#2563eb);}
.s4:before{content:'✓';background:linear-gradient(135deg,#22c55e,#16a34a);}
.row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;margin-top:18px!important;}
.panel-title h2,.card h2{font-size:24px!important;color:#17113d!important;font-weight:900!important;}
.panel-title h2:before,.card>h2:before{color:#7c3aed;margin-right:8px;}
.card table{width:100%!important;border-collapse:collapse!important;}
th{
  background:#faf7ff!important;
  color:#51447d!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
td,th{border-bottom:1px solid #f0e9ff!important;padding:13px 14px!important;}
.btn{
  border-radius:13px!important;
  background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;
  box-shadow:0 12px 25px rgba(124,58,237,.18)!important;
}
.btn-muted{
  background:#f4efff!important;
  color:#6d28d9!important;
  border:1px solid #eee7ff!important;
  box-shadow:none!important;
}
.actions{gap:12px!important;}
.actions .btn{min-height:44px!important;}
.desktop-card{margin-top:18px!important;min-height:280px!important;}
.desktop-card table tr:last-child td{
  text-align:center!important;
  padding:44px 20px!important;
  color:#5f5488!important;
  font-weight:700!important;
}
@media(max-width:1100px){
  .sidebar{width:245px!important;}
  .main{margin-left:245px!important;width:calc(100% - 245px)!important;padding:20px!important;}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .row{grid-template-columns:1fr!important;}
  .searchbox{min-width:220px!important;}
  .user-chip{width:210px!important;}
  .brand-side-final h2{font-size:15px!important;}
}
@media(max-width:820px){
  .sidebar{display:none!important;}
  .main{margin-left:0!important;width:100%!important;padding:16px 14px 92px!important;}
  .topbar{display:block!important;}
  .page-title{margin-bottom:12px!important;}
  .top-actions{display:grid!important;grid-template-columns:1fr!important;}
  .searchbox{min-width:0!important;width:100%!important;}
  .grid{grid-template-columns:1fr!important;}
  .stat{grid-template-columns:70px 1fr!important;min-height:112px!important;}
  .stat:before{width:56px;height:56px;font-size:28px;}
}


/* =====================================================
   THEME FINAL: OPSI A - ENTERPRISE PURPLE
   e-Sekretariat RS Muhammadiyah Babat
   ===================================================== */
:root{
  --ep-bg:#f5f7fc;
  --ep-sidebar:#ffffff;
  --ep-card:#ffffff;
  --ep-text:#15113d;
  --ep-muted:#6f6792;
  --ep-line:#eee7ff;
  --ep-primary:#6c4cf1;
  --ep-primary2:#8b5cf6;
  --ep-pink:#ec4899;
  --ep-blue:#3b82f6;
  --ep-green:#22c55e;
  --ep-yellow:#facc15;
}
body{
  background:
    radial-gradient(circle at 85% 5%,rgba(139,92,246,.12),transparent 34%),
    linear-gradient(180deg,#fbfaff 0%,var(--ep-bg) 100%) !important;
  color:var(--ep-text)!important;
}
.enterprise-a.layout{background:transparent!important;}
.enterprise-a .sidebar{
  width:280px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfaff 48%,#f8f5ff 100%)!important;
  color:var(--ep-text)!important;
  border-right:1px solid #eee8ff!important;
  box-shadow:12px 0 40px rgba(91,33,182,.07)!important;
  padding:22px 18px 18px!important;
}
.enterprise-a .main{
  margin-left:280px!important;
  width:calc(100% - 280px)!important;
  padding:26px 30px!important;
  background:transparent!important;
}
.enterprise-a .brand-side-final{
  gap:13px!important;
  padding:8px 4px 18px!important;
  margin-bottom:10px!important;
}
.enterprise-a .side-logo-img{
  width:74px!important;
  height:74px!important;
  border-radius:50%!important;
  box-shadow:0 12px 32px rgba(91,33,182,.16)!important;
}
.enterprise-a .brand-side-final h2{
  margin:0!important;
  font-size:15px!important;
  line-height:1.02!important;
  color:#281269!important;
  letter-spacing:.1px!important;
  font-weight:900!important;
}
.enterprise-a .brand-side-final h2 strong{
  display:block!important;
  font-size:31px!important;
  line-height:1!important;
  color:#5b21b6!important;
}
.enterprise-a .brand-side-final small{
  display:block!important;
  margin-top:7px!important;
  font-size:11px!important;
  color:#6d28d9!important;
  font-style:italic!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.enterprise-a .nav{margin-top:8px!important;}
.enterprise-a .nav-section{
  color:#9a8ec4!important;
  font-size:11px!important;
  letter-spacing:.08em!important;
  font-weight:900!important;
  margin:20px 16px 8px!important;
  padding-top:12px!important;
  border-top:1px solid #eee7ff!important;
}
.enterprise-a .nav a{
  color:#211848!important;
  font-weight:800!important;
  font-size:14px!important;
  padding:12px 14px!important;
  border-radius:13px!important;
  margin-bottom:6px!important;
  transition:.18s ease!important;
}
.enterprise-a .nav a span:first-child{
  color:#7c3aed!important;
  min-width:20px!important;
  text-align:center!important;
}
.enterprise-a .nav a:hover{
  background:#f4efff!important;
  transform:translateX(2px)!important;
}
.enterprise-a .nav a.active{
  background:linear-gradient(135deg,#7c3aed,#6c4cf1)!important;
  color:#fff!important;
  box-shadow:0 14px 26px rgba(124,58,237,.24)!important;
}
.enterprise-a .nav a.active span:first-child{color:#fff!important;}
.enterprise-a .user-chip{
  position:sticky!important;
  bottom:0!important;
  margin:22px 0 0!important;
  background:#fff!important;
  color:var(--ep-text)!important;
  border:1px solid #eee7ff!important;
  box-shadow:0 14px 32px rgba(91,33,182,.10)!important;
  border-radius:17px!important;
  padding:12px!important;
}
.enterprise-a .user-chip small{color:#16a34a!important;font-weight:800!important;}
.enterprise-a .avatar{
  background:linear-gradient(135deg,#ede9fe,#fff)!important;
  color:#5b21b6!important;
}

.enterprise-a .topbar{
  min-height:72px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0 0 18px!important;
  margin:0 0 8px!important;
}
.enterprise-a .page-title{padding-left:48px!important;}
.enterprise-a .page-title:before{
  content:'▦'!important;
  position:absolute!important;
  left:0!important;
  top:4px!important;
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
  background:#f2ecff!important;
  color:#7c3aed!important;
  font-size:22px!important;
}
.enterprise-a .page-title h1{
  font-size:31px!important;
  font-weight:950!important;
  color:#15113d!important;
  letter-spacing:-.03em!important;
}
.enterprise-a .page-title p{
  font-size:14px!important;
  color:#5f5488!important;
  font-weight:700!important;
}
.enterprise-a .top-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
}
.enterprise-a .search-wrap{position:relative;}
.enterprise-a .search-wrap span{
  position:absolute;right:15px;top:50%;transform:translateY(-50%);
  color:#6d28d9;font-weight:900;font-size:18px;
}
.enterprise-a .searchbox{
  width:310px!important;
  min-width:260px!important;
  height:54px!important;
  border:1px solid #eee7ff!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 12px 26px rgba(91,33,182,.06)!important;
  padding:0 44px 0 18px!important;
  color:#6f6792!important;
}
.enterprise-a .top-icon{
  width:46px;height:46px;border-radius:15px;background:#fff;border:1px solid #eee7ff;
  display:grid;place-items:center;position:relative;box-shadow:0 12px 26px rgba(91,33,182,.06);
  color:#5b21b6!important;font-size:19px;
}
.enterprise-a .top-icon b{
  position:absolute;right:-3px;top:-6px;background:#ef4444;color:#fff;border-radius:999px;
  min-width:20px;height:20px;font-size:11px;display:grid;place-items:center;border:2px solid #fff;
}
.enterprise-a .date-chip{
  height:54px;padding:0 18px;border-radius:16px;background:#fff;border:1px solid #eee7ff;
  display:flex;align-items:center;gap:10px;box-shadow:0 12px 26px rgba(91,33,182,.06);
  color:#4c3b78!important;font-weight:900!important;white-space:nowrap;
}
.enterprise-a .profile-chip{
  min-height:54px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #eee7ff;
  border-radius:18px;padding:8px 12px;box-shadow:0 12px 26px rgba(91,33,182,.06);
  color:#15113d;
}
.enterprise-a .profile-avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#dbeafe,#f5f3ff);color:#5b21b6;font-weight:900;
}
.enterprise-a .profile-chip b{display:block;font-size:13px;line-height:1.1;white-space:nowrap;}
.enterprise-a .profile-chip small{display:block;color:#6f6792;font-weight:700;font-size:11px;margin-top:3px;}

.enterprise-a .grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.enterprise-a .card{
  background:var(--ep-card)!important;
  border:1px solid #eee7ff!important;
  border-radius:22px!important;
  box-shadow:0 18px 40px rgba(91,33,182,.075)!important;
}
.enterprise-a .stat{
  min-height:132px!important;
  display:grid!important;
  grid-template-columns:78px 1fr!important;
  align-items:center!important;
  gap:16px!important;
  padding:22px!important;
  overflow:hidden!important;
  position:relative!important;
  color:#15113d!important;
}
.enterprise-a .stat:after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  right:-38px!important;top:-44px!important;
  width:126px!important;height:126px!important;border-radius:50%!important;
  background:rgba(255,255,255,.28)!important;
}
.enterprise-a .stat:before{
  width:66px!important;height:66px!important;border-radius:19px!important;
  display:grid!important;place-items:center!important;color:#fff!important;font-size:34px!important;font-weight:900!important;
  box-shadow:0 18px 30px rgba(91,33,182,.22)!important;
  z-index:1!important;
}
.enterprise-a .stat h3{
  grid-column:2!important;grid-row:1!important;
  margin:-4px 0 0!important;font-size:37px!important;line-height:1!important;font-weight:950!important;color:#15113d!important;z-index:1!important;
}
.enterprise-a .stat p{
  grid-column:2!important;grid-row:1!important;
  margin:45px 0 0!important;color:#15113d!important;font-size:15px!important;font-weight:900!important;z-index:1!important;
}
.enterprise-a .stat p small{display:block;margin-top:4px;color:#615883!important;font-size:12px!important;font-weight:700!important;}
.enterprise-a .s1{background:linear-gradient(135deg,#f8f2ff,#ead8ff)!important;}
.enterprise-a .s2{background:linear-gradient(135deg,#fff1fb,#f8c8ef)!important;}
.enterprise-a .s3{background:linear-gradient(135deg,#eff8ff,#cbe7ff)!important;}
.enterprise-a .s4{background:linear-gradient(135deg,#effdf5,#d5f8e3)!important;}
.enterprise-a .s1:before{content:'✉'!important;background:linear-gradient(135deg,#a855f7,#6d28d9)!important;}
.enterprise-a .s2:before{content:'▧'!important;background:linear-gradient(135deg,#ec4899,#c026d3)!important;}
.enterprise-a .s3:before{content:'➤'!important;background:linear-gradient(135deg,#38bdf8,#2563eb)!important;}
.enterprise-a .s4:before{content:'✓'!important;background:linear-gradient(135deg,#22c55e,#16a34a)!important;}

.enterprise-a .row{
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  margin-top:18px!important;
}
.enterprise-a .panel-title h2,.enterprise-a .card h2{
  font-size:24px!important;font-weight:950!important;color:#15113d!important;
}
.enterprise-a .panel-title h2:before{content:'♙';color:#7c3aed;margin-right:9px;}
.enterprise-a .row .card:nth-child(2)>h2:before{content:'⚡';color:#7c3aed;margin-right:9px;}
.enterprise-a th{
  background:#fbf8ff!important;color:#51447d!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.04em!important;
}
.enterprise-a td,.enterprise-a th{
  padding:14px 16px!important;border-bottom:1px solid #f0e9ff!important;
}
.enterprise-a .btn{
  border-radius:13px!important;
  background:linear-gradient(135deg,#7c3aed,#6c4cf1)!important;
  box-shadow:0 14px 26px rgba(124,58,237,.19)!important;
  min-height:44px!important;
  transition:.18s ease!important;
}
.enterprise-a .btn:hover{transform:translateY(-2px);filter:brightness(1.02);}
.enterprise-a .btn-muted{
  background:#f5f0ff!important;color:#6d28d9!important;border:1px solid #eee7ff!important;box-shadow:none!important;
}
.enterprise-a .actions{gap:12px!important;justify-content:flex-start!important;}
.enterprise-a .desktop-card{
  margin-top:18px!important;min-height:275px!important;
}
.enterprise-a .desktop-card table tr:last-child td{
  text-align:center!important;padding:54px 20px!important;color:#5f5488!important;font-weight:700!important;
  background:linear-gradient(180deg,#fff,#fbfaff)!important;
}
.enterprise-a .desktop-card table tr:last-child td:before{
  content:'▱';
  display:block;
  width:70px;height:70px;border-radius:50%;
  margin:0 auto 12px;
  background:#f1eaff;color:#8b5cf6;
  line-height:70px;font-size:38px;
}
@media(max-width:1280px){
  .enterprise-a .top-actions{gap:8px!important;}
  .enterprise-a .searchbox{width:230px!important;min-width:200px!important;}
  .enterprise-a .profile-chip b{max-width:120px;overflow:hidden;text-overflow:ellipsis;}
}
@media(max-width:1080px){
  .enterprise-a .sidebar{width:245px!important;}
  .enterprise-a .main{margin-left:245px!important;width:calc(100% - 245px)!important;padding:22px!important;}
  .enterprise-a .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .enterprise-a .row{grid-template-columns:1fr!important;}
  .enterprise-a .topbar{align-items:flex-start!important;flex-direction:column!important;}
  .enterprise-a .top-actions{width:100%!important;flex-wrap:wrap!important;}
  .enterprise-a .searchbox{width:100%!important;min-width:260px!important;}
}
@media(max-width:820px){
  .enterprise-a .sidebar{display:none!important;}
  .enterprise-a .main{margin-left:0!important;width:100%!important;padding:16px 14px 92px!important;}
  .enterprise-a .topbar{display:block!important;}
  .enterprise-a .top-actions{display:grid!important;grid-template-columns:1fr 1fr!important;margin-top:12px!important;}
  .enterprise-a .search-wrap{grid-column:1 / -1!important;}
  .enterprise-a .searchbox{width:100%!important;min-width:0!important;}
  .enterprise-a .profile-chip{grid-column:1 / -1!important;}
  .enterprise-a .grid{grid-template-columns:1fr!important;}
  .enterprise-a .stat{grid-template-columns:72px 1fr!important;min-height:116px!important;}
  .enterprise-a .stat:before{width:58px!important;height:58px!important;font-size:29px!important;}
}


/* ==========================================================
   FIX 2026-07-05: Enterprise Purple card stat + brand sidebar
   - Mengatasi angka/judul statistik yang bertabrakan
   - Menyamakan proporsi "RS MUHAMMADIYAH" dengan "BABAT"
   ========================================================== */
.enterprise-a .brand-side-final{
  gap:14px!important;
  align-items:center!important;
}
.enterprise-a .brand-side-final .side-logo-img,
.enterprise-a .side-logo-img{
  width:82px!important;
  height:82px!important;
  flex:0 0 82px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(91,33,182,.18)!important;
}
.enterprise-a .brand-side-final h2{
  font-size:18px!important;
  line-height:1.02!important;
  margin:0!important;
  color:#35186f!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
}
.enterprise-a .brand-side-final h2 strong{
  display:block!important;
  font-size:30px!important;
  line-height:1!important;
  color:#5b21b6!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
}
.enterprise-a .brand-side-final small{
  margin-top:8px!important;
  font-size:12px!important;
  line-height:1.25!important;
  color:#6d28d9!important;
  font-style:italic!important;
  font-weight:800!important;
}

/* Statistik dibuat 2 baris agar tidak tabrakan */
.enterprise-a .grid{
  gap:20px!important;
}
.enterprise-a .stat{
  min-height:138px!important;
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  align-items:center!important;
  column-gap:20px!important;
  row-gap:4px!important;
  padding:24px 26px!important;
  overflow:hidden!important;
}
.enterprise-a .stat:before{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:70px!important;
  height:70px!important;
  border-radius:20px!important;
  font-size:34px!important;
  align-self:center!important;
  justify-self:start!important;
  z-index:2!important;
}
.enterprise-a .stat h3{
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  padding:0!important;
  font-size:42px!important;
  line-height:.95!important;
  font-weight:950!important;
  color:#15113d!important;
  letter-spacing:-.04em!important;
  z-index:2!important;
  display:block!important;
}
.enterprise-a .stat p{
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  padding:0!important;
  color:#15113d!important;
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:950!important;
  z-index:2!important;
  display:block!important;
}
.enterprise-a .stat p small{
  display:block!important;
  margin-top:5px!important;
  font-size:12.5px!important;
  line-height:1.2!important;
  color:#615883!important;
  font-weight:750!important;
}
.enterprise-a .stat:after{
  right:-32px!important;
  top:-42px!important;
  width:132px!important;
  height:132px!important;
  opacity:.85!important;
}

/* Sedikit memperluas area konten supaya card lebih lega */
.enterprise-a .sidebar{
  width:292px!important;
}
.enterprise-a .main{
  margin-left:292px!important;
  width:calc(100% - 292px)!important;
}
@media(max-width:1280px){
  .enterprise-a .sidebar{width:270px!important;}
  .enterprise-a .main{margin-left:270px!important;width:calc(100% - 270px)!important;padding:24px!important;}
  .enterprise-a .brand-side-final .side-logo-img,
  .enterprise-a .side-logo-img{width:74px!important;height:74px!important;flex-basis:74px!important;}
  .enterprise-a .brand-side-final h2{font-size:16px!important;}
  .enterprise-a .brand-side-final h2 strong{font-size:27px!important;}
  .enterprise-a .stat{
    grid-template-columns:76px minmax(0,1fr)!important;
    column-gap:18px!important;
    padding:22px!important;
  }
  .enterprise-a .stat:before{width:64px!important;height:64px!important;font-size:31px!important;}
  .enterprise-a .stat h3{font-size:38px!important;}
  .enterprise-a .stat p{font-size:15px!important;}
}
@media(max-width:1080px){
  .enterprise-a .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:820px){
  .enterprise-a .sidebar{display:none!important;}
  .enterprise-a .main{margin-left:0!important;width:100%!important;}
  .enterprise-a .grid{grid-template-columns:1fr!important;}
  .enterprise-a .stat{
    grid-template-columns:76px minmax(0,1fr)!important;
    min-height:128px!important;
  }
}


/* ==========================================================
   BRAND + PROFILE LOGOUT FIX - 2026-07-06
   - Samakan ukuran font RS / MUHAMMADIYAH / BABAT
   - Tambahkan dropdown logout di profil kanan atas
   ========================================================== */
.enterprise-a .brand-side-final .rs-brand-text{
  margin:0!important;
  line-height:1.02!important;
  letter-spacing:.15px!important;
  text-transform:uppercase!important;
  font-weight:900!important;
}
.enterprise-a .brand-side-final .rs-brand-text span,
.enterprise-a .brand-side-final h2 strong{
  display:block!important;
  font-size:20px!important;
  line-height:1.02!important;
  color:#4c1d95!important;
  font-weight:900!important;
}
.enterprise-a .brand-side-final .rs-brand-text span:first-child{
  font-size:20px!important;
}
.enterprise-a .brand-side-final small{
  margin-top:7px!important;
}

.enterprise-a .top-actions{
  overflow:visible!important;
}
.enterprise-a .profile-menu{
  position:relative!important;
  display:block!important;
}
.enterprise-a .profile-menu summary{
  list-style:none!important;
}
.enterprise-a .profile-menu summary::-webkit-details-marker{
  display:none!important;
}
.enterprise-a .profile-chip{
  cursor:pointer!important;
  user-select:none!important;
}
.enterprise-a .profile-chip:hover{
  border-color:#d8ccff!important;
  box-shadow:0 16px 32px rgba(91,33,182,.10)!important;
}
.enterprise-a .profile-menu[open] .profile-arrow{
  transform:rotate(180deg)!important;
}
.enterprise-a .profile-arrow{
  display:inline-block!important;
  transition:.18s ease!important;
}
.enterprise-a .profile-dropdown{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 10px)!important;
  width:255px!important;
  background:#fff!important;
  border:1px solid #eee7ff!important;
  border-radius:18px!important;
  box-shadow:0 22px 55px rgba(33,24,72,.16)!important;
  padding:10px!important;
  z-index:9999!important;
}
.enterprise-a .profile-dropdown:before{
  content:""!important;
  position:absolute!important;
  right:24px!important;
  top:-7px!important;
  width:14px!important;
  height:14px!important;
  background:#fff!important;
  border-left:1px solid #eee7ff!important;
  border-top:1px solid #eee7ff!important;
  transform:rotate(45deg)!important;
}
.enterprise-a .profile-dropdown-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 10px 12px!important;
  border-bottom:1px solid #f0eaff!important;
  margin-bottom:6px!important;
}
.enterprise-a .profile-dropdown-head b{
  display:block!important;
  color:#15113d!important;
  font-size:14px!important;
}
.enterprise-a .profile-dropdown-head small{
  display:block!important;
  color:#6f6792!important;
  font-weight:700!important;
  margin-top:3px!important;
}
.enterprise-a .profile-dropdown a{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:10px 11px!important;
  border-radius:12px!important;
  color:#211848!important;
  font-weight:800!important;
  font-size:13px!important;
}
.enterprise-a .profile-dropdown a:hover{
  background:#f4efff!important;
  color:#5b21b6!important;
}
.enterprise-a .profile-dropdown-sep{
  height:1px!important;
  background:#f0eaff!important;
  margin:6px 4px!important;
}
.enterprise-a .profile-dropdown .logout-link{
  color:#dc2626!important;
}
.enterprise-a .profile-dropdown .logout-link:hover{
  background:#fef2f2!important;
  color:#b91c1c!important;
}

@media(max-width:1000px){
  .enterprise-a .brand-side-final .rs-brand-text span{
    font-size:18px!important;
  }
}

/* ==========================================================
   FINAL THEME PATCH - 2026-07-06
   Dropdown profil selalu di atas card + chevron lebih elegan
   ========================================================== */
.enterprise-a .topbar{
  position:relative!important;
  z-index:50000!important;
  overflow:visible!important;
}
.enterprise-a .top-actions,
.enterprise-a .profile-menu,
.enterprise-a .profile-chip{
  overflow:visible!important;
}
.enterprise-a .profile-menu{
  z-index:60000!important;
}
.enterprise-a .profile-dropdown{
  z-index:999999!important;
  transform-origin:top right!important;
  animation:profileDrop .16s ease-out!important;
}
@keyframes profileDrop{
  from{opacity:0;transform:translateY(-6px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.enterprise-a .card,
.enterprise-a .grid,
.enterprise-a .stat{
  position:relative!important;
  z-index:1!important;
}
.enterprise-a .profile-arrow{
  font-size:18px!important;
  width:22px!important;
  height:22px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#6d28d9!important;
  background:#f2edff!important;
  margin-left:2px!important;
}
.enterprise-a .profile-chip:hover .profile-arrow{
  background:#e8ddff!important;
}
.enterprise-a .profile-menu[open] .profile-arrow{
  transform:rotate(180deg)!important;
}
.enterprise-a .brand-side-final .rs-brand-text span{
  font-size:20px!important;
  line-height:1.04!important;
}
.enterprise-a .brand-side-final .rs-brand-text span:first-child{
  font-size:20px!important;
}
@media(max-width:1280px){
  .enterprise-a .brand-side-final .rs-brand-text span,
  .enterprise-a .brand-side-final .rs-brand-text span:first-child{font-size:18px!important;}
}


/* ==========================================================
   BACKGROUND PURPLE TINT PATCH - 2026-07-06
   Latar dashboard diperjelas sedikit agar tidak terlalu putih
   Card tetap dipertahankan seperti desain terakhir
   ========================================================== */
:root{
  --ep-bg:#f3eeff!important;
  --ep-soft-bg:#f6f2ff!important;
}
body{
  background:
    radial-gradient(circle at 82% 0%, rgba(124,58,237,.16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(236,72,153,.055), transparent 28%),
    linear-gradient(180deg, #f2ecff 0%, #f6f3ff 42%, #fbfaff 100%) !important;
}
.enterprise-a.layout{
  background:
    radial-gradient(circle at 78% 0%, rgba(139,92,246,.13), transparent 34%),
    linear-gradient(180deg, #f3edff 0%, #f8f5ff 52%, #fbfaff 100%) !important;
}
.enterprise-a .main{
  background:
    radial-gradient(circle at 86% 0%, rgba(124,58,237,.10), transparent 32%),
    linear-gradient(180deg, #f3eeff 0%, #f7f4ff 50%, #fbfaff 100%) !important;
}
.enterprise-a .sidebar{
  background:linear-gradient(180deg,#ffffff 0%,#fcf9ff 45%,#f7f1ff 100%)!important;
}
.enterprise-a .topbar{
  background:rgba(255,255,255,.88)!important;
  border-color:#e9ddff!important;
}
.enterprise-a .card{
  background:rgba(255,255,255,.94)!important;
  border-color:#eee3ff!important;
}
.enterprise-a table th{
  background:#f8f2ff!important;
}
.enterprise-a .btn-muted{
  background:#f3edff!important;
}



/* ==========================================================
   FINAL FIX - 2026-07-06
   Sidebar brand tidak terpotong + sidebar/topbar lebih ungu + card statistik kembali berwarna
   ========================================================== */
:root{
  --ep-sidebar-w:300px;
  --ep-purple:#7c3aed;
  --ep-purple-2:#5b21b6;
}
.enterprise-a .sidebar{
  width:var(--ep-sidebar-w)!important;
  background:
    linear-gradient(180deg,#fff 0%,#fbf7ff 42%,#f2eaff 100%)!important;
  border-right:1px solid #eadcff!important;
  overflow-x:hidden!important;
}
.enterprise-a .main{
  margin-left:var(--ep-sidebar-w)!important;
  width:calc(100% - var(--ep-sidebar-w))!important;
  background:
    radial-gradient(circle at 86% 0%, rgba(124,58,237,.12), transparent 34%),
    linear-gradient(180deg,#f1eaff 0%,#f7f3ff 48%,#fbfaff 100%)!important;
}
.enterprise-a .brand-side-final{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 14px!important;
  margin:0 0 20px!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(255,255,255,.78))!important;
  border:1px solid rgba(124,58,237,.10)!important;
  box-shadow:0 14px 34px rgba(91,33,182,.08)!important;
}
.enterprise-a .brand-side-final .side-logo-img{
  width:70px!important;
  height:70px!important;
  min-width:70px!important;
  flex:0 0 70px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  box-shadow:0 12px 30px rgba(91,33,182,.18)!important;
}
.enterprise-a .brand-side-final > div:not(:first-child){
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:visible!important;
}
.enterprise-a .brand-side-final .rs-brand-text{
  margin:0!important;
  display:block!important;
  max-width:100%!important;
  overflow:visible!important;
}
.enterprise-a .brand-side-final .rs-brand-text span,
.enterprise-a .brand-side-final .rs-brand-text span:first-child{
  display:block!important;
  font-size:18px!important;
  line-height:1.02!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#3b168e!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow:visible!important;
}
.enterprise-a .brand-side-final small{
  display:block!important;
  margin-top:7px!important;
  color:#6d28d9!important;
  font-size:11.5px!important;
  line-height:1.18!important;
  font-weight:800!important;
  font-style:italic!important;
}
.enterprise-a .topbar{
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(244,235,255,.96))!important;
  border-color:#e4d4ff!important;
  box-shadow:0 14px 36px rgba(91,33,182,.10)!important;
}
.enterprise-a .nav a.active{
  background:linear-gradient(135deg,#7c3aed,#6d28d9)!important;
  color:#fff!important;
  box-shadow:0 13px 30px rgba(124,58,237,.28)!important;
}
.enterprise-a .nav a:hover:not(.active){
  background:#f1eaff!important;
  color:#5b21b6!important;
}
/* Restore warna card statistik, karena .card global sebelumnya membuatnya putih */
.enterprise-a .stat{
  background:var(--stat-bg)!important;
  border:1px solid rgba(255,255,255,.50)!important;
  box-shadow:0 18px 45px rgba(91,33,182,.12)!important;
}
.enterprise-a .stat.s1{--stat-bg:linear-gradient(135deg,#efe0ff 0%,#d8bbff 48%,#c5a2ff 100%)!important;}
.enterprise-a .stat.s2{--stat-bg:linear-gradient(135deg,#ffe7f4 0%,#ffc2e2 50%,#f7a9d5 100%)!important;}
.enterprise-a .stat.s3{--stat-bg:linear-gradient(135deg,#e2f4ff 0%,#bde6ff 52%,#a8d8ff 100%)!important;}
.enterprise-a .stat.s4{--stat-bg:linear-gradient(135deg,#e1ffe8 0%,#bdf4cf 52%,#a8eec0 100%)!important;}
.enterprise-a .stat h3,
.enterprise-a .stat p,
.enterprise-a .stat p small{
  color:#15113d!important;
}
.enterprise-a .stat:after{
  display:block!important;
  background:rgba(255,255,255,.22)!important;
}
@media(max-width:1280px){
  :root{--ep-sidebar-w:285px;}
  .enterprise-a .brand-side-final{gap:12px!important;padding:14px 12px!important;}
  .enterprise-a .brand-side-final .side-logo-img{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important;}
  .enterprise-a .brand-side-final .rs-brand-text span,
  .enterprise-a .brand-side-final .rs-brand-text span:first-child{font-size:16px!important;}
  .enterprise-a .brand-side-final small{font-size:10.5px!important;}
}
@media(max-width:1000px){
  .enterprise-a .sidebar{display:none!important;}
  .enterprise-a .main{margin-left:0!important;width:100%!important;}
}

/* ==========================================================
   DYNAMIC GLASS HEADER PATCH - 2026-07-06
   Header dashboard dibuat lebih dinamis: glass + gradient ungu lembut
   ========================================================== */
.enterprise-a .topbar{
  position:relative!important;
  overflow:visible!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  min-height:92px!important;
  padding:18px 22px!important;
  margin:0 0 22px!important;
  border-radius:26px!important;
  border:1px solid rgba(124,58,237,.16)!important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,58,237,.18), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(168,85,247,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.78) 0%, rgba(246,239,255,.78) 52%, rgba(255,255,255,.58) 100%)!important;
  box-shadow:0 18px 48px rgba(91,33,182,.12)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
.enterprise-a .topbar:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:26px!important;
  background:linear-gradient(90deg, rgba(124,58,237,.07), rgba(255,255,255,0) 48%, rgba(168,85,247,.06))!important;
  pointer-events:none!important;
}
.enterprise-a .page-title{
  position:relative!important;
  z-index:2!important;
  padding-left:46px!important;
}
.enterprise-a .page-title:before{
  top:9px!important;
  width:34px!important;
  height:34px!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;
  color:#fff!important;
  font-size:20px!important;
  box-shadow:0 12px 24px rgba(124,58,237,.28)!important;
}
.enterprise-a .page-title h1{
  margin:0 0 6px!important;
  font-size:30px!important;
  line-height:1.05!important;
  letter-spacing:-.03em!important;
}
.enterprise-a .page-title h1:after{
  content:""!important;
  display:block!important;
  width:64px!important;
  height:4px!important;
  border-radius:999px!important;
  margin-top:10px!important;
  background:linear-gradient(90deg,#7c3aed,#c084fc)!important;
}
.enterprise-a .page-title p{
  margin:0!important;
  max-width:680px!important;
  line-height:1.35!important;
}
.enterprise-a .top-actions{
  position:relative!important;
  z-index:3!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
}
.enterprise-a .search-wrap{
  position:relative!important;
}
.enterprise-a .searchbox{
  min-width:330px!important;
  height:54px!important;
  padding-left:18px!important;
  padding-right:48px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(124,58,237,.14)!important;
  box-shadow:0 12px 28px rgba(91,33,182,.08)!important;
}
.enterprise-a .search-wrap span{
  position:absolute!important;
  right:16px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#6d28d9!important;
  font-weight:900!important;
  font-size:22px!important;
}
.enterprise-a .top-icon,
.enterprise-a .date-chip,
.enterprise-a .profile-chip{
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(124,58,237,.13)!important;
  box-shadow:0 12px 28px rgba(91,33,182,.08)!important;
}
.enterprise-a .top-icon{
  width:50px!important;
  height:50px!important;
  border-radius:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  color:#6d28d9!important;
}
.enterprise-a .date-chip{
  min-height:54px!important;
  border-radius:18px!important;
  padding:0 16px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#3d2b74!important;
  font-weight:900!important;
}
.enterprise-a .profile-chip{
  min-height:54px!important;
  border-radius:18px!important;
  padding:7px 10px!important;
}
.enterprise-a .grid{
  margin-top:0!important;
}
@media(max-width:1260px){
  .enterprise-a .topbar{align-items:flex-start!important;flex-direction:column!important;gap:14px!important;}
  .enterprise-a .top-actions{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important;}
  .enterprise-a .searchbox{min-width:min(420px,100%)!important;}
}
@media(max-width:820px){
  .enterprise-a .topbar{border-radius:20px!important;padding:16px!important;}
  .enterprise-a .page-title h1{font-size:26px!important;}
  .enterprise-a .search-wrap,.enterprise-a .searchbox{width:100%!important;min-width:0!important;}
}

/* ==========================================================
   V3.2 ROLE & PERMISSION + SIDEBAR BRAND FINAL PATCH
   ========================================================== */
.sidebar{width:268px;min-width:268px;overflow:visible;background:linear-gradient(180deg,#fbf8ff 0%,#ffffff 42%,#f7f1ff 100%)!important;border-right:1px solid rgba(124,58,237,.10)!important;}
.main{min-width:0;}
.brand-side-final{padding:18px 18px 16px!important;gap:12px!important;align-items:center!important;overflow:visible!important;}
.brand-side-final .side-logo-img{width:58px!important;height:58px!important;flex:0 0 58px!important;object-fit:cover!important;border-radius:50%!important;}
.rs-brand-text{display:flex!important;flex-direction:column!important;gap:1px!important;margin:0!important;line-height:1.02!important;color:#4c1d95!important;letter-spacing:.02em!important;}
.rs-brand-text span{display:block!important;font-size:16px!important;font-weight:900!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}
.rs-brand-text span:first-child{font-size:13px!important;letter-spacing:.10em!important;color:#7c3aed!important;}
.brand-side-final small{display:block!important;margin-top:6px!important;font-size:10.5px!important;line-height:1.25!important;color:#7e6ca7!important;font-weight:650!important;}
.topbar{position:relative!important;z-index:9000!important;overflow:visible!important;}
.profile-menu{position:relative!important;z-index:99999!important;}
.profile-dropdown{z-index:100000!important;}
.stat-card{position:relative;z-index:1;}
.role-permission-grid{align-items:start;}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.form-grid label{display:grid;gap:6px;font-weight:700;color:#4b3f72;}
.form-grid .full{grid-column:1/-1;}
.input{width:100%;border:1px solid rgba(124,58,237,.18);border-radius:14px;padding:12px 14px;background:#fff;color:#2f2459;outline:none;box-sizing:border-box;}
.input:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.12);}
.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.alert{padding:14px 16px;border-radius:16px;margin:14px 0;font-weight:700;}
.alert.success{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;}
.alert.danger{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;}
.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;}
.permission-box{background:linear-gradient(180deg,#ffffff,#fbf8ff);border:1px solid rgba(124,58,237,.12);border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(76,29,149,.05);}
.permission-box h3{margin:0 0 12px;color:#5b21b6;font-size:16px;}
.check-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-top:1px dashed rgba(124,58,237,.10);cursor:pointer;}
.check-row:first-of-type{border-top:0;}
.check-row input{width:18px;height:18px;accent-color:#7c3aed;margin-top:2px;}
.check-row span{display:grid;gap:2px;}
.check-row b{font-size:13px;color:#2f2459;}
.check-row small{font-size:11px;color:#7e6ca7;}
.empty-state{border:1px dashed rgba(124,58,237,.22);border-radius:18px;padding:28px;text-align:center;color:#7e6ca7;background:#fbf8ff;}
@media(max-width:1100px){.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.sidebar{width:250px;min-width:250px;}}
@media(max-width:760px){.form-grid,.permission-grid{grid-template-columns:1fr;}.sidebar{width:auto;min-width:0;}.brand-side-final .side-logo-img{width:48px!important;height:48px!important;flex-basis:48px!important;}.rs-brand-text span{font-size:13px!important;}.rs-brand-text span:first-child{font-size:11px!important;}}

/* ==========================================================
   V3.3 FINAL PATCH - Master Role & Hak Akses UI
   Fix statistik role, layout daftar role, permission matrix,
   dan sidebar brand agar tidak terpotong.
   ========================================================== */
:root{--ep-sidebar-w-final:300px;}
.enterprise-a .sidebar{
  width:var(--ep-sidebar-w-final)!important;
  min-width:var(--ep-sidebar-w-final)!important;
  overflow-x:hidden!important;
  background:linear-gradient(180deg,#fbf7ff 0%,#ffffff 42%,#f3ecff 100%)!important;
  border-right:1px solid rgba(124,58,237,.12)!important;
}
.enterprise-a .main{
  margin-left:var(--ep-sidebar-w-final)!important;
  width:calc(100% - var(--ep-sidebar-w-final))!important;
}
.enterprise-a .brand-side-final{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  padding:16px 14px!important;
  margin:0 0 20px!important;
  border-radius:24px!important;
  overflow:visible!important;
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(255,255,255,.84))!important;
  border:1px solid rgba(124,58,237,.12)!important;
  box-shadow:0 14px 34px rgba(91,33,182,.08)!important;
}
.enterprise-a .brand-side-final .side-logo-img{
  width:66px!important;height:66px!important;min-width:66px!important;flex:0 0 66px!important;
  object-fit:cover!important;border-radius:50%!important;
}
.enterprise-a .brand-side-final .rs-brand-text span,
.enterprise-a .brand-side-final .rs-brand-text span:first-child{
  font-size:16px!important;line-height:1.04!important;font-weight:900!important;letter-spacing:.02em!important;color:#4c1d95!important;white-space:normal!important;
}
.enterprise-a .brand-side-final small{font-size:10.5px!important;line-height:1.22!important;color:#6d28d9!important;font-weight:800!important;font-style:italic!important;}
.enterprise-a .stats.grid-4,
.enterprise-a .grid-4{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0 0 22px!important;
}
.enterprise-a .stat-card{
  min-height:122px!important;
  padding:22px!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  border-radius:24px!important;
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.62)!important;
  box-shadow:0 18px 45px rgba(91,33,182,.12)!important;
  background:linear-gradient(135deg,#efe0ff 0%,#d8bbff 48%,#c5a2ff 100%)!important;
}
.enterprise-a .stat-card:after{content:"";position:absolute;right:-34px;top:-42px;width:122px;height:122px;border-radius:999px;background:rgba(255,255,255,.22);}
.enterprise-a .stat-card.pink{background:linear-gradient(135deg,#ffe7f4 0%,#ffc2e2 50%,#f7a9d5 100%)!important;}
.enterprise-a .stat-card.blue{background:linear-gradient(135deg,#e2f4ff 0%,#bde6ff 52%,#a8d8ff 100%)!important;}
.enterprise-a .stat-card.green{background:linear-gradient(135deg,#e1ffe8 0%,#bdf4cf 52%,#a8eec0 100%)!important;}
.enterprise-a .stat-card .stat-icon{
  width:58px!important;height:58px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff!important;font-size:24px!important;font-weight:900!important;background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;box-shadow:0 12px 25px rgba(91,33,182,.22)!important;z-index:1!important;
}
.enterprise-a .stat-card.pink .stat-icon{background:linear-gradient(135deg,#ec4899,#c026d3)!important;}
.enterprise-a .stat-card.blue .stat-icon{background:linear-gradient(135deg,#38bdf8,#2563eb)!important;}
.enterprise-a .stat-card.green .stat-icon{background:linear-gradient(135deg,#22c55e,#16a34a)!important;}
.enterprise-a .stat-card h3{margin:0!important;font-size:38px!important;line-height:1!important;font-weight:900!important;color:#15113d!important;letter-spacing:-.04em!important;}
.enterprise-a .stat-card p{margin:8px 0 0!important;font-size:14px!important;font-weight:900!important;color:#2b205a!important;}
.enterprise-a .grid-2,
.enterprise-a .role-permission-grid{
  display:grid!important;grid-template-columns:minmax(330px,.8fr) minmax(520px,1.25fr)!important;gap:18px!important;align-items:start!important;
}
.enterprise-a .section-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:16px!important;}
.enterprise-a .section-title h2{margin:0!important;font-size:22px!important;letter-spacing:-.03em!important;}
.enterprise-a .section-title p{margin:7px 0 0!important;}
.enterprise-a .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
.enterprise-a .form-grid .full{grid-column:1/-1!important;}
.enterprise-a .form-grid label{font-size:13px!important;font-weight:900!important;color:#43316f!important;}
.enterprise-a .table-actions{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;}
.enterprise-a .table-actions a,
.enterprise-a .table-actions button{
  border:0!important;border-radius:10px!important;padding:7px 10px!important;background:#f2ecff!important;color:#5b21b6!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important;
}
.enterprise-a .table-actions button.danger{background:#fff1f2!important;color:#be123c!important;}
.enterprise-a .table-actions button.success{background:#ecfdf5!important;color:#047857!important;}
.enterprise-a .inline-form{display:inline!important;margin:0!important;}
.enterprise-a .status-dot{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:6px 10px!important;border-radius:999px!important;font-size:12px!important;font-weight:900!important;}
.enterprise-a .status-on{background:#dcfce7!important;color:#166534!important;}
.enterprise-a .status-off{background:#fee2e2!important;color:#991b1b!important;}
.enterprise-a .permission-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin-top:16px!important;}
.enterprise-a .permission-box{background:linear-gradient(180deg,#ffffff,#fbf8ff)!important;border:1px solid rgba(124,58,237,.12)!important;border-radius:20px!important;padding:16px!important;box-shadow:0 10px 26px rgba(76,29,149,.06)!important;}
.enterprise-a .permission-box h3{margin:0 0 12px!important;color:#5b21b6!important;font-size:16px!important;}
.enterprise-a .check-row{display:flex!important;gap:10px!important;align-items:flex-start!important;padding:10px 0!important;border-top:1px dashed rgba(124,58,237,.12)!important;cursor:pointer!important;}
.enterprise-a .check-row:first-of-type{border-top:0!important;}
.enterprise-a .check-row input{width:18px!important;height:18px!important;accent-color:#7c3aed!important;margin-top:2px!important;}
.enterprise-a .check-row span{display:grid!important;gap:2px!important;}
.enterprise-a .check-row b{font-size:13px!important;color:#2f2459!important;}
.enterprise-a .check-row small{font-size:11px!important;color:#7e6ca7!important;}
.enterprise-a .toolbar{display:flex!important;gap:12px!important;align-items:center!important;margin-bottom:14px!important;}
.enterprise-a .empty-state{border:1px dashed rgba(124,58,237,.22)!important;border-radius:18px!important;padding:28px!important;text-align:center!important;color:#7e6ca7!important;background:#fbf8ff!important;}
@media(max-width:1280px){
  :root{--ep-sidebar-w-final:285px;}
  .enterprise-a .stats.grid-4,.enterprise-a .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .enterprise-a .grid-2,.enterprise-a .role-permission-grid{grid-template-columns:1fr!important;}
}
@media(max-width:1000px){.enterprise-a .sidebar{display:none!important}.enterprise-a .main{margin-left:0!important;width:100%!important}}
@media(max-width:760px){
  .enterprise-a .stats.grid-4,.enterprise-a .grid-4,.enterprise-a .permission-grid,.enterprise-a .form-grid{grid-template-columns:1fr!important;}
  .enterprise-a .stat-card{min-height:106px!important;padding:18px!important;}
}

/* ==========================================================
   V3.5 FINAL PATCH - Sidebar Soft Purple Gradient (Opsi A)
   Sidebar tetap terang, tetapi tidak kosong/sepi.
   ========================================================== */
.enterprise-a .sidebar{
  background:
    radial-gradient(circle at 24px 24px, rgba(124,58,237,.18), transparent 120px),
    radial-gradient(circle at 92% 34%, rgba(168,85,247,.12), transparent 140px),
    linear-gradient(180deg, #fff 0%, #fbf7ff 26%, #f4ecff 58%, #fff 100%) !important;
  border-right:1px solid rgba(124,58,237,.16)!important;
  box-shadow:14px 0 38px rgba(91,33,182,.10)!important;
}
.enterprise-a .sidebar:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(124,58,237,.035), rgba(255,255,255,0) 32%, rgba(124,58,237,.04) 74%, rgba(255,255,255,0)),
    radial-gradient(circle at 16% 52%, rgba(124,58,237,.07), transparent 170px);
  opacity:1;
}
.enterprise-a .sidebar > *{position:relative;z-index:1;}
.enterprise-a .brand-side-final{
  background:linear-gradient(135deg, rgba(124,58,237,.16), rgba(255,255,255,.92) 70%)!important;
  border:1px solid rgba(124,58,237,.18)!important;
  box-shadow:0 16px 38px rgba(91,33,182,.11)!important;
}
.enterprise-a .nav-section{
  color:#8b5cf6!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  border-top:1px solid rgba(124,58,237,.11)!important;
  padding-top:16px!important;
  margin-top:16px!important;
}
.enterprise-a .nav a{
  color:#24164f!important;
  border:1px solid transparent!important;
}
.enterprise-a .nav a:hover{
  background:linear-gradient(90deg, rgba(124,58,237,.10), rgba(168,85,247,.04))!important;
  color:#5b21b6!important;
  border-color:rgba(124,58,237,.10)!important;
}
.enterprise-a .nav a.active{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
  box-shadow:0 14px 30px rgba(109,40,217,.24)!important;
}
.enterprise-a .user-chip{
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(124,58,237,.14)!important;
  box-shadow:0 14px 34px rgba(91,33,182,.09)!important;
  color:#24164f!important;
}
.enterprise-a .user-chip small{color:#059669!important;font-weight:900!important;}

/* ==========================================================
   v4.0 - Buat Surat Modern + Master Jenis Surat
   ========================================================== */
.surat-wizard{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start;}
.wizard-main.card{padding:24px!important;}
.pdf-only-note{background:linear-gradient(135deg,#e7fff3,#f0fff9);border:1px solid #b7f3d3;color:#047857;border-radius:14px;padding:13px 15px;margin-bottom:18px;font-weight:800;}
.wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px;}
.wizard-steps span{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;background:#f3ecff;color:#6d28d9;font-weight:900;font-size:13px;text-align:center;border:1px solid rgba(124,58,237,.10);}
.wizard-steps span.active{background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;box-shadow:0 12px 28px rgba(109,40,217,.22);}
.section-title.compact{margin:6px 0 14px!important;}
.section-title.compact h2{font-size:22px!important;margin:0!important;}
.upload-box{display:grid;place-items:center;text-align:center;min-height:116px;border:2px dashed rgba(124,58,237,.25);background:linear-gradient(180deg,#ffffff,#fbf8ff);border-radius:18px;padding:18px;cursor:pointer;transition:.2s ease;}
.upload-box:hover{border-color:#8b5cf6;box-shadow:0 14px 30px rgba(124,58,237,.10);transform:translateY(-1px);}
.upload-box input{display:none;}
.upload-box .upload-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;font-size:22px;box-shadow:0 12px 24px rgba(109,40,217,.20);margin-bottom:10px;}
.upload-box b{color:#24164f;font-size:15px;}
.upload-box small{display:block;color:#7b719d;margin-top:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.priority-badge{display:inline-flex;margin-top:10px;padding:7px 12px;border-radius:999px;font-weight:900;font-size:12px;}
.priority-badge.normal{background:#ede9fe;color:#5b21b6;}
.priority-badge.important{background:#fef3c7;color:#92400e;}
.priority-badge.urgent{background:#fee2e2;color:#991b1b;}
.form-actions-final{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:18px;}
.big-submit{min-height:48px;padding-left:22px!important;padding-right:22px!important;}
.workflow-preview{position:sticky;top:18px;padding:22px!important;}
.workflow-preview h2{margin:0 0 8px;font-size:22px;color:#17113d;}
.workflow-flow{display:grid;gap:10px;margin:18px 0;}
.workflow-flow div{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;background:linear-gradient(90deg,#f7f1ff,#fff);border:1px solid rgba(124,58,237,.11);font-weight:900;color:#2b205a;}
.workflow-flow div span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;font-size:12px;box-shadow:0 8px 18px rgba(109,40,217,.18);}
.workflow-selected{background:#f5edff;border:1px solid rgba(124,58,237,.12);border-radius:16px;padding:14px;color:#4c1d95;line-height:1.7;}
.surat-kind-card{border-left:5px solid #8b5cf6;}
.form-stat-grid .stat-card{min-height:112px!important;}
code{background:#f5edff;color:#5b21b6;border-radius:8px;padding:4px 6px;font-weight:800;}
@media(max-width:1100px){.surat-wizard{grid-template-columns:1fr;}.workflow-preview{position:relative;top:0}.wizard-steps{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){.wizard-steps{grid-template-columns:1fr}.form-actions-final{display:grid}.form-actions-final .btn{width:100%;}.wizard-main.card{padding:18px!important;}}

/* ==========================================================
   V7.3 FINAL RESPONSIVE PATCH - Firefox 100%
   Prevents sidebar/header/content overlap and horizontal spill.
   ========================================================== */
html,body{max-width:100%;overflow-x:hidden;}
.enterprise-a.layout{display:block!important;width:100%!important;max-width:100%!important;min-height:100vh!important;overflow-x:hidden!important;}
.enterprise-a .sidebar{
  position:fixed!important;
  left:0!important;top:0!important;bottom:0!important;
  width:300px!important;min-width:300px!important;
  max-width:300px!important;
  z-index:1200!important;
  overflow-y:auto!important;overflow-x:hidden!important;
}
.enterprise-a .main{
  position:relative!important;
  margin-left:300px!important;
  width:auto!important;
  max-width:calc(100vw - 300px)!important;
  min-width:0!important;
  padding:22px!important;
  overflow-x:hidden!important;
}
.enterprise-a .main>*{min-width:0!important;max-width:100%!important;}
.enterprise-a .topbar{
  width:100%!important;max-width:100%!important;height:auto!important;min-height:96px!important;
  display:grid!important;grid-template-columns:minmax(280px,1fr) auto!important;
  gap:18px!important;align-items:center!important;padding:16px 20px!important;
  overflow:visible!important;
}
.enterprise-a .page-title{min-width:0!important;}
.enterprise-a .page-title h1{font-size:clamp(25px,2vw,34px)!important;line-height:1.08!important;}
.enterprise-a .page-title p{white-space:normal!important;overflow-wrap:anywhere!important;}
.enterprise-a .top-actions{min-width:0!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:10px!important;}
.enterprise-a .search-wrap{flex:1 1 260px!important;min-width:220px!important;max-width:420px!important;}
.enterprise-a .searchbox{width:100%!important;min-width:0!important;}
.enterprise-a .date-chip,.enterprise-a .profile-chip{max-width:100%!important;}
.enterprise-a .card{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;}
.enterprise-a table{max-width:100%!important;}

@media(max-width:1500px){
  .enterprise-a .topbar{grid-template-columns:1fr!important;align-items:start!important;}
  .enterprise-a .top-actions{width:100%!important;justify-content:flex-start!important;}
  .enterprise-a .search-wrap{max-width:none!important;}
}
@media(max-width:1180px){
  .enterprise-a .sidebar{width:260px!important;min-width:260px!important;max-width:260px!important;}
  .enterprise-a .main{margin-left:260px!important;max-width:calc(100vw - 260px)!important;padding:16px!important;}
  .enterprise-a .brand-side-final{padding:13px 10px!important;gap:9px!important;}
  .enterprise-a .brand-side-final .side-logo-img{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important;}
  .enterprise-a .brand-side-final .rs-brand-text span,.enterprise-a .brand-side-final .rs-brand-text span:first-child{font-size:14px!important;}
}
@media(max-width:1000px){
  .enterprise-a .sidebar{display:none!important;}
  .enterprise-a .main{margin-left:0!important;max-width:100vw!important;width:100%!important;padding:14px 12px 88px!important;}
  .enterprise-a .topbar{border-radius:18px!important;padding:15px!important;}
  .enterprise-a .top-actions{display:grid!important;grid-template-columns:1fr auto auto!important;}
  .enterprise-a .search-wrap{grid-column:1/-1!important;width:100%!important;max-width:none!important;}
  .enterprise-a .date-chip{grid-column:1/2!important;}
  .enterprise-a .profile-menu{grid-column:2/-1!important;justify-self:end!important;}
}
@media(max-width:640px){
  .enterprise-a .main{padding:10px 8px 88px!important;}
  .enterprise-a .top-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .enterprise-a .date-chip,.enterprise-a .profile-menu{grid-column:auto!important;}
  .enterprise-a .date-chip{font-size:12px!important;}
  .enterprise-a .profile-chip{min-width:0!important;}
  .enterprise-a .profile-chip>div:nth-child(2){display:none!important;}
}
