.container {
    max-width: 960px;
}

.orders-list-controls {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.btn.order-assign-technician {
    --bs-btn-padding-x: 3px;
    --bs-btn-padding-y: 0px;
    --bs-btn-font-size: 9px;
    --bs-btn-line-height: 1.1;
}

.order-actions-menu {
    z-index: 1020;
}

.call-log-sticky-header {
    position: fixed;
    z-index: 1019;
    overflow: hidden;
    background: #e2e3e5;
    color: #212529;
    border-bottom: 1px solid #bfc1c3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.call-log-sticky-header table {
    table-layout: fixed;
    margin-bottom: 0;
}

.call-log-sticky-header th {
    position: static;
    background: #e2e3e5;
    color: #212529;
}

@media (min-width: 768px) {
    .orders-list-controls {
        position: sticky;
        top: var(--orders-menu-height, 0px);
        z-index: 1015;
    }
}

.incoming-call-panel {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 1025;
    width: min(380px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 16px 44px 16px 16px;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--bs-success);
    border-radius: 6px;
    background: #ffe6c0;
    color: #212529;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.incoming-call-close {
    position: absolute;
    top: 12px;
    right: 12px;
    filter: none;
}

.incoming-call-details {
    margin-top: 8px;
    white-space: pre-wrap;
}

.incoming-call-phone {
    display: inline-block;
    color: var(--bs-success);
    animation: incoming-call-ring 1.2s ease-in-out infinite;
}

@keyframes incoming-call-ring {

    0%,
    40%,
    100% {
        transform: rotate(0deg);
    }

    8%,
    24% {
        transform: rotate(-18deg);
    }

    16%,
    32% {
        transform: rotate(18deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .incoming-call-phone {
        animation: none;
    }
}


nav .nav-link {
    font-weight: 600;
    font-size: 18px;
}

.icon-link>.bi {
    width: .75em;
    height: .75em;
}

/*
 * Custom translucent site header
 */

.site-header {
    background-color: rgba(0, 0, 0, .85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.site-header a {
    color: #8e8e8e;
    transition: color .15s ease-in-out;
}

.site-header a:hover {
    color: #fff;
    text-decoration: none;
}

/*
 * Dummy devices (replace them with your own or something else entirely!)
 */

.product-device {
    position: absolute;
    right: 10%;
    bottom: -30%;
    width: 300px;
    height: 540px;
    background-color: #333;
    border-radius: 21px;
    transform: rotate(30deg);
}

.product-device::before {
    position: absolute;
    top: 10%;
    right: 10px;
    bottom: 10%;
    left: 10px;
    content: "";
    background-color: rgba(255, 255, 255, .1);
    border-radius: 5px;
}

.product-device-2 {
    top: -25%;
    right: auto;
    bottom: 0;
    left: 5%;
    background-color: #e5e5e5;
}


/*
 * Extra utilities
 */

.flex-equal>* {
    flex: 1;
}

@media (min-width: 768px) {
    .flex-md-equal>* {
        flex: 1;
    }
}



a.whatsapp {
    padding: 15px 20px;
    background-color: #153036;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}



.PoptavkaName,
.PoptavkaText,
.PoptavkaFile {
    padding-bottom: 15px;
}

ol {
    list-style: none;
    counter-reset: my-awesome-counter;
    margin: 0;
    padding: 0;
}

ol li {
    counter-increment: my-awesome-counter;
    text-indent: -1.8em;
    margin-left: 30px;
}

ol li::before {
    content: counter(my-awesome-counter);
    font-weight: bold;
    font-size: 26px;
    line-height: 1.5;
    padding-right: 13px;
    color: #EA3356;
}



#form_request {
    position: relative;
    left: -1000px;
}


.li_color li::marker {
    color: #EA3356;
}


.btn_c2a2 {
    display: inline-block;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 20px 5px;
    background-color: transparent;
    text-align: center;
    background-color: #EA3356;
    color: #FFFFFF;
    padding: 5px 20px;
}


.btn_c2a {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 30px 10px;
    background-color: transparent;
    text-align: center;
    background-color: #EA3356;
    color: #FFFFFF;
    padding: 0 20px;
    padding: 10px 20px;
}


.btn_c2a:hover,
.btn_c2a2:hover {
    background-color: #143036;
    color: #FFFFFF;
}

a,
button {
    transition: all 0.3s;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
}

/*
li span {color: #ce5a52;
    font-size: 13px;}
	
li {line-height: 30px;}	
*/

.InfoBox2 {
    width: 250px;
    background: #8bc34a;
    position: fixed;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 9999;
    border-radius: 2px;
    border: 1px solid #359903;
}

.InfoBox2 span {
    margin: 13px;
    display: inline-block;
}

.InfoBox2 .timer {
    background: #4e4d4d;
    height: 4px;
    width: 0;
    animation: InfoBox2Animation 6s;
}

@keyframes InfoBox2Animation {
    100% {
        width: 100%
    }
}



.paging {
    /* margin: 10px 0; */
}

.paging a {
    background: #2f1c51;
    padding: 7px;
    color: white;
    text-decoration: none;
    margin-right: 5px;
}

.paging a:hover {
    background: #4e4d4d
}

.paging a.active {
    background: #b52dcc
}

.pagingPageInfo {
    background: #f2f2f2;
    margin: 10px 0 10px 0;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
    display: inline-flex;
    padding: 5px 10px;
    font-size: 11px;
}


section.galerie-oprav {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

section.galerie-oprav h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}


.galerie-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Výchozí: jeden sloupec (mobil) */
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Od 768px: tři sloupce */
    }
}


figure {
    /* background: #f9f9f9; */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

figure:hover {
    transform: scale(1.02);
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    position: relative;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    /* background: #fff; */
}

.man_link {
    position: absolute;
    top: 0;
    right: 0;
    background: #163036;
    padding: 3px 9px;
    border-radius: 0 12px;
    color: #dae5e7;
    text-decoration: none;
    border: 1px solid #686868;
    font-weight: bold;
}


.zooming {
    transition: transform 0.2s ease-in-out;
}

.zooming:hover {
    transform: scale(1.02);
}


.form-floating>label {
    left: 1px;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 23px;
}

h3 {
    font-size: 19px;
}



.btg-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.btg-breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btg-breadcrumb a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.btg-breadcrumb .sep {
    margin: 0 0.4rem;
    color: #adb5bd;
}

.btg-breadcrumb .current {
    color: #6c757d;
}


footer a:hover {
    color: #17a2b8 !important;
    text-decoration: underline;
}

.social-link:hover {
    transform: scale(1.2);
    transition: 0.3s;
    color: #17a2b8 !important;
}







/* ----------------------------- */
/* DESKTOP: dropdown na hover    */
/* ----------------------------- */
@media (min-width: 768px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
    }

    /* Šipka otočení */
    .nav-item.dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.only_mobile {
    display: none;
}


/* ----------------------------- */
/* MOBIL: vypnout hover chování  */
/* ----------------------------- */
@media (max-width: 767px) {

    /* Hover nesmí otevírat menu */
    .nav-item.dropdown:hover .dropdown-menu {
        display: none !important;
    }

    /* Dropdown musí fungovat na klik */
    .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
    }

    /* Zarovnání doprava */
    .dropdown-menu {
        text-align: right;
        right: 0;
        left: auto;
    }

    .dropdown-item,
    .dropdown-menu .nav-link {
        text-align: right;
        padding-right: 1.5rem;
    }

    .not_mobile {
        display: none;
    }

    .only_mobile {
        display: inline;
    }
}



/* ----------------------------- */
/* Vzhled dropdownu (desktop i mobil) */
/* ----------------------------- */
.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.nav-item.dropdown .dropdown-toggle::after {
    transition: transform 0.2s;
}

.submenu_text li a {
    font-size: 15px;
}




#open-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    top: -1px;

    /* fade-in */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#open-indicator.visible {
    opacity: 1;
    transform: scale(1);
}

/* barvy */
#open-indicator.open {
    background: #3abb2e;
    box-shadow: 0 0 6px #3abb2e;
    animation: pulse 2.2s ease-in-out infinite;
}

#open-indicator.closed {
    background: #888;
    opacity: 0.6;
}

/* jemné pulzování */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}




.pulse {
    animation: pulseAnim 1.2s infinite ease-in-out;
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}







/* Výchozí stav */
.navbar {
    transition: all 0.25s ease;
}


.navbar.shrink {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
}

/* Zmenšení loga */
.navbar.shrink .navbar-brand img {
    width: 70px !important;
    transition: width 0.25s ease;
}

/* Zmenšení textu */
.navbar.shrink .nav-link {
    padding-top: 0.5rem !important;
    padding-bottom: 0.3rem !important;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .compact-alert {
        padding: 4px 8px;
        font-size: 0.8rem;
        margin-bottom: 4px;
        border-radius: 4px;
    }

    #div_lazaci {
        display: none;
    }

}


#div_lazaci {
    position: absolute;
    right: 0;
    z-index: 9;
    background: #FFC107;
    width: 250px;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px 0 0 5px;
    border: 1px solid #b98300;
    border-right: none;
}

/* Každá zakázka */
.zakazka {
    padding-bottom: 5px;
}

/* Hlavička – klikací */
.zakazka-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    background: #de9d00;
    padding: 0px 5px;
}

.arrow {
    transition: transform 0.2s ease;
}

.zakazka.open .arrow {
    transform: rotate(180deg);
}


/* Tělo zakázky – defaultně skryté */
.zakazka-body {
    display: none;
    border: 1px solid rgb(179, 127, 27);
    padding: 3px;
    margin: 0px 0 15px 0;
}


.zakazka-body textarea {
    width: 100%;
    height: 60px;
    resize: vertical;
}

.odeslat {
    width: 100%;
    margin-top: 0px;
    padding: 2px;
    background: #b98300;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.zakazka-body .nadpis {
    font-size: 14px;
    font-weight: bold;
}

.zakazka-body p {
    margin: 5px 0 0 0;
}


.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}


/* Styly pro tisk */
@media print {

    /* Skryj prvky nevhodné pro tisk */
    nav,
    footer,
    #ServisOpenStatus,
    #kontakty_whatsapp,
    #kontakty_mapa {
        display: none !important;
    }

    #kontakty_adresy {
        margin-top: 10px !important;
    }

    body {
        font-size: 13px;
    }

    footer {
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .shadow {
        box-shadow: none !important;
    }

    #print_logo {
        display: block !important;
        padding-bottom: 15px;
        font-size: 13px;
    }

    #print_footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 13px;
        text-align: center;
        border-top: 1px solid #ccc;
        padding-top: 15px;
    }

    @page {
        margin-bottom: 30mm;
        /* rezerva pro footer */
    }


}