/* --- Üldine --- */
body {
    background-color: #fff;
}

/* --- Otsingutulemused (kasutatakse: ruumid, klassid, õpetajad) --- */
#search-results {
    position: absolute;
    width: 100%;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border-top: none;
    background: white;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0 0 .25rem .25rem;
}

/* --- Tunniplaan (timetable.html) --- */
.current-lesson {
    border-left: 5px solid var(--bs-primary) !important;
}
.current-lesson .card-body,
.current-lesson .card-header,
.current-lesson .list-group-item {
    background-color: var(--bs-primary-bg-subtle) !important;
}
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.title-container h2 {
    margin-bottom: 0;
    flex-grow: 1;
}
.title-nav {
    flex-shrink: 0;
}

/* --- Prindivaade (print_view.html) --- */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .container-fluid {
        padding: 0 !important;
    }
    .print-table th, .print-table td {
        font-size: 8pt;
        border: 1px solid #666 !important;
    }
    tr {
        page-break-inside: avoid;
    }
    .lesson-block {
        border: none;
        padding: 0;
    }
    @page {
        margin: 1cm;
    }
}

/* Prinditabeli spetsiifika */
.print-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
.print-table th, .print-table td {
    border: 1px solid #666;
    padding: 0.25rem;
    text-align: left;
    vertical-align: top;
    height: auto;
    min-height: 40px;
    word-wrap: break-word;
    font-size: 0.9rem;
}
.print-table th:first-child, .print-table td:first-child {
    width: 12%;
    text-align: center;
    vertical-align: middle;
    background-color: #f8f9fa;
}
.print-table th:not(:first-child), .print-table td:not(:first-child) {
    width: 17.6%;
}
.lesson-block {
    font-size: 0.85rem;
    margin-bottom: 4px;
    padding: 4px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #eee;
}
.lesson-block:last-child {
    margin-bottom: 0;
}