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

/*

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

*/

body {
  background-color: #F3F4F6;
}

.filter-card {
  @apply shadow sm:rounded-lg px-6 py-6;
  background-color: white;
}

.link {
  @apply text-indigo-600 hover:text-indigo-900;
}

@media print {
  .no-print {
    display: none;
  }
}

input[type='number'] {
  -moz-appearance: textfield;
}

.price-field {
  @apply focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-8 pr-4 sm:text-sm border-gray-300 rounded-md;
}

.postfixed-field {
  @apply focus:ring-indigo-500 focus:border-indigo-500 block w-full pr-8 pr-4 sm:text-sm border-gray-300 rounded-md;
}

.pagy {
  @apply flex space-x-1 font-semibold text-sm text-gray-500;
  a:not(.gap) {
    @apply block rounded-lg px-3 py-1 bg-gray-200;
    &:hover {
      @apply bg-gray-300;
    }
    &:not([href]) { /* disabled links */
      @apply text-gray-300 bg-gray-100 cursor-default;
    }
    &.current {
      @apply text-white bg-gray-400;
    }
  }
  label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}
