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

.turbo-progress-bar {
  height: 5px;
  background-color: #ea580c; /* orange-600 */
}

@layer components {

  .title{
    @apply text-2xl font-bold leading-10 tracking-tight text-orange-300  mb-3
  }

  .secondary-title{
    @apply text-xl font-bold leading-10 tracking-tight text-blue-marine mb-3 md:text-2xl
  }

  .sub_title{
    @apply text-xl font-bold leading-10 tracking-tight text-orange-300  mb-2
  }
  .header_link {
    @apply    block py-2 pr-4 pl-3 p-0 
              text-white         
              hover:text-orange-300      
              border-gray-700    
              hover:bg-gray-700   border-0    
              hover:bg-transparent    
  }  

  .input_field  {
    @apply    block p-2.5 w-full placeholder-gray-400 text-gray-800 rounded-lg border border-orange-300 bg-stone-200 sm:text-sm;
    &:focus{
      @apply border-orange-300  ring-orange-300 
    }
    
    &:disabled {
      @apply text-gray-400 bg-gray-200 border-gray-300;
    }       
  }

  .input_label {
    @apply  mb-2 block text-sm font-medium text-slate-800 
  }

  
  .main_button {
    @apply bg-orange-300   w-full rounded-lg px-5 py-2.5 text-center text-base font-medium  text-slate-800

    /*&:focus{
      @apply ring-primary-300  outline-none ring-4
    }*/

    /*&:hover {
      @apply bg-primary-700
    }*/
  }  
  .secondary_button {
    @apply bg-gray-300   w-full rounded-lg px-5 py-2.5 text-center text-base font-medium  text-slate-800  
  }  

  .main_text {
    @apply text-sm font-light text-orange-300  
  }

  .main_link {
    @apply text-orange-300  text-sm font-normal underline leading-none tracking-tight

    /*&:hover {
      @apply underline
    }*/
  }

  .section_name {
    @apply    text-slate-800  text-xl text-center font-normal leading-snug tracking-tight my-2
  }

  .tocs_header {
    @apply text-slate-800  text-lg text-center font-semibold leading-snug tracking-tight my-2
  }

  .profile_actions{
    @apply gap-y-4
  }

  .link {
    @apply text-blue-600 underline;
  }

  .institutional_section {
    @apply px-5 pb-10 w-full md:px-10;
  }

  .primary-btn {
    @apply centered-flex gap-x-2 px-4 py-2.5 text-white rounded-md
    bg-orange-dark transition-colors hover:bg-orange-burnt focus:outline-none;
  }
  .secondary-btn {
    @apply centered-flex gap-x-2 px-4 py-2.5 text-gray-700 bg-white rounded-md
    transition-colors border border-gray-300 hover:bg-gray-100 focus:outline-none;
  }
}

@layer utilities {
  .centered-flex {
    @apply flex justify-center items-center;
  }

  .flex-between {
    @apply flex justify-between items-center;
  }

  .no-scrollbar {
    scrollbar-width: none;
  }

  .no-scrollbar::-webkit-scrollbar {
    width: 0;
  }
}
nav.pagy {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 2rem auto 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  background-color: white;
  color: var(--color-gray-500);
}

nav.pagy a {
  padding: .625rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-right: none;
  transition: background-color 150ms;
  text-decoration: none;
}

nav.pagy a:first-child {
  border-radius: 0.375rem 0 0 0.375rem;
}

nav.pagy a:last-child {
  border-right: 1px solid var(--color-gray-300);
  border-radius: 0 0.375rem 0.375rem 0;
}

nav.pagy a:not(.gap, .current):hover,
nav.pagy a:not([href]) {
  background-color: var(--color-gray-100);
}

nav.pagy a:not([href]) { /* Disabled links */
  cursor: default;
}

nav.pagy a.current { /* Current page */
  background-color: var(--color-yellow-100);
  color: var(--color-yellow-800);
  border: 1px solid currentColor;
}
.fao-table {
  border-collapse: separate;
  border-spacing: 0;
}

/* Border color */

.fao-table tr:first-child th:first-child,
.fao-table tr td:first-child {
  border-left: 1px solid var(--color-gray-200);
}

.fao-table tr:first-child th:last-child,
.fao-table tr td:last-child {
  border-right: 1px solid var(--color-gray-200);
}

/* Border radius */

.fao-table tr:first-child th:last-child {
  border-top-right-radius: var(--border-radius-lg);
}

.fao-table tr:first-child th:first-child {
  border-top-left-radius: var(--border-radius-lg);
}

.fao-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--border-radius-lg);
}

.fao-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--border-radius-lg);
}
/**
 * Tom Select Tailwind Integration for Multi-Survey Results
 * Custom styles to make Tom Select match Tailwind CSS form elements
 * 
 * SCOPED STYLES: These styles only apply within .multi-survey-filters container
 * to avoid affecting other Tom Select instances in the application.
 */

/* Tom Select styling to match Tailwind dropdowns - SCOPED */
.multi-survey-filters .ts-wrapper {
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 10;
}

.multi-survey-filters .ts-dropdown {
    z-index: 1000;
}

/* Override base Tom Select control styling to match Tailwind - SCOPED */
.multi-survey-filters .ts-wrapper .ts-control {
    padding: 0.5rem 0.75rem !important; /* px-3 py-2 exact match */
    background-color: white !important;
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    border-radius: 0.375rem !important; /* rounded-md */
    font-size: 0.875rem !important; /* text-sm */
    line-height: 1.25rem !important;
    height: 2.5rem !important; /* Fixed height to match exactly */
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Disabled state styling - SCOPED */
.multi-survey-filters .ts-wrapper.disabled .ts-control {
    background-color: #f3f4f6 !important; /* bg-gray-100 */
    color: #9ca3af !important; /* text-gray-400 */
    cursor: not-allowed !important;
}

/* Focus state styling - SCOPED */
.multi-survey-filters .ts-wrapper .ts-control:focus-within,
.multi-survey-filters .ts-wrapper.focus .ts-control {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
    border-color: #3b82f6 !important; /* border-blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important; /* ring-2 ring-blue-500 */
}

/* Dropdown arrow using bold stroke chevron to match other dropdowns - SCOPED */
.multi-survey-filters .ts-wrapper .ts-control::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%236b7280' class='w-5 h-5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    position: absolute !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.25rem !important; /* w-5 h-5 */
    height: 1.25rem !important; /* w-5 h-5 */
    pointer-events: none !important;
    transition: transform 0.2s ease-in-out !important;
}

/* Arrow flip animation when dropdown is active - SCOPED */
.multi-survey-filters .ts-wrapper.dropdown-active .ts-control::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Style selected items (tags) - SCOPED */
.multi-survey-filters .ts-wrapper .ts-control .item {
    background: #e5e7eb !important; /* bg-gray-200 */
    border-radius: 0.25rem !important; /* rounded */
    padding: 0.125rem 0.375rem !important; /* px-1.5 py-0.5 */
    margin: 0.125rem !important; /* m-0.5 */
    font-size: 0.75rem !important; /* text-xs */
    border: none !important;
}

/* Override the base tom-select multi-item padding - SCOPED */
.multi-survey-filters .ts-wrapper.multi.has-items .ts-control {
    padding: 0.5rem 0.75rem !important;
}

/* Ensure dropdown content has proper styling - SCOPED */
.multi-survey-filters .ts-dropdown {
    border-radius: 0.375rem !important; /* rounded-md */
    margin-top: 0.125rem !important; /* mt-0.5 */
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; /* shadow-md */
}

/* Style checkbox options to match Tailwind checkboxes - SCOPED */
.multi-survey-filters .plugin-checkbox_options .option {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0.75rem !important; /* px-3 py-2 */
    transition: background-color 0.15s ease-in-out !important;
}

.multi-survey-filters .plugin-checkbox_options .option:hover {
    background-color: #f3f4f6 !important; /* hover:bg-gray-100 */
}

.multi-survey-filters .plugin-checkbox_options .option.selected {
    background-color: #dbeafe !important; /* bg-blue-50 */
}

.multi-survey-filters .plugin-checkbox_options .option input[type="checkbox"] {
    width: 1rem !important; /* w-4 */
    height: 1rem !important; /* h-4 */
    margin-right: 0.5rem !important; /* mr-2 */
    color: #3b82f6 !important; /* text-blue-600 */
    border-color: #d1d5db !important; /* border-gray-300 */
    border-radius: 0.25rem !important; /* rounded */
}

/* Remove default Tom Select item styling for cleaner look - SCOPED */
.multi-survey-filters .ts-wrapper.multi .ts-control > div {
    border: none !important;
    color: #374151 !important; /* text-gray-700 */
}

.multi-survey-filters .ts-wrapper.multi .ts-control > div.active {
    background: #d1d5db !important; /* bg-gray-300 */
    color: #374151 !important; /* text-gray-700 */
}

/* Ensure all dropdowns in multi-survey-filters have consistent styling - SCOPED */
.multi-survey-filters select {
    height: 2.5rem !important; /* Fixed height to match Tom Select */
    background-color: white !important;
    box-sizing: border-box !important;
}

.multi-survey-filters select:disabled {
    background-color: #f3f4f6 !important; /* bg-gray-100 */
    color: #9ca3af !important; /* text-gray-400 */
    cursor: not-allowed !important;
}

/* Responsive adjustments - SCOPED */
@media (max-width: 640px) {
    .multi-survey-filters .ts-wrapper .ts-control {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
    
    .multi-survey-filters select {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
}
/**
 * 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 {
  border-left: 1px solid #d0d0d0;
  margin-left: 6px;
}
.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {
  border-left-color: #cacaca;
}
.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {
  border-left-color: white;
}

.ts-wrapper.plugin-remove_button.rtl .item .remove {
  border-right: 1px solid #d0d0d0;
  margin-right: 6px;
}
.ts-wrapper.plugin-remove_button.rtl .item.active .remove {
  border-right-color: #cacaca;
}
.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {
  border-right-color: white;
}

.ts-wrapper {
  position: relative;
}

.ts-dropdown,
.ts-control,
.ts-control input {
  color: #303030;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  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;
}
/*# sourceMappingURL=tom-select.css.map */
:root {
  --border-radius-lg: 0.625rem;

  --color-yellow-100: #FEF9C3;
  --color-yellow-800: #854D0E;

  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-500: #6B7280;
}
/*
 * 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.
 *


 */

[data-bridge-components~="menu"]
[data-controller~="bridge--menu"] {
    display: none;
}

 .apple_pagination {
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
    text-align: center;
    padding: 1em;
    cursor: default; }
    .apple_pagination a, .apple_pagination span {
      padding: 0.2em 0.3em; }
    .apple_pagination .disabled {
      color: #aaaaaa; }
    .apple_pagination .current {
      font-style: normal;
      font-weight: bold;
      background-color: #bebebe;
      display: inline-block;
      width: 1.4em;
      height: 1.4em;
      line-height: 1.5;
      -moz-border-radius: 1em;
      -webkit-border-radius: 1em;
      border-radius: 1em;
      text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; }
    .apple_pagination a {
      text-decoration: none;
      color: black; }
      .apple_pagination a:hover, .apple_pagination a:focus {
        text-decoration: underline; }

/*# sourceMappingURL=application.css-74be691ec835fc47e2ff0c6e29a85040a32d2adbd6c037bbb7faa87e60526e7e.map */
