/*
 * Posyandu v6.39 - Unified three-role visual system.
 * Design-only overlay: no database, sessions, validation or permissions changes.
 * Loaded LAST after all legacy styles so this one stylesheet can be rolled back.
 */
:root{
 --u39-navy:#102855;
 --u39-ink:#102b56;
 --u39-muted:#607394;
 --u39-surface:#ffffff;
 --u39-ice:#f0f5fd;
 --u39-stroke:#dfe8f7;
 --u39-blue:#256efa;
 --u39-indigo:#5144ed;
 --u39-cyan:#07b6cc;
 --u39-mint:#0da37c;
 --u39-orange:#e99414;
 --u39-shadow:0 12px 34px rgba(27,62,119,.075);
 --u39-shadow-raise:0 16px 36px rgba(27,62,119,.12);
 --u39-round:18px;
}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.posyandu-ui-v628{
 color:var(--u39-ink);
 background:#f1f5fc;
 font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
 -webkit-font-smoothing:antialiased;
}
body.posyandu-ui-v628 .app-shell{min-width:0}
body.posyandu-ui-v628 .content{min-width:0}
body.posyandu-ui-v628:not(.role-viewer) .app-shell,
body.posyandu-ui-v628.role-admin_desa .app-shell{
 grid-template-columns:250px minmax(0,1fr);
}
/* Desktop navigation and app chrome shared by admin, bidan and kader. */
body.posyandu-ui-v628 .sidebar,
body.posyandu-ui-v628.role-admin_desa .sidebar,
body.posyandu-ui-v628.role-posyandu .sidebar{
 background:
   radial-gradient(circle at 90% 4%,rgba(78,130,250,.28),transparent 34%),
   linear-gradient(170deg,#0d2450 0%,#163b7f 60%,#12306c 100%) !important;
 border-right:1px solid rgba(255,255,255,.12);
 box-shadow:12px 0 35px rgba(17,46,99,.10);
 padding:22px 14px 16px;
 position:sticky;
 top:0;
 height:100dvh;
 overflow-x:hidden;
 overflow-y:auto;
 scrollbar-width:thin;
 scrollbar-color:rgba(184,212,255,.4) transparent;
}
body.posyandu-ui-v628 .sidebar .brand,
body.posyandu-ui-v628.role-admin_desa .sidebar .admin-brand{
 padding:0 7px 16px;
 margin:0 0 14px;
 gap:12px;
 border-bottom:1px solid rgba(255,255,255,.11);
}
body.posyandu-ui-v628 .sidebar .brand-mark,
body.posyandu-ui-v628.role-admin_desa .admin-brand .brand-mark{
 width:46px;height:46px;flex:0 0 46px;
 border-radius:14px;
 display:grid;place-items:center;
 background:rgba(255,255,255,.12);
 border:1px solid rgba(255,255,255,.20);
}
body.posyandu-ui-v628 .sidebar .brand strong{font-size:15px;letter-spacing:-.015em;line-height:1.25}
body.posyandu-ui-v628 .sidebar .brand small{font-size:11px;opacity:.96;line-height:1.45}
body.posyandu-ui-v628 .v628-side-account,
body.posyandu-ui-v628 .kader-side-profile{
 border-radius:16px;
 margin:8px 3px 15px;
 background:linear-gradient(130deg,rgba(255,255,255,.16),rgba(255,255,255,.065));
 border:1px solid rgba(255,255,255,.17);
 padding:12px 10px;
 gap:10px;
}
body.posyandu-ui-v628 .v628-side-account-avatar,
body.posyandu-ui-v628 .kader-side-profile .side-avatar{
 width:42px;height:42px;flex:0 0 42px;
 border-radius:14px;
 background:linear-gradient(135deg,#acecff,#82a9ff);
 color:#163b86;
 font-size:17px;
 box-shadow:0 7px 17px rgba(0,0,0,.1);
}
body.posyandu-ui-v628 .v628-side-account strong,
body.posyandu-ui-v628 .kader-side-profile strong{font-size:12px;line-height:1.4;color:#fff}
body.posyandu-ui-v628 .v628-side-account small,
body.posyandu-ui-v628 .kader-side-profile small{font-size:10px;line-height:1.4;color:#d0e0ff}
body.posyandu-ui-v628 .sidebar nav{display:grid;gap:4px;padding:0 2px}
body.posyandu-ui-v628 .sidebar .nav-section,
body.posyandu-ui-v628.role-admin_desa .nav-section,
body.posyandu-ui-v628.role-posyandu .nav-section{
 font-size:10px;
 font-weight:850;
 margin:12px 8px 6px;
 padding:0;
 color:#b5cdf9;
 letter-spacing:.105em;
}
body.posyandu-ui-v628 .sidebar nav a,
body.posyandu-ui-v628.role-admin_desa .sidebar nav a.admin-nav-link,
body.posyandu-ui-v628.role-posyandu .sidebar nav a.kader-nav-link{
 display:flex;align-items:center;min-height:46px;
 padding:8px 10px!important;
 gap:10px;
 font-size:12px;
 font-weight:740;
 letter-spacing:-.007em;
 border-radius:13px!important;
 color:#dce8ff;
 background:transparent;
 border:1px solid transparent;
 box-shadow:none;
 white-space:normal;
}
body.posyandu-ui-v628 .sidebar nav a:hover{background:rgba(255,255,255,.11)!important;color:white;transform:translateX(2px)}
body.posyandu-ui-v628 .sidebar nav a.active,
body.posyandu-ui-v628.role-admin_desa .sidebar nav a.admin-nav-link.active,
body.posyandu-ui-v628.role-posyandu .sidebar nav a.kader-nav-link.active{
 background:linear-gradient(105deg,#287ef7,#5944ec)!important;
 border-color:rgba(191,213,255,.26)!important;
 box-shadow:0 9px 22px rgba(5,27,96,.22)!important;
 color:#fff;
 transform:none;
}
body.posyandu-ui-v628 .sidebar nav .nav-icon,
body.posyandu-ui-v628.role-admin_desa .sidebar nav a.admin-nav-link .nav-icon,
body.posyandu-ui-v628.role-posyandu .sidebar nav a.kader-nav-link .nav-icon{
 flex:0 0 30px;width:30px;height:30px;
 display:grid;place-items:center;
 border-radius:10px;
 background:rgba(255,255,255,.09);
}
body.posyandu-ui-v628 .sidebar nav a.active .nav-icon{background:rgba(255,255,255,.15)!important}
body.posyandu-ui-v628 .sidebar nav .nav-icon svg{width:18px;height:18px;max-width:18px;max-height:18px}
body.posyandu-ui-v628 .sidebar-version{
 font-size:10px;padding:16px 10px 4px;margin-top:20px;
 border-top:1px solid rgba(255,255,255,.13);
 color:#c9dafa;
}
body.posyandu-ui-v628 .sidebar-version svg{max-width:16px;max-height:16px}
/* Header is compact, and content can use all horizontal space. */
body.posyandu-ui-v628 .topbar,
body.posyandu-ui-v628.role-admin_desa .topbar,
body.posyandu-ui-v628.role-posyandu .topbar{
 position:sticky;
 top:0;
 z-index:45;
 height:72px;
 padding:0 24px;
 background:rgba(255,255,255,.94);
 border-bottom:1px solid var(--u39-stroke);
 box-shadow:0 3px 14px rgba(26,64,125,.035);
 backdrop-filter:blur(14px);
}
body.posyandu-ui-v628 .topbar-title strong,
body.posyandu-ui-v628.role-admin_desa .topbar-title strong{font-size:19px;letter-spacing:-.03em;color:#132d5c;line-height:1.35}
body.posyandu-ui-v628 .topbar-title small{font-size:11px;color:var(--u39-muted);margin-top:2px}
body.posyandu-ui-v628 .notification-button{height:41px;width:41px;border-radius:13px;background:#f6f9ff;border-color:#dae6fa}
body.posyandu-ui-v628 .notification-button svg{height:20px;width:20px;max-height:20px;max-width:20px}
body.posyandu-ui-v628 .topbar-avatar{height:39px;width:39px;background:linear-gradient(135deg,#e4f3ff,#dce8ff);color:#2661c6;border-radius:50%;font-weight:850}
body.posyandu-ui-v628 .topbar-user-copy strong{font-size:12px;line-height:1.3}
body.posyandu-ui-v628 .topbar-user-copy small{font-size:10px;line-height:1.4}
body.posyandu-ui-v628 .logout-btn{height:40px;width:40px;border-radius:13px;background:#fff;border-color:#dce7f8;box-shadow:none}
body.posyandu-ui-v628 .logout-btn svg{width:18px;height:18px}
body.posyandu-ui-v628 .admin-period-select{height:42px;border-radius:12px;background:#f8fbff;border-color:#dce7f8}
/* One main visual language on every role & menu. */
body.posyandu-ui-v628 .page,
body.posyandu-ui-v628.role-admin_desa .page,
body.posyandu-ui-v628.role-posyandu .page{
 width:100%;
 max-width:none;
 min-width:0;
 min-height:calc(100dvh - 72px);
 padding:23px 23px 40px;
 background:radial-gradient(circle at 92% 0%,rgba(108,163,255,.08),transparent 40%),linear-gradient(180deg,#f3f7ff 0%,#eef4fc 100%);
}
body.posyandu-ui-v628 .page :is(h1,h2,h3,h4){color:var(--u39-ink);letter-spacing:-.025em;line-height:1.3}
body.posyandu-ui-v628 .page h1{font-size:clamp(25px,2.5vw,34px)}
body.posyandu-ui-v628 .page h2{font-size:clamp(21px,2vw,27px)}
body.posyandu-ui-v628 .page h3{font-size:17px}
body.posyandu-ui-v628 .page .eyebrow{color:#276cef;font-size:11px;font-weight:850;letter-spacing:.11em}
body.posyandu-ui-v628 .page p{line-height:1.65}
body.posyandu-ui-v628 .page .muted{color:var(--u39-muted)}
body.posyandu-ui-v628 .page .small,
body.posyandu-ui-v628 .page small{font-size:12px;line-height:1.5}
body.posyandu-ui-v628 .card,
body.posyandu-ui-v628 .subcard,
body.posyandu-ui-v628 .form-card,
body.posyandu-ui-v628 .admin-dashboard-panel,
body.posyandu-ui-v628 .report-status-card,
body.posyandu-ui-v628 .admin-report-section,
body.posyandu-ui-v628 .admin-report-target-section{
 border:1px solid var(--u39-stroke);
 border-radius:var(--u39-round);
 background:#fff;
 box-shadow:var(--u39-shadow);
}
body.posyandu-ui-v628 .card{padding:20px 21px;margin-bottom:16px}
body.posyandu-ui-v628 .card>.table-wrap{margin:0}
body.posyandu-ui-v628 .page-actions,
body.posyandu-ui-v628 .simple-head,
body.posyandu-ui-v628 .admin-simple-head,
body.posyandu-ui-v628 .period-head,
body.posyandu-ui-v628 .admin-schedule-head{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:16px;
 margin-bottom:17px;
}
body.posyandu-ui-v628 .page-actions>div:first-child,
body.posyandu-ui-v628 .simple-head>div:first-child,
body.posyandu-ui-v628 .admin-simple-head>div:first-child{min-width:0}
body.posyandu-ui-v628 .page-actions h2,
body.posyandu-ui-v628 .simple-head h2,
body.posyandu-ui-v628 .admin-simple-head h2,
body.posyandu-ui-v628 .period-head h2{margin:4px 0 7px}
body.posyandu-ui-v628 .page-actions p,
body.posyandu-ui-v628 .simple-head p,
body.posyandu-ui-v628 .admin-simple-head p,
body.posyandu-ui-v628 .period-head p{margin:0;color:var(--u39-muted);font-size:13px}
body.posyandu-ui-v628 .page-actions .actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
/* Buttons, form controls, and focus states. */
body.posyandu-ui-v628 .btn{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 border-radius:12px;
 min-height:40px;
 padding:10px 15px;
 font-size:12.5px;
 font-weight:800;
 text-align:center;
 transition:transform .15s,background .15s,border-color .15s,box-shadow .15s;
}
body.posyandu-ui-v628 .btn.btn-sm{font-size:12px;min-height:36px;padding:8px 11px}
body.posyandu-ui-v628 .btn.btn-big{min-height:47px;font-size:14px}
body.posyandu-ui-v628 .btn-primary{background:linear-gradient(105deg,#237bf4,#5847ef);border:1px solid transparent;color:#fff;box-shadow:0 8px 18px rgba(37,107,235,.16)}
body.posyandu-ui-v628 .btn-primary:hover{filter:brightness(.99);box-shadow:0 11px 22px rgba(37,107,235,.23);transform:translateY(-1px)}
body.posyandu-ui-v628 .btn-light{background:#fff;border:1px solid #d9e5f7;color:#24467f;box-shadow:none}
body.posyandu-ui-v628 .btn-light:hover{background:#f0f6ff;border-color:#a9c8fd}
body.posyandu-ui-v628 button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}
body.posyandu-ui-v628 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.posyandu-ui-v628 select,
body.posyandu-ui-v628 textarea{
 min-height:43px;
 border-radius:12px;
 border:1px solid #d5e2f6;
 background-color:#fff;
 font-size:13px;
 color:#173762;
}
body.posyandu-ui-v628 input[type="checkbox"],
body.posyandu-ui-v628 input[type="radio"]{accent-color:#316ef0}
body.posyandu-ui-v628 .page label{font-size:12px;color:#28466f;font-weight:740;line-height:1.5}
body.posyandu-ui-v628 :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(39,113,246,.47);outline-offset:2px}
body.posyandu-ui-v628 input:focus,body.posyandu-ui-v628 select:focus,body.posyandu-ui-v628 textarea:focus{border-color:#74a5f8;box-shadow:0 0 0 3px rgba(50,118,248,.12)}
body.posyandu-ui-v628 .alert{border-radius:14px;padding:13px 16px;margin-bottom:15px;font-size:13px;line-height:1.65}
body.posyandu-ui-v628 .badge{display:inline-flex;align-items:center;max-width:100%;border-radius:999px;font-size:11px;font-weight:800;padding:6px 10px;line-height:1.35;white-space:normal}
body.posyandu-ui-v628 .badge.status-valid,
body.posyandu-ui-v628 .badge.status-terkunci{background:#e6f7ed;color:#0d7c50;border-color:#bde8cf}
body.posyandu-ui-v628 .badge.status-diperiksa{background:#f0ebff;color:#623fcd;border-color:#ddceff}
body.posyandu-ui-v628 .badge.status-perlu_perbaikan{background:#fff0e6;color:#9d5b1b;border-color:#f4d1a9}
body.posyandu-ui-v628 .badge.status-dikirim{background:#e9f4ff;color:#205bc0;border-color:#d4e6ff}
/* Make tables usable with wide data sets. Native scrolling on narrow screens. */
body.posyandu-ui-v628 .table-wrap{
 max-width:100%;
 border:1px solid #e1e9f7;
 border-radius:15px;
 overflow:auto;
 background:#fff;
 box-shadow:none;
 scrollbar-width:thin;
 scrollbar-color:#b9cbec #f3f7ff;
}
body.posyandu-ui-v628 .table-wrap table{width:100%;min-width:650px;border-collapse:separate;border-spacing:0}
body.posyandu-ui-v628 .table-wrap th{
 padding:14px 13px;
 background:#f4f7fd;
 color:#516b96;
 border-bottom:1px solid #dfe9f8;
 font-size:11px;
 line-height:1.45;
 font-weight:850;
 letter-spacing:.055em;
 white-space:nowrap;
 text-transform:uppercase;
}
body.posyandu-ui-v628 .table-wrap td{
 padding:15px 13px;
 vertical-align:middle;
 font-size:12.5px;
 line-height:1.55;
 border-bottom:1px solid #e8eef9;
 overflow-wrap:anywhere;
}
body.posyandu-ui-v628 .table-wrap tbody tr:last-child td{border-bottom:0}
body.posyandu-ui-v628 .table-wrap tr:hover td{background:#f8fbff}
body.posyandu-ui-v628 .table-wrap td strong{font-size:12.5px;color:#143267}
body.posyandu-ui-v628 .table-wrap td .actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
body.posyandu-ui-v628 .table-wrap td .badge{white-space:nowrap}
body.posyandu-ui-v628 .v639-table-hint{margin:-4px 0 8px;font-size:11px;color:#5f7ead;font-weight:650;display:flex;align-items:center;gap:5px}
body.posyandu-ui-v628 .v639-table-hint[hidden]{display:none!important}
body.posyandu-ui-v628 .table-wrap.has-x-scroll{outline:none}
/* Statistics are less cramped and use clear color semantics. */
body.posyandu-ui-v628 .stats,
body.posyandu-ui-v628 .summary-grid,
body.posyandu-ui-v628 .quick-stats{gap:12px}
body.posyandu-ui-v628 .stats>.stat,
body.posyandu-ui-v628 .summary-grid>div,
body.posyandu-ui-v628 .recap-group-grid>div,
body.posyandu-ui-v628 .quick-stats>div{
 min-width:0;
 min-height:104px;
 padding:17px;
 border:1px solid #e0e8f7;
 border-radius:16px;
 box-shadow:0 8px 21px rgba(26,67,130,.045);
}
body.posyandu-ui-v628 .stats>.stat{border-top:4px solid #387df4}
body.posyandu-ui-v628 .stats>.stat:nth-child(4n+2){border-top-color:#02b6c7}
body.posyandu-ui-v628 .stats>.stat:nth-child(4n+3){border-top-color:#7954f4}
body.posyandu-ui-v628 .stats>.stat:nth-child(4n+4){border-top-color:#f3a431}
body.posyandu-ui-v628 .stats .stat b,
body.posyandu-ui-v628 .summary-grid b,
body.posyandu-ui-v628 .recap-group-grid b{font-size:26px;line-height:1.2;color:#173979;font-weight:850}
body.posyandu-ui-v628 .stats .stat span,
body.posyandu-ui-v628 .summary-grid span,
body.posyandu-ui-v628 .recap-group-grid span{display:block;font-size:12px;line-height:1.5;color:#63789b;overflow-wrap:anywhere}
/* Admin dashboards have shared look with bidan and kader rather than tiny one-off fonts. */
body.posyandu-ui-v628 .mock-admin-stats-final,
body.posyandu-ui-v628 .mock-kader-stats-final{gap:13px;margin-bottom:16px}
body.posyandu-ui-v628 .mock-admin-stats-final>a,
body.posyandu-ui-v628 .mock-kader-stat{
 min-height:124px;
 padding:17px 18px;
 border:1px solid var(--u39-stroke);
 border-radius:18px;
 box-shadow:var(--u39-shadow);
 background:linear-gradient(142deg,#fff,#f8fbff);
}
body.posyandu-ui-v628 .mock-admin-stats-final>a b,
body.posyandu-ui-v628 .mock-kader-stat b{font-size:27px;color:#163e8e;font-weight:850}
body.posyandu-ui-v628 .mock-admin-stats-final>a small,
body.posyandu-ui-v628 .mock-kader-stat small{font-size:12px;color:#425f8b}
body.posyandu-ui-v628 .mock-admin-stats-final>a em,
body.posyandu-ui-v628 .mock-kader-stat em{font-size:11px;color:#6c80a1}
body.posyandu-ui-v628 .mock-admin-stats-final>a i,
body.posyandu-ui-v628 .mock-kader-stat i{width:48px;height:48px;flex:0 0 48px;border-radius:15px}
body.posyandu-ui-v628 .mock-admin-stats-final>a i svg,
body.posyandu-ui-v628 .mock-kader-stat i svg{width:25px;height:25px;max-width:25px;max-height:25px}
body.posyandu-ui-v628 .mock-admin-panel-final,
body.posyandu-ui-v628 .mock-kader-next-card,
body.posyandu-ui-v628 .bidan-quick-card,
body.posyandu-ui-v628 .bidan-stat-card,
body.posyandu-ui-v628 .admin-next-action{
 border:1px solid var(--u39-stroke);
 background:#fff;
 border-radius:18px;
 box-shadow:var(--u39-shadow);
}
body.posyandu-ui-v628 .mock-panel-head-final h3,
body.posyandu-ui-v628 .mock-panel-heading h3{font-size:16px}
body.posyandu-ui-v628 .mock-panel-foot-final,
body.posyandu-ui-v628 .mock-status-layout li,
body.posyandu-ui-v628 .mock-kader-next-card small{font-size:12px}
body.posyandu-ui-v628 .admin-recap-grid>div{min-height:87px;border-radius:13px;padding:12px}
body.posyandu-ui-v628 .admin-recap-grid b{font-size:22px}
body.posyandu-ui-v628 .admin-recap-grid span{font-size:11px}
body.posyandu-ui-v628 .admin-recap-grid small{font-size:10px}
body.posyandu-ui-v628 .bidan-hero-banner{border-radius:20px;padding:22px 25px;margin-bottom:0}
body.posyandu-ui-v628 .bidan-stat-card{min-height:127px;padding:19px}
body.posyandu-ui-v628 .bidan-stat-card strong{font-size:30px}
body.posyandu-ui-v628 .bidan-stat-card small{font-size:12px}
body.posyandu-ui-v628 .bidan-sections-grid{gap:14px}
/* Reused cards in every menu; no inconsistent tiny emoji badges. */
body.posyandu-ui-v628 .admin-more-grid,
body.posyandu-ui-v628 .more-grid{gap:12px}
body.posyandu-ui-v628 .admin-menu-card,
body.posyandu-ui-v628 .simple-menu-card{
 display:grid;
 grid-template-columns:48px minmax(0,1fr) 16px;
 align-items:center;
 gap:12px;
 border-radius:16px;
 min-height:93px;
 padding:16px;
 box-shadow:var(--u39-shadow);
 border:1px solid var(--u39-stroke);
 background:linear-gradient(145deg,#fff,#fcfdff);
 transition:transform .17s,box-shadow .17s,border-color .17s;
}
body.posyandu-ui-v628 .admin-menu-card:hover,
body.posyandu-ui-v628 .simple-menu-card:hover{border-color:#a9caff;box-shadow:var(--u39-shadow-raise);transform:translateY(-2px)}
body.posyandu-ui-v628 .admin-menu-icon,
body.posyandu-ui-v628 .menu-icon{
 width:47px;height:47px;flex:0 0 47px;
 display:grid;place-items:center;
 font-size:0;
 border-radius:14px;
 background:linear-gradient(145deg,#e7f2ff,#e8edff);
 color:#2366d5;
}
body.posyandu-ui-v628 .admin-menu-icon svg,
body.posyandu-ui-v628 .menu-icon svg{width:23px;height:23px;max-width:23px;max-height:23px}
body.posyandu-ui-v628 .admin-menu-card:nth-child(4n+2) .admin-menu-icon,
body.posyandu-ui-v628 .simple-menu-card:nth-child(4n+2) .menu-icon{background:#e5faf7;color:#078b9b}
body.posyandu-ui-v628 .admin-menu-card:nth-child(4n+3) .admin-menu-icon,
body.posyandu-ui-v628 .simple-menu-card:nth-child(4n+3) .menu-icon{background:#f0eaff;color:#7851dc}
body.posyandu-ui-v628 .admin-menu-card:nth-child(4n+4) .admin-menu-icon,
body.posyandu-ui-v628 .simple-menu-card:nth-child(4n+4) .menu-icon{background:#fff3e2;color:#d88313}
body.posyandu-ui-v628 .admin-menu-card strong,
body.posyandu-ui-v628 .simple-menu-card strong{font-size:14px;line-height:1.35;color:#153869}
body.posyandu-ui-v628 .admin-menu-card small,
body.posyandu-ui-v628 .simple-menu-card small{font-size:11px;color:#6a7d99;line-height:1.55;margin-top:4px}
body.posyandu-ui-v628 .admin-menu-arrow{font-size:22px;color:#5086e8}
/* Service cards and patient lists should read as purpose-built rather than generic blocks. */
body.posyandu-ui-v628 .target-card,
body.posyandu-ui-v628 .person-card,
body.posyandu-ui-v628 .report-card,
body.posyandu-ui-v628 .photo-card,
body.posyandu-ui-v628 .today-card,
body.posyandu-ui-v628 .doc-group-card{
 border:1px solid #dde7f6;
 border-radius:17px;
 box-shadow:0 8px 24px rgba(25,61,117,.05);
 background:#fff;
}
body.posyandu-ui-v628 .target-card:hover,
body.posyandu-ui-v628 .person-card:hover,
body.posyandu-ui-v628 .report-card:hover{border-color:#b6d0ff}
body.posyandu-ui-v628 .simple-search-card,
body.posyandu-ui-v628 .primary-work-card{border-radius:18px}
body.posyandu-ui-v628 .today-flow>*,
body.posyandu-ui-v628 .finish-checklist>div{border-radius:16px}
body.posyandu-ui-v628 .doc-group-grid{gap:12px}
/* Empty states and captions remain legible. */
body.posyandu-ui-v628 .empty{min-height:75px;display:grid;place-content:center;text-align:center;padding:20px;color:#637b9d;border:1px dashed #ccd9ee;background:#f9fbff;font-size:13px;border-radius:14px}
body.posyandu-ui-v628 .admin-empty-state small{font-size:12px}
body.posyandu-ui-v628 .admin-empty-state strong{font-size:14px}
/* v6.39: Bidan & Admin report cards, full width with intentional hierarchy. */
body.posyandu-ui-v628 .v639-report-heading{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(190px,235px);
 gap:20px;
 align-items:start;
 margin-bottom:16px;
}
body.posyandu-ui-v628 .v639-report-intro{max-width:790px}
body.posyandu-ui-v628 .v639-report-heading h2{font-size:clamp(22px,2.2vw,29px);line-height:1.3;margin:8px 0}
body.posyandu-ui-v628 .v639-report-heading p{font-size:13px;color:#687e9e;margin:0;line-height:1.65}
body.posyandu-ui-v628 .v639-report-filters{display:grid;gap:9px}
body.posyandu-ui-v628 .v639-report-filters label{display:grid;gap:5px;font-size:11px;color:#4e6790}
body.posyandu-ui-v628 .v639-report-filters select{width:100%;min-height:40px;font-size:12px}
body.posyandu-ui-v628 .v639-report-metrics{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;
 margin-bottom:16px;
}
body.posyandu-ui-v628.role-bidan .v639-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
body.posyandu-ui-v628 .v639-report-metric{
 display:flex;
 align-items:center;
 gap:13px;
 min-width:0;
 min-height:105px;
 padding:17px;
 border-radius:16px;
 border:1px solid #d7e6fd;
 background:linear-gradient(132deg,#f6faff,#fff);
 box-shadow:0 8px 24px rgba(31,76,144,.045);
 text-decoration:none;
 transition:transform .17s,box-shadow .17s;
}
body.posyandu-ui-v628 a.v639-report-metric:hover{transform:translateY(-2px);box-shadow:var(--u39-shadow-raise)}
body.posyandu-ui-v628 .v639-report-metric.is-current{border-color:#a7caff}
body.posyandu-ui-v628 .v639-report-metric.metric-pending{background:linear-gradient(130deg,#fff8ed,#fff);border-color:#f4e4c9}
body.posyandu-ui-v628 .v639-report-metric.metric-revision{background:linear-gradient(130deg,#f4f0ff,#fff);border-color:#e6ddff}
body.posyandu-ui-v628 .v639-report-metric.metric-complete{background:linear-gradient(130deg,#eefaf4,#fff);border-color:#d6eddf}
body.posyandu-ui-v628 .v639-report-metric-symbol{flex:0 0 45px;width:45px;height:45px;display:grid;place-items:center;font-size:23px;font-weight:850;color:#246ff0;background:#e7f1ff;border-radius:14px}
body.posyandu-ui-v628 .metric-pending .v639-report-metric-symbol{color:#d47b0d;background:#fff0d9}
body.posyandu-ui-v628 .metric-revision .v639-report-metric-symbol{color:#7653df;background:#eee8ff}
body.posyandu-ui-v628 .metric-complete .v639-report-metric-symbol{color:#078c62;background:#dbf7e9}
body.posyandu-ui-v628 .v639-report-metric-copy{min-width:0;display:grid;gap:3px}
body.posyandu-ui-v628 .v639-report-metric-copy>strong{font-size:27px;font-weight:850;line-height:1.1;color:#183770}
body.posyandu-ui-v628 .v639-report-metric-copy>span{font-size:12px;font-weight:750;color:#2d4f80;line-height:1.35}
body.posyandu-ui-v628 .v639-report-metric-copy>small{font-size:10px;color:#7185a5}
body.posyandu-ui-v628 .v639-report-list-panel{background:#fff;border:1px solid #dfe9f9;border-radius:20px;padding:19px;box-shadow:var(--u39-shadow)}
body.posyandu-ui-v628 .v639-report-list-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 1px 16px}
body.posyandu-ui-v628 .v639-report-list-header .eyebrow{font-size:10px}
body.posyandu-ui-v628 .v639-report-list-header h3{margin:5px 0;font-size:17px}
body.posyandu-ui-v628 .v639-report-list-header p{font-size:12px;margin:0}
body.posyandu-ui-v628 .v639-report-result-count{flex:0 0 auto;border:1px solid #dce8fb;border-radius:999px;background:#f5f9ff;padding:7px 11px;font-size:11px;font-weight:750;color:#2a62bd}
body.posyandu-ui-v628 .v639-report-items{display:grid;gap:10px}
body.posyandu-ui-v628 .v639-report-item{
 display:grid;
 grid-template-columns:minmax(185px,1.35fr) minmax(110px,.85fr) minmax(120px,1fr) minmax(135px,1.1fr) minmax(155px,1.05fr);
 align-items:center;
 gap:15px;
 min-width:0;
 padding:16px;
 border:1px solid #e1e9f8;
 border-radius:16px;
 background:#fcfdff;
 box-shadow:0 4px 14px rgba(37,70,120,.025);
}
body.posyandu-ui-v628 .v639-report-item.is-unread{background:#f7faff;border-color:#bcd7ff}
body.posyandu-ui-v628 .v639-report-item-main{display:flex;align-items:center;gap:10px;min-width:0}
body.posyandu-ui-v628 .v639-report-avatar{display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;border-radius:13px;background:linear-gradient(135deg,#d4eaff,#e4deff);color:#2156b3;font-weight:850;font-size:16px}
body.posyandu-ui-v628 .v639-report-item-title{min-width:0;display:block}
body.posyandu-ui-v628 .v639-report-item-title strong{font-size:13px;display:inline-block;line-height:1.4;color:#15346d}
body.posyandu-ui-v628 .v639-report-new{font-size:9px;font-weight:850;color:#d13c4d;background:#ffecf0;border-radius:999px;padding:4px 6px;margin-left:3px}
body.posyandu-ui-v628 .v639-report-item-title small{display:block;font-size:11px;color:#6c80a0;margin-top:4px;line-height:1.4}
body.posyandu-ui-v628 .v639-report-item :is(.v639-report-item-stat,.v639-report-item-status,.v639-report-item-confirm){display:grid;justify-items:start;gap:5px;min-width:0}
body.posyandu-ui-v628 .v639-report-item :is(.v639-report-item-stat,.v639-report-item-status,.v639-report-item-confirm)>span:first-child{font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;color:#8192aa}
body.posyandu-ui-v628 .v639-report-item-stat strong{font-size:18px;color:#19417e;line-height:1.3}
body.posyandu-ui-v628 .v639-report-item-stat strong small{font-size:11px;color:#5c7293}
body.posyandu-ui-v628 .v639-report-item-stat>small,
body.posyandu-ui-v628 .v639-report-item-confirm>small{font-size:10px;color:#7186a2}
body.posyandu-ui-v628 .v639-report-item-action{display:grid;justify-items:stretch;gap:8px;align-content:center}
body.posyandu-ui-v628 .v639-report-item-action .btn{white-space:normal;min-height:42px;padding:8px 9px;font-size:11px;line-height:1.3}
body.posyandu-ui-v628 .v639-report-updated{font-size:10px;color:#7b8ead;text-align:center;line-height:1.35}
body.posyandu-ui-v628 .v639-report-empty{text-align:center;border:1px dashed #cddcf2;border-radius:16px;background:#f8fbff;padding:28px}
body.posyandu-ui-v628 .v639-report-empty>span{display:grid;place-items:center;margin:0 auto 11px;width:53px;height:53px;border-radius:16px;background:#e6efff;color:#366cda;font-size:25px}
body.posyandu-ui-v628 .v639-report-empty strong{display:block;font-size:14px;color:#193c79}
body.posyandu-ui-v628 .v639-report-empty p{font-size:12px;color:#647b9c;margin:6px 0 0}
/* Reports, uploads and print control pages retain their own semantics; unify their outer rhythm. */
body.posyandu-ui-v628 .report-hub{max-width:none;min-width:0}
body.posyandu-ui-v628 .rh-hero{border-radius:19px}
body.posyandu-ui-v628 .rh-card{box-shadow:var(--u39-shadow);border-radius:19px}
body.posyandu-ui-v628 .rh-card label{font-size:12px}
body.posyandu-ui-v628 .rh-card button,
body.posyandu-ui-v628 .rh-card select{min-height:43px}
body.posyandu-ui-v628 .rh-item,
body.posyandu-ui-v628 .rh-mode-option{border-radius:14px}
body.posyandu-ui-v628 .report-target-item,
body.posyandu-ui-v628 .admin-report-section{border-radius:15px}
/* At tablet widths, avoid cramped five-column cards. */
@media (max-width:1430px) and (min-width:901px){
 body.posyandu-ui-v628 .v639-report-item{grid-template-columns:minmax(180px,1.25fr) minmax(100px,.8fr) minmax(125px,.9fr) minmax(135px,1fr);}
 body.posyandu-ui-v628 .v639-report-item-action{grid-column:4;grid-row:1 / span 2}
 body.posyandu-ui-v628 .v639-report-item-confirm{grid-column:3;grid-row:2}
 body.posyandu-ui-v628 .v639-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1170px) and (min-width:901px){
 body.posyandu-ui-v628 .app-shell,body.posyandu-ui-v628.role-admin_desa .app-shell{grid-template-columns:222px minmax(0,1fr)}
 body.posyandu-ui-v628 .sidebar nav a,body.posyandu-ui-v628.role-admin_desa .sidebar nav a.admin-nav-link{font-size:11px}
 body.posyandu-ui-v628 .v639-report-item{grid-template-columns:minmax(140px,1fr) minmax(100px,.8fr) minmax(125px,1fr);}
 body.posyandu-ui-v628 .v639-report-item-status{grid-row:2;grid-column:1}
 body.posyandu-ui-v628 .v639-report-item-confirm{grid-row:2;grid-column:2}
 body.posyandu-ui-v628 .v639-report-item-action{grid-row:1 / span 2;grid-column:3}
 body.posyandu-ui-v628 .v639-report-item-stat{grid-row:1;grid-column:2}
}
@media(max-width:900px){
 body.posyandu-ui-v628 .app-shell,
 body.posyandu-ui-v628.role-admin_desa .app-shell{display:block;grid-template-columns:1fr}
 body.posyandu-ui-v628 .sidebar,
 body.posyandu-ui-v628.role-admin_desa .sidebar,
 body.posyandu-ui-v628.role-posyandu .sidebar{
  position:fixed;left:0;top:0;bottom:0;height:100dvh;
  width:min(300px,86vw);z-index:130;
  transform:translateX(-105%);
 }
 body.posyandu-ui-v628.role-admin_desa.admin-menu-open .sidebar{transform:translateX(0)}
 body.posyandu-ui-v628 .topbar,
 body.posyandu-ui-v628.role-admin_desa .topbar,
 body.posyandu-ui-v628.role-posyandu .topbar{height:65px;padding:0 14px}
 body.posyandu-ui-v628 .page,
 body.posyandu-ui-v628.role-admin_desa .page,
 body.posyandu-ui-v628.role-posyandu .page{padding:17px 14px calc(86px + env(safe-area-inset-bottom));min-height:calc(100dvh - 65px)}
 body.posyandu-ui-v628 .v639-report-heading{grid-template-columns:1fr}
 body.posyandu-ui-v628 .v639-report-filters{grid-template-columns:1fr 1fr}
 body.posyandu-ui-v628 .v639-report-metrics,
 body.posyandu-ui-v628.role-bidan .v639-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.posyandu-ui-v628 .v639-report-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.posyandu-ui-v628 .v639-report-item-main{grid-column:1 / -1}
 body.posyandu-ui-v628 .v639-report-item-action{grid-column:1 / -1;grid-row:auto;display:flex;align-items:center;justify-content:space-between}
 body.posyandu-ui-v628 .v639-report-item-action .btn{flex:0 0 auto}
 body.posyandu-ui-v628 .v639-report-item-confirm,
 body.posyandu-ui-v628 .v639-report-item-status,
 body.posyandu-ui-v628 .v639-report-item-stat{grid-column:auto;grid-row:auto}
 body.posyandu-ui-v628 .stats{gap:10px}
}
@media(max-width:620px){
 body.posyandu-ui-v628 .page,
 body.posyandu-ui-v628.role-admin_desa .page,
 body.posyandu-ui-v628.role-posyandu .page{padding:13px 11px calc(82px + env(safe-area-inset-bottom))}
 body.posyandu-ui-v628 .page .card{padding:14px}
 body.posyandu-ui-v628 .page :is(h1,h2){font-size:21px}
 body.posyandu-ui-v628 .page h3{font-size:16px}
 body.posyandu-ui-v628 .topbar-title strong{font-size:16px}
 body.posyandu-ui-v628 .page-actions,
 body.posyandu-ui-v628 .simple-head,
 body.posyandu-ui-v628 .admin-simple-head,
 body.posyandu-ui-v628 .period-head,
 body.posyandu-ui-v628 .admin-schedule-head{flex-direction:column;align-items:stretch;gap:10px}
 body.posyandu-ui-v628 .page-actions>.btn,
 body.posyandu-ui-v628 .page-actions .actions>.btn{width:100%}
 body.posyandu-ui-v628 .v639-report-filters{grid-template-columns:1fr 1fr;gap:7px}
 body.posyandu-ui-v628 .v639-report-filters select{font-size:11px}
 body.posyandu-ui-v628 .v639-report-metrics,
 body.posyandu-ui-v628.role-bidan .v639-report-metrics{grid-template-columns:1fr 1fr;gap:8px}
 body.posyandu-ui-v628 .v639-report-metric{padding:11px;min-height:90px;gap:9px}
 body.posyandu-ui-v628 .v639-report-metric-symbol{width:34px;height:34px;flex-basis:34px;border-radius:11px;font-size:19px}
 body.posyandu-ui-v628 .v639-report-metric-copy>strong{font-size:22px}
 body.posyandu-ui-v628 .v639-report-metric-copy>span{font-size:11px}
 body.posyandu-ui-v628 .v639-report-list-panel{padding:12px;border-radius:16px}
 body.posyandu-ui-v628 .v639-report-result-count{display:none}
 body.posyandu-ui-v628 .v639-report-item{padding:12px;gap:11px;grid-template-columns:1fr 1fr}
 body.posyandu-ui-v628 .v639-report-item-status,.v639-report-item-confirm{min-width:0}
 body.posyandu-ui-v628 .v639-report-item-action{display:grid;gap:8px}
 body.posyandu-ui-v628 .v639-report-item-action .btn{width:100%;justify-content:center}
 body.posyandu-ui-v628 .v639-report-updated{text-align:left}
 body.posyandu-ui-v628 .table-wrap table{min-width:680px}
 body.posyandu-ui-v628 .mock-admin-stats-final>a,
 body.posyandu-ui-v628 .mock-kader-stat{padding:12px;min-height:100px}
 body.posyandu-ui-v628 .mock-admin-stats-final>a b,
 body.posyandu-ui-v628 .mock-kader-stat b{font-size:23px}
 body.posyandu-ui-v628 .mock-admin-stats-final>a small,
 body.posyandu-ui-v628 .mock-kader-stat small{font-size:11px}
 body.posyandu-ui-v628 .mock-admin-stats-final>a em,
 body.posyandu-ui-v628 .mock-kader-stat em{font-size:10px}
 body.posyandu-ui-v628 .admin-menu-card,
 body.posyandu-ui-v628 .simple-menu-card{min-height:80px;padding:12px;grid-template-columns:42px minmax(0,1fr) 10px}
 body.posyandu-ui-v628 .admin-menu-icon,
 body.posyandu-ui-v628 .menu-icon{width:40px;height:40px;flex-basis:40px}
 body.posyandu-ui-v628 .admin-more-grid,
 body.posyandu-ui-v628 .more-grid{grid-template-columns:1fr}
 body.posyandu-ui-v628 .stats.stats-4{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.posyandu-ui-v628 .stats>.stat,
 body.posyandu-ui-v628 .summary-grid>div{min-height:82px;padding:12px}
 body.posyandu-ui-v628 .stats .stat b,
 body.posyandu-ui-v628 .summary-grid b{font-size:23px}
}
@media(prefers-reduced-motion:reduce){
 body.posyandu-ui-v628 *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* Login and initial setup: keep the familiar split layout, sharpen its styling. */
body.guest.v628-login-page{color:#16315f;background:#edf3fc}
body.v628-login-page .v628-login-hero{
 background-color:#0d2d72;
}
body.v628-login-page .v628-login-right{
 background:radial-gradient(circle at 95% 8%,rgba(110,161,255,.13),transparent 40%),linear-gradient(135deg,#f6f9ff,#eaf2fc);
}
body.v628-login-page .v628-auth-card,
body.v628-login-page .login-card-modern{
 border:1px solid #dce7f8;
 box-shadow:0 21px 55px rgba(15,48,110,.11);
 border-radius:24px;
}
body.v628-login-page .v628-auth-header h1{font-size:clamp(21px,2.2vw,29px);letter-spacing:-.045em}
body.v628-login-page .v628-role-choice{background:#f8fbff;border-radius:14px}
body.v628-login-page .v628-role-choice.is-active{background:linear-gradient(135deg,#edf5ff,#eef0ff);border-color:#4384f1;box-shadow:0 8px 20px rgba(39,111,221,.10)}
body.v628-login-page .v628-input-wrap{background:#f3f7ff;border-color:#d5e3f8}
body.v628-login-page .v628-auth-form label{font-size:12px;color:#1b3c76}
body.v628-login-page .v628-submit{background:linear-gradient(110deg,#247df6,#5447ed);font-size:14px;border-radius:13px}
body.v628-login-page .v628-login-bottom{font-size:11px}
/* Add visual completion to two-column menu cards without an extra HTML icon. */
body.posyandu-ui-v628 .simple-menu-card:after{
 content:'›';
 grid-column:3;
 font-size:24px;
 font-weight:550;
 color:#6f9df1;
 text-align:center;
}
@media(max-width:640px){
 body.v628-login-page .v628-auth-card{border-radius:19px}
 body.v628-login-page .v628-hero-copy h1{font-size:28px}
}
/* Cohesive page-introduction panels across Admin, Bidan and Posyandu. */
body.posyandu-ui-v628 .page > .page-actions:not(.v630-filter-actions),
body.posyandu-ui-v628 .page > .simple-head,
body.posyandu-ui-v628 .page > .admin-simple-head,
body.posyandu-ui-v628 .page > .admin-schedule-head,
body.posyandu-ui-v628 .page > .period-head,
body.posyandu-ui-v628 .page > .service-day-head,
body.posyandu-ui-v628 .v639-report-heading{
 position:relative;
 isolation:isolate;
 overflow:hidden;
 padding:19px 21px;
 background:linear-gradient(125deg,#ffffff 15%,#eef5ff 72%,#edf6ff);
 border:1px solid #dce8fb;
 border-radius:19px;
 box-shadow:0 7px 24px rgba(27,70,135,.055);
}
body.posyandu-ui-v628 .page > :is(.page-actions,.simple-head,.admin-simple-head,.admin-schedule-head,.period-head,.service-day-head):before,
body.posyandu-ui-v628 .v639-report-heading:before{
 content:"";
 position:absolute;
 z-index:-1;
 width:210px;
 height:210px;
 right:-70px;
 top:-112px;
 border-radius:50%;
 background:radial-gradient(circle,rgba(78,147,254,.13),rgba(89,114,236,.06) 55%,transparent 56%);
 pointer-events:none;
}
body.posyandu-ui-v628.role-bidan .page > :is(.page-actions,.simple-head,.admin-simple-head,.admin-schedule-head,.period-head,.service-day-head),
body.posyandu-ui-v628.role-bidan .v639-report-heading{
 background:linear-gradient(125deg,#fff 10%,#f1f8ff 63%,#e9f9fb);
}
body.posyandu-ui-v628 .page > .page-actions.v630-filter-actions{
 background:#fff;
 border:1px solid #dce8f8;
 padding:16px;
 border-radius:17px;
 box-shadow:var(--u39-shadow);
}
body.posyandu-ui-v628 .page > .admin-report-counts{
 margin-bottom:15px;
}
body.posyandu-ui-v628 .v639-report-heading{margin-bottom:14px}
@media(max-width:620px){
 body.posyandu-ui-v628 .page > .page-actions:not(.v630-filter-actions),
 body.posyandu-ui-v628 .page > .simple-head,
 body.posyandu-ui-v628 .page > .admin-simple-head,
 body.posyandu-ui-v628 .page > .admin-schedule-head,
 body.posyandu-ui-v628 .page > .period-head,
 body.posyandu-ui-v628 .page > .service-day-head,
 body.posyandu-ui-v628 .v639-report-heading{padding:15px;border-radius:16px}
}
