/* ===========================
   PROMĚNNÉ
   =========================== */
   :root {
    /* Základní barvy */
    --textillapp-white: #fff;
    --textillapp-black: #000;
    --textillapp-master: #16b6b8;
    --textillapp-master-dark: #13a3a5;
    --textilapp-grey: #6c757d;
    --textilapp-semi-light-grey: #a3a7ab;
    --textilapp-light-grey: #f2f2f2;
    --textilapp-ultra-light-grey:#f9f9f9;
    --textillapp-white-rgb: 255, 255, 255;
    --textillapp-black-rgb: 0, 0, 0;
    --textillapp-content-bg: #f5f7fa;
    
    /* Fonty */
    --textillapp-font-sans-serif: 'Roboto', sans-serif;
    --textillapp-font-bold: 700;
    --textillapp-font-bolder: 900;
    --textillapp-font-normal: 500;
    
    /* Velikosti fontů */
    --textillapp-font-8: 8px;
    --textillapp-font-10: 10px;
    --textillapp-font-12: 12px;
    --textillapp-font-14: 14px;
    --textillapp-font-16: 16px;
    --textillapp-font-18: 18px;
    --textillapp-font-20: 20px;
    --textillapp-font-22: 22px;
    --textillapp-font-24: 24px;
    --textillapp-font-26: 26px;
    --textillapp-font-28: 28px;
    --textillapp-font-30: 30px;
    --textillapp-font-32: 32px;
    
    /* Ohraničení */
    --textillapp-border-color: #cbd0dd;
    --textillapp-border-color-light: 203, 208, 221, 0.5;
    
    /* Layout */
    --textillapp-navbar-top-height: 4rem;
    
    /* Barvy textu */
    --textillapp-font-color-light: #525b75;
    --textillapp-link-active-bg: #e7f7f7;
    
    /* Barvy kategorií odznaků */
    --textillapp-badge-category-1-color: #525b75;
    --textillapp-badge-category-1-bg: #f5f7fa;
    --textillapp-badge-category-2-color: #13a3a5;
    --textillapp-badge-category-2-bg: #cfeced;
    --textillapp-badge-category-3-color: #ffffff;
    --textillapp-badge-category-3-bg: #13a3a5;
    --textillapp-badge-category-4-color: #ffffff;
    --textillapp-badge-category-4-bg: #13a3a5;
    --textillapp-badge-category-5-color: #ffffff;
    --textillapp-badge-category-5-bg: #000000;
    --textillapp-badge-category-6-color: #ffffff;
    --textillapp-badge-category-6-bg: #e74c3c;
    --textillapp-badge-category-7-color: #ffffff;
    --textillapp-badge-category-7-bg: #800080;
    
    /* Doplňkové barvy */
    --textilapp-green: #008000;
    --textilapp-red: #dc3545;
    --textilapp-scandi: #a47b6d;

    /* Alerts colors */
    --textilapp-success:#198754;
    --textilapp-warning:#ffc107;
    --textilapp-danger:#dc3545;
}

/* ===========================
   ZÁKLADNÍ STYLY
   =========================== */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: var(--textillapp-font-sans-serif);
    color: #1d1e20;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
}

a {
    color: var(--textillapp-master);
}

a:hover {
    color: var(--textillapp-master-dark);
}

.hover-bg-grey:hover{
    background-color: var(--textilapp-light-grey);
}

/* Upravený scroll margin pro elementy s ID */
[id] {
    scroll-margin-top: calc(var(--textillapp-navbar-top-height) + var(--phoenix-scroll-margin-top));
}

/* ===========================
   BARVY
   =========================== */
.color-primary{
    color: var(--textillapp-master)
}
.color-secondary{
    color: var(--textilapp-grey)
}
.color-success{
    color: var(--textilapp-success)
}
.color-warning{
    color: var(--textilapp-warning)
}
.color-danger{
    color: var(--textilapp-danger);
}

/* ===========================
   TLAČÍTKA
   =========================== */
.btn {
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-submit {
    background-color: var(--textillapp-master);
    color: #fff;
    padding: 10px 20px;
}

.btn-submit:hover {
    color: #fff;
    background-color: var(--textillapp-master-dark);
}

.btn-primary {
    background-color: var(--textillapp-master);
    border-color: var(--textillapp-master);
}

.btn-primary:hover {
    background-color: var(--textillapp-master-dark);
    border-color: var(--textillapp-master-dark);
}

.btn-large {
    height: 38px;
}

.btn-small {
    height: 34px;
    font-size:12px;
    line-height:22px;
    min-height: 34px
}

@media screen and (max-width: 577px) {
    .btn{
        font-size:0.75rem;
    }
}
/* ===========================
   FORMULÁŘOVÉ PRVKY
   =========================== */
input, select {
    border: 1px solid var(--textillapp-border-color);
    border-radius: 3px;
    min-height: 38px;
    padding-left: 0.5rem;
    font-size: 14px;
}

input[type="checkbox"].big-checkbox {
    width: 15px;
    height: 15px;
    min-height: unset !important;
}

select {
    padding-right: 0.5rem;
}

form label{
    color:var(--textilapp-grey)
}

form:has(.select-with-search) .select2-selection{
    border: 1px solid var(--textillapp-border-color);
    border-radius: 3px;
    min-height: 38px;
    padding-left: 0.5rem;
    font-size: 14px;
}

form:has(.select-with-search) .select2-selection button,
form:has(.select-with-search) .select2-selection span{
    height:36px !important;
    line-height:36px !important
}

/* ===========================
   LAYOUTOVÉ UTILITY
   =========================== */
/* Šířky */
.w-2 { width: 2%; }
.w-5 { width: 5%; }
.w-7 { width: 7%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 30%; } /* POZNÁMKA: Tady se zdá být chyba v originále */
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

@media (min-width: 992px) {
    .w-lg-100{}
}

/* Pevné šířky v pixelech */
.w-px-15 { width: 15px; }
.w-px-20 { width: 20px; }
.w-px-25 { width: 25px; }
.w-px-30 { width: 30px; }
.w-px-35 { width: 35px; }
.w-px-40 { width: 40px; }
.w-px-50 { width: 50px; }
.w-px-60 { width: 60px; }
.w-px-70 { width: 70px; }
.w-px-75 { width: 75px; }
.w-px-150 { width: 150px; }

/* Výšky */
.h-100 { height: 100%; }

/* Maximální šířky */
.w-max-100 { max-width: 100px; }
.w-max-250 { max-width: 250px; }
.w-max-300 { max-width: 300px; }

/* Pevné výšky v pixelech */
.h-px-12 { height: 12px; }
.h-px-14 { height: 14px; }
.h-px-16 { height: 16px; }
.h-px-20 { height: 20px; }
.h-px-25 { height: 25px; }
.h-px-30 { height: 30px; }
.h-px-35 { height: 35px; }
.h-px-40 { height: 40px; }
.h-px-50 { height: 50px; }
.h-px-60 { height: 60px; }
.h-px-70 { height: 70px; }
.h-px-75 { height: 75px; }
.h-px-100 { height: 100px; }
.h-px-150 { height: 150px; }
.h-px-200 { height: 200px; }

/* Minimální výšky */
.h-min-px-25 { min-height: 25px; }

/* Maximální výšky */
.h-max-250 { max-height: 250px; }
.h-max-300 { max-height: 300px; }
.h-max-450 { max-height: 450px; }
.h-max-650 { max-height: 650px; }
.vh-max-60 { max-height: 60vh; }

/* Border-radius */
.b-radius-5{
    border-radius:5px
}

/* ===========================
   TYPOGRAFIE
   =========================== */
/* Velikosti fontů */
.font-8 { font-size: 8x; }
.font-10 { font-size: 10px; }
.font-12 { font-size: 12px; }
.font-14 { font-size: 14px; }
.font-16 { font-size: 16px; }
.font-18 { font-size: 18px; }
.font-20 { font-size: 20px; }
.font-22 { font-size: 22px; }
.font-30 { font-size: 30px; }
.font-32 { font-size: 32px; }
.font-40 { font-size: 40px; }

/* Tučné písmo */
.font-weight-bold { font-weight: bold; }
.font-weight-normal { font-weight: normal; }

/* Mezery mezi znaky */
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* ===========================
   IKONY
   =========================== */
a .icon { cursor: pointer; }
.icon:hover { color:var(--textillapp-master) !important;fill:var(--textillapp-master) !important}
.small-icon { width: 20px; height: 20px; }
.extra-small-icon { width: 15px; height: 15px; }
.icon-delete:hover { fill: var(--textilapp-red) !important;}


/* ===========================
   WIDTH A HEIGHT
   =========================== */
@media screen and (max-width: 767px) {
    .w-mobile-100 {
        width: 100% !important;
    }
}


/* ===========================
   MARGINS A PADDINGS
   =========================== */

@media screen and (max-width: 767px) {
    .mb-mobile-1{
        margin-bottom: 0.25rem !important;
    }
    .mb-mobile-2{
        margin-bottom: 0.5rem !important;
    }
    .mb-mobile-3{
        margin-bottom: 1rem !important;
    }
    .mb-mobile-4{
        margin-bottom: 1.5rem !important;
    }
}

/* ===========================
   FLEX A GRID
   =========================== */
.d-flex-1 { flex: 1; }

@media screen and (max-width: 767px) {
    .d-flex-mobile-column {
        display: flex;
        flex-direction: column;
    }
    .d-flex-mobile-column-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    .d-flex-mobile-column > * {
        width: 100% !important;
    }
}
.d-grid {
    display: grid;
    gap: 1rem;
}

.g-col-4 { grid-template-columns: repeat(4, 1fr); }
.g-col-5 { grid-template-columns: repeat(5, 1fr); }
.g-col-6 { grid-template-columns: repeat(6, 1fr); }
.g-col-8 { grid-template-columns: repeat(8, 1fr); }

/* ===========================
   ŠTÍTKY A OZNAČENÍ
   =========================== */
.label {
    font-size: 12px;
    padding: 3px 7px;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
}

/* Rozdělené objednávky */
.label-order-split-Objednáno {
    border-color: rgba(255, 143, 47, 1);
    background-color: rgba(255, 143, 47, 0.1);
    color: rgba(255, 143, 47, 1);
}

/* Vratky */
.label-return-new {
    border-color: rgba(110, 142, 189, 1);
    background-color: rgba(110, 142, 189, 0.1);
    color: rgba(110, 142, 189, 1);
}
.label-return-receipted {
    border-color: rgba(0, 128, 0, 1);
    background-color: rgba(0, 128, 0, 0.1);
    color: rgba(0, 128, 0, 1);
}
.label-return-processed {
    border-color: rgba(255, 143, 47, 1);
    background-color: rgba(255, 143, 47, 0.1);
    color: rgba(255, 143, 47, 1);
}
.label-return-done {
    border-color: rgba(183, 106, 168, 1);
    background-color: rgba(183, 106, 168, 0.1);
    color: rgba(183, 106, 168, 1);
}

/* Oddělení */
.label-department-warehouse_department_employee {
    border-color: rgba(0, 122, 204, 1);
    background-color: rgba(0, 122, 204, 0.1);
    color: rgba(0, 122, 204, 1);
}

.label-department-opk_department_employee {
    border-color: rgba(34, 177, 76, 1);
    background-color: rgba(34, 177, 76, 0.1);
    color: rgba(34, 177, 76, 1);
}

.label-department-other_departments_employee {
    border-color: rgba(128, 128, 128, 1);
    background-color: rgba(128, 128, 128, 0.1);
    color: rgba(128, 128, 128, 1);
}

/* Sektory */
.label-sector-1 {
    border-color: rgba(110, 142, 189, 1);
    background-color: rgba(110, 142, 189, 0.1);
    color: rgba(110, 142, 189, 1);
}

.label-sector-2 {
    border-color: rgba(232, 96, 134, 1);
    background-color: rgba(232, 96, 134, 0.1);
    color: rgba(232, 96, 134, 1);
}

.label-sector-3 {
    border-color: rgba(132, 184, 146, 1);
    background-color: rgba(132, 184, 146, 0.1);
    color: rgba(132, 184, 146, 1);
}

.label-sector-4 {
    border-color: rgba(252, 192, 67, 1);
    background-color: rgba(252, 192, 67, 0.1);
    color: rgba(252, 192, 67, 1);
}

.label-sector-5 {
    border-color: rgba(183, 106, 168, 1);
    background-color: rgba(183, 106, 168, 0.1);
    color: rgba(183, 106, 168, 1);
}

.label-sector-6 {
    border-color: rgba(255, 143, 47, 1);
    background-color: rgba(255, 143, 47, 0.1);
    color: rgba(255, 143, 47, 1);
}

.label-sector-7 {
    border-color: rgba(179, 179, 179, 1);
    background-color: rgba(179, 179, 179, 0.1);
    color: rgba(179, 179, 179, 1);
}

/* Stavy objednávkových listů */
.label-orderlist-status_new {
    border-color: rgba(110, 142, 189, 1);
    background-color: rgba(110, 142, 189, 0.1);
    color: rgba(110, 142, 189, 1);
}

.label-orderlist-status_ordered {
    border-color: rgba(183, 106, 168, 1);
    background-color: rgba(183, 106, 168, 0.1);
    color: rgba(183, 106, 168, 1);
}

.label-orderlist-status_waiting {
    border-color: rgba(179, 179, 179, 1);
    background-color: rgba(179, 179, 179, 0.1);
    color: rgba(179, 179, 179, 1);
}

.label-orderlist-status_ready-to-be-stocked {
    border-color: rgba(255, 143, 47, 1);
    background-color: rgba(255, 143, 47, 0.1);
    color: rgba(255, 143, 47, 1);
}

.label-orderlist-status_stocked {
    border-color: rgba(0, 128, 0, 1);
    background-color: rgba(0, 128, 0, 0.1);
    color: rgba(0, 128, 0, 1);
}

.label-orderlist-status_error {
    border-color: rgba(232, 96, 134, 1);
    background-color: rgba(232, 96, 134, 0.1);
    color: rgba(232, 96, 134, 1);
}

/* ===========================
   BARVY TEXTU
   =========================== */
.text-color-vyprodej { color: var(--textillapp-master); }
.text-color-scandi { color: var(--textilapp-scandi); }
.text-color-primary { color: var(--textillapp-master); }
.text-color-grey-dark { color: var(--textillapp-font-color-light); }
.text-color-grey { color: var(--textilapp-grey);}
.text-color-grey-light { color: var(--textilapp-semi-light-grey); }
.text-color-black { color: #1d1e20; }
.text-color-green {color: var(--textilapp-green)}
.text-color-red {color: var(--textilapp-red)}

/* ===========================
   LAYOUT STRÁNKY
   =========================== */
/* Hlavní rozložení */
div.page-content {
    display: flex;
    flex-direction: column;
}

/* ===========================
   HLAVNÍ OBSAH
   =========================== */
main {
    margin-top: var(--textillapp-navbar-top-height);
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* ===========================
   BOČNÍ NAVIGACE
   =========================== */
.navbar-vertical {
    width: 15rem;
    border-right: 1px solid var(--textillapp-border-color);
    padding-top: 1rem;
    align-items: flex-start;
    flex-direction: column;
}

.navbar-vertical .sidebar-headline {
    font-size: var(--textillapp-font-12);
    font-weight: var(--textillapp-font-bold);
}

.navbar-vertical > ul {
    width: 100%;
}

.navbar-vertical > ul > li {
    padding-bottom: 0.5rem;
}

.navbar-vertical .nav-item-icon {
    width: 18px;
    fill: var(--textillapp-font-color-light);
}

.navbar-vertical .nav-item-category {
    padding-left: 0.5rem;
    font-size: var(--textillapp-font-14);
    color: var(--textillapp-font-color-light);
}

.navbar-vertical .nav-item-name {
    padding-left: 0.5rem;
    font-size: var(--textillapp-font-12);
    color: var(--textillapp-font-color-light);
}

.navbar-vertical a {
    text-decoration: none;
}

.navbar-vertical a div {
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar-vertical a:hover div {
    background-color: var(--textillapp-content-bg);
}

.navbar-vertical .menu-level-1 > li.active > div > a div {
    background-color: var(--textillapp-content-bg);
    font-weight: var(--textillapp-font-bold);
}

.navbar-vertical .menu-level-2 > li.active > div > a div {
    font-weight: var(--textillapp-font-bold);
}

.navbar-vertical .menu-level-3 > li.active a div {
    font-weight: var(--textillapp-font-bold);
}

.navbar-vertical ul.sub-menu {
    list-style: none;
    padding-left: 0px;
}

.navbar-vertical ul.sub-menu a div {
    padding-left: 2.5rem;
}

/* ===========================
   HLAVNÍ OBSAH
   =========================== */
.content-wrapper {
    width: 100%;
    background-color: var(--textillapp-content-bg);
}
main div.content-wrapper {
    width: 100%;
    background-color: var(--textillapp-content-bg);
}

main div.content-wrapper h2 {
    font-weight: var(--textillapp-font-bold);
}

/* ===========================
   STRÁNKY PODLE ROLÍ
   =========================== */
/* Vedoucí */
body.vedouci-page #points_form_wrapper {
    min-width: 320px;
}

body.vedouci-page #points_form_wrapper select,
body.vedouci-page #points_form_wrapper input,
body.vedouci-page #points_form_wrapper textarea {
    border: 1px solid var(--textillapp-border-color);
    border-radius: 3px;
}

body.vedouci-page #points_form_wrapper select {
    height: 10rem;
    padding: 5px;
}

body.vedouci-page #points_form_wrapper select.activities {
    height: 38px;
}

body.vedouci-page #points_form_wrapper textarea {
    height: 5rem;
}

body.vedouci-page #points_form_wrapper button {
    background-color: var(--textillapp-master);
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: var(--textillapp-white);
    font-weight: bold;
}

body.vedouci-page #points_form_wrapper button:hover {
    background-color: var(--textillapp-master-dark);
}

/* Uživatel OPK */
body.user_opk-page .alert_message {
    padding: 0.5rem 1.5rem;
    color: var(--textillapp-white);
    font-weight: bold;
}

body.user_opk-page #points_form_wrapper {
    min-width: 320px;
}

body.user_opk-page #points_form_wrapper select,
body.user_opk-page #points_form_wrapper input,
body.user_opk-page #points_form_wrapper textarea {
    border: 1px solid var(--textillapp-border-color);
    border-radius: 3px;
}

body.user_opk-page #points_form_wrapper select {
    height: 10rem;
    padding: 5px;
}

body.user_opk-page #points_form_wrapper textarea {
    height: 5rem;
}

body.user_opk-page #points_form_wrapper button {
    background-color: var(--textillapp-master);
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: var(--textillapp-white);
    font-weight: bold;
}

body.user_opk-page #points_form_wrapper button:hover {
    background-color: var(--textillapp-master-dark);
}

/* ===========================
   NAVIGAČNÍ PRVKY
   =========================== */
/* Drobečková navigace */
.breadcrumbs a {
    text-decoration: none;
    font-size: var(--textillapp-font-14);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs-icon {
    width: 18px;
    margin-right: 0.5rem;
    margin-top: -5px;
    fill: var(--textillapp-font-color-light);
}

/* ===========================
   ODZNAKY
   =========================== */
.badge-position-1 {
    color: var(--textillapp-badge-category-1-color);
    background-color: var(--textillapp-badge-category-1-bg);
}

.badge-position-2 {
    color: var(--textillapp-badge-category-2-color);
    background-color: var(--textillapp-badge-category-2-bg);
}

.badge-position-3 {
    color: var(--textillapp-badge-category-3-color);
    background-color: var(--textillapp-badge-category-3-bg);
}

.badge-position-4 {
    color: var(--textillapp-badge-category-4-color);
    background-color: var(--textillapp-badge-category-4-bg);
}

.badge-position-5 {
    color: var(--textillapp-badge-category-5-color);
    background-color: var(--textillapp-badge-category-5-bg);
}

.badge-position-6 {
    color: var(--textillapp-badge-category-6-color);
    background-color: var(--textillapp-badge-category-6-bg);
}

.badge-position-7 {
    color: var(--textillapp-badge-category-7-color);
    background-color: var(--textillapp-badge-category-7-bg);
}

/* ===========================
   KOMPONENTY
   =========================== */
.item-card {
    background-color: var(--textillapp-white);
    border: 1px solid rgba(var(--textillapp-border-color-light));
    border-radius: 5px;
}

/* ===========================
   OBSAH
   =========================== */
body.in-warehouse.in-sektor div.bottom-content-wrapper {
    background-color: var(--textillapp-white);
}

div.bottom-content-wrapper ul.nav-tabs {
    padding: 0 1.5rem;
}

div.bottom-content-wrapper .nav-tabs a {
    color: var(--textillapp-font-color-light);
    border: none !important;
    padding: 0.75rem 1.5rem;
}

div.bottom-content-wrapper .nav-tabs a:hover {
    border: none;
    color: var(--textillapp-master);
}

div.bottom-content-wrapper .nav-tabs a.active {
    font-weight: var(--textillapp-font-bold);
    border: none;
    border-bottom: 2px solid var(--textillapp-master) !important;
    color: var(--textillapp-master) !important;
}

/* Ikony v tabulkách */
.td-small-icon svg {
    width: 25px;
}

.icon-check-fill path {
    fill: var(--textilapp-green);
}

.icon-block path {
    fill: var(--textillapp-font-color-light);
}

/* ===========================
   VLAJKY
   =========================== */
.flag-small {
    width: 15px;
    height:18px;
}
.flag-extra-small {
    width: 10px;
    height:13px;
}

.flag.product-status_id-2 {
    opacity: 1;
}

.flag.product-status_id-1,
.flag.product-status_id-3,
.flag.product-status_id-4, 
.flag.product-status_id-5,
.flag.product-status_id-6, 
.flag.product-status_id-7 {
    opacity: 0.25;
}

.flag.not-active {
    opacity: 0.25;
}

/* ===========================
   OBJEDNÁVKY
   =========================== */
.order-items-badge {
    background-color: var(--textillapp-border-color);
    width: 20px;
    display: flex;
    height: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* ===========================
   UPOZORNĚNÍ
   =========================== */
.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* ===========================
   HODNOTY
   =========================== */
.value-growth {
    color: var(--textilapp-green);
}

.value-decline {
    color: var(--textilapp-red);
}

/* ===========================
   TABULKY
   =========================== */
table th{
    font-size:12px !important;
    color:var(--textilapp-grey)
}

.table-striped>tbody>tr:nth-of-type(odd){
    --bs-table-accent-bg: #f9f9f9 !important
}

/* ===========================
   STATISTICKÉ BOXY
   =========================== */
.statistic-group{
    padding:1rem;
    background-color:var(--textilapp-ultra-light-grey);
    border-radius:0.5rem
}
.statistic-item-name{
    color:var(--textilapp-grey)
}

/* ===========================
   MODÁLNÍ OKNA
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
@media screen and (max-width: 767px) {
    .modal{
        padding-left:20px;
        padding-right:20px;
    }
    .modal .modal-content{
        width:100% !important;
    }
}
@media screen and (max-width: 577px) {
    .modal{
        top:2em;
        padding-left:10px;
        padding-right:10px;
    }
}
/* ===========================
   NOTIFIKACE
   =========================== */
#notification_center{
    position: relative;
}
#notification_center .notification-wrapper svg{
    width:30px;
    height:30px
}
.notification-wrapper{
    cursor: pointer;
} 
.notification-badge{
    background-color:var(--textilapp-red);
    border-radius:50%;
    width: 15px;
    height: 15px;
    color: var(--textillapp-white);
    font-size: 10px;
    display: flex;
    justify-content: center;
    margin-left: -10px;
    margin-top: -15px;
}
#notification_items{
    position: absolute;
    top: 45px;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: scroll;
    z-index: 1000;
    max-height:500px;

}
#notification_items.hidden {
    display: none;
}
.notification-item{
    width:500px
}
.notification-item.unread{
    border-left:5px solid var(--textillapp-master)
}
.notification-item.read a{
    padding-left:13px !important
}
@media screen and (max-width: 767px) {
    #notification_center{
        position:unset
    }
    #notification_items{
        width:100vw;
        top:60px
    }
    .notification-item{
        width:100%
    }
}
/* ===========================
   PROFIL MENU
   =========================== */
.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: flex-end;
}

.profile-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 5px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: -15px;
    background-color: var(--textillapp-master);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    margin-bottom: -25px;
}

.dropdown-arrow svg {
    fill: var(--textillapp-white);
}

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

.profile-menu.hidden {
    display: none;
}

.profile-menu a {
    display: block;
    padding: 5px 10px !important;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.profile-menu a:hover {
    background-color: #f0f0f0;
}

/* ===========================
   PAGINATOR
   =========================== */
.pagination > .step-links{
    display:flex;
    gap:0.5rem
}
/* ===========================
   OSTATNÍ UTILITY
   =========================== */
.ms-minus-05 {
    margin-left: -0.5rem;
}

.ms-minus-1{
    margin-left:-1rem
}



.small-thumb{
    width:60px;
    border-radius:5px;
}

 .thumbnail {
    position: relative;
}

.popup-thumbnail {
    display: none;
    position: absolute;
    z-index: 10;
    width: 250px; /* Nastavte požadovanou šířku miniatury */
    left:50px;
    top:35px;
    border-radius:5px;
}

.thumbnail:hover .popup-thumbnail {
    display: block;
}