/* hlavní lišta */
.top-menu {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 52px;
    background: #355e35;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* levá část */
.menu-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* logo */
.menu-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
}

/* hlavní menu */
.menu-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    position: relative;
}

/* položka */
.menu-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0 1rem;
    height: 52px;

    text-decoration: none;
    color: white;
    font-size: 0.95rem;
}

.menu-nav > ul > li > a:hover {
    background: #2e4f2e;
}

/* dropdown */
.menu-nav li ul {
    position: absolute;
    top: 52px;
    left: 0;

    display: none;
    flex-direction: column;

    min-width: 210px;

    background: white;
    border-radius: 6px;
    border: 1px solid #e3efe3;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);

    padding: 0.4rem 0;
	
	overflow: hidden;
}

/* zobrazit dropdown */
.menu-nav li:hover ul {
    display: flex;
}

/* submenu položka */
.menu-nav li ul a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;

    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #355e35;
    font-size: 0.9rem;

    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}
.menu-nav li ul a:hover {
    background: #e6f4e6;
    color: #1f3d1f;
}

/* levý indikátor */
.menu-nav li ul a:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4A7A4A;
}

/* pravá část */
.menu-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-user-name {
    font-size: 0.9rem;
}

.menu-user a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.menu-user a:hover {
    text-decoration: underline;
}

/* ikony */
.menu-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

/* sekundární toolbar */
.page-toolbar {
    position: sticky;
    top: 52px; /* výška hlavního menu */

    z-index: 900;

    background: #f8fbf8;
    border-bottom: 1px solid #e3efe3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.5rem 1.2rem;
}

/* skupina tlačítek */
.toolbar-group {
    display: flex;
    gap: 0.5rem;
}

/* název stránky */
.toolbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #355e35;
}

/* tlačítka v toolbaru */
.page-toolbar .btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-right {
    display: flex;
    gap: 0.5rem;
}

/* formulář filtru v toolbaru */
.toolbar-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* pole filtru */
.toolbar-filter input,
.toolbar-filter select {
    height: 30px;
    padding: 0 0.55rem;

    border: 1px solid #cfe3cf;
    border-radius: 5px;

    font-size: 0.85rem;
    background: white;

    transition: border-color 0.15s, box-shadow 0.15s;
}

/* focus */
.toolbar-filter input:focus,
.toolbar-filter select:focus {
    outline: none;
    border-color: #4A7A4A;
    box-shadow: 0 0 0 2px rgba(74,122,74,0.15);
}

/* tlačítko filtru */
.toolbar-filter button {
    height: 30px;
    padding: 0 0.7rem;
    font-size: 0.85rem;
}

.toolbar-filter input::placeholder {
    color: #8ca68c;
}
.toolbar-filter select {
    appearance: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 30px;
    padding: 0 0.7rem;

    font-size: 0.85rem;
    line-height: 1;

    border-radius: 5px;
    border: 1px solid transparent;

    cursor: pointer;
    text-decoration: none;
}

/* sjednocení pro input */
input.btn {
    appearance: none;
}