/* ---------- Rozvrh výuky (časové možnosti) – detail učitele + editor (rozvrh-editor.js) ---------- */
.rozvrh-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.rozvrh {
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1;
}

table.rozvrh th {
    font-weight: normal;
    text-align: center;
    padding: 2px 3px;
    white-space: nowrap;
    color: #7a6042;
}

table.rozvrh tbody th {
    text-align: right;
    padding-right: 6px;
}

table.rozvrh td {
    width: 24px;
    min-width: 24px;
    height: 20px;
    padding: 0;
    /* barvy webu: ohraničení jako karty výuky (.vyuka-card), nedostupné = jemná šrafa */
    border: 1px solid #e3ddd2;
    background-color: #fff;
    background-image: repeating-linear-gradient(45deg, transparent 0 5px, #f1ebe2 5px 6px);
}

table.rozvrh td.rozvrh-on {
    background: #d4bc96;
    border: 1px solid #b89c72;
}

/* detail učitele: mřížka se vejde na šířku sloupce (24 hodin by jinak přetekly a ukázal se scrollbar);
   na velmi úzkém displeji zůstává jako pojistka vodorovný posuv z .rozvrh-wrap */
.rozvrh-detail table.rozvrh {
    width: 100%;
    min-width: 400px;
    table-layout: fixed;
}

.rozvrh-detail table.rozvrh thead th:first-child {
    width: 28px;
}

.rozvrh-detail table.rozvrh th {
    padding-left: 0;
    padding-right: 0;
    font-size: 11px;
}

.rozvrh-detail table.rozvrh tbody th {
    padding-right: 4px;
}

.rozvrh-detail table.rozvrh td {
    width: auto;
    min-width: 0;
}

.rozvrh-poznamka {
    margin-top: 6px;
    font-size: 12px;
}

/* editor */
table.rozvrh-edit button {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

table.rozvrh-edit td,
table.rozvrh-edit .rozvrh-radek,
table.rozvrh-edit .rozvrh-sloupec {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

table.rozvrh-edit td {
    width: 28px;
    min-width: 28px;
    height: 26px;
}

table.rozvrh-edit td:hover {
    outline: 2px solid #7a6042;
    outline-offset: -2px;
}

table.rozvrh-edit .rozvrh-radek:hover,
table.rozvrh-edit .rozvrh-sloupec:hover {
    text-decoration: underline;
}

table.rozvrh-edit button:focus-visible {
    outline: 2px solid #d34615;
    outline-offset: -2px;
}

/* pole „Kdy máte čas" vyplněné automaticky z rozvrhu (rozvrh-editor.js) */
.form-group.rozvrh-odvozeno {
    opacity: .55;
    cursor: not-allowed;
}

.form-group.rozvrh-odvozeno * {
    pointer-events: none;
}

/* kompaktní mřížka v přehledu výuk učitele (úzký sloupec karty) */
table.rozvrh-kompakt,
table.rozvrh-kompakt th {
    font-size: 10px;
    font-weight: normal;
}

table.rozvrh-kompakt th {
    padding: 1px;
}

table.rozvrh-kompakt tbody th {
    padding-right: 3px;
}

table.rozvrh-kompakt td {
    width: 16px;
    min-width: 16px;
    height: 14px;
}

.vyuka-meta .vyuka-rozvrh {
    margin-bottom: 10px;
}

/* výpis učitelů (Doucovani: doucovani/online): místo mřížky jen informace „Rozvrh k dispozici"
   ve stylu pilulky „Naposledy přihlášen" (extras.css); vysoká specificita kvůli p ve template.css */
.rozvrh-info,
html body section#content .container ul.wrapper li.item .content .rozvrh-info {
    display: inline-block;
    position: relative;
    margin: 0 0 15px;
    padding: 6px 14px 6px 34px;
    border-radius: 25px;
    background-color: #fff;
    border: 1px solid #424242;
    font-size: 15px;
    font-weight: 600;
    color: #424242;
    line-height: 1.3;
}

.rozvrh-info::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("../images/icons/icon-kalendar.svg") no-repeat center;
    background-size: contain;
}

/* popisek nad kompaktní mřížkou (přehled výuk učitele) */
.rozvrh-popisek {
    font-weight: 600;
    font-size: 13px;
    color: #424242;
    margin-bottom: 3px;
}
