* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body { 
  height: 100svh;
  width: 100vw;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #2f404a;
  background-color: #fff;
  display: grid;
  gap: 0px;
  grid-template-columns: 150px 200px 200px auto 150px 150px;
  grid-template-rows: 45px minmax(50px, auto) minmax(40px, auto) minmax(0, 1fr) 30px;
  grid-template-areas:
      "logo navigacia navigacia navigacia hladat prihlaseny"
      "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
      "menu popisky popisky popisky popisky popisky"
      "menu stred stred stred stred stred"
      "kto_id info info info na_stranke stranka";
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #2f404a;
}

a:hover {
  text-decoration: underline;
}

img {
  border: 0;
}

div.reset {
  clear: both;
}

table
{
  border-collapse:collapse; 
  border-spacing: 0px;   
  border-style: hidden;  
}



input,select {
  border: 1px solid #ccc;
  outline: none;
}

input:focus, input:hover,select:focus, select:hover {
  border: 1px solid rgb(62,176,224);
}

h1 {
  font-size: 1.2rem;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: solid 1px #ccc;
}

h2 {
  font-size: 1.1rem;
  padding-bottom: 10px;
  /*margin-bottom: 10px;*/
  border-bottom: solid 1px #ccc;
}

h3 {
  font-size: 1.0rem;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.hlaska {
  position: fixed;
  top:7px;
  transform: translateX(50%);
  padding: .5em 1.5em;
  margin-left:auto;
  margin-right:auto;
  right:50%;
  z-index: 99999;
  background-color: rgb(235,112,1);
  color: #fff;
  border-radius: 30px;
  
}

.hlaska_vypni {
  transition: opacity 2s;
  opacity: 0;  
}

.logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img{
   width: 150px;
}

.navigacia {
  grid-area: navigacia;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-color: #efefef;
}

.navigacia .prvok {
  display: inline-block;
  padding: 3px 10px;
}

.navigacia .prvok:last-child {
  font-weight: bold;
}

.hladat {
  grid-area: hladat;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #efefef;
}

.hladat input {
  border-radius: 30px;
  width: 150px;
  padding: 5px 10px 5px 30px;
}

.hladat .fa-hladat {
    position: absolute;
    top: 5px;
    left: 8px;
}

.hladat .fa-zrus, .popisky .fa-zrus {
    position: absolute;
    top: 5px;
    right: 8px;
}

form#hladat {
    position: relative;
}


.prihlaseny {
  grid-area: prihlaseny;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #efefef;
  cursor: pointer;
}

.prihlaseny:hover {
    background-color: rgb(242,244,246)
}

.prihlaseny .fa-login {
  margin-right: 10px;
}

.prihlaseny .fa-down {
  background-size: 25px 25px;
  width: 25px;
}

.prihlaseny .fa-up {
  background-size: 25px 25px;
  width: 25px;
}

.prihlaseny .prihlaseny_menu {
  display: none;
  position: absolute;
  top: 45px;
  right: 0px;
  width: 200px;
  background-color: #fff;
  z-index: 100;
  list-style-type: none;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  max-height: 400px;
 overflow-y: auto;
}

.prihlaseny .prihlaseny_menu li {
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  align-items:center;
}

.prihlaseny .prihlaseny_menu li:hover {
  background-color: rgb(35,175,235);
  color: #fff;
}

.prihlaseny .prihlaseny_menu li .fa {
  width: 15px;
  margin-right: 5px;
}

.menu {
  grid-area: menu;
  background-color: #2f404a;
  color: #fff;  /*#fff*/
  display: flex; /*flex*/
  justify-content: left;
}

.menu .hlavne_menu {
  width: 150px;
  list-style-type: none;
  cursor: pointer;
  margin-top: 0px;
  flex: 1;
  min-height: 0;    /* aj tu dôležité vo flex kontejnery */
  /* nech sa layout nemení, aj keď sa objaví scrollbar */
  scrollbar-gutter: stable; /* kde je podporované */
  
  /* skryť scrollbar (Firefox + starší Edge/IE) */
  -ms-overflow-style: none; 
  scrollbar-width: none; 
  overflow-x: hidden; /* ZMENA: Toto natvrdo zakáže spodný posuvník */
}


/* skryť scrollbar (Chromium/WebKit) */
.hlavne_menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.menu .hlavne_menu {
  padding-right: 10px;
}
.menu .hlavne_menu:hover {
  scrollbar-width: thin; 
  padding-right: 0px;
}
.menu .hlavne_menu:hover::-webkit-scrollbar {
  width: 8px;
}
.menu .hlavne_menu:hover::-webkit-scrollbar-track {
  background: transparent;
}
.menu .hlavne_menu:hover::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.menu .hlavne_menu:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.5);
}


.menu .hlavne_menu li div {
  font-weight: bold;
  display: flex;
  align-items:center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 12px 0 12px 15px;
}

.menu .hlavne_menu li .fa {
  background-size: 25px 25px;
  width: 25px;
  height: 25px;
  margin-right: 5px;
  cursor: pointer;
}

.menu .hlavne_menu li:hover div, .menu .hlavne_menu li li:hover,.menu .hlavne_menu li.aktivne {
  background-color: rgb(35,175,235);
}

.menu .hlavne_menu li.aktivne li {
  background-color: #2f404a;  
}

.menu .hlavne_menu li.aktivne li.aktivne {
  background-color: rgb(35,175,235);
}

.menu .hlavne_menu li.aktivne li:hover {
  background-color: rgb(35,175,235);
}

.menu .hlavne_menu li ul {
  list-style-type: none;
}

.menu .hlavne_menu li ul.zavrete {
  display: none;
}

.menu .hlavne_menu li li {
  padding: 6px 0px 6px 50px;
  font-weight: bold;
}

.prevadzka {
  grid-area: prevadzka;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;    /* left */
  
  /* ZMENA: Namiesto "center" dáme "flex-start", aby sa držali hore */
  align-items: flex-start; 
  /* ZMENA: Pridáme horné odsadenie, aby lícovali s 1. radom tlačidiel */
  padding-top: 8px;
  
  padding-left: 10px;
}

.prevadzka .vyber {
  padding:  6px 6px;
  background-color: #5fc92c;
  background-image: linear-gradient(200deg, #5fc92c 0%, #5fac2c 74%);
  border-radius: 30px;
  width: 27px;
  display: flex;
  align-items:center;
  border: none;
  cursor: pointer;
  margin: 3px;
}

.prevadzka .menu_prevadzky {
    float: left;
    width: 150px;
    margin: 3px; /* margin-right */
}

.prevadzka .menu_datumy {
    float: left;
    margin: 3px; /* margin-right */
}

.prevadzka .menu_datumy input {
  font-size: 16px;
  margin-top: 3px;
}

.prevadzka .vyber:hover {
  background-image: linear-gradient(0deg, #5fc92c 0%, #5fac2c 74%);
}


.tlacidla {
  grid-area: tlacidla;
  display: flex;
  justify-content: flex-end; /* zmenené z 'right' (flex-end je pre flexbox správnejšie) */
  align-items: center;
  padding: 5px 10px; /* pridali sme 5px zhora/zdola, aby pri zalomení lepšie dýchali */
  flex-wrap: wrap; /* TOTO POVOLÍ ZALOMENIE DO ĎALŠIEHO RIADKA */
  gap: 10px; /* Moderná, jednotná medzera medzi prvkami */
}

.tlacidla .fa {
  margin-right: 10px;
}

.tlacidla .tlacidlo {
  padding: 8px 15px;
  background-color: rgb(106,210,255);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: white;
  border-radius: 10px;
  /* margin-left: 15px; --- TOTO ZMAZANE */
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.tlacidla .tlacidlo:hover {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.tlacidla .tlacidlo_orange {
  background-color: rgb(254,197,106);
  background-image: linear-gradient(200deg, rgb(254,197,106) 0%, rgb(235,112,1) 74%);
}

.tlacidla .tlacidlo_orange:hover {
  background-image: linear-gradient(0deg, rgb(254,197,106) 0%, rgb(235,112,1) 74%);
}

.tlacidla .tlacidlo_green {
  background-color: #5fc92c;
  background-image: linear-gradient(200deg, #5fc92c 0%, #5fac2c 74%);
}

.tlacidla .tlacidlo_green:hover {
  background-image: linear-gradient(0deg, #5fc92c 0%, #5fac2c 74%);
}

.tlacidla .tlacidlo_red {
  background-color: #C44848;
  background-image: linear-gradient(200deg, #C44848 0%, #C60000 74%);
}

.tlacidla .tlacidlo_red:hover {
  background-image: linear-gradient(0deg, #C44848 0%, #C60000 74%);
}


.tlacidla a:hover {
    text-decoration: none;
}

.tlacidla .menu_tlacidla {
  display: none;
  position: absolute;
  top: 45px;
  right: 0px;
  width: 260px;         
  background-color: #fff;
  z-index: 92;
  list-style-type: none;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  color: #2f404a;
  max-height: 400px;
  overflow-y: auto;
}

.tlacidla .menu_tlacidla li {
  padding: 6px 0 6px 15px;
  font-weight: bold;
  cursor: pointer;
  white-space: normal; /* povolí zalomenie riadku */
  word-wrap: break-word; /* zalomí dlhé slová */
  overflow-wrap: break-word; /* novší ekvivalent */  
}

.tlacidla .menu_tlacidla li:hover {
  background-color: rgb(35,175,235);
  color: #fff;
}

.tlacidla .menu_tlacidla li.ciara {
  height: 1px;
  padding: 0;
  margin: 0;
  background-color: #ccc;
}

.tlacidla .menu_tlacidla li.ciara:hover {
  background-color: #ccc;
  color: #fff;
}

.menu .hlavne_menu li.ciara,.prihlaseny_menu li.ciara {
  height: 1px;
  padding: 0;
  margin: 0;
  background-color: #ccc;
}

.menu .hlavne_menu li.ciara:hover,.prihlaseny_menu li.ciara:hover {
  background-color: #ccc;
  color: #fff;
}

.popisky {
  grid-area: popisky;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.popisky .popisok {
  position: relative;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 5px 40px 5px 15px;
  margin-right: 15px;
}

.popisky .blue {
  background-color: rgb(35,175,235);
  color: white;
  border: 1px solid rgb(35,175,235);
}

.popisky .orange {
  background-color: rgb(235,112,1);
  color: white;
  border: 1px solid rgb(235,112,1);
}


.popisky .zrus_filtre,.popisky .zrus_filtre a {
  color: white;
  padding: 5px;
}

.stred {
  grid-area: stred;
  background-color: #f2f4f6;
  padding: 20px 0 20px 10px;
  overflow: auto;
}

.kto_id {
  grid-area: kto_id;
  background-color: #2f404a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
}

.info {
  grid-area: info;
  background-color: #efefef;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.9em;
}

.info div {
  display: table;
  margin-right: 30px;
  padding-right: 30px;
  border-right: solid 1px #ccc;
}

.info div:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

.na_stranke {
  grid-area: na_stranke;
  background-color: #efefef;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
}

.na_stranke select {
  font-size: 0.9em;
}

.stranka {
  grid-area: stranka;
  background-color: #efefef;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
}

.stranka input {
  width: 25px;
  font-size: 0.9em;
  text-align: center;
}

.stranka .fa-prev {
  cursor: pointer;
  margin-left: 5px;
}

.stranka .fa-next {
  margin-left: -10px;
  cursor: pointer;
}

#shadow {
  position: absolute;
  width: 100vw;
  height: 100svh;
  opacity: 0.5;
  background-color: #ccc;
  z-index: 90;   
  display: none; 
}

#loading {
  position: fixed;
  top:135px;
  left:150px;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-color: #ccc; /* #ccc */
  z-index: 10000;   
  display: none; 
}

#nahravam {
  width: 32px;
  height: 32px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -16px 0 0 -16px;
  display: none; 
  z-index: 10001;   
}

/*zaciatok rounded slider*/

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  top: 0px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: green;
}

input:focus + .slider {
  box-shadow: 0 0 1px green;
}

input:checked + .slider_blue {
  background-color: blue;
}

input:checked + .slider_black {
  background-color: black;
}

input:checked + .slider_yellow {
  background-color: yellow;
}

input:checked + .slider_red {
  background-color: red;
}


input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}
/*koniec rounded slider*/


a.v_menu {
  color: #fff;
}

a.v_menu:hover {
  text-decoration: none;
}

.panel panel_blue {
    z-index: 1;
}

.panel_posunuty {
  margin-left: 10px;
}

.menu .hlavne_menu .menu_rezervacie .submenu_rezervacie {
  z-index: 2; 
}

.filtre-container {
    display: none;
}
.filtre-content {
    display: none;
}

#rychly_predaj,#cashflow {
  float: left;
  border: solid 1px darkgray;
  width: 30px;
  height: 30px;
  background-image: url("../img/basket.svg");
  background-size: 15px 15px;
  background-repeat:no-repeat;
  background-position: center center;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
}

#rychly_predaj:hover,.rp_oznacene,#cashflow:hover,.cf_oznacene {
  background-color: rgb(35,175,235)
}

#cashflow {
  background-image: url("../img/symbol_euro_icon_w.svg");
}


#hladat_zakazku {
  padding-left: 5px;
  line-height: 21px;
  margin-left: 10px;
  margin-right: 10px;
  width: 130px;
  margin-bottom: 10px;
}

.clickable::after {
  content: "\1F517"; /* ► */
  font-size: 0.8em;
  margin-left: 6px;
  color: #555;
}
 

/*mensi tablet*/
@media only screen and (min-width: 1366px) {
  .mobil,.notebook,.tablet,.tlacidla .mobil,.tlacidla .mobil_tablet,.mobil_tablet {
    display: none;
  }
    body, html {
        overflow-x: hidden;
    }
    body {
        max-width: 100%;
        font-size: 13px;
        margin: 0 auto;
        grid-template-columns: 150px 200px auto auto auto 150px;
        /*grid-template-areas:
            "logo navigacia navigacia navigacia hladat prihlaseny"
            "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
            "menu popisky popisky popisky popisky popisky"
            "menu stred stred stred stred stred"
            "kto_id info info info na_stranke stranka";*/
    }
    
    .tlacidla .tlacidlo {
        font-size: 13px;
        padding: 8px 10px; /* 8px 15px*/
        white-space: nowrap;
        max-widht: 100%;
        /*background-color: rgb(106,210,255);
        background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
        color: white;
        border-radius: 30px;
        margin-left: 15px;
        display: flex;
        align-items:center;
        position: relative;*/
        cursor: pointer; /*nastavi� na pointer*/
    }
    
    .hladat input {
        width: 200px;
    }
    
    /* PRI HOVER: ukáž tenký scrollbar */
    
    .menu {
      min-height: 0;
    }
    
    .hlavne_menu {
       overflow-y: auto;
    }
    
    
    
    .menu .hlavne_menu li li {
      padding-left: 30px;
    }    

}



@media only screen and (min-width: 1024px) and (max-width: 1365px) {
    .mobil,.monitor,.tablet,.tlacidla .mobil,.tlacidla .mobil_tablet,.mobil_tablet {
        display: none;
    }
  
    body, html {
        overflow-x: hidden;
    }
    body {
        max-width: 100%;
        margin: 0 auto;
        height: 100svh;
        overflow: hidden; /* ZAKÁŽE globálne scrollovanie */
        font-size: 12px;
        grid-template-columns: 70px 200px auto auto auto auto;
        grid-template-rows: 70px minmax(50px, auto) minmax(40px, auto) minmax(0, 1fr) 30px;
        grid-template-areas:
            "logo navigacia navigacia navigacia hladat prihlaseny"
            "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
            "menu popisky popisky popisky popisky popisky"
            "menu stred stred stred stred stred"
            "kto_id info info info na_stranke stranka";
        
        /*
        grid-template-columns: 150px 200px auto auto auto auto;
        grid-template-rows: 30px 50px 40px auto 30px;
        grid-template-areas:
            "logo navigacia navigacia navigacia hladat prihlaseny"
            "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
            "menu popisky popisky popisky popisky popisky"
            "menu stred stred stred stred stred"
            "kto_id info info info na_stranke stranka";*/
    }
    
    .tlacidla .tlacidlo {
        font-size: 10px;
        padding: 7px 7px; /* 8px 15px*/
        white-space: nowrap;
        width: auto;
        cursor: pointer; 
    }
    
    /*.menu {
        display: block;
        justify-content: center;
        min-width: 70px;
    }
    .menu .hlavne_menu {
        margin-top: 0px;
    }*/
    
    
    .menu .hlavne_menu li {
        position: relative;
    }
    /*.menu .hlavne_menu .nazov {
        margin-top: 10px;
        padding: 0;
        min-width: 70px;
    } 
    .menu .hlavne_menu li div {
        margin: 10px 0 0 0;
        padding: 10px 0;
        text-align: center;
    }*/
    .menu .hlavne_menu li .fa {
        float: left;
        margin: auto;
    }  
    /*.menu .hlavne_menu ul {
        position: absolute;
        left: 70px;
        background-color: #2f404a;
        width: 150px;
        top: 0;
    }*/
    .menu .hlavne_menu ul li {
        padding-left: 10px;
    }
    
    .tlacidla .menu_tlacidla {
        width: 230px;         
    }
    
    .hladat input {
        width: 150px;
        margin-right: 30px;
    }
    
    #loading {
        left: 70px;
    }
    
    #hladat_zakazku {
      width: 50px;
    }
    
    #rychly_predaj,#cashflow {
      width: 20px;
      height: 20px;
      background-size: 10px 10px;
      margin-top: 10px;
      margin-bottom: 10px;
      margin-left: 10px;
    }    

    /*
    body { 
        height: 100svh;
        font-size: 13px;
        grid-template-columns: 70px 200px 200px auto 150px 150px;
        grid-template-rows: 70px 50px 40px auto 30px;
        grid-template-areas:
            "logo navigacia navigacia navigacia hladat prihlaseny"
            "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
            "menu popisky popisky popisky popisky popisky"
            "menu stred stred stred stred stred"
            "kto_id info info info na_stranke stranka";
     }
     
    #loading {
        top:135px;
        left:70px;
    }  
    */

    .logo img{
        width: 70px;
    } 
     
    /*
    .menu {
        justify-content: center;
    }
    .menu .hlavne_menu {
        margin-top: 0px;
    }
    .menu .hlavne_menu li {
        position: relative;
    }
    .menu .hlavne_menu .nazov {
        margin-top: 10px;
        padding: 0;
        min-width: 70px;
    }
    .menu .hlavne_menu li div {
        margin: 10px 0 0 0;
        padding: 10px 0;
        text-align: center;;
    }
    .menu .hlavne_menu li .fa {
        float: left;
        margin: auto;
    }  
    .menu .hlavne_menu ul {
        position: absolute;
        left: 70px;
        background-color: #2f404a;
        width: 150px;
        top: 0;
    }
    .menu .hlavne_menu ul li {
        padding-left: 10px;
    }
  */
  .tlacidla #novy_popisok,.tlacidla #filter_popisok {
    display: none;
  }
  
  .tlacidla #sklad_nova_zapni, .tlacidla #tlacidlo_filter {
    padding: 8px;
  }   

  .tlacidla #sklad_nova_zapni .fa, .tlacidla #tlacidlo_filter .fa {
    margin-right: 0px;
  }
  
  /* Pridaj tento blok, resp. doplň pravidlá pre menu a hlavne_menu */
  .menu {
      min-height: 0; /* Veľmi dôležité pre CSS Grid, aby neťahal výšku body */
  }
  .menu .hlavne_menu {
      overflow-y: auto;
      height: 100%;
      scrollbar-width: none; /* Skryje posuvník vo Firefoxe */
  }
  

  /* Uprav toto existujúce pravidlo - zmena z absolute na fixed */
  .menu .hlavne_menu ul {
      position: fixed; /* ZMENA: z absolute na fixed */
      left: 70px;
      background-color: #2f404a;
      width: 150px;
      top: 0;
      z-index: 99;
  }
  
  .menu .hlavne_menu li div {
        margin: 0; /* ZRUŠENÝ margin-top 10px, aby hover podfarbil celé tlačidlo */
        padding: 10px 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .menu .hlavne_menu .nazov {
        margin-top: 5px;
        padding: 0 4px; /* Jemné odsadenie z bokov */
        width: 100%;
        display: block;
        overflow: hidden; /* Skryje pretekajúci text */
        text-overflow: ellipsis; /* Pridá tri bodky na koniec dlhých slov */
        white-space: nowrap; /* Zakáže zalamovanie na nový riadok */
    }

}



@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .mobil,.monitor,.notebook,.monitor_notebook,.tlacidla .mobil,.tlacidla .monitor_notebook,.info .monitor_notebook {
    display: none;
  }
    body, html {
        overflow-x: hidden;
    }
    body { 
        height: 100svh;
        overflow: hidden; /* ZAKÁŽE globálne scrollovanie */
        font-size: 12px;
        grid-template-columns: 70px 200px 200px auto 100px 100px;
        grid-template-rows: 70px minmax(50px, auto) minmax(40px, auto) minmax(0, 1fr) 30px;
        grid-template-areas:
            "logo navigacia navigacia navigacia hladat prihlaseny"
            "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
            "menu popisky popisky popisky popisky popisky"
            "menu stred stred stred stred stred"
            "kto_id info info info na_stranke stranka";
    }
  
  #loading {
    top:135px;
    left:70px;
  }  
  
  
  .hladat input {
    width: 130px;
  }
  
  .logo img{
     width: 70px;
  }  
  
  /*.menu {
    justify-content: center;
  }*/
  
  /*.menu .hlavne_menu {
    margin-top: 0px;
  }*/
  
  .menu .hlavne_menu li {
    position: relative;
  }

  /*.menu .hlavne_menu .nazov {
    margin-top: 10px;
    padding: 0;
    min-width: 70px;
  }
  
  .menu .hlavne_menu li div {
    margin: 10px 0 0 0;
    padding: 10px 0;
    text-align: center;;
  }*/
  
  .menu .hlavne_menu li .fa {
    float: left;
    margin: auto;
  }  

  /*.menu .hlavne_menu ul {
    position: absolute;
    left: 70px;
    background-color: #2f404a;
    width: 150px;
    top: 0;
    z-index: 99;
  }*/
  
  .menu .hlavne_menu ul li {
    padding-left: 10px;
  }  
  
  #hladat_zakazku {
    width: 50px;
  }
  
  #rychly_predaj,#cashflow {
    width: 20px;
    height: 20px;
    background-size: 10px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
  }    
    
  .tlacidla .fa {
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    margin-right: 0px;
  }
  
  .tlacidla .tlacidlo {
    padding: 8px 8px;
  }  
  
  /* Uprav a doplň tieto triedy v tejto sekcii */
  .menu {
      justify-content: center;
      min-height: 0; /* Doplnené */
  }

  .menu .hlavne_menu {
      margin-top: 0px;
      overflow-y: auto; /* Doplnené */
      height: 100%; /* Doplnené */
      scrollbar-width: none; /* Doplnené */
  }
  

  /* Uprav existujúce pravidlo pre ul */
  .menu .hlavne_menu ul {
      position: fixed; /* ZMENA: z absolute na fixed */
      left: 70px;
      background-color: #2f404a;
      width: 150px;
      top: 0;
      z-index: 99;
  }
  
  .menu .hlavne_menu li div {
        margin: 0; /* ZRUŠENÝ margin-top 10px, aby hover podfarbil celé tlačidlo */
        padding: 10px 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .menu .hlavne_menu .nazov {
        margin-top: 5px;
        padding: 0 4px; /* Jemné odsadenie z bokov */
        width: 100%;
        display: block;
        overflow: hidden; /* Skryje pretekajúci text */
        text-overflow: ellipsis; /* Pridá tri bodky na koniec dlhých slov */
        white-space: nowrap; /* Zakáže zalamovanie na nový riadok */
    }
 
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .notebook,.monitor,.tablet,.monitor_notebook,.tlacidla .okrem_mobil,.menu .okrem_mobil,.logo .okrem_mobil,.tlacidla .monitor_notebook,.info .monitor_notebook {
    display: none;
  }
    body, html {
        overflow-x: hidden;
    }
    body { 
        height: 100svh;
        max-width: 100%;
        font-size: 10px;
        grid-template-columns: 50px 100px auto 50px;
        
        /* ZMENA: Pridaný jeden 45px riadok a zmenené usporiadanie areas */
        grid-template-rows: 45px 40px 45px 50px auto minmax(0, 1fr) 40px;
        grid-template-areas:
            "menu logo logo prihlaseny"
            "navigacia navigacia hladat hladat"
            "prevadzka prevadzka prevadzka prevadzka"
            "tlacidla tlacidla tlacidla tlacidla"
            "popisky popisky popisky popisky"
            "stred stred stred stred"
            "kto_id info na_stranke stranka";
    }
    /*body { 
        height: 100svh;
        font-size: 10px;    p�vodne 12px
        grid-template-columns: 70px auto 70px 70px;
        grid-template-rows: 45px 40px 40px 50px auto 40px;
        grid-template-areas:
            "menu logo logo prihlaseny"
            "navigacia navigacia hladat hladat"
            "tlacidla tlacidla prevadzka prevadzka"
            "popisky popisky prevadzka prevadzka"
            "stred stred stred stred"
            "kto_id info na_stranke stranka";
    }*/
    
    /* Mobilné skratky (Rýchly predaj, Cashflow, Hľadanie) - vrch menu */
  .menu .hlavne_menu .mobilne_skratky {
      display: flex !important;
      align-items: center;
      padding: 10px 15px;
      border-bottom: 1px solid #ccc;
      background-color: #f2f4f6; /* Jemne šedé pozadie, aby to ladilo k hlavičke */
  }

  /*#rychly_predaj_mobil, #cashflow_mobil {
      border: solid 1px darkgray;
      width: 30px;
      height: 30px;
      background-image: url("../img/basket.svg");
      background-size: 15px 15px;
      background-repeat: no-repeat;
      background-position: center center;
      cursor: pointer;
      margin-right: 10px;
      border-radius: 4px;
      flex-shrink: 0;
  }

  #rychly_predaj_mobil:hover, .rp_oznacene,
  #cashflow_mobil:hover, .cf_oznacene {
      background-color: rgb(35,175,235);
  }

  #cashflow_mobil {
      background-image: url("../img/symbol_euro_icon_w.svg");
  } */

  #hladat_zakazku_mobil {
      flex-grow: 1; /* Roztiahne vyhľadávanie na zvyšný voľný priestor */
      height: 30px;
      border-radius: 30px;
      padding: 0 10px 0 15px;
      border: 1px solid #ccc;
      outline: none;
      width: 100%;
      min-width: 0; 
  }

  #hladat_zakazku_mobil:focus {
      border: 1px solid rgb(62,176,224);
  }
  
  /* Základný stav - načítame nové tmavé ikonky */
  #rychly_predaj_mobil, #cashflow_mobil {
      border: solid 1px darkgray;
      width: 30px;
      height: 30px;
      background-image: url("../img/basket_b.svg"); /* Tu je zmena */
      background-size: 15px 15px;
      background-repeat: no-repeat;
      background-position: center center;
      cursor: pointer;
      margin-right: 10px;
      border-radius: 4px;
      flex-shrink: 0;
  }

  #cashflow_mobil {
      background-image: url("../img/symbol_euro_icon.svg"); /* Tu je zmena */
  }

  /* Hover stav - pozadie zmodrie, vrátime pôvodné biele ikonky */
  #rychly_predaj_mobil:hover, .rp_oznacene {
      background-color: rgb(35,175,235);
      background-image: url("../img/basket.svg"); /* Biela ikona na modrom pozadí */
  }
  
  #cashflow_mobil:hover, .cf_oznacene {
      background-color: rgb(35,175,235);
      background-image: url("../img/symbol_euro_icon_w.svg"); /* Biela ikona na modrom pozadí */
  }
    
    .logo img{
        padding-left: -10px;
        width: 150px;
    }
    
    /*.prevadzka {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: left;
        flex-direction: column;
        white-space: nowrap;
        align-items: right;
        margin-right: 10px;
        padding-left: 70px;
        padding-right: 10px;
        padding-top: 0px;
    }   
    .prevadzka .menu_prevadzky {
        width: 90px;
        margin: 4px 0px;
    }
    .prevadzka #m_prev,.prevadzka select {
        width: 120px;
    }
    .prevadzka .vyber {
        position: relative;
        top: -30px;
        left: 45px;
        float: right;
    }*/
    
    .tlacidla {
        margin-top: 55px;
        margin-left: 8px;
        flex-direction: row-reverse;
    }  
    .tlacidla .fa {
        margin-right: 0;
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }
    .tlacidla .tlacidlo {
        padding: 8px 8px;
        z-index: 20;
    }
    .tlacidla .menu_tlacidla {
        left: -10px;
        width: 150px; 
    }      

    .hladat {
        justify-content: right;
        padding-right: 10px;
    }
    .hladat input {
        width: 120px;
    }
    
    
    .popisky {
        display: none;
    }
    .popisky-mobil {
        display: flex;
        flex-direction: column;
    }
    .popisky-mobil .fa-zrus {
        position: relative;
        top: 3px;
        left: 1px;
    }
    .popisky-mobil .popisok-mobil {
        position: relative;
        border-radius: 30px;
        border: 1px solid #ccc;
        padding: 3px 10px 5px 10px; /* 5px 40px 5px 15px */
        margin: 1px;
    }
    .popisky-mobil .popisok-orange-mobil {
        position: relative;
        border-radius: 30px;
        padding: 5px;
        background-color: rgb(235,112,1);
        color: white;
        border: 1px solid rgb(235,112,1);
        padding: 3px 10px 5px 10px; /* 5px 40px 5px 15px */
        margin: 1px;
    }
    .popisky-mobil .popisok-blue-mobil {
        position: relative;
        border-radius: 30px;
        padding: 5px;
        background-color: rgb(35,175,235);
        color: white;
        border: 1px solid rgb(35,175,235);
        padding: 3px 10px 5px 10px; /* 5px 40px 5px 15px */
        margin: 1px;
    }
    
    .filtre-container {
        position: fixed;
        top: 90px;
        right: 10px; 
        display: inline-block;
        background-color: rgb(106,210,255);
        background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
        color: white;
        border-radius: 16px; /* 30px*/
        margin-left: 13px;
        font-size: 13px;
        padding: 7px;
        padding-left: 9px;
        padding-right: 9px;
        cursor: pointer;
        z-index: 30;
    }    
    .filtre-content {
        display: none; 
        position: absolute;
        list-style-type: none;
        background-color: #fff;
        box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
        color: #2f404a;
        padding: 10px;
        right: 1px;
        width: max-content;
        margin-top: 15px;
        z-index: inherit;
    }
    .filtre-container .filtre-content .filtre-text {
        display: flex;
        position: relative;
        border-radius: 30px;
        border: 1px solid #ccc;
        padding: 3px 10px 5px 10px; /* 5px 40px 5px 15px */
        margin: 1px;
    }
    .filtre-container:hover .filtre-content {
        display: block;
    }
    .filtre-container:hover {
        background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
    }
    
    /*.prevadzka {
        position: absolute;
        top: 85px;
        left: -60px;
        display: flex;
        flex-wrap: wrap;
        
        align-items: center; 
        padding-top: 0px;
    }
    .prevadzka .vyber {
        margin-right: 20px;
        margin-left: 5px;
        top: 1px;
        left: -8px;
    }
    .prevadzka .menu_prevadzky {
        margin-right: 15px;
    }*/
    
  /* Definitívne a stabilné vrátenie pôvodného vzhľadu bez posunov */
    .prevadzka {
        grid-area: prevadzka;
        display: flex;
        flex-wrap: wrap;
        align-items: center; 
        justify-content: flex-start; /* Zarovná roletky pekne zľava */
        padding: 5px 70px 0 10px; /* 10px odstup zľava, 70px sprava kvôli tlačidlu Filtre */
        width: 100%;
    }
    
    .prevadzka form {
        display: block; 
    }
    
    .prevadzka .menu_prevadzky {
        margin-right: 15px !important;
        display: inline-block; /* Aby správne fungovala šírka vedľa seba */
        vertical-align: middle;
        width: auto;
    }
    
    .prevadzka select {
        width: 120px !important; /* Tvoja pôvodná poctivá šírka roletiek */
    }
    
    .prevadzka .vyber {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        margin: 0 !important;
    } 
  
  #loading {
    top:175px;
    left:0px;
  }  
  
  
  .menu {
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    background-color: #fff;
  }
  
  .tlacidla {
    justify-content: left;
    padding: 0px;
  }
  
  .popisky {
    padding: 0px;
  }
  
 
  .prihlaseny, .prihlaseny:hover {
    background-color: #fff;
  }
  
  .prihlaseny .prihlaseny_menu, .menu .hlavne_menu {
    width: 100vw;
    background-color: #fff;
    position: absolute;
    top: 45px;
    right: 0px;
    margin-top: 0px;
    z-index: 100;
    color: #2f404a;
  } 
  
  a.v_menu {
  color: #2f404a;
}

  
  .menu .hlavne_menu ul, .menu .hlavne_menu ul {
    background-color: white;
  }
  
  .prihlaseny .prihlaseny_menu li {
    padding: 14px 20px;
  }

  .menu .hlavne_menu {
    display: none;
    height: calc(100dvh - 85px);
    overflow-y: auto;
  }
  
  .menu .hlavne_menu li .fa,.prihlaseny .prihlaseny_menu li .fa {
    background-size: 25px 25px;
    width: 25px;
    height: 25px;
    margin-right: 15px;
    margin-left: 15px;
  }
  
  .menu .hlavne_menu li.aktivne li {
    background-color: #fff;  
  }
  
  
  /*.tlacidla {
    flex-direction: row-reverse;
  }  

  .tlacidla .fa {
    margin-right: 0;
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
  }
  
  .tlacidla .tlacidlo {
    padding: 8px 8px;
    margin-right: 5px;
    margin-left: 0;
  }
  
  .tlacidla .menu_tlacidla {
    left: 0px;
  }  */
  
  .popisky .popisok {
    margin-right: 5px;
  }
  
  /* .prevadzka {
    justify-content: right;
    align-items: center;
    padding-left: 0px;
    padding-right: 10px;
    flex-direction: column;
    padding-top: 5px;
  }   
  
  .prevadzka .menu_prevadzky {
      width: 90px;
      margin: 4px 0px;
  }
  
  .prevadzka #m_prev,.prevadzka select {
      width: 120px;
  }
  
  .prevadzka .vyber {
    margin-top: 4px;
    float: right;
  }    */
    
  .info div {
    margin-right: 6px;
    padding-right: 10px;
    font-size: 10px;
  }
  
  .na_stranke select {
    max-width: 70px;
    font-size: 10px;
  }
  
 
  .stranka input {
    width: 15px;
    font-size: 10px;
  }  
  
  .stranka .fa-prev {
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    margin-left: 0px;
  }
  
  .stranka .fa-next {
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }  
  
  .tlacidla {
        grid-area: tlacidla;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* ZMENA: Zákaz zalamovania pod seba! */
        overflow-x: auto; /* ZMENA: Povolí horizontálne posúvanie prstom, ak je ich veľa */
        align-items: center;
        justify-content: flex-start;
        padding: 5px 10px;
        margin: 0; /* Zrušíme staré posuny */
        gap: 10px;
        scrollbar-width: none; /* Skryje posuvník vo Firefoxe, ale scrollovanie ostane funkčné */
    }
    
    .tlacidla::-webkit-scrollbar {
        display: none; /* Skryje posuvník v Chrome/Safari */
    }

    .tlacidla .tlacidlo {
        padding: 8px 8px;
        flex-shrink: 0; /* ZMENA: Zabráni stláčaniu ikoniek, keď je ich veľa */
        margin: 0; 
        z-index: 20;
    }
  
}

.menu .hlavne_menu li div .nazov_zakaznici {
  color: #f39c12;
}

.menu .hlavne_menu li:hover div .nazov_zakaznici,.menu .hlavne_menu li.aktivne div .nazov_zakaznici {
  color: #fff;
}


/* =========================================
   MENU ZOSKUPIŤ - zvýraznenie ID a väzbových stĺpcov
   ========================================= */
.tlacidla .menu_tlacidla li.zoskupit_special_stlpec {
  border-left: 4px solid #C60000;
  background-color: rgba(198, 0, 0, 0.08);
  color: #C60000;
  font-weight: bold;
  padding-left: 11px;
}

.tlacidla .menu_tlacidla li.zoskupit_special_stlpec:hover {
  background-color: #C60000;
  color: #fff;
}

/* =========================================
   MOBIL - modulové rozbaľovacie menu nad horizontálnym scrollom tlačidiel
   ========================================= */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .tlacidla .menu_tlacidla {
    position: fixed;
    top: 175px;
    left: 10px;
    right: auto;
    width: min(260px, calc(100vw - 20px));
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
  }

  .tlacidla .tlacidlo,
  .tlacidla .menu_tlacidla li {
    touch-action: manipulation;
  }
}

/* =========================================
   POPISKY FILTROV - editácia dátumových filtrov a rýchly dátum
   ========================================= */
.popisky .popisok.popisok_filter_edit {
  cursor: pointer;
  padding-right: 62px;
}

.popisky .popisok.popisok_filter_edit:hover {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.22) inset;
}

.popisky .popisok .popisok-upravit-filter {
  position: absolute;
  top: 5px;
  right: 28px;
  width: 15px;
  height: 15px;
  margin: 0;
  opacity: 0.9;
}

.popisky .popisok .popisok-upravit-filter:hover {
  opacity: 1;
}

.popisky-mobil .popisok_filter_edit {
  cursor: pointer;
}

.popisky-mobil .popisok-upravit-filter {
  position: relative;
  top: 3px;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  opacity: 0.9;
}


/* =========================================
   RÝCHLY DÁTUMOVÝ FILTER V HORNEJ LIŠTE
   ========================================= */
.hladat.hladat_s_rychlym_datumom {
  justify-content: flex-end;
  gap: 8px;
  padding: 0 8px;
}

.hladat.hladat_s_rychlym_datumom form#hladat {
  flex: 0 0 auto;
}

.hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
  width: 145px;
}

.hladat .spnext-rychly-datum-riadok {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.hladat .spnext-rychly-datum-form {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 2px 5px 2px 8px;
  border: 1px solid #cfd7dd;
  border-radius: 30px;
  background-color: #fff;
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.hladat .spnext-rychly-datum-nazov {
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2f404a;
  font-size: 12px;
  font-weight: bold;
}

.hladat .spnext-rychly-datum-form label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #61717c;
  font-size: 12px;
  line-height: 1;
}

.hladat .spnext-rychly-datum-form input[type="date"] {
  width: 112px;
  height: 23px;
  min-height: 23px;
  padding: 1px 3px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 21px;
}

.hladat .spnext-rychly-datum-ok,
.hladat .spnext-rychly-datum-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  line-height: 24px;
  text-decoration: none;
}

.hladat .spnext-rychly-datum-ok {
  background-color: #5fc92c;
  background-image: linear-gradient(200deg, #5fc92c 0%, #5fac2c 74%);
  color: #fff;
}

.hladat .spnext-rychly-datum-clear {
  background-color: rgb(254,197,106);
  background-image: linear-gradient(200deg, rgb(254,197,106) 0%, rgb(235,112,1) 74%);
  color: #fff;
}

.hladat .spnext-rychly-datum-ok:hover {
  background-image: linear-gradient(0deg, #5fc92c 0%, #5fac2c 74%);
  text-decoration: none;
}

.hladat .spnext-rychly-datum-clear:hover {
  background-image: linear-gradient(0deg, rgb(254,197,106) 0%, rgb(235,112,1) 74%);
  text-decoration: none;
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .hladat.hladat_s_rychlym_datumom {
    gap: 5px;
    padding: 0 5px;
  }

  .hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
    width: 105px;
    margin-right: 0;
  }

  .hladat .spnext-rychly-datum-nazov {
    display: none;
  }

  .hladat .spnext-rychly-datum-form {
    gap: 3px;
    padding-left: 6px;
  }

  .hladat .spnext-rychly-datum-form label {
    font-size: 11px;
  }

  .hladat .spnext-rychly-datum-form input[type="date"] {
    width: 103px;
    font-size: 10px;
  }
}

@media only screen and (max-width: 1023px) {
  .hladat .spnext-rychly-datum-riadok {
    display: none !important;
  }
}


/* Rýchly dátum je v hlavičke pri hľadaní iba na dvoch najvyšších rozlíšeniach. */
@media only screen and (min-width: 1366px) {
  body {
    grid-template-areas:
        "logo navigacia navigacia hladat hladat prihlaseny"
        "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
        "menu popisky popisky popisky popisky popisky"
        "menu stred stred stred stred stred"
        "kto_id info info info na_stranke stranka";
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  body {
    grid-template-areas:
        "logo navigacia navigacia hladat hladat prihlaseny"
        "menu prevadzka prevadzka tlacidla tlacidla tlacidla"
        "menu popisky popisky popisky popisky popisky"
        "menu stred stred stred stred stred"
        "kto_id info info info na_stranke stranka";
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .hladat.hladat_s_rychlym_datumom {
    gap: 0;
    padding-right: 10px;
  }

  .hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
    width: 130px;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .hladat.hladat_s_rychlym_datumom {
    gap: 0;
    padding-right: 10px;
  }

  .hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
    width: 120px;
  }
}


/* =========================================
   SP NEXT V5 FINAL - stabilizácia hlavičky a editácia popiskov filtrov
   ========================================= */
.popisky .popisok.popisok_filter_edit,
.popisky-mobil .popisok_filter_edit {
  cursor: pointer;
}

.prevadzka form#filter_prev {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
}

.prevadzka .menu_prevadzky,
.prevadzka .menu_datumy {
  float: none;
  flex: 0 0 auto;
}

.prevadzka .vyber {
  justify-content: center;
  flex: 0 0 27px;
  height: 27px;
}

.prihlaseny .prihlaseny_menu {
  width: auto;
  min-width: 170px;
  max-width: 240px;
  right: 8px;
}

.prihlaseny .prihlaseny_menu li {
  white-space: nowrap;
  padding: 9px 12px;
}

.prihlaseny .prihlaseny_menu li .fa {
  margin-right: 7px;
}

@media only screen and (min-width: 1366px) {
  body {
    grid-template-columns: 150px 200px minmax(120px, 1fr) minmax(420px, max-content) minmax(160px, max-content) 135px;
  }

  .prihlaseny {
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .prevadzka form#filter_prev {
    flex-wrap: nowrap;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  body {
    grid-template-columns: 70px 185px minmax(80px, 1fr) minmax(300px, max-content) minmax(120px, max-content) 105px;
    grid-template-rows: 52px minmax(50px, auto) minmax(40px, auto) minmax(0, 1fr) 30px;
  }

  .logo img {
    width: 52px;
    max-height: 52px;
    object-fit: contain;
  }

  .navigacia,
  .hladat,
  .prihlaseny {
    min-width: 0;
  }

  .navigacia {
    overflow: hidden;
    white-space: nowrap;
  }

  .navigacia .prvok {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hladat.hladat_s_rychlym_datumom {
    justify-content: flex-end;
    gap: 5px;
    padding: 0 5px;
  }

  .hladat .spnext-rychly-datum-form {
    gap: 3px;
    padding: 2px 4px 2px 6px;
  }

  .hladat .spnext-rychly-datum-form input[type="date"] {
    width: 98px;
  }

  .hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
    width: 100px;
    margin-right: 0;
  }

  .prihlaseny {
    justify-content: flex-start;
    gap: 6px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
  }

  .prihlaseny .fa-login {
    margin-right: 0;
  }

  .prihlaseny .prihlaseny_menu {
    top: 52px;
    right: 4px;
    min-width: 150px;
    max-width: 210px;
  }

  .tlacidla {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 8px;
    padding: 5px 8px;
    min-width: 0;
    align-content: center;
    scrollbar-width: none;
  }

  .tlacidla::-webkit-scrollbar {
    display: none;
  }

  .tlacidla .monitor_notebook {
    display: none;
  }

  .tlacidla .tlacidlo {
    flex: 0 0 auto;
    padding: 8px;
  }

  .tlacidla .tlacidlo .fa {
    margin-right: 0;
  }

  .prevadzka {
    min-width: 0;
    align-items: flex-start;
    padding-top: 6px;
  }

  .prevadzka form#filter_prev {
    flex-wrap: nowrap;
  }

  .prevadzka .menu_prevadzky {
    max-width: calc(50% - 12px);
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1120px) {
  .hladat .spnext-rychly-datum-form label span {
    display: none;
  }

  .hladat .spnext-rychly-datum-form input[type="date"] {
    width: 92px;
  }

  .hladat.hladat_s_rychlym_datumom form#hladat input[type="text"] {
    width: 90px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    grid-template-rows: 52px minmax(50px, auto) minmax(40px, auto) minmax(0, 1fr) 30px;
  }

  .logo img {
    width: 52px;
    max-height: 52px;
    object-fit: contain;
  }

  .navigacia,
  .hladat,
  .prihlaseny {
    min-width: 0;
  }

  .navigacia {
    overflow: hidden;
    white-space: nowrap;
  }

  .navigacia .prvok {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .prihlaseny {
    justify-content: flex-start;
    gap: 6px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
  }

  .prihlaseny .prihlaseny_menu {
    top: 52px;
    right: 4px;
    min-width: 150px;
    max-width: 210px;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prevadzka form#filter_prev {
    display: block;
  }

  .prihlaseny .prihlaseny_menu {
    top: 45px;
    right: 0;
    width: 100vw;
    min-width: 0;
    max-width: none;
  }
}

/* =========================================
   SP NEXT V6 - doladenie hornej lišty, tlačidla Nový a výberu prevádzky
   ========================================= */

/* Hľadanie držíme vpravo a kompaktne aj v moduloch bez horného dátumovníka. */
@media only screen and (min-width: 768px) {
  .hladat:not(.hladat_s_rychlym_datumom) {
    justify-content: flex-end;
    padding: 0 8px;
  }

  .hladat:not(.hladat_s_rychlym_datumom) form#hladat {
    flex: 0 0 auto;
  }

  .hladat:not(.hladat_s_rychlym_datumom) form#hladat input[type="text"] {
    width: 145px;
    margin-right: 0;
  }
}

@media only screen and (min-width: 1366px) {
  .hladat:not(.hladat_s_rychlym_datumom) form#hladat input[type="text"] {
    width: 150px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .hladat:not(.hladat_s_rychlym_datumom) form#hladat input[type="text"] {
    width: 125px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .hladat:not(.hladat_s_rychlym_datumom) form#hladat input[type="text"] {
    width: 125px;
  }
}

/* V užšom notebookovom rozlíšení nesmie zmiznúť tlačidlo Nový.
   Text tlačidiel skryjeme veľkosťou písma, ale samotné tlačidlá a ikonky ostanú klikateľné. */
@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .tlacidla > .tlacidlo.monitor_notebook {
    display: inline-flex !important;
  }

  .tlacidla .tlacidlo {
    justify-content: center;
    min-width: 34px;
    font-size: 0;
  }

  .tlacidla .tlacidlo > .monitor_notebook,
  .tlacidla .tlacidlo #novy_popisok,
  .tlacidla .tlacidlo #filter_popisok {
    display: none !important;
  }

  .tlacidla .tlacidlo .fa {
    margin-right: 0;
    font-size: 13px;
  }

  .tlacidla .tlacidlo .menu_tlacidla,
  .tlacidla .tlacidlo .menu_tlacidla li {
    font-size: 12px;
  }
}

/* Na menších šírkach nech je Nový vždy medzi prvými viditeľnými akciami,
   aby neskončil skrytý za okrajom alebo za horizontálnym scrollom tlačidiel. */
@media only screen and (min-width: 768px) and (max-width: 1365px) {
  .tlacidla > #sklad_nova_zapni,
  .tlacidla > #sklad_novy_predaj_zapni,
  .tlacidla > .tlacidlo_green.mobil_tablet {
    order: -1;
  }
}

/* Stabilizácia výberu prevádzky: zelená fajka ostane samostatný prvok,
   nesmie sa podsúvať pod select ani pod multiselect wrapper. */
.prevadzka form#filter_prev {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
}

.prevadzka .vyber {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  flex-shrink: 0;
  justify-content: center;
  margin: 3px !important;
}

.prevadzka .menu_prevadzky,
.prevadzka .menu_datumy {
  position: relative;
  z-index: 1;
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .prevadzka form#filter_prev {
    flex-wrap: wrap;
  }

  .prevadzka .menu_prevadzky {
    max-width: none;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prevadzka form#filter_prev {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .prevadzka .menu_prevadzky {
    margin-right: 6px !important;
  }
}

/* =========================================
   SP NEXT V7 - jemné doladenie breakpointov po teste UI
   ========================================= */

/* Notebook 1024–1365 px: vrátime texty na bežné modulové tlačidlá.
   Ikonové ostávajú iba Nový a Filter, ako v pôvodnom správaní. */
@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .tlacidla .tlacidlo {
    justify-content: center;
    min-width: 0;
    width: auto;
    font-size: 12px;
    line-height: 16px;
    padding: 8px 10px;
  }

  .tlacidla .tlacidlo > .monitor_notebook {
    display: inline-flex !important;
    align-items: center;
  }

  .tlacidla .tlacidlo .fa {
    margin-right: 8px;
  }

  .tlacidla #tlacidlo_filter,
  .tlacidla #sklad_nova_zapni,
  .tlacidla #sklad_novy_predaj_zapni {
    min-width: 34px;
    font-size: 0;
    padding: 8px;
  }

  .tlacidla #tlacidlo_filter > .monitor_notebook,
  .tlacidla #sklad_nova_zapni #novy_popisok,
  .tlacidla #sklad_novy_predaj_zapni span {
    display: none !important;
  }

  .tlacidla #tlacidlo_filter .fa,
  .tlacidla #sklad_nova_zapni .fa,
  .tlacidla #sklad_novy_predaj_zapni .fa {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
    margin-right: 0;
  }
}

/* Tablet 768–1023 px: tlačidlo Nový nech ostane na konci akcií, nie na začiatku. */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .tlacidla > #sklad_nova_zapni,
  .tlacidla > #sklad_novy_predaj_zapni,
  .tlacidla > .tlacidlo_green.mobil_tablet {
    order: 99;
  }
}

/* Mobil: pri dvoch výberoch v prevádzke/zozname nesmie formulár zbytočne vyrobiť
   bočný presah. Selecty sa môžu jemne zúžiť, zelená fajka ostáva viditeľná. */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prevadzka {
    overflow: visible;
  }

  .prevadzka form#filter_prev {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    max-width: calc(100vw - 82px);
    overflow: visible;
  }

  .prevadzka .menu_prevadzky {
    flex: 1 1 112px;
    min-width: 0;
    max-width: 122px;
    margin-right: 5px !important;
  }

  .prevadzka .menu_prevadzky select,
  .prevadzka .menu_prevadzky .ms-options-wrap,
  .prevadzka .menu_prevadzky .ms-options-wrap > button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .prevadzka .vyber {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
  }

  /* V responzívnom náhľade prehliadača sa často zobrazuje pravý scrollbar tabuľkovej časti.
     Na reálnom dotykovom mobile býva prekrytý systémom, ale tu ho zjemníme/skryjeme vertikálne.
     Horizontálny posuv tabuľky nechávame viditeľný. */
  .stred::-webkit-scrollbar {
    width: 0;
    height: 8px;
  }
}

/* =========================================
   SP NEXT V8 - mobil: multiselect prevádzka/sklad nad modulovými tlačidlami
   =========================================
   Na mobile vie rozbalený multiselect z riadku prevádzky zasiahnuť do riadku
   modulových tlačidiel. Tlačidlá majú vlastný z-index, preto sa dropdown
   mohol vizuálne prekryť ikonami. Dvíhame iba oblasť výberov prevádzky
   v mobilnom breakpointe, logika formulára sa nemení.
*/
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prevadzka {
    position: relative;
    z-index: 60;
  }

  .prevadzka .menu_prevadzky {
    position: relative;
    z-index: 80;
  }

  .prevadzka .menu_prevadzky .ms-options-wrap {
    position: relative;
    z-index: 81;
  }

  .prevadzka .menu_prevadzky .ms-options-wrap > .ms-options {
    z-index: 82;
    max-height: min(60vh, 360px);
    overflow-y: auto;
  }

  .prevadzka .vyber {
    z-index: 70;
  }
}

/* =========================================
   SP NEXT V9 - posledné doladenie notebookového poradia a mobilného scrollu
   =========================================
   Zásah je zámerne iba v CSS:
   - v notebookovom breakpointe vraciame tlačidlo Nový/+ na koniec akcií,
   - na mobile blokujeme scrollbar celej stránky, scrollovať má vnútorný obsah .stred.
*/

/* Notebook 1024–1365 px: zelené tlačidlo Nový/+ má ostať poslednou akciou,
   nie prvou. Prepisuje starší ochranný order:-1 z V6, ale iba v tomto breakpointe. */
@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .tlacidla > #sklad_nova_zapni,
  .tlacidla > #sklad_novy_predaj_zapni,
  .tlacidla > .tlacidlo_green.mobil_tablet {
    order: 99 !important;
  }
}

/* Mobil: stránka samotná nesmie mať vlastný vertikálny scrollbar.
   Vertikálny aj horizontálny posuv má riešiť iba vnútorná tabuľková časť .stred. */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    height: 100svh !important;
    max-height: 100svh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  body {
    min-width: 0 !important;
  }

  .stred {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Skryjeme len vertikálny scrollbar obsahu v Chromium/Safari náhľadoch.
     Horizontálny spodný scrollbar tabuľky nechávame použiteľný. */
  .stred::-webkit-scrollbar {
    width: 0;
    height: 8px;
  }
}

/* =========================================
   SP NEXT V10 - mobil: rozkliknutie tlačidla Filtre
   =========================================
   Po zdvihnutí vrstvy .prevadzka kvôli mobilnému multiselectu vedela jej
   priehľadná plocha prekryť pevné tlačidlo Filtre. Preto nechávame klikateľné
   iba reálne prvky výberu a samotné tlačidlo Filtre dvíhame nad túto vrstvu.
   Zároveň JS vo v10 obsluhuje aj class selektory .filtre-container/.filtre-content,
   pretože HTML ich používa ako triedy, nie ako id.
*/
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prevadzka {
    pointer-events: none;
  }

  .prevadzka form#filter_prev,
  .prevadzka .menu_prevadzky,
  .prevadzka .menu_datumy,
  .prevadzka .vyber,
  .prevadzka .ms-options-wrap,
  .prevadzka .ms-options-wrap > button,
  .prevadzka .ms-options-wrap > .ms-options {
    pointer-events: auto;
  }

  .filtre-container {
    z-index: 140;
    pointer-events: auto;
  }

  .filtre-container .filtre-content {
    z-index: 141;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
}

/* =========================================
   SP NEXT V11 - cashflow: dátum pod prevádzkou
   =========================================
   Iba cashflow formulár v hornej lište: existujúci reset vo formulári
   použijeme ako zalomenie riadku, takže dátum od-do ide pod výber prevádzky.
*/
.prevadzka form#filter_prev.cashflow_filter_prev {
  flex-wrap: wrap !important;
  align-items: flex-start;
  align-content: flex-start;
}

.prevadzka form#filter_prev.cashflow_filter_prev > .reset {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.prevadzka form#filter_prev.cashflow_filter_prev .menu_datumy {
  margin-top: 2px;
}

.prevadzka form#filter_prev.cashflow_filter_prev .menu_datumy input {
  margin-top: 0;
}


/* =========================================
   SP NEXT V12 - prepínanie prihlásených používateľov
   =========================================
   Vizuálne odlíšenie aktívneho používateľa, neklikateľný nadpis sekcie,
   plnohodnotné klikateľné riadky a upravené prihlasovacie modal okno.
*/

.prihlaseny .prihlaseny_menu {
  width: 290px;
  min-width: 270px;
  max-width: min(320px, calc(100vw - 16px));
  right: 8px;
  border: 1px solid rgba(47,64,74,0.10);
  border-radius: 0 0 10px 10px;
  overflow-x: hidden;
  box-shadow: 0 8px 24px rgba(47,64,74,0.22);
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background-color: #f2f4f6;
  border-top: 1px solid #e2e7eb;
  border-bottom: 1px solid #dce3e8;
  color: #61717c;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.035em;
  line-height: 16px;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_heading:hover {
  background-color: #f2f4f6;
  color: #61717c;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_heading_count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #cbd5dc;
  border-radius: 11px;
  background-color: #fff;
  color: #2f404a;
  font-size: 11px;
  line-height: 20px;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_item {
  display: block;
  padding: 0;
  color: #2f404a;
  cursor: default;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_item:hover {
  color: #2f404a;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_form {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #2f404a;
  font: inherit;
  font-weight: bold;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button:hover,
.prihlaseny .prihlaseny_menu .spnext_multi_user_button:focus-visible {
  background-color: rgb(35,175,235);
  color: #fff;
  text-decoration: none;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.82);
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e8edf0;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_icon .fa {
  width: 15px;
  height: 15px;
  margin: 0;
  background-size: 15px 15px;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button:hover .spnext_multi_user_icon,
.prihlaseny .prihlaseny_menu .spnext_multi_user_button:focus-visible .spnext_multi_user_icon {
  background-color: rgba(255,255,255,0.94);
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_item_active {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-left: 4px solid #5fac2c;
  background-color: rgba(95,172,44,0.09);
  color: #2f404a;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_item_active:hover {
  background-color: rgba(95,172,44,0.09);
  color: #2f404a;
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_item_active .spnext_multi_user_icon {
  background-color: rgba(95,172,44,0.16);
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_active_label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(95,172,44,0.38);
  border-radius: 10px;
  background-color: #fff;
  color: #4a8429;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  white-space: nowrap;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_active_dot {
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #5fac2c;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_switch_hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #f2f4f6;
  color: #61717c;
  font-size: 22px;
  font-weight: normal;
  line-height: 20px;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button:hover .spnext_multi_user_switch_hint,
.prihlaseny .prihlaseny_menu .spnext_multi_user_button:focus-visible .spnext_multi_user_switch_hint {
  background-color: rgba(255,255,255,0.94);
  color: rgb(35,175,235);
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_add_item {
  border-top: 1px solid #edf0f2;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_add_symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(35,175,235,0.13);
  color: rgb(35,175,235);
  font-size: 22px;
  font-weight: normal;
  line-height: 30px;
}

.prihlaseny .prihlaseny_menu .spnext_multi_user_button:hover .spnext_multi_user_add_symbol,
.prihlaseny .prihlaseny_menu .spnext_multi_user_button:focus-visible .spnext_multi_user_add_symbol {
  background-color: rgba(255,255,255,0.94);
  color: rgb(35,175,235);
}

.prihlaseny .prihlaseny_menu li.spnext_multi_user_database_item .spnext_multi_user_button {
  min-height: 38px;
  padding: 7px 12px;
}

#spnext_multi_user_modal[hidden] {
  display: none !important;
}

#spnext_multi_user_modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background-color: rgba(47,64,74,0.68);
  backdrop-filter: blur(2px);
}

#spnext_multi_user_dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  border: 1px solid rgba(47,64,74,0.14);
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,0.34);
  overflow-x: hidden;
  overflow-y: auto;
}

#spnext_multi_user_dialog .spnext_multi_user_modal_header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 13px;
  padding: 22px 22px 18px 22px;
  border-top: 4px solid rgb(35,175,235);
  border-bottom: 1px solid #dfe5e9;
  background-color: #f8fbfd;
}

#spnext_multi_user_dialog .spnext_multi_user_modal_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(35,175,235,0.13);
}

#spnext_multi_user_dialog .spnext_multi_user_modal_icon .fa {
  width: 19px;
  height: 19px;
  margin: 0;
  background-size: 19px 19px;
}

#spnext_multi_user_dialog .spnext_multi_user_modal_heading {
  min-width: 0;
}

#spnext_multi_user_dialog h2 {
  margin: 1px 0 5px 0;
  padding: 0;
  border: 0;
  color: #2f404a;
  font-size: 18px;
  line-height: 24px;
}

#spnext_multi_user_dialog .spnext_multi_user_note {
  margin: 0;
  color: #61717c;
  font-size: 13px;
  line-height: 1.4;
}

#spnext_multi_user_dialog .spnext_multi_user_close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 0 2px 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: #61717c;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: normal;
  line-height: 30px;
  cursor: pointer;
}

#spnext_multi_user_dialog .spnext_multi_user_close:hover,
#spnext_multi_user_dialog .spnext_multi_user_close:focus-visible {
  background-color: #e7edf1;
  color: #2f404a;
  outline: none;
}

#spnext_multi_user_dialog .spnext_multi_user_modal_form {
  display: block;
  padding: 21px 24px 0 24px;
}

#spnext_multi_user_dialog .spnext_multi_user_field {
  margin-bottom: 16px;
}

#spnext_multi_user_dialog .spnext_multi_user_field label {
  display: block;
  margin: 0 0 6px 0;
  color: #2f404a;
  font-size: 13px;
  font-weight: bold;
  line-height: 18px;
}

#spnext_multi_user_dialog .spnext_multi_user_field input[type="text"],
#spnext_multi_user_dialog .spnext_multi_user_field input[type="password"] {
  display: block;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #c5d0d7;
  border-radius: 8px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#spnext_multi_user_dialog .spnext_multi_user_field input[type="text"]:hover,
#spnext_multi_user_dialog .spnext_multi_user_field input[type="password"]:hover {
  border-color: #8fbfd4;
}

#spnext_multi_user_dialog .spnext_multi_user_field input[type="text"]:focus,
#spnext_multi_user_dialog .spnext_multi_user_field input[type="password"]:focus {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 3px rgba(35,175,235,0.16);
  outline: none;
}

#spnext_multi_user_dialog .spnext_multi_user_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 22px -24px 0 -24px;
  padding: 15px 24px;
  border-top: 1px solid #dfe5e9;
  background-color: #f8fbfd;
}

#spnext_multi_user_dialog .spnext_multi_user_actions button {
  min-height: 38px;
  margin: 0;
  padding: 8px 15px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
}

#spnext_multi_user_dialog .spnext_multi_user_cancel {
  border: 1px solid #c5d0d7;
  background-color: #fff;
  color: #2f404a;
}

#spnext_multi_user_dialog .spnext_multi_user_cancel:hover,
#spnext_multi_user_dialog .spnext_multi_user_cancel:focus-visible {
  border-color: #9fadb6;
  background-color: #eef2f4;
  outline: none;
}

#spnext_multi_user_dialog .spnext_multi_user_submit {
  border: 0;
  background-color: rgb(106,210,255);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: #fff;
}

#spnext_multi_user_dialog .spnext_multi_user_submit:hover,
#spnext_multi_user_dialog .spnext_multi_user_submit:focus-visible {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  outline: none;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prihlaseny .prihlaseny_menu {
    top: 45px;
    right: 0;
    width: 100vw;
    min-width: 0;
    max-width: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .prihlaseny .prihlaseny_menu li.spnext_multi_user_heading {
    padding: 11px 18px;
  }

  .prihlaseny .prihlaseny_menu li.spnext_multi_user_item_active {
    padding: 10px 18px;
  }

  .prihlaseny .prihlaseny_menu .spnext_multi_user_button {
    min-height: 52px;
    padding: 10px 18px;
  }

  #spnext_multi_user_modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }

  #spnext_multi_user_dialog {
    max-width: 100%;
    max-height: none;
    margin: max(8px, env(safe-area-inset-top)) auto max(8px, env(safe-area-inset-bottom)) auto;
    border-radius: 12px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_modal_header {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 18px 16px 15px 16px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_modal_icon {
    width: 38px;
    height: 38px;
  }

  #spnext_multi_user_dialog h2 {
    font-size: 17px;
    line-height: 22px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_modal_form {
    padding: 18px 16px 0 16px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_actions {
    flex-direction: column-reverse;
    align-items: stretch;
    margin: 20px -16px 0 -16px;
    padding: 14px 16px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_actions button {
    width: 100%;
  }
}


/* =========================================
   SP NEXT - ZARIADENIA A PRIHLÁSENIA
   ========================================= */
.spnext-devices-page {
  width: calc(100% - 20px);
  max-width: 1500px;
  margin: 0 10px 30px 0;
  color: #2f404a;
}

.spnext-devices-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.spnext-devices-heading h1 {
  margin-bottom: 5px;
}

.spnext-devices-heading p,
.spnext-devices-section-heading p,
.spnext-devices-settings-main p {
  margin: 0;
  color: #687985;
  line-height: 1.45;
}

.spnext-devices-database {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #dbe2e7;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,0.06);
  white-space: nowrap;
}

.spnext-devices-settings-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 520px);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #dbe2e7;
  border-left-width: 6px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(47,64,74,0.08);
}

.spnext-devices-settings-enabled {
  border-left-color: #5fac2c;
}

.spnext-devices-settings-disabled {
  border-left-color: #aeb8c2;
}

.spnext-devices-settings-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.spnext-devices-settings-main h2 {
  margin: 0 0 7px 0;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
}

.spnext-devices-settings-status-icon {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #eef2f4;
  color: #7a8992;
  font-size: 19px;
  font-weight: bold;
}

.spnext-devices-settings-enabled .spnext-devices-settings-status-icon {
  background-color: rgba(95,172,44,0.14);
  color: #4f9525;
}

.spnext-devices-settings-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) auto;
  gap: 10px;
  align-items: end;
}

.spnext-devices-settings-form > label,
.spnext-device-approval-form > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-weight: bold;
}

.spnext-devices-settings-form input[type="number"],
.spnext-device-approval-form input[type="text"],
.spnext-device-approval-form input[type="number"],
.spnext-device-approval-form select,
.spnext-device-secondary-actions input[type="text"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cdd6dc;
  border-radius: 7px;
  background-color: #fff;
  font: inherit;
  box-sizing: border-box;
}

.spnext-devices-setting-switch-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #dbe2e7;
  border-radius: 7px;
  background-color: #f8fafb;
}

.spnext-devices-days-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.spnext-devices-days-input input {
  max-width: 100px;
}

.spnext-devices-enable-warning {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #f1cb8b;
  border-radius: 8px;
  background-color: #fff8eb;
  color: #6e4a13;
  line-height: 1.4;
}

.spnext-devices-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.spnext-devices-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #dbe2e7;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 9px rgba(47,64,74,0.05);
}

.spnext-devices-summary span {
  color: #667781;
  font-weight: bold;
}

.spnext-devices-summary strong {
  font-size: 1.55rem;
  line-height: 1;
}

.spnext-devices-info-banner {
  margin: -4px 0 16px 0;
  padding: 10px 13px;
  border: 1px solid #d7e5ee;
  border-left: 4px solid rgb(35,175,235);
  border-radius: 8px;
  background-color: #f5fbfe;
  line-height: 1.4;
}

.spnext-devices-section {
  margin-top: 22px;
}

.spnext-devices-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.spnext-devices-section-heading h2 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  font-size: 1.08rem;
}

.spnext-devices-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  background-color: #e7edf1;
  font-weight: bold;
}

.spnext-devices-count-green {
  background-color: rgba(95,172,44,0.16);
  color: #4f9525;
}

.spnext-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 14px;
  align-items: start;
}

.spnext-device-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe2e7;
  border-top: 5px solid #aeb8c2;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(47,64,74,0.07);
}

.spnext-device-card-pending {
  border-top-color: rgb(235,112,1);
}

.spnext-device-card-approved {
  border-top-color: #5fac2c;
}

.spnext-device-card-expired {
  border-top-color: #d59a2e;
}

.spnext-device-card-rejected,
.spnext-device-card-revoked {
  border-top-color: #C60000;
}

.spnext-device-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px 16px;
}

.spnext-device-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.spnext-device-browser-icon {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background-color: #eef4f7;
  font-size: 20px;
}

.spnext-device-title-wrap h3 {
  margin: 0 0 3px 0;
  padding: 0;
  overflow: hidden;
  color: #2f404a;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-subtitle {
  overflow: hidden;
  color: #73838d;
  font-size: .9em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.spnext-device-badge,
.spnext-device-live-badge,
.spnext-device-idle-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 11px;
  font-size: .78em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-device-badge-current {
  background-color: rgba(35,175,235,0.14);
  color: #147ca8;
}

.spnext-device-badge-pending {
  background-color: rgba(235,112,1,0.13);
  color: #a65300;
}

.spnext-device-badge-approved,
.spnext-device-live-badge {
  background-color: rgba(95,172,44,0.15);
  color: #4d9026;
}

.spnext-device-badge-expired {
  background-color: rgba(213,154,46,0.15);
  color: #956515;
}

.spnext-device-badge-rejected,
.spnext-device-badge-revoked {
  background-color: rgba(198,0,0,0.11);
  color: #a30000;
}

.spnext-device-idle-badge {
  background-color: #edf1f3;
  color: #73818a;
}

.spnext-device-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 12px 16px;
  padding: 8px 10px;
  border: 1px dashed #b9c5cc;
  border-radius: 8px;
  background-color: #fafcfd;
}

.spnext-device-code-row span {
  color: #6d7d87;
  font-size: .86em;
  font-weight: bold;
}

.spnext-device-code-row code {
  color: #2f404a;
  font-family: Consolas, Monaco, monospace;
  font-size: 1.02em;
  font-weight: bold;
  letter-spacing: .08em;
  user-select: all;
}

.spnext-device-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 16px 13px 16px;
  overflow: hidden;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  background-color: #e3e8eb;
}

.spnext-device-meta-grid > div {
  min-width: 0;
  padding: 8px 10px;
  background-color: #fff;
}

.spnext-device-meta-grid span,
.spnext-device-meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-meta-grid span {
  margin-bottom: 3px;
  color: #7b8992;
  font-size: .8em;
}

.spnext-device-meta-grid strong {
  font-size: .9em;
  font-weight: 600;
}

.spnext-device-session-section {
  margin: 0 16px 14px 16px;
}

.spnext-device-session-section h4 {
  margin: 0 0 7px 0;
  font-size: .9em;
}

.spnext-device-sessions {
  border: 1px solid #e0e6e9;
  border-radius: 8px;
  overflow: hidden;
}

.spnext-device-session {
  display: grid;
  grid-template-columns: 10px minmax(120px, 1fr) minmax(100px, .8fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-bottom: 1px solid #e8ecef;
  background-color: #fff;
  font-size: .87em;
}

.spnext-device-session:last-child {
  border-bottom: 0;
}

.spnext-device-session-active {
  background-color: #f8fcf5;
}

.spnext-device-session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #aeb8c2;
}

.spnext-device-session-active .spnext-device-session-dot {
  background-color: #5fac2c;
  box-shadow: 0 0 0 3px rgba(95,172,44,0.12);
}

.spnext-device-session-main {
  min-width: 0;
}

.spnext-device-session-main strong,
.spnext-device-session-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-session-main small {
  margin-top: 2px;
  color: #788791;
}

.spnext-device-session-branch,
.spnext-device-session-time {
  overflow: hidden;
  color: #61727d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-no-session {
  padding: 9px 10px;
  border: 1px dashed #ccd6dc;
  border-radius: 8px;
  background-color: #fafcfd;
  color: #71808a;
  font-size: .87em;
}

.spnext-device-actions {
  border-top: 1px solid #e1e7ea;
  background-color: #f8fafb;
}

.spnext-device-approval-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(95px, .5fr) minmax(170px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 13px 16px;
}

.spnext-device-approval-form label > span,
.spnext-devices-settings-form label > span:first-child {
  color: #566873;
  font-size: .82em;
}

.spnext-device-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 0 16px 14px 16px;
}

.spnext-device-secondary-actions form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spnext-device-secondary-actions input[type="text"] {
  width: 210px;
}

.spnext-device-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.spnext-device-button-primary {
  background-color: rgb(35,175,235);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: #fff;
}

.spnext-device-button-primary:hover {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.spnext-device-button-danger {
  background-color: #C60000;
  background-image: linear-gradient(200deg, #C44848 0%, #C60000 74%);
  color: #fff;
}

.spnext-device-button-muted {
  border-color: #c7d0d6;
  background-color: #e9eef1;
  color: #2f404a;
}

.spnext-device-button-outline {
  border-color: #9baab3;
  background-color: #fff;
  color: #2f404a;
}

.spnext-device-button-muted:hover,
.spnext-device-button-outline:hover {
  border-color: rgb(35,175,235);
  background-color: #f1f9fd;
}

.spnext-devices-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd5db;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.65);
  color: #6c7d87;
  text-align: center;
}

.spnext-devices-section-collapsed details {
  border: 1px solid #dbe2e7;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.65);
}

.spnext-devices-section-collapsed summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: bold;
}

.spnext-devices-section-collapsed details[open] summary {
  border-bottom: 1px solid #dbe2e7;
}

.spnext-devices-section-collapsed .spnext-devices-grid {
  padding: 14px;
}

.spnext-devices-events-section {
  margin-bottom: 25px;
}

.spnext-devices-events-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe2e7;
  border-radius: 10px;
  background-color: #fff;
}

.spnext-devices-events-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border-style: solid;
}

.spnext-devices-events-table th,
.spnext-devices-events-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e5eaed;
  text-align: left;
  vertical-align: top;
}

.spnext-devices-events-table th {
  background-color: #f2f4f6;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-devices-events-table tr:last-child td {
  border-bottom: 0;
}

.spnext-devices-events-table tbody tr:hover td {
  background-color: #f5fbfe;
}

@media only screen and (max-width: 1250px) {
  .spnext-devices-settings-card {
    grid-template-columns: 1fr;
  }

  .spnext-devices-settings-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  }

  .spnext-device-approval-form {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .spnext-device-approval-form .spnext-device-button {
    align-self: end;
  }
}

@media only screen and (max-width: 900px) {
  .spnext-devices-page {
    width: calc(100% - 10px);
    margin-right: 0;
  }

  .spnext-devices-heading {
    display: block;
  }

  .spnext-devices-database {
    margin-top: 9px;
  }

  .spnext-devices-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .spnext-devices-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spnext-device-session {
    grid-template-columns: 10px minmax(120px, 1fr) auto;
  }

  .spnext-device-session-branch,
  .spnext-device-session-time {
    grid-column: 2 / -1;
  }

  .spnext-device-live-badge,
  .spnext-device-idle-badge {
    grid-column: 3;
    grid-row: 1;
  }
}

@media only screen and (max-width: 650px) {
  .spnext-devices-page {
    width: 100%;
    margin: 0 0 25px 0;
  }

  .spnext-devices-settings-card {
    padding: 14px;
  }

  .spnext-devices-settings-form,
  .spnext-device-approval-form {
    grid-template-columns: 1fr;
  }

  .spnext-devices-enable-warning {
    display: block;
  }

  .spnext-devices-enable-warning strong,
  .spnext-devices-enable-warning span {
    display: block;
  }

  .spnext-devices-enable-warning span {
    margin-top: 4px;
  }

  .spnext-device-card-header {
    display: block;
  }

  .spnext-device-badges {
    justify-content: flex-start;
    margin-top: 9px;
  }

  .spnext-device-meta-grid {
    grid-template-columns: 1fr;
  }

  .spnext-device-code-row {
    display: block;
  }

  .spnext-device-code-row code {
    display: block;
    margin-top: 4px;
  }

  .spnext-device-secondary-actions,
  .spnext-device-secondary-actions form {
    display: block;
  }

  .spnext-device-secondary-actions form {
    margin-top: 7px;
  }

  .spnext-device-secondary-actions input[type="text"],
  .spnext-device-secondary-actions .spnext-device-button {
    width: 100%;
    margin-top: 6px;
  }

  .spnext-devices-summary {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   SP NEXT - ZARIADENIA V2
   Kompaktný zoznam, filtre, detail zariadenia a oprava ikony v používateľskom menu
   ========================================= */

/* Používateľské menu má na bielom podklade tmavú ikonu a na modrom hoveri bielu. */
.prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link .spnext_device_user_menu_icon {
  flex: 0 0 15px;
  width: 15px;
  min-width: 15px;
  height: 15px;
  margin-right: 7px;
}

.prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link .spnext_device_user_menu_icon_hover {
  display: none;
}

.prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link:hover .spnext_device_user_menu_icon_default {
  display: none;
}

.prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link:hover .spnext_device_user_menu_icon_hover {
  display: inline-block;
}

.spnext-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.spnext-devices-compact-list {
  min-width: 0;
  border: 1px solid #dbe2e7;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(47,64,74,0.06);
  overflow: hidden;
}

.spnext-devices-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid #e1e7ea;
  background-color: #f8fafb;
}

.spnext-devices-list-toolbar label {
  display: flex;
  flex: 0 1 180px;
  flex-direction: column;
  gap: 5px;
  min-width: 145px;
  color: #566873;
  font-size: .84em;
  font-weight: bold;
}

.spnext-devices-list-toolbar .spnext-devices-list-search {
  flex: 1 1 300px;
  min-width: 230px;
}

.spnext-devices-list-toolbar .spnext-devices-list-page-size {
  flex: 0 0 92px;
  min-width: 92px;
}

.spnext-devices-list-toolbar input,
.spnext-devices-list-toolbar select {
  width: 100%;
  min-height: 35px;
  padding: 6px 9px;
  border: 1px solid #cdd6dc;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  box-sizing: border-box;
}

.spnext-devices-list-toolbar input:focus,
.spnext-devices-list-toolbar select:focus {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 2px rgba(35,175,235,0.11);
}

.spnext-devices-filter-reset {
  flex: 0 0 auto;
  margin-left: auto;
}

.spnext-devices-table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
}

.spnext-devices-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  border-style: solid;
  table-layout: auto;
}

.spnext-devices-table th,
.spnext-devices-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #e5eaed;
  text-align: left;
  vertical-align: middle;
}

.spnext-devices-table th {
  background-color: #f2f4f6;
  color: #455762;
  font-size: .86em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-devices-table th:first-child,
.spnext-devices-table td:first-child {
  min-width: 250px;
}

.spnext-devices-table th:nth-child(2),
.spnext-devices-table td:nth-child(2) {
  min-width: 190px;
}

.spnext-devices-table th:nth-child(3),
.spnext-devices-table td:nth-child(3),
.spnext-devices-table th:nth-child(4),
.spnext-devices-table td:nth-child(4) {
  min-width: 150px;
}

.spnext-devices-table th:last-child,
.spnext-devices-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background-color: #fff;
  box-shadow: -7px 0 10px -10px rgba(47,64,74,0.55);
}

.spnext-devices-table th:last-child {
  z-index: 2;
  background-color: #f2f4f6;
}

.spnext-devices-table-row {
  cursor: pointer;
  outline: none;
}

.spnext-devices-table-row:hover td,
.spnext-devices-table-row:focus td {
  background-color: #f3fafe;
}

.spnext-devices-table-row:hover td:last-child,
.spnext-devices-table-row:focus td:last-child {
  background-color: #f3fafe;
}

.spnext-devices-table-row:focus-visible td {
  box-shadow: inset 0 2px 0 rgb(35,175,235), inset 0 -2px 0 rgb(35,175,235);
}

.spnext-devices-table-row-current td:first-child {
  border-left: 4px solid rgb(35,175,235);
  padding-left: 7px;
}

.spnext-devices-table-row[hidden],
.spnext-devices-table-no-results[hidden] {
  display: none;
}

.spnext-devices-table-no-results td {
  padding: 24px;
  background-color: #fafcfd;
  color: #6c7d87;
  text-align: center;
}

.spnext-devices-table-device {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.spnext-device-browser-icon-small {
  flex-basis: 31px;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  font-size: 16px;
}

.spnext-devices-table-device-text,
.spnext-devices-table-account {
  display: block;
  min-width: 0;
}

.spnext-devices-table-device-text strong,
.spnext-devices-table-device-text small,
.spnext-devices-table-device-text code,
.spnext-devices-table-account strong,
.spnext-devices-table-account small {
  display: block;
  max-width: 245px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-devices-table-device-text strong,
.spnext-devices-table-account strong {
  color: #2f404a;
  font-weight: 600;
}

.spnext-devices-table-device-text small,
.spnext-devices-table-account small {
  margin-top: 2px;
  color: #74848e;
  font-size: .84em;
}

.spnext-devices-table-device-text code {
  margin-top: 3px;
  color: #63737d;
  font-family: Consolas, Monaco, monospace;
  font-size: .78em;
  letter-spacing: .04em;
}

.spnext-devices-table-current-badge {
  margin-top: 6px;
}

.spnext-device-activity-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #71808a;
  font-size: .78em;
  font-weight: bold;
}

.spnext-device-activity-text::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #aeb8c2;
}

.spnext-device-activity-active {
  color: #4d9026;
}

.spnext-device-activity-active::before {
  background-color: #5fac2c;
  box-shadow: 0 0 0 3px rgba(95,172,44,0.12);
}

.spnext-device-activity-connected {
  color: #8a681c;
}

.spnext-device-activity-connected::before {
  background-color: #d59a2e;
}

.spnext-devices-table-nowrap {
  white-space: nowrap;
}

.spnext-devices-table-action {
  width: 1%;
  text-align: right !important;
  white-space: nowrap;
}

.spnext-device-detail-button {
  min-height: 31px;
  padding: 5px 10px;
}

.spnext-devices-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 8px 14px;
  border-top: 1px solid #e1e7ea;
  background-color: #f8fafb;
  color: #667781;
  font-size: .88em;
}

.spnext-devices-pagination,
.spnext-devices-events-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.spnext-devices-page-buttons,
.spnext-devices-events-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spnext-devices-page-button,
.spnext-devices-page-number,
.spnext-devices-events-page-numbers a,
.spnext-devices-events-page-numbers strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cbd5db;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  font-weight: bold;
  line-height: 28px;
  text-decoration: none;
  box-sizing: border-box;
}

button.spnext-devices-page-button,
button.spnext-devices-page-number {
  cursor: pointer;
}

.spnext-devices-page-button:hover:not(:disabled),
.spnext-devices-page-number:hover,
.spnext-devices-events-page-numbers a:hover {
  border-color: rgb(35,175,235);
  background-color: #f1f9fd;
  text-decoration: none;
}

.spnext-devices-page-number-active,
.spnext-devices-events-page-numbers strong {
  border-color: rgb(35,175,235);
  background-color: rgb(35,175,235);
  color: #fff;
}

.spnext-devices-page-button:disabled,
.spnext-devices-page-button-disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.spnext-devices-page-ellipsis,
.spnext-devices-events-page-numbers > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #7b8992;
}

.spnext-devices-page-label,
.spnext-devices-events-page-label {
  margin: 0 3px;
  white-space: nowrap;
}

.spnext-devices-collapsed-content {
  padding: 14px;
}

.spnext-devices-section-collapsed .spnext-devices-compact-list {
  box-shadow: none;
}

/* Detail je jeden spoločný formulár. Zoznam 50 prevádzok sa preto nevykresľuje 70-krát. */
body.spnext-device-detail-modal-open {
  overflow: hidden !important;
}

.spnext-device-detail-modal[hidden] {
  display: none !important;
}

.spnext-device-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.spnext-device-detail-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.spnext-device-detail-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(24,36,44,0.62);
}

.spnext-device-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #d6dfe4;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
  outline: none;
  transform: translateY(8px) scale(.99);
  transition: transform .12s ease;
}

.spnext-device-detail-modal-visible .spnext-device-detail-dialog {
  transform: translateY(0) scale(1);
}

.spnext-device-detail-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #edf1f3;
  color: #42545f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.spnext-device-detail-close:hover {
  background-color: rgb(35,175,235);
  color: #fff;
}

.spnext-device-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 58px 15px 18px;
  border-bottom: 1px solid #e1e7ea;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
}

.spnext-device-detail-header h2 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  color: #2f404a;
  font-size: 1.2rem;
}

.spnext-device-detail-body {
  padding: 17px 18px 18px 18px;
}

.spnext-device-detail-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 9px 11px;
  border: 1px dashed #b9c5cc;
  border-radius: 8px;
  background-color: #fafcfd;
}

.spnext-device-detail-code span {
  color: #6d7d87;
  font-size: .86em;
  font-weight: bold;
}

.spnext-device-detail-code code {
  color: #2f404a;
  font-family: Consolas, Monaco, monospace;
  font-size: 1.03em;
  font-weight: bold;
  letter-spacing: .08em;
  user-select: all;
}

.spnext-device-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e3e8eb;
  border-radius: 9px;
  background-color: #e3e8eb;
}

.spnext-device-detail-meta-grid > div {
  min-width: 0;
  padding: 9px 10px;
  background-color: #fff;
}

.spnext-device-detail-meta-grid span,
.spnext-device-detail-meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spnext-device-detail-meta-grid span {
  margin-bottom: 3px;
  color: #7b8992;
  font-size: .8em;
}

.spnext-device-detail-meta-grid strong {
  font-size: .9em;
  font-weight: 600;
}

.spnext-device-detail-sessions-section {
  margin: 0 0 15px 0;
}

.spnext-device-detail-sessions-section h3 {
  margin: 0 0 7px 0;
  padding: 0;
  border: 0;
  font-size: .95em;
}

.spnext-device-detail-edit-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(110px, .45fr) minmax(210px, 1fr) auto;
  gap: 9px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dfe6ea;
  border-radius: 10px;
  background-color: #f8fafb;
}

.spnext-device-detail-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #566873;
  font-size: .84em;
  font-weight: bold;
}

.spnext-device-detail-edit-form input,
.spnext-device-detail-edit-form select,
.spnext-device-detail-secondary-actions input[type="text"] {
  width: 100%;
  min-height: 35px;
  padding: 6px 9px;
  border: 1px solid #cdd6dc;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  box-sizing: border-box;
}

.spnext-device-detail-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.spnext-device-detail-secondary-actions form {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 7px;
}

.spnext-device-detail-secondary-actions form[hidden] {
  display: none !important;
}

.spnext-device-detail-secondary-actions input[type="text"] {
  width: 250px;
}

.spnext-device-detail-close-secondary {
  margin-left: auto;
}

.spnext-devices-events-pagination {
  justify-content: center;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe2e7;
  border-radius: 9px;
  background-color: #f8fafb;
}

@media only screen and (max-width: 1100px) {
  .spnext-devices-list-toolbar label {
    flex-basis: 165px;
  }

  .spnext-device-detail-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spnext-device-detail-edit-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .spnext-device-detail-edit-form .spnext-device-button {
    width: 100%;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-devices-list-toolbar {
    padding: 11px;
  }

  .spnext-devices-list-toolbar label,
  .spnext-devices-list-toolbar .spnext-devices-list-search {
    flex: 1 1 210px;
    min-width: 0;
  }

  .spnext-devices-filter-reset {
    margin-left: 0;
  }

  .spnext-devices-list-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .spnext-devices-pagination {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .spnext-device-detail-modal {
    align-items: flex-start;
    padding: 8px;
  }

  .spnext-device-detail-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .spnext-device-detail-header {
    display: block;
    padding: 14px 52px 13px 14px;
  }

  .spnext-device-detail-header .spnext-device-badges {
    justify-content: flex-start;
    margin-top: 9px;
  }

  .spnext-device-detail-body {
    padding: 13px;
  }

  .spnext-device-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spnext-device-detail-edit-form {
    grid-template-columns: 1fr;
  }

  .spnext-device-detail-secondary-actions,
  .spnext-device-detail-secondary-actions form {
    display: block;
    width: 100%;
  }

  .spnext-device-detail-secondary-actions form {
    margin-top: 8px;
  }

  .spnext-device-detail-secondary-actions input[type="text"],
  .spnext-device-detail-secondary-actions .spnext-device-button {
    width: 100%;
    margin-top: 6px;
  }

  .spnext-device-detail-close-secondary {
    margin-left: 0;
  }

  .spnext-devices-events-pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media only screen and (max-width: 480px) {
  .spnext-devices-list-toolbar label,
  .spnext-devices-list-toolbar .spnext-devices-list-search,
  .spnext-devices-list-toolbar .spnext-devices-list-page-size,
  .spnext-devices-filter-reset {
    flex: 1 1 100%;
    width: 100%;
  }

  .spnext-device-detail-code {
    display: block;
  }

  .spnext-device-detail-code code {
    display: block;
    margin-top: 4px;
  }

  .spnext-device-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .spnext-devices-page-label,
  .spnext-devices-events-page-label {
    display: none;
  }
}

.prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link .spnext_device_user_menu_icon {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .prihlaseny .prihlaseny_menu li.spnext_device_user_menu_link .spnext_device_user_menu_icon {
    flex-basis: 25px;
    width: 25px;
    min-width: 25px;
    height: 25px;
    margin-right: 15px;
    margin-left: 15px;
    background-size: 25px 25px;
  }
}

/* =========================================
   ZARIADENIA V4 - schválenie natrvalo
   ========================================= */
.spnext-devices-settings-form {
  grid-template-columns: minmax(180px, 1fr) minmax(225px, .9fr) auto;
}

.spnext-device-approval-form {
  grid-template-columns: minmax(150px, 1.15fr) minmax(220px, .85fr) minmax(170px, 1fr) auto;
}

.spnext-device-detail-edit-form {
  grid-template-columns: minmax(190px, 1.15fr) minmax(220px, .8fr) minmax(210px, 1fr) auto;
}

.spnext-device-validity-field {
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #566873;
  font-weight: bold;
}

.spnext-device-validity-field legend {
  width: 100%;
  margin: 0 0 5px 0;
  padding: 0;
  color: #566873;
  font-size: .82em;
  line-height: 1.2;
}

.spnext-device-detail-edit-form .spnext-device-validity-field legend {
  font-size: .84em;
}

.spnext-device-validity-options {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.spnext-device-validity-days,
.spnext-device-permanent-option {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-weight: normal !important;
}

.spnext-device-validity-days {
  flex: 1 1 105px;
}

.spnext-device-validity-days input[type="number"] {
  width: 82px !important;
  min-width: 70px;
  max-width: 92px;
  flex: 1 1 82px;
}

.spnext-device-validity-days > span {
  color: #566873;
  white-space: nowrap;
}

.spnext-device-permanent-option {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d5dee4;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.spnext-device-permanent-option:hover {
  border-color: rgb(35,175,235);
  background-color: #f6fbfe;
}

.spnext-device-permanent-option input[type="checkbox"],
.spnext-device-detail-edit-form .spnext-device-permanent-option input[type="checkbox"] {
  appearance: auto;
  width: 16px !important;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: #5fac2c;
  cursor: pointer;
}

.spnext-device-validity-field > small {
  display: none;
  margin-top: 5px;
  color: #5b7f48;
  font-size: .78em;
  font-weight: normal;
  line-height: 1.25;
}

.spnext-device-validity-field.spnext-device-validity-permanent > small {
  display: block;
}

.spnext-device-validity-permanent .spnext-device-permanent-option {
  border-color: rgba(95,172,44,.55);
  background-color: rgba(95,172,44,.1);
  color: #477d27;
  font-weight: bold !important;
}

.spnext-device-validity-permanent .spnext-device-validity-days {
  opacity: .48;
}

.spnext-device-validity-days input[type="number"]:disabled {
  cursor: not-allowed;
  background-color: #eef2f4;
}

@media only screen and (max-width: 1250px) {
  .spnext-devices-settings-form {
    grid-template-columns: repeat(2, minmax(210px, 1fr)) auto;
  }

  .spnext-device-approval-form {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media only screen and (max-width: 650px) {
  .spnext-devices-settings-form,
  .spnext-device-approval-form,
  .spnext-device-detail-edit-form {
    grid-template-columns: 1fr;
  }

  .spnext-device-validity-options {
    flex-wrap: wrap;
  }

  .spnext-device-validity-days {
    flex: 1 1 110px;
  }
}

@media only screen and (max-width: 1100px) {
  .spnext-device-detail-edit-form {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media only screen and (max-width: 760px) {
  .spnext-device-detail-edit-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ZARIADENIA V4.1 - stabilná šírka formulára nastavení
   =========================================
   Na širokom zobrazení mal pravý blok formulára menšiu šírku než súčet
   prepínača, platnosti a tlačidla. Tlačidlo preto mohlo presiahnuť pravý
   okraj karty. Zväčšujeme iba pravý stĺpec tejto jednej karty a zachovávame
   existujúce responzívne zalomenie pod 1250 px.
*/
@media only screen and (min-width: 1251px) {
  .spnext-devices-settings-card {
    grid-template-columns: minmax(260px, 1fr) minmax(550px, 590px);
  }

  .spnext-devices-settings-form {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(165px, .8fr) minmax(225px, 1fr) max-content;
  }

  .spnext-devices-settings-form > .spnext-device-button {
    justify-self: end;
  }
}

/* =========================================
   SP NEXT - dvojfaktorové overenie (TOTP)
   ========================================= */
.spnext-mfa-page {
  width: calc(100% - 10px);
  max-width: 1420px;
  margin: 0 10px 20px 0;
  color: #2f404a;
}

.spnext-mfa-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.spnext-mfa-page-header h1 {
  margin-bottom: 6px;
}

.spnext-mfa-page-header p,
.spnext-mfa-card-header p {
  margin: 0;
  color: #647681;
  line-height: 1.45;
}

.spnext-mfa-database-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,.06);
  white-space: nowrap;
}

.spnext-mfa-system-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #df9b9b;
  border-left: 5px solid #C60000;
  border-radius: 9px;
  background-color: #fff3f3;
  line-height: 1.45;
}

.spnext-mfa-card {
  margin-bottom: 15px;
  border: 1px solid #d9e1e6;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(47,64,74,.07);
  overflow: hidden;
}

.spnext-mfa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ebef;
  background-color: #fbfcfd;
}

.spnext-mfa-card-header h2 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
}

.spnext-mfa-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.spnext-mfa-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.12);
  color: rgb(35,175,235);
  font-size: 21px;
  font-weight: bold;
}

.spnext-mfa-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 14px;
  font-size: .84em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-mfa-state-active {
  background-color: rgba(95,172,44,.14);
  color: #477d27;
}

.spnext-mfa-state-disabled {
  background-color: #edf1f3;
  color: #5d6e78;
}

.spnext-mfa-state-reset {
  background-color: rgba(235,112,1,.13);
  color: #a34f00;
}

.spnext-mfa-disabled-layout,
.spnext-mfa-active-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: center;
  padding: 20px 18px;
}

.spnext-mfa-disabled-info strong,
.spnext-mfa-active-summary strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.03em;
}

.spnext-mfa-disabled-info p,
.spnext-mfa-active-summary span {
  display: block;
  margin: 0 0 7px 0;
  line-height: 1.5;
}

.spnext-mfa-muted {
  color: #70818b;
  font-size: .9em;
}

.spnext-mfa-start-form,
.spnext-mfa-confirm-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dfe6ea;
  border-radius: 9px;
  background-color: #f8fafb;
}

.spnext-mfa-start-form label,
.spnext-mfa-confirm-form label,
.spnext-mfa-admin-dialog label {
  font-weight: bold;
  color: #4a5c67;
}

.spnext-mfa-start-form input,
.spnext-mfa-confirm-form input,
.spnext-mfa-admin-dialog input,
.spnext-mfa-inline-fields input,
.spnext-mfa-admin-toolbar input,
.spnext-mfa-admin-toolbar select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #cdd7dd;
  border-radius: 7px;
  background-color: #fff;
  box-sizing: border-box;
  font: inherit;
}

.spnext-mfa-confirm-form input[name="spnext_mfa_code"],
.spnext-mfa-inline-fields input[name="spnext_mfa_code"] {
  font-family: Consolas, Monaco, monospace;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: .12em;
  text-align: center;
}

.spnext-mfa-start-form input:focus,
.spnext-mfa-confirm-form input:focus,
.spnext-mfa-admin-dialog input:focus,
.spnext-mfa-inline-fields input:focus,
.spnext-mfa-admin-toolbar input:focus,
.spnext-mfa-admin-toolbar select:focus {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 3px rgba(35,175,235,.12);
}

.spnext-mfa-primary-button,
.spnext-mfa-secondary-button,
.spnext-mfa-danger-button,
.spnext-mfa-table-button,
.spnext-mfa-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.spnext-mfa-primary-button {
  background-color: rgb(35,175,235);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: #fff;
}

.spnext-mfa-primary-button:hover {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.spnext-mfa-primary-button:disabled,
.spnext-mfa-start-form input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.spnext-mfa-secondary-button,
.spnext-mfa-copy-button,
.spnext-mfa-table-button {
  border: 1px solid #c9d3d9;
  background-color: #fff;
  color: #2f404a;
}

.spnext-mfa-secondary-button:hover,
.spnext-mfa-copy-button:hover,
.spnext-mfa-table-button:hover {
  border-color: rgb(35,175,235);
  background-color: #f4fbfe;
}

.spnext-mfa-danger-button,
.spnext-mfa-table-button-danger {
  background-color: #C44848;
  background-image: linear-gradient(200deg, #C44848 0%, #C60000 74%);
  color: #fff;
}

.spnext-mfa-danger-button:hover,
.spnext-mfa-table-button-danger:hover {
  border-color: transparent;
  background-image: linear-gradient(0deg, #C44848 0%, #C60000 74%);
  color: #fff;
}

.spnext-mfa-active-summary dl {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dfe6ea;
  border-radius: 9px;
  background-color: #f8fafb;
}

.spnext-mfa-active-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.spnext-mfa-active-summary dt {
  color: #6b7c86;
}

.spnext-mfa-active-summary dd {
  margin: 0;
  font-weight: bold;
}

.spnext-mfa-danger-details {
  margin: 0 18px 18px 18px;
  border: 1px solid #ead5d5;
  border-radius: 9px;
  background-color: #fffafa;
}

.spnext-mfa-danger-details summary {
  padding: 11px 14px;
  color: #9f2727;
  font-weight: bold;
  cursor: pointer;
}

.spnext-mfa-danger-details form {
  padding: 0 14px 14px 14px;
}

.spnext-mfa-danger-details p {
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.spnext-mfa-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.spnext-mfa-inline-fields label {
  display: grid;
  gap: 5px;
  font-weight: bold;
}

.spnext-mfa-setup-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 230px minmax(250px, .8fr);
  gap: 20px;
  align-items: start;
  padding: 20px 18px 14px 18px;
}

.spnext-mfa-setup-steps h3 {
  margin: 0 0 10px 0;
  padding: 0;
}

.spnext-mfa-setup-steps ol {
  margin: 0 0 12px 20px;
  line-height: 1.55;
}

.spnext-mfa-setup-steps li {
  margin-bottom: 6px;
}

.spnext-mfa-setup-warning {
  padding: 10px 12px;
  border-left: 4px solid rgb(235,112,1);
  border-radius: 6px;
  background-color: #fff7ea;
  line-height: 1.4;
}

.spnext-mfa-qr-column {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.spnext-mfa-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  padding: 10px;
  border: 1px solid #d8e1e6;
  border-radius: 10px;
  background-color: #fff;
  box-sizing: border-box;
}

.spnext-mfa-qr img,
.spnext-mfa-qr canvas {
  max-width: 100%;
  height: auto !important;
}

.spnext-mfa-secret-block {
  width: 100%;
  text-align: center;
}

.spnext-mfa-secret-block > span {
  display: block;
  margin-bottom: 5px;
  color: #647681;
  font-size: .84em;
  font-weight: bold;
}

.spnext-mfa-secret-block code {
  display: block;
  padding: 8px;
  border: 1px dashed #aeb8c2;
  border-radius: 7px;
  background-color: #f8fafb;
  font-family: Consolas, Monaco, monospace;
  font-size: .94em;
  font-weight: bold;
  letter-spacing: .04em;
  word-break: break-word;
  user-select: all;
}

.spnext-mfa-copy-button {
  min-height: 28px;
  margin-top: 6px;
  padding: 4px 9px;
  font-size: .84em;
}

.spnext-mfa-cancel-setup-form {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.spnext-mfa-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 6px;
}

.spnext-mfa-count-badge,
.spnext-mfa-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background-color: rgba(35,175,235,.12);
  color: #247da5;
  font-weight: bold;
  box-sizing: border-box;
}

.spnext-mfa-admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5ebef;
}

.spnext-mfa-admin-toolbar label {
  display: grid;
  gap: 5px;
  font-weight: bold;
  color: #586a75;
}

.spnext-mfa-admin-toolbar .spnext-mfa-search-label {
  flex: 1 1 340px;
}

.spnext-mfa-admin-toolbar input {
  min-width: 230px;
}

.spnext-mfa-admin-toolbar select {
  min-width: 190px;
}

.spnext-mfa-user-section {
  padding: 14px 18px 18px 18px;
}

.spnext-mfa-support-section {
  border-top: 1px solid #e5ebef;
  background-color: #fbfcfd;
}

.spnext-mfa-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.spnext-mfa-section-heading h3 {
  margin: 0;
  padding: 0;
  font-size: 1.02em;
}

.spnext-mfa-section-note {
  margin: -2px 0 10px 0;
  color: #6b7c86;
  font-size: .9em;
}

.spnext-mfa-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce4e9;
  border-radius: 9px;
  background-color: #fff;
}

.spnext-mfa-user-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.spnext-mfa-user-table th,
.spnext-mfa-user-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ecef;
  text-align: left;
  vertical-align: middle;
}

.spnext-mfa-user-table th {
  background-color: #f2f4f6;
  color: #53656f;
  font-size: .88em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-mfa-user-table tbody tr:last-child td {
  border-bottom: 0;
}

.spnext-mfa-user-table tbody tr:hover td {
  background-color: #f7fbfd;
}

.spnext-mfa-user-table td:first-child strong,
.spnext-mfa-user-table td:first-child span {
  display: block;
}

.spnext-mfa-user-table td:first-child span {
  margin-top: 2px;
  color: #72828c;
  font-size: .88em;
}

.spnext-mfa-actions-column,
.spnext-mfa-row-actions {
  text-align: right !important;
}

.spnext-mfa-row-actions {
  white-space: nowrap;
}

.spnext-mfa-table-button {
  min-height: 29px;
  margin-left: 5px;
  padding: 5px 9px;
  font-size: .86em;
}

.spnext-mfa-no-users-row td,
.spnext-mfa-filter-empty,
.spnext-mfa-empty {
  padding: 24px !important;
  color: #6d7e88;
  text-align: center !important;
}

.spnext-mfa-filter-empty {
  margin: 0 18px 18px 18px;
  border: 1px dashed #c9d3d9;
  border-radius: 8px;
  background-color: #fbfcfd;
}

.spnext-mfa-filter-empty[hidden] {
  display: none !important;
}

body.spnext-mfa-modal-open {
  overflow: hidden;
}

.spnext-mfa-admin-modal[hidden] {
  display: none !important;
}

.spnext-mfa-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(20,30,36,.58);
  box-sizing: border-box;
}

.spnext-mfa-admin-dialog {
  position: relative;
  width: min(470px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  box-sizing: border-box;
}

.spnext-mfa-admin-dialog h2 {
  margin: 0 34px 8px 0;
  padding: 0 0 10px 0;
}

.spnext-mfa-admin-dialog p {
  margin: 0 0 12px 0;
  line-height: 1.48;
}

.spnext-mfa-admin-target {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #dbe4e9;
  border-radius: 8px;
  background-color: #f7f9fa;
  font-weight: bold;
}

.spnext-mfa-admin-dialog form {
  display: grid;
  gap: 7px;
}

.spnext-mfa-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: #465761;
  font-size: 25px;
  line-height: 30px;
  cursor: pointer;
}

.spnext-mfa-modal-close:hover {
  background-color: #eef2f4;
}

/* MFA krok pri prihlásení ďalšieho používateľa. */
#spnext_multi_user_dialog .spnext_multi_user_mfa_account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px 14px 24px;
  padding: 9px 12px;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  background-color: #f7f9fa;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_account span {
  color: #6a7b85;
  font-size: .86em;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_account strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_setup {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 190px;
  gap: 14px;
  margin: 0 24px 4px 24px;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_steps ol {
  margin: 0 0 8px 18px;
  line-height: 1.45;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_steps li {
  margin-bottom: 4px;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_steps p {
  margin: 0;
  padding: 8px 9px;
  border-left: 3px solid rgb(235,112,1);
  border-radius: 5px;
  background-color: #fff7ea;
  color: #6d521f;
  font-size: .86em;
  line-height: 1.35;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  padding: 10px;
  border: 1px solid #dce5ea;
  border-radius: 9px;
  background-color: #fff;
  box-sizing: border-box;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_qr img,
#spnext_multi_user_dialog .spnext_multi_user_mfa_qr canvas {
  max-width: 100%;
  height: auto !important;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_secret {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed #bdc9d0;
  border-radius: 7px;
  background-color: #f8fafb;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_secret span {
  color: #637580;
  font-size: .84em;
  font-weight: bold;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_secret code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Consolas, Monaco, monospace;
  font-weight: bold;
  letter-spacing: .035em;
  user-select: all;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_secret button {
  padding: 5px 8px;
  border: 1px solid #c9d3d9;
  border-radius: 6px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  cursor: pointer;
}

#spnext_multi_user_dialog #spnext_additional_mfa_code {
  font-family: Consolas, Monaco, monospace;
  font-size: 1.25em;
  font-weight: bold;
  letter-spacing: .13em;
  text-align: center;
}

@media only screen and (max-width: 1000px) {
  .spnext-mfa-setup-layout {
    grid-template-columns: minmax(250px, 1fr) 230px;
  }

  .spnext-mfa-confirm-form {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-mfa-page {
    width: calc(100% - 8px);
    margin-right: 8px;
  }

  .spnext-mfa-page-header,
  .spnext-mfa-card-header,
  .spnext-mfa-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .spnext-mfa-database-badge {
    align-self: flex-start;
  }

  .spnext-mfa-disabled-layout,
  .spnext-mfa-active-summary,
  .spnext-mfa-setup-layout {
    grid-template-columns: 1fr;
  }

  .spnext-mfa-qr-column {
    justify-self: center;
    width: min(230px, 100%);
  }

  .spnext-mfa-confirm-form,
  .spnext-mfa-cancel-setup-form {
    grid-column: auto;
  }

  .spnext-mfa-inline-fields {
    grid-template-columns: 1fr;
  }

  .spnext-mfa-admin-toolbar input,
  .spnext-mfa-admin-toolbar select {
    width: 100%;
    min-width: 0;
  }

  #spnext_multi_user_dialog .spnext_multi_user_mfa_setup {
    grid-template-columns: 1fr;
  }

  #spnext_multi_user_dialog .spnext_multi_user_mfa_qr {
    justify-self: center;
  }
}

@media only screen and (max-width: 520px) {
  .spnext-mfa-card-header,
  .spnext-mfa-disabled-layout,
  .spnext-mfa-active-summary,
  .spnext-mfa-setup-layout,
  .spnext-mfa-user-section,
  .spnext-mfa-admin-toolbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .spnext-mfa-card-header {
    gap: 10px;
  }

  .spnext-mfa-card-title-wrap {
    align-items: flex-start;
  }

  .spnext-mfa-state {
    align-self: flex-start;
  }

  .spnext-mfa-form-actions {
    flex-direction: column-reverse;
  }

  .spnext-mfa-form-actions button {
    width: 100%;
  }

  .spnext-mfa-admin-modal {
    padding: 8px;
  }

  .spnext-mfa-admin-dialog {
    padding: 18px 14px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_mfa_account,
  #spnext_multi_user_dialog .spnext_multi_user_mfa_setup {
    margin-left: 16px;
    margin-right: 16px;
  }

  #spnext_multi_user_dialog .spnext_multi_user_mfa_secret {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* MFA: reset, ktorý by vyžadoval nový tajný kľúč, je pri nedostupnej kryptografii zámerne neaktívny. */
.spnext-mfa-table-button:disabled {
  opacity: .52;
  cursor: not-allowed;
  filter: grayscale(.25);
}

.spnext-mfa-table-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* =========================================
   MFA - dôveryhodné prehliadače oddelené od schvaľovania zariadení
   ========================================= */
#spnext_multi_user_dialog .spnext_multi_user_mfa_trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  background-color: #f7fafb;
  color: #2f404a;
  cursor: pointer;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_trust input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0 0;
  padding: 0;
  accent-color: rgb(35,175,235);
  cursor: pointer;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_trust span,
#spnext_multi_user_dialog .spnext_multi_user_mfa_trust strong,
#spnext_multi_user_dialog .spnext_multi_user_mfa_trust small {
  display: block;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_trust strong {
  margin-bottom: 2px;
  color: #42555f;
  font-size: .96em;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_trust small {
  color: #6a7c86;
  font-size: .86em;
  font-weight: normal;
  line-height: 1.35;
}

#spnext_multi_user_dialog .spnext_multi_user_mfa_trust {
  margin: 2px 0 4px 0;
}

.spnext-mfa-trusted-section {
  margin: 0 18px 18px 18px;
  padding: 15px;
  border: 1px solid #dfe6ea;
  border-radius: 9px;
  background-color: #f8fafb;
}

.spnext-mfa-trusted-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.spnext-mfa-trusted-header h3 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  font-size: 1em;
}

.spnext-mfa-trusted-header p {
  margin: 0;
  color: #6a7c86;
  font-size: .9em;
  line-height: 1.4;
}

.spnext-mfa-trusted-empty {
  padding: 12px;
  border: 1px dashed #cbd6dc;
  border-radius: 7px;
  background-color: #fff;
  color: #6a7c86;
  text-align: center;
}

.spnext-mfa-trusted-list {
  display: grid;
  gap: 8px;
}

.spnext-mfa-trusted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 11px;
  border: 1px solid #e0e7eb;
  border-radius: 8px;
  background-color: #fff;
}

.spnext-mfa-trusted-main {
  min-width: 0;
}

.spnext-mfa-trusted-main strong {
  display: inline-block;
  margin: 0 6px 3px 0;
}

.spnext-mfa-trusted-main small {
  display: block;
  color: #6c7d87;
  line-height: 1.35;
}

.spnext-mfa-current-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 11px;
  background-color: rgba(95,172,44,.14);
  color: #477d27;
  font-size: .8em;
  font-weight: bold;
}

.spnext-mfa-trusted-row form,
.spnext-mfa-revoke-all-form {
  margin: 0;
}

.spnext-mfa-revoke-all-form {
  margin-top: 10px;
  text-align: right;
}

@media only screen and (max-width: 700px) {
  .spnext-mfa-trusted-section {
    margin: 0 10px 14px 10px;
    padding: 12px;
  }

  .spnext-mfa-trusted-row {
    align-items: stretch;
    flex-direction: column;
  }

  .spnext-mfa-trusted-row form,
  .spnext-mfa-trusted-row button,
  .spnext-mfa-revoke-all-form button {
    width: 100%;
  }
}

/* =========================================
   SP NEXT - bezpečnostná história a neplatná prevádzka zariadenia
   ========================================= */
.spnext-device-branch-warning {
  margin: 0 16px 14px 16px;
  padding: 10px 12px;
  border: 1px solid #f1cb8b;
  border-left: 4px solid rgb(235,112,1);
  border-radius: 8px;
  background-color: #fff8eb;
  color: #6e4a13;
  line-height: 1.4;
}

.spnext-device-detail-dialog .spnext-device-branch-warning {
  margin: 0 0 14px 0;
}

.spnext-device-branch-unavailable-cell {
  background-color: #fff8eb;
  color: #805313;
  font-weight: bold;
}

.spnext-device-branch-warning-badge {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  background-color: rgba(235,112,1,0.14);
  color: #a65300;
  font-size: .78em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-security-history-section,
.spnext-global-security-section {
  scroll-margin-top: 12px;
}

.spnext-security-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(135px, .55fr) minmax(135px, .55fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dbe2e7;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 9px rgba(47,64,74,0.05);
}

.spnext-security-filter-form-global {
  grid-template-columns: minmax(220px, 1.25fr) minmax(130px, .65fr) minmax(190px, .9fr) minmax(130px, .55fr) minmax(130px, .55fr) auto;
}

.spnext-security-filter-form > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: #566873;
  font-size: .88em;
  font-weight: bold;
}

.spnext-security-filter-form input,
.spnext-security-filter-form select,
.spnext-security-unblock-form input[type="text"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cdd6dc;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  box-sizing: border-box;
}

.spnext-security-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.spnext-security-filter-actions a:hover {
  text-decoration: none;
}

.spnext-security-login-table {
  min-width: 1050px;
}

.spnext-security-global-login-table {
  min-width: 1120px;
}

.spnext-security-blocks-table {
  min-width: 1250px;
}

.spnext-security-result-badge,
.spnext-security-db-badge,
.spnext-security-support-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: .82em;
  font-weight: bold;
  line-height: 1.2;
}

.spnext-security-result-success {
  background-color: rgba(95,172,44,0.15);
  color: #4d9026;
}

.spnext-security-result-failed {
  background-color: rgba(198,0,0,0.10);
  color: #a30000;
}

.spnext-security-db-unknown {
  background-color: #edf1f3;
  color: #61717c;
}

.spnext-security-support-badge {
  flex: 0 0 auto;
  background-color: rgba(35,175,235,0.14);
  color: #147ca8;
  white-space: nowrap;
}

.spnext-global-security-section {
  padding: 16px;
  border: 1px solid #cfe0ea;
  border-top: 5px solid rgb(35,175,235);
  border-radius: 12px;
  background-color: #f8fcfe;
  box-shadow: 0 4px 16px rgba(47,64,74,0.06);
}

.spnext-security-subsection + .spnext-security-subsection {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dbe5eb;
}

.spnext-security-subsection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.spnext-security-subsection-heading h3 {
  margin: 0 0 4px 0;
  padding: 0;
  font-size: 1.02rem;
}

.spnext-security-subsection-heading p {
  margin: 0;
  color: #687985;
  line-height: 1.4;
}

.spnext-security-cell-note {
  display: block;
  margin-top: 3px;
  color: #71818b;
  font-size: .82em;
  font-weight: normal;
  line-height: 1.25;
}

.spnext-security-text-warning {
  color: #a65300;
  font-weight: bold;
}

.spnext-security-unblock-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 6px;
  min-width: 300px;
  align-items: center;
}

.spnext-security-unblock-form .spnext-device-button {
  min-height: 34px;
}

.spnext-devices-events-table code {
  font-family: Consolas, Monaco, monospace;
  font-size: .95em;
  white-space: nowrap;
}

@media only screen and (max-width: 1250px) {
  .spnext-security-filter-form,
  .spnext-security-filter-form-global {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .spnext-security-filter-actions {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-security-filter-form,
  .spnext-security-filter-form-global {
    grid-template-columns: 1fr;
  }

  .spnext-security-filter-actions {
    grid-column: auto;
    align-items: stretch;
  }

  .spnext-security-filter-actions .spnext-device-button {
    width: 100%;
  }

  .spnext-global-security-section {
    padding: 12px;
  }

  .spnext-security-subsection-heading {
    display: block;
  }

  .spnext-security-subsection-heading .spnext-devices-count {
    margin-top: 8px;
  }
}

/* =========================================
   SP NEXT - ZMENA HESLA
   Izolovaný vzhľad bezpečnostnej podstránky v štýle zariadení a MFA.
   ========================================= */
.spnext-password-page {
  width: calc(100% - 10px);
  max-width: 1180px;
  margin: 0 10px 25px 0;
  color: #2f404a;
}

.spnext-password-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.spnext-password-page-header h1 {
  margin-bottom: 6px;
}

.spnext-password-page-header p,
.spnext-password-card-header p {
  margin: 0;
  color: #647681;
  line-height: 1.45;
}

.spnext-password-security-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,.06);
  color: #51646f;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-password-security-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(95,172,44,.15);
  color: #4d9026;
  font-size: 12px;
}

.spnext-password-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}

.spnext-password-card,
.spnext-password-help-card {
  min-width: 0;
  border: 1px solid #d9e1e6;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(47,64,74,.07);
  overflow: hidden;
}

.spnext-password-card {
  border-top: 5px solid rgb(35,175,235);
}

.spnext-password-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border-bottom: 1px solid #e3e9ed;
  background-color: #fbfcfd;
}

.spnext-password-card-icon,
.spnext-password-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.13);
  color: rgb(35,175,235);
  font-size: 21px;
  line-height: 1;
}

.spnext-password-card-icon svg,
.spnext-password-help-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spnext-password-card-header h2,
.spnext-password-help-card h2 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  color: #2f404a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.spnext-password-form-body {
  padding: 20px 20px 4px 20px;
}

.spnext-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 16px;
}

.spnext-password-field-current,
.spnext-password-section-divider,
.spnext-password-strength {
  grid-column: 1 / -1;
}

.spnext-password-field label {
  display: block;
  margin: 0 0 6px 0;
  color: #42555f;
  font-weight: bold;
  line-height: 18px;
}

.spnext-password-field small {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: #71818b;
  font-size: .84em;
  line-height: 1.35;
}

.spnext-password-input-wrap {
  position: relative;
}

.spnext-password-input-wrap input[type="password"],
.spnext-password-input-wrap input[type="text"] {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 47px 9px 11px;
  border: 1px solid #c5d0d7;
  border-radius: 8px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.spnext-password-input-wrap input[type="password"]:hover,
.spnext-password-input-wrap input[type="text"]:hover {
  border-color: #8fbfd4;
}

.spnext-password-input-wrap input[type="password"]:focus,
.spnext-password-input-wrap input[type="text"]:focus {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 3px rgba(35,175,235,.16);
  outline: none;
}

.spnext-password-input-wrap input.is-valid {
  border-color: #5fac2c;
  background-color: rgba(95,172,44,.035);
}

.spnext-password-input-wrap input.is-invalid {
  border-color: #C60000;
  background-color: rgba(198,0,0,.025);
}

.spnext-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background-color: transparent;
  color: #667984;
  cursor: pointer;
}

.spnext-password-toggle:hover,
.spnext-password-toggle:focus-visible {
  background-color: #eaf1f5;
  color: rgb(35,175,235);
}

.spnext-password-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(35,175,235,.2);
}

.spnext-password-toggle span {
  display: inline-flex;
}

.spnext-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spnext-password-toggle .spnext-password-eye-closed,
.spnext-password-toggle.is-visible .spnext-password-eye-open {
  display: none;
}

.spnext-password-toggle.is-visible .spnext-password-eye-closed {
  display: inline-flex;
}

.spnext-password-section-divider {
  position: relative;
  height: 20px;
  margin: 1px 0 -2px 0;
  text-align: center;
}

.spnext-password-section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e1e7ea;
}

.spnext-password-section-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background-color: #fff;
  color: #667984;
  font-size: .85em;
  font-weight: bold;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.spnext-password-strength {
  padding: 13px 14px;
  border: 1px solid #dfe6ea;
  border-radius: 9px;
  background-color: #f8fafb;
}

.spnext-password-strength-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #61727d;
  font-size: .88em;
}

.spnext-password-strength-heading strong {
  color: #5d6e78;
  white-space: nowrap;
}

.spnext-password-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.spnext-password-strength-bars span {
  display: block;
  height: 5px;
  border-radius: 4px;
  background-color: #dce3e7;
  transition: background-color .18s ease;
}

.spnext-password-strength[data-level="1"] .spnext-password-strength-bars span:nth-child(1) {
  background-color: #C44848;
}

.spnext-password-strength[data-level="2"] .spnext-password-strength-bars span:nth-child(-n+2) {
  background-color: rgb(235,112,1);
}

.spnext-password-strength[data-level="3"] .spnext-password-strength-bars span:nth-child(-n+3) {
  background-color: rgb(35,175,235);
}

.spnext-password-strength[data-level="4"] .spnext-password-strength-bars span {
  background-color: #5fac2c;
}

.spnext-password-strength[data-level="1"] .spnext-password-strength-heading strong {
  color: #a30000;
}

.spnext-password-strength[data-level="2"] .spnext-password-strength-heading strong {
  color: #a65300;
}

.spnext-password-strength[data-level="3"] .spnext-password-strength-heading strong {
  color: #147ca8;
}

.spnext-password-strength[data-level="4"] .spnext-password-strength-heading strong {
  color: #4d9026;
}

.spnext-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
}

.spnext-password-rules > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #778791;
  font-size: .84em;
  line-height: 1.3;
}

.spnext-password-rules i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #e1e7ea;
  color: #8b989f;
  font-style: normal;
  font-size: 10px;
}

.spnext-password-rules > span.is-valid {
  color: #477d27;
}

.spnext-password-rules > span.is-valid i {
  background-color: rgba(95,172,44,.16);
  color: #4d9026;
}

.spnext-password-match-status.is-valid {
  color: #477d27;
  font-weight: bold;
}

.spnext-password-match-status.is-invalid {
  color: #a30000;
  font-weight: bold;
}

.spnext-password-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 17px 0 16px 0;
  padding: 10px 12px;
  border: 1px solid #d7e5ee;
  border-left: 4px solid rgb(35,175,235);
  border-radius: 8px;
  background-color: #f5fbfe;
  color: #526a77;
  line-height: 1.4;
}

.spnext-password-info-banner > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.14);
  color: #147ca8;
  font-family: Georgia, serif;
  font-weight: bold;
}

.spnext-password-info-banner p {
  margin: 0;
}

.spnext-password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid #dfe5e9;
  background-color: #f8fbfd;
}

.spnext-password-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  outline: none;
  background-color: rgb(106,210,255);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: #fff;
  font: inherit;
  font-weight: bold;
  line-height: 22px;
  cursor: pointer;
}

.spnext-password-submit:hover,
.spnext-password-submit:focus-visible {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.spnext-password-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(35,175,235,.23);
}

.spnext-password-help-card {
  padding: 19px;
  border-top: 5px solid #5fac2c;
}

.spnext-password-help-icon {
  margin-bottom: 12px;
  background-color: rgba(95,172,44,.14);
  color: #4d9026;
}

.spnext-password-help-card h2 {
  margin-bottom: 14px;
}

.spnext-password-help-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spnext-password-help-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.spnext-password-help-card li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(95,172,44,.14);
  color: #4d9026;
  font-size: 12px;
  font-weight: bold;
}

.spnext-password-help-card li div {
  min-width: 0;
}

.spnext-password-help-card li strong,
.spnext-password-help-card li small {
  display: block;
}

.spnext-password-help-card li strong {
  margin-bottom: 3px;
  color: #42555f;
  line-height: 1.3;
}

.spnext-password-help-card li small {
  color: #6c7d87;
  line-height: 1.4;
}

.spnext-password-mfa-note {
  margin-top: 17px;
  padding: 11px 12px;
  border: 1px solid #d7e5ee;
  border-radius: 8px;
  background-color: #f5fbfe;
}

.spnext-password-mfa-note strong,
.spnext-password-mfa-note span {
  display: block;
}

.spnext-password-mfa-note strong {
  margin-bottom: 3px;
  color: #147ca8;
}

.spnext-password-mfa-note span {
  color: #617581;
  font-size: .88em;
  line-height: 1.4;
}

@media only screen and (max-width: 1050px) {
  .spnext-password-layout {
    grid-template-columns: 1fr;
  }

  .spnext-password-help-card ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spnext-password-help-icon {
    display: none;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-password-page {
    width: calc(100% - 8px);
    margin-right: 8px;
  }

  .spnext-password-page-header {
    display: block;
  }

  .spnext-password-security-badge {
    margin-top: 9px;
  }

  .spnext-password-fields {
    grid-template-columns: 1fr;
  }

  .spnext-password-field-current,
  .spnext-password-section-divider,
  .spnext-password-strength {
    grid-column: auto;
  }

  .spnext-password-rules,
  .spnext-password-help-card ul {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 520px) {
  .spnext-password-card-header {
    align-items: flex-start;
    padding: 15px 14px;
  }

  .spnext-password-card-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .spnext-password-form-body {
    padding: 16px 14px 2px 14px;
  }

  .spnext-password-strength-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .spnext-password-actions {
    padding: 13px 14px;
  }

  .spnext-password-submit {
    width: 100%;
  }

  .spnext-password-help-card {
    padding: 15px;
  }
}

/* =========================================
   SP NEXT - ÚDAJE O FIRME
   Izolovaný vzhľad firemného profilu, zákazkovej karty a ePoukazu.
   Ukladacia logika, názvy polí a práca s certifikátmi sa nemenia.
   ========================================= */
.spnext-company-page {
  width: calc(100% - 10px);
  max-width: 1420px;
  margin: 0 10px 28px 0;
  color: #2f404a;
}

.spnext-company-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.spnext-company-page-header h1 {
  margin-bottom: 6px;
}

.spnext-company-page-header p,
.spnext-company-card-heading small {
  margin: 0;
  color: #647681;
  line-height: 1.45;
}

.spnext-company-database-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,.06);
  color: #52646f;
  white-space: nowrap;
}

.spnext-company-database-badge strong {
  color: #2f404a;
}

.spnext-company-database-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.13);
  color: #147ca8;
}

.spnext-company-database-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stred .spnext-company-form {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.stred .spnext-company-form .spnext-company-card {
  position: relative;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d9e1e6;
  border-top: 5px solid rgb(35,175,235);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(47,64,74,.07);
  overflow: hidden;
}

.stred .spnext-company-form .spnext-company-card-orders {
  border-top-color: #5fac2c;
}

.stred .spnext-company-form .spnext-company-card-epoukaz {
  grid-column: 1 / -1;
  border-top-color: rgb(235,112,1);
}

.stred .spnext-company-form .spnext-company-card .spnext-company-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e3e9ed;
  background-color: #fbfcfd;
  color: #2f404a;
  line-height: normal;
}

.spnext-company-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.13);
  color: rgb(35,175,235);
}

.spnext-company-card-icon-green {
  background-color: rgba(95,172,44,.14);
  color: #4d9026;
}

.spnext-company-card-icon-orange {
  background-color: rgba(235,112,1,.13);
  color: #a65300;
}

.spnext-company-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spnext-company-card-heading {
  display: block;
  min-width: 0;
}

.spnext-company-card-heading strong,
.spnext-company-card-heading small {
  display: block;
}

.spnext-company-card-heading strong {
  margin-bottom: 4px;
  color: #2f404a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.spnext-company-card-heading small {
  font-size: .9em;
  font-weight: normal;
}

.spnext-company-card-body {
  display: grid;
  min-width: 0;
  padding: 3px 18px 17px 18px;
}

.spnext-company-general-fields,
.spnext-company-epoukaz-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.spnext-company-orders-fields {
  grid-template-columns: minmax(0, 1fr);
}

.stred .spnext-company-form .spnext-company-card .panelx {
  min-width: 0;
  max-height: none;
  overflow: visible;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-field-wide,
.stred .spnext-company-form .spnext-company-card .spnext-company-epoukaz-note,
.stred .spnext-company-form .spnext-company-card .spnext-company-test-area {
  grid-column: 1 / -1;
}

.stred .spnext-company-form .spnext-company-card .panelx .pol {
  display: block;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 12px 0 13px 0;
  border-bottom: 1px solid #edf0f2;
  line-height: normal;
}

.stred .spnext-company-card .spnext-company-orders-fields .panelx:last-child .pol,
.stred .spnext-company-card .spnext-company-general-fields .panelx:last-child .pol,
.stred .spnext-company-card .spnext-company-epoukaz-fields .spnext-company-field:nth-last-child(2) .pol {
  border-bottom-color: transparent;
}

.stred .spnext-company-form .spnext-company-card .vlavo,
.stred .spnext-company-form .spnext-company-card .vpravo {
  float: none;
  position: static;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.stred .spnext-company-form .spnext-company-card .vlavo {
  margin: 0 0 6px 0;
  color: #42555f;
  font-weight: bold;
  line-height: 18px;
  cursor: default;
}

.stred .spnext-company-form .spnext-company-card input[type="text"],
.stred .spnext-company-form .spnext-company-card input[type="password"],
.stred .spnext-company-form .spnext-company-card input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="file"]),
.stred .spnext-company-form .spnext-company-card textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #c5d0d7;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.stred .spnext-company-form .spnext-company-card input[name="nazov"] {
  border: 1px solid #c5d0d7;
  border-left: 4px solid #C60000;
}

.stred .spnext-company-form .spnext-company-card textarea {
  height: auto;
  min-height: 106px;
  resize: vertical;
}

.stred .spnext-company-form .spnext-company-card input[type="text"]:hover,
.stred .spnext-company-form .spnext-company-card input[type="password"]:hover,
.stred .spnext-company-form .spnext-company-card input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="file"]):hover,
.stred .spnext-company-form .spnext-company-card textarea:hover {
  border-color: #8fbfd4;
}

.stred .spnext-company-form .spnext-company-card input[type="text"]:focus,
.stred .spnext-company-form .spnext-company-card input[type="password"]:focus,
.stred .spnext-company-form .spnext-company-card input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="file"]):focus,
.stred .spnext-company-form .spnext-company-card textarea:focus {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 3px rgba(35,175,235,.14);
}

.stred .spnext-company-form .spnext-company-card input[name="nazov"]:focus {
  border-left-color: #C60000;
}

.spnext-company-epoukaz-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 13px 0 0 0;
  padding: 10px 12px;
  border: 1px solid #d7e5ee;
  border-left: 4px solid rgb(35,175,235);
  border-radius: 8px;
  background-color: #f5fbfe;
  color: #526a77;
  line-height: 1.4;
}

.spnext-company-epoukaz-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.14);
  color: #147ca8;
  font-family: Georgia, serif;
  font-weight: bold;
}

.spnext-company-epoukaz-note p {
  margin: 0;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-certificate-control {
  width: 100%;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-certificate-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(95,172,44,.38);
  border-radius: 8px;
  background-color: rgba(95,172,44,.075);
  color: #42555f;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-certificate-current input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: #C60000;
  cursor: pointer;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px dashed #9cabb4;
  border-radius: 8px;
  background-color: #f8fafb;
  color: #42555f;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-file-button:hover {
  border-color: rgb(35,175,235);
  background-color: #f1f9fd;
  color: #147ca8;
}

.stred .spnext-company-form .spnext-company-card .spnext-company-test-area {
  margin: 5px 0 0 0;
  padding: 15px;
  border: 1px solid #dfe6ea;
  border-radius: 10px;
  background-color: #f8fafb;
}

.spnext-company-test-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.spnext-company-test-heading strong,
.spnext-company-test-heading span {
  display: block;
}

.spnext-company-test-heading strong {
  margin-bottom: 4px;
  color: #42555f;
  font-size: 1.02em;
}

.spnext-company-test-heading span {
  color: #6b7c86;
  line-height: 1.4;
}

.spnext-company-test-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stred .spnext-company-form .spnext-company-card input.spnext-company-test-button,
.stred .spnext-company-form input.spnext-company-save-button {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font: inherit;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
  white-space: normal;
}

.stred .spnext-company-form .spnext-company-card input.spnext-company-test-button-dark {
  background-color: #44535c;
  background-image: linear-gradient(200deg, #687984 0%, #36454e 74%);
}

.stred .spnext-company-form .spnext-company-card input.spnext-company-test-button-dark:hover {
  background-image: linear-gradient(0deg, #687984 0%, #36454e 74%);
}

.stred .spnext-company-form .spnext-company-card input.spnext-company-test-button-primary,
.stred .spnext-company-form input.spnext-company-save-button {
  background-color: rgb(35,175,235);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.stred .spnext-company-form .spnext-company-card input.spnext-company-test-button-primary:hover,
.stred .spnext-company-form input.spnext-company-save-button:hover,
.stred .spnext-company-form input.spnext-company-save-button:focus-visible {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.spnext-company-test-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d9e1e6;
  border-left-width: 4px;
  border-radius: 8px;
  background-color: #fff;
  line-height: 1.45;
}

.spnext-company-test-result-success {
  border-color: rgba(95,172,44,.42);
  border-left-color: #5fac2c;
  background-color: rgba(95,172,44,.055);
}

.spnext-company-test-result-error {
  border-color: rgba(198,0,0,.28);
  border-left-color: #C60000;
  background-color: rgba(198,0,0,.035);
}

.spnext-company-test-result textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #cdd6dc;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  resize: vertical;
}

.spnext-company-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid #d9e1e6;
  border-radius: 11px;
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(47,64,74,.06);
  color: #647681;
  line-height: 1.4;
}

.stred .spnext-company-form input.spnext-company-save-button {
  min-width: 118px;
  min-height: 42px;
  flex: 0 0 auto;
}

.stred .spnext-company-form input.spnext-company-save-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(35,175,235,.22);
}

@media only screen and (max-width: 1150px) {
  .stred .spnext-company-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .stred .spnext-company-form .spnext-company-card-general,
  .stred .spnext-company-form .spnext-company-card-orders,
  .stred .spnext-company-form .spnext-company-card-epoukaz {
    grid-column: 1;
  }

  .spnext-company-orders-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-company-page {
    width: calc(100% - 8px);
    margin-right: 8px;
  }

  .spnext-company-page-header {
    display: block;
  }

  .spnext-company-database-badge {
    margin-top: 9px;
  }

  .spnext-company-general-fields,
  .spnext-company-orders-fields,
  .spnext-company-epoukaz-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .stred .spnext-company-form .spnext-company-card .spnext-company-field-wide,
  .stred .spnext-company-form .spnext-company-card .spnext-company-epoukaz-note,
  .stred .spnext-company-form .spnext-company-card .spnext-company-test-area {
    grid-column: 1;
  }

  .spnext-company-test-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .spnext-company-test-buttons {
    justify-content: flex-start;
  }

  .spnext-company-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stred .spnext-company-form input.spnext-company-save-button {
    width: 100%;
  }
}

@media only screen and (max-width: 520px) {
  .stred .spnext-company-form .spnext-company-card .spnext-company-card-header {
    align-items: flex-start;
    padding: 15px 14px;
  }

  .spnext-company-card-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .spnext-company-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .spnext-company-card-body {
    padding: 3px 14px 14px 14px;
  }

  .spnext-company-test-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stred .spnext-company-form .spnext-company-card input.spnext-company-test-button {
    width: 100%;
  }

  .spnext-company-form-actions {
    padding: 13px 14px;
  }
}


/* =========================================
   SP NEXT - NASTAVENIA SO ZÁLOŽKAMI
   Vizuálne rozdelenie jedného existujúceho formulára.
   Databázová logika, názvy polí ani odosielanie formulára sa nemenia.
   ========================================= */

.stred.spnext-settings-stred {
  padding-bottom: 0;
}

.spnext-settings-page {
  width: calc(100% - 10px);
  max-width: 1500px;
  margin: 0 10px 0 0;
  color: #2f404a;
}

.spnext-settings-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.spnext-settings-page-header > div {
  min-width: 0;
}

.spnext-settings-page-header h1 {
  margin-bottom: 5px;
}

.spnext-settings-page-header p {
  margin: 0;
  color: #687985;
  line-height: 1.45;
}

.spnext-settings-database-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid #dbe2e7;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,.06);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stred .spnext-settings-form {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.spnext-settings-page:not(.spnext-settings-tabs-ready) .spnext-settings-navigation {
  display: none;
}

.spnext-settings-navigation {
  margin-bottom: 16px;
  border: 1px solid #dbe2e7;
  border-radius: 11px;
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(47,64,74,.06);
}

.spnext-settings-tabs {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.spnext-settings-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: transparent;
  color: #53656f;
  font: inherit;
  font-weight: bold;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.spnext-settings-tab:hover {
  border-color: #d5e4ec;
  background-color: #f2f8fb;
  color: #2f404a;
}

.spnext-settings-tab:focus-visible {
  border-color: rgb(35,175,235);
  box-shadow: 0 0 0 3px rgba(35,175,235,.16);
}

.spnext-settings-tab.spnext-settings-tab-active {
  border-color: rgb(35,175,235);
  background-color: rgb(35,175,235);
  color: #fff;
  box-shadow: 0 2px 7px rgba(35,175,235,.24);
}

.spnext-settings-tab.spnext-settings-tab-active:hover {
  background-color: #1aa2db;
  color: #fff;
}

.spnext-settings-mobile-navigation {
  display: none;
  padding: 11px;
}

.spnext-settings-mobile-navigation > span {
  display: block;
  margin-bottom: 6px;
  color: #53656f;
  font-weight: bold;
}

.spnext-settings-mobile-navigation select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid #cbd5db;
  border-radius: 8px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
}

.spnext-settings-sections,
.spnext-settings-section {
  min-width: 0;
}

.spnext-settings-tabs-ready .spnext-settings-section {
  display: none;
}

.spnext-settings-tabs-ready .spnext-settings-section.spnext-settings-section-active {
  display: block;
}

.spnext-settings-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.spnext-settings-card-grid-paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spnext-settings-card-grid-integrations {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.stred .spnext-settings-form .spnext-settings-card {
  float: none;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #dbe2e7 !important;
  border-top: 4px solid rgb(35,175,235) !important;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(47,64,74,.07);
}

.stred .spnext-settings-form .spnext-settings-card > .nadpis {
  height: auto;
  min-height: 50px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-bottom: 1px solid #e1e7ea;
  background-color: #f8fbfd;
  color: #2f404a;
  font-size: 1.04rem;
  line-height: 1.35;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  max-height: none !important;
  padding: 14px;
  overflow: visible !important;
  background-color: #fff;
}

.stred .spnext-settings-form .spnext-settings-card-fields-2 > .panelx {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .pol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 44%);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8eb;
  border-radius: 8px;
  background-color: #fafcfd;
  line-height: 1.35;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .pol:hover {
  border-color: #d0dce2;
  background-color: #f7fafb;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-row-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr);
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-subheading,
.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-link-row {
  grid-column: 1 / -1;
  min-height: 0;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-subheading {
  grid-template-columns: minmax(0, 1fr);
  padding: 9px 12px;
  border-color: #cfe2ec;
  border-left: 4px solid rgb(35,175,235);
  background-color: #f0f8fc;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-subheading:hover {
  border-color: #c5dce7;
  border-left-color: rgb(35,175,235);
  background-color: #edf7fb;
}

.stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-link-row {
  display: block;
  padding: 10px 12px;
  border-style: dashed;
  background-color: #fff;
}

.stred .spnext-settings-form .spnext-settings-link-row a {
  color: #147ca8;
}

.stred .spnext-settings-form .spnext-settings-card .vlavo,
.stred .spnext-settings-form .spnext-settings-card .vpravo {
  float: none;
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.stred .spnext-settings-form .spnext-settings-card .vlavo {
  color: #42545f;
  line-height: 1.35;
}

.stred .spnext-settings-form .spnext-settings-card .vpravo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  text-align: right;
}

.stred .spnext-settings-form .spnext-settings-card .spnext-settings-row-wide .vpravo {
  align-items: stretch;
}

.stred .spnext-settings-form .spnext-settings-card input[type="text"],
.stred .spnext-settings-form .spnext-settings-card input[type="password"],
.stred .spnext-settings-form .spnext-settings-card input[type="date"],
.stred .spnext-settings-form .spnext-settings-card input[type="number"],
.stred .spnext-settings-form .spnext-settings-card select,
.stred .spnext-settings-form .spnext-settings-card textarea {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #c7d1d7;
  border-radius: 7px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  line-height: 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.stred .spnext-settings-form .spnext-settings-card input[type="text"]:hover,
.stred .spnext-settings-form .spnext-settings-card input[type="password"]:hover,
.stred .spnext-settings-form .spnext-settings-card input[type="date"]:hover,
.stred .spnext-settings-form .spnext-settings-card input[type="number"]:hover,
.stred .spnext-settings-form .spnext-settings-card select:hover,
.stred .spnext-settings-form .spnext-settings-card textarea:hover {
  border-color: #93bdcf;
}

.stred .spnext-settings-form .spnext-settings-card input[type="text"]:focus,
.stred .spnext-settings-form .spnext-settings-card input[type="password"]:focus,
.stred .spnext-settings-form .spnext-settings-card input[type="date"]:focus,
.stred .spnext-settings-form .spnext-settings-card input[type="number"]:focus,
.stred .spnext-settings-form .spnext-settings-card select:focus,
.stred .spnext-settings-form .spnext-settings-card textarea:focus {
  border-color: rgb(35,175,235);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35,175,235,.13);
}

.stred .spnext-settings-form .spnext-settings-card textarea {
  min-height: 96px;
  resize: vertical;
}

.stred .spnext-settings-form .spnext-settings-card .kratsie,
.stred .spnext-settings-form .spnext-settings-card input.kratsie,
.stred .spnext-settings-form .spnext-settings-card select.kratsie {
  width: min(110px, 100%);
  max-width: 110px;
}

.stred .spnext-settings-form .spnext-settings-card .switch {
  flex: 0 0 50px;
  margin: 0;
  top: 0;
}

.stred .spnext-settings-form .spnext-settings-card .vpravo > .switch {
  margin-left: auto;
}

.stred .spnext-settings-form .spnext-settings-card .spnext-settings-subheading .vpravo {
  display: none;
}

.spnext-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #d4dde2;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background-color: rgba(255,255,255,.96);
  box-shadow: 0 -5px 18px rgba(47,64,74,.11);
  backdrop-filter: blur(8px);
}

.spnext-settings-savebar > span {
  color: #6a7b85;
  line-height: 1.35;
}

.stred .spnext-settings-form input.spnext-settings-save-button {
  float: none;
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0;
  padding: 9px 17px;
  border: 0;
  border-radius: 9px;
  background-color: rgb(106,210,255);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.stred .spnext-settings-form input.spnext-settings-save-button:hover,
.stred .spnext-settings-form input.spnext-settings-save-button:focus-visible {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

@media only screen and (max-width: 1180px) {
  .spnext-settings-card-grid-paired,
  .spnext-settings-card-grid-integrations {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media only screen and (max-width: 960px) {
  .stred .spnext-settings-form .spnext-settings-card-fields-2 > .panelx {
    grid-template-columns: minmax(0, 1fr);
  }

  .stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-row-wide {
    grid-column: 1;
  }
}

@media only screen and (max-width: 760px) {
  .spnext-settings-page {
    width: calc(100% - 8px);
    margin-right: 8px;
  }

  .spnext-settings-page-header {
    display: block;
  }

  .spnext-settings-database-badge {
    margin-top: 9px;
  }

  .spnext-settings-tabs {
    display: none;
  }

  .spnext-settings-mobile-navigation {
    display: block;
  }

  .stred .spnext-settings-form .spnext-settings-card > .panelx > .pol,
  .stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-row-wide {
    grid-template-columns: minmax(0, 1fr) minmax(135px, 44%);
  }
}

@media only screen and (max-width: 560px) {
  .spnext-settings-page {
    width: 100%;
    margin-right: 0;
  }

  .stred .spnext-settings-form .spnext-settings-card > .nadpis {
    min-height: 0;
    padding: 13px 14px;
  }

  .stred .spnext-settings-form .spnext-settings-card > .panelx {
    padding: 11px;
  }

  .stred .spnext-settings-form .spnext-settings-card > .panelx > .pol,
  .stred .spnext-settings-form .spnext-settings-card > .panelx > .spnext-settings-row-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    padding: 10px;
  }

  .stred .spnext-settings-form .spnext-settings-card .vpravo {
    justify-content: stretch;
    text-align: left;
  }

  .stred .spnext-settings-form .spnext-settings-card .vpravo > .switch {
    margin-left: 0;
  }

  .stred .spnext-settings-form .spnext-settings-card .kratsie,
  .stred .spnext-settings-form .spnext-settings-card input.kratsie,
  .stred .spnext-settings-form .spnext-settings-card select.kratsie {
    width: min(130px, 100%);
    max-width: 130px;
  }

  .spnext-settings-savebar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 11px;
  }

  .stred .spnext-settings-form input.spnext-settings-save-button {
    width: 100%;
  }
}
/* =========================================
   SP NEXT - NASTAVENIA ZOSTÁV
   Vizuálne zjednotenie stránky bez zmeny názvov polí,
   databázovej logiky alebo AJAX načítania stĺpcov.
   ========================================= */

.stred.spnext-report-settings-stred {
  padding-bottom: 0;
}

.spnext-report-settings-page {
  width: calc(100% - 10px);
  max-width: 1500px;
  margin: 0 10px 0 0;
  color: #2f404a;
}

.spnext-report-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.spnext-report-settings-header h1 {
  margin-bottom: 6px;
}

.spnext-report-settings-header p,
.spnext-report-section-heading p,
.spnext-report-modules-heading > span {
  margin: 0;
  color: #647681;
  line-height: 1.45;
}

.spnext-report-database-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(47,64,74,.06);
  color: #52646f;
  white-space: nowrap;
}

.spnext-report-database-badge strong {
  color: #2f404a;
}

.stred .spnext-report-settings-page .panel {
  position: relative;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d9e1e6;
  border-top: 4px solid rgb(35,175,235);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(47,64,74,.07);
  overflow: hidden;
}

.stred .spnext-report-settings-page .panel > .nadpis {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 47px;
  margin: 0;
  padding: 11px 15px;
  border-bottom: 1px solid #e2e8ec;
  background-color: #fbfcfd;
  color: #2f404a;
  line-height: 1.3;
}

.stred .spnext-report-settings-page .panel > .panelx {
  max-height: none;
  overflow: visible;
}

/* Výber novej alebo existujúcej zostavy */
.spnext-report-picker-form {
  display: block;
  margin: 0 0 16px 0;
}

.stred .spnext-report-settings-page .spnext-report-picker-card > .nadpis {
  justify-content: space-between;
}

.spnext-report-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 12px;
  background-color: rgba(95,172,44,.14);
  color: #477d27;
  font-size: .82em;
  font-weight: bold;
  white-space: nowrap;
}

.spnext-report-mode-edit {
  background-color: rgba(35,175,235,.13);
  color: #147ca8;
}

.stred .spnext-report-settings-page .spnext-report-picker-card > .panelx {
  padding: 14px 15px;
}

.stred .spnext-report-settings-page .spnext-report-picker-row {
  display: grid;
  grid-template-columns: minmax(145px, .35fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: normal;
}

.stred .spnext-report-settings-page .spnext-report-picker-row .vlavo,
.stred .spnext-report-settings-page .spnext-report-picker-row .vpravo {
  float: none;
  position: static;
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.stred .spnext-report-settings-page .spnext-report-picker-row .vlavo {
  color: #42555f;
  font-weight: bold;
}

.stred .spnext-report-settings-page .spnext-report-picker-row select {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #c9d3d9;
  border-radius: 8px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
  box-sizing: border-box;
}

/* Jeden pôvodný formulár zostavy zostáva zachovaný. */
.stred .spnext-report-settings-form {
  display: block;
  width: 100%;
}

.stred .spnext-report-settings-page .spnext-report-definition-card {
  margin-bottom: 20px;
}

.stred .spnext-report-settings-page .spnext-report-definition-card > .panelx {
  padding: 15px;
}

.spnext-report-basic-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(210px, .45fr);
  gap: 12px;
}

.stred .spnext-report-settings-page .spnext-report-basic-grid > .pol,
.stred .spnext-report-settings-page .spnext-report-modules-grid > .pol {
  min-height: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e0e6ea;
  border-radius: 9px;
  background-color: #f9fbfc;
  line-height: normal;
}

.stred .spnext-report-settings-page .spnext-report-basic-grid > .pol {
  display: grid;
  grid-template-columns: minmax(105px, .35fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
}

.stred .spnext-report-settings-page .spnext-report-basic-grid .vlavo,
.stred .spnext-report-settings-page .spnext-report-basic-grid .vpravo,
.stred .spnext-report-settings-page .spnext-report-modules-grid .vlavo,
.stred .spnext-report-settings-page .spnext-report-modules-grid .vpravo {
  float: none;
  position: static;
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.stred .spnext-report-settings-page .spnext-report-basic-grid .vlavo,
.stred .spnext-report-settings-page .spnext-report-modules-grid .vlavo {
  color: #42555f;
  font-weight: bold;
}

.stred .spnext-report-settings-page .spnext-report-global-row .vpravo {
  display: flex;
  justify-content: flex-end;
}

.stred .spnext-report-settings-page .spnext-report-global-row .switch {
  top: 0;
  margin: 0;
}

.stred .spnext-report-settings-page .spnext-report-global-row input:checked + .slider_blue {
  background-color: rgb(35,175,235);
}

.stred .spnext-report-settings-page input[type="text"],
.stred .spnext-report-settings-page select {
  box-sizing: border-box;
}

.stred .spnext-report-settings-page .spnext-report-name-row input[type="text"],
.stred .spnext-report-settings-page .spnext-report-module-row select {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 38px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #c9d3d9;
  border-radius: 8px;
  background-color: #fff;
  color: #2f404a;
  font: inherit;
}

.stred .spnext-report-settings-page .spnext-report-name-row input[name="nazov"] {
  border-color: #c9d3d9;
}

.stred .spnext-report-settings-page input[type="text"]:hover,
.stred .spnext-report-settings-page select:hover {
  border-color: #8fbfd4;
}

.stred .spnext-report-settings-page input[type="text"]:focus,
.stred .spnext-report-settings-page select:focus {
  border-color: rgb(35,175,235);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35,175,235,.13);
}

.spnext-report-modules-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 1px 10px 1px;
}

.spnext-report-modules-heading strong {
  color: #2f404a;
  font-size: 1.02em;
}

.spnext-report-modules-heading > span {
  font-size: .9em;
  text-align: right;
}

.spnext-report-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(155px, 1fr));
  gap: 10px;
}

.stred .spnext-report-settings-page .spnext-report-module-row {
  display: block;
}

.stred .spnext-report-settings-page .spnext-report-module-row .vlavo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.spnext-report-module-number,
.spnext-report-columns-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: rgba(35,175,235,.13);
  color: #147ca8;
  font-size: .82em;
  font-weight: bold;
  box-sizing: border-box;
}

/* Výber stĺpcov */
.spnext-report-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 11px 0;
}

.spnext-report-section-heading h2 {
  margin: 0 0 4px 0;
  padding: 0;
  border: 0;
  color: #2f404a;
  font-size: 1.1rem;
}

.spnext-report-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  align-items: start;
}

.stred .spnext-report-settings-page .spnext-report-columns-card > .nadpis {
  justify-content: flex-start;
}

.spnext-report-columns-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stred .spnext-report-settings-page .spnext-report-columns-body {
  min-height: 190px;
  max-height: 470px;
  padding: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.stred .spnext-report-settings-page .spnext-report-columns-body > .pol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: 0 0 6px 0;
  padding: 8px 9px;
  border: 1px solid #e3e8eb;
  border-radius: 8px;
  background-color: #fff;
  line-height: 1.3;
  transition: border-color .15s ease, background-color .15s ease;
}

.stred .spnext-report-settings-page .spnext-report-columns-body > .pol:last-child {
  margin-bottom: 0;
}

.stred .spnext-report-settings-page .spnext-report-columns-body > .pol:hover {
  border-color: #bfd9e5;
  background-color: #f7fbfd;
}

.stred .spnext-report-settings-page .spnext-report-columns-body > .pol.stlpec_typ_14,
.stred .spnext-report-settings-page .spnext-report-columns-body > .pol.stlpec_virtual_id_zostavy {
  border-left: 4px solid #C60000;
  padding-left: 6px;
  background-color: rgba(198,0,0,.055);
}

.stred .spnext-report-settings-page .spnext-report-columns-body > .pol.stlpec_typ_14:hover,
.stred .spnext-report-settings-page .spnext-report-columns-body > .pol.stlpec_virtual_id_zostavy:hover {
  background-color: rgba(198,0,0,.09);
}

.stred .spnext-report-settings-page .spnext-report-columns-body .vlavo,
.stred .spnext-report-settings-page .spnext-report-columns-body .vpravo {
  float: none;
  position: static;
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.stred .spnext-report-settings-page .spnext-report-columns-body .vlavo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.stred .spnext-report-settings-page .spnext-report-columns-body .vlavo input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: rgb(35,175,235);
  cursor: pointer;
}

.stred .spnext-report-settings-page .spnext-report-columns-body .vlavo label {
  min-width: 0;
  margin-left: 7px !important;
  overflow-wrap: anywhere;
  cursor: pointer !important;
}

.stred .spnext-report-settings-page .spnext-report-columns-body .vpravo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.stred .spnext-report-settings-page .spnext-report-columns-body select.select-typ {
  width: 90px;
  max-width: 90px;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid #c9d3d9;
  border-radius: 7px;
  background-color: #fff;
}

.spnext-report-columns-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 18px;
  border: 1px dashed #c8d3d9;
  border-radius: 9px;
  background-color: #fafcfd;
  color: #70818b;
  text-align: center;
  line-height: 1.45;
}

/* Spoločná ukladacia lišta je nalepená na spodnú hranu pracovnej plochy. */
.spnext-report-savebar {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #d4dde2;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background-color: rgba(255,255,255,.97);
  box-shadow: 0 -5px 18px rgba(47,64,74,.11);
  backdrop-filter: blur(8px);
}

.spnext-report-savebar > span {
  color: #6a7b85;
  line-height: 1.35;
}

.spnext-report-save-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.stred .spnext-report-settings-page .spnext-report-save-actions .tlacidlo {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 9px 17px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font: inherit;
  font-weight: bold;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.stred .spnext-report-settings-page .spnext-report-save-button {
  background-color: rgb(106,210,255);
  background-image: linear-gradient(200deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.stred .spnext-report-settings-page .spnext-report-delete-button {
  margin-left: 0;
  background-color: #C44848;
  background-image: linear-gradient(200deg, #C44848 0%, #C60000 74%);
}

.stred .spnext-report-settings-page .spnext-report-save-button:hover,
.stred .spnext-report-settings-page .spnext-report-save-button:focus-visible {
  background-image: linear-gradient(0deg, rgb(106,210,255) 0%, rgb(35,175,235) 74%);
}

.stred .spnext-report-settings-page .spnext-report-delete-button:hover,
.stred .spnext-report-settings-page .spnext-report-delete-button:focus-visible {
  background-image: linear-gradient(0deg, #C44848 0%, #C60000 74%);
  text-decoration: none;
}

@media only screen and (max-width: 1250px) {
  .spnext-report-modules-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media only screen and (max-width: 900px) {
  .spnext-report-basic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spnext-report-columns-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media only screen and (max-width: 760px) {
  .spnext-report-settings-page {
    width: calc(100% - 8px);
    margin-right: 8px;
  }

  .spnext-report-settings-header {
    display: block;
  }

  .spnext-report-database-badge {
    margin-top: 9px;
  }

  .spnext-report-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stred .spnext-report-settings-page .spnext-report-picker-row {
    grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
  }
}

@media only screen and (max-width: 560px) {
  .spnext-report-settings-page {
    width: 100%;
    margin-right: 0;
  }

  .stred .spnext-report-settings-page .panel > .nadpis {
    min-height: 0;
    padding: 11px 12px;
  }

  .stred .spnext-report-settings-page .spnext-report-picker-row,
  .stred .spnext-report-settings-page .spnext-report-basic-grid > .pol {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .stred .spnext-report-settings-page .spnext-report-global-row .vpravo {
    justify-content: flex-start;
  }

  .spnext-report-modules-heading {
    display: block;
  }

  .spnext-report-modules-heading > span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .spnext-report-modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stred .spnext-report-settings-page .spnext-report-columns-body {
    min-height: 160px;
    max-height: none;
  }

  .stred .spnext-report-settings-page .spnext-report-columns-body > .pol {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .spnext-report-savebar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 11px;
  }

  .spnext-report-save-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spnext-report-save-actions .spnext-report-save-button:only-child {
    grid-column: 1 / -1;
  }

  .stred .spnext-report-settings-page .spnext-report-save-actions .tlacidlo {
    width: 100%;
  }
}

@media only screen and (max-width: 390px) {
  .stred .spnext-report-settings-page .spnext-report-columns-body > .pol {
    grid-template-columns: minmax(0, 1fr);
  }

  .stred .spnext-report-settings-page .spnext-report-columns-body .vpravo {
    justify-content: flex-start;
    padding-left: 23px;
  }

  .spnext-report-save-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .spnext-report-save-actions .spnext-report-save-button:only-child {
    grid-column: auto;
  }
}
