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

/*

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

*/
/*
|==========================================================================
| Data tables
|--------------------------------------------------------------------------
*/

.dataTable-table {
  max-width: 100%;
	width: 100%;
	border-spacing: 0;
	border-collapse: separate;
}

.dataTable-container {
  @apply w-full overflow-x-auto border rounded-lg;
}

[data-sortable='false'] {
  @apply p-4;
}

.dataTable-sorter {
  @apply block pl-4 pr-10 py-4;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 9l4-4 4 4m0 6l-4 4-4-4' /%3E%3C/svg%3E");
}

.asc .dataTable-sorter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
}

.desc .dataTable-sorter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280 '%3E%3Cpath fill-rule='evenodd' d='M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
}

.table-stripe tbody tr:nth-child(even) {
  @apply bg-gray-50;
}

/*
 * Control feature layout
 */
.dataTable-top,
.dataTable-bottom {
  @apply grid gap-5 py-5 font-medium text-sm;
}

.dataTable-selector {
  @apply appearance-none pl-3 pr-7 py-2 mx-1 border border-gray-200 rounded-md cursor-pointer transition-all outline-none text-sm;
  background-position: calc(100% - 4px) 50%;
}

.dataTable-selector:focus {
  @apply border-blue-400 ring ring-blue-300 outline-none;
}

.dataTable-input {
  @apply w-full appearance-none px-3 py-2 border border-gray-200 rounded-md transition-all text-sm bg-gray-100;
  font-family: 'Source Sans Pro','Font Awesome 6 Pro';
  font-weight: 300;
}

.dataTable-input:focus {
  @apply border-blue-400 ring ring-blue-300;
}

.dataTable-pagination-list {
  @apply flex mr-1 pb-10;
}

.dataTable-pagination-list li {
  @apply ml-1;
}

.dataTable-pagination-list a {
  @apply flex w-8 h-8 items-center justify-center text-gray-700 border rounded-md transition-colors;
}

.dataTable-pagination-list a:hover {
  @apply border-blue-400 text-blue-600 bg-blue-50;
}

.dataTable-pagination-list .active a {
  @apply border-gray-600 bg-gray-600 text-white pointer-events-none;
}

.dataTables-empty {
  @apply p-5 text-center;
}

@media (min-width: 640px) {
  .dataTable-top,
  .dataTable-bottom {
    @apply grid-cols-2 justify-between;
  }

  .dataTable-input {
    @apply order-1 w-72;
  }

  .dataTable-dropdown,
  .dataTable-pagination {
    @apply order-1 justify-self-end pl-5;
  }
}

/* styles for DataTables - The above styles for simple datatables */
.dataTable{
  max-width: 100%;
  width: 100% !important;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 0.5rem;
}
.dataTables_wrapper .dataTable th{
  white-space: nowrap !important;
  padding: 16px 40px 16px 16px;
  background-color: #f1f5fa;
  font-weight: 600;
  font-size: 15px;
  /*border-top: 1px solid rgb(226, 232, 240);*/
}
.dataTables_wrapper{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row-reverse;
}
.dataTables_wrapper .dataTable td{
  padding: 16px;
}
.dataTables_wrapper .dataTable td, .dataTables_wrapper .dataTable th{
  border-top: 1px solid rgb(226, 232, 240);
  border-bottom: none;
  white-space: nowrap;

}
.table-container{
  margin: 30px 0;
}
.dataTables_length select{
  margin: 0 10px;
  border: 1px solid rgb(226, 232, 240);
  @apply rounded-md
}
.dataTables_filter input{
  margin: 0 10px;
  border: 1px solid rgb(226, 232, 240);
  @apply rounded-md
}
.flatpickr-input{
  border: 1px solid rgb(226, 232, 240) !important;
}
.dataTables_info{
  order: 1;
}
.dataTables_wrapper .dataTables_filter input{
  width: 280px;
  border-color: rgb(226, 232, 240) !important;
  padding-left: 15px;
}
.dataTables_wrapper .dataTables_length select{
  width: 57px;
  border-color: rgb(226, 232, 240) !important;
}
.dataTable{
  border: none !important;
}
.dataTables_wrapper .dataTables_paginate {
  display: flex;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  @apply border-blue-400 text-blue-600 bg-blue-50;
  background-image: none;
  color: #0284c7 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  display: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: solid 1px rgb(226, 232, 240);
  margin: 0 5px;
  border-radius: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next, .dataTables_wrapper .dataTables_paginate .paginate_button.previous {
  padding: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: #ffffff !important;
  border: none !important;
  background: rgb(71, 85, 105) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
  color: #ffffff !important;
}
table.dataTable thead .sorting {
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 9l4-4 4 4m0 6l-4 4-4-4' /%3E%3C/svg%3E") !important;
}
table.dataTable thead .sorting_asc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
table.dataTable thead .sorting_desc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280 '%3E%3Cpath fill-rule='evenodd' d='M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
@media only screen and (max-width: 640px) {
  .dataTables_wrapper{
    display: block !important;
  }
  .dataTables_wrapper .dataTables_filter input{
    width: 100% !important;
    margin-left: 0px;
  }
  .dataTables_wrapper .dataTables_length {
    text-align: left !important;
  }
  .dataTables_wrapper .dataTables_info {
    text-align: left !important;
  }
  .dataTables_length select {
    margin: 0 4px;
  }
}

/* Nested datatables start */
.dt-hasChild.shown {
  background: #eef9ff;
  border-left: 5px solid #14aaf5;
}
.dt-hasChild.shown td:first-child{
  border-left: 5px solid #14aaf5;
}

.dt-hasChild.shown .fa-chevron-right:before{
  content: "\f107";
}
.dt-hasChild.shown + tr>td {
  padding: 0 !important;
  border-left: 5px solid #14aaf5;
}
/* Nested datatables end */

.sales-history-datatables th{
  text-align: center !important;
}
.sales-history-datatables td{
  padding-right: 40px !important;
  text-align: center !important;
}
#payouts-data-table_wrapper {
  align-items: end;
}
@media only screen and (min-width: 600px){
  #payouts-data-table_wrapper .toolbar{
    margin-right: auto;
    margin-left: 25px;
  }}
#orders-data-table_wrapper{
  align-items: end;
}
@media only screen and (min-width: 600px){
  #payouts-data-table_wrapper .toolbar ,#orders-data-table_wrapper .toolbar{
    margin-right: auto;
    margin-left: 25px;
  }
}
#payouts-data-table_length ,#orders-data-table_length{
  @apply w-4/10 md:w-auto
}
#payouts-data-table_wrapper .toolbar,#orders-data-table_wrapper .toolbar{
  @apply w-6/10 md:w-auto
}
@media only screen and (max-width: 640px){
  #orders-data-table_wrapper{
    display: flex !important;
  }
  #payouts-data-table_wrapper{
    display: flex !important;
  }
  .dataTables_length {
    @apply hidden
  }
}
#payouts-data-table_filter,#orders-data-table_filter{
  @apply w-full md:w-auto
}
#payouts-data-table_filter input, #orders-data-table_filter input, #line-items-data-table_filter input, #tickets_table_filter input {
  font-family: 'Source Sans Pro','Font Awesome 6 Pro' !important;
  font-weight: 300;
  @apply bg-gray-100
}
.table-dropdown-opened {
  position: absolute;
  background-color: white;
}

#custom_variant_filter select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 320 512'%3E%3C!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cstyle%3Esvg%7Bfill:%2337b7f6%7D%3C/style%3E%3Cpath d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E");
  background-size: initial;
}
/* 
|==========================================================================
| Tooltips - based on https://github.com/kazzkiq/balloon.css
|-------------------------------------------------------------------------- 
*/

/*
|=====================================
| Base
|-------------------------------------
*/

[data-tooltip] {
  position: relative;
  font-weight: 500;
}

[data-tooltip] code {
  @apply bg-gray-900;
  box-shadow: none;
  word-break: break-all;
}

[data-tooltip] > * {
  position: relative;
}

[data-tooltip]:before {
  content: '';
  position: absolute;
  left: -12px;
  top: -12px;
  right: -12px;
  bottom: -12px;
}

/*
|=====================================
| Content
|-------------------------------------
*/

[data-tooltip-content] {
  @apply text-xs bg-gray-900;
  position: absolute;
  pointer-events: none;
  border-radius: 5px;
  color: white;
  padding: .8em 1.2em;
  white-space: nowrap;
  opacity: 0;
  z-index: 10;
  position: absolute;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.1s linear, transform 0.1s linear;
}

[data-tooltip-content]:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 12' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd'%3E%3Cpath d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002-4.375 0-10.066-12.002-16.002-12.002z' fill='%23currentColor'/%3E%3C/svg%3E") 0 0/100% auto no-repeat;
}

/*
|=====================================
| Visibility
|-------------------------------------
*/

[data-tooltip-visible=true] [data-tooltip-content] {
  opacity: 1;
  pointer-events: auto;
}

[data-tooltip]:not([data-tooltip-visible=false]):hover [data-tooltip-content], [data-tooltip]:not([data-tooltip-visible=false]):focus [data-tooltip-content], [data-tooltip]:not([data-tooltip-visible=false]):active [data-tooltip-content] {
  opacity: 1;
  pointer-events: auto;
}

[data-tooltip-break] [data-tooltip-content] {
  white-space: pre;
}

[data-tooltip-blunt] [data-tooltip-content] {
  transition: none;
}

/*
|=====================================
| Position
|-------------------------------------
*/

[data-tooltip]:not([data-tooltip-position]) [data-tooltip-content],
[data-tooltip-position=''] [data-tooltip-content],
[data-tooltip-position=up] [data-tooltip-content] {
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate3d(-50%, 10px, 0);
  transform-origin: top;
}

[data-tooltip]:not([data-tooltip-position]) [data-tooltip-content]:before,
[data-tooltip-position=''] [data-tooltip-content]:before,
[data-tooltip-position=up] [data-tooltip-content]:before {
  left: calc(50% - 9px);
  top: 100%;
}

[data-tooltip]:not([data-tooltip-position]):hover [data-tooltip-content], [data-tooltip]:not([data-tooltip-position]):focus [data-tooltip-content], [data-tooltip]:not([data-tooltip-position]):active [data-tooltip-content], [data-tooltip]:not([data-tooltip-position])[data-tooltip-visible=true] [data-tooltip-content],
[data-tooltip-position='']:hover [data-tooltip-content],
[data-tooltip-position='']:focus [data-tooltip-content],
[data-tooltip-position='']:active [data-tooltip-content],
[data-tooltip-position=''][data-tooltip-visible=true] [data-tooltip-content],
[data-tooltip-position=up]:hover [data-tooltip-content],
[data-tooltip-position=up]:focus [data-tooltip-content],
[data-tooltip-position=up]:active [data-tooltip-content],
[data-tooltip-position=up][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(-50%, 0, 0);
}

[data-tooltip-position='up-left'] [data-tooltip-content] {
  left: 0;
  bottom: calc(100% + 12px);
  transform: translate3d(0, 10px, 0);
  transform-origin: top;
}

[data-tooltip-position='up-left'] [data-tooltip-content]:before {
  left: 6px;
  top: 100%;
}

[data-tooltip-position='up-left']:hover [data-tooltip-content], [data-tooltip-position='up-left']:focus [data-tooltip-content], [data-tooltip-position='up-left']:active [data-tooltip-content], [data-tooltip-position='up-left'][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, 0, 0);
}

[data-tooltip-position='up-right'] [data-tooltip-content] {
  right: 0;
  bottom: calc(100% + 12px);
  transform: translate3d(0, 10px, 0);
  transform-origin: top;
}

[data-tooltip-position='up-right'] [data-tooltip-content]:before {
  right: 6px;
  top: 100%;
}

[data-tooltip-position='up-right']:hover [data-tooltip-content], [data-tooltip-position='up-right']:focus [data-tooltip-content], [data-tooltip-position='up-right']:active [data-tooltip-content], [data-tooltip-position='up-right'][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, 0, 0);
}

[data-tooltip-position=down] [data-tooltip-content] {
  left: 50%;
  top: calc(100% + 9px);
  transform: translate3d(-50%, -10px, 0);
}

[data-tooltip-position=down] [data-tooltip-content]:before {
  left: calc(50% - 9px);
  bottom: 100%;
  transform: rotate(180deg);
}

[data-tooltip-position=down]:hover [data-tooltip-content], [data-tooltip-position=down]:focus [data-tooltip-content], [data-tooltip-position=down]:active [data-tooltip-content], [data-tooltip-position=down][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(-50%, 0, 0);
}

[data-tooltip-position='down-left'] [data-tooltip-content] {
  left: 0;
  top: calc(100% + 12px);
  transform: translate3d(0, -10px, 0);
}

[data-tooltip-position='down-left'] [data-tooltip-content]:before {
  left: 6px;
  bottom: 100%;
  transform: rotate(180deg);
}

[data-tooltip-position='down-left']:hover [data-tooltip-content], [data-tooltip-position='down-left']:focus [data-tooltip-content], [data-tooltip-position='down-left']:active [data-tooltip-content], [data-tooltip-position='down-left'][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, 0, 0);
}

[data-tooltip-position='down-right'] [data-tooltip-content] {
  right: 0;
  top: calc(100% + 12px);
  transform: translate3d(0, -10px, 0);
}

[data-tooltip-position='down-right'] [data-tooltip-content]:before {
  right: 6px;
  bottom: 100%;
  transform: rotate(180deg);
}

[data-tooltip-position='down-right']:hover [data-tooltip-content], [data-tooltip-position='down-right']:focus [data-tooltip-content], [data-tooltip-position='down-right']:active [data-tooltip-content], [data-tooltip-position='down-right'][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, 0, 0);
}

[data-tooltip-position=left] [data-tooltip-content] {
  right: calc(100% + 12px);
  top: 50%;
  transform: translate3d(10px, -50%, 0);
}

[data-tooltip-position=left] [data-tooltip-content]:before {
  left: calc(100% - 6px);
  top: calc(50% - 3px);
  transform: rotate(-90deg);
}

[data-tooltip-position=left]:hover [data-tooltip-content], [data-tooltip-position=left]:focus [data-tooltip-content], [data-tooltip-position=left]:active [data-tooltip-content], [data-tooltip-position=left][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, -50%, 0);
}

[data-tooltip-position=right] [data-tooltip-content] {
  left: calc(100% + 12px);
  top: 50%;
  transform: translate3d(-10px, -50%, 0);
}

[data-tooltip-position=right] [data-tooltip-content]:before {
  right: calc(100% - 6px);
  top: calc(50% - 3px);
  transform: rotate(90deg);
}

[data-tooltip-position=right]:hover [data-tooltip-content], [data-tooltip-position=right]:focus [data-tooltip-content], [data-tooltip-position=right]:active [data-tooltip-content], [data-tooltip-position=right][data-tooltip-visible=true] [data-tooltip-content] {
  transform: translate3d(0, -50%, 0);
}

/* ===================================== *
 * Size
 * ------------------------------------- */
 
[data-tooltip-size=small] [data-tooltip-content] {
  white-space: normal;
  width: 80px;
}

[data-tooltip-size=medium] [data-tooltip-content] {
  white-space: normal;
  width: 150px;
}

[data-tooltip-size=large] [data-tooltip-content] {
  white-space: normal;
  width: 260px;
}

[data-tooltip-size=xlarge] [data-tooltip-content] {
  white-space: normal;
  width: 380px;
}

@media screen and (max-width: 768px) {
  [data-tooltip-size=xlarge] [data-tooltip-content] {
    white-space: normal;
    width: 90vw;
  }
}

[data-tooltip-size=fit]:after, [data-tooltip-size="fit"] {
  white-space: normal;
  width: 100%;
}

.dropzone .dz-preview .dz-error-message {
  top: 150px!important;
}

.dz-remove {
  color: red;
  font-weight: bold;
}
/* 
|==========================================================================
| Native form validation
|-------------------------------------------------------------------------- 
*/

/* Valid state */
[data-valid] [required] ~ [data-validation-marker] {
  @apply bg-green-600;
}

/* Invalid state */
[data-invalid] [required] ~ [data-validation-marker] {
  background-color: #DC2626;
}

/* Validation message */
[data-validation-message][data-tooltip] {
  width: 100%;
}

[data-validation-message][data-tooltip] [data-tooltip-content] {
  font-weight: 700;
  background-color: #DC2626;
  @apply shadow-lg;
}

[data-validation-message][data-tooltip] [data-tooltip-content]:before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 12' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd'%3E%3Cpath d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002-4.375 0-10.066-12.002-16.002-12.002z' fill='%23DC2626'/%3E%3C/svg%3E");
}
/*
 * 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;
}
