/*
 * Portal Yayasan v135.
 * Navigasi desktop mengikuti indikator aktif Portal Admin Sekolah:
 * bidang mint, ikon hijau, dan garis hijau di sisi kiri.
 */
@media (min-width: 761px) {
  .foundation-app aside {
    background: #fff !important;
    border-right: 1px solid #e7edf1 !important;
    color: #0f172a !important;
  }

  .foundation-app aside nav {
    gap: 8px !important;
  }

  .foundation-app aside nav button {
    position: relative;
    min-height: 52px !important;
    padding: 9px 12px !important;
    border-radius: 15px !important;
    background: transparent !important;
    color: #526985 !important;
    box-shadow: none !important;
    overflow: visible;
  }

  .foundation-app aside nav button:hover {
    background: #f2faf7 !important;
    color: #047857 !important;
  }

  .foundation-app aside nav button .nav-icon {
    width: 31px;
    height: 31px;
    padding: 6px;
    border-radius: 10px;
    background: #f1f5f9;
    color: inherit;
  }

  .foundation-app aside nav button.active {
    background: #e6f8f2 !important;
    color: #059669 !important;
    box-shadow: none !important;
  }

  .foundation-app aside nav button.active::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 10px;
    width: 4px;
    height: 32px;
    border-radius: 999px;
    background: #10b981;
  }

  .foundation-app aside nav button.active .nav-icon {
    background: #ecfdf5;
    color: #059669;
  }
}

.foundation-section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  scrollbar-width: none;
}

.foundation-section-tabs::-webkit-scrollbar {
  display: none;
}

.foundation-section-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.foundation-section-tabs button.active {
  border-color: #10b981;
  border-left-width: 5px;
  background: #ecfdf5;
  color: #047857;
}

.foundation-attendance-summary-full {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.foundation-attendance-recap-table {
  min-width: 1240px;
}

.payroll-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 18px;
  border-bottom: 1px solid #d1fae5;
  background: #f0fdf8;
}

.payroll-workflow b,
.payroll-workflow span {
  display: block;
}

.payroll-workflow b {
  color: #065f46;
  font-size: 13px;
}

.payroll-workflow span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.payroll-template-apply {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 600px;
}

.payroll-template-apply select {
  flex: 1;
  min-width: 230px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
}

.payroll-template-empty {
  max-width: 540px;
  padding: 10px 12px;
  border: 1px dashed #f59e0b;
  border-radius: 11px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.5;
}

.payroll-template-list {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payroll-template-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
}

.payroll-template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payroll-template-card-head span {
  color: #059669;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payroll-template-card h4,
.payroll-template-card p {
  margin: 0;
}

.payroll-template-card h4 {
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
}

.payroll-template-card p {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.payroll-template-components {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.payroll-template-components div {
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  background: #f8fafc;
}

.payroll-template-components small,
.payroll-template-components b {
  display: block;
}

.payroll-template-components small {
  color: #94a3b8;
  font-size: 9px;
}

.payroll-template-components b {
  margin-top: 4px;
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-template-modal h3 {
  margin: 8px 0 0;
  padding-top: 13px;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .foundation-attendance-summary-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payroll-template-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .foundation-section-tabs {
    margin: 0 0 11px;
  }

  .foundation-section-tabs button {
    min-height: 40px;
    padding: 8px 13px;
  }

  .foundation-attendance-summary-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundation-attendance-controls,
  .payroll-workflow,
  .payroll-template-card-head,
  .payroll-template-apply {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .foundation-attendance-controls > *,
  .payroll-template-apply > * {
    width: 100%;
    min-width: 0;
  }

  .payroll-template-components {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
