﻿.ep-calendar-page {
    max-width: 1500px;
    margin: 16px auto 32px auto;
    padding: 0 16px;
}

.ep-calendar-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #0E2B47 0%, #174C7A 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    margin-bottom: 16px;
}

    .ep-calendar-hero::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 6px;
        height: 100%;
        background: linear-gradient(180deg, #D6A84F 0%, #F4D47C 100%);
    }

.ep-calendar-hero__inner {
    padding: 20px 24px 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ep-calendar-hero__kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #C7D7E8;
    margin-bottom: 4px;
}

.ep-calendar-hero h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ep-calendar-hero__subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #DDEAF7;
}

.ep-calendar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ep-calendar-btn {
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .16s ease;
    white-space: nowrap;
}

.ep-calendar-btn--light {
    background: #FFFFFF;
    color: #0E2B47;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

    .ep-calendar-btn--light:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    }

.ep-calendar-filterbar {
    position: sticky;
    top: 60px;
    z-index: 15;
    border: 1px solid #D9E2EC;
    border-radius: 16px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4FA 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}

.ep-calendar-filterbar__inner {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1.4fr 180px 180px 160px auto;
    gap: 12px;
    align-items: end;
}

.ep-calendar-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ep-calendar-input,
.ep-calendar-select {
    width: 100%;
    height: 39px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #fff;
    color: #0F172A;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    outline: none;
    box-sizing: border-box;
}

    .ep-calendar-input:focus,
    .ep-calendar-select:focus {
        border-color: #2563EB;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
    }

.ep-calendar-search-btn {
    height: 39px;
    border: 0;
    border-radius: 10px;
    background: #0E2B47;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 0 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(14, 43, 71, 0.2);
}

    .ep-calendar-search-btn:hover {
        background: #174C7A;
    }

.ep-calendar-content {
    border: 1px solid #D9E2EC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.ep-calendar-content__header {
    min-height: 52px;
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #F8FAFC;
}

.ep-calendar-content__title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.ep-calendar-content__hint {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

.ep-calendar-list-wrap {
    min-height: 280px;
}

@media (max-width: 1100px) {
    .ep-calendar-filterbar__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .ep-calendar-hero__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ep-calendar-filterbar__inner {
        grid-template-columns: 1fr;
    }
}


/*CalendarPartial*/
.header_radius {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.radius {
    border-radius: 18px;
}

.ep-calendar-table {
    width: 100%;
}

.ep-calendar-table__head {
    display: grid;
    grid-template-columns: 190px minmax(280px, 1fr) 220px 120px 120px;
    gap: 12px;
    padding: 12px 16px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ep-calendar-row {
    display: grid;
    grid-template-columns: 190px minmax(280px, 1fr) 220px 120px 120px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 13px 16px;
    border-bottom: 1px solid #EEF2F7;
    background: #FFFFFF;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .ep-calendar-row:hover {
        background: #F8FAFC;
        box-shadow: inset 4px 0 0 #D6A84F;
    }

    .ep-calendar-row:last-child {
        border-bottom: 0;
    }

.ep-calendar-date-main {
    color: #0E2B47;
    font-size: 13px;
    font-weight: 800;
}

.ep-calendar-row__title {
    color: #0F172A;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.ep-calendar-row__sub {
    margin-top: 4px;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
}

.ep-calendar-row__place {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.ep-calendar-type {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.ep-calendar-type--activity {
    background: #EEF4FA;
    color: #174C7A;
}

.ep-calendar-type--adtest {
    background: #FEF3C7;
    color: #92400E;
}

.ep-calendar-type--cpd {
    background: #F3E8FF;
    color: #6B21A8;
}

.ep-calendar-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.ep-calendar-badge--active {
    background: #DCFCE7;
    color: #166534;
}

.ep-calendar-badge--closed {
    background: #E2E8F0;
    color: #475569;
}

.ep-calendar-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-align: center;
    padding: 32px;
}

.ep-calendar-empty__icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.ep-calendar-empty__title {
    color: #0F172A;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ep-calendar-empty__text {
    font-size: 13px;
    font-weight: 600;
}

.ep-calendar-empty__icon--calendar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #EEF4FA 0%, #DDEAF7 100%);
    border: 1px solid #CBD5E1;
    position: relative;
    margin-bottom: 12px;
}

    .ep-calendar-empty__icon--calendar::before {
        content: "";
        position: absolute;
        left: 11px;
        right: 11px;
        top: 13px;
        height: 4px;
        border-radius: 999px;
        background: #174C7A;
    }

    .ep-calendar-empty__icon--calendar::after {
        content: "";
        position: absolute;
        left: 11px;
        right: 11px;
        bottom: 12px;
        height: 10px;
        border-radius: 4px;
        background: #D6A84F;
    }

.ep-calendar-list-wrap--loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

@media (max-width: 1100px) {
    .ep-calendar-table__head {
        display: none;
    }

    .ep-calendar-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
        padding: 16px;
    }

    .ep-calendar-row__place::before {
        content: "Miesto: ";
        color: #64748B;
        font-weight: 800;
    }
}

.ep-calendar-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #D9E2EC;
    border-radius: 16px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4FA 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ep-calendar-info__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0E2B47;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(14, 43, 71, 0.22);
}

.ep-calendar-info__title {
    color: #0F172A;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
}

.ep-calendar-info__text {
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

    .ep-calendar-info__text strong {
        color: #0E2B47;
        font-weight: 900;
    }

/*Appointment*/

.ep-apt {
    background: #FFFFFF;
    color: #0F172A;
    font-family: inherit;
}

.ep-apt__hero {
    position: relative;
    padding: 18px 20px 16px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0E2B47 0%, #174C7A 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    margin-bottom: 16px;
}

    .ep-apt__hero::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(180deg, #D6A84F 0%, #F4D47C 100%);
    }

.ep-apt__kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #C7D7E8;
    margin-bottom: 5px;
}

.ep-apt__title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.ep-apt__meta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ep-apt-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
}

.ep-apt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all .15s ease;
}

.ep-apt-btn--primary {
    background: #0E2B47;
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(14, 43, 71, .22);
}

    .ep-apt-btn--primary:hover {
        background: #174C7A;
        transform: translateY(-1px);
        color: #FFFFFF;
        text-decoration: none;
    }

.ep-apt-registration__full {
    color: #DC2626;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.ep-apt__description {
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.ep-apt-section {
    border: 1px solid #D9E2EC;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 16px;
}

.ep-apt-section__header {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4FA 100%);
}

.ep-apt-section__title {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #0F172A;
}

.ep-apt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.ep-apt-item {
    padding: 5px 16px;
    border-bottom: 1px solid #EEF2F7;
}

    .ep-apt-item:nth-child(odd) {
        border-right: 1px solid #EEF2F7;
    }

.ep-apt-label {
    margin-bottom: 5px;
    color: #64748B;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ep-apt-value {
    color: #0F172A;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

    .ep-apt-value a,
    .ep-apt-download a {
        color: #174C7A;
        font-weight: 900;
        text-decoration: none;
        font-size: 12px;
    }

        .ep-apt-value a:hover,
        .ep-apt-download a:hover {
            text-decoration: underline;
        }

.ep-apt-downloads {
    padding: 12px 16px 14px 16px;
    display: grid;
    gap: 10px;
}

.ep-apt-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 11px 12px;
}

.ep-apt-download__label {
    color: #64748B;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}


.ep-calendar-input[type="date"] {
    cursor: default;
}

    .ep-calendar-input[type="date"]:hover {
        border-color: #94A3B8;
    }

    .ep-calendar-input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }

.ep-calendar-input:hover,
.ep-calendar-select:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.ep-calendar-input:focus,
.ep-calendar-select:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

/* Vyhľadávanie - textové pole */
#calendarSearchText {
    cursor: text;
}

/* Výber typu - select */
.ep-calendar-select {
    cursor: pointer;
}

/* Natívna ikonka kalendára */
.ep-calendar-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Dátumové pole ako celok */
.ep-calendar-input[type="date"] {
    cursor: pointer;
}

@media (max-width: 720px) {
    .ep-apt-grid {
        grid-template-columns: 1fr;
    }

    .ep-apt-item:nth-child(odd) {
        border-right: 0;
    }

    .ep-apt-registration {
        justify-content: stretch;
    }

    .ep-apt-btn {
        width: 100%;
    }
}

/*Modal okno*/
.ep-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .ep-modal.is-open {
        display: block;
    }

.ep-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.ep-modal__dialog {
    position: relative;
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: epModalIn .16s ease-out;
}

.ep-modal__header {
    min-height: 64px;
    padding: 5px 18px 5px 22px;
    background: linear-gradient(135deg, #0E2B47 0%, #174C7A 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

    .ep-modal__header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(180deg, #D6A84F 0%, #F4D47C 100%);
    }

.ep-modal__kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #C7D7E8;
    margin-bottom: 3px;
}

.ep-modal__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.ep-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #FFFFFF;
    font-size: 25px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .ep-modal__close:hover {
        background: rgba(255, 255, 255, .24);
        transform: scale(1.04);
    }

.ep-modal__body {
    padding: 16px;
    overflow: auto;
    max-height: calc(100vh - 130px);
    background: #FFFFFF;
}

body.ep-modal-open {
    overflow: hidden;
}

@keyframes epModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .ep-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 16px;
    }

    .ep-modal__body {
        max-height: calc(100vh - 110px);
        padding: 12px;
    }
}

.ep-apt__hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ep-apt__hero-main {
    min-width: 0;
}

.ep-apt__hero-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 2px;
}

.ep-apt-btn--gold {
    width: auto !important;
    min-width: 150px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D6A84F 0%, #F4D47C 100%);
    color: #0E2B47;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(214, 168, 79, .28);
    border: 1px solid rgba(255, 255, 255, .28);
    white-space: nowrap;
}

    .ep-apt-btn--gold:hover {
        background: linear-gradient(135deg, #C99632 0%, #F1C95E 100%);
        color: #0E2B47;
        text-decoration: none;
        transform: translateY(-1px);
    }

.ep-apt-registration__full--header {
    max-width: 240px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(254, 226, 226, .96);
    color: #991B1B;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.ep-apt__hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ep-apt__hero-actions {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ep-apt-btn--gold {
    width: 100%;
}

@media (max-width: 720px) {
    .ep-apt__hero-inner {
        flex-direction: column;
    }

    .ep-apt__hero-actions {
        width: 100%;
    }

    .ep-apt-btn--gold {
        width: 100% !important;
    }
}