html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f4f4;
    overflow-y: scroll;
}

/* ====== HEADER ====== */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #333;
    color: white;
    padding: 10px 20px;
}

/* Název uprostřed */
.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

/* Logo vlevo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

/* Pravá část headeru - notifikace + user menu */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User menu vpravo */
.user-icon {
    font-size: 1.5em;
    padding: 0 10px;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.popup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.popup-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

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

.popup-menu.show {
    display: block;
}

/* User info sekce */
.user-info {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 6px;
}

.user-email {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 4px;
}

.user-fond {
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* ====== NOTIFIKACE ====== */
.notifications-icon {
    position: relative;
}

.notification-bell {
    color: white;
    font-size: 1.3em;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    transition: color 0.2s;
}

.notification-bell:hover {
    color: #f0f0f0;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid #333;
}

/* Hamburger ikonka */
.menu-toggle {
    display: none; /* defaultně skryté */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ====== LAYOUT ====== */
.container {
    display: flex;
    flex: 1;
}

aside nav {
    width: 150px;
    background: #444;
    color: white;
    padding: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 5px 0;
    padding: 5px 5px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px;
}

nav ul li.active {
    background-color: #666;
    border-radius: 5px;
}

/* Submenu – desktop */
nav ul li.has-submenu {
    position: relative;
}

nav ul li.has-submenu>a::after {
    content: " \25BC";
    font-size: 0.7em;
    margin-left: 5px;
}

nav ul li ul.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #555;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    min-width: 150px;
    z-index: 10;
}

nav ul li ul.submenu li a {
    padding: 10px;
    white-space: nowrap;
    display: block;
    color: white;
    text-decoration: none;
}

nav ul li ul.submenu li a:hover {
    background: #666;
}

nav ul li.has-submenu:hover>ul.submenu {
    display: block;
}

.form-sidebar {
    flex: 1 1 100%;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: flex-start;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; /* na mobilu zobrazit */
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
    }

    .logo {
        margin-left: 50px; /* posune logo doprava, aby se nepřekrývalo s hamburgerem */
    }

    .title {
        font-size: 1.2em;
    }

    aside {
        position: fixed;
        top: 0;
        left: -100%;
        width: 200px;
        height: 100%;
        background: #444;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    aside.open {
        left: 0;
    }

    .container {
        flex-direction: column;
    }

    nav ul li.has-submenu {
        position: relative;
    }

    nav ul li ul.submenu {
        position: static;
        background: #555;
        margin-top: 5px;
        border-radius: 5px;
    }

    nav ul li.has-submenu:hover>ul.submenu {
        display: block;
    }

    nav ul li ul.submenu li a {
        padding-left: 20px;
    }

    aside {
        width: 100%;
        text-align: center;
    }

    .stats {
        flex-direction: column;
    }

    .form-wrapper {
        flex-direction: column;
    }

    .form-sections {
        width: 100%;
        max-width: 100%;
    }

    .form-sections form {
        width: 100% !important;
        max-width: 100% !important;
    }

    form {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .form-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .sticky-panel {
        top: 0;
    }
}

main {
    flex: 1 1 auto;
    padding: 20px;
    position: static;
    overflow: visible;
}

.sticky-panel::before {
    content: "🧷";
    position: absolute;
    top: 0;
    left: 0;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
}

.stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    text-align: center;
}

.filter-box {
    margin-bottom: 10px;
}

#search {
    padding: 5px;
    width: 100%;
    max-width: 300px;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#data-table th,
#data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#data-table tr:hover {
    background-color: #ddd;
}

/* topbar, hledani, razeni apod */
.filter-bar {
    margin: 1rem 2rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-form {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.filter-top {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.filter-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-options,
.filter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-options span,
.filter-form span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.filter-form {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    white-space: nowrap;
    margin-left: auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-wrapper input[type="text"] {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 38px;
    box-sizing: border-box;
    width: 100%;
    line-height: 1.5;
}

.search-form button[type="submit"] {
    height: 38px;
    padding: 0 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.5;
    box-sizing: border-box;
    opacity: 0.9;
    margin-top: 4px;
}

.clear-btn {
    position: absolute;
    right: 8px;
    transform: translateY(-15%);
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 0;
    width: 24px;
    background-color: #007bff;
    height: 55%;
}

.clear-btn:hover {
    color: #333;
}

.filter-form label {
    white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    transform: scale(1);
    accent-color: #28a745;
    margin: 0;
    vertical-align: middle;
}

.top-bar {
    padding: 1rem 2rem;
}

.top-bar h1 {
    margin-bottom: 1rem;
}

.search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-actions .btn-green {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ---------------- */
/* Styly pro formuláře */
/* ---------------- */
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    form {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input:not([type="checkbox"]),
select,
textarea {
    height: 34px;
}

select[multiple] {
    height: calc(1.6em * 4 + 1.5em);
    min-height: 8em;
}

.form-input input,
.form-input select,
.form-input textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-input textarea {
    height: 100px;
    resize: vertical;
}

.error,
.form-error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-submit {
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
}

.form-submit:hover {
    background: #218838;
}

.form-submit.btn-cancel {
    background: #6c757d;
}

.form-submit.btn-cancel:hover {
    background: #5a6268;
}

.form-separator {
    border-top: 1px solid #ddd;
    margin: 20px 0;
    width: 100%;
}

.form-container {
    display: flex;
    gap: 20px;
}

.form-content {
    flex: 2;
}

.form-help {
    flex: 1;
    background: #f9f9f9;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    font-size: 1rem;
    position: sticky;
    top: 20px;
    height: fit-content;
}

#help-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    min-height: 50px;
}

.form-help h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
}

.vyuctovani-form fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin-bottom: 1rem;
    height: 100%;
    min-height: 4.5rem;
}

.form-row.min-height {
    min-height: 1rem;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    white-space: normal;
    max-width: 100%;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rozpad-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    padding: 0.5rem 0;
    align-items: start;
}

.rozpad-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1rem;
    padding: 0.5rem 0;
}

.rozpad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem 1rem;
    padding: 0.5rem 0;
    align-items: start;
}

.rozpad-grid>div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100px;
}

.rozpad-grid>div.nominheight {
    min-height: unset;
    background-color: lightgray;
    padding: 0.25rem;
}

.rozpad-grid>div label {
    margin-top: auto;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: normal;
    justify-content: flex-end;
}

.rozpad-grid>div input {
    margin-top: auto;
}

.rozpad-grid label {
    margin-top: auto;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    white-space: normal;
    line-height: 1.2;
}

.rozpad-grid input[type="checkbox"]+span {
    font-size: 0.9rem;
    margin-left: 0.4rem;
}

.rozpad-grid-4 label,
.checkbox-grid label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.2;
}

.rozpad-grid-4 input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    position: relative;
    top: 0.1em;
}

.rozpad-grid input {
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
    width: 100%;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.form-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100%;
}

.form-sections {
    flex: 1 1 auto;
    min-width: 0;
}

.form-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 260px;
    position: relative;
}

.sticky-panel {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.sidebar-section+.sidebar-section {
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.kontrolni-box h2,
.napoveda-box h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #222;
}

#kontrolni-soucty p,
.napoveda-box p {
    font-size: 0.95rem;
    margin: 0.3rem 0;
    line-height: 1.4;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 2rem;
    padding-left: 0.5rem;
}

#kontrolni-soucty strong {
    margin-right: 1rem;
}

#kontrolni-soucty span {
    font-weight: bold;
    color: #007bff;
    margin-left: auto;
    text-align: right;
    min-width: 80px;
    display: inline-block;
    padding-right: 0.5rem;
}

.napoveda-box p {
    color: #555;
}

.form-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.form-section h2 {
    margin-top: 0;
}

.bg-light { background-color: #fdfdfd; }
.bg-lightblue { background-color: #eaf6ff; }
.bg-lightgreen { background-color: #e6f7ea; }
.bg-lightyellow { background-color: #fffce6; }
.bg-lightred { background-color: #ffeaea; }
.bg-lightorange { background-color: #fff3e6; }
.bg-lightpurple { background-color: #f5f0ff; }
.bg-lightgrey { background-color: #f0f0f0; }
.bg-lightbrown { background-color: #cfd8f3; }

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.role-columns {
    display: flex;
    gap: 2rem;
}

.role-col {
    display: grid;
    grid-template-columns: auto 1fr; /* 1. sloupec checkbox, 2. sloupec text */
    gap: 0.3rem 0.5rem;              /* řádek / mezera */
}

.role-col label {
    display: contents; /* využije grid pro childy místo vlastního boxu */
}

.role-col input[type="checkbox"] {
    justify-self: start;
}

.role-col span,
.role-col .form-label-text {
    align-self: center;
}


/* .form-item.role .form-input label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 6px;
    font-weight: normal;
} */

/* login */
.login-container {
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box {
    max-width: 400px;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-box h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.login-box label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 1rem;
}

.btn-login {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.btn-register:hover {
    text-decoration: underline;
}

.login-box p {
    margin-top: 10px;
}

[x-cloak] {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    resize: vertical;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

button.btn-cancel {
    background-color: #6c757d;
}

button.btn-cancel:hover {
    background-color: #5a6268;
}

.zamitnuto-info {
    margin-bottom: 1rem;
    font-style: italic;
    color: #a00;
    font-size: 0.95rem;
}

.zamitnuto-info span {
    display: block;
    font-weight: bold;
    font-style: normal;
    font-size: 1rem;
    color: #d00;
    margin-bottom: 0.3rem;
}


/* Styly pro tisk */

/* Speciální shrnutí nahoře */
.summary-grid {
    display: flex;
    gap: 0.15cm;
    margin: 0.25cm 0 0.35cm 0;
}

.summary-grid .box {
    flex: 1;
    text-align: center;
    padding: 0.08cm 0.1cm;
    border: 1px solid #333;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.95em;
    background: #f2f2f2;
}

.summary-grid .prijmy {
    background: #d8f5d0;
}

.summary-grid .naklady {
    background: #f5d0d0;
}

.summary-grid .zustatek {
    background: #d0e0f5;
    font-size: 1.05em;
    border: 1.5px solid #000;
}


.print-view {
    padding: 0.5cm 0.7cm;
    font-family: Arial, sans-serif;
    font-size: 8.5pt;
    line-height: 1.15;
}

.print-view h1 {
    font-size: 1.25em;
    margin: 0 0 0.3em 0;
    border-bottom: 1.5px solid #000;
    padding-bottom: 0.1em;
}

.print-view h2 {
    font-size: 0.95em;
    margin: 0.4em 0 0.25em 0;
    border-bottom: 1px solid #999;
    padding-bottom: 0.05em;
    font-weight: bold;
}

.print-view h3 {
    font-size: 0.9em;
    margin: 0.3em 0 0.2em 0;
}


.print-view .print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.08cm 0.3cm;
    margin-bottom: 0.25cm;
}

.print-view .print-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.08cm 0.3cm;
    margin-bottom: 0.25cm;
}

.print-view .print-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.08cm 0.25cm;
    margin-bottom: 0.25cm;
}

.print-view .print-grid > div {
    margin-bottom: 0.05cm;
    font-size: 0.95em;
}

.print-view strong {
    display: inline-block;
    min-width: 2.2cm;
    font-weight: bold;
    font-size: 0.9em;
}



@media print {
    @page {
        size: A4 portrait;
        margin: 0.6cm 0.7cm;
    }

    body {
        background: #fff !important;
        font-size: 8.5pt;
        line-height: 1.15;
    }

    .print-view {
        padding: 0.3cm 0.4cm;
    }

    /* nepotřebné prvky */
    header, footer, .print-icon-wrapper, .form-buttons {
        display: none !important;
    }
}






.print-icon-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.print-link {
    color: #007bff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
}

.print-link:hover {
    color: #0056b3;
}

.poplatky-analyza {
    border-left: 5px solid;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hlaska-text {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.hlaska-detail {
    font-size: 0.9rem;
    color: #333;
}

.hlaska-success { border-color: #28a745; background-color: #e8f5ea; }
.hlaska-warning { border-color: #ffc107; background-color: #fff8e1; }
.hlaska-error { border-color: #dc3545; background-color: #fbeaea; }
.hlaska-neutral { border-color: #6c757d; background-color: #f1f1f1; }

/* Horizontální skrolování pro tabulku docházky */
.overflow-x-auto {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* plynulé scrollování na mobilu */
    position: relative;
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.2),
                inset 10px 0 10px -10px rgba(0,0,0,0.2);
}

/* Stylování scrollbaru pro tabulku */
.overflow-x-auto::-webkit-scrollbar {
    height: 12px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#data-table tr.tr-weekday { background-color: #fff; }
#data-table tr.tr-weekend { background-color: #f0f0f0; }
#data-table tr:nth-child(even):not(.tr-weekday):not(.tr-weekend) { background-color: #f2f2f2; }

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.pagination a:hover {
    background: #ddd;
}

.pagination a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}

.btn-green {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-green:hover {
    background-color: #218838;
}


/* ====== DASHBOARD ====== */
.dashboard {
    margin: 2rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

/* max 4 sloupce na desktopu */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;        /* obsah centrovaný */
    justify-content: flex-start;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 120px;          /* jednotná výška */
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dashboard-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.dashboard-card .card-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.dashboard-card .card-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.dashboard-card .card-info ul {
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0;
}

.dashboard-card .card-info ul li {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.dashboard-card .card-info ul li a {
    text-decoration: none;
    color: #007bff;
}

.dashboard-card .card-info ul li a:hover {
    text-decoration: underline;
}

/* Notifications Card Styling */
.notifications-card .card-header-with-badge {
    position: relative;
    display: inline-block;
}

.notifications-card .unread-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.notifications-card .no-notifications {
    color: #999;
    font-style: italic;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.notifications-card .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.notifications-card .notifications-list::-webkit-scrollbar {
    width: 3px;
}

.notifications-card .notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-card .notifications-list::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 2px;
}

.notifications-card .notification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    text-align: left;
    transition: all 0.15s ease;
    background: transparent;
    border-left: 2px solid transparent;
    cursor: pointer;
}

.notifications-card .notification-item.unread {
    background: #fff9e6;
    border-left-color: #ffc107;
}

.notifications-card .notification-item:hover {
    background: #fffdf7;
    transform: translateX(2px);
}

.notifications-card .notification-item.unread:hover {
    background: #fff5d6;
}

.notifications-card .notification-content {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

.notifications-card .notification-title {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.notifications-card .notification-preview {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.notifications-card .notification-item.unread .notification-title {
    font-weight: 700;
}

.notifications-card .unread-dot {
    width: 6px;
    height: 6px;
    background: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.chart-box {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ====== DASHBOARD SECTIONS ====== */
.dashboard h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #333;
}

/* ====== WORKFLOW SCHVALOVANI ====== */
.schvalovani {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schvalovani a {
    text-decoration: none;
    display: inline-block;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.schvalovani a:hover {
    opacity: 0.9;
}

.schvalovani a.locked {
    background-color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.wflog {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.wflog li {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.wflog li:last-child {
    border-bottom: none;
}


/* ========================================
   SPOLEČNÉ STYLY PRO KARTY A LISTY
   (Sloučeno z více presenterů - Zalohy, Zadanky, Rozpocet, Vyuctovani)
   ======================================== */

/* Cards grid layout */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

/* Card základní styl */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card.inactive {
    opacity: 0.6;
    background-color: lightgray;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

/* Meta informace */
.meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Status badges */
.status {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.status.organizator {
    background-color: #fff3cd;
    color: #856404;
}

.status.vedouci {
    background-color: #ffeeba;
    color: #8a6d3b;
}

.status.rozpoctar {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.zamitnuto {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    margin-bottom: 0.5rem;
}

.status.zamitnuto span {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: normal;
    opacity: 0.8;
}

/* Zamítnutí info box */
.zamitnuto-info {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #664d03;
}

.zamitnuto-info span {
    display: block;
    font-weight: bold;
    font-size: 0.75rem;
    color: #856404;
    margin-bottom: 0.25rem;
}

/* Actions sekce */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.actions a,
.schvalovani a {
    text-decoration: none;
    display: inline-block;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.actions a:hover,
.schvalovani a:hover {
    opacity: 0.9;
}

.actions a.delete {
    background-color: #dc3545;
}

.actions a.locked,
.schvalovani a.locked {
    background-color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

/* Workflow action buttons */
a.revoke {
    background-color: rgb(255, 72, 0);
}

a.zpetschvalit {
    background-color: rgb(253, 207, 0);
}

a.schvalit {
    background-color: rgb(35, 180, 30);
}

/* Schvalovani sekce */
.schvalovani {
    background-color: #d1f2eb;
    border-top: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 80px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.schvalovani a {
    margin-left: auto;
}

.schvalovani-top {
    text-align: center;
}

.schvalovani-bottom {
    text-align: right;
}

.schvalovani .status {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* Sort bar */
.sort-bar {
    margin: 1rem 2rem;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.sort-bar span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.sort-bar a {
    color: #007bff;
    text-decoration: none;
    position: relative;
}

.sort-bar a:hover {
    text-decoration: underline;
}

/* Top bar */
.top-bar {
    padding: 1rem 2rem;
}

.top-bar h1 {
    margin-bottom: 1rem;
}

/* Search actions */
.search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-actions .btn-green {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-form button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.search-form button:hover {
    opacity: 0.9;
}

/* Workflow log */
.wflog {
    font-size: 0.75rem;
    color: #6b7280;
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-top: 5px;
}

.wflog li {
    margin-bottom: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.8rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.pagination-btn:hover {
    opacity: 0.9;
}

.pagination-current {
    padding: 0.5rem 0.8rem;
    background-color: #28a745;
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ====== SANONY - FILE BROWSER ====== */
.sanony-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sanony-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.sanony-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Breadcrumb navigace */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Akční panel */
.sanony-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-large {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 400px;
    max-width: 600px;
    width: 100%;
}

.search-input-large:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #1d4ed8;
}

/* Dropzone */
#dropzone-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
}

.dropzone {
    min-height: 150px;
    border: 2px dashed #2563eb;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dropzone:hover {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.dropzone.dz-drag-hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* Tabulka sanonů a souborů */
.sanony-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sanony-table thead {
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.sanony-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.sanony-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.sanony-table tbody tr:hover {
    background: #f9fafb;
}

.sanony-table tbody td {
    padding: 0.75rem 1rem;
}

.col-icon {
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
}

.col-name {
    font-weight: 500;
}

.col-size {
    width: 120px;
    color: #6b7280;
}

.col-modified {
    width: 180px;
    color: #6b7280;
}

.col-actions {
    width: 150px;
    text-align: right;
}

.col-path {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Odkazy na sanony a soubory */
.sanon-link,
.file-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.sanon-link:hover {
    color: #2563eb;
}

.file-link:hover {
    color: #2563eb;
}

.sanon-row {
    font-weight: 500;
}

/* Tlačítka akcí */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.btn-icon i {
    font-size: 0.9rem;
}

/* Prázdný stav */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state p {
    margin: 0.5rem 0;
}

.empty-state i {
    margin-bottom: 1rem;
}

/* Modal dialogy */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.modal-content-compact {
    max-width: 600px;
}

.modal-content-compact h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.modal-content-compact .help-text {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.close {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions .btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-actions .btn-primary {
    background: #16a34a;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #15803d;
}

.form-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #4b5563;
}

.help-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Checkbox grid pro oprávnění */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
    font-size: 0.9rem;
    margin: 0;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1;
    user-select: none;
}

/* Settings styles */
.settings-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.settings-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-actions {
    margin-bottom: 1.5rem;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.settings-table thead {
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.settings-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.settings-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.settings-table tbody td {
    padding: 0.75rem 1rem;
}

.settings-table code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #dc2626;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-string {
    background: #dbeafe;
    color: #1e40af;
}

.badge-int {
    background: #d1fae5;
    color: #065f46;
}

.badge-float {
    background: #fef3c7;
    color: #92400e;
}

.badge-bool {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-json {
    background: #fce7f3;
    color: #831843;
}

.help-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.help-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-box ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.help-box li {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Search results */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.results-count {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.search-results {
    margin-top: 1.5rem;
}


/* ====== VACATION CALENDAR ====== */
.month-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-month {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 150px;
    text-align: center;
}

.calendar-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.vacation-calendar {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vacation-calendar th {
    background: #3b82f6;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2563eb;
}

.vacation-calendar th.weekend {
    background: #60a5fa;
}

.vacation-calendar td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    vertical-align: top;
    height: 100px;
    width: 14.28%;
    position: relative;
}

.vacation-calendar td.weekend {
    background: #f9fafb;
}

.vacation-calendar td.empty {
    background: #f3f4f6;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.vacations {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.vacation-bar {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vacation-name {
    font-weight: 600;
}

.legend {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vacation-sample {
    display: inline-block;
    width: 80px;
    height: 20px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 4px;
}

