.notification {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #4f5868;
}

.notification svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification > b {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  right: -6px;
  top: -7px;
}

.service-table { min-width: 980px; }
.service-table th { white-space: nowrap; }
.service-table td { vertical-align: middle; }
.service-name { display: flex; align-items: center; gap: 11px; min-width: 225px; }
.service-name .service-icon { width: 36px; height: 36px; font-size: 15px; flex: none; }
.service-name b { display: flex; flex-direction: column; font-size: 11px; }
.service-name small { font-weight: 400; color: var(--muted); margin-top: 4px; }
.type-label { display: inline-flex; padding: 5px 9px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.type-label.application { background: var(--orange-soft); color: var(--orange); }
.type-label.information { background: #e7f6ef; color: var(--green); }
.template-file { border: 0; background: transparent; color: #45516a; padding: 5px 0; font-size: 10px; text-align: left; }
.template-file:hover { color: var(--orange); text-decoration: underline; }
.no-template { color: #969ca6; font-size: 10px; }

.table-action { position: relative; display: inline-flex; }
.kebab-button { width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #596170; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.kebab-button:hover { border-color: var(--orange); color: var(--orange); background: #fffaf7; }
.action-dropdown { position: absolute; right: 0; top: 37px; min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 30px rgba(21,31,51,.16); z-index: 100; }
.action-dropdown button { width: 100%; border: 0; background: #fff; padding: 10px; border-radius: 6px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--navy); font-size: 11px; }
.action-dropdown button:hover { background: #f6f7f9; }
.action-dropdown button.danger { color: #c74450; }

.survey-intro { display: flex; gap: 14px; padding: 16px; background: #fff8f2; border: 1px solid #f4d7c5; border-radius: 10px; margin-bottom: 16px; }
.survey-intro > span { width: 38px; height: 38px; border-radius: 9px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.survey-intro h3 { margin: 0 0 4px; font-size: 14px; }
.survey-intro p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.survey-questions { display: grid; gap: 13px; }
.survey-questions fieldset { border: 1px solid var(--line); border-radius: 9px; margin: 0; padding: 14px; }
.survey-questions legend { font-size: 12px; font-weight: 700; padding: 0 5px; }
.rating-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.rating-options label { border: 1px solid var(--line); border-radius: 7px; padding: 8px; flex-direction: row; align-items: center; cursor: pointer; }
.rating-options label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.rating-options small { color: var(--muted); margin-left: auto; font-size: 8px; }
.survey-note textarea { min-height: 65px; }
.survey-reference { color: var(--orange); font-size: 10px; font-weight: 700; justify-self: start; }

.detail-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.detail-page-head h1 { font: 700 27px 'Plus Jakarta Sans'; margin: 5px 0; }
.detail-page-head p { color: var(--muted); margin: 0; font-size: 11px; }
.detail-page-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 17px; }
.detail-page-grid > div { display: grid; gap: 17px; }
.detail-page-grid aside { display: grid; gap: 17px; align-content: start; }
.detail-section h3 { font: 700 14px 'Plus Jakarta Sans'; margin: 0 0 15px; }
.detail-section dl { margin: 0; }
.detail-section dl div { display: grid; grid-template-columns: 180px 1fr; padding: 11px 0; border-bottom: 1px solid #eff0f2; }
.detail-section dt { color: var(--muted); font-size: 11px; }
.detail-section dd { margin: 0; font-size: 11px; font-weight: 600; }
.detail-page-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0; margin-top: 17px; background: #f5f6f8; border-top: 1px solid var(--line); }
.status-history > div { display: flex; gap: 10px; min-height: 57px; position: relative; }
.status-history > div:not(:last-child)::after { content: ''; position: absolute; width: 1px; height: 27px; background: #d9dde3; left: 13px; top: 29px; }
.status-history i { width: 27px; height: 27px; border: 1px solid #d5d9df; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; }
.status-history .done i { color: #fff; background: var(--green); border-color: var(--green); }
.status-history span { display: flex; flex-direction: column; font-size: 10px; }
.status-history small { color: var(--muted); margin-top: 4px; }
.survey-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 17px; }
.survey-stats article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; }
.survey-stats small { color: var(--muted); font-size: 10px; }
.survey-stats b { font: 700 24px 'Plus Jakarta Sans'; margin: 4px 0; }
.survey-stats span { color: var(--muted); font-size: 9px; }
.survey-stats .positive { color: var(--green); }
.score { display: inline-grid; place-items: center; min-width: 42px; padding: 6px; border-radius: 6px; background: #e7f6ef; color: var(--green); font-weight: 700; }
.applicant-cell { display: flex; align-items: center; gap: 10px; min-width: 245px; }
.applicant-cell > span { width: 34px; height: 34px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; font-size: 9px; font-weight: 800; }
.applicant-cell > b { display: flex; flex-direction: column; font-size: 11px; }
.applicant-cell small { color: var(--muted); font-weight: 400; margin-top: 4px; }
#submissions .pagination button:disabled { opacity: .4; cursor: not-allowed; }
.filter-row.search-only { justify-content: flex-end; }
.filter-row.search-only .search { margin-left: 0; width: min(320px,100%); }
.filter-row.search-only .search input { width: 100%; }
.services-page { min-height: calc(100vh - 124px); background: #fff; }
.services-page .content-section { padding-top: 62px; }
.public-header nav a { position: relative; padding: 31px 0; }
.public-header nav a.active { color: var(--orange); }
.public-header nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); }

/* Sidebar admin mengikuti tema putih Inquest. */
.admin-app .sidebar {
  background: #fff;
  color: var(--navy);
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 18px rgba(23,35,59,.04);
}

.admin-app .admin-brand {
  color: var(--navy);
  border-bottom-color: var(--line);
}

.admin-app .admin-brand small { color: var(--muted); }
.admin-app .sidebar nav small { color: #a0a6b1; }
.admin-app .sidebar nav button { color: #596170; }
.admin-app .sidebar nav button:hover { background: #fff5ee; color: var(--orange); }
.admin-app .sidebar nav button.active { background: var(--orange); color: #fff; box-shadow: 0 7px 16px rgba(232,111,45,.18); }
.admin-app .sidebar nav button b { background: var(--orange-soft); color: var(--orange); }
.admin-app .sidebar nav button.active b { background: rgba(255,255,255,.22); color: #fff; }
.admin-app .sidebar-help { background: #f7f8fa; border: 1px solid var(--line); }
.admin-app .sidebar-help span { background: #fff; color: var(--orange); border: 1px solid var(--line); }
.admin-app .sidebar-help b { color: var(--navy); }
.admin-app .sidebar-help small { color: var(--muted); }
.survey-section-title { display: flex; flex-direction: column; gap: 3px; margin: 22px 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .5px; }
.survey-section-title b { font-size: 11px; color: var(--orange); }
.survey-section-title small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.survey-demographic { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.survey-demographic label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; }
.survey-demographic label.wide { grid-column: 1/-1; }
.survey-demographic label small { color: var(--muted); font-weight: 400; }
.survey-demographic input,.survey-demographic select { border: 1px solid var(--line); border-radius: 8px; padding: 11px; background: #fff; }
.survey-choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.survey-choice-grid label { display: flex; flex-direction: row; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 10px; }
.survey-choice-grid label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.survey-choice-grid input { accent-color: var(--orange); }
#surveys table { min-width: 1100px; }
@media(max-width:620px){.survey-demographic,.survey-choice-grid{grid-template-columns:1fr}}

/* Panel langkah wizard tetap terlihat saat form panjang digulir. */
.wizard-shell { overflow: visible; background: transparent; align-items: start; }
.wizard-side { position: sticky; top: 140px; align-self: start; max-height: calc(100vh - 160px); overflow-y: auto; border-radius: 17px 0 0 17px; }
.wizard-form { background: #fff; border-radius: 0 17px 17px 0; min-height: 100%; }
.wizard-side::-webkit-scrollbar { width: 4px; }
.wizard-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.24); border-radius: 10px; }

@media(max-width:720px){
  .wizard-shell { overflow: hidden; }
  .wizard-side { position: static; max-height: none; overflow: visible; border-radius: 0; }
  .wizard-form { border-radius: 0; }
}

/* Alur Pemohon Ringkas tidak memakai header publik versi utama. */
.public-app.compact-flow .public-header { display: none; }
.public-app.compact-flow #wizardPage .wizard-shell { min-height: calc(100vh - 42px); }
.public-app.compact-flow #wizardPage .wizard-side { top: 42px; min-height: calc(100vh - 42px); max-height: calc(100vh - 42px); }
.public-app.compact-flow #wizardPage .wizard-form { min-height: calc(100vh - 42px); }
.public-app.compact-flow #infoPage { min-height: calc(100vh - 42px); padding-top: 36px; }

@media(max-width:720px){
  .public-app.compact-flow #wizardPage .wizard-side { min-height: auto; max-height: none; }
  .public-app.compact-flow #wizardPage .wizard-form { min-height: auto; }
}

/* Alternatif homepage pemohon ringkas. */
.compact-app { min-height: calc(100vh - 42px); position: relative; overflow: hidden; background: linear-gradient(145deg,#fff9f4 0,#f8f5ef 48%,#f2eee8 100%); padding: 34px 20px; }
.compact-bg-shape { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.compact-bg-shape.one { width: 330px; height: 330px; right: -100px; top: 90px; background: rgba(232,111,45,.10); }
.compact-bg-shape.two { width: 260px; height: 260px; left: -100px; bottom: -60px; background: rgba(23,35,59,.06); }
.compact-shell { position: relative; width: min(760px,100%); min-height: calc(100vh - 110px); margin: auto; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: 0 24px 80px rgba(35,37,43,.12); padding: 28px 34px 20px; display: flex; flex-direction: column; }
.compact-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.compact-brand { display: flex; align-items: center; gap: 11px; }
.compact-brand img { width: 47px; height: 47px; object-fit: contain; }
.compact-brand div { display: flex; flex-direction: column; }
.compact-brand b { font: 800 15px 'Plus Jakarta Sans'; }
.compact-brand small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.compact-track { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px 13px; color: var(--navy); font-size: 10px; font-weight: 700; }
.compact-track:hover { color: var(--orange); border-color: var(--orange); }
.compact-intro { text-align: center; padding: 34px 0 23px; }
.compact-eyebrow { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.compact-intro h1 { font: 800 clamp(27px,4vw,38px) 'Plus Jakarta Sans'; letter-spacing: -1.3px; margin: 9px 0 7px; }
.compact-intro > p { color: var(--muted); margin: 0; font-size: 13px; }
.compact-notice { width: min(570px,100%); margin: 22px auto 0; padding: 12px 15px; background: #fff7ed; border: 1px solid #fedbbd; border-radius: 10px; display: flex; gap: 11px; align-items: center; text-align: left; }
.compact-notice > span { color: var(--orange); font-size: 18px; }
.compact-notice div { display: flex; flex-direction: column; }
.compact-notice b { font-size: 10px; }
.compact-notice small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.compact-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(620px,100%); margin: 0 auto 28px; }
.compact-groups > button { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 16px; display: grid; grid-template-columns: 43px 1fr 18px; align-items: center; gap: 11px; text-align: left; color: var(--navy); transition: .2s; }
.compact-groups > button:hover { transform: translateY(-2px); border-color: #f0b995; box-shadow: 0 10px 25px rgba(40,45,55,.08); }
.compact-group-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; font-style: normal; font-size: 17px; }
.compact-groups div { display: flex; flex-direction: column; }
.compact-groups b { font: 700 12px 'Plus Jakarta Sans'; }
.compact-groups small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.compact-groups i { color: #aeb3bc; font-style: normal; }
.compact-service-panel { width: min(620px,100%); margin: 0 auto 25px; }
.compact-back { border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; padding: 0; margin-bottom: 17px; }
.compact-panel-head { display: flex; gap: 12px; align-items: center; margin-bottom: 15px; }
.compact-panel-head h2 { font: 700 20px 'Plus Jakarta Sans'; margin: 0; }
.compact-panel-head p { color: var(--muted); font-size: 10px; margin: 3px 0 0; }
.compact-service-list { display: grid; gap: 8px; }
.compact-service-list > button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 13px; display: grid; grid-template-columns: 31px 1fr auto 14px; align-items: center; gap: 10px; text-align: left; color: var(--navy); }
.compact-service-list > button:hover { border-color: var(--orange); background: #fffaf7; }
.compact-service-symbol { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; }
.compact-service-symbol.apply { background: var(--orange-soft); color: var(--orange); }
.compact-service-symbol.info { background: #e7f6ef; color: var(--green); }
.compact-service-list div { display: flex; flex-direction: column; }
.compact-service-list b { font-size: 11px; }
.compact-service-list small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.compact-service-list em { border-radius: 20px; padding: 4px 7px; background: #f4f5f7; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 700; }
.compact-service-list i { color: #aeb3bc; font-style: normal; }
.compact-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.compact-footer button { border: 0; background: transparent; color: var(--orange); font-size: 9px; font-weight: 700; }

@media(max-width:700px){
  .compact-app { padding: 0; }
  .compact-shell { min-height: calc(100vh - 42px); border-radius: 0; padding: 20px 16px; }
  .compact-groups { grid-template-columns: 1fr; }
  .compact-header { align-items: flex-start; }
  .compact-brand small { max-width: 170px; }
  .compact-track { font-size: 0; }
  .compact-track::first-letter { font-size: 15px; }
  .compact-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* Langkah status setelah pengajuan dikirim. */
.verification-card { max-width: 610px; margin: 5px auto 0; text-align: center; }
.verification-animation { width: 76px; height: 76px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; }
.verification-animation span { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #e5f6ee; color: var(--green); font-size: 25px; font-weight: 800; }
.verification-animation i { position: absolute; inset: 0; border: 1px solid #bde7d3; border-radius: 50%; animation: verifyPulse 2s infinite; }
@keyframes verifyPulse { 0%{transform:scale(.72);opacity:1} 100%{transform:scale(1.15);opacity:0} }
.verification-card > h2 { font: 700 25px 'Plus Jakarta Sans'; margin: 12px 0 8px; }
.verification-card > p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.65; }
.verification-code { margin: 23px auto; max-width: 390px; padding: 15px 18px; border: 1px dashed #efb58f; border-radius: 10px; background: #fff8f3; display: grid; grid-template-columns: 1fr 32px; }
.verification-code small { grid-column: 1/-1; color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.verification-code b { font: 700 22px 'Plus Jakarta Sans'; }
.verification-code button { border: 0; background: transparent; color: var(--orange); }
.verification-timeline { display: flex; align-items: flex-start; margin: 30px 0 35px; }
.verification-timeline > div { width: 145px; display: flex; flex-direction: column; align-items: center; }
.verification-timeline > div > b { position: relative; z-index: 2; width: 31px; height: 31px; border: 2px solid #d7dbe1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #a3a9b3; font-size: 10px; }
.verification-timeline > div.done > b { background: var(--green); border-color: var(--green); color: #fff; }
.verification-timeline > div.active > b { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px var(--orange-soft); }
.verification-timeline span { display: flex; flex-direction: column; margin-top: 9px; }
.verification-timeline strong { font-size: 12px; line-height: 1.35; }
.verification-timeline small { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 5px; max-width: 145px; }
.verification-timeline > i { position: relative; z-index: 1; flex: 1; height: 3px; background: #dfe2e6; border-radius: 999px; margin: 15px -57px 0; transition: background .25s ease; }
.verification-timeline > div.done + i { background: var(--green); }
.verification-timeline > div.active + i { background: linear-gradient(90deg,var(--orange) 0 38%,#dfe2e6 38% 100%); }
.verification-timeline > div.active.success + i { background: linear-gradient(90deg,var(--green) 0 38%,#dfe2e6 38% 100%); }
.verification-actions { display: flex; justify-content: center; gap: 10px; }
.approved-demo-hint { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 11px 13px; border-radius: 8px; background: #f4f6f9; text-align: left; }
.approved-demo-hint > span { color: var(--blue); }
.approved-demo-hint p { margin: 0; color: var(--muted); font-size: 9px; }
.approved-demo-hint button,.tracking-demo-code button { border: 0; background: transparent; color: var(--orange); font-weight: 800; padding: 0; }
.tracking-demo-code { display: block; color: var(--muted); margin-top: 7px; font-size: 9px; }
.tracking-approved-box { margin-top: 42px; padding: 12px; border: 1px solid #cfe8dc; border-radius: 9px; background: #f4fbf8; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; text-align: left; }
.tracking-approved-box > div { display: flex; flex-direction: column; }
.tracking-approved-box b { font-size: 10px; }
.tracking-approved-box small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.tracking-approved-box .btn { font-size: 9px; padding: 9px 10px; }
.mini-steps.approved i { background: var(--green); }
.tracking-wait-note { margin: 42px 0 0!important; padding: 9px; border-radius: 7px; background: #fff8ee; color: #a36a16!important; font-size: 9px!important; }
@media(max-width:620px){.verification-timeline small{display:none}.tracking-approved-box{grid-template-columns:31px 1fr}.tracking-approved-box .btn{grid-column:1/-1}}

/* Sidebar wizard menyatu dengan header dan dasar viewport. */
#wizardPage { position: relative; padding: 0 6vw 0; }
#wizardPage .wizard-shell { max-width: 1120px; min-height: calc(100vh - 124px); }
#wizardPage .wizard-side { top: 124px; min-height: calc(100vh - 124px); max-height: calc(100vh - 124px); border-radius: 0; padding-top: 38px; }
#wizardPage .wizard-form { min-height: calc(100vh - 124px); border-radius: 0; padding-top: 70px; }
#wizardPage > .back-link { position: absolute; z-index: 5; top: 24px; left: calc(6vw + 380px); margin: 0; }

@media(max-width:720px){
  #wizardPage { padding: 0; }
  #wizardPage .wizard-shell { min-height: auto; }
  #wizardPage .wizard-side { min-height: auto; max-height: none; padding-top: 25px; }
  #wizardPage .wizard-form { min-height: auto; padding-top: 65px; }
  #wizardPage > .back-link { top: 22px; left: 20px; }
}
.survey-detail-list { display: grid; gap: 0; margin-top: 18px; }
.survey-detail-list div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.survey-detail-list span { color: var(--muted); }

@media (max-width: 900px) {
  .detail-page-grid { grid-template-columns: 1fr; }
  .survey-stats { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rating-options { grid-template-columns: repeat(2,1fr); }
}

/* Builder template surat pada Master Jenis Layanan. */
.service-builder { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 18px; align-items: start; }
.builder-steps { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 130px; }
.builder-steps button { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left; color: var(--muted); padding: 5px 0; }
.builder-steps button b { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.builder-steps button span { display: flex; flex-direction: column; }
.builder-steps button strong { color: var(--navy); font-size: 11px; }
.builder-steps button small { font-size: 9px; margin-top: 3px; }
.builder-steps button.active b,.builder-steps button.complete b { background: var(--orange); border-color: var(--orange); color: #fff; }
.builder-steps > i { display: block; width: 1px; height: 28px; background: var(--line); margin: 2px 0 2px 16px; }
.builder-content { padding: 28px; min-height: 590px; }
.builder-content h2 { font: 700 21px 'Plus Jakarta Sans'; margin: 8px 0 5px; }
.builder-lead { color: var(--muted); font-size: 11px; margin: 0 0 24px; }
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.builder-grid label,.builder-field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; }
.builder-grid input,.builder-grid select,.builder-field select { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; color: var(--navy); }
.builder-field { margin-top: 18px; }
.builder-field small { color: var(--muted); font-weight: 400; }
.demo-form textarea { min-height: 82px; resize: vertical; border: 1px solid var(--line); padding: 11px; border-radius: 8px; font: inherit; }
.variable-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.variable-picker button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 11px; text-align: left; color: var(--navy); font-size: 10px; font-weight: 700; }
.variable-picker button:hover { border-color: var(--orange); color: var(--orange); background: #fff8f3; }
.layout-choice { border: 0; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-choice legend { font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.layout-choice label { border: 1px solid var(--line); border-radius: 9px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.layout-choice label:has(input:checked) { border-color: var(--orange); background: #fff8f3; }
.layout-choice span { display: flex; flex-direction: column; }
.layout-choice b { font-size: 11px; }
.layout-choice small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.body-preset { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; font-size: 10px; font-weight: 700; }
.body-preset select { min-width: 270px; height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; color: var(--navy); }
.body-tools { display: flex; flex-wrap: wrap; gap: 7px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; padding: 8px; background: #f8f9fa; }
.body-tools button { border: 1px solid var(--line); background: #fff; border-radius: 5px; min-width: 31px; height: 30px; color: var(--navy); }
.body-tools > span { width: 1px; height: 24px; background: var(--line); margin: 3px 2px; }
.body-tools [data-format="justifyCenter"] { text-align: center; }
.body-tools [data-format="justifyRight"] { text-align: right; }
.body-tools .align-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.body-tools button:hover .align-icon { color: var(--orange); }
.body-tools [data-insert-letter-block] { width: auto; padding: 0 9px; font-size: 9px; font-weight: 700; }
.body-tools button:last-child { margin-left: auto; padding: 0 11px; color: var(--orange); font-size: 10px; font-weight: 700; }
.body-editor { min-height: 285px; border: 1px solid var(--line); border-radius: 0 0 9px 9px; padding: 28px 38px; background: #fff; font-family: Georgia,serif; font-size: 12px; line-height: 1.7; outline: none; }
.body-editor:focus { border-color: var(--orange); }
.body-editor h2,.body-editor h3 { text-align: center; text-decoration: underline; margin-top: 0; font-size: 15px; }
.body-editor table { width: auto; margin: 15px 0; font-family: Georgia,serif; }
.body-editor td { border: 0; padding: 2px 20px 2px 0; }
.body-editor .document-number,.letter-preview .document-number { text-align: center; margin-top: -8px; }
.body-editor .letter-date,.letter-preview .letter-date { text-align: right; margin: 24px 0 10px auto; }
.body-editor .letter-recipient,.letter-preview .letter-recipient { text-align: left; margin: 20px 0; line-height: 1.55; }
.body-editor .letter-paragraph,.letter-preview .letter-paragraph { text-align: justify; text-indent: 34px; }
.body-editor .identity-table,.body-editor .letter-meta,.letter-preview .identity-table,.letter-preview .letter-meta { width: 100%; margin: 14px 0; }
.body-editor .identity-table td:first-child,.body-editor .letter-meta td:first-child,.letter-preview .identity-table td:first-child,.letter-preview .letter-meta td:first-child { width: 145px; }
.signature-settings { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.signature-settings h3 { font-size: 12px; margin: 0 0 13px; }
.signature-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.signature-heading h3 { margin: 0 0 3px; }
.signature-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.signature-heading .btn { padding: 9px 11px; font-size: 9px; }
#signerList { display: grid; gap: 9px; }
.signer-row { display: grid; grid-template-columns: 1.2fr 1fr 32px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.signer-row label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 700; }
.signer-row select { height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; color: var(--navy); }
.remove-signer { width: 32px; height: 38px; border: 1px solid #f0c9cc; border-radius: 7px; background: #fff; color: #c74450; font-size: 17px; }
.remove-signer:disabled,[data-add-signer]:disabled { opacity: .4; cursor: not-allowed; }
.signer-counter { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.builder-actions { display: flex; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.builder-actions span { flex: 1; }
.letter-preview { width: min(650px,100%); min-height: 720px; margin: 20px auto; padding: 42px 50px 52px; border: 1px solid #d9dce1; box-shadow: 0 12px 35px rgba(25,34,51,.08); background: #fff; font-family: Georgia,serif; position: relative; }
.letter-preview > header { display: flex; gap: 15px; align-items: center; text-align: center; border-bottom: 3px double #17233a; padding-bottom: 10px; }
.letter-preview > header img { width: 58px; }
.letter-preview > header div { flex: 1; display: flex; flex-direction: column; }
.letter-preview > header b { font-size: 14px; }
.letter-preview > header strong { font-size: 16px; }
.letter-preview > header small { font-size: 9px; margin-top: 4px; }
.letter-preview main { font-size: 11px; line-height: 1.65; padding-top: 22px; }
.letter-preview main h3 { text-align: center; text-decoration: underline; }
.letter-preview main h2 { text-align: center; text-decoration: underline; font-size: 14px; }
.letter-preview main table { width: auto; font-family: Georgia,serif; }
.letter-preview main td { border: 0; padding: 2px 18px 2px 0; }
.letter-preview > footer { display: flex; justify-content: flex-end; margin-top: 38px; font-size: 11px; line-height: 1.7; }
#previewSignature { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 45px; }
.preview-signer { min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.preview-signer small { color: var(--muted); font-family: Arial,sans-serif; font-size: 8px; margin-bottom: 38px; }
.preview-signer b { font-weight: 700; text-decoration: underline; }
.preview-signer em { font-style: normal; }
.letter-footer { position: absolute; left: 50px; right: 50px; bottom: 25px; padding-top: 7px; border-top: 1px solid #17233a; text-align: center; font-size: 8px; }
@media(max-width:900px){.service-builder{grid-template-columns:1fr}.builder-steps{position:static;display:flex}.builder-steps>i{width:30px;height:1px;margin:20px 4px}.builder-steps button span{display:none}}
@media(max-width:620px){.builder-grid,.layout-choice{grid-template-columns:1fr}.builder-content{padding:18px}.letter-preview{padding:25px 20px 45px}.letter-footer{left:20px;right:20px}.signature-heading{align-items:flex-start;gap:10px}.signer-row{grid-template-columns:1fr 32px}.signer-row label:nth-child(2){grid-column:1}.signer-row .remove-signer{grid-column:2;grid-row:1/3}#previewSignature{grid-template-columns:1fr}.body-preset{align-items:flex-start;flex-direction:column}.body-preset select{width:100%;min-width:0}.body-tools button:last-child{margin-left:0}}

/* Footer profesional khusus Tampilan Pemohon utama. */
.public-footer { background: #101d35; color: #fff; padding: 0 7vw; }
.footer-main { max-width: 1180px; margin: auto; padding: 52px 0 42px; display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 70px; }
.footer-identity > p { max-width: 370px; margin: 18px 0; color: #aeb8c9; font-size: 12px; line-height: 1.7; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 44px; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand b { font: 700 15px 'Plus Jakarta Sans'; }
.footer-brand small { color: #aeb8c9; font-size: 9px; margin-top: 2px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; transition: .2s; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h3 { margin: 3px 0 10px; color: #fff; font: 700 12px 'Plus Jakarta Sans'; }
.footer-column a,.footer-column button { border: 0; padding: 0; background: transparent; color: #aeb8c9; font: 500 10px 'DM Sans'; text-align: left; }
.footer-column a:hover,.footer-column button:hover { color: #fff; }
.footer-contact p { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; color: #aeb8c9; font-size: 10px; line-height: 1.55; }
.footer-contact p b { color: #fff; }
.footer-bottom { max-width: 1180px; margin: auto; min-height: 58px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; color: #8995a8; font-size: 9px; }
.footer-bottom div { display: flex; gap: 22px; }
.footer-bottom a { color: #8995a8; }
.public-app.compact-flow .public-footer { display: none; }
@media(max-width:760px){.footer-main{grid-template-columns:1fr;gap:32px;padding:38px 0}.footer-bottom{padding:15px 0;flex-direction:column;justify-content:center;gap:9px;text-align:center}}

/* Kelompok layanan Homepage 1. */
#servicesPage .filter-row { display: grid; grid-template-columns: 1fr 245px; align-items: stretch; gap: 14px; }
.public-category-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.public-category-buttons button { min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; display: grid; grid-template-columns: 34px 1fr 12px; gap: 8px; align-items: center; text-align: left; color: var(--navy); }
.public-category-buttons .compact-group-icon { width: 34px; height: 34px; font-size: 13px; }
.public-category-buttons b { font-size: 10px; line-height: 1.3; }
.public-category-buttons i { color: #aeb3bc; font-style: normal; }
.public-category-buttons button.active { border-color: var(--orange); background: #fff8f3; box-shadow: 0 6px 16px rgba(232,111,45,.1); }
#servicesPage .public-group-search { width: 100%; margin: 0; }
@media(max-width:1000px){#servicesPage .filter-row{grid-template-columns:1fr}.public-category-buttons{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.public-category-buttons{grid-template-columns:1fr}}

/* Builder field input pemohon pada wizard Jenis Layanan. */
.field-builder-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.field-builder-head > div { display: flex; flex-direction: column; }
.field-builder-head b { font-size: 12px; }
.field-builder-head small,.field-builder-note { color: var(--muted); font-size: 9px; margin-top: 3px; }
.field-builder-head .btn { padding: 9px 11px; font-size: 9px; }
#serviceFieldList { display: grid; gap: 9px; }
.service-field-row { display: grid; grid-template-columns: 22px 1.2fr 1fr 1fr 72px 32px; gap: 9px; align-items: end; border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fafbfc; }
.service-field-row label { display: flex; flex-direction: column; gap: 6px; font-size: 9px; font-weight: 700; }
.service-field-row input:not([type="checkbox"]),.service-field-row select { width: 100%; height: 37px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 9px; color: var(--navy); }
.service-field-row .service-field-key { background: #f1f3f6!important; color: var(--muted); }
.field-drag { align-self: center; width: 22px; min-height: 38px; color: #aeb3bc; cursor: grab; display: flex; flex-direction: column; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: element; touch-action: none; }
.field-drag * { pointer-events: none; user-select: none; -webkit-user-select: none; }
.field-drag:active { cursor: grabbing; }
.field-drag b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #eef1f5; color: var(--navy); font-size: 8px; }
.field-drag i { font-style: normal; font-size: 10px; line-height: 10px; }
.service-field-row.field-dragging { opacity: .48; border: 1px dashed var(--orange); background: #fff3eb; box-shadow: 0 10px 25px rgba(32,41,58,.1); }
.field-required { height: 37px; flex-direction: row!important; align-items: center; }
.service-field-row [data-remove-service-field] { width: 32px; height: 37px; border: 1px solid #f0c9cc; border-radius: 7px; background: #fff; color: #c74450; font-size: 16px; }
.service-field-row.field-duplicate,.service-field-row.field-empty { border-color: #df5c66; background: #fff7f7; box-shadow: 0 0 0 2px rgba(199,68,80,.06); }
.service-field-row.field-duplicate .service-field-label,.service-field-row.field-duplicate .service-field-key,.service-field-row.field-empty .service-field-label,.service-field-row.field-empty .service-field-key { border-color: #df5c66!important; }
.unique-field-warning { margin-top: 10px; padding: 11px 13px; border: 1px solid #efc2c6; border-radius: 8px; background: #fff4f5; color: #b73743; display: flex; align-items: flex-start; gap: 10px; }
.unique-field-warning > span { width: 22px; height: 22px; border-radius: 50%; background: #c74450; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.unique-field-warning p { margin: 0; display: flex; flex-direction: column; }
.unique-field-warning b { font-size: 10px; }
.unique-field-warning small { margin-top: 3px; color: #a94b54; font-size: 9px; }
.field-builder-note { display: block; margin-top: 11px; }
@media(max-width:980px){.service-field-row{grid-template-columns:22px 1fr 1fr 32px}.service-field-row label:nth-of-type(3){grid-column:2}.field-required{grid-column:3}.service-field-row [data-remove-service-field]{grid-column:4;grid-row:1/3}}
@media(max-width:620px){.field-builder-head{align-items:flex-start;gap:10px}.service-field-row{grid-template-columns:18px 1fr 32px}.service-field-row label{grid-column:2}.service-field-row label:nth-of-type(3),.field-required{grid-column:2}.service-field-row [data-remove-service-field]{grid-column:3;grid-row:1/5}}

/* Modal finalisasi dokumen dengan tanda tangan dan cap basah. */
.wet-sign-flow { margin-top: 18px; padding: 4px 0; }
.wet-sign-step { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: flex-start; }
.wet-sign-step > b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); font-size: 11px; }
.wet-sign-step > div { display: flex; flex-direction: column; align-items: flex-start; }
.wet-sign-step strong { font-size: 11px; }
.wet-sign-step small { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 4px 0 10px; }
.wet-sign-step .btn { font-size: 9px; padding: 9px 11px; }
.wet-sign-line { width: 1px; height: 23px; background: var(--line); margin: 4px 0 4px 15px; }
.wet-sign-upload { width: 100%; min-height: 62px; border: 1px dashed #efaf86; border-radius: 8px; background: #fff8f3; display: flex; align-items: center; gap: 9px; padding: 12px; color: var(--orange); }
.wet-sign-upload span { font-size: 18px; }
.wet-sign-upload em { font-style: normal; font-size: 9px; font-weight: 700; }
#wetSignFileName { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: #eef8f3; color: var(--green); font-size: 9px; }

/* Filter rentang laporan Survei Kepuasan. */
.survey-report-actions { display: flex; align-items: center; gap: 9px; }
.survey-report-actions .btn { white-space: nowrap; }
.survey-report-actions [data-survey-filter] { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.survey-report-actions [data-survey-filter] svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.survey-filter-summary { align-self: center; padding: 7px 10px; border-radius: 7px; background: #f4f6f9; color: var(--muted); font-size: 9px; }
.survey-range-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 17px; }
.survey-range-form label { display: flex; flex-direction: column; gap: 7px; font-size: 10px; font-weight: 700; }
.survey-range-form label.wide { grid-column: 1/-1; }
.survey-range-form input,.survey-range-form select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--navy); }
.survey-stats article { transition: transform .2s,box-shadow .2s,border-color .2s; }
.survey-stats article:hover { transform: translateY(-2px); border-color: #efb38c; box-shadow: 0 10px 24px rgba(28,38,55,.08); }
.survey-stats article b { transition: color .2s; }
.survey-stats article:hover b { color: var(--orange); }
.survey-pagination { margin-top: 0; min-width: 920px; }
.survey-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.survey-empty { padding: 38px!important; text-align: center; color: var(--muted); }
@media(max-width:720px){#surveys>.page-title{gap:12px;flex-direction:column}.survey-report-actions{width:100%}.survey-report-actions .btn{flex:1;font-size:9px}.survey-range-form{grid-template-columns:1fr}.survey-range-form label.wide{grid-column:auto}}
.admin-app.category-admin .superadmin-only{display:none!important}
.admin-scope-banner{display:none!important}
.admin-scope-banner b{color:#ef6c2c;white-space:nowrap}
#users td b small{display:block;margin-top:4px;color:#98a0b3;font-weight:400}
#users .badge{white-space:nowrap}
.field-disabled{opacity:.55}
.prototype-tabs{gap:4px}
.prototype-tabs button{padding-left:14px;padding-right:14px}
@media(max-width:900px){.admin-scope-banner{margin:16px 16px 0;align-items:flex-start;flex-direction:column;gap:4px}.prototype-tabs button{padding-left:8px;padding-right:8px;font-size:11px}}
.service-category-label{display:inline-block;max-width:150px;color:#465066;font-size:12px;font-weight:700;line-height:1.35}
