/* ============================================================
   GP117 — единый раздел «График работы / приём специалистов»
   Файл подключается автоматически из gp117-schedule.js
   ============================================================ */

.gp117-schedule-shell,
.gp117-schedule-shell *,
.gp117-schedule-shell *::before,
.gp117-schedule-shell *::after {
    box-sizing: border-box;
}

.gp117-schedule-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    animation: gp117ScheduleEnter .22s ease both;
}

.gp117-schedule-shell a {
    text-decoration: none;
}

.gp117-schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.gp117-schedule-back,
.gp117-schedule-toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #d7dfd2;
    border-radius: 8px;
    background: #ffffff;
    color: #536542 !important;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gp117-schedule-back:hover,
.gp117-schedule-toolbar-link:hover {
    border-color: #a9bd96;
    background: #f0f5ea;
    color: #31451f !important;
    box-shadow: 0 3px 10px rgba(53, 75, 40, .08);
    transform: translateY(-1px);
}

.gp117-schedule-back:focus,
.gp117-schedule-toolbar-link:focus,
.gp117-schedule-card:focus,
.gp117-schedule-tab:focus,
.gp117-schedule-holiday:focus,
.gp117-schedule-bottom-back:focus {
    outline: 3px solid rgba(140, 171, 47, .22);
    outline-offset: 2px;
}

.gp117-schedule-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 30px 28px;
    border: 1px solid #dfe6da;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faf4 100%);
    box-shadow: 0 5px 20px rgba(30, 42, 32, .055);
}

.gp117-schedule-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8cab2f;
}

.gp117-schedule-eyebrow {
    margin: 0 0 8px;
    color: #6f8d1c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

#maincontent .gp117-schedule-title,
.gp117-schedule-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #2f3337 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.24 !important;
}

.gp117-schedule-subtitle {
    max-width: 720px;
    margin: 0;
    color: #667066;
    font-size: 15px;
}

.gp117-schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.gp117-schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dce6be;
    border-radius: 8px;
    background: #f4f7eb;
    color: #46513d;
    font-size: 14px;
    line-height: 1.35;
}

.gp117-schedule-chip strong {
    color: #354226;
}

.gp117-schedule-chip a {
    color: #6f8d1c !important;
    font-weight: 700;
}

.gp117-schedule-chip a:hover {
    color: #4e6813 !important;
    text-decoration: underline;
}

.gp117-schedule-section {
    margin: 0 0 30px;
}

#maincontent .gp117-schedule-section-title,
.gp117-schedule-section-title {
    position: relative;
    margin: 0 0 16px !important;
    padding: 0 0 10px !important;
    color: #333333 !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.gp117-schedule-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 3px;
    border-radius: 2px;
    background: #8cab2f;
}

.gp117-schedule-section-intro {
    margin: -5px 0 16px;
    color: #6b716c;
    font-size: 14px;
}

.gp117-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.gp117-schedule-grid.gp117-schedule-grid-single {
    grid-template-columns: 1fr;
}

.gp117-schedule-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 84px;
    padding: 17px 18px 17px 20px;
    overflow: hidden;
    border: 1px solid #dce2d9;
    border-left: 4px solid #8cab2f;
    border-radius: 10px;
    background: #ffffff;
    color: #333333 !important;
    box-shadow: 0 2px 7px rgba(29, 42, 29, .035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.gp117-schedule-card:hover {
    border-color: #b8c9aa;
    background: #fbfdf9;
    box-shadow: 0 6px 18px rgba(45, 65, 38, .09);
    transform: translateY(-2px);
}

.gp117-schedule-card-main {
    min-width: 0;
}

.gp117-schedule-card-title {
    display: block;
    margin: 0 0 4px;
    color: #303530;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.gp117-schedule-card-text {
    display: block;
    color: #737a73;
    font-size: 13px;
    line-height: 1.35;
}

.gp117-schedule-card-arrow {
    flex: 0 0 auto;
    color: #8cab2f;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    transition: transform .18s ease;
}

.gp117-schedule-card:hover .gp117-schedule-card-arrow {
    transform: translateX(3px);
}

.gp117-schedule-holiday {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #dce6be;
    border-radius: 10px;
    background: #f4f7eb;
    color: #4d6318 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gp117-schedule-holiday:hover {
    border-color: #bdce85;
    background: #edf3df;
    transform: translateY(-1px);
}

.gp117-schedule-leadership {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gp117-schedule-person {
    padding: 18px 19px;
    border: 1px solid #dce2d9;
    border-left: 4px solid #8cab2f;
    border-radius: 10px;
    background: #ffffff;
}

.gp117-schedule-person-name {
    margin: 0 0 4px;
    color: #303530;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.gp117-schedule-person-role {
    margin: 0 0 13px;
    color: #6f8d1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.gp117-schedule-person-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
    gap: 12px 28px;
    color: #575e57;
    font-size: 14px;
}

.gp117-schedule-person-info strong {
    color: #333a33;
}

.gp117-schedule-tabs-wrap {
    margin: 0 0 22px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #dce5d7;
    border-radius: 10px;
    background: #f5f8f2;
}

.gp117-schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gp117-schedule-tab {
    display: inline-flex;
    align-items: center;
    min-height: 39px;
    padding: 8px 11px;
    border: 1px solid #cfd9c8;
    border-radius: 7px;
    background: #ffffff;
    color: #3e4d35 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.gp117-schedule-tab:hover {
    border-color: #a9bd96;
    background: #edf4e7;
    color: #2f461f !important;
    transform: translateY(-1px);
}

.gp117-schedule-tab.is-active {
    border-color: #7f9f22;
    background: #8cab2f;
    color: #ffffff !important;
    cursor: default;
}

.gp117-schedule-article {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #dfe5dc;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(30, 42, 32, .045);
}

#maincontent .gp117-schedule-article h1,
#maincontent .gp117-schedule-article h2,
#maincontent .gp117-schedule-article h3 {
    color: #303530 !important;
}

#maincontent .gp117-schedule-article h1 {
    margin-top: 0 !important;
    font-size: 24px !important;
}

#maincontent .gp117-schedule-article h2 {
    font-size: 20px !important;
}

#maincontent .gp117-schedule-article h3 {
    font-size: 17px !important;
}

.gp117-schedule-article .article-info,
.gp117-schedule-article .icons,
.gp117-schedule-article .actions,
.gp117-schedule-article .print-icon,
.gp117-schedule-article .email-icon,
.gp117-schedule-article .edit-icon {
    display: none !important;
}

.gp117-table-scroll {
    width: 100%;
    margin: 12px 0 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dde4da;
    border-radius: 9px;
    background: #ffffff;
}

#maincontent .gp117-schedule-article .gp117-table-scroll table,
#maincontent .gp117-schedule-article table {
    width: 100% !important;
    min-width: 620px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #303530 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
}

#maincontent .gp117-schedule-article table thead,
#maincontent .gp117-schedule-article table thead tr,
#maincontent .gp117-schedule-article table thead th {
    background: #687d5f !important;
    background-image: none !important;
    color: #ffffff !important;
}

#maincontent .gp117-schedule-article table th {
    padding: 11px 12px !important;
    border: 1px solid #7e9175 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: left;
    vertical-align: middle;
}

#maincontent .gp117-schedule-article table td {
    padding: 10px 12px !important;
    border: 1px solid #dfe5dc !important;
    background: #ffffff !important;
    color: #363b36 !important;
    vertical-align: top;
}

#maincontent .gp117-schedule-article table tbody tr:nth-child(odd) td {
    background: #f8faf6 !important;
}

#maincontent .gp117-schedule-article table a {
    color: #647f1a !important;
    font-weight: 700;
}

.gp117-schedule-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 4px 0 0;
    padding-top: 5px;
}

.gp117-schedule-bottom-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #dce6be;
    border-radius: 8px;
    background: #f4f7eb;
    color: #50661b !important;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gp117-schedule-bottom-back:hover {
    border-color: #bdce85;
    background: #edf3df;
    transform: translateY(-1px);
}

.gp117-schedule-loading-note {
    display: none;
}

body.gp117-schedule-loading #maincontent {
    opacity: .48;
    transform: translateY(3px);
    pointer-events: none;
}

body.gp117-schedule-loading {
    cursor: progress;
}

@keyframes gp117ScheduleEnter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .gp117-schedule-hero {
        padding: 25px 22px;
    }

    #maincontent .gp117-schedule-title,
    .gp117-schedule-title {
        font-size: 25px !important;
    }

    .gp117-schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .gp117-schedule-shell {
        margin: 0;
    }

    .gp117-schedule-toolbar {
        gap: 7px;
        margin-bottom: 11px;
    }

    .gp117-schedule-back,
    .gp117-schedule-toolbar-link {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .gp117-schedule-hero {
        margin-bottom: 20px;
        padding: 21px 16px 19px;
        border-radius: 10px;
    }

    #maincontent .gp117-schedule-title,
    .gp117-schedule-title {
        font-size: 22px !important;
    }

    .gp117-schedule-subtitle {
        font-size: 14px;
    }

    .gp117-schedule-meta {
        display: block;
        margin-top: 15px;
    }

    .gp117-schedule-chip {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
    }

    #maincontent .gp117-schedule-section-title,
    .gp117-schedule-section-title {
        font-size: 19px !important;
    }

    .gp117-schedule-card {
        min-height: 76px;
        padding: 14px 14px 14px 16px;
    }

    .gp117-schedule-card-title {
        font-size: 16px;
    }

    .gp117-schedule-card-text {
        font-size: 12.5px;
    }

    .gp117-schedule-person {
        padding: 16px;
    }

    .gp117-schedule-person-name {
        font-size: 16px;
    }

    .gp117-schedule-person-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gp117-schedule-tabs-wrap {
        margin-left: -2px;
        margin-right: -2px;
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gp117-schedule-tabs {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .gp117-schedule-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12.5px;
    }

    .gp117-schedule-article {
        padding: 15px;
        border-radius: 9px;
    }

    .gp117-table-scroll {
        margin-left: -2px;
        margin-right: -2px;
    }

    #maincontent .gp117-schedule-article table,
    #maincontent .gp117-schedule-article .gp117-table-scroll table {
        min-width: 560px;
        font-size: 13px !important;
    }
}



/* ============================================================
   ГРАФИКИ ВРАЧЕЙ — desktop + карточки на мобильном
   Работает и со старыми таблицами Joomla, где строка заголовка
   находится в <tbody> и состоит из обычных <td>.
   ============================================================ */

#maincontent .gp117-schedule-article table.gp117-schedule-data-table {
    min-width: 760px;
    table-layout: auto;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-head-row td,
#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-head-row th {
    padding: 12px 11px !important;
    border: 1px solid #7e9175 !important;
    background: #687d5f !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-head-row .gp117-col-room {
    text-align: center !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row td {
    height: auto !important;
    padding: 11px 11px !important;
    background: #ffffff !important;
    color: #333a33 !important;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    vertical-align: middle !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row:nth-child(odd) td {
    background: #f8faf6 !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-group-start td {
    border-top: 3px solid #c5d29f !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-department {
    width: 20% !important;
    min-width: 145px;
    color: #4f6419 !important;
    font-weight: 700 !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-name {
    width: 22% !important;
    min-width: 170px;
    color: #2f352f !important;
    font-weight: 700 !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-position {
    width: 20% !important;
    min-width: 150px;
    color: #555d55 !important;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-room {
    width: 72px !important;
    min-width: 72px;
    color: #5d7719 !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: nowrap;
}

#maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-hours {
    width: 30% !important;
    min-width: 205px;
    color: #424942 !important;
    font-weight: 600 !important;
}


.gp117-schedule-filter {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 12px;
    padding: 12px 13px;
    border: 1px solid #dfe5dc;
    border-radius: 10px;
    background: #f8faf6;
}

.gp117-schedule-filter-main {
    flex: 1 1 420px;
    min-width: 0;
}

.gp117-schedule-filter-label {
    display: block;
    margin: 0 0 5px;
    color: #4f5a4f;
    font-size: 12px;
    font-weight: 800;
}

.gp117-schedule-filter-input {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid #ccd6c7 !important;
    border-radius: 8px !important;
    outline: none;
    background: #ffffff !important;
    color: #303630 !important;
    font: inherit !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.gp117-schedule-filter-input:focus {
    border-color: #8cab2f !important;
    box-shadow: 0 0 0 3px rgba(140, 171, 47, .13) !important;
}

.gp117-schedule-filter-count {
    flex: 0 0 auto;
    padding-bottom: 9px;
    color: #697269;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gp117-filter-hidden {
    display: none !important;
}

@media (max-width: 700px) {
    .gp117-schedule-filter {
        display: block;
        margin: 0 0 11px;
        padding: 10px;
    }

    .gp117-schedule-filter-count {
        padding: 7px 1px 0;
        white-space: normal;
    }

    .gp117-schedule-filter-input {
        min-height: 44px;
        font-size: 16px !important;
    }

    .gp117-schedule-article {
        padding: 12px !important;
        background: #f6f8f3;
    }

    .gp117-schedule-data-wrap {
        margin: 4px 0 10px !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table tbody {
        display: block !important;
        width: 100% !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-head-row {
        display: none !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row {
        display: block !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 13px 13px !important;
        overflow: hidden;
        border: 1px solid #dce3d8 !important;
        border-left: 4px solid #8cab2f !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 9px rgba(30, 42, 32, .045);
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-group-start {
        margin-top: 20px !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 7px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #edf0ea !important;
        background: transparent !important;
        color: #394039 !important;
        font-size: 14px !important;
        line-height: 1.42 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row td:last-child {
        border-bottom: 0 !important;
        padding-bottom: 1px !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-schedule-data-row td::before {
        content: attr(data-label);
        display: block;
        margin: 0 0 2px;
        color: #7b8278;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: .015em;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-department {
        margin: 0 -13px 7px !important;
        padding: 10px 12px !important;
        border-bottom: 1px solid #dce6be !important;
        background: #f4f7eb !important;
        color: #50661b !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-department::before {
        display: none !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-name {
        padding-top: 8px !important;
        color: #2e342e !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-name::before {
        color: #71804f;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-position {
        color: #555d55 !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-room {
        color: #58701a !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    #maincontent .gp117-schedule-article table.gp117-schedule-data-table .gp117-col-hours {
        color: #363d36 !important;
        font-weight: 700 !important;
    }
}


@media (prefers-reduced-motion: reduce) {
    .gp117-schedule-shell,
    .gp117-schedule-card,
    .gp117-schedule-card-arrow,
    .gp117-schedule-tab,
    .gp117-schedule-back,
    .gp117-schedule-toolbar-link,
    .gp117-schedule-bottom-back,
    .gp117-schedule-holiday {
        animation: none !important;
        transition: none !important;
    }
}


/* ============================================================
   GP117 ACCESSIBILITY SCHEDULE v7
   Этот файл используется ТОЛЬКО шаблоном accessibility.
   Оригинальная геометрия расписания сохранена, но цвета и
   типографика полностью подчиняются текущей схеме слабовидящих.
   ============================================================ */

html body #accessibility-shell #maincontent.main-content .gp117-schedule-shell {
    max-width: 100%;
    color: var(--fg) !important;
    font-family: inherit !important;
    font-size: 1em !important;
    line-height: 1.55 !important;
}

/* Основные контейнеры */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-hero,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-card,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-tabs-wrap,
html body #accessibility-shell #maincontent.main-content .gp117-table-scroll,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-wrap {
    background: var(--panel) !important;
    background-image: none !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-card,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person {
    min-height: 102px;
    padding: 20px 22px;
    border-left: 5px solid var(--accent) !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-card:hover,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person:hover {
    background: var(--panel-strong) !important;
    border-color: var(--accent) !important;
    transform: none;
}

/* Заголовки и основной текст */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-title {
    color: var(--fg) !important;
    font-size: 1.65em !important;
    line-height: 1.2 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-section-title {
    color: var(--fg) !important;
    font-size: 1.32em !important;
    line-height: 1.3 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-subtitle,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-section-intro {
    color: var(--fg) !important;
    font-size: 1em !important;
    line-height: 1.5 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-card-title {
    color: var(--fg) !important;
    font-size: 1.18em !important;
    line-height: 1.28 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-card-text {
    color: var(--fg) !important;
    font-size: 1em !important;
    line-height: 1.42 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-card-arrow {
    color: var(--accent) !important;
    font-size: 1.7em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-eyebrow {
    color: var(--accent) !important;
    font-size: .9em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-hero::before,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-section-title::after {
    background: var(--accent) !important;
}

/* Чипы, кнопки и праздничный блок */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-chip,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-back,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-toolbar-link,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-bottom-back,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-tab {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    font-size: .98em !important;
    min-height: 46px;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-chip,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-chip strong,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-chip a {
    color: var(--fg) !important;
    font-size: 1em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-holiday {
    background: var(--panel-strong) !important;
    background-image: none !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    border-left: 5px solid var(--accent) !important;
    font-size: 1.05em !important;
    min-height: 72px;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-tab.is-active {
    background: var(--accent) !important;
    color: var(--accent-contrast) !important;
    border-color: var(--accent) !important;
}

/* Карточки сотрудников */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person-name {
    color: var(--fg) !important;
    font-size: 1.16em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-person-role,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person-info,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-person-info strong {
    color: var(--fg) !important;
    font-size: 1em !important;
}

/* Поиск по расписанию */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-filter {
    background: var(--panel) !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-filter-label,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-filter-count {
    color: var(--fg) !important;
    font-size: .92em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-filter-input {
    min-height: 50px;
    background: var(--bg) !important;
    color: var(--fg) !important;
    border: 2px solid var(--border) !important;
    font-size: 1em !important;
}

/* Материалы и таблицы */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h1,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h2,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h3,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article p,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article li,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article strong,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article span {
    color: var(--fg) !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h1 {
    font-size: 1.48em !important;
}
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h2 {
    font-size: 1.28em !important;
}
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article h3 {
    font-size: 1.14em !important;
}
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article p,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article li {
    font-size: 1em !important;
    line-height: 1.55 !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-article table,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-table,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article tbody,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article tr {
    background: var(--bg) !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    font-size: .95em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-article th,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-table th,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-head-row th,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-head-row td {
    background: var(--panel-strong) !important;
    background-image: none !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    font-size: .95em !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-article td,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-table td,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row td,
html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row:nth-child(odd) td {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
    font-size: .95em !important;
}

/* Цветные колонки старой таблицы также переводим в текущую схему */
html body #accessibility-shell #maincontent.main-content .gp117-col-department,
html body #accessibility-shell #maincontent.main-content .gp117-col-name,
html body #accessibility-shell #maincontent.main-content .gp117-col-position,
html body #accessibility-shell #maincontent.main-content .gp117-col-room,
html body #accessibility-shell #maincontent.main-content .gp117-col-hours {
    color: var(--fg) !important;
}

/* Перебиваем старые inline-фоны внутри загруженных AJAX-материалов */
html body #accessibility-shell #maincontent.main-content .gp117-schedule-article [style*="background"] {
    background-color: transparent !important;
    background-image: none !important;
}

html body #accessibility-shell #maincontent.main-content .gp117-schedule-article [style*="color"] {
    color: var(--fg) !important;
}

/* В мобильном виде строки таблицы тоже не должны становиться белыми */
@media (max-width: 700px) {
    html body #accessibility-shell #maincontent.main-content .gp117-schedule-card {
        min-height: 96px;
        padding: 18px 19px;
    }

    html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row {
        background: var(--panel) !important;
        border-color: var(--border) !important;
        border-left-color: var(--accent) !important;
    }

    html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row td,
    html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row .gp117-col-department {
        background: transparent !important;
        color: var(--fg) !important;
        border-color: var(--border) !important;
        font-size: .98em !important;
    }

    html body #accessibility-shell #maincontent.main-content .gp117-schedule-data-row td::before {
        color: var(--fg) !important;
        font-size: .78em !important;
    }
}

/* Увеличенная схема должна действительно быть крупной, даже там,
   где исходный gp117-schedule.css задавал пиксели с !important. */
body.fontsize-big #accessibility-shell #maincontent .gp117-schedule-shell {
    line-height: 1.62 !important;
}

body.fontsize-big #accessibility-shell #maincontent .gp117-schedule-card {
    min-height: 122px;
}

