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

@layer base {
  /* Had to go in css like this to avoid mobile half checked look on focus */
  @media (hover: hover) and (pointer: fine) {
    *[data-js='icon_checkbox']:hover{
      @apply bg-blue-50;
    }
  }
  @layer utilities {
    /* Hide scrollbar for Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
   /* Hide scrollbar for IE, Edge and Firefox */
    .no-scrollbar {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
  }
}
  @layer base {

    .prose ol,.prose  ol > li{
      list-style-type: decimal !important;
    }

    .prose ul, .prose ul > li{
      list-style-type: disc !important;
    }
    .prose ul ul, .prose ul ul > li{
      list-style-type: circle !important;
    }

    .prose ul ul{
      margin-top: 0;
      margin-bottom: 0;
    }

    li::marker{
      @apply text-gray-700 !important;
    }

    .prose li{
      padding-left: 0 !important;
    }

    .prose ul, ol{
      margin-bottom: 16px !important;
    }

    .prose-details {
      @apply prose max-w-none mb-10 text-base;
      @apply prose-p:leading-6 prose-li:m-0;
      @apply prose-ul:list-disc prose-ol:list-decimal;
      @apply prose-a:text-blue-400 prose-a:no-underline prose-a:font-normal hover:prose-a:text-blue-600 prose-a:break-words;
      @apply prose-strong:font-medium;
      @apply prose-h3:font-medium prose-h3:ml-0 prose-h3:p-0 prose-h3:text-gray-900 prose-h3:text-[17px];
    }

    .prose-details-sm {
      @apply prose max-w-none mb-10 text-sm;
      @apply prose-p:leading-5 prose-li:m-0;
      @apply prose-ul:list-disc prose-ol:list-decimal;
      @apply prose-a:text-blue-400 prose-a:no-underline prose-a:font-normal hover:prose-a:text-blue-600 prose-a:break-words;
      @apply prose-strong:font-medium;
      @apply prose-h3:font-medium prose-h3:ml-0 prose-h3:p-0 prose-h3:text-gray-900 prose-h3:text-[15px];
    }

  }

  table.admin{
    @apply rounded-md
  }
  table.admin td a, .admin-show a{
    @apply text-gray-500 hover:text-blue-400
  }
  table.admin td.text-right a{
    @apply text-gray-500 hover:border-none hover:text-black
  }

  table.admin td.primary > a{
    @apply text-gray-900 font-medium hover:text-blue-400;
  }
  a{
    @apply text-blue-400 focus:outline-none focus:ring-0 hover:text-blue-600;
  }
  input[type="checkbox"]{
    @apply text-blue-400 border-gray-300 rounded focus:ring-2 focus:ring-offset-1 focus:ring-blue-200 mt-[-2px] mr-[2px];
  }
  input[type="radio"]{
    @apply focus:ring-blue-200 h-4 w-4 text-blue-400 border-gray-300 align-middle inline-block mr-[2px] mt-[-1px];
  }
  input[type=text], input[type=email], input[type=password], input[type=number]{
    @apply appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-300 focus:border-blue-300 sm:text-sm bg-gray-50;
  }
  input[type="text"]:disabled{
    @apply opacity-30;
  }
  input[type="text"]:read-only{
    @apply opacity-30;
  }
  select:disabled{
    @apply opacity-30;
  }
  label{
    @apply block text-sm font-medium text-gray-700 mb-[6px] select-none;
  }
  legend{
    @apply block text-sm font-medium text-gray-700;
  }
  svg.icon{
    @apply w-5 h-5;
  }
  input[name='subtitle_input_field']{
    display: none;
  }
  .green-notice span a{
    @apply text-green-800 underline
  }
  .yellow-notice span a{
    @apply text-yellow-800 underline
  }
  .blue-notice span a{
    @apply text-blue-800 underline
  }
  .card{
    @apply rounded-lg bg-white shadow p-4 text-sm text-gray-600;
  }
  .font-lazy-dog{
    font-family: "Lazy Dog";
  }
  .btn-primary{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-500 hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-white;
  }
  .btn-disabled{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-transparent rounded-md shadow-sm text-sm font-medium text-gray-400 bg-gray-200 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-gray-400;
  }
  .btn-default{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-gray-700;
  }
  .btn-extra{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-transparent rounded-md shadow-sm text-sm font-medium text-blue-600 bg-blue-100 hover:bg-blue-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-gray-700;
  }
  .btn-warning{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-orange-400 hover:bg-orange-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-white;
  }
  .btn-delete{
    @apply justify-center text-center cursor-pointer inline-flex items-center py-2 px-5 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-400 hover:bg-red-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-300 hover:text-white;
  }
  .icon-button-lg{
    @apply border-2 border-gray-200 rounded-md p-3 lg:p-6 hover:bg-gray-50 cursor-pointer text-base text-center text-gray-600
  }
  select{
    @apply mt-0 block w-full pl-3 pr-6 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-300 focus:border-blue-300 sm:text-sm rounded-md bg-gray-50;
  }
  .card select{
    @apply mt-0 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-300 focus:border-blue-300 sm:text-sm rounded-md bg-gray-50;
  }
  a.dotted{
    @apply text-gray-600 border-b-2 border-dotted hover:text-gray-800 hover:border-gray-800 border-gray-400
  }
  th{
    @apply px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider
  }
  td{
    @apply px-4 py-3 whitespace-nowrap text-sm text-gray-500
  }
  textarea{
    @apply appearance-none w-full px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-300 focus:border-blue-300 sm:text-sm;
  }
  .card textarea{
    @apply appearance-none w-full px-3 py-2 border border-gray-300 bg-gray-50 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-300 focus:border-blue-300 sm:text-sm;
  }
  thead th{
    @apply bg-gray-100;
  }
  thead th:first-child{
    @apply rounded-tl-md;
  }
  thead th:last-child{
    @apply rounded-tr-md;
  }
  tbody > tr:hover{
    @apply bg-gray-50
  }
  table{
    @apply divide-y divide-gray-200
  }
  tbody{
    @apply divide-y divide-gray-100
  }
  h1{
    @apply text-3xl font-bold text-gray-900 leading-8 mb-8
  }
  li{
    @apply list-none
  }
}

/* Keep this out of tailwind just to make it less obvious */
#subtitle_input_field {
  display: none;
}

html, body{
  font-size: 100%;
}

ins.diffins, ins.diffmod{
  @apply text-green-700 bg-green-100 no-underline p-[2px]
}

del.diffdel, del.diffmod{
  @apply text-red-700 bg-red-100 no-underline p-[2px]
}
/* BASICS */

.CodeMirror {
  /* Set height, width, borders, and global font properties here */
  font-family: monospace;
  height: 700px !important;
  color: black;
  z-index:0;
  font-size: 12px;
}

/* PADDING */

.CodeMirror-lines {
  padding: 4px 0; /* Vertical padding around content */
}
.CodeMirror pre {
  padding: 0 4px; /* Horizontal padding of content */
}

.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
  background-color: white; /* The little square between H and V scrollbars */
}

/* GUTTER */

.CodeMirror-gutters {
  border-right: 1px solid #ddd;
  background-color: #f3f4f6;
  white-space: nowrap;
}
.CodeMirror-linenumbers {}
.CodeMirror-linenumber {
  padding: 0 3px 0 5px;
  min-width: 20px;
  text-align: right;
  color: #999;
  white-space: nowrap;
}

.CodeMirror-guttermarker { color: black; }
.CodeMirror-guttermarker-subtle { color: #999; }

/* CURSOR */

.CodeMirror-cursor {
  border-left: 1px solid black;
  border-right: none;
  width: 0;
}
/* Shown when moving in bi-directional text */
.CodeMirror div.CodeMirror-secondarycursor {
  border-left: 1px solid silver;
}
.cm-fat-cursor .CodeMirror-cursor {
  width: auto;
  border: 0 !important;
  background: #7e7;
}
.cm-fat-cursor div.CodeMirror-cursors {
  z-index: 1;
}

.cm-animate-fat-cursor {
  width: auto;
  border: 0;
  -webkit-animation: blink 1.06s steps(1) infinite;
  -moz-animation: blink 1.06s steps(1) infinite;
  animation: blink 1.06s steps(1) infinite;
  background-color: #7e7;
}
@-moz-keyframes blink {
  0% {}
  50% { background-color: transparent; }
  100% {}
}
@-webkit-keyframes blink {
  0% {}
  50% { background-color: transparent; }
  100% {}
}
@keyframes blink {
  0% {}
  50% { background-color: transparent; }
  100% {}
}

/* Can style cursor different in overwrite (non-insert) mode */
.CodeMirror-overwrite .CodeMirror-cursor {}

.cm-tab { display: inline-block; text-decoration: inherit; }

.CodeMirror-rulers {
  position: absolute;
  left: 0; right: 0; top: -50px; bottom: -20px;
  overflow: hidden;
}
.CodeMirror-ruler {
  border-left: 1px solid #ccc;
  top: 0; bottom: 0;
  position: absolute;
}

/* DEFAULT THEME */

.cm-s-default .cm-header {color: blue;}
.cm-s-default .cm-quote {color: #090;}
.cm-negative {color: #d44;}
.cm-positive {color: #292;}
.cm-header, .cm-strong {font-weight: bold;}
.cm-em {font-style: italic;}
.cm-link {text-decoration: underline;}
.cm-strikethrough {text-decoration: line-through;}

.cm-s-default .cm-keyword {color: #708;}
.cm-s-default .cm-atom {color: #219;}
.cm-s-default .cm-number {color: #164;}
.cm-s-default .cm-def {color: #00f;}
.cm-s-default .cm-variable,
.cm-s-default .cm-punctuation,
.cm-s-default .cm-property,
.cm-s-default .cm-operator {}
.cm-s-default .cm-variable-2 {color: #05a;}
.cm-s-default .cm-variable-3 {color: #085;}
.cm-s-default .cm-comment {color: #a50;}
.cm-s-default .cm-string {color: #a11;}
.cm-s-default .cm-string-2 {color: #f50;}
.cm-s-default .cm-meta {color: #555;}
.cm-s-default .cm-qualifier {color: #555;}
.cm-s-default .cm-builtin {color: #30a;}
.cm-s-default .cm-bracket {color: #997;}
.cm-s-default .cm-tag {color: #170;}
.cm-s-default .cm-attribute {color: #00c;}
.cm-s-default .cm-hr {color: #999;}
.cm-s-default .cm-link {color: #00c;}

.cm-s-default .cm-error {color: #f00;}
.cm-invalidchar {color: #f00;}

.CodeMirror-composing { border-bottom: 2px solid; }

/* Default styles for common addons */

div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
.CodeMirror-activeline-background {background: #e8f2ff;}

/* STOP */

/* The rest of this file contains styles related to the mechanics of
   the editor. You probably shouldn't touch them. */

.CodeMirror {
  position: relative;
  overflow: hidden;
}

.CodeMirror-scroll {
  overflow: scroll !important; /* Things will break if this is overridden */
  /* 30px is the magic margin used to hide the element's real scrollbars */
  /* See overflow: hidden in .CodeMirror */
  margin-bottom: -30px; margin-right: -30px;
  padding-bottom: 30px;
  height: 100%;
  outline: none; /* Prevent dragging from highlighting the element */
  position: relative;
}
.CodeMirror-sizer {
  position: relative;
  border-right: 30px solid transparent;
}

/* The fake, visible scrollbars. Used to force redraw during scrolling
   before actual scrolling happens, thus preventing shaking and
   flickering artifacts. */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
  position: absolute;
  z-index: 6;
  display: none;
}
.CodeMirror-vscrollbar {
  right: 0; top: 0;
  overflow-x: hidden;
  overflow-y: scroll;
}
.CodeMirror-hscrollbar {
  bottom: 0; left: 0;
  overflow-y: hidden;
  overflow-x: scroll;
}
.CodeMirror-scrollbar-filler {
  right: 0; bottom: 0;
}
.CodeMirror-gutter-filler {
  left: 0; bottom: 0;
}

.CodeMirror-gutters {
  position: absolute; left: 0; top: 0;
  min-height: 100%;
  z-index: 3;
}
.CodeMirror-gutter {
  white-space: normal;
  height: 100%;
  display: inline-block;
  vertical-align: top;
  margin-bottom: -30px;
}
.CodeMirror-gutter-wrapper {
  position: absolute;
  z-index: 4;
  background: none !important;
  border: none !important;
}
.CodeMirror-gutter-background {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 4;
}
.CodeMirror-gutter-elt {
  position: absolute;
  cursor: default;
  z-index: 4;
}
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }

.CodeMirror-lines {
  cursor: text;
  min-height: 1px; /* prevents collapsing before first draw */
}
.CodeMirror pre {
  /* Reset some styles that the rest of the page might have set */
  -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
  border-width: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  white-space: pre;
  word-wrap: normal;
  line-height: inherit;
  color: inherit;
  z-index: 2;
  position: relative;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-variant-ligatures: contextual;
  font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre {
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: normal;
}

.CodeMirror-linebackground {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0;
}

.CodeMirror-linewidget {
  position: relative;
  z-index: 2;
  overflow: auto;
}

.CodeMirror-widget {}

.CodeMirror-rtl pre { direction: rtl; }

.CodeMirror-code {
  outline: none;
}

/* Force content-box sizing for the elements where we expect it */
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

.CodeMirror-measure {
  position: absolute;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.CodeMirror-cursor {
  position: absolute;
  pointer-events: none;
}
.CodeMirror-measure pre { position: static; }

div.CodeMirror-cursors {
  visibility: hidden;
  position: relative;
  z-index: 3;
}
div.CodeMirror-dragcursors {
  visibility: visible;
}

.CodeMirror-focused div.CodeMirror-cursors {
  visibility: visible;
}

.CodeMirror-selected { background: #d9d9d9; }
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
.CodeMirror-crosshair { cursor: crosshair; }
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }

.cm-searching {
  background: #ffa;
  background: rgba(255, 255, 0, .4);
}

/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }

@media print {
  /* Hide the cursor when printing */
  .CodeMirror div.CodeMirror-cursors {
    visibility: hidden;
  }
}

/* See issue #2901 */
.cm-tab-wrap-hack:after { content: ''; }

/* Help users use markselection to safely style text background */
span.CodeMirror-selectedtext { background: none; }
.ui-datepicker{
  background-color: #fff;
  margin-top: 1px;
  padding: 1rem;
  --tw-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
  border-radius: 10px;
  border: 1px solid #eee;
}

.ui-datepicker .ui-datepicker-calendar td a{
  color: #111827;
  font-size: 13px;
}

.ui-datepicker .ui-datepicker-calendar tr > td:hover{
  background-color: #f3f4f6 !important;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-calendar td.ui-state-disabled:hover{
  background-color: #fff;
  cursor: default
}

.ui-datepicker .ui-datepicker-calendar th{
  padding-bottom: 0.25rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.ui-datepicker .ui-datepicker-calendar tr:hover td{
  background-color: #fff;
}

.ui-datepicker .ui-datepicker-calendar td{
  padding: 0.5rem 0rem;
  text-align: center;
  line-height: 1.18rem;
  border-radius: 9999px;
}

.ui-datepicker .ui-datepicker-calendar tr{
  border: none !important;
}

.ui-datepicker th span{
  color: #d1d5db;
  font-size: 11px;
}

.ui-datepicker .ui-datepicker-prev{
  float:left;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-next{
  float:right;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-next::after{
  content: "\2192";
  color: #111827;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev::before{
  content: "\2190";
  cursor: pointer;
  color: #111827;
}

.ui-datepicker .ui-datepicker-next span, .ui-datepicker .ui-datepicker-prev span{
  opacity: 0;
}

.ui-datepicker .ui-datepicker-title{
  text-align: center;
  font-size: 14px;
}

.ui-datepicker td.ui-datepicker-current-day{
  background-color: #3B82F6 !important;
}

.ui-datepicker td.ui-datepicker-today a{
  color: #60a5fa !important;
  font-weight: bolder;
}

.ui-datepicker table tr > td.ui-datepicker-current-day:hover{
  background-color: #4338ca !important;;
}

.ui-datepicker table tr > td.ui-datepicker-current-day a{
  color: #fff !important;
}

.ui-datepicker table tr > td.ui-datepicker-current-day.ui-datepicker-today a{
  color: #dbeafe !important;
}

.ui-datepicker table{
  margin-top: 10px;
}
/*! nouislider - 12.0.0 - 9/14/2018 */
/* Functional styling;
 * These styles are required for noUiSlider to function.
 * You don't need to change these rules to apply your design.
 */
 .noUi-target,
 .noUi-target * {
   -webkit-touch-callout: none;
   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
   -webkit-user-select: none;
   -ms-touch-action: none;
   touch-action: none;
   -ms-user-select: none;
   -moz-user-select: none;
   user-select: none;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
 }
 .noUi-target {
   position: relative;
   direction: ltr;
 }
 .noUi-base,
 .noUi-connects {
   width: 100%;
   height: 100%;
   position: relative;
   z-index: 1;
 }
 /* Wrapper for all connect elements.
  */
 .noUi-connects {
   overflow: hidden;
   z-index: 0;
 }
 .noUi-connect,
 .noUi-origin {
   will-change: transform;
   position: absolute;
   z-index: 1;
   top: 0;
   left: 0;
   height: 100%;
   width: 100%;
   -ms-transform-origin: 0 0;
   -webkit-transform-origin: 0 0;
   transform-origin: 0 0;
 }
 /* Offset direction
  */
 html:not([dir="rtl"]) .noUi-horizontal .noUi-origin {
   left: auto;
   right: 0;
 }
 /* Give origins 0 height/width so they don't interfere with clicking the
  * connect elements.
  */
 .noUi-vertical .noUi-origin {
   width: 0;
 }
 .noUi-horizontal .noUi-origin {
   height: 0;
 }
 .noUi-handle {
   position: absolute;
 }
 .noUi-state-tap .noUi-connect,
 .noUi-state-tap .noUi-origin {
   -webkit-transition: transform 0.3s;
   transition: transform 0.3s;
 }
 .noUi-state-drag * {
   cursor: move !important;
 }
 /* Slider size and handle placement;
  */
 .noUi-horizontal {
   height: 18px;
 }
 .noUi-horizontal .noUi-handle {
   width: 34px;
   height: 28px;
   left: -17px;
   top: -6px;
 }
 .noUi-vertical {
   width: 18px;
 }
 .noUi-vertical .noUi-handle {
   width: 28px;
   height: 34px;
   left: -6px;
   top: -17px;
 }
 html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
   right: -11px;
   left: auto;
 }
 /* Styling;
  * Giving the connect element a border radius causes issues with using transform: scale
  */
 .noUi-target {
   /* background: #FAFAFA; */
   border-radius: 4px;
   border: 1px solid #D3D3D3;
   box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
 }
 .noUi-connects {
   border-radius: 3px;
 }
 .noUi-connect {
   background: #60A5FA;
 }
 /* Handles and cursors;
  */
 .noUi-draggable {
   cursor: ew-resize;
 }
 .noUi-vertical .noUi-draggable {
   cursor: ns-resize;
 }
 .noUi-handle {
   border: 1px solid #D9D9D9;
   border-radius: 3px;
   background: #FFF;
   cursor: ew-resize;
   box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
 }
 .noUi-active {
   box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
 }
 /* Handle stripes;
  */
 .noUi-handle:before,
 .noUi-handle:after {
   content: "";
   display: block;
   position: absolute;
   height: 14px;
   width: 1px;
   background: #E8E7E6;
   left: 14px;
   top: 6px;
 }
 .noUi-handle:after {
   left: 17px;
 }
 .noUi-vertical .noUi-handle:before,
 .noUi-vertical .noUi-handle:after {
   width: 14px;
   height: 1px;
   left: 6px;
   top: 14px;
 }
 .noUi-vertical .noUi-handle:after {
   top: 17px;
 }
 /* Disabled state;
  */
 [disabled] .noUi-connect {
   background: #B8B8B8;
 }
 [disabled].noUi-target,
 [disabled].noUi-handle,
 [disabled] .noUi-handle {
   cursor: not-allowed;
 }
 /* Base;
  *
  */
 .noUi-pips,
 .noUi-pips * {
   -moz-box-sizing: border-box;
   box-sizing: border-box;
 }
 .noUi-pips {
   position: absolute;
   color: #999;
 }
 /* Values;
  *
  */
 .noUi-value {
   position: absolute;
   white-space: nowrap;
   text-align: center;
 }
 .noUi-value-sub {
   color: #ccc;
   font-size: 10px;
 }
 /* Markings;
  *
  */
 .noUi-marker {
   position: absolute;
   background: #ddd;
 }
 .noUi-marker-sub {
   background: #AAA;
 }
 .noUi-marker-large {
   background: #AAA;
 }
 /* Horizontal layout;
  *
  */
 .noUi-pips-horizontal {
   padding: 10px 0;
   height: 80px;
   top: 100%;
   left: 0;
   width: 100%;
 }
 .noUi-value-horizontal {
   -webkit-transform: translate(-50%, 50%);
   transform: translate(-50%, 50%);
 }
 .noUi-rtl .noUi-value-horizontal {
   -webkit-transform: translate(50%, 50%);
   transform: translate(50%, 50%);
 }
 .noUi-marker-horizontal.noUi-marker {
   margin-left: -1px;
   width: 2px;
   height: 5px;
 }
 .noUi-marker-horizontal.noUi-marker-sub {
   height: 10px;
 }
 .noUi-marker-horizontal.noUi-marker-large {
   height: 15px;
 }
 /* Vertical layout;
  *
  */
 .noUi-pips-vertical {
   padding: 0 10px;
   height: 100%;
   top: 0;
   left: 100%;
 }
 .noUi-value-vertical {
   -webkit-transform: translate(0, -50%);
   transform: translate(0, -50%, 0);
   padding-left: 25px;
 }
 .noUi-rtl .noUi-value-vertical {
   -webkit-transform: translate(0, 50%);
   transform: translate(0, 50%);
 }
 .noUi-marker-vertical.noUi-marker {
   width: 5px;
   height: 2px;
   margin-top: -1px;
 }
 .noUi-marker-vertical.noUi-marker-sub {
   width: 10px;
 }
 .noUi-marker-vertical.noUi-marker-large {
   width: 15px;
 }
 .noUi-tooltip {
   display: block;
   position: absolute;
   border: 1px solid #D9D9D9;
   border-radius: 3px;
   background: #fff;
   color: #000;
   padding: 5px;
   text-align: center;
   white-space: nowrap;
 }
 .noUi-horizontal .noUi-tooltip {
   -webkit-transform: translate(-50%, 0);
   transform: translate(-50%, 0);
   left: 50%;
   bottom: 150%;
 }
 .noUi-vertical .noUi-tooltip {
   -webkit-transform: translate(0, -50%);
   transform: translate(0, -50%);
   top: 50%;
   right: 120%;
 }

 .noUi-horizontal{
  height: 8px;
}
.noUi-target{
  border-radius: 4px;
  border: none;
  background: #e7e7e7;
}
.noUi-target .noUi-connects{
  border-radius: 4px;
}

.noUi-target .noUi-handle{
  outline: none;
  border-radius: 22px;
  width: 22px !important;
  height: 22px !important;
  top: -7px !important;
  border: 1px solid #ddd;
  box-shadow: none;
}

.noUi-target .noUi-handle:focus{
  outline: none;
}

.noUi-target .noUi-handle:after{
  display: none;
}

.noUi-target .noUi-handle:before{
  width: 10px;
  height: 10px;
  border-radius: 7px;
  left: 5px;
  top: 5px;
}

.noUi-tooltip{
  color: #fff;
  border-color: #fff;
  border-radius: 6px;
  padding: 3px 10px;
}

.noUi-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  transform: translateX(-50%);
}

.pagination{
  display: inline-block;
  margin-right: 5px;
}

.pagination a, .pagination .current, .pagination .previous_page, .pagination .next_page{
  text-align: center;
  vertical-align: middle;
  border-radius: 9999px;
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #6b7280;
  line-height: 30px;
  font-size: 13px;
  color:#6b7280;
  margin-right: 2px;
}

.pagination a:hover{
  background-color: #f1f5f9;
}

.pagination > em.current{
  background-color: #6b7280;
  font-style: normal;
  color: #fff;
  font-weight: 500px;
}

.pagination .gap{
  color: #6b7280;
}

.pagination .previous_page svg, .pagination .next_page svg{
  margin-top: -3px;
  width: 0.9rem !important;
  height: 0.9rem !important;
}

.pagination .previous_page.disabled, .pagination .next_page.disabled{
  opacity: 0.4;
}

@media only screen and (max-width: 600px) {
  .pagination a, .pagination .current, .pagination .gap{
    display: none
  }
  .pagination .previous_page, .pagination .next_page{
    display: inline-block
  }
}
/* Quill WYSIWYG Editor Component Styles */

/* Toolbar button active states (dynamically applied by Quill) */
.ql-snow.ql-toolbar button.ql-active {
  background: #f1f3f4 !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}

.ql-snow.ql-toolbar button.ql-active svg {
  color: #374151 !important;
}

/* Editor container */
.js-editor {
  height: 650px;
  border: 1px solid #e1e5e9;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-bottom: 0;
}

/* Editor content area */
.js-editor .ql-editor {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  color: rgb(17, 24, 39) !important;
  border-radius: 0 0 8px 8px;
  background-color: rgb(249, 250, 251) !important;
  line-height: 1.69 !important;
}

/* Headers - same size as normal text but bold */
.js-editor .ql-editor h1 {
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.js-editor .ql-editor strong{
  font-weight: 500 !important;
  color: #111827 !important;
}

.js-editor .ql-editor a{
  text-decoration: none !important;
  color: #60A5FA !important;
}
.js-editor .ql-editor a:hover{
  text-decoration: underline !important;
  color: #60A5FA !important;
}

.js-editor .ql-editor p, .js-editor .ql-editor li{
  color: #364153 !important;
}

.ql-editor li.ql-indent-1 > .ql-ui::before {
  content: '\2218' !important;  /* circle character */
}

.ql-editor li.ql-indent-2 > .ql-ui::before {
  content: '\2218' !important;  /* circle character */
}

.ql-editor li.ql-indent-1:not(.ql-direction-rtl){
  padding-left: 3em !important;
}

#markdown-editor {
  border-width: 0 1px 1px 1px !important;
  box-shadow: none !important;
  white-space: pre-wrap !important;
}

/* Lists */
.js-editor .ql-editor ol,
.js-editor .ql-editor ul {
  padding-left: 0.5em !important;
  margin-bottom: 16px !important;
}

/* Paragraphs */
.js-editor .ql-editor p {
  margin-bottom: 14px !important;
}

/* Horizontal rules */
.js-editor .ql-editor hr {
  border: none !important;
  border-top: 1px solid #d6dadf !important;
  margin: 18px 0 24px 0 !important;
  height: 1px !important;
}

/* Spacing adjustments */
.js-editor .ql-editor p + ul,
.js-editor .ql-editor p + ol {
  margin-top: -10px !important;
}

.js-editor .ql-editor hr + p {
  margin-top: -8px !important;
}

/* Link tooltip */
.ql-tooltip {
  background: white !important;
  border: 1px solid #e1e5e9 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  padding: 6px 8px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  min-width: 300px !important;
  align-items: center !important;
}

.ql-tooltip:not(.ql-editing) {
  display: none !important;
}

.ql-tooltip.ql-editing {
  display: flex !important;
}

.ql-tooltip input {
  border: none !important;
  background: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 !important;
  margin-left: 4px !important;
}

.ql-tooltip.ql-editing input{
  padding-left: 6px !important;
  border: 1px solid #ddd !important;
  font-size: 13px !important;
}

.ql-tooltip input::placeholder {
  color: #9ca3af !important;
}

.ql-tooltip .ql-action {
  display: none !important;
}

.ql-tooltip .ql-remove {
  display: none !important;
  margin-left: 6px !important;
  padding: 4px 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  line-height: 1 !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.ql-tooltip.editing-existing-link .ql-remove {
  display: inline-block !important;
}

.ql-tooltip .ql-remove:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") !important;
}

.ql-tooltip .ql-remove::before {
  content: "" !important;
  display: none !important;
}

.ql-tooltip .ql-preview {
  display: none !important;
}

.ql-tooltip::before {
  content: "" !important;
  display: inline-block !important;
  opacity: 0.6;
  margin-left: 4px;
  width: 14px !important;
  height: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  flex-shrink: 0 !important;
}
.select2.select2-container--default .selection .select2-selection, .select2-selection__choice__remove > span{
  color: #3B82F6;
}

.select2.select2-container--default .selection .select2-selection{
  border-radius: 0.375rem;
  border-color: #D1D5DB;
  line-height: 1.9rem;
  padding-top: 0;
  /* padding-bottom: 6px; */
  padding-left: 2px;
  padding-right: 2px;
}

.select2.select2-container--default .selection .select2-selection.select2-selection--multiple{
  line-height: 1.85rem;
}

.select2 .select2-dropdown{
  font-family: "Inter", Arial;
  font-size: 14px;
}

.select2.select2-container .select2-search--inline .select2-search__field{
  margin-top: 0;
  margin-left: 10px;
  height: 23px;
  font-size: 14px;
}

.select2.select2-container--default.select2-container--focus .select2-selection{
  border-color: #eff6ff;
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

.select2.select2-container.select2-container--default .select2-selection{
  font-family: "Inter", Arial;
  font-size: 14px;
  background-color: #f9fafb !important;
}

body.index_view .select2.select2-container.select2-container--default .selection .select2-selection{
  background-color: #fff !important;
}

.select2.select2-container.select2-container--default{
  width: 100% !important;
}

.select2.select2-container--default .select2-selection .select2-selection__choice{
  line-height: 23px;
  border: none;
  background-color: #DBEAFE;
  border-radius: 999px;
  padding-left: 9px;
  padding-right: 3px;
}

.select2.select2-container--default .select2-selection .select2-selection__choice__display{
  font-family: Arial, Helvetica, sans-serif;
  color: #3B82F6;
  font-size: 14px;
  line-height: 1.5rem;
}

.select2.select2-container--default .select2-selection .select2-selection__choice__remove {
    border-right: none;
    float: right;
    display: block;
    position: relative;
    padding: 0 6px 0 2px;
    font-size: 14px;
    line-height: 1.5rem;
    color: #bbb;
}

.select2.select2-container .select2-selection--single{
  height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 2.25rem !important;
  right: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 2.25rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder{
  line-height: 2.25rem !important;
}

.index_view .select2-container--default .select2-selection--single .select2-selection__rendered{
  padding-left: 11px;
}
.index_view .select2-container--default .select2-selection--single .select2-selection__arrow{
  right: 8px;
}

.select2-results__option--selectable{
  font-size: 14px !important;
  color: rgb(75, 85, 99);
}

.select2-container.select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--below{
  margin-top: 0px !important;
}

.select2-container.select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--above{
  margin-top: -2px !important;
}

.select2.select2-container.select2-container--disabled{
  opacity: 40%;
}

.select2.select2-container--disabled.select2-container--focus .select2-selection{
  border-color: #eff6ff;
  box-shadow: auto;
}

.select2.select2-container--default .select2-selection .select2-selection__choice__remove:hover{
  background-color: transparent;
}

.select2-search__field::placeholder{
  color: #9CA3AF;
}

.select2 .select2-selection__placeholder{
  color: #9CA3AF !important;
}

.select2-search--dropdown{
  opacity: 0.2;
  overflow: hidden;
  height: 0px;
  padding: 0;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: none !important;
  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");
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px !important;
  height: 20px !important;
  margin-left: -12px !important;
  margin-top: -10px !important;
  transition: transform 0.2s ease;
}

body .select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg);
}
.tooltip {
  color: white;
  font-size: 13px;
  line-height: 20px;
  white-space: normal;
  max-width: 250px;
  text-align: center;
  border-radius: 4px;
  background: rgba(51,51,51,0.9);
  padding: 7px;
  opacity: 1;
  z-index: 9999;
  position: absolute;
}

.arrow,
.arrow::before {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #333;
}

.arrow {
  visibility: hidden;
  margin-left: -5px;
}

.arrow::before {
  visibility: visible;
  content: '';
  transform: rotate(45deg);
}

.tooltip[data-popper-placement^='top'] > .arrow {
  bottom: -3px;
}

.tooltip[data-popper-placement^='bottom'] > .arrow {
  top: -3px;
}

.tooltip[data-popper-placement^='left'] > .arrow {
  right: -3px;
}

.tooltip[data-popper-placement^='right'] > .arrow {
  left: -3px;
}
.twitter-typeahead{
  width: 100%
}

form .twitter-typeahead .typeahead-selected{
  background-repeat: no-repeat;
  background-size: 60px 30px;
  background-position: 3px;
  padding-left: 75px !important;
}
.typeahead.tt-hint{
  display: none !important;
}

.tt-dropdown-menu{
  background-color: #fff;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
  width: 100%;
}

.tt-suggestion{
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-family: "Inter", Arial;
  font-size: 14px;
}
.tt-suggestion .thumb{
  padding: 10px 5px;
  margin-bottom: 0;
  background-size: 60px 30px;
  background-position: 9px 6px;
  background-repeat: no-repeat;
  padding-left: 80px;
}

form .banner .twitter-typeahead .typeahead-selected, form .banner .tt-suggestion .thumb{
  background-size: 120px 30px;
  padding-left: 135px !important;
}

.tt-suggestion .thumb.no-thumb {
  padding: 10px 10px 10px 15px;
}

.tt-highlight{
  font-weight: bold;
}

.tt-suggestion .thumb:last-child{
  border-bottom: none;
}

.tt-suggestion.tt-cursor .thumb{
  background-color: #f4f4f4;
}

.tt-dropdown-menu p.empty-message{
  padding: 15px;
  margin-bottom: 0;
}
/*
 * 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.
 *


 */
