@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
}

.btn {
  @apply bg-primary hover:bg-primary/90 focus:ring-primary inline-flex w-full items-center justify-center rounded-md border border-transparent px-6 py-2.5 text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 sm:text-base;
}

.form {
  @apply grid grid-cols-1 gap-y-4 sm:gap-y-6;
}

.label {
  @apply block text-sm font-medium text-gray-700;
}

.input-group {
  @apply mt-1;
}

.input {
  @apply focus:border-primary/50 focus:ring-primary/20 block w-full rounded-md border-gray-300 py-1.5 shadow-sm focus:ring;
}

.input.is-invalid {
  @apply focus:border-primary/50 border-red-700 text-red-900;
}

.hint {
  @apply mt-2 text-sm text-gray-500;
}

.error {
  @apply mt-2 text-xs text-red-700 sm:text-sm;
}

.checkbox {
  @apply text-primary focus:border-primary/50 focus:ring-primary/20 rounded border-gray-300 shadow-sm focus:ring focus:ring-offset-0;
}

.btn-secondary {
  @apply focus:ring-primary/50 inline-flex items-center rounded-full border border-gray-300 bg-white px-4 py-2 text-xs font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 sm:text-sm;
}

.btn-icon {
  @apply focus:ring-primary/50 flex items-center rounded-full bg-white text-sm text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 sm:text-base;
}

.menu {
  @apply absolute right-0 z-10 mt-2 w-56 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none;
}

.menu-item {
  @apply block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900;
}

input[type="hidden"] {
  border: 0 !important;
}

.link {
  @apply text-primary no-underline hover:underline;
}

.day {
  @apply relative min-h-[60px] px-3 py-2;
}

.day.prev-month,
.day.next-month {
  @apply hidden bg-gray-50 text-gray-500 lg:block;
}

.day.current-month {
  @apply bg-white;
}

.day.today .date {
  @apply bg-primary flex h-6 w-6 items-center justify-center rounded-full font-semibold text-white;
}
/*
 * 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.
 *


 */

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

.field-unit__label {
  width: calc(20% - 1rem);
}

.form-actions {
  margin-left: calc(20% + 2rem);
}
