@scope (.ss600-legacy-slot) {
/* ss538-homeroom.css */
:scope {
  font-family: Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243247;
  background: #f3f6fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.ss538-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 50px;
}

.ss538-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ss538-header h1 {
  margin: 10px 0 5px;
  font-size: clamp(24px, 3vw, 34px);
}

.ss538-header p,
.ss538-muted,
.ss538-footer {
  color: #66758b;
}

.ss538-back {
  color: #2159a4;
  text-decoration: none;
  font-weight: 600;
}

.ss538-brand {
  background: #e8effb;
  color: #235293;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.ss538-card {
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 17px;
  padding: 23px;
  margin-bottom: 18px;
  box-shadow: 0 5px 20px rgba(32, 54, 85, .04);
}

.ss538-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ss538-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.ss538-filters input,
.ss538-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd6e5;
  border-radius: 9px;
  background: #fff;
  padding: 9px 11px;
  color: #243247;
}

.ss538-message {
  background: #eaf2ff;
  color: #244d87;
  padding: 13px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  line-height: 1.5;
}

.ss538-message[data-type="error"] {
  background: #fff1ef;
  color: #9b2924;
}

.ss538-message[data-type="success"] {
  background: #edf8ef;
  color: #21633b;
}

.ss538-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ss538-section-head h2 {
  margin: 0;
  font-size: 19px;
}

.ss538-section-head p {
  margin: 7px 0 0;
}

.ss538-summary {
  padding: 12px 15px;
  background: #f1f5fa;
  border-radius: 9px;
  font-weight: 650;
}

.ss538-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
}

.ss538-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
}

.ss538-table-wrap th,
.ss538-table-wrap td {
  padding: 13px 12px;
  border-bottom: 1px solid #e9eef5;
  text-align: left;
  vertical-align: middle;
}

.ss538-table-wrap th {
  background: #f6f8fc;
  font-size: 13px;
}

.ss538-table-wrap td:first-child {
  width: 60px;
}

.ss538-status,
.ss538-note {
  border: 1px solid #cbd6e5;
  background: #fff;
  border-radius: 8px;
  min-height: 39px;
  padding: 8px 10px;
  width: 100%;
}

.ss538-status {
  min-width: 130px;
}

.ss538-note {
  min-width: 220px;
}

.ss538-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.ss538-primary,
.ss538-secondary {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 650;
}

.ss538-primary {
  background: #2462ad;
  color: white;
}

.ss538-secondary {
  background: #eaf0f7;
  color: #294b75;
}

.ss538-footer {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 22px;
}

@media (max-width: 850px) {
  .ss538-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss538-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ss538-primary {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .ss538-shell {
    padding: 16px 12px 36px;
  }

  .ss538-card {
    padding: 15px;
  }

  .ss538-filters {
    grid-template-columns: 1fr;
  }

  .ss538-brand {
    display: none;
  }

  .ss538-section-head {
    flex-direction: column;
  }
}

/* ss540-piket-report.css */
:scope {
  font-family: Inter, system-ui, sans-serif;
  color: #27364b;
  background: #f3f6fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
.ss540-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 48px;
}
.ss540-header { margin-bottom: 24px; }
.ss540-header h1 {
  margin: 14px 0 8px;
  font-size: clamp(23px, 3vw, 32px);
}
.ss540-header p, .ss540-muted {
  color: #66768b;
  line-height: 1.6;
}
.ss540-back {
  color: #215aa4;
  font-weight: 650;
  text-decoration: none;
}
.ss540-card {
  background: white;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  margin: 17px 0;
  padding: 21px;
}
.ss540-card h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.ss540-message {
  padding: 13px 16px;
  border-radius: 9px;
  background: #e8f1ff;
  color: #244e87;
}
.ss540-message[data-type="error"] {
  background: #fff0ef;
  color: #962b28;
}
.ss540-message[data-type="success"] {
  background: #eaf7ed;
  color: #24623b;
}
.ss540-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
}
.ss540-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}
.ss540-filters select,
.ss540-filters input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: white;
  min-height: 43px;
}
.ss540-filter-action button {
  border: 0;
  background: #2863ab;
  color: white;
  padding: 11px 17px;
  border-radius: 8px;
  min-height: 43px;
  font-weight: 650;
  cursor: pointer;
}
.ss540-filter-action button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.ss540-scroll { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 590px;
}
th, td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
}
th {
  background: #f5f8fc;
  font-size: 13px;
}
.ss540-empty {
  color: #718096;
  padding: 20px 12px;
}
footer { margin-top: 26px; font-size: 13px; }
@media (max-width: 780px) {
  .ss540-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .ss540-page { padding: 16px 12px; }
  .ss540-card { padding: 14px; }
  .ss540-filters { grid-template-columns: 1fr; }
}

}
