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

@layer utilities {
  label:has(input.pills:checked) {
    @apply !bg-blue-50 !ring-blue-500 z-10;
  }
}

@layer components {
  .button {
    @apply select-none cursor-pointer inline-flex items-center rounded-md justify-center gap-x-1.5 bg-gray-200 px-3 py-2.5 text-sm font-semibold text-gray-700 shadow-sm hover:bg-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600;
  }

  .button-xs {
    @apply button !text-xs !px-2 !py-1
  }

  .button-primary {
    @apply button bg-blue-600 text-white hover:bg-blue-700 focus-visible:outline-blue-600;
  }

  .button-danger {
    @apply button bg-red-600 text-white hover:bg-red-700 focus-visible:outline-red-600;
  }

  .button-secondary {
    @apply button bg-gray-600 text-white hover:bg-gray-700 focus-visible:outline-gray-600;
  }

  .button-white {
    @apply button bg-white border text-gray-500 hover:bg-gray-50 focus-visible:outline-gray-600;
  }

  .button-dropdown {
    @apply cursor-pointer rounded-md bg-white p-1.5 text-gray-900 hover:bg-gray-50;
  }

  .checkbox {
    @apply cursor-pointer focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 h-4 w-4 text-blue-600 border-gray-300 rounded;
  }

  .link {
    @apply text-blue-600 hover:text-blue-700 hover:underline cursor-pointer;
  }

  .link-dropdown {
    @apply cursor-pointer text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900;
  }

  .link-dropdown-danger {
    @apply link-dropdown text-red-700 hover:bg-red-50 hover:text-red-800 ;
  }

  .link-cancel {
    @apply cursor-pointer text-sm font-medium leading-6 text-gray-600 hover:text-gray-900;
  }

  .link-navigation {
    @apply cursor-pointer text-gray-700 hover:text-blue-600 hover:bg-blue-50 flex gap-x-2 items-center rounded-md p-2 text-sm leading-6 font-semibold;

  }
  .link-navigation.active {
    @apply bg-blue-100 text-blue-600;
  }
  .icon-navigation {
    @apply h-5 w-5 shrink-0 group-hover:text-blue-600 opacity-70;
  }

  .card {
    @apply bg-white border rounded-xl;
  }

  .card-container {
    @apply bg-slate-50 flex-grow w-full p-8;
  }

  .label {
    @apply text-xs font-medium leading-4 uppercase text-gray-500;
  }

  .title {
    @apply text-lg font-semibold text-gray-900;
  }

  .title-secondary {
    @apply text-lg font-medium text-gray-900;
  }

  .title-tertiary {
    @apply font-medium text-gray-500;
  }

  .hint {
    @apply mt-1 text-gray-500 text-xs italic;
  }

  .input {
    @apply rounded appearance-none border border-gray-300 w-full py-2 px-3 bg-white focus:outline-none focus:ring-0 focus:border-blue-500 text-sm leading-6 transition-colors duration-200 ease-in-out;
  }

  .fieldset-hint {
    @apply text-sm text-gray-500 italic mb-7;
  }

  .tab {
    @apply cursor-pointer text-gray-500 px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:text-blue-600 hover:border-blue-500;
  }

  .tab.active {
    @apply text-blue-700 border-blue-600;
  }

  .card-tab {
    @apply inline-flex items-center border-b py-4 px-8 text-sm font-medium;
  }

  .card-tab:not(.active) {
    @apply border-transparent text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-600
  }

  .card-tab.active {
    @apply border-blue-500 text-blue-600 bg-blue-50;
  }

  .tab-icon {
    @apply -ml-0.5 mr-2 h-5 w-5;
  }
  :not(.active) .tab-icon {
    @apply text-gray-400 group-hover:text-gray-500;
  }
  .active .tab-icon {
    @apply !text-blue-400 group-hover:text-blue-500;
  }

  .table-wrapper {
    @apply bg-gray-50 flex-grow inline-block min-w-full align-middle overflow-y-scroll;
  }

  .table-list {
    @apply min-w-full border-separate border-spacing-0;
  }

  .table-header {
    @apply sticky bg-gray-50 top-0 z-10 border-b border-gray-200 bg-opacity-60 text-left text-xs font-medium text-gray-500 uppercase backdrop-blur backdrop-filter py-2 px-3 first:pl-4 first:sm:pl-6 first:lg:pl-8 last:pr-4 last:sm:pr-6 last:lg:pr-8;
  }

  .table-cell {
    @apply border-b border-gray-200 text-sm text-gray-900 py-4 px-3 first:pl-4 first:sm:pl-6 first:lg:pl-8 last:pr-4 last:sm:pr-6 last:lg:pr-8;
  }

  option[value=""] {
    @apply text-gray-400 italic;
  }

  .simple-format p {
    margin-top: 4px;
    margin-bottom: 6px;
  }

  .offline {
    @apply opacity-50 pointer-events-none;
  }

  [title="required"] {
    @apply text-red-500;
  }

   /* PER BRAND STYLE  */

  /* Artrenov */
  .brand-artrenov .bg-primary {
    background: linear-gradient(to left,
    #5D7159 0%,
    #5D7159 100%
    /* #A4805A 100% */
    );
  }

  .brand-artrenov .link-navigation {
    @apply text-green-700 hover:text-green-800 hover:bg-stone-100;
  }

  .brand-artrenov .link-navigation.active {
    @apply bg-stone-100 text-green-800;
  }

  .brand-artrenov .icon-navigation {
    @apply h-5 w-5 shrink-0 group-hover:text-lime-800 opacity-70;
  }

  /* Art Energie */
  .brand-art-energie {
    .bg-primary {
      background: linear-gradient(150deg,
      #0F71B8 0%,
      #0F71B8 100%
        /* #F6A00E 0%,
        #F6A00E 14%,
        #0F71B8 14%,
        #0F71B8 50%,
        #003663 100% */
      );
    }
  }
  .brand-art-energie .link-navigation {
    @apply text-stone-500 hover:text-yellow-500 hover:bg-yellow-50;
  }

  .brand-art-energie .link-navigation.active {
    @apply bg-blue-100 text-blue-600;
  }

  .brand-art-energie .icon-navigation {
    @apply h-5 w-5 shrink-0 group-hover:text-blue-600 opacity-70;
  }

  /* Art et Pose */
  .brand-artetpose .bg-primary {
    background: linear-gradient(to right,
      #E0AB38 0%,
      #E0AB38 25%,
      #AAC928 33%,
      #AAC928 55%,
      #7A9EAF 66%
    );
  }

  .brand-artetpose .link-navigation {
    @apply text-slate-500 hover:text-lime-600 hover:bg-slate-50;
  }

  .brand-artetpose .link-navigation.active {
    @apply bg-slate-100 text-green-800;
  }

  .brand-artetpose .icon-navigation {
    @apply h-5 w-5 shrink-0 group-hover:text-green-600 opacity-70;
  }

  /* Bonne Impression */
  .brand-bonne-impression .bg-primary {
    background: linear-gradient(to left,
      /* #E3221D 0%, */
      #F7AD17 0%,
      #EB6C15 100%
    );
  }
  .brand-bonne-impression .link-navigation {
    @apply text-stone-500 hover:text-red-800 hover:bg-amber-100;
  }

  .brand-bonne-impression .link-navigation.active {
    @apply bg-amber-100 text-red-800;
  }

  .brand-bonne-impression .icon-navigation {
    @apply h-5 w-5 shrink-0 group-hover:text-amber-600 opacity-70;
  }
}
/*
 * 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.
 *


 */
/** https: //cdn.jsdelivr.net/npm/tom-select@2.2.2/dist/css/tom-select.css
 * tom-select.css (v2.2.2)
 * Copyright (c) contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the License at:
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
 * ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 *
 */
:root {
  --ts-pr-clear-button: 0;
  --ts-pr-caret: 0;
  --ts-pr-min: .75rem;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single .ts-control input {
  cursor: pointer;
}

.ts-control {
  padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
}

.ts-wrapper.plugin-drag_drop.multi>.ts-control>div.ui-sortable-placeholder {
  visibility: visible !important;
  background: #f2f2f2 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 0 none !important;
  box-shadow: inset 0 0 12px 4px #fff;
}

.ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
  content: "!";
  visibility: hidden;
}

.ts-wrapper.plugin-drag_drop .ui-sortable-helper {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plugin-checkbox_options .option input {
  margin-right: 0.5rem;
}

.plugin-clear_button {
  --ts-pr-clear-button: 1em;
}

.plugin-clear_button .clear-button {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: calc(8px - 6px);
  margin-right: 0 !important;
  background: transparent !important;
  transition: opacity 0.5s;
  cursor: pointer;
}

.plugin-clear_button.form-select .clear-button,
.plugin-clear_button.single .clear-button {
  right: max(var(--ts-pr-caret), 8px);
}

.plugin-clear_button.focus.has-items .clear-button,
.plugin-clear_button:not(.disabled):hover.has-items .clear-button {
  opacity: 1;
}

.ts-wrapper .dropdown-header {
  position: relative;
  padding: 10px 8px;
  border-bottom: 1px solid #d0d0d0;
  background: #f8f8f8;
  border-radius: 3px 3px 0 0;
}

.ts-wrapper .dropdown-header-close {
  position: absolute;
  right: 8px;
  top: 50%;
  color: #303030;
  opacity: 0.4;
  margin-top: -12px;
  line-height: 20px;
  font-size: 20px !important;
}

.ts-wrapper .dropdown-header-close:hover {
  color: black;
}

.plugin-dropdown_input.focus.dropdown-active .ts-control {
  box-shadow: none;
  border: 1px solid #d0d0d0;
}

.plugin-dropdown_input .dropdown-input {
  border: 1px solid #d0d0d0;
  border-width: 0 0 1px 0;
  display: block;
  padding: 8px 8px;
  box-shadow: none;
  width: 100%;
  background: transparent;
}

.plugin-dropdown_input .items-placeholder {
  border: 0 none !important;
  box-shadow: none !important;
  width: 100%;
}

.plugin-dropdown_input.has-items .items-placeholder,
.plugin-dropdown_input.dropdown-active .items-placeholder {
  display: none !important;
}

.ts-wrapper.plugin-input_autogrow.has-items .ts-control>input {
  min-width: 0;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input {
  flex: none;
  min-width: 4px;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input::-ms-input-placeholder {
  color: transparent;
}

.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control>input::placeholder {
  color: transparent;
}

.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
  display: flex;
}

.ts-dropdown.plugin-optgroup_columns .optgroup {
  border-right: 1px solid #f2f2f2;
  border-top: 0 none;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
  border-right: 0 none;
}

.ts-dropdown.plugin-optgroup_columns .optgroup:before {
  display: none;
}

.ts-dropdown.plugin-optgroup_columns .optgroup-header {
  border-top: 0 none;
}

.ts-wrapper.plugin-remove_button .item {
  display: inline-flex;
  align-items: center;
  padding-right: 0 !important;
}

.ts-wrapper.plugin-remove_button .item .remove {
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  display: inline-block;
  padding: 0 6px;
  border-radius: 0 2px 2px 0;
  box-sizing: border-box;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
  background: none;
}

.ts-wrapper.plugin-remove_button .remove-single {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 23px;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
  font-size: 16px;
  background: #DDD;
  border-radius: 100%;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-wrapper.plugin-remove_button .item.active .remove {
  border-left-color: #cacaca;
}

.ts-wrapper.plugin-remove_button.disabled .item .remove {
  border-left-color: white;
}

.ts-wrapper {
  position: relative;
}

.ts-dropdown,
.ts-control,
.ts-control input {
  color: #303030;
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  font-smoothing: inherit;
}

.ts-control,
.ts-wrapper.single.input-active .ts-control {
  background: #fff;
  cursor: text;
}

.ts-control {
  /* border: 1px solid #d0d0d0; */
  /* padding: 8px 8px; */
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: none;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
}

.ts-wrapper.multi.has-items .ts-control {
  padding: calc(8px - 2px - 0px) 8px calc(8px - 2px - 3px - 0px);
}

.full .ts-control {
  background-color: #fff;
}

.disabled .ts-control,
.disabled .ts-control * {
  cursor: default !important;
}

.focus .ts-control {
  box-shadow: none;
}

.ts-control>* {
  vertical-align: baseline;
  display: inline-block;
}

.ts-wrapper.multi .ts-control>div {
  cursor: pointer;
  margin: 0 3px 3px 0;
  padding: 2px 6px;
  background: #f2f2f2;
  color: #303030;
  border: 0px solid #d0d0d0;
}

.ts-wrapper.multi .ts-control>div.active {
  background: #e8e8e8;
  color: #303030;
  border: 0px solid #cacaca;
}

.ts-wrapper.multi.disabled .ts-control>div,
.ts-wrapper.multi.disabled .ts-control>div.active {
  color: #7d7d7d;
  background: white;
  border: 0px solid white;
}

.ts-control>input {
  flex: 1 1 auto;
  min-width: 7rem;
  display: inline-block !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-indent: 0 !important;
  border: 0 none !important;
  background: none !important;
  line-height: inherit !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  box-shadow: none !important;
}

.ts-control>input::-ms-clear {
  display: none;
}

.ts-control>input:focus {
  outline: none !important;
}

.has-items .ts-control>input {
  margin: 0px 4px !important;
}

.ts-control.rtl {
  text-align: right;
}

.ts-control.rtl.single .ts-control:after {
  left: 15px;
  right: auto;
}

.ts-control.rtl .ts-control>input {
  margin: 0px 4px 0px -2px !important;
}

.disabled .ts-control {
  opacity: 0.5;
  background-color: #fafafa;
}

.input-hidden .ts-control>input {
  opacity: 0;
  position: absolute;
  left: -10000px;
}

.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  border: 1px solid #d0d0d0;
  background: #fff;
  margin: 0.25rem 0 0 0;
  border-top: 0 none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 3px 3px;
}

.ts-dropdown [data-selectable] {
  cursor: pointer;
  overflow: hidden;
}

.ts-dropdown [data-selectable] .highlight {
  background: rgba(125, 168, 208, 0.2);
  border-radius: 1px;
}

.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: 5px 8px;
}

.ts-dropdown .option,
.ts-dropdown [data-disabled],
.ts-dropdown [data-disabled] [data-selectable].option {
  cursor: inherit;
  opacity: 0.5;
}

.ts-dropdown [data-selectable].option {
  opacity: 1;
  cursor: pointer;
}

.ts-dropdown .optgroup:first-child .optgroup-header {
  border-top: 0 none;
}

.ts-dropdown .optgroup-header {
  color: #303030;
  background: #fff;
  cursor: default;
}

.ts-dropdown .active {
  background-color: #f5fafd;
  color: #495c68;
}

.ts-dropdown .active.create {
  color: #495c68;
}

.ts-dropdown .create {
  color: rgba(48, 48, 48, 0.5);
}

.ts-dropdown .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 5px 8px;
}

.ts-dropdown .spinner:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  border: 5px solid #d0d0d0;
  border-color: #d0d0d0 transparent #d0d0d0 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.ts-dropdown-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 200px;
  overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.ts-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
/*
 * 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.
 *


 */
