* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f1ea;
    color: #2f2f2f;
    overflow: hidden;
}

/* topbar */

.site-topbar {
    flex: 0 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: #000078;
    color: #fff;
    border-bottom: 1px solid #c9b184;
}

.site-title {
    min-width: 0;
}

.site-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.site-subtitle {
    margin-top: 3px;
    font-size: 14px;
    font-style: italic;
    color: #a8ff8a;
    white-space: normal;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-right: 28px;
}

.site-version {
    text-align: right;
    font-size: 12px;
    line-height: 1.25;
    opacity: .9;
    white-space: nowrap;
}

.site-version span {
    font-weight: 700;
}

.login-button,
.login-button:visited,
.login-button:hover,
.login-button:active {
    color: #ffd400;
    text-decoration: none;
    font-weight: 700;
    background: transparent;
}

/* gewone hoofdpagina */

.page {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 290px;
    gap: 14px;
    padding: 12px;
    overflow: hidden;
}

.sidebar,
.right-panel,
.content-panel {
    min-height: 0;
    background: #fffaf2;
    border: 1px solid #d8c9ad;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.sidebar {
    padding: 14px;
    overflow-y: auto;
}

.coat {
    text-align: center;
    margin-bottom: 18px;
}

.coat img {
    max-width: 115px;
    height: auto;
    border-radius: 6px;
}

.coat small {
    display: block;
    margin-top: 6px;
    line-height: 1.35;
}

#side {
    font-size: 75%;
}

.content-panel {
    display: flex;
    flex-direction: column;
}

.mainmenu_top {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #d8c9ad;
    background: #efe4d0;
}

.menu_button {
    border: 1px solid #8b6f47;
    background: #7b5a2e;
    color: #fff;
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: 13px;
}

.menu_button:hover {
    background: #5f421f;
}

.menu-hint {
    margin-left: 6px;
    color: #5f5140;
    font-size: 12px;
}

.main_content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

iframe.frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

/* rechterkolom */

.right-panel {
    padding: 14px;
    font-size: 13px;
    line-height: 1.45;
    overflow-y: auto;
}

.right-panel h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #5f421f;
}

.help-box {
    margin-bottom: 18px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0d2b8;
    border-radius: 8px;
}

.update-date {
    font-weight: bold;
    margin-bottom: 10px;
}

.updates {
    padding-left: 18px;
    margin: 0;
}

.updates li {
    margin-bottom: 8px;
}

.updates ul {
    margin: 3px 0 0;
    padding-left: 16px;
}

a {
    color: #654313;
}

a:hover {
    color: #000;
}

/* adresboek */

.adresboek-page {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 12px 16px 24px 16px;
    overflow: hidden;
}

.adresboek-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}

.adresboek-tab {
    padding: 10px 18px;
    border: 1px solid #d7c5a5;
    border-bottom: none;
    background: #efe3cc;
    color: #5a3d17;
    font-size: 14px;
}

.adresboek-tab.active {
    background: #8a642f;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.adresboek-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 12px;
    border: 1px solid #d7c5a5;
    border-radius: 6px;
    background: #fffaf2;
    overflow: hidden;
}

.adresboek-fullscreen {
    height: calc(100vh - 64px - 70px);
}

.login-card {
    max-width: 420px;
    margin: 40px auto;
}

#adressen {
    width: 100% !important;
}

table.dataTable {
    width: 100% !important;
}

.dt-container {
    width: 100%;
}

.dt-scroll-body {
    border-bottom: 1px solid #d7c5a5;
}

/* footer */

.site-footer {
    flex: 0 0 auto;
    padding: 7px 18px;
    text-align: center;
    font-size: 12px;
    color: #5f5140;
    background: #efe4d0;
    border-top: 1px solid #d8c9ad;
}

/* responsive */

@media (max-width: 1100px) {
    body {
        overflow: auto;
        display: block;
    }

    .page {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        overflow: visible;
    }

    .right-panel {
        grid-column: 1 / -1;
        max-height: 260px;
    }

    .main_content,
    iframe.frame {
        height: 650px;
    }

    .adresboek-page {
        overflow: visible;
    }

    .adresboek-fullscreen {
        height: auto;
    }
}

@media (max-width: 760px) {
    .site-topbar {
        height: auto;
        min-height: 64px;
        padding: 10px 14px;
        gap: 10px;
    }

    .site-actions {
        gap: 14px;
        margin-right: 0;
    }

    .site-subtitle {
        font-size: 12px;
    }

    .page {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .main_content,
    iframe.frame {
        height: 600px;
    }

    .adresboek-page {
        padding: 8px;
    }

    .adresboek-card {
        padding: 8px;
    }

    .dt-layout-row {
        display: block !important;
    }

    .dt-layout-cell {
        display: block !important;
        width: 100% !important;
        margin-bottom: 8px;
    }

    div.dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    div.dt-buttons .btn {
        flex: 1 1 auto;
    }
}