/* Základní vzhled */
body {
    background-color: #f4f7f6;
    font-size: 0.85rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* Tabulka - Hlavička */
.table thead th {
    vertical-align: middle;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

/* Specifické šířky sloupců */
.col-min { width: 1%; white-space: nowrap; }
.col-date { width: 95px; text-align: center; }
.col-narrow { width: 65px; text-align: center; }
.col-money { width: 100px; text-align: right; }

/* Zalamování textu v buňce "Měsíc DPH" */
.break-word {
    display: block;
    width: 45px;
    margin: 0 auto;
    line-height: 1.1;
    font-size: 0.75rem;
}

/* Pomocné třídy */
.text-end { text-align: right; }
.text-center { text-align: center; }
.fw-bold { font-weight: bold; }

/* Responzivní úprava pro malé displeje */
@media (max-width: 768px) {
    body { font-size: 0.75rem; }
    .main-container { padding: 10px; }
}

/* Navigace */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    margin-right: 10px;
}

/* Hover efekt pro položky menu */
.nav-link:hover {
    color: #0d6efd !important; /* Modrá barva při najetí */
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 5px;
}

/* Pravý blok s uživatelem */
.user-info-block {
    text-align: right;
    line-height: 1.2;
}

.user-label {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
}

.user-name {
    font-weight: 600;
    color: #212529;
}

.ajax-note {
    min-width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ajax-note:focus {
    background-color: white !important;
    border: 1px solid #ced4da !important;
    box-shadow: none;
    cursor: text;
}

/* Styl pro dropdown menu */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
}

.dropdown-item {
    padding: 8px 20px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Řádek po splatnosti a nezaplacený */
.overdue-row {
    background-color: #fff5f5 !important; /* Velmi slabě červená */
}

.overdue-text {
    color: #dc3545;
    font-weight: bold;
}

/* Styl pro paginaci */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #0d6efd;
    font-size: 0.9rem;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

thead th {
    font-weight: 800 !important;
    color: #000 !important;
    vertical-align: middle !important;
    text-transform: uppercase; /* Volitelné: udělá nadpisy velkými písmeny pro lepší přehled */
    font-size: 0.85rem;
}

/* Slabě červené pozadí pro celý řádek */
.overdue-row td {
    background-color: #fff0f0 !important; /* Velmi jemná červená */
}

/* Červený a tučný text pro datum splatnosti */
.overdue-text {
    color: #d63384 !important; /* Výraznější růžovo-červená */
    font-weight: bold !important;
}

/* Aby řádek při najetí myší nezměnil barvu na šedou a nezmizela ta červená */
.table-hover tbody tr.overdue-row:hover td {
    background-color: #ffe5e5 !important;
}

@media print {
    /* Skryj menu, filtry, tlačítka a akce */
    nav, .menu, form, .btn, .col-actions, .pagination, .no-print {
        display: none !important;
    }
    /* Tabulka na celou šířku */
    .container-fluid, .main-container {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    table {
        width: 100% !important;
        font-size: 10px !important; /* Menší písmo pro tisk */
    }
    /* V patičce skryjeme celkový součet, pokud ho nechceš */
    tfoot .text-muted {
        display: none;
    }
}
