@page {
    margin: 32px
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    line-height: 1.5;
    font-size: 12px
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px
}

.logo img {
    height: 100px
}

h1 {
    font-size: 24px;
    margin: 0 0 10px
}

h2 {
    font-size: 15px;
    margin: 22px 0 8px
}

.small {
    font-size: 11px;
    color: #6b7280
}

.box {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 10px 0
}

.sign {
    margin-top: 42px;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 40px
}

.line {
    margin-top: 50px;
    border-top: 1px solid #111;
    padding-top: 6px
}

:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --line: #d9dee6;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ecfeff;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --success: #166534;
    --success-soft: #f0fdf4;
    --shadow: 0 10px 28px rgba(15, 23, 42, .08)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4
}

.wrap {
    max-width: 100%;
    margin: 18px auto;
    padding: 0 14px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.card-login {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 300px;
    margin: 0 auto;

}

.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fafc)
}

.head h1 {
    margin: 0;
    font-size: 22px
}

.head p {
    margin: 4px 0 0;
    color: var(--muted)
}

.topnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.topnav a {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    background: #fff
}

.topnav a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.layout {
    display: grid;
    grid-template-columns:1.55fr .9fr;
    gap: 14px;
    padding: 14px
}

.left, .right {
    display: grid;
    gap: 14px;
    align-content: start
}

.panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: #fff
}

.panel h2 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--primary-dark)
}

.form-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px 12px
}
.form-grid-login {
    display: grid;
    grid-template-columns:40fr 1fr;
    gap: 10px 0px
}

.full {
    grid-column: 1 / -1
}

label {
    display: block;
    font-weight: 700;
    margin: 0 0 4px;
    font-size: 12px
}

.req::after {
    content: ' *';
    color: #dc2626
}

input, select, textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    font-size: 14px
}

textarea {
    min-height: 88px;
    resize: vertical
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    color: var(--text)
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-primary:hover {
    background: var(--primary-dark)
}

.btn-light {
    border-color: var(--line)
}

.btn-disabled, [aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db
}

.btn-danger {
    border-color: #fecaca;
    color: var(--danger);
    background: #fff
}

.btn-danger-solid {
    background: var(--danger);
    color: #fff
}

.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.notice {
    margin: 14px 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700
}

.notice.success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid #bbf7d0
}

.notice.error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid #fecaca
}

.list-block {
    display: grid;
    gap: 10px
}

.item {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    background: #fcfcfd
}

.contact-grid {
    display: grid;
    grid-template-columns:1.2fr .9fr 1fr 1fr 1.2fr auto;
    gap: 8px;
    align-items: end
}

.product-grid {
    display: grid;
    grid-template-columns:1.5fr 1.5fr .8fr .6fr .8fr auto;
    gap: 8px;
    align-items: end
}

.searchbar {
    display: grid;
    grid-template-columns:1fr auto auto;
    gap: 8px;
    margin-bottom: 10px
}

table {
    width: 100%;
    border-collapse: collapse
}

th, td {
    border-top: 1px solid var(--line);
    padding: 9px 8px;
    text-align: left;
    font-size: 13px;
    vertical-align: top
}

th {
    background: #f8fafc;
    font-size: 12px;
    color: #475569
}

.small {
    font-size: 12px;
    color: var(--muted)
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap
}

.sticky {
    position: sticky;
    top: 14px
}

.summary {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px
}

.sum-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fafafa
}

.sum-card strong {
    display: block;
    font-size: 18px
}

.catalogus-box {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
    margin-bottom: 10px;
    max-height: 180px;
    overflow: auto
}

.hidden-catalogus {
    display: none
}

.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
    min-height: auto;
    padding: 6px 8px
}

#sponsors-table thead th {
    cursor: pointer
}

.slug-note {
    font-size: 12px;
    color: var(--muted)
}

.price-changed {
    border-color: #f59e0b !important;
    background: #fffbeb !important
}

.price-note {
    display: none
}

.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700
}

.muted-box {
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fafafa
}

.grid-2 {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

@media (max-width: 1100px) {
    .layout, .grid-2 {
        grid-template-columns:1fr
    }

    .sticky {
        position: static
    }

    .summary {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 860px) {
    .form-grid, .searchbar, .contact-grid, .product-grid, .summary {
        grid-template-columns:1fr
    }

    .head {
        flex-direction: column;
        align-items: flex-start
    }
}

.head-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-logo {
    width: 80px;
    height: auto;
    border-radius: 8px;
    object-fit: contain
}

.mt-14 {
    margin-top: 14px
}

.mb-10 {
    margin-bottom: 10px
}

.mt-10 {
    margin-top: 10px
}

.mt-8 {
    margin-top: 8px
}

.summary-space {
    margin: 10px 0 12px
}

.input-auto {
    width: auto;
    min-height: auto
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px
}

.contract-package {
    margin-bottom: 12px
}


.dropdown {
    position: relative;
    display: inline-block
}

.dropdown-toggle {
    white-space: nowrap
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 12px
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 200
}

.dropdown-menu[hidden] {
    display: none
}

.dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none
}

.dropdown-item:hover, .dropdown-item:focus {
    background: #f8fafc;
    outline: none
}

.money {
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.file-row .small {
    display: block;
    margin-top: 2px;
}

.file-row .file-name {
    font-weight: 500;
}

.audit-diff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}

.audit-diff-table th,
.audit-diff-table td {
    border: 1px solid #d7deea;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.audit-diff-table th {
    background: #f4f7fb;
    font-weight: 600;
}

.audit-diff-table td:nth-child(2) {
    background: #fff8f8;
}

.audit-diff-table td:nth-child(3) {
    background: #f6fff6;
}

.audit-diff-table td {
    white-space: pre-wrap;
    word-break: break-word;
}

.page-full {
    display: block;
    width: 100%;
}

.filter-panel,
.log-panel {
    width: 100%;
}

.filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}