﻿#snHalamanAPD {
  padding: 8px 0 35px;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  color: #273444;
}

#snHalamanAPD[hidden],
#snHalamanAPD [hidden] {
  display: none !important;
}

.sn-apd-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.sn-apd-heading h2 {
  font-size: 26px;
  margin: 0 0 7px;
}

.sn-apd-heading p {
  margin: 0;
  color: #697889;
}

.sn-apd-heading button {
  background: white;
  border: 1px solid #d5dfe8;
  border-radius: 9px;
  padding: 11px 16px;
  cursor: pointer;
}

.sn-apd-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sn-apd-tabs button {
  padding: 12px 18px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.sn-apd-tabs button.aktif {
  background: #e9f1ff;
  color: #1d4ed8;
  border-color: #93b4ef;
}

.sn-apd-card {
  padding: 24px;
  margin-bottom: 20px;
  background: white;
  border: 1px solid #e0e7ef;
  border-radius: 15px;
}

.sn-apd-card h3 {
  font-size: 18px;
  margin: 0 0 18px;
}

.sn-apd-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sn-apd-site {
  border: 1px solid #d1dbe6;
  background: #fff;
  color: #435369;
  padding: 11px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.sn-apd-site.aktif {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

#apdSiteInfo {
  color: #64748b;
  margin: 14px 0 0;
}

.sn-apd-fields {
  display: grid;
  grid-template-columns: repeat(
    auto-fit, minmax(230px, 1fr)
  );
  gap: 20px;
  margin-bottom: 22px;
}

.sn-apd-fields label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.sn-apd-fields input,
.sn-apd-fields select,
.sn-apd-fields textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cad5e2;
  border-radius: 9px;
  box-sizing: border-box;
  background: white;
  color: #263445;
  font: inherit;
  font-weight: 400;
}

.sn-apd-full {
  grid-column: 1 / -1;
}

.sn-apd-primary {
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  border: 0;
  font-weight: 650;
  cursor: pointer;
}

.sn-apd-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.sn-apd-hasil-cari {
  display: flex;
  flex-direction: column;
  max-height: 190px;
  overflow-y: auto;
  background: white;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
}

.sn-apd-master-item {
  background: white;
  padding: 11px;
  border: 0;
  border-bottom: 1px solid #e5eaf0;
  text-align: left;
  cursor: pointer;
}

.sn-apd-master-item:hover {
  background: #f1f5f9;
}

.sn-apd-table-scroll {
  overflow-x: auto;
}

.sn-apd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1150px;
}

.sn-apd-table th,
.sn-apd-table td {
  border-bottom: 1px solid #e6eaf0;
  text-align: left;
  padding: 13px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.sn-apd-table th {
  background: #f5f8fb;
  color: #526174;
}

#apdPesan {
  font-size: 14px;
  line-height: 1.6;
}

@media(max-width:600px) {
  .sn-apd-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .sn-apd-card {
    padding: 17px;
  }
}
