﻿.doc-details-sidebar {
    background-color: var(--light-blue-bg);
    position: fixed;
    right: 0;
    top: calc(4rem - 1px);
    z-index: 50;
    border-inline-start: 1px solid #d6d5d5;
    border-block: 1px solid #d6d5d5;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    height: calc(100vh - 4rem + 1px);  
    max-width: 800px;
    overflow-y: auto;
    overflow-x: auto;
}

    .doc-details-sidebar .title-text {
        display: inline-flex;
        align-items: center;
        font-weight: 700;
        color: var(--berkone-color);
        font-size: 24px;
    }

    .doc-details-sidebar .subtitle-text {
        display: inline-flex;
        align-items: center;
        font-weight: 600;
        color: var(--berkone-color);
        font-size: 18px;
    }

.doc-details-sidebar.show {
    transform: translateX(0);
}

    .doc-details-sidebar header {
        display: flex;
        justify-content: space-between;
        margin-block: 8px;
        margin-inline: 4px;
    }

    .doc-details-sidebar .button-section {
        display: inline-flex;
        gap: 0px;
    }

    .doc-details-sidebar .body {
        margin: 12px;
    }

    .doc-details-sidebar .body > * + * {
        margin-top: 12px;
    }
    .doc-details-sidebar .table-tabs {
        margin: 0;
    }

    .doc-details-sidebar .tab-button {
        border-radius: 4px 4px 0 0;
        border: 1px solid #bbb;
        border-bottom: none;
        cursor: pointer;
        background: white;
        font-size: 16px;
        padding: 6px;
    }
    .doc-details-sidebar .tab-button:hover {
        background: var(--table-header-hover);
    }

    .doc-details-sidebar .tab-button.selected {
        background: var(--table-header);
        border: 2px solid #bbb;
        border-bottom: none;
        font-weight: 600;
    }

    .doc-details-sidebar .tab-button.selected:hover {
        background: var(--table-header-hover);
    }

.tabbed-table {
    border-top-left-radius: 0;
    min-width: 350px;
}

