/* =========================================================
   ZÁKLAD
========================================================= */
body {
    background-color: #f5f7f9;
    font-size: 15px;
}


a:hover {
    color: #0f6f2b;
}

h2,
.podnadpis {
    color: unset;
}

.min-w-0 {
    min-width: 0;
}

.line-clamp-1,
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

/* =========================================================
   HLAVNÝ LAYOUT
========================================================= */
#stred_980.doc-wrap-wide {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.doc-layout-row {
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.doc-layout-row > [class*="col-"] {
    padding-left: 7.5px;
    padding-right: 7.5px;
}

.doc-main-col,
.doc-meta-col,
.doc-side-col {
    min-width: 0;
}

@media (min-width: 1200px) {
    .doc-layout-3 {
        display: flex;
        flex-wrap: nowrap;
    }

    .doc-meta-col,
    .doc-side-col {
        flex: 0 0 250px;
        max-width: 250px;
    }

    .doc-main-col {
        flex: 1 1 auto;
        max-width: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .doc-layout-3 {
        display: flex;
        flex-wrap: wrap;
    }

    .doc-meta-col {
        flex: 0 0 250px;
        max-width: 250px;
    }

    .doc-main-col {
        flex: 0 0 calc(100% - 250px);
        max-width: calc(100% - 250px);
    }

    .doc-side-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .doc-main-col,
    .doc-meta-col,
    .doc-side-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================================
   KARTY A NADPISY
========================================================= */
.doc-page-title {
    font-size: 22px;
    line-height: 1.3;
}

.doc-preview-card,
.teacher-card,
.doc-info-card,
.doc-meta-card,
.side-card,
.doc-description-card,
.doc-discussion-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.side-card .card-header,
.doc-discussion-card .card-header {
    background: #d9d9d9;
    color: #666;
    font-weight: 700;
   /* border: 0;*/
    padding: 9px 12px;
    border-bottom: 1px solid rgb(102 102 102 / 15%);
}

.side-card .card-header h2,
.side-card .card-header a,
.card .card-header a,
.card .card-header h2 {
    color: #666;
    padding: 0;
    text-decoration: none;
    display: block;
}

/* =========================================================
   UNIVERZÁLNA ŠÍPKA PRE COLLAPSE
========================================================= */
.card-collapsible {
    overflow: visible !important;
    position: relative;
}

.card-collapse-toggle-wrap {
    position: relative;
    height: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.card-collapse-toggle {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    min-height: 24px;
    padding: 1px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dfe7df;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .16);
}

.card-collapse-toggle:hover,
.card-collapse-toggle:focus {
    background: #f6fbf7;
    text-decoration: none;
}

.card-collapse-toggle img {
    display: block;
    width: 21px;
    height: auto;
}

/* =========================================================
   KARTA UČITEĽA
========================================================= */
.teacher-card-header {
    background: linear-gradient(135deg, #eef9f0, #e8f6ff);
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px !important;
}

.teacher-card-header.collapsed {
    border-radius: 8px 8px 0 0 !important;
}

.teacher-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    overflow: hidden;
    background: #d9f3fb;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    min-width: 0;
}

.teacher-awards-header {
    font-size: 0.75em;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;

}

.teacher-awards-header > span {
    display: flex;
    align-items: center;
}
.teacher-awards-header img {
    max-height: 20px;
    width: auto;
    vertical-align: middle;
}

.teacher-awards-more {
    color: #08813b !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 2px;
    vertical-align: middle;
    display: inline !important;
}

.teacher-action-link {
    display: flex;
    align-items: center;
    padding: 7px 0;
    color: #138a36;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
}

.teacher-action-link + .teacher-action-link {
    border-top: 1px solid #f1f3f5;
}

.teacher-action-link:hover {
    color: #0f6f2b;
    text-decoration: none;
}

.teacher-action-icon {
    width: 22px;
    flex: 0 0 22px;
    margin-right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.teacher-action-icon img {
    max-width: 16px;
    max-height: 16px;
}
/* =========================================================
   PANEL PRE AUTORA DOKUMENTU
========================================================= */
.author-tools-card {
    border: 1px solid #bfe6ca;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    overflow: hidden;
    background: linear-gradient(135deg, #eef9f0, #e8f6ff);
}


.author-tools-body {
    padding: 6px 10px;
}

.author-tool-link {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    color: #087b2f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #edf0f2;
}

.author-tool-link:last-child {
    border-bottom: 0;
}

.author-tool-link:hover {
    color: #0f6f2b;
    background: #f6fbf7;
    text-decoration: none;
}

.author-tool-icon {
    width: 22px;
    flex: 0 0 22px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.author-tool-icon img {
    max-width: 16px;
    max-height: 16px;
    display: block;
}
/* =========================================================
   DETAIL DOKUMENTU
========================================================= */
.doc-info-card.card-collapsible {
    margin-bottom: 1rem !important;
}

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #edf0f2;
}

.doc-tags .badge {
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    text-align: left;
    padding-top: 5px;
}

.doc-meta-list {
    border-top: 1px solid #edf0f2;
    font-size: 12px;
}

.doc-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f5;
    min-width: 0;
}

.doc-meta-row:last-child {
    border-bottom: 0;
}

.doc-meta-label {
    display: flex;
    align-items: center;
    flex: 0 0 88px;
    min-width: 88px;
    padding-right: 8px;
    color: #6c757d;
    line-height: 1.2;
}

.doc-meta-row strong {
    min-width: 0;
    max-width: calc(100% - 92px);
    text-align: left;
    font-size: 12px;
    line-height: 1.25;
    color: #212529;
}

.doc-meta-icon {
    width: 16px;
    margin-right: 5px;
    text-align: center;
    font-size: 11px;
    opacity: .75;
}

.doc-meta-section-title {
    margin-bottom: 6px;
    color: #212529;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.doc-history-list {
    border-top: 1px solid #edf0f2;
}

.doc-history-item {
    display: flex;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid #f1f3f5;
}

.doc-history-item:last-child {
    border-bottom: 0;
}

.doc-history-number {
    flex: 0 0 22px;
    color: #6c757d;
    font-weight: 700;
}

.doc-history-content {
    min-width: 0;
    line-height: 1.3;
}

.doc-history-content a {
    font-weight: 300;
    text-decoration: none;
}
.selected .doc-history-content a {
    font-weight: 600;
}

/* =========================================================
   RATING HVIEZDIČKY
========================================================= */
.rating,
.similar-list-rating {
    line-height: 1;
}

.stars,
.similar-stars {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.stars {
    font-size: clamp(1rem, 12vw, 3em);
    letter-spacing: 2px;
}

.similar-stars {
    height: 14px;
    font-size: 12px;
    letter-spacing: 1px;
}

.stars::before,
.stars > span::before,
.similar-stars::before,
.similar-stars > span::before {
    content: "★★★★★";
}

.stars > span,
.similar-stars > span {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    overflow: hidden;
    white-space: nowrap;
}

/* =========================================================
   HEADER MATERIÁLU A BADGE
========================================================= */
.material-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.material-badges > .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, .05);
}

.badge-blue { background: #e8f3ff; color: #145da0; }
.badge-yellow { background: #fff4d8; color: #8a6200; }
.badge-green { background: #e8f7ed; color: #087b2f; }
.badge-purple { background: #f1e8ff; color: #6b2bbd; }
.badge-gray { background: #f1f3f5; color: #4b5563; }

/* =========================================================
   NÁHĽAD DOKUMENTU
========================================================= */
.doc-preview-layout {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.doc-preview-thumbs-wrap {
    position: relative;
    width: 66px;
    flex: 0 0 66px;
}

.doc-preview-thumbs-side {
    width: 66px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 5px 2px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.doc-preview-thumbs-side::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.doc-preview-thumbs-side.is-dragging {
    cursor: grabbing;
}

.doc-preview-thumb {
    width: 56px;
    height: 42px;
    display: block;
    margin-bottom: 7px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.doc-preview-thumb:last-child {
    margin-bottom: 0;
}

.doc-preview-thumb img,
.similar-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doc-preview-thumb.active, .doc-preview-thumb.active:focus, .doc-preview-thumb.active:focus-visible {
    border-color: #138a36;
    box-shadow: 0 0 0 2px rgba(19, 138, 54, .12);
}

.doc-preview-viewer {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.doc-preview-viewer .doc-preview-box {
    width: 100%;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
}

.doc-preview-viewer .doc-preview-box img {
    display: block;
    max-width: calc(100% - 90px);
    max-height: 330px;
    width: auto;
    height: auto;
    margin: auto !important;
    transition: opacity .2s ease;
}

.doc-preview-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 46px;
    margin-top: -23px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    color: #138a36;
    font-size: 32px;
    line-height: 1;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
    padding-bottom: 4px;
}

.doc-preview-nav:hover {
    background: #f6fbf7;
    color: #0f6f2b;
}

.doc-preview-nav-prev {
    left: 10px;
    border-radius: 999px;
}

.doc-preview-nav-next {
    right: 10px;
    border-radius: 999px;
}

.doc-preview-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 5;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.doc-description {
    line-height: 1.45;
    font-size: 14px;
    min-height: 41px;
}

/* =========================================================
   HODNOTENIE MATERIÁLU
========================================================= */
.doc-feedback {
    width: 100%;
}

.doc-feedback .small.text-uppercase {
    font-size: 11px;
    margin-bottom: 8px;
}

.feedback-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #dfe7df;
    border-radius: 999px;
    background: #fff;
    color: #2f3a45;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

button.feedback-chip {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.feedback-chip:hover,
.feedback-chip:focus {
    border-color: #28a745;
    background: #f6fbf7;
    color: #198038;
    text-decoration: none;
    outline: none;
}

.feedback-emoji {
    margin-right: 4px;
    font-size: 13px;
    line-height: 1;
}
.feedback-label {
    margin-right: 6px;
}
.feedback-chip-like {
    border-color: #bfe6ca;
    background: #f6fbf7;
    color: #198038;
}

.feedback-chip-text,
.feedback-chip-message {
    border-color: #dbeafe;
    background: #f8fbff;
    color: #1f5da8;
}

.feedback-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
  
    border-radius: 999px;
    background: #e9ecef;
    color: #495057;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.feedback-chip-like .feedback-count {
    background: #d8f3df;
    color: #198038;
}

.feedback-chip-text .feedback-count,
.feedback-chip-message .feedback-count {
    background: #e4efff;
    color: #1f5da8;
}

/* =========================================================
   DISKUSIA
========================================================= */
.discussion-locked {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px dashed #d6dde3;
    border-radius: 12px;
    background: #f8fafc;
}

.discussion-locked-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-right: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.discussion-locked .btn {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}

.discussion-form-box {
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #cfead6;
    border-radius: 12px;
    background: #f6fbf7;
}

#discussionFormHome .discussion-form-box {
    margin-top: 14px;
}

.discussion-form-box.is-remark {
    border-color: #fde2b9;
    background: #fffaf0;
}

.discussion-form-box.is-reply {
    margin-top: 10px;
    border-color: #cbdff8;
    background: #f7faff;
}

.discussion-textarea {
    resize: vertical;
    min-height: 96px;
    font-size: 14px;
}

.discussion-comments {
    border-top: 1px solid #edf0f2;
    padding-top: 12px;
}

.discussion-comment {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
    box-sizing: border-box;
}

.discussion-comment.is-reply {
    padding-left: 12px;
    border-left: 2px solid #d9e5ef;
}

.discussion-level-1 { margin-left: 28px; }
.discussion-level-2 { margin-left: 56px; }
.discussion-level-3 { margin-left: 84px; }
.discussion-level-4 { margin-left: 112px; }
.discussion-level-5 { margin-left: 140px; }
.discussion-comment p.comment-text {
   line-height: 1.2em;
}

.discussion-comment:last-child {
    border-bottom: 0;
}

.discussion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #d9f3fb;
}
strong.autor_comment
{
    line-height: 1.5em;
}
.discussion-comment {
    position: relative;
}
.discussion-comment.unread {
    background: linear-gradient(90deg, #f0fbf4, #ffffff);
    border-left: 4px solid #138a36;
    padding-left: 8px;
}

/* ---- -nahlasenie -- ----  */
.discussion-comment-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.discussion-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 9px;
    padding: 2px 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5f6b76;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.discussion-reply-link:hover,
.discussion-reply-link:focus,
.discussion-reply-link.is-active {
    background: #eaf3ff;
    color: #1f5da8;
    text-decoration: none;
    outline: none;
}

.discussion-report-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    margin-left: 7px;

    border-radius: 50%;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;

    opacity: .45;
}

.discussion-report-link:hover {
    background: #fff1f1;
    color: #b42318;
    opacity: 1;
    text-decoration: none;
}
/* ---- -modal nahlasenie -- ----  */ 
.report-comment-modal-content {
    max-width: 620px;
}

.report-comment-original {
    max-height: 150px;
    overflow-y: auto;

    padding: 10px 12px;
    margin-bottom: 12px;

    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;

    color: #495057;
    font-size: 13px;
    line-height: 1.4;
}

.report-comment-form label {
    display: block;
    margin-bottom: 6px;
    color: #343a40;
    font-size: 13px;
    font-weight: 700;
}

.report-comment-form textarea {
    width: 100%;
    min-height: 115px;
    resize: vertical;
    box-sizing: border-box;
}

.report-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.report-comment-actions button,
.report-comment-actions input[type="submit"] {
    padding: 6px 14px;
    cursor: pointer;
}

.report-comment-actions .btn-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.report-comment-actions .btn-save {
    border: 1px solid #08813B;
    background: #08813B;
    color: #ffffff;
}
/* =========================================================
   PRAVÝ STĹPEC - AKCIE
========================================================= */
.doc-side-actions-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.doc-side-actions {
    display: grid;
    gap: 8px;
}

a.doc-side-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}
a.doc-side-action:not(.doc-side-action-main):visited {
    color: #4b5563;
}
a.doc-side-action-main:visited {
    color: #fff;
}
a.doc-side-action.is-added {
    background: #ecfdf3;
    border-color: #a4d3b5;
    color: #4b5563;
}

a.doc-side-action.is-added .doc-side-action-icon {
    color: #138a36;
}

a.doc-side-action.is-added::after {
    /*content: " Pridané";*/
    content: "✔";
    font-size: 10px;
    position: absolute;
    right: 15px;
    margin-top: 18px;
    color: #13743b;
}
a.doc-side-action:hover {
    border-color: #cfead6;
    background: #f6fbf7;
    color: #138a36;
    text-decoration: none;
}

a.doc-side-action-main {
    min-height: 50px;
    background: #08813b;
    border-color: #08813b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(7, 132, 58, .25);
}

a.doc-side-action-main:hover {
    border-color: #208637;
    background: #28a745;
    color: #fff;
}

.doc-side-action-icon {
    width: 24px;
    flex: 0 0 24px;
    margin-right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #138a36;
    font-size: 18px;
    line-height: 1;
}
.doc-side-action:not(.doc-side-action-main) > .doc-side-action-icon > img {
    max-width: 18px;
}

.doc-side-action-main .doc-side-action-icon {
    color: #fff;
    margin-right: 10px;
}

.doc-side-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.doc-side-ai-menu {
	position: relative;
	min-width: 0;
}

.doc-side-ai-menu > .doc-side-action {
	height: 100%;
}

.doc-side-ai-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	z-index: 160;
	width: 200px;
	padding: 12px;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.doc-side-ai-dropdown.is-open {
	display: block;
}

.doc-side-ai-arrow,
.doc-side-ai-arrow-border {
	position: absolute;
	left: 24px;
	width: 0;
	height: 0;
	border-right: 8px solid transparent;
	border-left: 8px solid transparent;
}

.doc-side-ai-arrow-border {
	top: -9px;
	margin-left: -1px;
	border-right-width: 9px;
	border-bottom: 9px solid #d4d4d4;
	border-left-width: 9px;
}

.doc-side-ai-arrow {
	top: -8px;
	z-index: 1;
	border-bottom: 8px solid #fff;
}

.doc-side-ai-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #495057;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.doc-side-ai-title i {
	color: #007bff;
	font-size: 14px;
}

.doc-side-ai-list {
	display: grid;
	gap: 5px;
}

.doc-side-ai-action,
.doc-side-ai-action:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 7px;
	border-bottom: 1px solid #dbe7f6;
	color: #0056b3;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.doc-side-ai-action:hover,
.doc-side-ai-action:focus {
	border-color: #b8d7f7;
	background: #eef6ff;
	color: #0056b3;
	text-decoration: none;
}

.doc-side-ai-action i {
	color: #6c757d;
	font-size: 12px;
}

.doc-side-action-small {
    min-height: 38px;
    padding: 8px 10px;
    justify-content: center;
    font-size: 12px;
}

.doc-side-action-small .doc-side-action-icon {
    width: 18px;
    flex-basis: 18px;
    margin-right: 4px;
    font-size: 15px;
}

.doc-side-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

/* =========================================================
   PODOBNÉ DOKUMENTY
========================================================= */
.similar-list-card .card-body {
    background: #fff;
}

.similar-list-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf0f2;
}

.similar-list-item:first-child {
    padding-top: 2px;
}

.similar-list-item:last-of-type {
    border-bottom: 0;
}

.similar-list-title-row {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.similar-list-title-row:hover {
    color: #138a36;
    text-decoration: none;
}

.similar-list-arrow {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    margin-top: 4px;
    margin-right: 6px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #138a36;
}

.similar-list-title {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-list-thumb {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #f8f9fa;
}

.similar-list-author {
    display: block;
    color: #111827;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    margin-bottom: 3px;
}

.similar-list-author:hover {
    color: #138a36;
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 767.98px) {
    .doc-layout-row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .doc-layout-row > .doc-main-col,
    .doc-layout-row > .doc-meta-col,
    .doc-layout-row > .doc-side-col {
        display: contents;
    }

    .doc-layout-row > .doc-main-col > *,
    .doc-layout-row > .doc-meta-col > *,
    .doc-layout-row > .doc-side-col > * {
        width: 100%;
    }

    .doc-layout-row > .doc-main-col > * {
        order: 40;
    }

    .doc-layout-row > .doc-main-col > .doc-preview-card {
        order: 10;
    }

    .doc-layout-row > .doc-main-col > .doc-description-card {
        order: 30;
    }

    .doc-layout-row > .doc-meta-col > * {
        order: 50;
    }

    .doc-layout-row > .doc-side-col > * {
        order: 60;
    }

    .doc-layout-row > .doc-side-col > .doc-side-actions-card {
        order: 20;
    }

    .doc-preview-layout {
        display: block;
    }

    .doc-preview-viewer,
    .doc-preview-viewer .doc-preview-box {
        min-height: 220px;
    }

    .doc-preview-viewer .doc-preview-box img {
        max-width: calc(100% - 60px);
        max-height: 220px;
    }

    .doc-preview-thumbs-wrap {
        width: 100%;
        flex: none;
        margin-top: 8px;
    }

    .doc-preview-thumbs-side {
        width: 100%;
        max-height: none;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 1px 4px;
    }

    .doc-preview-thumb {
        width: 50px;
        height: 38px;
        flex: 0 0 50px;
        margin-right: 7px;
        margin-bottom: 0;
    }

    .doc-preview-nav {
        width: 30px;
        height: 40px;
        font-size: 28px;
    }

    .doc-page-title {
        font-size: 17px;
    }

    .feedback-chip {
        min-height: 32px;
        padding-left: 9px;
        padding-right: 9px;
    }
}

@media (max-width: 575.98px) {
    #stred_980.doc-wrap-wide {
        padding-left: 8px;
        padding-right: 8px;
    }

    .discussion-locked {
        padding: 10px;
    }

    .discussion-locked-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 16px;
    }

    .discussion-level-1 { margin-left: 14px; }
    .discussion-level-2 { margin-left: 28px; }
    .discussion-level-3 { margin-left: 42px; }
    .discussion-level-4 { margin-left: 56px; }
    .discussion-level-5 { margin-left: 70px; }

    .discussion-comment-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .discussion-reply-link {
        margin-top: 3px;
        margin-left: 0;
    }
}
