.td-zoznam {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 18px 40px;
    box-sizing: border-box;
    color: #e5e9e7;
    font-family: Arial, sans-serif;
}

/* HLAVIČKA */

.td-zoznam-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.td-zoznam-heading h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

/* VYHĽADÁVANIE */

.td-zoznam-search {
    display: flex;
    align-items: center;
    position: relative;
}

.td-zoznam-search summary {
    list-style: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #35413c;
    border-radius: 10px;
    background: #202925;
}

.td-zoznam-search summary::-webkit-details-marker {
    display: none;
}

.td-zoznam-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #19cc85;
    stroke-width: 2;
    stroke-linecap: round;
}

.td-zoznam-search input {
    position: absolute;
    right: 50px;
    width: 220px;
    padding: 12px;
    color: #e5e9e7;
    background: #202925;
    border: 1px solid #52645a;
    border-radius: 9px;
    outline: none;
}

.td-zoznam-search:not([open]) input {
    display: none;
}

/* PRIDAŤ PLÁN */

.td-zoznam-add {
    width: 100%;
    max-width: 430px;
    min-height: 43px;
    margin-bottom: 30px;
    border: 0;
    border-radius: 24px;
    background: #16b676;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
}

.td-zoznam-add span {
    margin-right: 7px;
    font-size: 19px;
}

/* ZOZNAM */

.td-zoznam-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* OBAL PLÁNU */

.td-zoznam-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    grid-template-rows: auto auto;
    overflow: hidden;
    border: 1px solid #35413c;
    border-left: 4px solid #16b676;
    border-radius: 11px;
    background: #202725;
}

.td-zoznam-item:has(.td-zoznam-item-details[open]) {
    border-color: #16b676;
    border-left-width: 4px;
}

/* DETAILS SPRÁVA ROZBALENIA */

.td-zoznam-item-details {
    display: contents;
}

/* HLAVIČKA PLÁNU */

.td-zoznam-item-header {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 66px;
    padding: 13px 5px 13px 16px;
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
}

.td-zoznam-item-header::-webkit-details-marker {
    display: none;
}

.td-zoznam-item-icon {
    flex: 0 0 25px;
    color: #19cc85;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.td-zoznam-item-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
    min-width: 0;
    flex: 1;
}

.td-zoznam-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f4f2;
}

.td-zoznam-item-date {
    color: #91a198;
    font-size: 11px;
    font-style: italic;
}

.td-zoznam-item-description {
    flex-basis: 100%;
    color: #b9c5bd;
    font-size: 12px;
    line-height: 1.5;
}

/* ŠÍPKA */

.td-zoznam-item-arrow {
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
    margin: 0 5px 5px 10px;
    border-right: 2px solid #aab8b0;
    border-bottom: 2px solid #aab8b0;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.td-zoznam-item-details[open] .td-zoznam-item-arrow {
    transform: rotate(225deg);
    margin-bottom: -5px;
}

/* TRI BODKY */

.td-zoznam-item-menu {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aab8b0;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

/* PLUS */

.td-zoznam-item-add {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1.5px solid #19cc85;
    border-radius: 50%;
    background: transparent;
    color: #19cc85;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

/* ROZBALENÝ OBSAH */

.td-zoznam-item-content {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 4px 18px 8px 55px;
    border-top: 1px solid #35413c;
    background: #171f1b;
}

.td-zoznam-training {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 5px;
}

.td-zoznam-training + .td-zoznam-training {
    border-top: 1px solid #35413c;
}

.td-zoznam-training-icon {
    flex: 0 0 25px;
    color: #19cc85;
    font-size: 24px;
    font-weight: bold;
}

.td-zoznam-training strong {
    display: block;
    color: #e5e9e7;
    font-size: 14px;
}

.td-zoznam-training small {
    display: block;
    margin-top: 4px;
    color: #91a198;
    font-size: 11px;
}

.td-training-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 7px;
}

.td-training-row {
    display: grid;
    grid-template-columns: 28px 82px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 7px;
    min-height: 52px;
    padding: 7px 8px;
    background: #202020;
    border-bottom: 1px solid #353535;
}

.td-training-row:nth-child(even) {
    background: #303030;
}

.td-training-period {
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-period-current {
    color: #19cc85;
}

.td-period-previous {
    color: #d5a64b;
}

.td-period-older {
    color: #89949d;
}

.td-training-date {
    color: #e5e5e5;
    font-size: 12px;
    white-space: nowrap;
}

.td-training-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    color: #eeeeee;
}

.td-training-info strong {
    font-size: 13px;
    font-weight: 500;
}

.td-training-info small {
    color: #bdbdbd;
    font-size: 11px;
    font-style: italic;
    line-height: 1.35;
}

.td-training-bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eeeeee;
    cursor: pointer;
}

.td-training-bookmark.is-completed {
    color: #19cc85;
}



.td-zoznam-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 10px;
    background: #171717;
    border-top: 2px solid #16b676;
    color: #eeeeee;
    font-size: 12px;
}

.td-zoznam-pagination-info {
    white-space: nowrap;
}

.td-zoznam-pagination-limit {
    min-width: 80px;
    padding: 5px;
    background: #eeeeee;
    color: #222222;
    border: 1px solid #777;
    border-radius: 4px;
}

.td-zoznam-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.td-zoznam-pagination-buttons button {
    min-width: 25px;
    height: 25px;
    padding: 2px 5px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #303030;
    color: #eeeeee;
    font-size: 12px;
    cursor: pointer;
}

.td-zoznam-pagination-buttons button.active {
    background: #eeeeee;
    color: #16b676;
    border-color: #16b676;
    font-weight: 700;
}

/* MOBIL */

@media (max-width: 600px) {

    .td-zoznam {
        padding: 20px 12px 30px;
    }

    .td-zoznam-heading h1 {
        font-size: 18px;
    }

    .td-zoznam-item {
        grid-template-columns: minmax(0, 1fr) 34px 34px;
    }

    .td-zoznam-item-header {
        gap: 10px;
        padding: 12px 5px 12px 10px;
    }

    .td-zoznam-item-info {
        gap: 4px 7px;
    }

    .td-zoznam-item-title {
        font-size: 13px;
    }

    .td-zoznam-item-date {
        font-size: 10px;
    }

    .td-zoznam-item-description {
        font-size: 11px;
    }

    .td-zoznam-item-menu {
        width: 32px;
        height: 36px;
    }

    .td-zoznam-item-add {
        width: 27px;
        height: 27px;
        font-size: 21px;
    }

    .td-zoznam-item-content {
        padding-left: 17px;
    }

    .td-zoznam-search input {
        width: min(190px, 55vw);
    }
}