:root{font-family:Inter,system-ui,sans-serif;color:#18322b;background:#f3f6f4;line-height:1.5;--green:#17483b;--border:#d9e5de}
*{box-sizing:border-box}body{margin:0}a{color:#155844;text-underline-offset:.2em}header{display:flex;gap:1.4rem;align-items:center;justify-content:space-between;padding:.85rem max(4vw,1rem);background:#103d31;color:white;flex-wrap:wrap}header a{color:#fff;text-decoration:none}header form{margin:0}nav{display:flex;gap:1.1rem;flex-wrap:wrap}.brand{font-size:1.2rem;font-weight:750}.brand small{font-size:.75rem;display:block;color:#bcddd0}.layout{max-width:1280px;margin:auto;padding:2rem clamp(1rem,4vw,3.5rem)}h1{font-size:clamp(1.55rem,4vw,2.25rem);line-height:1.16;margin:.35rem 0 1.2rem}h2{font-size:1.08rem;margin:.15rem 0 1rem}p{margin:.6rem 0 1rem}.heading{display:flex;justify-content:space-between;align-items:center;gap:.9rem;margin-bottom:1.1rem;flex-wrap:wrap}.kicker,.mark{font-size:.73rem;color:#39715e;font-weight:750;letter-spacing:.09em;text-transform:uppercase}.panel,.login,.cards>div{background:#fff;border:1px solid var(--border);border-radius:12px;padding:clamp(1rem,3vw,1.5rem)}.panel{margin-bottom:1rem}.login{max-width:470px;margin:7vh auto;padding:2.3rem;box-shadow:0 16px 50px #18322b12}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.85rem;margin-bottom:1rem}.cards strong{font-size:1.9rem;display:block}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:.5rem 1.2rem}.filters{display:flex;align-items:end;flex-wrap:wrap;gap:.65rem;margin-bottom:1rem}.filters label{margin:0}form{margin:.7rem 0}label{display:block;font-size:.9rem;font-weight:630;margin:0 0 .9rem}input,select{display:block;width:100%;margin-top:.28rem;border:1px solid #b8c9bf;border-radius:6px;padding:.58rem .66rem;background:#fff;color:inherit;font:inherit}input:focus,select:focus{outline:2px solid #3f9477;outline-offset:1px}button,.button{display:inline-block;border:1px solid var(--green);border-radius:7px;background:var(--green);color:#fff;padding:.55rem .9rem;text-decoration:none;font:inherit;font-size:.9rem;font-weight:680;cursor:pointer}button:hover,.button:hover{filter:brightness(1.14)}.secondary{background:#eef5f0;color:#17483b;border-color:#c9ddd1}.ghost{background:transparent;border-color:#8ca89b}.notice{background:#fff0db;color:#72400b;padding:.65rem;border-radius:6px}.status{padding:.22rem .6rem;border-radius:20px;background:#edf1ee;white-space:nowrap;font-size:.8rem}.submitted{background:#e4efff;color:#234b84}.revision{background:#fff1db;color:#744a0e}.ready{background:#daf1e4;color:#14563b}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.86rem}th,td{padding:.65rem .6rem;border-bottom:1px solid #e1ebe5;text-align:left;vertical-align:top}th{background:#eaf2ed;color:#244a3b;white-space:nowrap}td.holiday,th.holiday{background:#fff0ef;color:#92211a}.checks{display:flex;gap:.7rem;flex-wrap:wrap}.check input{display:inline-block;width:auto}.paper{max-width:210mm;background:#fff;color:#111;font:11pt/1.38 Arial,sans-serif;padding:12mm 14mm;min-height:297mm}.paper h1{font-size:14pt;text-align:center;margin:1rem 0}.paper table{font-size:9pt}.paper th,.paper td{border:1px solid #333;background:white;color:#111;padding:4px}.address{margin-left:55%}.right{text-align:right}.center{text-align:center}.paper dl{display:grid;grid-template-columns:1fr 1.5fr;gap:.35rem}.paper dd{margin:0;overflow-wrap:anywhere}.signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;font-size:9pt}.sign-gap{height:43px}.signatures,.spt-sign{break-inside:avoid}.spt-sign{margin-left:58%}.no-print{display:flex;justify-content:space-between;margin-bottom:1rem}
@media print{@page{size:A4 portrait;margin:13mm 14mm}body{background:white}.paper{margin:0;padding:0;min-height:0;max-width:none}.no-print{display:none}.paper .scroll{overflow:visible}.paper tr{break-inside:avoid}.paper thead{display:table-header-group}}

.password-field {
  position: relative;
  margin-bottom: .9rem;
}
.password-field label {
  margin-bottom: 0;
}
.password-field input {
  padding-right: 3rem;
}
.password-toggle {
  position: absolute;
  right: .2rem;
  bottom: .13rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
}
.password-toggle[hidden] {
  display: none;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--green);
}
.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.password-toggle[aria-pressed="false"] .eye-slash {
  display: none;
}

/* BRMP Padi */
:root {
  color: #17263c;
  background: #edf1f7;
  --brand: #173860;
  --green: var(--brand);
  --border: #d7dfec;
  --gold: #e9bd62;
}
header {
  background: #101f39;
  border-bottom: 3px solid var(--gold);
}
header nav a:hover { text-decoration: underline; }
.brand small { color: #f1cf83; }
a { color: #214d83; }
.kicker, .mark { color: #325886; }
.panel { box-shadow: 0 6px 18px #203f6620; }
th { background: #e9eff8; color: #243c60; }
th, td { border-bottom-color: #e1e7f0; }
input, select { border-color: #aabbd2; }
input:focus, select:focus { outline-color: #4874a5; }
.secondary { background: #edf2f8; color: #173860; border-color: #c5d3e7; }
.dashboard-hero {
  padding: clamp(1.15rem, 4vw, 2rem);
  border-radius: 12px;
  background: linear-gradient(115deg, #101f39, #224874);
  border-left: 4px solid var(--gold);
  color: white;
}
.dashboard-hero .kicker { color: #f1cf83; }
.dashboard-hero h1 { margin-bottom: .3rem; }
.dashboard-hero .button, .dashboard-hero .button.secondary {
  background: var(--gold);
  color: #182740;
  border-color: var(--gold);
}
.dashboard-hero .button.secondary { background: #f5f8fd; border-color: #e0e8f6; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cards > div { border-top: 3px solid #5078a7; }
.cards strong { color: #173860; }
.login { border-top: 4px solid var(--gold); }
.signature-fields {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: .25rem 0 1.3rem;
  padding: .8rem 1rem;
  min-width: 0;
}
.signature-fields legend { color: var(--brand); font-weight: 700; padding: 0 .4rem; }
#manual-boss-fields[hidden] { display: none; }

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  line-height: 1.2;
}
.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.logo-kementan {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}
.logo-brmp {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: .25rem .35rem;
}
.login .brand-logos { margin-bottom: 1.05rem; }
@media (max-width: 540px) {
  .brand { font-size: 1rem; }
  .logo-kementan { width: 1.9rem; height: 1.9rem; }
}

.brand-title { display: block; }
.brand .satker-name {
  margin-top: .24rem;
  max-width: 32rem;
  color: #ebd39d;
  font-size: .7rem;
  line-height: 1.35;
}
.login .satker-name {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.45;
}

.paper .letterhead {
  display: grid;
  grid-template-columns: 17mm minmax(0, 1fr) 17mm;
  align-items: center;
  gap: 3mm;
  border-bottom: 4px double #173860;
  padding-bottom: 2mm;
  margin-bottom: 4mm;
  break-inside: avoid;
}
.letterhead img {
  width: 16mm;
  height: 16mm;
  object-fit: contain;
}
.letterhead-text {
  text-align: center;
  font-size: 9.5pt;
  line-height: 1.25;
}
.letterhead-text strong { display: block; font-size: 11.5pt; margin: 1mm 0; }
.letterhead-contact { font-size: 8.5pt; }
.paper dd {
  position: relative;
  padding-left: 1em;
}
.paper dd::before {
  content: ':';
  position: absolute;
  left: 0;
}
