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

@layer components {
  .menu-link-active {
    @apply bg-repeat-y bg-highlight-l-4-gray-600 dark:bg-highlight-l-4-gray-300;
  }

  .menu-link-active-v3-1 {
    @apply bg-repeat-y bg-highlight-l-4-blue-300;
  }

  .ta-menu-link-active {
    @apply bg-white border-l-4 border-l-gray-600;
  }

  .trix-active {
    @apply bg-blue-50 dark:bg-blue-900/30;
  }

  trix-editor {
    @apply relative z-10 min-h-[300px] prose dark:prose-invert px-2.5 py-1.5 block w-full rounded-b-md border border-gray-300 shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:border-gray-600 dark:shadow-md focus:ring-1 focus:outline-none focus:ring-blue-600 focus:border-blue-600 dark:focus:ring-blue-500 dark:focus:border-blue-500 disabled:cursor-default disabled:opacity-50;
  }
}

.turbo-frame-error {
  @apply dark:text-gray-200;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 999px #fafafa inset !important;
  box-shadow: 0 0 0 999px #fafafa inset !important;
  -webkit-text-fill-color: #18181b !important;
  color: #18181b !important;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active,
.dark textarea:-webkit-autofill,
.dark textarea:-webkit-autofill:hover,
.dark textarea:-webkit-autofill:focus,
.dark textarea:-webkit-autofill:active,
.dark select:-webkit-autofill,
.dark select:-webkit-autofill:hover,
.dark select:-webkit-autofill:focus,
.dark select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 999px #303036 inset !important;
  box-shadow: 0 0 0 999px #303036 inset !important;
  -webkit-text-fill-color: #f4f4f5 !important;
  color: #f4f4f5 !important;
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  margin-left: .4em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
  cursor: pointer;
}
.dark input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(90%);
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(90%);
}

.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(90%);
}

.spreadsheet-cell input {
  border-radius: 0;
  border: none;
  margin: 0;
  box-shadow: none;
}

.spreadsheet-cell select {
  border-radius: 0;
  border: none;
  margin: 0;
  box-shadow: none;
}
::-webkit-scrollbar { width: 8px !important; }
::-webkit-scrollbar-track { background: #fafafa !important; }
::-webkit-scrollbar-thumb { background: #e4e4e7 !important; }
::-webkit-scrollbar-thumb:hover { background: #d4d4d8 !important; }

.scrollbar-track-white::-webkit-scrollbar-track { background: #fff !important; }
.scrollbar-track-blue-500::-webkit-scrollbar-track { background: #3b82f6 !important; }
.scrollbar-track-blue-500::-webkit-scrollbar-thumb { background: #60a5fa !important; }
.scrollbar-track-blue-500::-webkit-scrollbar-thumb:hover { background: #93c5fd !important; }
.dark\:scrollbar-track-gray-750::-webkit-scrollbar-track { background: #fff !important; }
.dark\:scrollbar-track-gray-800::-webkit-scrollbar-track { background: #fff !important; }

.dark ::-webkit-scrollbar-track { background: #0C0C0E !important; }
.dark ::-webkit-scrollbar-thumb { background: #3f3f46 !important; }
.dark ::-webkit-scrollbar-thumb:hover { background: #52525b !important; }
.dark .scrollbar-track-blue-500::-webkit-scrollbar-track { background: #3b82f6 !important; }
.dark .scrollbar-track-blue-500::-webkit-scrollbar-thumb { background: #60a5fa !important; }
.dark .scrollbar-track-blue-500::-webkit-scrollbar-thumb:hover { background: #93c5fd !important; }

.dark .dark\:scrollbar-track-gray-750::-webkit-scrollbar-track { background: #303036 !important; }
.dark .dark\:scrollbar-track-gray-800::-webkit-scrollbar-track { background: #27272a !important; }
.dark .dark\:scrollbar-thumb-gray-400::-webkit-scrollbar-thumb { background: #a1a1aa !important; }
.dark .dark\:scrollbar-thumb-gray-500::-webkit-scrollbar-thumb:hover { background: #71717a !important; }
.simple-calendar {
  .day {}

  .wday-0 {}
  .wday-1 {}
  .wday-2 {}
  .wday-3 {}
  .wday-4 {}
  .wday-5 {}
  .wday-6 {}

  .today {}
  .past {}
  .future {}

  .start-date {}

  .prev-month {}
  .next-month { }
  .current-month {}

  .has-events {}
}
[aria-label][role~="tooltip"] {
  position: relative;
}

[aria-label][role~="tooltip"]::before,
[aria-label][role~="tooltip"]::after {
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  opacity: 0;
  pointer-events: none;
  transition: all var(--tooltip-transition-duration, 0.075s) var(--tooltip-transition-easing, linear) var(--tooltip-transition-delay, 0s);
  position: absolute;
  box-sizing: border-box;
  z-index: 10;
  transform-origin: top;
}

[aria-label][role~="tooltip"]::before {
  background-size: 100% auto !important;
  content: "";
}

[aria-label][role~="tooltip"]::after {
  background: rgba(24, 24, 27, 0.9);
  border-radius: 0.125rem;
  color: #fafafa;
  content: attr(aria-label);
  font-size: var(--tooltip-font-size, 0.75rem);
  font-weight: var(--tooltip-font-weight, normal);
  text-transform: var(--tooltip-text-transform, none);
  line-height: 1rem;
  padding: 0.25em 0.625em;
  white-space: pre;
  box-sizing: content-box;
}

.dark [aria-label][role~="tooltip"]::after {
  background: rgba(250, 250, 250, 0.9);
  border-radius: 0.125rem;
  color: #18181b;
  content: attr(aria-label);
  font-size: var(--tooltip-font-size, 0.75rem);
  font-weight: var(--tooltip-font-weight, normal);
  text-transform: var(--tooltip-text-transform, none);
  line-height: 1rem;
  padding: 0.25em 0.625em;
  white-space: pre;
  box-sizing: content-box;
}


[aria-label][role~="tooltip"]:hover::before,
[aria-label][role~="tooltip"]:hover::after,
[aria-label][role~="tooltip"]:focus::before,
[aria-label][role~="tooltip"]:focus::after {
  opacity: 1;
  pointer-events: auto;
}

/* Position Modifiers */

[role~="tooltip"][data-tooltip-position|="top"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-bottom: 5px;
  transform: translate3d(-50%, 0, 0);
  bottom: 100%;
  left: 50%;
}

.dark [role~="tooltip"][data-tooltip-position|="top"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%28250,%20250,%20250,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-bottom: 5px;
  transform: translate3d(-50%, 0, 0);
  bottom: 100%;
  left: 50%;
}

[role~="tooltip"][data-tooltip-position|="top"]::after {
  margin-bottom: 11px;
  transform: translate3d(-50%, 0, 0);
  bottom: 100%;
  left: 50%;
}

[role~="tooltip"][data-tooltip-position|="top"]:hover::before {
  transform: translate3d(-50%, -5px, 0);
}

[role~="tooltip"][data-tooltip-position="top"]:hover::after {
  transform: translate3d(-50%, -5px, 0);
}

/* Position: Top Left */
[role~="tooltip"][data-tooltip-position="top-left"]::after {
  transform: translate3d(calc(-100% + 16px), 0, 0);
  bottom: 100%;
}

[role~="tooltip"][data-tooltip-position="top-left"]:hover::after {
  transform: translate3d(calc(-100% + 16px), -5px, 0);
}

/* Position: Top Right */
[role~="tooltip"][data-tooltip-position="top-right"]::after {
  transform: translate3d(calc(0% + -16px), 0, 0);
  bottom: 100%;
}

[role~="tooltip"][data-tooltip-position="top-right"]:hover::after {
  transform: translate3d(calc(0% + -16px), -5px, 0);
}

/* Position: Bottom */
[role~="tooltip"][data-tooltip-position|="bottom"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-top: 5px;
  margin-bottom: 0;
  transform: translate3d(-50%, -10px, 0);
  bottom: auto;
  left: 50%;
  top: 100%;
}

.dark [role~="tooltip"][data-tooltip-position|="bottom"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%28250,%20250,%20250,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-top: 5px;
  margin-bottom: 0;
  transform: translate3d(-50%, -10px, 0);
  bottom: auto;
  left: 50%;
  top: 100%;
}

[role~="tooltip"][data-tooltip-position|="bottom"]::after {
  margin-top: 11px;
  transform: translate3d(-50%, -10px, 0);
  top: 100%;
  left: 50%;
}

[role~="tooltip"][data-tooltip-position|="bottom"]:hover::before {
  transform: translate3d(-50%, 0, 0);
}

[role~="tooltip"][data-tooltip-position="bottom"]:hover::after {
  transform: translate3d(-50%, 0, 0);
}

/* Position: Bottom Left */
[role~="tooltip"][data-tooltip-position="bottom-left"]::after {
  transform: translate3d(calc(-100% + 16px), -10px, 0);
  top: 100%;
}

[role~="tooltip"][data-tooltip-position="bottom-left"]:hover::after {
  transform: translate3d(calc(-100% + 16px), 0, 0);
}

/* Position: Bottom Right */
[role~="tooltip"][data-tooltip-position="bottom-right"]::after {
  transform: translate3d(calc(0% + -16px), -10px, 0);
  top: 100%;
}

[role~="tooltip"][data-tooltip-position="bottom-right"]:hover::after {
  transform: translate3d(calc(0% + -16px), 0, 0);
}

/* Position: Left */
[role~="tooltip"][data-tooltip-position="left"]::before,
[role~="tooltip"][data-tooltip-position="left"]::after {
  bottom: auto;
  left: auto;
  right: 100%;
  top: 50%;
  transform: translate3d(10px, -50%, 0);
}

[role~="tooltip"][data-tooltip-position="left"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 18px;
  width: 6px;
  margin-right: 5px;
  margin-bottom: 0;
}

.dark [role~="tooltip"][data-tooltip-position="left"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%28250,%20250,%20250,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 18px;
  width: 6px;
  margin-right: 5px;
  margin-bottom: 0;
}

[role~="tooltip"][data-tooltip-position="left"]::after {
  margin-right: 11px;
}

[role~="tooltip"][data-tooltip-position="left"]:hover::before,
[role~="tooltip"][data-tooltip-position="left"]:hover::after {
  transform: translate3d(0, -50%, 0);
}

/* Position: Right */
[role~="tooltip"][data-tooltip-position="right"]::before,
[role~="tooltip"][data-tooltip-position="right"]::after {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translate3d(-10px, -50%, 0);
}

[role~="tooltip"][data-tooltip-position="right"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 18px;
  width: 6px;
  margin-bottom: 0;
  margin-left: 5px;
}

.dark [role~="tooltip"][data-tooltip-position="right"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%28250,%20250,%20250,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 18px;
  width: 6px;
  margin-bottom: 0;
  margin-left: 5px;
}

[role~="tooltip"][data-tooltip-position="right"]::after {
  margin-left: 11px;
}

[role~="tooltip"][data-tooltip-position="right"]:hover::before,
[role~="tooltip"][data-tooltip-position="right"]:hover::after {
  transform: translate3d(0, -50%, 0);
}

/* Table column */

[role~="tooltip"][data-tooltip-position|="table-column"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-bottom: 5px;
  transform: translate3d(-40%, 0, 0);
  bottom: 100%;
  left: 10%;
}

.dark [role~="tooltip"][data-tooltip-position|="table-column"]::before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%28250,%20250,%20250,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
  height: 6px;
  width: 18px;
  margin-bottom: 5px;
  transform: translate3d(-50%, 0, 0);
  bottom: 100%;
}

[role~="tooltip"][data-tooltip-position|="table-column"]::after {
  margin-bottom: 11px;
  transform: translate3d(-50%, 0, 0);
  bottom: 100%;
}

[role~="tooltip"][data-tooltip-position|="table-column"]:hover::before {
  transform: translate3d(-50%, -5px, 0);
}

[role~="tooltip"][data-tooltip-position="table-column"]:hover::after {
  transform: translate3d(-50%, -5px, 0);
}

/* Size */

[role~="tooltip"][data-tooltip-size="small"]::after {
  white-space: pre;
  width: 80px;
}

[role~="tooltip"][data-tooltip-size="medium"]::after {
  white-space: pre;
  width: 150px;
}

[role~="tooltip"][data-tooltip-size="large"]::after {
  white-space: pre;
  width: 260px;
}
turbo-hidden { display: none; }
[x-cloak] { display: none; }
/*
 * 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.
 *


 */
