@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-BookItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'MaxPro';
    src: url('../fonts/MaxPro-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* zmienne css */
:root {
--height-header: 80px;
--height-footer: 40px;
--side-margins: 100px;
--box-border-color: #ffffff; /* Kolor ramki */
--box-text-color: #ffffff;   /* Kolor tekstu */
--yara-blue: #00205b;
--yara-mid-blue: #2777b8;
--yara-bright-blue: #63b6e6;
--bs-body-font-family: 'MaxPro', sans-serif;
}

.kl-login {
    font-size: 16px !important
}

@media (max-width: 768px) {
    :root {
        --side-margins: 10px;
    }
    .kl-login {
        font-size: 10px !important;
    }
    .vertical-header th {
      transform: rotate(90deg) !important;
        text-align: center !important;
        vertical-align: bottom !important;
        color: red !important;
  }
}

.vertical-header th {
  transform: rotate(0deg);
  text-align: center;
  vertical-align: middle;
}


/* Wymuszenie czcionki na wszystkich głównych elementach */
body, main, p, h1, h2, h3, h4, h5, h6, li, a, button, input, textarea, select, label {
    font-family: 'MaxPro', sans-serif !important;
}

/* Początkowa wysokość headera */
.expandable-header {
    transition: height 0.3s ease-in-out; /* Płynne przejście */
    height: var(--height-header, 80px); /* Domyślna wysokość */
}

/* Gdy menu jest rozwinięte, header automatycznie dostosuje się */
.expandable-header.expanded {
    height: auto; /* Automatyczne dopasowanie do zawartości */
}

.panel-header {
    background-color: var(--yara-blue) !important;
    color: white !important;
}
.panel-header li.nav-item a {
    color: white !important;
}
.panel-header li.nav-item a:hover {
    color: white !important;
}
.panel-header li.nav-item a.active {
    color: white !important;
    text-decoration: underline !important;
}

/* Zapewnienie, że elementy w navbar-collapse nie wychodzą poza ekran */
.navbar-collapse {
    max-height: 80vh; /* Zapobiega zbyt dużemu menu */
    overflow-y: auto;
}

header {
    background-color: white; 
    height: var(--height-header);
    display: flex;
    justify-content: space-between; /* Rozstawienie div'ów na przeciwległe krawędzie */
    align-items: center; /* Opcjonalnie: wyrównanie w pionie */
    padding: 10px var(--side-margins);
}
body {
    background-image: url("../img/Baner_Sad_src4.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-top: var(--height-header);
    font-family: "MaxPro", "Open Sans", Helvetica,Arial,sans-serif;
}
main {
    margin-top: var(--height-header);
    /* margin-bottom: var(--height-footer);*/
    padding-bottom: var(--height-footer);
    min-height: calc(100vh - var(--height-header));
    width: 100%;
    /* min-height: calc(100vh - var(--height-header) - var(--height-footer)); */
    /* min-height: calc(100vh - 0); */
    /* min-height: max-content; */
    color: var(--box-text-color);
    font-family: "MaxPro", "Open Sans", sans-serif;
    padding: 30px var(--side-margins);
    overflow-x: hidden;
    /* padding-left: var(--side-margins);
    padding-right: var(--side-margins);
    padding-top: 30px;
    padding-bottom: 80px; */

    max-width: 100vw;
}
footer {
    background-color: white;
    height: var(--height-footer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--side-margins);
}
footer>div {max-width:1600px !important;}

.info-box {
    background: rgba(0,0,0, 0.65); /* Półprzezroczyste tło */
    border: 2px solid var(--box-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--box-text-color);

    padding-top: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .info-box h1, 
  .info-box h2 {
    font-weight: bold;
  }
  
  .info-box p,
  .info-box ol,
  .info-box ul {
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  
.info-box ol,
.info-box ul {
  padding-left: 20px;
}
.info-title-old {
  font-weight: 600;
  font-size: 1.25rem; /* lub 1.5rem, jeśli ma być mocny akcent */
  text-align: center;
  text-transform: uppercase; /* jeśli chcesz „kardowy” wygląd */
  letter-spacing: 0.5px;
  background-color: white;
  color: black;
  padding: 0.5rem 1rem;
  margin: -20px -20px 20px -20px; /* dokładnie cofamy padding info-boxa */
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--box-border-color); /* nawiązanie do boxa */
}
.info-title {
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: white;
  color: black;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--box-border-color);

  position: relative;
  left: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
}

.btn-outline-light {
  border-color: var(--box-border-color);
  color: var(--box-text-color);
}

.btn-outline-light:hover {
  background: var(--box-border-color);
  color: black; /* Dostosuj kolor tekstu po najechaniu */
}

.cust-background-blacky {
  background-color: rgba(0, 0, 0, 0.65); /* Półprzezroczyste tło */
  /* border: 2px solid var(--box-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  color: var(--box-text-color); */
}

.btn-success-yara {
  --bs-btn-font-weight: 500;
  --bs-btn-color: white;
  --bs-btn-bg: var(--yara-mid-blue);
  --bs-btn-border-color: white;
  --bs-btn-hover-color: white;
  /* --bs-btn-hover-bg: #{shade-color($yara-blue, 10%)}; */
  --bs-btn-hover-bg: var(--yara-blue);
  --bs-btn-hover-border-color: white;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--yara-blue);
  --bs-btn-active-border-color: #{shade-color($bd-violet, 20%)};
  --bs-btn-disabled-color: white;
  --bs-btn-disabled-bg: var(--yara-mid-blue);
  --bs-btn-letter-spacing: 0.8em;
}

.btn-back-yara {
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--yara-mid-blue);
  --bs-btn-bg: white;
  --bs-btn-border-color: var(--yara-mid-blue);
  --bs-btn-hover-color: var(--yara-blue);
  /* --bs-btn-hover-bg: #{shade-color($yara-blue, 10%)}; */
  --bs-btn-hover-bg: white;
  --bs-btn-hover-border-color: var(--yara-blue);
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--yara-blue);
  --bs-btn-active-border-color: #{shade-color($bd-violet, 20%)};
  --bs-btn-disabled-color: white;
  --bs-btn-disabled-bg: var(--yara-mid-blue);
  --bs-btn-letter-spacing: 0.8em;
}



.custom-alert {
    background-color: #ffffff; /* Białe tło */
    border: 2px solid #dc3545; /* Czerwona obwódka */
    border-radius: 5px;
    padding: 0 0 0 0;
    position: relative;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-alert-header {
    background-color: #dc3545; /* Czerwony pasek */
    color: #ffffff; /* Biała czcionka */
    font-weight: bold;
    margin : 0;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

.custom-alert-body {
    color: #dc3545; /* Czerwona czcionka */
    padding: 15px;
}

.btn-close {
    /*position: absolute;
    top: 30px;
    right: 10px;
    */
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #dc3545; /* Czerwona ikona zamknięcia */
    cursor: pointer;
    padding: 5px;
}

.btn-close i {
    font-size: 1.2rem;
    vertical-align: middle;
}

.btn-close:hover i {
    color: #a71d2b; /* Ciemniejszy czerwony przy najechaniu */
}


.grid-item img {
  max-height: 200px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: border-color 0.3s ease;
}
.grid-item img.selected {
  border-color: #007bff; /* Blue border for selected item */
}
.grid-item h5 {
  text-align: center;
  margin-top: 10px;
}

.table-transparent {
  background-color: transparent !important; /* Usunięcie białego tła */
}
.table {
  background-color: transparent !important;
}
.table th, .table td {
  background-color: transparent !important;
  color: white !important;
  --bs-table-color:white;
}

.btn-circle-yara {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: var(--yara-mid-blue);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-circle-yara:hover {
  background-color: var(--yara-blue);
}

.btn-circle-yara:active {
  background-color: var(--yara-mid-blue);
  transform: scale(0.95);
}

.btn-outline-primary {
  color: var(--yara-mid-blue) !important; /* Kolor tekstu */
  background-color: white !important; /* Kolor tła */
  border-color: var(--yara-mid-blue) !important; /* Kolor obramowania */
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  color: white !important; /* Kolor tekstu po najechaniu */
  background-color: var(--yara-blue) !important; /* Kolor tła po najechaniu */
  border-color: var(--yara-blue) !important;
}

.btn-outline-primary.active {
  color: white !important; /* Kolor tekstu po aktywacji */
  background-color: var(--yara-mid-blue) !important; /* Kolor tła po aktywacji */
  border-color: var(--yara-mid-blue) !important;
}

/* Dodatkowe nadpisanie dla radio buttonów w grupie */
.btn-group .btn-check:checked + .btn-outline-primary {
  color: white !important; /* Kolor tekstu dla wybranego przycisku */
  background-color: var(--yara-mid-blue) !important; /* Kolor tła dla wybranego przycisku */
  border-color: var(--yara-mid-blue) !important;
}

.lp-field {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: transparent;
  border: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 2rem; /* Wyrównanie wysokości do innych pól */
}

/* .adrItem {
  padding: 10px;
  border: 1px solid #ccc;
  margin: 5px;
  cursor: pointer;
} */

.adrItem.selected {
  background-color: rgba(0, 0, 0, 0.7); /* Półprzezroczyste tło */
  color: white;
  border-color: #007bff; /* Blue border for selected item */
}

.nav-tabs .nav-link {
  background-color: white;
  color: var(--yara-blue);
  border: 1px solid white;
  /* border: 1px solid var(--yara-blue); */
}

.nav-tabs .nav-link.active {
  background-color: var(--yara-blue);
  color: white;
}

.nav-tabs .nav-link:hover {
  background-color: var(--yara-mid-blue);
  color: white;
}

.tab-content {
  border: 1px solid var(--y-blue);
  border-top: none;
  margin: 0;
  margin-top: 5px;
  padding: 0;
}

.tab-pane {
  padding: 0 !important;
}

.video-full-width {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.custom-select-outline-light {
  background-color: transparent;  /* Przezroczyste tło */
  color: white;  /* Biały tekst */
  border: 1px solid white;  /* Biała obwódka */
  padding: 0.375rem 2rem 0.375rem 0.75rem; /* Większy padding po prawej na strzałkę */
  border-radius: 0.375rem;  /* Zaokrąglenie rogów jak w przyciskach */
  appearance: none; /* Usunięcie domyślnego wyglądu */
  position: relative;
  cursor: pointer;
}

.custom-select-outline-light:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5); /* Efekt focus jak w Bootstrap */
}

/* Dodanie strzałki */
.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper::after {
  content: "▼"; /* Strzałka */
  font-size: 14px;
  color: white;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-select-outline-light option {
  background-color: transparent; /* Przezroczyste tło */
  color: white; /* Białe litery */
}

.filters input {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9em;
  padding: 3px 6px;
}
.card {
  background-color: transparent !important;
  box-shadow: none !important;
  border: 2px solid white;
  border-radius: 0.75rem; /* lub np. 12px */
  overflow: hidden; /* aby zawartość nie wychodziła poza zaokrąglenie */
}
.card-header {
  /* background-color: #595959 !important; 
  background-color: rgba(255, 255, 255, 0.75); */
  background-color: rgba(255, 255, 255);
  box-shadow: none !important;
  color: black !important;
  font-weight: bold !important;
  font-size: 1.5em !important;
  text-align: center !important;
}
.card-body {
  background-color: rgba(0, 0, 0, 0.65) !important;
  color: white !important;
  box-shadow: none !important;
}
.card-title {
  color: black !important;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center !important;
}
.card-text {
  color: white !important;
}

.table-inner-scroll {
  min-width: 100%;
  white-space: nowrap;
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.scroll-table {
  min-width: 800px; 
  white-space: nowrap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.pdf-container {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
}

.pdf-viewer {
  width: 100%;
  height: 600px;
  border: none;
}

