/* Germany */

.de-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 30px;
}

.de-table {
    width: 100%;
    min-width: 1350px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.de-table th,
.de-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.de-table th {
    background: #222;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.de-table tbody tr:hover {
    background: #f5f5f5;
}

/* Table cells */

.de-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Issuer */

.de-table th:nth-child(1),
.de-table td:nth-child(1) {
    width: 210px;
}

.de-table td:nth-child(1) {
    font-weight: 600;
}

/* Insider */

.de-table th:nth-child(2),
.de-table td:nth-child(2) {
    width: 210px;
}

/* Position */

.de-table th:nth-child(3),
.de-table td:nth-child(3) {
    width: 120px;
}

/* Transaction */

.de-table th:nth-child(4),
.de-table td:nth-child(4) {
    width: 150px;
}

.de-transaction-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.de-transaction-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #999;
}

.de-transaction-buy .de-transaction-dot {
    background: #2e8b57;
}

.de-transaction-sell .de-transaction-dot {
    background: #c0392b;
}

.de-transaction-other .de-transaction-dot {
    background: #999;
}

/* Average Price */

.de-table th:nth-child(5),
.de-table td:nth-child(5) {
    width: 120px;
    text-align: left;
    white-space: nowrap;
}

/* Volume */

.de-table th:nth-child(6),
.de-table td:nth-child(6) {
    width: 120px;
    text-align: left;
    white-space: nowrap;
}

/* Transaction Date */

.de-table th:nth-child(7),
.de-table td:nth-child(7) {
    width: 130px;
    white-space: nowrap;
}

/* Trading Venue */

.de-table th:nth-child(8),
.de-table td:nth-child(8) {
    width: 170px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Details */

.de-table th:last-child,
.de-table td:last-child {
    width: 120px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.de-details-button {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.de-details-button:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Mobile */

@media (max-width: 600px) {

    .de-table-wrapper {
        margin-top: 20px;
    }

}

/* Search and reset buttons */

.de-search-button,
.de-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 0 14px;

    border: 1px solid #ddd;
    border-radius: 4px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;

    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.de-search-button:hover,
.de-reset-button:hover {
    background: #222;
    color: #fff;
    border-color: #222;
    text-decoration: none;
}

/* Pagination */

.de-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.de-pagination-top {
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
}

.de-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.de-pagination-link,
.de-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}

.de-pagination-link:hover {
    background: #222;
    color: #fff;
    border-color: #222;
    text-decoration: none;
}

.de-pagination-current {
    background: #222;
    color: #fff;
    border-color: #222;
    font-weight: 600;
}

.de-pagination-dots {
    padding: 0 4px;
    color: #777;
}

/* Details */

.de-modal-open {
    overflow: hidden;
}

.de-details-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.de-details-modal.is-open {
    display: block;
}

.de-details-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.de-details-dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 700px;
    max-height: calc(100vh - 32px);

    margin: 16px auto;

    background: #fff;
    border-radius: 8px;

    overflow-y: auto;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.de-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #ddd;
}

.de-details-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.de-details-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 4px;

    background: transparent;

    font-size: 1.7rem;
    line-height: 1;

    cursor: pointer;
}

.de-details-close:hover {
    background: #f0f0f0;
}

.de-details-content {
    padding: 20px;
}

.de-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.de-detail-item {
    padding: 12px;

    background: #f7f7f7;
    border-radius: 5px;
}

.de-detail-item span {
    display: block;

    margin-bottom: 4px;

    font-size: 0.8rem;
    color: #666;
}

.de-detail-item strong {
    display: block;

    font-size: 0.95rem;
    font-weight: 600;

    overflow-wrap: anywhere;
}

.de-detail-full {
    grid-column: 1 / -1;
}

/* Mobile details*/

@media (max-width: 600px) {

    .de-details-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);

        margin: 10px auto;

        border-radius: 6px;
    }

    .de-details-header {
        padding: 15px 16px;
    }

    .de-details-content {
        padding: 16px;
    }

    .de-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .de-detail-full {
        grid-column: auto;
    }

}