:root {
  --orange: #d94801;
  --orange2: #f27a28;
  --gold: #d6a52a;
  --green: #1f8a5b;
  --blue: #3976c8;
  --purple: #7755b7;
  --ink: #24262b;
  --muted: #6d737d;
  --line: #e9e1d8;
  --white: #fff;
  --bg: #f7f7f5;
  --cream: #fff8ef;
  --shadow: 0 12px 30px rgba(50, 35, 20, 0.07);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-main {
  min-height: calc(100vh - 140px);
}
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.brand-mark,
.login-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 14px;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}
.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  color: #4f535a;
}
.nav-links a:hover {
  background: var(--cream);
  color: var(--orange);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: #444;
  padding: 10px 15px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: #c63f00;
  color: #fff;
}
.btn-logout {
  border-color: #f2cdb8;
  background: #fff6f0;
  color: var(--orange);
  padding: 8px 13px;
}
.btn-logout:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-small {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 9px;
}
.btn-block {
  width: 100%;
}
.hero {
  padding: 58px 0 34px;
  background: linear-gradient(135deg, #fff8ef 0%, #fff 58%, #f8f3ed 100%);
  border-bottom: 1px solid #f0e7dc;
}
.hero-grid {
  min-height: 300px;
  display: grid;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  max-width: 820px;
  margin: 12px 0 14px;
  letter-spacing: -0.04em;
}
.subtitle {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.copy {
  max-width: 720px;
  color: var(--muted);
  margin: 0 0 18px;
}
.date-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #efd9c9;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  color: #555;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px 0;
}
.feature-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  transition: 0.18s;
}
.feature-card:hover {
  transform: translateY(-2px);
}
.feature-progress {
  border-top: 4px solid var(--orange);
}
.feature-kbli {
  border-top: 4px solid var(--gold);
  border-color: #d8c7a8;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf8f1;
  color: var(--green);
  font-weight: 900;
  flex: none;
}
.feature-kbli .feature-icon {
  background: #fff7dc;
  color: #9a7210;
}
.feature-card h2 {
  margin: 5px 0 7px;
  font-size: 20px;
}
.feature-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 13px;
}
.feature-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 0 30px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid;
  border-radius: 15px;
  padding: 17px;
  box-shadow: var(--shadow);
}
.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat-card strong {
  display: block;
  font-size: 29px;
  line-height: 1.1;
  margin: 7px 0;
}
.stat-orange {
  border-top-color: var(--orange);
}
.stat-blue {
  border-top-color: var(--blue);
}
.stat-green {
  border-top-color: var(--green);
}
.stat-purple {
  border-top-color: var(--purple);
}
.section {
  padding: 10px 0 50px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 5px 0 0;
  font-size: 25px;
}
.section-head > span {
  font-size: 12px;
  color: var(--muted);
}
.page-heading {
  padding: 40px 0 22px;
}
.page-heading h1 {
  font-size: 32px;
  line-height: 1.1;
  margin: 7px 0;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.breadcrumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumbs a:hover {
  color: var(--orange);
}
.progress-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.progress-intro-copy h2 {
  margin: 5px 0 8px;
}
.progress-intro-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}
.progress-form {
  display: none;
}
.progress-form.is-open {
  display: block;
}
.upload-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.upload-card label,
.filter-grid label,
.stack-form label {
  font-size: 12px;
  font-weight: 800;
  color: #444;
}
.upload-card input,
.upload-card select,
.filter-grid input,
.filter-grid select,
.stack-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #ddd5cc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.upload-card input:focus,
.upload-card select:focus,
.filter-grid input:focus,
.filter-grid select:focus,
.stack-form input:focus {
  border-color: #e8a47d;
  box-shadow: 0 0 0 3px #fff0e8;
}
.upload-card input[readonly] {
  background: #f7f4f0;
  font-weight: 800;
  color: var(--orange);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.7fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.filter-actions {
  display: flex;
  gap: 7px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  background: #fff;
  border: 1px solid #eee7df;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.simple-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.simple-table th,
.simple-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eee7df;
  vertical-align: middle;
  white-space: nowrap;
}
.simple-table th {
  color: #777;
  background: #faf7f3;
}
.table-empty {
  padding: 30px !important;
  color: var(--muted);
  text-align: center !important;
}
.alert {
  margin: 16px 0;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background: #e9f8f0;
  color: #176a46;
  border: 1px solid #c6ead7;
}
.alert-error {
  background: #fff0f0;
  color: #a63b3b;
  border: 1px solid #f0cccc;
}
.alert-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: inherit;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: #8a8a8a;
  font-size: 11px;
  background: #fff;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #fff8ef, #f8f7f4);
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(52, 38, 25, 0.1);
}
.login-logo {
  margin-bottom: 16px;
}
.login-card h1 {
  margin: 7px 0;
  font-size: 28px;
}
.login-card > p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}
.login-foot {
  text-align: center;
  color: #999;
  font-size: 10px;
  margin-top: 20px;
}
.stack-form {
  display: grid;
  gap: 15px;
}
.login-card .alert {
  margin-bottom: 15px;
}
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    grid-column: 1/-1;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }
  .nav-user > span {
    display: none;
  }
  .hero {
    padding: 42px 0 28px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .menu-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 21px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    grid-column: auto;
  }
  .filter-actions .btn {
    flex: 1;
  }
  .chart-wrap {
    height: 270px;
  }
  .simple-table table {
    min-width: 760px;
  }
  .progress-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .progress-intro .btn {
    width: 100%;
  }
  .footer .container {
    width: calc(100% - 28px);
  }
  .login-page {
    padding: 18px;
  }
  .login-card {
    padding: 24px;
  }
}

/* Pemilihan petugas sebelum membuka Progress Harian */
.petugas-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.petugas-select-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.petugas-select-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(92, 45, 20, 0.1);
  border-color: var(--orange2);
}
.petugas-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--orange);
  font-weight: 800;
  flex: 0 0 46px;
}
.petugas-select-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.petugas-select-info strong {
  font-size: 1rem;
}
.petugas-select-info small {
  color: var(--muted);
}
.petugas-select-arrow {
  font-size: 1.35rem;
  color: var(--orange);
  font-weight: 700;
}
.section-desc {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 680px;
}
.selected-petugas-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fff8f1, #fff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  margin-top: 14px;
  margin-bottom: 24px;
}
.selected-petugas-banner h2 {
  margin: 5px 0 3px;
}
.selected-petugas-banner p {
  margin: 0;
  color: var(--muted);
}
.selected-petugas-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.selected-petugas-inline span {
  color: var(--muted);
  font-size: 0.88rem;
}
.selected-petugas-inline strong {
  font-size: 1rem;
}
.selected-petugas-inline small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .petugas-select-grid {
    grid-template-columns: 1fr;
  }
  .selected-petugas-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .selected-petugas-banner .btn {
    width: 100%;
    text-align: center;
  }
}

/* Monitoring Progress Harian pada halaman pemilihan petugas */
.monitoring-section {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
  box-shadow: 0 16px 40px rgba(92, 45, 20, 0.08);
}
.monitoring-section + .petugas-list-section {
  margin-top: 30px;
}
.monitoring-section .monitoring-header {
  padding-bottom: 4px;
}
.monitoring-section .monitoring-grid-two {
  margin-bottom: 0;
}
.monitoring-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}
.monitoring-header h2 {
  font-size: 25px;
  margin: 5px 0 6px;
}
.monitoring-date-badge {
  background: #fff;
  border: 1px solid #efd9c9;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.monitoring-date-badge strong {
  color: var(--orange);
  font-size: 13px;
}
.monitoring-stats {
  padding: 0 0 22px;
}
.monitoring-stats .stat-card {
  min-height: 126px;
}
.monitoring-stats .stat-card small {
  line-height: 1.4;
}
.monitoring-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.compact-head {
  margin-bottom: 12px;
}
.compact-head h3 {
  margin: 5px 0 0;
  font-size: 19px;
}
.monitoring-table {
  max-height: none;
  overflow: visible;
}
.monitoring-table table {
  min-width: 650px;
}
.monitoring-chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.monitoring-chart-wrap {
  height: 340px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.monitoring-empty {
  background: #fff;
  border: 1px dashed #e3d6ca;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
}
.monitoring-empty strong {
  color: var(--ink);
  font-size: 15px;
}
.petugas-list-section {
  padding-top: 12px;
}
@media (max-width: 1000px) {
  .monitoring-grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .monitoring-section {
    margin-top: 20px;
    padding: 20px 16px;
    border-radius: 20px;
  }
  .monitoring-header {
    flex-direction: column;
  }
  .monitoring-date-badge {
    text-align: left;
  }
  .monitoring-chart-card {
    padding: 16px;
  }
  .monitoring-chart-wrap {
    height: 280px;
  }
  .monitoring-stats {
    padding-bottom: 18px;
  }
}

/* Input Progress multi-SLS */
.form-grid-date {
  grid-template-columns: minmax(220px, 360px);
  margin-bottom: 18px;
}
.sls-blocks {
  display: grid;
  gap: 18px;
}
.sls-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #fffaf6;
}
.sls-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.sls-block-head h3 {
  margin: 3px 0 0;
  font-size: 19px;
}
.sls-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.readonly-field {
  display: block;
  padding: 11px 12px;
  border: 1px solid #ddd5cc;
  border-radius: 10px;
  background: #f7f4f0;
  min-height: 67px;
}
.readonly-field span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #444;
}
.readonly-field strong {
  display: block;
  margin-top: 7px;
  color: var(--orange);
}
.btn-add-sls {
  margin-top: 16px;
  border-style: dashed;
  border-color: #e6bda6;
  color: var(--orange);
  background: #fff8f1;
}
.legacy-note {
  display: block;
  margin: 0 0 14px;
}
.sls-total {
  background: #f7f4f0 !important;
  font-weight: 800 !important;
  color: var(--orange) !important;
}
.sls-remove {
  color: #a63b3b;
  border-color: #eccaca;
  background: #fff;
}
.sls-remove:hover {
  background: #fff0f0;
}
.sls-block select,
.sls-block input {
  min-width: 0;
}
/* Ruang aman untuk ikon native kalender/dropdown agar tidak menempel ke tepi field. */
.upload-card input[type="date"],
.upload-card select {
  padding-right: 40px;
}
.sls-block select {
  padding-right: 40px;
}

@media (max-width: 1000px) {
  .sls-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .form-grid-date,
  .sls-form-grid {
    grid-template-columns: 1fr;
  }
  .sls-block {
    padding: 16px;
  }
  .sls-block-head {
    align-items: flex-start;
  }
  .sls-block-head .btn {
    flex: none;
  }
}

/* Rapikan ruang ikon native pada field tanggal dan dropdown. */
.upload-card input[type="date"],
.filter-card input[type="date"] {
  padding-right: 46px;
}
.upload-card input[type="date"]::-webkit-calendar-picker-indicator,
.filter-card input[type="date"]::-webkit-calendar-picker-indicator {
  margin-right: -24px;
  padding: 0px;
  cursor: pointer;
}
.upload-card select,
.filter-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d3a37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px 17px;
}
.upload-card select:focus,
.filter-card select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d94b00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}


.download-dropdown {
  position: relative;
}
.download-dropdown > summary {
  list-style: none;
  cursor: pointer;
}
.download-dropdown > summary::-webkit-details-marker { display: none; }
.download-dropdown[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.download-dropdown-disabled > summary {
  cursor: not-allowed;
  opacity: .55;
}
.download-dropdown-disabled .download-menu {
  display: none !important;
}

.download-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  width: 230px;
  max-height: 300px;
  overflow-y: auto;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.download-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.download-menu a:hover { background: var(--cream); color: var(--orange); }
@media (max-width: 700px) {
  .download-dropdown { width: 100%; }
  .download-dropdown > summary { width: 100%; text-align: center; }
  .download-menu { left: 0; right: auto; width: 100%; }
}

/* Klasemen, filter tanggal, dan aksi laporan */
.section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.rank-badge {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #f3eee9;
  color: #5e554e;
  font-weight: 900;
  font-size: 12px;
}
.rank-badge.rank-1,
.rank-badge.rank-2,
.rank-badge.rank-3 {
  background: var(--cream);
  color: var(--orange);
  border: 1px solid #efd9c9;
}
.ranking-table table {
  min-width: 680px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 14px auto 0;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 800;
}
.pagination-link:hover,
.pagination-link.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.pagination-arrow {
  min-width: 36px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 16px;
}
.pagination-link.is-disabled {
  pointer-events: none;
  opacity: .4;
}
.monitoring-total-row th {
  background: #faf6f1;
  border-top: 2px solid var(--line);
  font-weight: 900;
  color: var(--ink);
}
.monitoring-total-row th:first-child {
  color: var(--orange);
}
.progress-date-filter {
  display: flex;
  align-items: end;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.progress-date-filter label {
  display: block;
  min-width: 220px;
  color: #555;
  font-size: 11px;
  font-weight: 800;
}
.progress-date-filter select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 36px 9px 10px;
  border: 1px solid #ddd5cc;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d3a37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
.progress-date-filter select:focus {
  border-color: #e8a47d;
  box-shadow: 0 0 0 3px #fff0e8;
}
.monitoring-stats-three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .monitoring-stats-three {
    grid-template-columns: repeat(2, 1fr);
  }
  .monitoring-header {
    flex-direction: column;
  }
  .progress-date-filter {
    width: 100%;
  }
  .progress-date-filter label {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .monitoring-stats-three {
    grid-template-columns: 1fr;
  }
  .progress-date-filter {
    display: block;
  }
  .section-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .section-head-actions .btn {
    width: 100%;
  }
}

.login-system-title {
  margin: 7px 0 22px;
}
.login-system-title strong {
  display: block;
  color: var(--orange);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.login-system-title span {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

/* Section 01 & 02 icons */
.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Detail kegiatan & dokumentasi foto per SLS */
.progress-date-filter-page {
  margin-left: auto;
}
.sls-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.sls-activity-grid label {
  display: block;
}
.sls-activity-grid textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  margin-top: 7px;
  resize: vertical;
}
.char-counter {
  display: block;
  margin-top: 5px;
  text-align: right;
  color: #777;
  font-size: 12px;
}
.documentation-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #eadfd5;
  border-radius: 14px;
  background: #fff;
}
.documentation-head {
  margin-bottom: 12px;
}
.documentation-head h4 {
  margin: 3px 0 4px;
  font-size: 17px;
}
.documentation-head p {
  margin: 0;
  color: #777;
  font-size: 12px;
}
.documentation-list,
.new-documentation-list {
  display: grid;
  gap: 10px;
}
.documentation-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #e7ded6;
  border-radius: 12px;
  background: #fffaf6;
}
.new-documentation-row {
  grid-template-columns: 92px minmax(0, 1fr) 110px;
  align-items: end;
}
.documentation-preview {
  width: 92px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ddd5cc;
  border-radius: 9px;
  background: #f7f4f0;
  color: #888;
  font-size: 11px;
}
.documentation-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.documentation-meta {
  min-width: 0;
}
.documentation-meta strong,
.documentation-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.documentation-meta small {
  margin-top: 3px;
  color: #777;
}
.documentation-file-wrap {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  display: block;
}
.documentation-file-wrap input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  box-sizing: border-box;
}
.documentation-remove,
.documentation-delete-existing {
  width: 110px;
  min-width: 110px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a63b3b;
  border-color: #eccaca;
  background: #fff;
  white-space: nowrap;
}
.documentation-remove:hover,
.documentation-delete-existing:hover {
  background: #fff0f0;
}
.btn-add-documentation {
  margin-top: 12px;
  border-style: dashed;
  border-color: #e6bda6;
  color: var(--orange);
  background: #fff8f1;
}

@media (max-width: 900px) {
  .progress-date-filter-page {
    margin-left: 0;
  }
  .sls-activity-grid {
    grid-template-columns: 1fr;
  }
  .new-documentation-row {
    grid-template-columns: 76px minmax(0, 1fr) 100px;
  }
}

@media (max-width: 600px) {
  .documentation-row {
    grid-template-columns: 60px minmax(0, 1fr) 90px;
  }
  .documentation-preview {
    width: 60px;
    height: 54px;
  }
  .documentation-row .documentation-delete-existing,
  .documentation-row .documentation-remove {
    grid-column: auto;
    justify-self: stretch;
  }
  .new-documentation-row {
    grid-template-columns: 60px minmax(0, 1fr) 90px;
    align-items: end;
  }
}

/* Progress input flow & detail modal */
.sls-entry-area {
  display: none;
  margin-top: 18px;
}
.sls-entry-area.is-ready {
  display: block;
}
.progress-input-date-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #eadfd5;
  border-radius: 16px;
  background: #fffaf6;
}
.progress-input-date-card h3 {
  margin: 3px 0 5px;
}
.progress-input-date-card p {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.55;
}
.progress-input-date-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #555;
}
.progress-input-date-label select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 42px 11px 12px;
  border: 1px solid #ddd5cc;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d3a37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px 17px;
  cursor: pointer;
}
.progress-input-date-label select:focus {
  border-color: #e8a47d;
  box-shadow: 0 0 0 3px #fff0e8;
}
.sls-form-grid input[type="time"] {
  cursor: pointer;
  min-height: 42px;
}
.sls-form-grid input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
}
.sls-activity-grid {
  margin-top: 24px;
  gap: 22px;
}
.sls-activity-grid label {
  padding: 16px;
  border: 1px solid #ebe1d8;
  border-radius: 14px;
  background: #fffdfb;
}
.sls-activity-grid .activity-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--ink);
}
.sls-activity-grid textarea {
  margin-top: 0;
  min-height: 125px;
  padding: 13px 14px;
  border: 1px solid #ded6ce;
  border-radius: 11px;
  background: #fff;
  line-height: 1.55;
  box-sizing: border-box;
}
.sls-activity-grid textarea:focus {
  border-color: #e8a47d;
  box-shadow: 0 0 0 3px #fff0e8;
  outline: none;
}
.sls-activity-grid .char-counter {
  margin-top: 8px;
  padding-right: 2px;
}
.action-cell {
  white-space: nowrap;
}
.progress-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.progress-detail-modal.is-open {
  display: block;
}
.progress-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 17, .48);
}
.progress-detail-dialog {
  position: relative;
  width: min(920px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  margin: 6vh auto 0;
  overflow: auto;
  border: 1px solid #eadfd5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 25, 15, .2);
}
.progress-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eee5dd;
  background: rgba(255,255,255,.97);
}
.progress-detail-head h3 {
  margin: 3px 0 0;
}
.modal-close-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd5cc;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.progress-detail-body {
  padding: 20px;
}
.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-summary-grid > div,
.detail-text-grid > div {
  padding: 13px 14px;
  border: 1px solid #ebe1d8;
  border-radius: 12px;
  background: #fffaf6;
}
.detail-summary-grid span,
.detail-text-grid > div > span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.detail-summary-grid strong {
  display: block;
  line-height: 1.4;
}
.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.detail-text-grid p {
  min-height: 80px;
  margin: 0;
  color: #444;
  line-height: 1.6;
  white-space: normal;
}
.detail-documentation {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee5dd;
}
.detail-documentation h4 {
  margin: 3px 0 12px;
}
.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.detail-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ebe1d8;
  border-radius: 12px;
  background: #fffaf6;
}
.detail-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f0ec;
}
.detail-photo-card figcaption {
  padding: 10px;
}
.detail-photo-card figcaption strong,
.detail-photo-card figcaption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-photo-card figcaption strong {
  white-space: nowrap;
}
.detail-photo-card figcaption span {
  margin-top: 4px;
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}
.detail-empty {
  padding: 16px;
  border: 1px dashed #ddd5cc;
  border-radius: 10px;
  color: #777;
  text-align: center;
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .progress-input-date-card,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }
  .detail-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .detail-summary-grid,
  .detail-photo-grid {
    grid-template-columns: 1fr;
  }
  .progress-detail-dialog {
    width: calc(100% - 16px);
    max-height: 94vh;
    margin-top: 3vh;
  }
  .progress-detail-body,
  .progress-detail-head {
    padding: 14px;
  }
  .action-cell .btn {
    margin-bottom: 4px;
  }
}
