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

@layer components {
  body {
    @apply font-nunito text-PrimaryDarkBlue;
  }

  main {
    min-height: calc(100vh - 105px);
  }

  .feltoltesre-var {
    background: #FFC107;
    color: #fff;
  }

  .keszlet-rendben {
    background: #28A745;
    color: #fff;
  }

  .container--small {
    @apply mx-auto max-w-[800px] w-full;
  }

  .container--normal {
    @apply mx-auto max-w-[1000px] w-full;
  }

  .icon {
    display: inline-block;
    fill: currentColor;
    height: 1em;
    line-height: 1;
    position: relative;
    top: -1px;
    vertical-align: middle;
    width: 1em;
  }

  .h2 {
    @apply text-4xl  py-4 leading-none font-light py-2;
  }

  .h3 {
    @apply text-lg sm:text-3xl font-extrabold py-4 leading-10;
  }

  .h4 {
    @apply text-2xl font-bold py-4 leading-7;
  }

  .c-card {
    @apply bg-white rounded-lg p-6 border border-Blue5th;
  }

  .c-modal {
    @apply overflow-y-auto overflow-x-hidden items-center flex top-0 right-0 left-0 z-50 md:inset-0  md:h-full bg-black bg-opacity-60 fixed;
  }

  .c-modal-content--small {
    @apply max-w-[485px] w-full mx-auto; 
  }

  .c-modal-content--normal {
    @apply max-w-[1280px] w-full mx-auto max-h-screen overflow-y-auto sm:max-h-[700px]; 
  }

  .btn-primary {
    @apply border bg-PrimaryDarkBlue text-PrimaryDarkBlue py-3 px-4 rounded-lg text-sm font-bold flex flex-row items-center leading-none cursor-pointer text-white;
  }
  .btn-primary--disabled,
  .btn-primary:disabled {
    @apply bg-Blue2nd pointer-events-none cursor-not-allowed;
  }
  .disabled{
    @apply bg-Blue3rd pointer-events-none;
  }
  .label {
    @apply text-AlmostBlack font-medium text-xs;
  }

  select, .ts-dropdown{
    @apply !text-base;
  }

  .choices,
  .input {
    @apply border border-Blue5th rounded-lg text-sm font-mplus text-AlmostBlack py-2 px-4;
  }

  .input:read-only:not(select) {
    @apply bg-border opacity-50;
  }

  .input--select-mini {
    @apply border border-Blue5th rounded-lg text-sm font-mplus text-AlmostBlack my-1.5 px-2 bg-Blue3rd w-auto text-sm top-0 bottom-0 right-2 absolute flex items-center;
  }

  .input--select-mini--select {
    @apply pr-8;
  }

  .btn-secondary {
    @apply border border-PrimaryDarkBlue text-PrimaryDarkBlue py-2 px-4 rounded-lg text-sm font-bold flex flex-row items-center leading-none cursor-pointer bg-white;
  }

  .link {
    @apply text-PrimaryRed underline text-sm cursor-pointer;
  }

  .table-header {
    @apply bg-Blue3rd  text-PrimaryDarkBlue font-medium text-xs font-mplus;
  }

  .table-row-item {
    @apply bg-white text-AlmostBlack font-mplus text-sm font-medium;
  }
  .table-row-item p{
    @apply font-normal text-PrimaryDarkBlue;
  }
  
  .c-form-step-item {
    @apply flex items-center justify-center w-[32px] h-[32px] rounded-full bg-white text-PrimaryDarkBlue font-bold text-base font-mplus border border-Blue5th shrink-0;
  }

  .c-form-step-item--active {
    @apply  bg-PrimaryDarkBlue text-white border-none;
  }

  .c-checkbox + .c-checkbox__icon .c-checkbox__icon--unchecked {
    display: inline-block;
  }
  
  .c-checkbox + .c-checkbox__icon .c-checkbox__icon--checked {
    display: none;
  }
  
  .c-checkbox:checked + .c-checkbox__icon .c-checkbox__icon--unchecked {
    display: none;
  }
  
  .c-checkbox:checked + .c-checkbox__icon .c-checkbox__icon--checked {
    display: inline-block;
  }
  .select{
    @apply py-1 pl-3 pr-7 border-Blue5th rounded-lg;
  }
  .table-child{
    @apply relative ;
  }

  .sidebar__submenu__item {
    @apply px-2 pt-1.5 pb-1 flex my-0.5 text-sm  w-full;
  }

  .sidebar__submenu__item--active {
    @apply bg-PrimaryRed text-white rounded-lg;
  }

  .btn-radio {
    @apply inline-flex justify-center items-center px-4 py-2 border border-black rounded-md cursor-pointer bg-white text-black;
  }
  
  .btn-radio:hover {
    @apply bg-gray-100;
  }

  .order-status--fos {
    @apply bg-Yellow3rd;
  }

  .order-status--0 {
    @apply bg-Yellow3rd;
  }

  .order-status--visszaigazolasra-var {
    @apply bg-Yellow3rd;
  }

  .order-status--visszaigazolva {
    @apply bg-green2nd;
  }

  .order-status--kiszallitva {
    @apply bg-green3rd;
  }

  .order-status--visszautasitva {
    @apply bg-Yellow3rd;
  }
  
  .btn-radio-active {
    @apply bg-black text-white;
  }
  
  .btn-radio-disabled {
    @apply bg-gray-100 text-gray-500 cursor-not-allowed;
  }

  .hw-combobox__main__wrapper {
    width: 100%;
  }
  
  .hw-combobox__main__wrapper {
    @apply sm:w-[35rem] rounded-full w-80;
  }
  .hw-combobox__handle {
    @apply right-3;
  }
  .hw-combobox__listbox {
    @apply rounded-2xl;
  }

  input:disabled + span {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .choices__input {
    background: none!important;
    margin: 0!important;
    padding: 0!important;
  }

  [data-sidebar-menu-target="menuText"] {
    transition: opacity 0.15s ease-in-out;
  }

  .sidebar__root__item {
    @apply bg-PrimaryLightBlue w-full py-2 px-4 rounded-lg text-PrimaryDarkBlue bg-opacity-80;
  }

  .sidebar__root__item--active .icon{
    @apply !text-PrimaryRed;
  }

  .sidebar__submenu {
    @apply w-[90%] bg-white text-PrimaryDarkBlue py-4 px-2 border rounded-lg border-Blue5th mt-4 mb-2 text-AlmostBlack mx-4;
  }

  .sidebar--collapsed .sidebar__submenu {
    @apply !hidden;
  }

   

  .status-pill {
    @apply rounded-full border border-PrimaryDarkBlue px-4 py-2.5 flex items-center gap-2 bg-white
  }

  .status-pill--active {
    @apply bg-PrimaryDarkBlue text-white px-4;
  }

  .status-pill--completed {
    @apply px-0 pl-4 pr-4
  }

  .pagination-inactive {
    @apply opacity-50 cursor-not-allowed;
  }

  .autocomplete-full .autoComplete_wrapper {
    @apply w-full;
  }

  .autocomplete-full input {
    @apply !w-full;
  }

  .ts-wrapper.single .ts-control {
    @apply border border-Blue5th rounded-lg text-sm font-mplus text-AlmostBlack py-2 px-4;
    
    background-image: none;
    background-color: #fff;
    box-shadow: none;
  }
}


.hw-combobox__main__wrapper {
  width: 100%;
}
/*===============================
=            Choices            =
===============================*/
/* line 26, app/assets/stylesheets/choises.scss */
.choices {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  font-size: 16px;
}

/* line 31, app/assets/stylesheets/choises.scss */
.choices:focus {
  outline: none;
}

/* line 34, app/assets/stylesheets/choises.scss */
.choices:last-child {
  margin-bottom: 0;
}

/* line 37, app/assets/stylesheets/choises.scss */
.choices.is-open {
  overflow: initial;
}

/* line 41, app/assets/stylesheets/choises.scss */
.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input {
  background-color: #eaeaea;
  cursor: not-allowed;
  user-select: none;
}

/* line 46, app/assets/stylesheets/choises.scss */
.choices.is-disabled .choices__item {
  cursor: not-allowed;
}

/* line 51, app/assets/stylesheets/choises.scss */
.choices [hidden] {
  display: none !important;
}

/* line 56, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] {
  cursor: pointer;
}

/* line 58, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__inner {
  padding-bottom: 7.5px;
}

/* line 61, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__input {
  display: block;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #dddddd;
  background-color: #ffffff;
  margin: 0;
}

/* line 69, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__button {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);
  padding: 0;
  background-size: 8px;
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -10px;
  margin-right: 25px;
  height: 20px;
  width: 20px;
  border-radius: 10em;
  opacity: 0.25;
}

/* line 82, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__button:hover, .choices[data-type*='select-one'] .choices__button:focus {
  opacity: 1;
}

/* line 86, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__button:focus {
  box-shadow: 0px 0px 0px 2px #3B3FD8;
}

/* line 90, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'] .choices__item[data-value=''] .choices__button {
  display: none;
}

/* line 93, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one']:after {
  content: '';
  height: 0;
  width: 0;
  border-style: solid;
  border-color: #333333 transparent transparent transparent;
  border-width: 5px;
  position: absolute;
  right: 11.5px;
  top: 50%;
  margin-top: -2.5px;
  pointer-events: none;
}

/* line 106, app/assets/stylesheets/choises.scss */
.choices.is-open[data-type*='select-one']:after {
  border-color: transparent transparent #333333 transparent;
  margin-top: -7.5px;
}

/* line 111, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'][dir='rtl']:after {
  left: 11.5px;
  right: auto;
}

/* line 115, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-one'][dir='rtl'] .choices__button {
  right: auto;
  left: 0;
  margin-left: 25px;
  margin-right: 0;
}

/* line 125, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-multiple'] .choices__inner,
.choices[data-type*='text'] .choices__inner {
  cursor: text;
}

/* line 128, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-multiple'] .choices__button,
.choices[data-type*='text'] .choices__button {
  position: relative;
  display: inline-block;
  margin-top: 0;
  margin-right: -4px;
  margin-bottom: 0;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #2529bb;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);
  background-size: 8px;
  width: 8px;
  line-height: 1;
  opacity: 0.75;
  border-radius: 0;
}

/* line 143, app/assets/stylesheets/choises.scss */
.choices[data-type*='select-multiple'] .choices__button:hover, .choices[data-type*='select-multiple'] .choices__button:focus,
.choices[data-type*='text'] .choices__button:hover,
.choices[data-type*='text'] .choices__button:focus {
  opacity: 1;
}

/* line 150, app/assets/stylesheets/choises.scss */
.choices__inner {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  background-color: #f9f9f9;
  padding: 7.5px 7.5px 3.75px;
  border: 1px solid #dddddd;
  border-radius: 2.5px;
  font-size: 14px;
  min-height: 44px;
  overflow: hidden;
}

/* line 161, app/assets/stylesheets/choises.scss */
.is-focused .choices__inner, .is-open .choices__inner {
  border-color: #b7b7b7;
}

/* line 165, app/assets/stylesheets/choises.scss */
.is-open .choices__inner {
  border-radius: 2.5px 2.5px 0 0;
}

/* line 168, app/assets/stylesheets/choises.scss */
.is-flipped.is-open .choices__inner {
  border-radius: 0 0 2.5px 2.5px;
}

/* line 173, app/assets/stylesheets/choises.scss */
.choices__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* line 179, app/assets/stylesheets/choises.scss */
.choices__list--single {
  display: inline-block;
  padding: 4px 16px 4px 4px;
  width: 100%;
}

/* line 183, app/assets/stylesheets/choises.scss */
[dir='rtl'] .choices__list--single {
  padding-right: 4px;
  padding-left: 16px;
}

/* line 187, app/assets/stylesheets/choises.scss */
.choices__list--single .choices__item {
  width: 100%;
}

/* line 192, app/assets/stylesheets/choises.scss */
.choices__list--multiple {
  display: inline;
}

/* line 194, app/assets/stylesheets/choises.scss */
.choices__list--multiple .choices__item {
  display: inline-block;
  vertical-align: middle;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 3.75px;
  margin-bottom: 3.75px;
  background-color: #3B3FD8;
  border: 1px solid #292ed0;
  color: #ffffff;
  word-break: break-all;
  box-sizing: border-box;
}

/* line 208, app/assets/stylesheets/choises.scss */
.choices__list--multiple .choices__item[data-deletable] {
  padding-right: 5px;
}

/* line 211, app/assets/stylesheets/choises.scss */
[dir='rtl'] .choices__list--multiple .choices__item {
  margin-right: 0;
  margin-left: 3.75px;
}

/* line 215, app/assets/stylesheets/choises.scss */
.choices__list--multiple .choices__item.is-highlighted {
  background-color: #292ed0;
  border: 1px solid #2529bb;
}

/* line 219, app/assets/stylesheets/choises.scss */
.is-disabled .choices__list--multiple .choices__item {
  background-color: #aaaaaa;
  border: 1px solid #919191;
}

/* line 226, app/assets/stylesheets/choises.scss */
.choices__list--dropdown {
  visibility: hidden;
  z-index: 1;
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  overflow: hidden;
  word-break: break-all;
  will-change: visibility;
}

/* line 240, app/assets/stylesheets/choises.scss */
.choices__list--dropdown.is-active {
  visibility: visible;
}

/* line 243, app/assets/stylesheets/choises.scss */
.is-open .choices__list--dropdown {
  border-color: #b7b7b7;
}

/* line 246, app/assets/stylesheets/choises.scss */
.is-flipped .choices__list--dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -1px;
  border-radius: 0.25rem 0.25rem 0 0;
}

/* line 253, app/assets/stylesheets/choises.scss */
.choices__list--dropdown .choices__list {
  position: relative;
  max-height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

/* line 260, app/assets/stylesheets/choises.scss */
.choices__list--dropdown .choices__item {
  position: relative;
  padding: 10px;
  font-size: 14px;
}

/* line 264, app/assets/stylesheets/choises.scss */
[dir='rtl'] .choices__list--dropdown .choices__item {
  text-align: right;
}

@media (min-width: 640px) {
  /* line 268, app/assets/stylesheets/choises.scss */
  .choices__list--dropdown .choices__item--selectable {
    padding-right: 100px;
  }
  /* line 271, app/assets/stylesheets/choises.scss */
  .choices__list--dropdown .choices__item--selectable:after {
    content: attr(data-select-text);
    font-size: 12px;
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  /* line 280, app/assets/stylesheets/choises.scss */
  [dir='rtl'] .choices__list--dropdown .choices__item--selectable {
    text-align: right;
    padding-left: 100px;
    padding-right: 10px;
  }
  /* line 284, app/assets/stylesheets/choises.scss */
  [dir='rtl'] .choices__list--dropdown .choices__item--selectable:after {
    right: auto;
    left: 10px;
  }
}

/* line 290, app/assets/stylesheets/choises.scss */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f2f2f2;
}

/* line 292, app/assets/stylesheets/choises.scss */
.choices__list--dropdown .choices__item--selectable.is-highlighted:after {
  opacity: 0.5;
}

/* line 299, app/assets/stylesheets/choises.scss */
.choices__item {
  cursor: default;
}

/* line 303, app/assets/stylesheets/choises.scss */
.choices__item--selectable {
  cursor: pointer;
}

/* line 307, app/assets/stylesheets/choises.scss */
.choices__item--disabled {
  cursor: not-allowed;
  user-select: none;
  opacity: 0.5;
}

/* line 313, app/assets/stylesheets/choises.scss */
.choices__heading {
  font-weight: 600;
  font-size: 12px;
  padding: 10px;
  border-bottom: 1px solid #f7f7f7;
  color: gray;
}

/* line 321, app/assets/stylesheets/choises.scss */
.choices__button {
  text-indent: -9999px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

/* line 330, app/assets/stylesheets/choises.scss */
.choices__button:focus {
  outline: none;
}

/* line 335, app/assets/stylesheets/choises.scss */
.choices__input {
  display: inline-block;
  vertical-align: baseline;
  background-color: #f9f9f9;
  font-size: 14px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  padding: 4px 0 4px 2px;
}

/* line 345, app/assets/stylesheets/choises.scss */
.choices__input:focus {
  outline: 0;
}

/* line 348, app/assets/stylesheets/choises.scss */
[dir='rtl'] .choices__input {
  padding-right: 2px;
  padding-left: 0;
}

/* line 354, app/assets/stylesheets/choises.scss */
.choices__placeholder {
  opacity: 0.5;
}

/*=====  End of Choices  ======*/
/*
 * 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.
 *


 */
