body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
}

/* Levé menu */
.sidebar {
    width: 220px;
    background: #2f3b52;
    color: white;
    padding: 1rem;
}

    .sidebar h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .sidebar a {
        display: block;
        padding: 0.5rem 0.7rem;
        margin-bottom: 0.3rem;
        color: #cfd8ff;
        text-decoration: none;
        border-radius: 4px;
    }

        .sidebar a:hover {
            background: #42506b;
        }

/* Pravý obsah */
.content {
    flex: 1;
    padding: 1.5rem;
    background: #f5f6fa;
    overflow-y: auto;
}

.square-btn {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Vyplní celou šířku sloupce */
    transition: all 0.3s ease;
}
    /* Velikost ikony */
    .square-btn i {
        font-size: 3rem;
        margin-bottom: 10px;
    }

[v-cloak] {
    display: none !important;
}

#myGrid {
    width: 100%;
    /* VARIANT A: Pokud máte nahoře menu/filtry vysoké např. 60px */
    height: calc(100vh - 150px);
    /* VARIANT B: Pokud je tabulka přes celou obrazovku odshora dolů */
    /* height: 100vh; */
    box-sizing: border-box;
}

.output-grid {
    height: calc(100vh - 185px) !important;
}

/* info okno */
.alert-bar {
    width: 100% !important;
    max-width: none !important;
    border-radius: 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}
.alert-bar-container {
    position: fixed;
    bottom: 0;
    left: 220px;
    width: calc(100% - 220px);
    z-index: 1080;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
}
.alert-bar.showing, .alert-bar.show {
    animation: slideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.alert-bar.hiding {
    animation: slideDown 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.tabulator .tabulator-tableholder {
    overflow-x: hidden !important;
}

#mobile-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a1a1a;
    color: #ffffff;
    z-index: 999999; /* Vždy navrchu */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.blocker-content {
    max-width: 400px;
}

    .blocker-content h2 {
        margin-bottom: 15px;
        color: #ff4d4d;
    }

.header-row {
    display: flex; /* Aktivuje flexbox rozvržení */
    justify-content: space-between; /* Tlačí nadpis doleva a tlačítko úplně doprava */
    align-items: center; /* Zarovná nadpis a tlačítko vertikálně na střed */
    width: 100%; /* Roztáhne řádek na plnou šířku */
    gap: 20px; /* Bezpečná mezera, aby se prvky neslepily na malém monitoru */
}

#table-title {
    color: #333;
    text-align: center;
    font-size: 12px;
}

/* Stylování vnitřního boxu se zprávou */
.tabulator .tabulator-alert .tabulator-alert-state-error {
    background-color: #dc3545 !important; /* Bootstrap chybová červená (danger) */
    color: #ffffff !important; /* Bílý text */
    border: 1px solid #b02a37 !important; /* Tmavší červený rámeček */
    border-radius: 6px !important; /* Zaoblené rohy */
    padding: 12px 24px !important; /* Vnitřní odsazení */
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Jemný stín pod oknem */
}

/* -------- TASKS ---------------*/
/* Styl pro plovoucí tlačítko (FAB) */
.btn-fab {
    position: fixed;
    bottom: 15px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff7777; /* Bootstrap success zelená */
    color: white;
    font-size: 30px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1040; /* Zobrazí se nad Tabulatorem, ale pod modálním oknem */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

    /* Efekt při najetí myší */
    .btn-fab:hover {
        background-color: #ff5555;
        transform: scale(1.1); /* Mírné zvětšení */
    }

#global-tracker-table {
    width: 100%;
    height: calc(100vh - 150px);
    box-sizing: border-box;
}

/* Povolí editoru přetéct ven z buňky (aby lišta překryla řádky nad/pod) */
.tabulator .tabulator-cell.tabulator-editing {
    overflow: visible !important;
    z-index: 1000 !important;
}

/* Úprava vzhledu samotného Quillu, aby seděl do tabulky */
.tabulator .ql-toolbar.ql-snow {
    position: absolute;
    top: -42px; /* Vysune formátovací lištu těsně NAD upravovaný řádek */
    left: 0;
    background: white;
    z-index: 1010;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tabulator .ql-container.ql-snow {
    border: 1px solid #ccc !important;
    background: white;
}
/* -------- END TASKS ------------*/

/* Vycentrování textu u všech položek v dropdown seznamu */
.tabulator-edit-list .tabulator-edit-list-item {
    text-align: center;
    justify-content: center; /* Pokud Tabulator používá flexbox */
}

/* Volitelné: Pokud používáte autocompete/vyhledávání, vycentruje to i text v hledacím políčku */
.tabulator-edit-list .tabulator-edit-list-search {
    text-align: center;
}
