:root {
    --primary: #0063BE;
    --light: #ffffff;
    --dark: #000000;

    --light_blue: #0BF;
    --muted: rgba(0,0,0,0.5);
    --text-color: #82939e;
    --secondary: rgba(0,0,0,0.6);
    --text-size: 13px;
}


footer, header, menu, nav, section {
    display: block;
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, img, small, strong, ol, ul, li, form, label, table, caption, tr, td, footer, header {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    /*border: 1px solid red;*/

}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: var(--light);
    font-size: 16px;
    line-height: 1.3;
    overflow-x: hidden;

}


.scaled {
    transform: scale(0.6);
}

a {
    outline: 0;
    text-decoration: none;
    color: var(--primary);
}

a:hover{
    text-decoration: none;
}

strong{
    font-weight: 600;
}

img {
    width: auto \9;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

.bg_white{
    background-color: var(--light);
}

.color_muted{
    color: var(--muted);
}

.color_light_blue{
    color: var(--light_blue);
}

.color_primary{
    color: var(--primary);
}

.btn_light_blue,
a.btn_light_blue,
.btn_light_blue:hover,
a.btn_light_blue:hover{
    background-color: var(--light_blue);
    color: var(--light)!important;
    font-weight: 400;
}

.btn_secondary,
.btn_secondary:hover{
    background-color: var(--secondary);
    color: var(--light);
}

.btn_primary,
.btn_primary:hover{
    background-color: var(--primary);
    color: var(--light);

}


.align-center {
    text-align: center;
}

.color_secondary {
    color: var(--secondary);
}

small{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

h1{
    color: var(--light);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(34px, 4vw, 40px);
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 70px */
    letter-spacing: 0.15px;
}

h2{
    color: var(--dark);
    font-feature-settings: 'liga' off, 'clig' off;

    /* typography/h4 */
    font-family: 'Roboto', sans-serif;
    font-size: clamp(26px, 2.6vw, 36px);
    font-style: normal;
    font-weight: 400;
    line-height: 123.5%; /* 41.99px */
    letter-spacing: 0.25px;
}

h4{
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 42px */
    letter-spacing: 0.15px;
}

h4.blue{
    color: #0BF;
}

h6{
    font-size: 20px;
    color: var(--dark);
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.5rem;
}

.home_banner{
    background: radial-gradient(234.07% 105.67% at 11.96% 19.36%, #00529E 22.12%, #378EDF 100%);

}

.top_banner_margin{
    padding-top: 128px;
}

.person-wrapper {
    position: relative;
}

.person-image {
    z-index: 1;
    max-height: 600px;
    transform: scaleX(-1)
}

.container .container{
    padding: 0!important;
}

.container-fluid .container{
    padding: 0!important;
}

.circle {
    position: absolute;
    width: 879px;
    height: 879px;
    flex-shrink: 0;
    background: radial-gradient(33.48% 31.46% at 33.78% 39.13%, rgba(0, 99, 190, 0.00) 18.27%, rgba(0, 76, 146, 0.62) 100%);
    border-radius: 50%;
    bottom: -120px;
    left: 50%; /* Adjust position as needed */
    transform: translateX(-50%);
    z-index: 0; /* Behind the person */
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl{
        max-width: 1200px;
    }
    .col-xl-2-custom{
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 19.666667%;
        max-width: 19.666667%;
    }
}

@media (min-width: 1350px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl{
        max-width: 1300px;
    }
    .col-xl-2-custom{
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 19.666667%;
        max-width: 19.666667%;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl{
        max-width: 1350px;
    }
    .person-image {
        z-index: 1;
        height: 37vw;
    }

}

.search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    color: var(--muted);
    max-width: 620px;
    min-width: 30vw;
}
.search-form-w-border{
    border: 1px solid #D1D5DB;
    border-radius: 8px;
}
.search-form .input-group {
    flex-grow: 1;
}
.search-form .form-control {
    border-color: transparent;
    height: 50px; /* Increase height */
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-form .input-group-prepend .input-group-text {
    background-color: transparent;
    border: none;
    padding-left: 20px;
    padding-right: 0;
}
.search-form .selectpicker {
    border-left: none;
    height: 50px; /* Increase height */
}

.search-form .bootstrap-select > button.dropdown-toggle,
.search-form .bootstrap-select > button.dropdown-toggle:focus,
.search-form .bootstrap-select > button.dropdown-toggle:hover,
.search-form .bootstrap-select > button.dropdown-toggle:active {
    background-color: #fff !important;
    border-color: #fff!important;
    color: var(--muted) !important;
    padding: 12px 16px;
    box-shadow: none;
    outline: unset!important;
}

.search-form .bootstrap-select > .btn-light:not([disabled]):not(.disabled):active {
    border-color: #fff !important;
    color: var(--muted) !important;
}

.search-form i{
    opacity: 0.6;
    color: var(--primary);
}

.search-form .btn {

    border-radius:  0 8px 8px 0;
    height: 50px; /* Increase height */
    padding: .375rem 1.75rem;
}
.search-form .separator {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 20px;
    color: #ccc;
}

.search-form .filter-option {

    color: var(--muted);
}


.search-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.autocomplete-results, .ui-menu {
    position: relative;
    z-index: 10001; /* Higher than the modal's z-index */
}
.ui-autocomplete {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10002; /* Higher than the autocomplete-results container */
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}
.white-popup-block {
    z-index: 1000; /* Ensure the modal is below the autocomplete results */
}

.autocomplete-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 6px;
}
.autocomplete-item strong{
    font-weight: bold;
    font-size: 14px;
}
.autocomplete-item span{
    font-weight: normal;
    font-size: 12px;
}

.selectpicker-w-icons .bootstrap-select .dropdown-menu li .dropdown-item {
    display: flex !important;
    align-items: center;
    color: var(--muted) !important;
    .fa{
        opacity: 0.6;
        color: var(--primary);
    }
}
/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff77;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.popular-section {
    /*border-bottom: 1px solid #ffffff50;*/
    max-width: fit-content;
    padding-bottom: 1rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-section2{
    margin: 2rem 0 1rem;
}

.popular-link {
    color: var(--light);
    margin-right: .5rem;
    text-decoration: none;
    transition: color 0.2s;
}
.popular-link:hover,
.popular-link:focus {
    color: var(--light); /* or a lighter blue */
}

.popular-section-search-form .popular-link,
.popular-section-search-form .popular-link:hover,
.popular-section-search-form .popular-link:focus {
    color: var(--dark);
}

.separator {
    color: #fff;
    margin-right: .5rem;
}

.popular-section-search-form{
    margin: 2rem 0 1rem;
    .separator{
        color: var(--dark);
    }
}


.custom-card-link {
    display: flex;
    align-items: center;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #CDD8EE;
    margin: 0 10px 10px 0;
    padding: 10px 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s, transform .1s;
}
.custom-card-link:hover, .custom-card-link:focus {
    box-shadow: 0px 14px 40px 0px rgba(0, 0, 0, 0.40);
}

.icon-col {
    margin-top: 3px;
    width:40px;
    min-width:40px;
    color: var(--primary);
    opacity: 0.6;/* main blue */
}

.card-title {
    text-align: left;
    color:#1976d2; /* main blue */
    margin-bottom: 0;
}
.card-desc {
    color: var(--muted);
    font-size:.8rem
}
.chevron-col{
    display: flex;
    align-items: center; /* vertical centering */
    height: 100%;
}
.chevron-col i {
    color: var(--muted);
    font-size:1.25rem
}

.custom-card-link-categories{
    width: auto;
    border-radius: 5px;
    .card-text{
        font-size: 16px;
        color: var(--muted);
    }

    .chevron-col i {
        color: var(--muted);
        font-size:1rem
    }
}

.custom-card-link-categories:hover .card-text,
.custom-card-link-categories:focus .card-text{
    color: var(--dark);
}

.categoriesHome{
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ffffff50;
    max-width: fit-content;
}

.davkovaniHome{
    margin-bottom: 2rem;
}

.encyclopedia-section {
    padding: 40px 0;
    background: #fff;
}
.encyclopedia-desc {
    color: #888;
    font-size: 1rem;
}

.encyclopedia-list-container {
    margin-top: 30px;
}

.encyclopedia-list-title {
    margin-bottom: .75rem;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    text-align: left;
}
.encyclopedia-list li {
    border-bottom: 1px solid #CDD8EE;
}

.encyclopedia-list li a {
    text-align: left;
    display: flex !important; /* ensure flex for icon alignment */
    justify-content: space-between;
    align-items: center;
    padding: .65rem .25rem .65rem 0;
    color: var(--muted) !important; /* dark text */
    text-decoration: none !important;
    transition: background .15s, color .15s, box-shadow .15s;
}
/*.encyclopedia-list li a:hover,*/
/*.encyclopedia-list li a:focus {*/
/*    background:#f7fbff;*/
/*    color:#1976d2 !important;*/
/*    box-shadow:none;*/
/*    border-radius:.25rem*/
/*}*/

.encyclopedia-list li a:focus {
    box-shadow: none;
}
.encyclopedia-list-chevron i {
    color:#bbb;
    font-size:.95em;
    transition:.15s color
}
.encyclopedia-list li a:hover .encyclopedia-list-chevron i,
.encyclopedia-list li a:focus .encyclopedia-list-chevron i{
    color:#1976d2
}

.encyclopedia-list .accordion-content{
    border: none;
    li{
        padding: 0 1rem;

    }
    li:hover{
        background-color: #D0E9FF;
        a{
            font-weight: 600;
        }
    }
}

.current-subpage{
    background-color: #D0E9FF;
}

.current-subpage {
    font-weight: bold;
    color: var(--primary); /* Bootstrap primary color */
}
.current-subpage .encyclopedia-list-chevron i {
    transform: rotate(90deg);
}
.current-subpage + .accordion-content {
    display: block !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.section{
    padding: 4rem 0;
    z-index: 1;
    position: relative;
}


.pripravky_bg {
    background: linear-gradient(to right, #F5F7FB 50%, #FFFFFF 50%);
}

.subpage_holder,
.products_holder{
    display: flex;
}

.subpage_content,
.products_list{
    padding: 1rem 1rem;
    background-color: var(--light);
    max-width: 100%;
    flex: 1 1 0;
    min-width: 0;
}

.subpage_content ul{
    list-style-type: disc ;
    margin-left: 24px;
}

.products_filter {
    min-height: 60vh;
    background-color: #f5f7fb;
    width: 260px;
    border-right: 1px solid #CDD8EE;
    padding: 1rem;
    min-width: 260px;
}

.subpage_nav {
    min-height: 60vh;
    background-color: #f5f7fb;
    width: 260px;
    border-right: 1px solid #CDD8EE;
    padding: 1rem;
    min-width: 320px;
}

.badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: 0;
}

.filter-header {
    padding-bottom: 1rem;
}

.reset-filter {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
}

.reset-filter:hover {
    text-decoration: underline;
}

.filter_products_check_groups {
    .custom-checkbox-line{
        margin-bottom: .5rem;
        border-bottom: 1px solid #CDD8EE;
        padding-bottom: .5rem;
    }
    .form-check-label{
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
    }

    .form-check-input {
        position: absolute;
        margin-top: 0;
        margin-left: -1.25rem;
    }
}

.filter_products_range_groups {
    margin-bottom: 15px;
    label{
        padding-bottom: .5rem;
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
    }
}

.custom-range {
    width: 100%;
}

.filter-footer {
    padding-top: 1rem;
}

.detail-parameters {
    color: #007bff;
    text-decoration: none;
}

.detail-parameters:hover {
    text-decoration: underline;
}

#showMoreDetails,
showCalculators{
    cursor: pointer;
}

#contentMoreDetails .form-group label{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: .5rem;
}


.custom-breadcrumb {
    background: none;
    border-bottom: 1px solid #E5E7EB;
    padding-left: 0;
    padding-top: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: unset;
    scrollbar-width: none;
}

.custom-breadcrumb .breadcrumb-item {
    color: var(--muted);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Remove default slash separator if present (for safety) */
.breadcrumb-item + .breadcrumb-item::before {
    content:none ;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    font-family: "Font Awesome 6 Pro", sans-serif;
    content: "\f054"; /* Font Awesome 'angle-right' */
    font-weight: normal; /* Solid style */
    color: var(--muted);
    margin-right: .5em;
    margin-left: .5em;
}

.custom-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: var(--muted); /* same as others, not bolded */
}

.btn_with_icons{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    min-width: 160px;
}


.submenu_products {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    gap: .5rem;
    list-style: none;
}

.submenu-item {
    flex: 1 1 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem 0.5rem;
    display: flex
;
    justify-content: center;
}

.submenu-item a {
    display: inline-flex; /* align image and text */
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary);
    transition: color 0.2s;
}

.submenu-item img.category_image {
    width: 40px;
    height: 46px;
}

.submenu-item.active a,
.submenu-item a:hover,
.submenu-item a:focus {
    color: var(--primary); /* blue */
    font-weight: 600;
}

.submenu-item.active a {
    position: relative;
}

.submenu-item.active {
    border-bottom: 2px solid var(--primary);
}

#products-table thead tr th{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
    background-color: #f5f7fb;
    border-top: 1px solid #D1D5DB;
    border-bottom: 1px solid #D1D5DB;
}

#products-table thead tr th:first-child,
#products-table thead tr th:first-child:hover{
    border-top-left-radius: .25rem;
    border-left: 1px solid #D1D5DB;
}

#products-table thead tr th:last-child,
#products-table thead tr th:last-child:hover{
    border-top-right-radius: .25rem;
    border-right: 1px solid #D1D5DB;
}

#products-table thead tr th:hover{
    border: none;
    border-top: 1px solid #D1D5DB;
    outline: unset;
    outline-offset: unset;

    border-bottom: 1px solid #D1D5DB;
}

#products-table tbody tr td{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

#products-table tbody tr:hover td{
    background-color: #e8f5e8;
}

#products-table td, #products-table th {
    vertical-align: middle !important;
}

/* Ensure the last column (Add to selection) doesn't shrink */
#products-table td:last-child, 
#products-table th:last-child {
    width: 1%;
    min-width: 60px;
}


/* Horizontal centering */
.dt-center {
    text-align: center !important;
}

/* Vertical centering */
.dt-vcenter {
    vertical-align: middle !important;
}

.datatable_custom .bootstrap-select >button.dropdown-toggle,
#products-table .bootstrap-select > button.dropdown-toggle {
    background-color: #fff !important;
    border-color: #D1D5DB !important;
    color: #252526 !important;
    padding: 4px 8px;
    box-shadow: none;
    font-size: 14px;
}


.datatable_custom thead tr th{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
    border-bottom: 1px solid #D1D5DB;
    border-top: unset;
}

.datatable_custom thead tr th:hover{
    border: none;
    outline: unset!important;
outline-offset: unset!important;
    border-bottom: 1px solid #D1D5DB;
}

.datatable_custom tbody tr td{
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.datatable_custom tbody tr:hover td{
    background-color: #e4f2ff;
}

.datatable_custom td,
.datatable_custom th {
    vertical-align: middle !important;
}

.btn_add_product, .btn_delete_product{
    background-color: var(--light);
    border: 1px solid #D1D5DB !important;
    line-height: 1.5;
    border-radius: .25rem;
    padding: 4px 8px;
    i{
        font-size: 14px;
        color: var(--primary);
    }
    .fa-check{
        color: green;
    }

}
 .btn_delete_product{
   i {
        color: red;
    }

}

table.dataTable thead th, table.dataTable thead td {
    padding: 6px 8px;
}

/* Tooltip for DataTable responsive expand/collapse button */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
}

/* Add tooltip on hover */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover::after,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:hover::after {
    content: "Zobrazit další parametry";
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.95;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Arrow for tooltip */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover::after {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* When row is expanded, change tooltip text */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:hover::after,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:hover::after {
    content: "Kliknout pre skrytie údajov";
}

.action_btns_modal{
    display: flex;
    justify-content: right;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 1rem;
    a{
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-style: normal;
        /*font-weight: 700;*/
        line-height: normal;
        color: var(--muted);
    }
}

.white-popup-block {
    background: #FFF;
    padding: 1rem 1.5rem;
    text-align: left;
    max-width: 750px;
    margin: 40px auto;
    position: relative;
    h2{
        color: var(--dark);
        margin-bottom: 0;
    }
}

.modal-header{
    border-bottom: unset!important;
}

.my_list_ul{
    list-style: none;
    margin-top: 2rem;
    li{
        border-bottom: 1px solid #CDD8EE;

        cursor: pointer;
    }
    li:last-child{
        border-bottom: none;
    }
    li a{
        display: flex;
        color: var(--muted);
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        text-decoration: none;
        padding: .5rem;
    }
    li.active{
        background-color: #D0E9FF;
    }
    li.active a{
        font-weight: 600;
    }
}

.products-category-modal{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.product-category-item{
    bagckground-color: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: .5rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}


.product-card {
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: var(--light);
    box-shadow: none;
}

.product-card .card-title {
    margin-bottom: 0;
    color: var(--dark);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

.product-card .card-category {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: var(--text-color);
}

.product-card .add-btn {
    margin-left: 10px;
}

.product-card .card-text {
    margin-bottom: 5px;
    font-size: 14px;
}

.product-card .card-text span {
    font-weight: bold;
}

/* Mobile product details table */
.mobile-product-table {
    margin-bottom: 0;
    font-size: 13px;
}

.mobile-product-table td {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.mobile-product-table td:first-child {
    font-weight: 500;
    background-color: #f8f9fa;
    width: 25%;
}

.mobile-product-table td:nth-child(2) {
    width: 25%;
}

.mobile-product-table td:nth-child(3) {
    font-weight: 500;
    background-color: #f8f9fa;
    width: 25%;
}

.mobile-product-table td:nth-child(4) {
    width: 25%;
}

.mobile-product-table .bg-light {
    background-color: #f8f9fa !important;
}


.filter_details_modal{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}


.custom-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.custom-list-item {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/*.custom-list-item:last-child {*/
/*    border-bottom: none;*/
/*}*/

.custom-list-item a {
    text-decoration: none;
}

.custom-list-item:hover {
    background-color: #f8f9fa;
}

.list-item-holder{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.custom-list-item .list-title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
}

.custom-list-item .list-text{
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
}

.icon-container {
    width: 40px; /* Adjust the width as needed */
    text-align: center;
    i{
        color: var(--muted);
    }
}

.nutrition_logo img{
    max-height: 50px;
}

.principles
{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    background-color: #DDEFFF;
    border-radius: .25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}


.keywords-container {

}

.keywords-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.keywords-holder h2{
    width: 3rem;
    color: #000;

    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
}

.double-calc{
    flex-direction: row;
}
.double-calc .card{
    width: 50% ;
}

.pagination{
    justify-content: flex-end;
}

/* Alternating row colors for the products table */
#products-table tbody tr:nth-child(odd) {
    background-color: #e4f2ff;
}

#products-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.vzorec {
    font-size: 16px;
    /*color: var(--secondary);*/
    font-family: 'Roboto ', sans-serif;;
    background-color: #f3f3f3;
    padding:1rem;
    width: fit-content;
    border-radius: 5px;
}

.vzorec code{
    color:#0063be!important;
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
}

.keyword-group{
    flex: 1;
}

.keyword-item {
    display: flex;
    margin-bottom: .5rem;
    gap: 1rem;
}

.keyword-bar-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.keyword-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #f0f0f0;
    border-radius: .25rem;
    /*width: 100%;*/
}

.keyword-text {
    padding: .5rem 1rem 0 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    position: relative;
    background-color: transparent; /* Ensure text background is transparent */
}

.keyword-popis {
    padding: 0 1rem .5rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    position: relative;
    color: #777;
    background-color: transparent; /* Ensure text background is transparent */
}

.keyword-count {
    width: 50px;
    text-align: right;
    padding: .5rem 0;
    font-family: Roboto, serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.suggested_keywords{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding: .5rem 0;
}

.suggested_keywords li a{
    display: flex;
    background-color: #2196F3;
    padding: .5rem 1rem;
    color: var(--light);
    border-radius: 1.25rem;

}


.suggestions_holder {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.suggestion {
    flex: 1;
}

.suggestion .suggestion_title {
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;

}

.suggestion p {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.mobile-only{
    display: none;
}

.wrap-text {
    white-space: normal !important; /* allow wrapping */
    word-break: break-word;         /* break long words if needed */
}

.news_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 40px 0;
}

.news_flex a {
    display: flex;
    /* For four in a row */
    flex: 1 1 calc(25% - 32px);
    .card {
        border-radius: 8px;
    }
    .card-footer{
        background-color: var(--white);
        border-top: none;
        padding-top: 0;
    }
    transition: box-shadow .15s, border-color .15s, transform .1s;
}

.news_flex a:hover {
    box-shadow: 0px 14px 20px 0px rgba(0, 0, 0, 0.20);
}

.news_caption {
    margin: 0.5rem 0 1rem;
    font-size:1.2rem;
    color: var(--dark);
}

.news-text{
    color: var(--muted) !important;
}

.card_link {
    font-size: 14px;
    color: var(--primary);
}

.calculators_flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.calculator_icon {
    width: 60px;
    flex-shrink: 0;
}

.calculator_icon i {
    font-size: 4rem;
}

.calculator_text {
    flex: 1;
}

.calculator_text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #333;
}

.calculator_text .status {
    margin: 0 0 1rem 0;
    color: #888;
    font-style: italic;
}

.calculator_text .desc {
    margin: 0;
    color: #444;
    line-height: 1.5;
}


.kalkulacka-card a{
    color:#000!important;
    font-size: 0.9rem;
   .card{
       border-radius: 8px;
       transition: box-shadow .15s, border-color .15s, transform .1s;
   }
}

.kalkulacka-card h5{
    color:#000!important;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;



}


.kalkulacka-card .card:hover {
    box-shadow: 0px 14px 20px 0px rgba(0, 0, 0, 0.20);
}


.datatable_custom th,
.datatable_mylists th{
    white-space: nowrap;

}


.custom-container-mobile{
    padding: 0 15px;
    margin: 0 auto;
}

.mobile-nav{
    display: none;
}

.filter_holder{
    display: none;
}

.news-detail{
    margin-bottom: 2rem;
}

.news-content{
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.8;
    strong{
        font-weight: 600;
    }
}


/*styles for subcategory-navigation-sidebar navigation ul li a, simple, grey*/
.subcategory-navigation-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}
.subcategory-navigation-sidebar li {
    border-bottom: 1px solid #E5E7EB;
}

.subcategory-navigation-sidebar li a {
    display: block;
    padding: 0.4rem 0rem;
    color: var(--muted) !important;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
}
.subcategory-navigation-sidebar li a:hover,
.subcategory-navigation-sidebar li a:focus {
    background-color: #f0f0f0;
    color: var(--dark) !important;
}
.subcategory-navigation-sidebar li a.active {
    background-color: #D0E9FF;
    color: var(--dark)!important;
    font-weight: 600;
}
.subcategory-navigation-sidebar li a.active:hover,
.subcategory-navigation-sidebar li a.active:focus {
    background-color: #D0E9FF;
    color: var(--dark)!important;
}






@media (min-width: 576px) {
    .custom-container-mobile{
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .custom-container-mobile{
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .responsive-input-lg{
        height: calc(1.5em + 1rem + 2px);
        padding: .5rem 1rem;
        font-size: 1.25rem;
        line-height: 1.5;
        border-radius: .3rem;
    }

    /* Hide sorting-container on desktop */
    .sorting-container {
        display: none !important;
    }

    .custom-container{
        width: 100%;
        /*padding-right: 15px;*/
        /*padding-left: 15px;*/
        margin-right: auto;
        margin-left: auto;
        max-width: 1020px;
    }

    .custom-container-mobile{
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .custom-container{
        max-width: 1350px;
    }

    .main-content{
        min-height: calc(100vh - 420px);
    }
}

@media (max-width:1199px) {
    .news_flex .card {
        flex-basis:calc(50% - 32px);
    }

    .submenu-item img.category_image {
        width: 20px;
        height: 23px;
    }

    .person-image
    {
        z-index: 1;
        height: 50vh;
    }

    .search-form{
        max-width: 580px;
    }



}

@media (min-width: 992px) and (max-width: 1199.9px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1020px;
    }
}


@media (max-width:991px) {
   .news_flex .card {
       flex-basis:100%;
   }




    .news_flex .card-body .card-body {
       display: none!important;
    }


    .news_flex {
        display: flex;
        flex-wrap: wrap;
        gap: 32px;
        padding: 40px 0;
    }

    .news_flex a {
        display: flex;
        /* For four in a row */
        flex: 1 1 100%;
        .card {
            border-radius: 8px;
        }
        .card-footer{
            background-color: var(--white);
            border-top: none;
            padding-top: 0;
        }
        transition: box-shadow .15s, border-color .15s, transform .1s;
    }


    .popular-section{
        display: block;
        gap: unset;

        div:last-child{
            margin-top: .5rem;
            div{
                margin-bottom: .2rem;
            }
        }
    }

    .popular-section-search-form{
        margin: 1rem 0!important;
    }

    .separator{
        display: none;
    }

    .double-calc {
        flex-direction: column;
    }

    .double-calc .card {
        width: 100%;
    }

    .pripravky_bg{
        position: relative;
        background: #fff;
        min-height: calc(100vh - 128px); /* 70px for header */

    }

    .scaled{
        transform: none;
    }

    .mobile_bg_grey{
        background: #EFEFEF;
        padding: 0;
    }

    .custom-card-link{
        width: 100%;
        margin-right: 0;
    }

    .person-image{
        height: 56vh;
    }



    .products_filter,
    .subpage_nav{
        position: fixed;
        left: -300px;
        top: 0;
        z-index: 1000;
        width: 300px;
        min-width: 300px;
        height: calc(100vh - 41px);
        overflow-y: auto;
        transition: left 0.3s ease;
        display: block;
    }

    .subpage_nav{
        height: 100vh;
    }

    .filter-open.products_filter,
    .filter-open.subpage_nav{
        left: 0; /* Show on-screen */
    }

    .show_filter_mobile{
        color: var(--primary);
        cursor: pointer;
    }

    .close_filter_mobile{
        color: var(--primary);
        cursor: pointer;
    }

    .subpage_content,
    .products_list{
        padding: 0;
        background: none;
    }

    .subpage_content{
        /*overflow-x: auto;*/
        max-width: 100%;
        word-break: break-word;

    }

    .subpage_content *{
        /*max-width: 100%;*/
        box-sizing: border-box;
    }

    .custom-breadcrumb{
        padding: .50rem 0;
        margin-bottom: 0;
        position: sticky;
        top: 102px;
        background-color: var(--light);
        z-index: 100;
    }

    .custom-breadcrumb .breadcrumb-item{
        font-size: 12px;
    }

    /* Sticky heading section below breadcrumb in subpages */
    .subpage_content > div:nth-child(2),
    .subpage_content .d-md-flex:first-of-type {
        position: sticky;
        top: 102px; /* 102px header + ~43px breadcrumb */
        background-color: var(--light);
        z-index: 11;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        border-bottom: 1px solid #ddd;
    }

    /* Sticky heading section in encyclopedia and products */
    .products_list > div:nth-child(2) {
        position: sticky;
        top: 145px; /* 102px header + ~43px breadcrumb */
        background-color: var(--light);
        z-index: 99;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .sidebar-overlay-filter {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
        z-index: 11; /* Below the sidebar but above the content */
        display: none; /* Hidden by default */
    }

    .submenu-item{
        justify-content: center;
        padding: 0.5rem;
    }

    .submenu-item a{
        display: block;
        text-align: center;

        div{
            word-break: break-word;
            font-size: 12px;
        }

        img{
            display: none;
        }
    }

    .badge {
        top: 4px;
        left: 19px;
        right: unset;
    }

    .filter_holder{
        display: block;
        background-color: #00BBFF; /* Light background */
        position: fixed;
        top: 102px; /* Below header and breadcrumbs */
        width: 100%;
        z-index: 109;
        margin: 0;
        padding: 0 18px; /* Add horizontal padding */
        left: 0;
        right: 0;
    }
    
    /* When filter is in products page */
    .products_list .filter_holder {
        position: fixed;
        top: 102px;
    }

    .filter-nav{
        display: flex;
        color: var(--white);
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        .show_filter_mobile{
            color: var(--white);
        }

        .reset-filter{
            color: var(--white);
        }
    }

    .filter_link{
        padding: 10px 0 10px 20px;
        cursor: pointer;
    }


    .sorting-container {
        position: fixed;
        left: 0;
        bottom: -250px; /* Initially hidden */
        width: 100%;
        background-color: #F5F7FB;
        z-index: 12;
        transition: bottom 0.3s ease;

    }

    .sorting-container.sorting-open{
        bottom: 35px;
    }

    .sorting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0 0;
    }

    .close_sort_mobile{
        cursor: pointer;
        color: var(--primary);
    }

    .sorting-body {
        padding: 15px 0;
    }

    .sorting-options {
        display: flex;
        flex-direction: column;

        .option {
            display: flex;
            align-items: center;
            padding-bottom: 10px;
            font-size: 12px;
            cursor: pointer;
        }

        .option input {
            margin-right: 10px;
        }

        .option label {
            cursor: pointer;
        }
    }



}

/* Table responsive scroll indicators and custom scrollbar - works on all screen sizes */
.table-responsive.has-scroll {
    padding-top: 0px;

    margin-bottom: 0;
    padding-bottom: 0;
    padding-left: 0;
    position: relative;
    table{
        margin-bottom: 8px;
    }
}

/* Hide native scrollbar */
.table-responsive.has-scroll::-webkit-scrollbar {
    display: none;
}
.table-responsive.has-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Horizontal scroll indicator icon */
.table-responsive.has-scroll::before {
    display: none;
}

/* Icon above scrollbar */
.custom-table-scrollbar-icon {
    width: auto;
    height: 32px;
    margin-bottom: 5px;
    display: block;
    pointer-events: none;
    position: relative;
    left: 0;
}

/* Custom scrollbar track */
.custom-table-scrollbar {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 10px;
    margin-top: 0px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Custom scrollbar thumb */
.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00BBFF 0%, #0063BE 100%);
    border-radius: 10px;
    cursor: grab;
    transition: background-color 0.2s ease;
}

.custom-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0063BE 0%, #004a99 100%);
}

.custom-scrollbar-thumb.dragging {
    cursor: grabbing;
    background: linear-gradient(90deg, #0063BE 0%, #004a99 100%);
}

/* Hide indicators when scrolled to start/end */
.table-responsive.scrolled-start::before {
    opacity: 0.3;
}

.table-responsive.scrolled-end::after {
    opacity: 0.3;
}

@keyframes scroll-bounce {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@media only screen and (max-width: 768px) {
    .popular-section {
        margin: 0 auto 1rem;
    }


}


@media only screen and (max-width: 576px) {
    .mobile-only{
        display: block;
    }
    .desktop-only{
        display: none;
    }




    .kalkulacka-card a{
        color:#000!important;
        font-size: 0.8rem;
        .card-body{
            padding: 0.8rem;
        }
        .card-title{
            font-size: 1rem;
            margin-bottom: 0.0rem;
        }
    }


    .table-responsive{
        width: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 16px;
        position: relative;
        th{
            min-width: 150px;
        }
    }

    .mx-auto{
        margin-left: unset!important;
        margin-right: unset!important;
    }


    .news_flex a {flex-basis:100%;}

    .news_caption {
        font-size: 1rem;
        line-height: 1.3;
    }

    .news-arrow-icon {
        padding-left: 10px;
        color: #666;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .bg_white.section {
        padding: 2rem 0;
    }

    .news_flex {
        padding: 20px 0;
        gap: 16px;
    }

    .submenu_products{
        gap: .2rem;
        justify-content: space-between;
    }
    .btn_with_icons{
        min-width: unset;
    }

    .table-nutrienty-desktop td{
        padding: 3px;
    }

    .submenu-item{
        width: -webkit-fill-available;
        max-width: none;
    }

    .submenu-item a{
        padding: 0;
        div{
            white-space: wrap;
            line-height: 1.4;
            font-size: 10px;
        }
    }

    .product-card .card-text {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .filter_link{
        font-size: 15px;
    }

    .search-form{
        display: block;
        .btn{
            width: 100%;
            border-radius: 0 0 8px 8px
        }
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: -1px;
        width: 100%;
        background-color: var(--primary); /* Tmavomodrá farba */
        z-index: 1000;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: space-around;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        text-align: center;
        width: 25%;
        padding: 10px 0;
    }

    .mobile-nav a {
        color: white;
        text-decoration: none;
        display: block;

    }

    .mobile-nav i {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }

    .mobile-nav span {
        font-size: 10px;
        display: block;
        text-transform: uppercase;
    }

    .mobile-nav .active {
        background: #004482;;
    }

    .filter_holder{
        /* Removed bottom positioning as filter is now sticky at top */
    }


    .mobile-with-fixed-nav-and-breadcrumbs{
        padding-top: 102px; /* Adjust based on the height of the fixed header and breadcrumbs */
    }
    
    /* Add padding when filter holder is present on products page */
    .products_list + .custom-container-mobile,
    .products_list .bg_white {
        padding-top: 20px; /* Height of filter holder */
    }

    .custom-breadcrumb {
        padding: .50rem 15px;
        margin-bottom: 0;
        position: fixed;
        top: 70px;
        width: 100%;
        background: #fff;
        left: 0;
        border-radius: 0;
        z-index: 111;
    }

    .sorting-container.sorting-open {
        bottom: 57px;
    }

    .products_filter{
        top: 138px;
        height: calc(100vh - 198px);
        position: fixed;
        z-index: 999;
    }

    .subpage_nav{
        height: calc(100vh - 159px);
        top: 102px;
    }

    .subpage_content{
        margin-top: 0px;
    }

}

@media only screen and (max-width: 350px) {
    .submenu-item{
        flex: unset;
        width: -webkit-fill-available;
        max-width: max-content;
        padding-right: 3px;
    }

}
