.nav-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-submenu {
  background-color: white;
  border-radius: 6px;
  @media (min-width: 1024px){
  padding: 8px;
  position: absolute;
  top: 45px;
  right: 0px;
  left: auto;
  z-index: 10;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 4px 2px;
  }
  text-align: left;

}

.nav-submenu-item {
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  padding: 8px;
  &:hover {
    background-color: #EFF8FF;
  }
  @media (min-width: 1024px) {
    white-space: nowrap;
    font-size: 16px;
    padding-right: 12px;
    padding-left: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
:root {
  --main-color: #0077e4;
  --main-color--hover: #0066c3;
  --main-contrast-color: #fff;
  --cockpit-width: 500px;
  --cockpit-z-index: 5000;
  --cockpit-background: #fff;
  --editable-highlight-color: #eb9e34;
  --editable-highlight-contrast-color: #fff;
}

.admin--cockpit {
  position: relative;
  width: 0;
  transition: all 400ms;

  &.admin--cockpit--active {
    width: var(--cockpit-width);

    .admin--cockpit--content {
      opacity: 1;
      width: var(--cockpit-width);
      pointer-events: auto;
      box-shadow: -4px 0px 10px 2px rgba(from var(--main-color) r g b / 0.2);
    }
  }
}

.admin--cockpit--handler {
  position: fixed;
  z-index: calc(var(--cockpit-z-index) - 1);
  top: 100px;
  right: 0;
  background-color: var(--main-color);
  color: var(--main-contrast-color);
  padding: 0.5rem 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  cursor: pointer;
  user-select: none;
  transition: all 400ms;

  &:hover {
    background-color: var(--main-color--hover);
  }
}

.admin--cockpit--content {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--cockpit-z-index);
  background: var(--cockpit-background);
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: all 400ms;
  border-left: 1px solid var(--main-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin--cockpit--header {
  background-color: var(--main-color);
  color: var(--main-contrast-color);
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;

  button:hover {
    opacity: 0.7;
  }
}

.admin--cockpit--inner-content {
  padding: 1rem;
  flex: 1;
}

body.admin--active {
  .static-text {
    outline: 2px dashed var(--editable-highlight-color);
    cursor: pointer;
    transition: background-color, color 140ms;

    &:hover {
      outline-style: solid;
      background-color: var(--editable-highlight-color);
      color: var(--editable-highlight-contrast-color);
    }
  }

  .metatags-container {
    display: block!important;    
  }
}

.admin-success-banner {
  padding: 1rem;
  background-color: #f0fff4;
  color: #2c7a7b;
  border: 1px solid #c6f6d5;
  border-radius: 0.25rem;
}

.profile-settings {
  .form-label {
    display: none;
  }
}
@tailwind base;
@tailwind components;
@tailwind utilities;

@import "fonts";
@import "buttons";
@import "form";
@import "pagy";
@import "home";
@import "header";
@import "report";
@import "editor";
@import "editor-inner";
@import "cookies";
@import "admin-header";
@import "contact";

.static-text {
  white-space: pre-line;
}

.form-label {
  @apply block mb-2;
  @apply text-gray-700 font-medium text-xl leading-8;
}

.form-errors {
  @apply text-red-700 text-sm mt-2;
}

.field_with_errors .form-control {
  @apply border-red-700;
}

.form-control {
  @apply block w-full;
  @apply rounded-lg;
  @apply bg-white;
  @apply px-3 py-2;
  @apply text-gray-700 text-base leading-snug;
  @apply border border-gray-300;
  box-shadow: 0px 1px 2px 0px #1018280d;

  @apply focus:ring-4 focus:ring-blue-100 focus:outline-none focus:border-gray-400;

  /* Make sure the selects can have a placeholder */
  option.placeholder,
  &:has(option.placeholder:checked) {
    @apply text-gray-500;
  }

  option {
    @apply text-gray-700;
  }

  &[readonly] {
    @apply bg-gray-50;
  }
}

textarea.form-control {
  @apply py-3;
}

input[type="checkbox"].form-control {
  @apply w-5 h-5 p-2;
}

select.form-control {
  @apply cursor-pointer;
  &:disabled{
    @apply cursor-default;
  }
}

/* Tailwind does not parse included files so we have to inline styles here */

/* Admin */
.admin {
  .form-label {
    @apply text-sm;
  }
}

.admin-btn-primary {
  @apply rounded-lg px-4 min-h-10;
  @apply flex items-center gap-2;
  @apply text-white text-sm;
  @apply bg-blue-600 hover:bg-blue-700 cursor-pointer;
  @apply focus:ring-4 focus:ring-blue-200 outline-none;
}

.admin-btn-secondary {
  @apply cursor-pointer;
  @apply rounded-lg px-4 min-h-10;
  @apply flex items-center gap-2;
  @apply text-gray-700 text-sm;
  @apply bg-white;
  @apply border border-gray-300 hover:border-gray-400;
  @apply focus:ring-4 focus:ring-gray-200 outline-none;

  &.highlight {
    @apply bg-blue-50 border-brand-600;
  }

  &:disabled {
    @apply text-gray-400;
    @apply border-gray-200;
  }
}

.admin-btn-red {
  @apply rounded-lg px-4 min-h-10;
  @apply flex items-center gap-2;
  @apply text-red-500 text-sm;
  @apply bg-red-50;
  @apply border border-solid border-red-500 focus:ring-4 focus:ring-red-50 outline-none;
}

.btn-primary {
  @apply py-3 px-4 bg-brand-600 text-white font-semibold rounded-lg w-full cursor-pointer hover:bg-brand-400;
}

@layer components {
  .btn {
    @apply flex justify-center items-center p-4 gap-2;
    padding: 10px var(--spacing-xl, 16px);
  }
  .btn-primary {
    @apply bg-white rounded-md border border-gray-300 shadow-sm;
    @apply text-base font-semibold text-gray-700;
  }
}
@layer components {
  .contact-bg{
    background-image: url(/contact.png);
  }
}
@layer components {

  .cookie-notice {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
  }

  /* Blur screen when cookies notice is displayed */
  .dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 50, 0.5);
    z-index: 1000;
  }
}
@layer components {
  .ce-block {
    margin-bottom: 1rem;
    color: #535862;
  }

  .ce-paragraph {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
  }

  .ce-header {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }

  /* Header Styles */
  h1.ce-header {
    font-size: 32px;
  }

  h2.ce-header {
    font-size: 24px !important;
  }

  h3.ce-header {
    font-size: 20px !important;
  }

  h4.ce-header {
    font-size: 18px !important;
  }

  /* Quote Block */
  .ce-quote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    font-style: italic;
  }

  .ce-quote__caption {
    font-size: 0.875rem;
    text-align: right;
    margin-top: 0.5rem;
  }

  /* List Block */
  .ce-list {
    padding-left: 2rem;
  }

  .ce-list__item {
    margin-bottom: 0.5rem;
  }

  .ce-toolbar__content {
    text-align: center;
  }
}
@layer components {

  #editorjs {
    padding: 10px;
    min-height: 200px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .editor-content {
    color: #535862 !important;
    font-family: 'Suise', sans-serif;
    text-align: left !important;;
    font-weight: 400;
    font-size: 18px !important;;
  }

  .editor-content > :first-child {
    margin-top: 0 !important;;
  }

  .editor-content h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 600 !important;
  }

  .editor-content h2 {
    font-size: 32px !important;
    line-height: 38px;
    font-weight: 600 !important;
    color: #181D27 !important;
  }

  .editor-content h3 {
    font-size: 24px !important;
    line-height: 32px;
    font-weight: 600 !important;
    color: #181D27 !important;
  }

  .editor-content h4 {
    font-size: 20px !important;
    line-height: 28px;
    font-weight: 600 !important;
  }

  .editor-content h5 {
    margin: 1rem 0;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
  }

  .editor-content h6 {
    margin: 1rem 0;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
  }

  /* Responsive part */
  @media (max-width: 1024px) {
    .editor-content h1 {
      font-size: 40px;
      line-height: 48px;
    }

    .editor-content h2 {
      font-size: 28px;
      line-height: 34px;
    }

    .editor-content h3 {
      font-size: 22px;
      line-height: 30px;
    }

    .editor-content h4 {
      font-size: 18px;
      line-height: 26px;
    }

    .editor-content h5,
    .editor-content h6 {
      font-size: 16px;
      line-height: 24px;
    }
  }

  @media (max-width: 768px) {
    .editor-content h1 {
      font-size: 36px;
      line-height: 44px;
    }

    .editor-content h2 {
      font-size: 24px;
      line-height: 30px;
    }

    .editor-content h3 {
      font-size: 20px;
      line-height: 28px;
    }

    .editor-content h4 {
      font-size: 18px;
      line-height: 26px;
    }

    .editor-content h5,
    .editor-content h6 {
      font-size: 16px;
      line-height: 24px;
    }
  }

  @media (max-width: 480px) {
    .editor-content h1 {
      font-size: 32px;
      line-height: 40px;
    }

    .editor-content h2 {
      font-size: 20px;
      line-height: 28px;
    }

    .editor-content h3 {
      font-size: 18px;
      line-height: 24px;
    }

    .editor-content h4 {
      font-size: 16px;
      line-height: 22px;
    }

    .editor-content h5,
    .editor-content h6 {
      font-size: 14px;
      line-height: 20px;
    }
  }

  .editor-content p {
    text-align: left;
    font-weight: 400 !important;
    font-size: 18px !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;

    &:empty {
      display: none !important;
    }
  }

  .editor-content p + h1,
  .editor-content h2,
  .editor-content h3,
  .editor-content h4,
  .editor-content h5,
  .editor-content h6 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
  }

  .editor-content a {
    text-decoration: underline !important;
    cursor: pointer !important;
  }

  .editor-content ol {
    margin-left: 1.5rem !important;
    margin: 1rem 0 !important;
    list-style-type: decimal !important;
    list-style-position: inside !important;
    gap: 1rem !important;
  }

  .editor-content ul {
    margin-left: 1.5rem !important;
    margin: 1rem 0 !important;
    list-style-type: disc !important;
    list-style-position: inside !important;
    font-size: 18px !important;
    gap: 1rem !important;
  }

  .editor-content img {
    margin: 1rem 0 !important;
  }

  .editor-content blockquote {
    color: #181D27 !important;
    font-style: italic !important;
    margin: 1rem 0;
    font-size: 24px;
    margin-left: 3rem;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    border-left: 4px solid #0066C3 !important;


    footer {
      margin-top: 2rem !important;
      font-size: 16px !important;
      font-style: normal !important;
      font-weight: 600 !important;
    }
  }

  .editor-content hr {
    margin: 1rem 0 !important;
  }

  .editor-content a {
    text-decoration: none !important;
    border: none !important;
    color: #2563EB !important;
  }

  .editor-content a:hover {
    text-decoration: underline !important;
    cursor: pointer !important;
  }

  .editor-content a:active {
    color: #1D4ED8 !important;
  }

  .editor-content .checklist-block {
    list-style: none !important;

    .checklist-checkbox {
      margin-right: 1rem !important;
    }
  }

  .editor-content .raw-block {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .editor-content .image-block {
    .image-block-image {
      border-radius: 16px;
    }

    .image-block-caption {
      font-size: 14px !important;
      margin-top: -0.5rem !important;
    }
  }
}



.table-block {
  ol {
    list-style-type: none;
    counter-reset: item;
    margin-bottom: 0;
  }

  ol > li {
    display: table;
    counter-increment: item;
  }

  ol > li:before {
    content: counters(item, ".") ". ";
    padding-right: 0.6em;
  }

  li ol > li:before {
    content: counters(item, ".") " ";
  }
}

.list-block {
  padding-left: 20px;
}

.list-block > li {
  list-style-position: outside;
}
@font-face {
  font-family: "Suisse Intl";
  src: url(/fonts/suisse-intl/SuisseIntl-Regular-WebM.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Suisse Intl";
  src: url(/fonts/suisse-intl/SuisseIntl-Medium-WebM.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Suisse Intl";
  src: url(/fonts/suisse-intl/SuisseIntl-SemiBold-WebM.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
}
@layer components {

  .radio-input {
    appearance: none !important;
  }

  .radio-input:hover+label {
    background-color: #EFF8FF;
  }

  .radio-input:checked+label {
    background-color: #D1E9FF !important;
    width: -webkit-fill-available;
    color: #182230 !important;
  }

  .radio-input:checked+label svg {
    display: block !important;
  }

  .subcategory-input:checked+label svg {
    opacity: 100% !important;
  }

  .category-input:checked+label svg {
    display: block !important;
  }

  .drop-down-background {
    background-color: #EFF8FF;
  }

  .email-input {
    box-shadow: none !important;
  }

  .remove-focus-outline:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
  }
}
@layer components {
  .header-styles {
    @media (min-width: 640px) {
      box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.10), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
    }
  }

  .active-link {
    color: #0077E4 !important;
    background-color: #EFF8FF;
    @media (min-width: 640px) {
      background-color: unset !important;
    }
  }

  .nav-wrapper {
    top: 60px;
    bottom: 0;
    left: 100%; 

    @media (min-width: 640px) {
      top: 82px;  
      padding-top: 20px;
    }
    transition: all .25s cubic-bezier(.25,.85,.55,1);
  }

  .nav-wrapper.is-open {  
    right: 0; 
    left: 0%;

    @media (min-width: 640px) {
      left: 55%
    }
  }

  .nav-button {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
  }

  .nav-button span {
    display: block;
    border-radius: 10px;
    position: absolute;
    left: 2px;
    width: 20px;
    height: 2px;
    background: #667085;
    transform: rotate(0deg);
    transition: all .25s cubic-bezier(.25,.85,.55,1);
    opacity: 1;
  }

  .nav-button span:first-child {
    top: 5px;
  }

  .nav-button span:nth-child(2), .nav-button span:nth-child(3) {
    top: 11px;
  }

  .nav-button span:nth-child(4) {
    top: 17px;
  }

  .nav-button.is-open span:first-child {
    width: 0;
    top: 10px;
    left: 50%  
  }

  .nav-button.is-open span:nth-child(4) {
    width: 0;
    top: 10px;
    left: 50%  
  }

  .nav-button.is-open span:nth-child(2) {
    transform: rotate(45deg);
  }

  .nav-button.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }
}
@layer components {
  .report-input::placeholder {
    color: red;
  }

  .mobile-link-input-form {
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  }

  .mobile-link-input:focus {
    outline: none !important;
    box-shadow: none !important;

  }

  .home-background {
    background-image: url(/home-bg-mobile.png);
    @media (min-width: 640px) {
      background-image: url(/home-bg.png);
    }
  }

  .home-hero-background {
    width: 100%;
    object-fit: cover;
  }

  .half-container {
    padding-left: 1rem;

    @media (min-width: 640px) {
      max-width: 320px;
      padding-left: 3rem;
    }
  
    @media (min-width: 768px) {
      max-width: 384px;
    }
    @media (min-width: 1024px) {
      max-width: 512px;
    }
    @media (min-width: 1280px) {
      max-width: 640px;
      padding-left: 4rem;
    }
    @media (min-width: 1440px) {
      max-width: 720px;
    }

    @media (min-width: 1536px) {
      max-width: 768px;
    }
  }
}
.pagy-nav,
.pagy-nav-js {
  display: flex;
  gap: 8px;
}

.pagy-nav .page a,
.pagy-nav-js .page a {
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: #667085;

  &:hover {
    color: black;
    text-decoration: underline;
  }
}

.pagy-nav .page.next a,
.pagy-nav .page.prev a {
  font-weight: 600;
  padding: 0 !important;
  color: #535862;
}

.pagy-nav .page.prev.disabled,
.pagy-nav .page.next.disabled,
.pagy-nav-js .page.prev.disabled,
.pagy-nav-js .page.next.disabled {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: default;
}

.page.current {
  border-radius: 100%;
  /* background-color: #EAECF0; */
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: #252B37;
}
@layer components {

    .admin-report-edit {
      .dropdown {
        position: relative;
        display: inline-block;
      }

      .dropdown-button:focus,
      .dropdown-button:active {
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(165, 212, 255, 0.24) !important;
      }

      .dropdown-button {
        background-color: #EFF8FF !important;
        border: 1px solid #84CAFF !important;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .arrow {
        display: inline-block;
        transition: transform 0.3s ease; /* Smooth rotation transition */
        margin-left: 10px;
      }

      .dropdown.open .arrow {
        transform: rotate(180deg); /* Rotate arrow 180 degrees when open */
      }

      .dropdown-menu {
        width: 85%;
        position: absolute;
        top: 100%;
        right: 0;
        list-style: none;
        margin: 5px 0 0;
        padding: 0;
        display: none;
        z-index: 10;
        border-radius: 8px;
        border: 1px solid #E9EAEB !important;
        background: #FFF;
        box-shadow: 0px 12px 16px -4px rgba(10, 13, 18, 0.08), 0px 4px 6px -2px rgba(10, 13, 18, 0.03), 0px 2px 2px -1px rgba(10, 13, 18, 0.04) !important;
}

      .dropdown-item {
        padding: 8px 16px;
        cursor: pointer;
        color: #414651;
        font-weight: 600;
      }

      .dropdown-item:hover {
        background-color: #EFF8FF;
      }

      .dropdown-item.active {
        background-color: #D1E9FF;
        font-weight: bold;
        color: #175CD3;
      }

      .dropdown.open .dropdown-menu {
        display: block;
      }

      .report-notes-textarea {
        width: 100%;
        margin-top: 16px;
        padding: 10px;
        border: 1px solid #D0D5DD !important;
        border-radius: 6px !important;
        font-size: 16px;
        resize: none;
      }

      .btn-update {
        background-color: #0077E4 !important;
        color: white !important;
        padding: 10px 16px !important;
        cursor: pointer;
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
      }

      .btn-update:hover {
        background-color: #0066C3 !important;
      }

      .btn-update:disabled {
        background-color: #F2F4F7 !important;
        color: #98A2B3 !important;
        cursor: not-allowed;

      }

      .activity-list .activity-item {
        display: flex;
      }

      .activity-file {
        background: #f9fafb; /* Gray-100 */
        border-radius: 0.5rem;
        padding: 16px;
        display: flex;
        align-items: center;
      }

      .activity-file .file-name {
        color: #1d4ed8; /* Brand Blue */
      }

      .activity-file .file-size {
        color: #6b7280; /* Gray-500 */
        font-size: 0.875rem;
      }

      .file-name-display {
        display: none; /* Initially hidden */
        align-items: center; /* Align text and button */
      }

      .file-name-display.visible {
        display: flex; /* Make visible when a file is selected */
      }

      #remove-file-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1rem; /* Match close button size with text */
      }

      #remove-file-btn:focus {
        outline: none;
      }
    }


    .clickable-body {
      td {
        padding: 0 !important;
      }
       td a {
        padding: 24px !important;
        display: block;
        text-decoration: none;
        color: inherit;
        height: 100%;
      }
    }
}
/*
 * 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.
 *


 */
