.simos-kurikulum-shell {
  --sk-navy: #10233f;
  --sk-blue: #1e5a9d;
  --sk-gold: #d6a23a;
  --sk-bg: #eef3f8;
  --sk-card: #ffffff;
  --sk-soft: #f7faff;
  --sk-line: #d9e3ef;
  --sk-ink: #172033;
  --sk-muted: #64748b;
  --sk-green: #08785b;
  --sk-orange: #b45309;
  --sk-red: #b42318;
  --sk-shadow: 0 14px 34px rgba(16, 35, 63, .12);
  background: var(--sk-bg);
  color: var(--sk-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
  margin: 0;
}

.simos-kurikulum-shell *,
.simos-kurikulum-shell *::before,
.simos-kurikulum-shell *::after {
  box-sizing: border-box;
}

.simos-login-notice {
  max-width: 760px;
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid #d9e3ef;
  border-left: 5px solid #d6a23a;
  border-radius: 8px;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
}

.sk-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sk-app-horizontal {
  display: block;
}

.sk-header {
  width: 100%;
  background: var(--sk-navy);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(16, 35, 63, .18);
}

.sk-header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sk-header-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  flex: 0 0 auto;
}

.sk-header-brand small {
  display: block;
  color: #f7d58a;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
  font-size: 11px;
}

.sk-header-brand h1 {
  margin: 2px 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.sk-header-brand p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.sk-header-menu {
  display: grid;
  gap: 4px;
}

.sk-header-menu label {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sk-header-menu select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 10px;
  color: var(--sk-navy);
  font-weight: 800;
  background: #fff;
}

.sk-header-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.sk-header-user span {
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sk-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #10233f 0%, #1e5a9d 72%, #2d70b7 100%);
}

.sk-login-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.sk-login-brand {
  text-align: center;
  margin-bottom: 18px;
}

.sk-login-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 10px;
}

.sk-login-brand small {
  display: block;
  color: var(--sk-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.sk-login-brand h1 {
  margin: 6px 0 4px;
  color: var(--sk-navy);
  font-size: 24px;
  line-height: 1.15;
}

.sk-login-brand p,
.sk-login-note {
  color: var(--sk-muted);
  font-size: 13px;
  margin: 0;
}

.sk-login-form {
  display: grid;
  gap: 12px;
}

.sk-login-form .sk-btn {
  width: 100%;
  margin-top: 4px;
}

.sk-login-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid var(--sk-line);
}

.sk-sidebar {
  background: var(--sk-navy);
  color: #fff;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.sk-brand {
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: 4px 6px 16px;
  margin-bottom: 12px;
}

.sk-brand small {
  display: block;
  color: #f7d58a;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 11px;
}

.sk-brand h1 {
  margin: 8px 0 2px;
  font-size: 28px;
  color: #fff;
}

.sk-brand p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.sk-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255,255,255,.82);
  border: 0;
  border-radius: 8px;
  padding: 11px 10px;
  text-align: left;
  cursor: pointer;
  margin: 3px 0;
  font-weight: 700;
}

.sk-nav button:hover,
.sk-nav button.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.sk-nav button.active {
  box-shadow: inset 4px 0 0 var(--sk-gold);
}

.sk-ico {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.sk-side-note {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

.sk-mobile-nav {
  display: none;
  background: var(--sk-navy);
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sk-mobile-nav select {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px;
  font-weight: 800;
}

.sk-main {
  min-width: 0;
  padding: 20px;
}

.sk-topbar {
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--sk-shadow);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.sk-topbar h2 {
  margin: 0;
  color: var(--sk-navy);
  font-size: 24px;
}

.sk-topbar p {
  margin: 4px 0 0;
  color: var(--sk-muted);
  font-size: 14px;
}

.sk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sk-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--sk-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.sk-btn.secondary {
  background: #eaf1fb;
  color: var(--sk-navy);
  border: 1px solid #cfdbeb;
}

.sk-btn.gold {
  background: var(--sk-gold);
  color: #1d2838;
}

.sk-btn.danger {
  background: var(--sk-red);
}

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

.sk-page {
  display: none;
}

.sk-page.active {
  display: block;
}

.sk-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sk-card {
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  padding: 15px;
  min-height: 104px;
}

.sk-card span {
  display: block;
  color: var(--sk-muted);
  font-size: 13px;
  font-weight: 800;
}

.sk-card strong {
  display: block;
  color: var(--sk-navy);
  font-size: 28px;
  line-height: 1.1;
  margin-top: 7px;
}

.sk-card small {
  display: block;
  color: var(--sk-muted);
  font-size: 12px;
  margin-top: 7px;
}

.sk-panel {
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.sk-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sk-panel h3 {
  margin: 0;
  color: var(--sk-navy);
  font-size: 18px;
}

.sk-desc {
  margin: 3px 0 0;
  color: var(--sk-muted);
  font-size: 13px;
}

.sk-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.sk-tab {
  border: 1px solid var(--sk-line);
  background: #fff;
  color: var(--sk-navy);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sk-tab.active {
  background: var(--sk-navy);
  color: #fff;
  border-color: var(--sk-navy);
}

.sk-sub {
  display: none;
}

.sk-sub.active {
  display: block;
}

.sk-grid2 {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.sk-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sk-field {
  display: grid;
  gap: 5px;
}

.sk-field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--sk-muted);
}

.sk-field input,
.sk-field select,
.sk-field textarea,
.sk-filter input,
.sk-filter select {
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  width: 100%;
  color: var(--sk-ink);
}

.sk-field textarea {
  min-height: 92px;
  resize: vertical;
}

.sk-full {
  grid-column: 1 / -1;
}

.sk-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sk-filter input,
.sk-filter select {
  max-width: 260px;
}

.sk-table-wrap {
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  overflow: auto;
  background: #fff;
}

.sk-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.sk-table th {
  background: var(--sk-navy);
  color: #fff;
  text-align: left;
  padding: 11px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sk-table td {
  padding: 10px 11px;
  border-top: 1px solid var(--sk-line);
  vertical-align: top;
}

.sk-table tr:nth-child(even) td {
  background: #f8fbff;
}

.sk-click {
  color: var(--sk-blue);
  font-weight: 800;
  cursor: pointer;
}

.sk-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sk-ok { background: #e7f7ef; color: var(--sk-green); }
.sk-warn { background: #fff2db; color: var(--sk-orange); }
.sk-bad { background: #fff0f0; color: var(--sk-red); }
.sk-blue { background: #e9f2ff; color: var(--sk-blue); }

.sk-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.sk-step {
  border: 1px solid var(--sk-line);
  border-radius: 8px;
  background: var(--sk-soft);
  padding: 12px;
}

.sk-step b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--sk-gold);
  border-radius: 50%;
  margin-bottom: 7px;
}

.sk-step strong {
  display: block;
  color: var(--sk-navy);
}

.sk-step span {
  display: block;
  color: var(--sk-muted);
  font-size: 12px;
  margin-top: 4px;
}

.sk-schedule {
  min-width: 860px;
  display: grid;
  grid-template-columns: 82px repeat(5, 1fr);
  border-left: 1px solid var(--sk-line);
  border-bottom: 1px solid var(--sk-line);
}

.sk-day,
.sk-slot,
.sk-lesson {
  border-right: 1px solid var(--sk-line);
  border-top: 1px solid var(--sk-line);
  padding: 10px;
  min-height: 70px;
}

.sk-day {
  background: var(--sk-navy);
  color: #fff;
  font-weight: 800;
  min-height: auto;
}

.sk-slot {
  background: #f4f7fb;
  color: var(--sk-navy);
  font-weight: 800;
}

.sk-lesson strong {
  display: block;
  color: var(--sk-navy);
}

.sk-lesson span {
  display: block;
  color: var(--sk-muted);
  font-size: 12px;
  margin-top: 2px;
}

.sk-lesson.conflict {
  background: #fff2db;
  box-shadow: inset 4px 0 0 var(--sk-orange);
}

.sk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,17,34,.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.sk-modal-backdrop.active {
  display: flex;
}

.sk-modal {
  width: min(780px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.26);
}

.sk-modal-head {
  background: var(--sk-navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sk-modal-head h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.sk-modal-body {
  padding: 18px;
}

.sk-detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 14px;
  font-size: 14px;
}

.sk-detail-grid b {
  color: var(--sk-muted);
}

.sk-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--sk-navy);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--sk-shadow);
  display: none;
  z-index: 100000;
  max-width: 340px;
  font-size: 13px;
}

.sk-toast.active {
  display: block;
}

.sk-lock {
  padding: 10px 12px;
  border: 1px solid var(--sk-line);
  border-left: 5px solid var(--sk-gold);
  border-radius: 8px;
  background: #fff8e8;
  margin-bottom: 14px;
  color: var(--sk-ink);
  font-size: 13px;
}

@media (max-width: 980px) {
  .sk-app { display: block; }
  .sk-sidebar { display: none; }
  .sk-mobile-nav { display: block; }
  .sk-app-horizontal { display: block; }
  .sk-app-horizontal .sk-mobile-nav { display: none; }
  .sk-header { grid-template-columns: 1fr; align-items: stretch; position: relative; }
  .sk-header-user { justify-content: space-between; }
  .sk-header-brand h1 { font-size: 18px; }
  .sk-main { padding: 14px; }
  .sk-topbar { align-items: flex-start; flex-direction: column; }
  .sk-actions { justify-content: flex-start; }
  .sk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-grid2 { grid-template-columns: 1fr; }
  .sk-form-grid { grid-template-columns: 1fr; }
  .sk-flow { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .sk-cards { grid-template-columns: 1fr; }
  .sk-detail-grid { grid-template-columns: 1fr; }
}

@media print {
  .sk-sidebar,
  .sk-mobile-nav,
  .sk-actions,
  .sk-tabs,
  .sk-filter,
  .sk-btn,
  .sk-toast,
  .sk-modal-backdrop {
    display: none !important;
  }
  .sk-app { display: block; }
  .sk-main { padding: 0; }
  .sk-topbar,
  .sk-panel,
  .sk-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .sk-page {
    display: block;
    page-break-before: always;
  }
  .sk-page:first-of-type {
    page-break-before: auto;
  }
}
