/* Minor overrides beyond Tailwind */
html {
    scroll-behavior: smooth;
}

input[type="date"],
input[type="time"],
input[type="email"],
input[type="text"],
input[type="number"],
select,
textarea {
    font-family: inherit;
}

/* Hide the hidden-template row used by Alpine.js to clone product rows */
[x-cloak] {
    display: none !important;
}

/* --- Projekt typeahead (Měsíc) — dropdown nad tabulkou --- */
.proj-cell {
    position: relative;
}
.proj-input.proj-saved {
    border-color: #4e888e;
    background: #e6f2f3;
}
.proj-dropdown {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    margin-top: 3px;
    min-width: 18rem;
    max-width: 24rem;
    max-height: 18rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.proj-opt {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}
.proj-opt:last-child {
    border-bottom: 0;
}
.proj-opt:hover {
    background: #e6f2f3;
}
.proj-opt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.proj-opt-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2d5155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.proj-opt-company {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}
.proj-badge {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.proj-badge-open {
    background: #ecfdf5;
    color: #059669;
}
.proj-badge-closed {
    background: #f3f4f6;
    color: #6b7280;
}
.proj-empty {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
}
