/* Screen panels collapse only after a working, accessible trigger is installed. */
@media screen {
  html body .wk-panel-collapsed { display: none !important; }
  html body .wk-panel-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    padding: 18px 20px;
    margin: 0 0 18px;
    border: 1px solid #b9d8eb;
    border-radius: 18px;
    background: #f5fbff;
    color: #16344b;
    box-shadow: 0 3px 12px rgb(15 50 70 / 5%);
    scroll-margin-top: calc(var(--wk-mobile-navbar-height, 80px) + 16px);
  }
  html body .wk-panel-copy { flex: 1 1 180px; min-width: 0; }
  html body .wk-panel-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
  html body .wk-panel-hint { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: #44667c; }
  html body :is(.wk-panel-toggle, .wk-panel-existing-trigger) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #0369a1;
    border-radius: 12px;
    background: #0369a1;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 4px 10px rgb(3 105 161 / 15%);
  }
  html body :is(.wk-panel-toggle, .wk-panel-existing-trigger):hover { background: #075985; }
  html body :is(.wk-panel-toggle, .wk-panel-existing-trigger, .wk-panel-action):focus-visible,
  html body .wk-panel-native > summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 4px; }
  html body .wk-panel-toggle-icon { font-size: 23px; line-height: 1; }
  html body .wk-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  html body .wk-panel-action {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #92b7ca;
    border-radius: 11px;
    background: #fff;
    color: #174562;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  html body .wk-panel-action:disabled { opacity: .55; cursor: wait; }
  html body .wk-panel-native > summary { cursor: pointer; padding: 14px 16px; border: 1px solid #9cc9e3; border-radius: 12px; }
  html body .wk-panel-native:not([open]) > :not(summary) { display: none !important; }
  html body .wk-panel-native-label { display: inline-block; padding: 8px 12px; margin: 5px 0 5px 12px; border-radius: 9px; background: #0369a1; color: white; font-size: 15px; font-weight: 700; }
  html body .wk-panel-managed { scroll-margin-top: calc(var(--wk-mobile-navbar-height, 80px) + 16px); }
  html body #absensiPageContainer #setupPanelNotice:not(.hidden) { display: block !important; }
  html body #setupPanel.hidden { display: none !important; }
  html body .builder-grid:has(> #controlPanel.wk-panel-collapsed),
  html body main.page:has(> .control-panel.wk-panel-collapsed) { grid-template-columns: minmax(0, 1fr); }
  html body #daftar:has(~ #form.wk-panel-collapsed),
  html body #form.wk-panel-collapsed ~ #daftar { grid-column: 1 / -1; }
}
@media screen and (max-width: 600px) {
  html body .wk-panel-bar { padding: 16px; gap: 12px; border-radius: 15px; }
  html body .wk-panel-toggle { width: 100%; }
  html body .wk-panel-actions { width: 100%; }
  html body .wk-panel-action { flex: 1 1 auto; }
  html body .wk-panel-title { font-size: 18px; }
  html body .wk-panel-native-label { margin-left: 0; }
}
@media print {
  .wk-panel-bar, .wk-panel-native-label { display: none !important; }
  /* The original document's print rules own the form and paper visibility. */
}
