/* Fix for anchor links offset due to fixed header */
[id] {
  scroll-margin-top: 100px;
}

/* Product Downloads & Documentation Blocks Styles */
.download-card-version-section,
.doc-card-info-section {
    width: auto;
}

.download-card-description,
.doc-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    word-break: break-word;
    max-width: 500px;
}

.download-btn-container,
.doc-btn-container {
    width: 130px;
}

@media (max-width: 768px) {
    .downloads-card-version-date,
    .doc-card-info-date {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .download-card-version-section,
    .doc-card-info-section {
        width: 100%;
    }

    .download-btn-container,
    .doc-btn-container {
        width: 100%;
    }
}

/* Technical Specifications Modal Styles */

.tech-specs-table {
    width: 100%;
    border: 1px solid #c9d3e0;
    box-shadow: 0 .25rem 1rem rgba(30, 52, 90, .06);
    font-size: .85rem;
}

.tech-specs-table td {
    border: 1px solid #d6deea;
    padding: 0.85rem 1.2rem;
    vertical-align: top;
    font-size: .85rem;
}

.tech-specs-table .spec-category {
    background: #f5f7fa;
    font-weight: 600;
    color: #1b2a4a;
    width: 25%;
    min-width: 200px;
}

.tech-specs-table .spec-category.table-primary {
    background: #e7f0ff;
}

.tech-specs-table .spec-content {
    background: #ffffff;
}

.tech-specs-table tbody tr:hover .spec-content {
    background: #f9fbfd;
}

.tech-specs-table .spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-specs-table .spec-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eef3fa;
}

.tech-specs-table .spec-list li:last-child {
    border-bottom: none;
}

.tech-specs-table .spec-list li:before {
    content: "•";
    color: #3f78e0;
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

.tech-specs-table .spec-list li {
    padding-left: 1.2em;
}

/* Modal Fullscreen Styles */
.modal-fullscreen {
    z-index: 2000 !important;
}

.modal-fullscreen .modal-dialog {
    z-index: 2000 !important;
}

.modal-fullscreen .modal-content {
    z-index: 2000 !important;
}

.modal-fullscreen ~ .modal-backdrop {
    z-index: 1999 !important;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

@media print {
    .modal-header,
    .modal-footer {
        display: none;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .tech-specs-table {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .tech-specs-table .spec-category {
        width: 100%;
        display: block;
    }
    
    .tech-specs-table tr {
        display: flex;
        flex-direction: column;
    }
    
    .tech-specs-table td {
        padding: 0.75rem 1rem;
    }
}
