@import "pagy.scss";
@import url("https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css");
@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

/* #50: red outline on a form field with a problem (plain inputs and Choices dropdowns) */
/* (Rails wraps the input in .field_with_errors, so match any depth; Choices' own search box has no .border) */
.field-invalid input.border,
.field-invalid textarea.border,
.field-invalid .choices > div:first-child {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}
/* Choices adds a 24px bottom margin; under a field with a problem the message takes that space */
.field-invalid .choices {
  margin-bottom: 0;
}

/* #51: PO form: Choices dropdowns match the other inputs (same height, border, corners).
   choice_controller replaces Choices' inner class with Tailwind classes, so target the first child. */
.po-form .choices {
  margin-top: 0.375rem;
  margin-bottom: 0;
}
.po-form .nested-form-wrapper .choices {
  margin-top: 0;
}
.po-form .choices > div:first-child {
  margin-top: 0;
  min-height: 46px;
  border-color: #d1d5db;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
}
.po-form .choices[data-type*="select-one"] > div:first-child {
  display: flex;
  align-items: center;
}
.po-form .choices__placeholder {
  color: #9ca3af;
  opacity: 1;
}
.po-form .choices__input {
  background: transparent;
  margin-bottom: 0;
}
.po-form .choices__list--multiple .choices__item {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0;
}
.po-form .choices[data-type*="select-multiple"] .choices__button {
  border-left-color: #d1d5db;
  filter: invert(0.6);
}
/* line 1, app/assets/stylesheets/pagy.scss */
.pagy-nav,
.pagy-nav-js {
  @apply flex space-x-2;
}

/* line 6, app/assets/stylesheets/pagy.scss */
.pagy-nav .page a,
.pagy-nav .page.active,
.pagy-nav .page.prev.disabled,
.pagy-nav .page.next.disabled,
.pagy-nav-js .page a,
.pagy-nav-js .page.active,
.pagy-nav-js .page.prev.disabled,
.pagy-nav-js .page.next.disabled {
  @apply block rounded-lg px-3 py-1 text-sm text-gray-500 font-semibold bg-gray-200 shadow-md;
}

/* line 15, app/assets/stylesheets/pagy.scss */
.pagy-nav .page a:hover,
.pagy-nav .page.active:hover,
.pagy-nav .page.prev.disabled:hover,
.pagy-nav .page.next.disabled:hover,
.pagy-nav-js .page a:hover,
.pagy-nav-js .page.active:hover,
.pagy-nav-js .page.prev.disabled:hover,
.pagy-nav-js .page.next.disabled:hover {
  @apply bg-gray-300;
}

/* line 18, app/assets/stylesheets/pagy.scss */
.pagy-nav .page a:active,
.pagy-nav .page.active:active,
.pagy-nav .page.prev.disabled:active,
.pagy-nav .page.next.disabled:active,
.pagy-nav-js .page a:active,
.pagy-nav-js .page.active:active,
.pagy-nav-js .page.prev.disabled:active,
.pagy-nav-js .page.next.disabled:active {
  @apply bg-gray-400 text-white;
}

/* line 23, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.prev.disabled,
.pagy-nav .page.next.disabled,
.pagy-nav-js .page.prev.disabled,
.pagy-nav-js .page.next.disabled {
  @apply text-gray-400 cursor-default;
}

/* line 28, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.prev.disabled:hover,
.pagy-nav .page.next.disabled:hover,
.pagy-nav-js .page.prev.disabled:hover,
.pagy-nav-js .page.next.disabled:hover {
  @apply text-gray-400 bg-gray-200;
}

/* line 31, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.prev.disabled:active,
.pagy-nav .page.next.disabled:active,
.pagy-nav-js .page.prev.disabled:active,
.pagy-nav-js .page.next.disabled:active {
  @apply text-gray-400 bg-gray-200;
}

/* line 36, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.active,
.pagy-nav-js .page.active {
  @apply text-white cursor-default bg-gray-400;
}

/* line 39, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.active:hover,
.pagy-nav-js .page.active:hover {
  @apply text-white bg-gray-400;
}

/* line 42, app/assets/stylesheets/pagy.scss */
.pagy-nav .page.active:active,
.pagy-nav-js .page.active:active {
  @apply bg-gray-400 text-white;
}

/* line 48, app/assets/stylesheets/pagy.scss */
.pagy-combo-nav-js {
  @apply flex max-w-max rounded-full px-3 py-1 text-sm text-gray-500 font-semibold bg-gray-200 shadow-md;
}

/* line 52, app/assets/stylesheets/pagy.scss */
.pagy-combo-nav-js .pagy-combo-input {
  @apply bg-white px-2 rounded-sm;
}

/* line 58, app/assets/stylesheets/pagy.scss */
.pagy-combo-nav-js .page.prev:hover,
.pagy-combo-nav-js .page.next:hover {
  @apply text-gray-800;
}

/* line 61, app/assets/stylesheets/pagy.scss */
.pagy-combo-nav-js .page.prev:active,
.pagy-combo-nav-js .page.next:active {
  @apply text-gray-800;
}

/* line 66, app/assets/stylesheets/pagy.scss */
.pagy-combo-nav-js .page.prev.disabled,
.pagy-combo-nav-js .page.next.disabled {
  @apply text-gray-400 cursor-default;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
