:root {
  --jumbotron-padding-y: 1rem;
}


@media (max-width: 1600px) {
    html { font-size:14px; }
}

.btn-group-xs>.btn, .btn-xs {
    padding: 0.20rem  0.2rem;
    font-size: .775rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.list-group-xs .list-group-item {
    padding: 0.25rem 1rem;
}

p {
    overflow-wrap: anywhere;
}


.fullwidth > .container { max-width:100%; }


.fullwidth .content > .banner { max-width:100%; }
.content > .banner { max-width:1140px; margin:0 auto; padding:0 15px; }


.simplecolorpicker.icon, .simplecolorpicker span.color { box-shadow: 0 0 2px black; }



.jumbotron {
  padding-top: var(--jumbotron-padding-y);
  padding-bottom: var(--jumbotron-padding-y);
  margin-bottom: 0;
  background-color: #fff;
}
@media (min-width: 768px) {
  .jumbotron {
    padding-top: calc(var(--jumbotron-padding-y) * 1.5);
    padding-bottom: calc(var(--jumbotron-padding-y) * 1.5);
  }
}

.jumbotron p:last-child {
  margin-bottom: 0;
}

.jumbotron-heading {
  font-weight: 300;
}

.jumbotron .container {
  max-width: 40rem;
}
   
.jumbotron h1 {
    font-size:1.6em;
}

.header  {
    padding-top: var(--jumbotron-padding-y);
  padding-bottom: var(--jumbotron-padding-y);
}
.header h1 {
    font-size:1.6em;
}




form .errors { list-style: none; padding: 0; margin:3px 0 0; }
form .errors,form .errors li { color:#B94A48; font-weight: bold;}
form .help-block { clear: both; margin-top:0; padding-top:5px; }

form label.required::after { content:' *'; font-weight: bold; color:red; }





/**** TABULKA  ***/



.tdw100 { max-width: 100px; }
.tdw110 { max-width: 110px; }
.tdw120 { max-width: 120px; }
.tdw160 { max-width: 160px; }
.tdw200 { max-width: 200px; }
.tdw300 { max-width: 300px; }
.tdw65 { max-width: 65px; }
.tdnobr { white-space: nowrap;}


table.smartTable .first_row th { padding:5px 10px; background-color:#dAdAdA; vertical-align:middle; height:auto; font-size:13px; }
table.smartTable .first_row th a { color:#0c4185; }

.smartTable {position:relative; }

.smartTable .smartTableOptions { display:none; position:absolute; left:0px; top:-66px; opacity:0.2;  }
.smartTable .smartTableOptions:hover { opacity: 1; }
.smartTable .smartTableOptions .btn-toolbar { background:#EAEAEA; padding:10px 10px; display:block; border:1px solid #dddddd; border-radius:5px;  }
.smartTable:hover .smartTableOptions { display: block; }
.smartTable .smartTableOptions, .smartTable .smartTableOptions li, .smartTable .smartTableOptions a { line-height:auto; font-size:11px; }
.smartTable .smartTableOptions .dropdown-menu a { padding:1px 10px; }


.smartTable .filter_row th { background-image:none; cursor:default; padding:3px 0 3px 0; }
.smartTable .filter_row span { display:block; padding:0 2px;}
.smartTable .filter_row input,
.smartTable .filter_row select { width:99.5%; padding:2px 0; height:auto; text-indent:5px;text-transform: none !important;  margin-bottom:0; font-size: 12px; line-height: 12px; border:1px solid silver;}
.smartTable .filter_row select { padding:1px 2px; text-indent:0px; margin-bottom:0; }

.smartTable .filter_row .filterFilterNum { }
.smartTable .filter_row .filterFilterNum .selectWrapper{ width:42px;float:left; padding:0;}
.smartTable .filter_row .filterFilterNum .inputWrapper{ margin-left:42px;}
.smartTable .filter_row .filterFilterNum select{ width:42px;}
.smartTable .filter_row .filterFilterNum input{ width:100%;}
.smartTable .filter_row .pluginCheckbox input { position:relative; top:-7px; }

.smartTable .sortable  { background-position:10px center; background-repeat:no-repeat; }
.smartTable .sortable a { display:block; margin-left:0;}

.table.smartTable td { vertical-align:middle;  }
.table.smartTable > thead > tr > th,.table.smartTable > tbody > tr > td { padding:3px 5px; }


.smartTable .filter_row th { vertical-align: middle; overflow-wrap: break-word; }
.smartTable .filter_row .filter_submit_reset { padding:0 3px; white-space:nowrap; }
.smartTable .filter_row .filter_submit_reset input { width:auto; padding:3px 10px 3px 6px;font-size:14px; }
.smartTable .filter_row .filter_submit_reset > .btn { float:none; }
.table-text-small { font-size:12px; }
.table-compact td, .table-compact th { padding:0.3em; }



.customer .bg-dark { background:#0c4185 !important; }


.ui-autocomplete.ui-menu { overflow: auto; max-height:300px; }


.jsonaddress-element { position:relative; }
.jsonaddress-element .finstatsearch { position:absolute; top:3px; right:2px; display:none; font-size:12px; }
.jsonaddress-element:hover .finstatsearch { display:block; }
.jsonaddress-element { max-width:300px; }
.jsonaddress-element input { border-left:4px solid #aaccff; }
.jsonaddress-element-country input { margin-bottom:1em; }
.jsonaddress-element-idvat input { margin-bottom:1em; }
.jsonaddress-deliverydata .jsonaddress-element input { border-left:4px solid #33ee99; }


.form-control::-webkit-input-placeholder{color:#6c757d;opacity:0.7}
.form-control::-moz-placeholder{color:#6c757d;opacity:0.7}
.form-control:-ms-input-placeholder{color:#6c757d;opacity:0.7}
.form-control::-ms-input-placeholder{color:#6c757d;opacity:0.7}
.form-control::placeholder{color:#6c757d;opacity:0.7}


.filter2 .input-group-text { padding-left:3px; padding-right:3px; min-width:30px; }    
.filter2 .input-group-text.av-2 { padding-left:3px; padding-right:3px; min-width:95px; }    
.clear-icon-global {
  position: absolute;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  display: none;
  z-index: 9999;
}


.filter2 .choices__placeholder  {color:#6c757d;opacity:1}
.filter2 .form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}
.filter2 .form-control::-moz-placeholder{color:#6c757d;opacity:1; }
.filter2 .form-control:-ms-input-placeholder{color:#6c757d;opacity:1; }
.filter2 .form-control::-ms-input-placeholder{color:#6c757d;opacity:1; }
.filter2 .form-control::placeholder{color:#6c757d;opacity:1; }

.filter2 .choices__list--dropdown { width:300px; }
.filter2 .row .choices__list--dropdown .choices__item--selectable[data-select-text], 
.filter2 .choices__list[aria-expanded] .choices__item--selectable[data-select-text] { font-size:14px; white-space: nowrap; }






.row .choices { font-size:12px;}
 .row .choices__inner {  padding-top:3px; padding-bottom:3px;     min-height: 36px; font-size: 14px !important; line-height: 2em;  }
 .row .choices[data-type*=select-one] .choices__inner,
 .row .choices[data-type*=select-multiple] .choices__inner
 {  padding-top:0px; padding-bottom:0px;     min-height: 26px; }
 .row .choices__list--dropdown .choices__item--selectable[data-select-text], .choices__list[aria-expanded] .choices__item--selectable[data-select-text] {
     font-size:11px;
 }
 
 .row .choices__list--multiple .choices__item  { padding:1px 4px 1px 10px; margin:2px 2px 1px 0px; }
 
 .row .choices__input  { font-size:12px; margin-bottom:0; }
 

 @media (max-width: 1599px) {
     
     .row .choices__inner,
     .row .choices[data-type*=select-one] .choices__inner { 
         /* min-height: 20px;line-height: 1.42857143;  */
         font-size: 12px !important;
     }
}




/* Hlavný kontajner pre horizontálne usporiadanie prúžkov */
.jobroles-horizontal {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Štandardný vertikálny prúžok pre rolu */
.jobrole-stripe {
    width: 5px;
    height: 15px;
    border-radius: 1px;
    margin-right: 2px;
    transition: opacity 0.2s, background-color 0.2s;
}

/* Odstránenie pravého okraja pre úplne posledný prúžok v celom kontajneri */
.jobrole-stripe:last-child {
    margin-right: 0;
}

/* Stav: Vyplnená rola (Zelená plná) */
.jobrole-stripe.stripe-filled {
    background-color: #97C459 !important;
}

/* Stav: Voľná rola (Sivá plná) */
.jobrole-stripe.stripe-free {
    background-color: #ced4da !important;
}

/* Stav: Zamknutá rola (Sivá s opacity 40%) */
.jobrole-stripe.stripe-locked {
    background-color: #ced4da !important;
    opacity: 0.4 !important;
}

/* Medzera medzi troma hlavnými skupinami (fázami) */
.jobroles-group-separator {
    width: 6px;
    display: inline-block;
}

.longtext-container {
  position: relative;
  width: 100%;
  /*max-width: 600px; *//* Uprav podľa potreby */
  margin-bottom: 20px;
}

.longtext-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

/* Stav po rozbalení */
.longtext-container.is-open .longtext-content {
  max-height: 2000px; /* Dostatočne veľké číslo pre akýkoľvek text */
}

/* Fade-out efekt (stmievanie textu nad tlačidlom) */
.longtext-container::after {
  content: "";
  position: absolute;
  bottom: 40px; /* Výška tlačidla */
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(transparent, #ffffff); /* Zmeň #ffffff podľa pozadia stránky */
  pointer-events: none;
  transition: opacity 0.3s;
}
.longtext-disabled::after { display:none; }

/* Skrytie stmievania po rozbalení */
.longtext-container.is-open::after {
  opacity: 0;
}

/* Tlačidlo */
.longtext-btn {
  display: none; /* JS ho zapne iba ak text presiahne výšku */
  background: none;
  border: none;
  color: #0066cc;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.longtext-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

/* Otočenie šípky */
.longtext-container.is-open .longtext-arrow {
  transform: rotate(180deg);
}



.difficulty_A { background-color: #2e7d32 !important; color: #ffffff; } /* Veľmi ľahká - Tmavozelená */
.difficulty_B { background-color: #8bc34a !important; color: #000000; } /* Ľahká - Svetlozelená */
.difficulty_C { background-color: #fbc02d !important; color: #000000; } /* Stredná - Žltá */
.difficulty_D { background-color: #f57c00 !important; color: #ffffff; } /* Ťažká - Oranžová */
.difficulty_E { background-color: #c62828 !important; color: #ffffff; } /* Veľmi ťažká - Červená */

/* Navigácia - vysúvacie hover podmenu */
.navbar-nav .nav-item.dropdown {
    position: relative;
}

@media (min-width: 1200px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: navDropdownFade 0.15s ease-in-out;
    }
}

@keyframes navDropdownFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-nav .dropdown-menu {
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.4rem 0;
    min-width: 14rem;
}

.navbar-nav .dropdown-menu .dropdown-item-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav .dropdown-menu .dropdown-item {
    padding: 0.45rem 1.15rem;
    font-size: 0.92rem;
    color: #333;
    display: flex;
    align-items: center;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: #f1f4f8;
    color: #007bff;
}

.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: #007bff;
    color: #fff;
}

.navbar-nav .dropdown-menu .dropdown-item i.fa {
    width: 1.35rem;
    text-align: center;
    margin-right: 0.45rem;
    opacity: 0.85;
}

.navbar-nav .dropdown-menu .dropdown-item.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

.navbar-nav .dropdown-menu .dropdown-item.text-success:hover,
.navbar-nav .dropdown-menu .dropdown-item.text-success:focus {
    background-color: #eafaf1;
    color: #1e7e34 !important;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1199.98px) {
    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: block;
        position: static;
        float: none;
        background-color: rgba(255, 255, 255, 0.07);
        border: 0;
        box-shadow: none;
        padding-left: 0.75rem;
        margin: 0.25rem 0;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
    .navbar-nav .dropdown-menu .dropdown-item.active {
        background-color: #007bff;
        color: #fff;
    }
}

