/* These styles are generated from project.scss. */

[x-cloak] {
  display: none !important;
}

/* Keep crispy-tailwind form controls flat (no rounded corners). */
form [id^="div_id_"] .rounded,
form [id^="div_id_"] .rounded-lg,
form [id^="div_id_"] .rounded-t,
form [id^="div_id_"] .rounded-b,
form [id^="div_id_"] .rounded-l-none,
form [id^="div_id_"] .rounded-r-none {
  border-radius: 0 !important;
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #e5e7eb;
}

.alert-error {
  color: #FF5100;
  background-color: #FFF1EB;
  border-color: #FF5100;
}

.htmx-on-request {
  display: none;
}

.htmx-request .htmx-on-request,
.htmx-request.htmx-on-request {
  display: inline;
}

.htmx-request .htmx-on-idle,
.htmx-request.htmx-on-idle {
  display: none;
}

.export-job-submit.htmx-request {
  cursor: wait;
  color: #6b7280;
}

.portal-shell {
  position: relative;
}

.portal-sidebar {
  z-index: 30;
}

.sidebar-open-button,
.sidebar-close-button {
  display: none;
}

@media (max-width: 1023px) {
  .portal-main {
    margin-left: 0;
  }

  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
  }

  .portal-shell.sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(17, 24, 39, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .sidebar-open-button,
  .sidebar-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
  }

  .sidebar-open-button {
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
  }

  .sidebar-open-button span {
    width: 0.9rem;
    height: 2px;
    border-radius: 9999px;
    background: currentColor;
    font-size: 0;
  }

  .sidebar-close-button {
    font-size: 1.5rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .sidebar-backdrop,
  .sidebar-open-button,
  .sidebar-close-button {
    display: none !important;
  }
}
