*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.app-shell {
    min-height: 100vh;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.brand-link {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    color: #374151;
    transition: 0.2s ease;
}

.top-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-logout {
    background: #111827;
    color: #ffffff !important;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.portal-wrapper,
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
}

.portal-card,
.login-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 32px;
}

.portal-card {
    max-width: 700px;
    text-align: center;
}

.portal-card h1,
.login-card h1,
.page-head h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    color: #111827;
}

.portal-intro,
.login-subtitle,
.page-head p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 16px;
}

.portal-actions,
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.flash {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.user-card {
    position: relative;
    display: block;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.user-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.user-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.user-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-photo-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.user-role {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-last-login {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 16px;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card,
.table-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat-card {
    padding: 22px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
}

.table-card-head {
    padding: 22px 22px 0;
}

.table-card-head h2 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #111827;
}

.table-wrap {
    overflow-x: auto;
    padding: 0 22px 22px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.styled-table thead th {
    text-align: left;
    /*font-size: 13px;*/
    color: #6b7280;
    padding: 14px 5px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.styled-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #1f2937;
}

.styled-table tbody tr:hover {
    background: #f8fafc;
}

.empty-state {
    padding: 20px 22px 24px;
    color: #6b7280;
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 20px 16px 28px;
    }

    .portal-card,
    .login-card {
        padding: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.form-card {
    padding-bottom: 24px;
}

.form-box {
    padding: 0 22px 22px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two-cols {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.filters-inline {
    grid-template-columns: minmax(260px, 380px) auto;
    align-items: end;
}

.checkbox-row {
    display: flex;
    align-items: end;
}

.checkbox-row-inline {
    padding-top: 30px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.table-user-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    background: #e5e7eb;
}

.profile-photo-preview {
    width: 130px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-info-box {
    margin-top: 8px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.filter-form {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .form-grid.two-cols,
    .filters-inline {
        grid-template-columns: 1fr;
    }

    .checkbox-row-inline {
        padding-top: 0;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    color: #0f172a;
}

.page-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.alert {
    margin-bottom: 18px;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d6cdf;
    box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.10);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-small {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-neutral {
    background: #e2e8f0;
    color: #334155;
}

.table-responsive {
    overflow-x: auto;
}

.apr-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.apr-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef4ff 100%);
    border: 1px solid #e5edf8;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.apr-hero-content {
    max-width: 760px;
}

.apr-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2d6cdf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.apr-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    color: #0f172a;
}

.apr-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.apr-hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 220px;
}

.btn-brand {
    background: #2d6cdf;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(45, 108, 223, 0.22);
}

.btn-brand:hover {
    background: #1f5bc7;
}

.apr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
}

.apr-stat-card {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.apr-stat-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.apr-stat-value {
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
    font-weight: 800;
}

.apr-filter-card,
.apr-table-card {
    overflow: hidden;
    border: 1px solid #e8edf5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.apr-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 22px 0;
}

.apr-card-head-inline {
    align-items: center;
}

.apr-card-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
}

.apr-card-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.apr-filter-form {
    margin-bottom: 0;
}

.apr-filter-grid {
    display: grid;
    gap: 18px;
    align-items: end;
}

.apr-filter-grid-two {
    grid-template-columns: minmax(320px, 1.9fr) minmax(200px, 0.8fr);
}

.apr-filter-grid-three {
    grid-template-columns: minmax(280px, 1.5fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.apr-search-group .apr-input-wrap {
    position: relative;
}

.apr-search-group .apr-input-wrap::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.apr-search-group input {
    padding-left: 42px;
}

.apr-filter-actions {
    margin-top: 18px;
}

.apr-table-wrap {
    padding-top: 8px;
}

.apr-styled-table {
    min-width: 980px;
}

.apr-styled-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.apr-styled-table tbody td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.apr-styled-table tbody tr:hover {
    background: #f8fbff;
}

.apr-primary-cell strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.apr-muted-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.apr-code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.apr-linked-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.apr-empty-cell {
    padding: 24px 10px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.apr-table-actions {
    min-width: 160px;
}

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

    .apr-filter-grid-two,
    .apr-filter-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .apr-hero {
        flex-direction: column;
        padding: 22px 20px;
    }

    .apr-hero-actions {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .apr-hero h1 {
        font-size: 28px;
    }

    .apr-stats-grid {
        grid-template-columns: 1fr;
    }

    .apr-card-head {
        padding: 18px 18px 0;
    }
}

.apr-form-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.apr-form-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.apr-form-grid-two {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.apr-form-group-full {
    grid-column: 1 / -1;
}

.apr-checkbox-group {
    display: flex;
    align-items: end;
}

.apr-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.apr-checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2d6cdf;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
    .apr-form-grid-two {
        grid-template-columns: 1fr;
    }

    .apr-form-group-full {
        grid-column: auto;
    }
}

.apr-field-help {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.apr-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.apr-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.apr-mt-4 {
    margin-top: 4px;
    display: block;
}

.apr-styled-table td .apr-muted-text {
    display: inline-block;
    line-height: 1.5;
}

.apr-form-layout .form-group input[type="number"] {
    appearance: textfield;
}

.apr-form-layout .form-group input[type="number"]::-webkit-outer-spin-button,
.apr-form-layout .form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Compactere APR stamdata layout: klanten/contactpersonen/producten */
.apr-page {
    gap: 14px;
}

.apr-hero {
    padding: 18px 22px;
    border-radius: 18px;
    align-items: center;
}

.apr-eyebrow {
    min-height: 22px;
    padding: 0 10px;
    margin-bottom: 8px;
    font-size: 11px;
}

.apr-hero h1 {
    margin-bottom: 6px;
    font-size: 28px;
}

.apr-hero p {
    font-size: 14px;
    line-height: 1.45;
}

.apr-hero-actions {
    min-width: 190px;
}

.apr-stats-grid {
    gap: 12px;
}

.apr-stat-card {
    padding: 14px 18px;
    border-radius: 15px;
}

.apr-stat-label {
    margin-bottom: 6px;
    font-size: 12px;
}

.apr-stat-value {
    font-size: 24px;
}

.apr-filter-card,
.apr-table-card {
    border-radius: 16px;
}

.apr-card-head {
    padding: 16px 20px 0;
}

.apr-card-head h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.apr-card-head p {
    font-size: 13px;
    line-height: 1.35;
}

.form-box {
    padding: 0 20px 16px;
}

.apr-filter-grid {
    gap: 14px;
}

.form-group {
    gap: 6px;
}

.form-group label {
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.apr-search-group input {
    padding-left: 38px;
}

.apr-filter-actions {
    margin-top: 12px;
}

.btn {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-small {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.apr-table-wrap {
    padding-top: 4px;
}

.apr-styled-table thead th {
    padding: 12px 12px;
}

.apr-styled-table tbody td {
    padding: 12px 12px;
}

.apr-hero-left {
    min-width: 160px;
}

.apr-hero-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.apr-hero-filters input {
    flex: 1;
    min-width: 200px;
}

.apr-hero-actions {
    margin-left: auto;
}

/* TABLE ACTIES */
.table-actions {
    display: flex;
    gap: 6px;
}

/* APR stamdata compact maar fancy */
.main-content {
    max-width: 1500px;
}

.apr-page {
    gap: 14px;
}

.apr-hero {
    padding: 18px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef4ff 100%);
    border: 1px solid #e5edf8;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.apr-hero h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.apr-hero p {
    font-size: 14px;
    line-height: 1.45;
}

.apr-eyebrow {
    margin-bottom: 8px;
}

.apr-stats-grid {
    display: none;
}

.apr-filter-card {
    margin-top: 0;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.apr-card-head {
    padding: 16px 20px 0;
}

.apr-card-head h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.apr-card-head p {
    font-size: 13px;
}

.form-box {
    padding: 0 20px 16px;
}

.apr-filter-grid {
    align-items: end;
    gap: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    min-height: 42px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2d6cdf;
    box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.10);
}

.apr-filter-actions {
    margin-top: 12px;
}

.apr-table-card {
    width: 100%;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.apr-table-wrap {
    width: 100%;
    padding: 8px 20px 18px;
}

.apr-styled-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

.apr-styled-table thead th {
    background: #f8fafc;
    padding: 13px 14px;
}

.apr-styled-table tbody td {
    padding: 13px 14px;
}

.apr-styled-table tbody tr:hover {
    background: #f8fbff;
}

.btn {
    min-height: 40px;
}

.btn-brand {
    box-shadow: 0 12px 24px rgba(45, 108, 223, 0.22);
}

/* Fancy zoekbalk en dropdowns stamdata */
.apr-filter-card .form-group input,
.apr-filter-card .form-group select,
.apr-hero-filters input,
.apr-hero-filters select {
    height: 46px;
    min-height: 46px;
    border: 1px solid #d7e0ec;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    padding: 0 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apr-filter-card .form-group input::placeholder,
.apr-hero-filters input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.apr-filter-card .form-group input:focus,
.apr-filter-card .form-group select:focus,
.apr-hero-filters input:focus,
.apr-hero-filters select:focus {
    outline: none;
    border-color: #2d6cdf;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(45, 108, 223, 0.12),
        0 8px 18px rgba(15, 23, 42, 0.06);
}

.apr-filter-card .form-group select,
.apr-hero-filters select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 20px,
        calc(100% - 14px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.apr-search-group .apr-input-wrap {
    position: relative;
}

.apr-search-group .apr-input-wrap::before {
    content: "⌕";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.apr-search-group input {
    padding-left: 42px !important;
}

/* Klikbare tabelrijen */
.apr-styled-table tbody tr.clickable-row {
    cursor: pointer;
}

.apr-styled-table tbody tr.clickable-row:hover {
    background: #f1f7ff;
}

.apr-styled-table tbody tr.clickable-row td {
    transition: background 0.18s ease;
}

.apr-hero-filters {
    width: 100%;
    margin-top: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.apr-hero-filters .form-group {
    margin: 0;
}

.apr-hero-filters label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.apr-hero-filters input,
.apr-hero-filters select {
    width: 100%;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: rgba(0, 0, 0, 0.025);
}

.table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.inline-form {
    display: inline;
}

.btn-small {
    padding: 7px 10px;
    font-size: 13px;
}

.badge-info {
    background: #e8f3ff;
    color: #1769aa;
}

.badge-warning {
    background: #fff4dc;
    color: #9a5b00;
}

.badge-success {
    background: #e6f7ed;
    color: #247a45;
}

.badge-danger {
    background: #fde8e8;
    color: #b42318;
}

.badge-muted {
    background: #eef0f3;
    color: #555;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: #777;
}

@media (max-width: 900px) {
    .apr-hero-filters {
        grid-template-columns: 1fr;
    }
}

.apr-section-head {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.customer-fields[hidden] {
    display: none !important;
}

.repair-form-card {
    padding: 18px;
}

.repair-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 18px;
    align-items: start;
}

.repair-fieldset {
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.repair-fieldset-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #1f2937;
}

.form-group.compact {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.form-group.compact label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.form-group.compact input,
.form-group.compact select,
.form-group.compact textarea {
    min-height: 34px;
}

.form-group.compact textarea {
    resize: vertical;
}

.repair-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.customer-fields[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .repair-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.compact {
        grid-template-columns: 1fr;
    }
}

.repair-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.repair-detail-card {
    padding: 20px;
}

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

.detail-list.detail-list-wide {
    grid-template-columns: repeat(4, 1fr);
}

.detail-list > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f5;
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list span {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.detail-list strong {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.text-blocks {
    display: grid;
    gap: 16px;
}

.text-blocks h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #1f2937;
}

.text-blocks p {
    min-height: 48px;
    margin: 0;
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    line-height: 1.5;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--status-color) 14%, white);
    color: var(--status-color);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.muted {
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .repair-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-list.detail-list-wide {
        grid-template-columns: 1fr;
    }

    .detail-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.form-group.compact.vertical {
    grid-template-columns: 1fr;
}

.text-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #f9fafb;
    min-height: 60px;
}

.repair-photo-card {
    margin-top: 18px;
    padding: 20px;
}

.repair-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.repair-photo-item {
    display: block;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #1f2937;
}

.repair-photo-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
}

.repair-photo-item span {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.repair-upload-card {
    padding: 20px;
}

.repair-upload-box input[type="file"] {
    display: none;
}

.repair-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    padding: 24px;
}

.repair-upload-dropzone strong {
    font-size: 17px;
    color: #1f2937;
}

.repair-upload-dropzone span {
    font-size: 13px;
    color: #64748b;
}

.repair-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.repair-preview-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.repair-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
}

.repair-preview-item span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    word-break: break-word;
}

.repair-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.repair-gallery-item {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    overflow: visible;
}

.repair-gallery-item img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.repair-gallery-caption {
    margin-top: 8px;
    padding-right: 38px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
}

.repair-gallery-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
}

.repair-gallery-delete button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.repair-gallery-delete button:hover {
    background: #991b1b;
}

    .repair-print-button {
        display: none;
    }

    .repair-print-body {
        padding: 0;
    }

    .repair-print-a4 {
        width: 180mm;
        margin: 0;
        page-break-inside: avoid;
    }
}

.inline-add-group {
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 6px;
}

.btn-add-small {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #e8f3ff;
    color: #1769aa;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.btn-add-small:hover {
    background: #d7ebff;
}

.customer-fields[hidden] {
    display: none !important;
}

.quick-add-modal[hidden] {
    display: none !important;
}

.quick-add-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.quick-add-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.quick-add-box {
    position: relative;
    width: min(520px, calc(100% - 32px));
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.quick-add-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.quick-add-head h2 {
    margin: 0;
    font-size: 20px;
}

.quick-add-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.quick-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.search-select {
    position: relative;
    width: 100%;
}

.search-select-results {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    padding: 6px;
}

.search-select-option {
    width: 100%;
    display: block;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.search-select-option:hover {
    background: #f1f5f9;
}

.search-select-option[hidden] {
    display: none !important;
}

.field-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.field-checkbox input {
    width: 16px;
    height: 16px;
}

.field-checkbox:hover {
    background: #f8fafc;
}

.customer-field[hidden] {
    display: none !important;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background: #3b82f6;
    color: #fff;
    transform: scale(1.05);
}

.action-icon.edit-icon:hover::after {
    content: " Bewerken";
    position: absolute;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: -40px;
    white-space: nowrap;
}

/* Arbeid / tijdregistratie */
.arbeid-card {
    margin-top: 24px;
}

.arbeid-table th,
.arbeid-table td {
    vertical-align: middle;
}

.arbeid-table input,
.arbeid-table textarea,
.arbeid-table .form-control {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d7dde8;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    font: inherit;
}

.arbeid-table textarea {
    min-height: 44px;
    resize: vertical;
}

.arbeid-date {
    max-width: 150px;
}

.arbeid-time {
    max-width: 120px;
}

.arbeid-duration {
    max-width: 100px;
    font-weight: 700;
    background: #f7f9fc !important;
}

.arbeid-textarea {
    min-width: 260px;
}

.arbeid-actions {
    width: 120px;
    text-align: right;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.arbeid-total-time {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef3f8;
    font-weight: 800;
}

/* v5 extra: scanbare barcode + ruimere schrijfvlakken */
.repair-print-a4 { padding: 4.5mm; }
.repair-print-info-table td,.repair-print-info-table th{height:5.1mm;}
.rp-medium-block { min-height: 16mm; max-height: 22mm; }
.rp-large-block { min-height: 18mm; max-height: 26mm; }
.repair-print-lines-table td{height:7mm;}
.repair-print-work-table td{height:6.5mm;}
.repair-print-third-table td,.repair-print-third-table th{height:6.5mm;}
.repair-print-third-table .rp-third-note-row td,.repair-print-third-table .rp-third-note-row th{height:10mm;}
.rp-top-blocks{margin-bottom:2mm;}
.rp-text-block{padding:1.2mm;line-height:1.22;}
@media print{.repair-print-a4{padding:4.5mm;}}

.rp-print-main-title {
    text-align: center;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
	min-width: 400px;
}

.rp-numberbox-number {
    display: block;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    padding-top: 8px;
}

.rp-print-writing-block {
    min-height: 78px;
}

.rp-print-writing-block strong {
    font-size: 12px;
}

.rp-print-parts-table td,
.rp-print-work-table td {
    height: 24px;
}

.rp-print-main-title {
    text-align: center;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
}

.rp-numberbox-number {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    padding-top: 8px;
}

.rp-print-writing-block {
    min-height: 82px;
}

.rp-print-parts-table td,
.rp-print-work-table td {
    height: 24px;
}

.rp-print-main-title {
    text-align: center;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
}

.rp-numberbox-number {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    padding-top: 8px;
}

.rp-print-writing-block {
    min-height: 82px;
}

.rp-print-parts-table td,
.rp-print-work-table td {
    height: 24px;
}

/* Barcode printformulier */
.repair-print-barcode {
    border: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    min-height: 18mm;
    padding: 0 2mm;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-barcode-wrap {
    width: 100%;
    height: 18mm;
    background: #fff;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-barcode-img {
    display: block;
    width: 78mm;
    max-width: 100%;
    height: 15mm;
    object-fit: contain;
    background: #fff;
    image-rendering: crisp-edges;
    filter: contrast(260%) brightness(45%);
}

/* ===== DEFINITIEVE BARCODE FIX ===== */

.repair-print-header {
    display: grid !important;
    grid-template-columns: 55mm 1fr 62mm !important;
    gap: 3mm !important;
    align-items: center !important;
    margin-bottom: 1.4mm !important;
}

.repair-print-title,
.rp-print-main-title {
    width: 55mm !important;
    min-width: 55mm !important;
    max-width: 55mm !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    overflow: hidden !important;
}

.repair-print-barcode {
    border: 0 !important;
    background: #ffffff !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 16mm !important;
    height: 16mm !important;
    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rp-barcode-wrap {
    width: 58mm !important;
    height: 16mm !important;
    background: #ffffff !important;
    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rp-barcode-img {
    display: block !important;
    width: 58mm !important;
    height: 14mm !important;
    max-width: 58mm !important;
    max-height: 14mm !important;
    object-fit: contain !important;
    background: #ffffff !important;
    filter: none !important;
    opacity: 1 !important;
    image-rendering: auto !important;
}

.rp-barcode-text,
.rp-barcode-svg,
.rp-code39 {
    display: none !important;
}

.repair-print-numberbox {
    width: 62mm !important;
}

.rp-numberbox-number,
.repair-print-numberbox-write strong {
    display: block !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

/* ===== STARTPORTAAL APR - DEFINITIEF ===== */

html,
body {
    min-height: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.portal-apr-wrapper {
    position: relative;
    height: calc(100vh - 58px);
    min-height: calc(100vh - 58px);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.portal-apr-header,
.portal-apr-content {
    position: relative;
    z-index: 2;
}

.portal-apr-header {
    padding: 60px 26px 0;
    text-align: left;
}

.portal-apr-logo {
    width: 350px;
    max-width: 25vw;
    height: auto;
    display: block;
}

.portal-apr-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 85px 20px 0;
    text-align: center;
}

.portal-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
}

.portal-intro {
    margin: 0 0 30px;
    color: #667085;
}

.portal-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
}

.portal-block {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 26px;
    min-height: 195px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.portal-block p {
    margin: 0 0 22px;
    color: #667085;
    line-height: 1.45;
}

.portal-block-disabled {
    opacity: 0.65;
}

/* oude footer/boog volledig uitschakelen */
.portal-apr-footer {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42vh !important;
    min-height: 300px !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 0 !important;
    z-index: 1;
    pointer-events: none;
}

.portal-apr-footer::before,
.portal-apr-footer::after {
    content: none !important;
    display: none !important;
}

.portal-apr-footer svg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.portal-apr-curve-fill {
    fill: rgba(95, 159, 150, 0.65); /* 65% opacity */
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .portal-apr-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .portal-apr-logo {
        max-width: 85vw;
    }

    .portal-apr-content {
        padding-top: 45px;
    }

    .portal-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== LOGIN APR PORTAL ===== */

.login-apr-content {
    max-width: 980px;
    padding-top: 55px;
}

.login-flash {
    max-width: 720px;
    margin: 0 auto 22px;
}

.login-section {
    margin-top: 24px;
}

.login-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #111827;
}

.login-user-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.login-user-grid-featured {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}

.login-user-tile {
    border: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-user-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.login-user-tile-featured {
    border: 2px solid rgba(95, 159, 150, 0.45);
}

.login-user-photo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 68px;
    background: #eef2f7;
}

.login-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-user-info strong {
    color: #111827;
    font-size: 17px;
}

.login-user-info small {
    color: #667085;
    font-weight: 700;
}

.login-user-info em {
    color: #98a2b3;
    font-size: 12px;
    font-style: normal;
}

.login-back-row {
    margin-top: 26px;
}

/* PIN POPUP */
.pin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pin-modal.is-open {
    display: flex;
}

.pin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.pin-modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.pin-modal-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.pin-modal-card p {
    margin: 0 0 22px;
    color: #667085;
}

.pin-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #667085;
}

.pin-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-weight: 800;
}

.pin-actions {
    justify-content: center;
}

@media (max-width: 900px) {
    .login-user-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-user-grid,
    .login-user-grid-featured {
        grid-template-columns: 1fr;
    }

    .login-user-tile {
        padding: 16px;
    }

    .login-user-photo-wrap {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
}

/* NAV ICONEN */

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: #374151;
}

.nav-icon:hover {
    background: rgba(0,0,0,0.05);
}

html,
body {
    min-height: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

body.no-page-scroll {
    height: 100vh;
    overflow: hidden;
}

body.no-page-scroll .app-shell {
    height: 100vh;
    overflow: hidden;
}

body.no-page-scroll .main-content {
    height: calc(100vh - 58px);
    overflow: hidden;
}

body.no-page-scroll .portal-apr-wrapper {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

/* FOTO WRAPPER */
.login-user-photo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 68px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOTO */
.login-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LETTER FALLBACK */
.login-user-initial {
    font-size: 26px;
    font-weight: 800;
    color: #374151;
}

.login-user-photo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 68px;
    background: #e8f1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(95, 159, 150, 0.55);
}

.login-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-user-initial {
    font-size: 28px;
    font-weight: 800;
    color: #2f6f68;
    line-height: 1;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 0 4px;
}

.pagination-info {
    font-weight: 700;
    color: #374151;
}

.dashboard-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 6px solid #f97316;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.dashboard-alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-alert-icon {
    font-size: 28px;
    line-height: 1;
}

.dashboard-alert-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-alert-text strong {
    font-size: 16px;
    color: #9a3412;
}

.dashboard-alert-text span {
    font-size: 13px;
    color: #7c2d12;
}

.notification-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-button {
    position: relative;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 7px 9px;
    border-radius: 10px;
}

.notification-button:hover {
    background: #eef2f7;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    line-height: 17px;
    font-weight: 700;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
    z-index: 50;
    overflow: hidden;
}

.notification-nav:hover .notification-dropdown,
.notification-nav:focus-within .notification-dropdown {
    display: block;
}

.notification-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5eaf2;
    font-size: 14px;
}

.notification-head a {
    font-size: 12px;
    color: #2563eb;
}

.notification-item {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.is-unread {
    background: #eff6ff;
}

.notification-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-text {
    display: block;
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
}

.notification-time {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #64748b;
}

.notification-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: #64748b;
}

.melding-list {
    display: flex;
    flex-direction: column;
}

.melding-item {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    transition: 0.2s ease;
}

.melding-item:hover {
    background: #f8fafc;
}

.melding-ongelezen {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.melding-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.melding-titel {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.melding-tijd {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.melding-bericht {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.melding-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.apr-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.apr-hero-with-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.apr-hero-actions-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.melding-hero-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.melding-hero-filter label {
    font-weight: 700;
    color: #111827;
}

.melding-hero-filter select {
    min-width: 150px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.melding-table-card {
    padding: 22px;
}

.melding-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.melding-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease;
}

.melding-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.melding-ongelezen {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left: 4px solid #2563eb;
}

.melding-ongelezen .melding-titel {
    font-weight: 800;
    color: #0f3b85;
}

.melding-gelezen .melding-status-dot {
    background: #cbd5e1;
}

.melding-ongelezen .melding-status-dot {
    background: #2563eb;
}

.melding-status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
}

.melding-content {
    width: 100%;
}

.melding-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.melding-titel {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.melding-tijd {
    font-size: 12px;
    color: #2563eb;
    white-space: nowrap;
}

.melding-gelezen .melding-tijd {
    color: #64748b;
}

.melding-bericht {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.apr-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 900px) {
    .apr-hero-with-filters {
        align-items: flex-start;
        flex-direction: column;
    }

    .apr-hero-actions-inline {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .melding-hero-filter {
        align-items: stretch;
        flex-direction: column;
    }
}

.admin-garantie-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-garantie-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    cursor: pointer;
}

.admin-garantie-label {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.pakbon-body {
    margin: 0;
    padding: 0;
    background: #eef2f7;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

.pakbon-actions {
    width: 210mm;
    margin: 12px auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pakbon-print {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 24px;
    padding: 34mm 18mm 15mm 18mm;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.2;
    box-sizing: border-box;
}

.pakbon-klantblok {
    margin-left: 6mm;
    min-height: 42mm;
    font-size: 12pt;
    line-height: 1.28;
}

.pakbon-datum {
    text-align: right;
    margin-right: 6mm;
    margin-bottom: 8mm;
    font-size: 11pt;
}

.pakbon-titelregel {
    display: grid;
    grid-template-columns: 38mm 1fr 45mm;
    align-items: center;
    margin-bottom: 6mm;
}

.pakbon-label {
    font-size: 18pt;
    font-weight: 400;
}

.pakbon-nummer {
    font-size: 18pt;
    font-weight: 400;
    text-align: center;
}

.pakbon-orderregel {
    display: grid;
    grid-template-columns: 1fr 48mm;
    gap: 5mm;
    margin-bottom: 3mm;
    font-size: 11pt;
    white-space: nowrap;
}

.pakbon-orderregel strong {
    font-weight: 700;
    text-align: left;
}

.pakbon-tabel {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 6mm;
    font-size: 10pt;
}

.pakbon-tabel th,
.pakbon-tabel td {
    border: 1px solid #333;
    padding: 4px 6px;
    vertical-align: top;
}

.pakbon-tabel th {
    font-weight: 700;
    text-align: left;
}

.pakbon-tabel tbody td {
    height: 18mm;
}

.pakbon-pos {
    width: 10mm;
    text-align: center;
}

.pakbon-art {
    width: 28mm;
    text-align: center;
}

.pakbon-aantal {
    width: 24mm;
    text-align: center;
}

.pakbon-opm {
    width: 42mm;
    text-align: center;
}

.pakbon-omschrijving {
    margin-left: 10mm;
    margin-top: 7mm;
    max-width: 155mm;
    font-size: 11pt;
    line-height: 1.23;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .no-print,
    .pakbon-actions,
    .flash,
    .alert,
    header,
    footer,
    nav,
    aside,
    .site-header,
    .topbar,
    .navbar,
    .main-nav,
    .sidebar,
    .page-head {
        display: none !important;
    }

    .pakbon-print {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 34mm 18mm 15mm 18mm !important;
        box-shadow: none !important;
        page-break-after: avoid;
    }
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-button {
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.nav-dropdown-menu {
    position: absolute;
    top: 28px;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 8px 0;
    display: none;
    z-index: 500;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
}

.nav-dropdown-menu a:hover {
    background: #f4f7fb;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.nav-dropdown-button {
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    padding: 6px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-document-button svg {
    width: 25px;
    height: 25px;
    fill: #1f4f7f;
}

.nav-dropdown-menu {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: none;
    z-index: 9999;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    border-radius: 9px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #eef5ff;
    color: #1f4f7f;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
}

a.nav-icon[title="Profiel"] svg {
    width: 30px;
    height: 30px;
}

a.nav-icon[title="Profiel"] {
    padding: 4px;
}

/* =========================================================
   REPARATIE PRINTFORMULIER
   Algemene leesbaarheid
========================================================= */

.repair-print-a4.rp-a4-v5 {
    font-size: 10.5pt;
    line-height: 1.0;
}

.rp-block-table th,
.rp-block-table td {
    font-size: 10pt;
}

.rp-block-title {
    font-size: 10.5pt;
}

.rp-print-writing-block {
    font-size: 10.3pt;
    line-height: 1.2;
}

.repair-print-lines-table,
.repair-print-work-table,
.repair-print-third-table {
    font-size: 9.8pt;
}

.repair-print-title-plain {
    font-size: 15pt;
}

.rp-numberbox-number {
    font-size: 13pt;
}

/* =========================================================
   REPARATIE PRINTFORMULIER
   COMPLETE DEFINITIEVE VERSIE
   Oude repair-print CSS verwijderen/vervangen
========================================================= */

.repair-print-body {
    background: #eef2f7;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

.rp-screen-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
}

.repair-print-a4 {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 20px;
    padding: 4.5mm;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.repair-print-header {
    display: grid;
    grid-template-columns: 55mm 75mm 62mm;
    gap: 3mm;
    align-items: center;
    margin-bottom: 2mm;
}

.rp-print-main-title,
.repair-print-title {
    text-align: center;
    font-size: 16pt;
    line-height: 1.1;
    font-weight: 800;
}

.repair-print-barcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rp-barcode-img {
    width: 58mm;
    height: 14mm;
    object-fit: contain;
}

.repair-print-numberbox {
    border: 1px solid #000;
    padding: 2mm;
    box-sizing: border-box;
}

.rp-numberbox-top {
    display: grid;
    grid-template-columns: 28mm 1fr;
    gap: 2mm;
    align-items: end;
    margin-bottom: 1mm;
}

.rp-numberbox-top span {
    font-size: 10pt;
    font-weight: 700;
}

.rp-numberbox-top em {
    display: block;
    min-height: 4mm;
    border-bottom: 1px solid #000;
    font-style: normal;
}

.rp-numberbox-number,
.repair-print-numberbox-write strong {
    display: block;
    text-align: center;
    font-size: 18pt;
    font-weight: 900;
}


/* =========================================================
   BOVENSTE 3 BLOKKEN
========================================================= */

.repair-print-a4 .rp-top-blocks.rp-top-blocks-wide {
    display: grid;
    grid-template-columns: 61mm 85mm 50mm;
    gap: 2mm;
    align-items: start;
}

/*
    Buitenste breedtes:

    68mm = klant
    85mm = product
    43mm = administratie
*/


/* =========================================================
   TABELLEN ALGEMEEN
========================================================= */

.repair-print-info-table,
.repair-print-lines-table,
.repair-print-work-table,
.repair-print-third-table,
.repair-print-a4 .rp-block-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 9.4pt;
}

.repair-print-info-table th,
.repair-print-info-table td,
.repair-print-lines-table th,
.repair-print-lines-table td,
.repair-print-work-table th,
.repair-print-work-table td,
.repair-print-third-table th,
.repair-print-third-table td {
    border: 1px solid #000;
    padding: 0.55mm 0.8mm;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.repair-print-info-table th,
.repair-print-lines-table th,
.repair-print-work-table th,
.repair-print-third-table th {
    font-weight: 700;
    text-align: left;
}


/* =========================================================
   TITELRIJEN
========================================================= */

.rp-block-title {
    background: #f2f2f2;
    font-size: 9.6pt;
    font-weight: 700;
    height: 5mm;
}


/* =========================================================
   KOLOMVERDELINGEN
   Pas alleen onderstaande percentages aan
========================================================= */


/* ======================
   KLANTGEGEVENS
====================== */

.repair-print-a4 .rp-klant-table tr:nth-child(n+2) th {
    width: 32%;
}

.repair-print-a4 .rp-klant-table tr:nth-child(n+2) td {
    width: 68%;
}


/* ======================
   PRODUCTGEGEVENS
====================== */

.repair-print-a4 .rp-product-table tr:nth-child(n+2) th {
    width: 32%;
}

.repair-print-a4 .rp-product-table tr:nth-child(n+2) td {
    width: 68%;
}


/* ======================
   ADMINISTRATIE
====================== */

.repair-print-a4 .rp-admin-table tr:nth-child(n+2) th {
    width: 56%;
}

.repair-print-a4 .rp-admin-table tr:nth-child(n+2) td {
    width: 44%;
}


/* =========================================================
   GRIJZE VAKKEN
========================================================= */

.rp-gray {
    background: #c7c7c7;
}


/* =========================================================
   TEKSTVLAKKEN
========================================================= */

.rp-text-block {
    border: 1px solid #000;
    margin-bottom: 1.3mm;
    padding: 1.2mm;
    font-size: 9.4pt;
    line-height: 1.22;
    box-sizing: border-box;
}

.rp-text-block strong {
    display: block;
    margin-bottom: 1mm;
    font-weight: 700;
    text-decoration: underline;
}

.rp-medium-block {
    min-height: 18mm;
}

.rp-large-block {
    min-height: 24mm;
}


/* =========================================================
   GEBRUIKTE ONDERDELEN
========================================================= */

.repair-print-lines-table td {
    height: 7mm;
}


/* =========================================================
   ARBEID
========================================================= */

.repair-print-work-table td {
    height: 6.5mm;
}


/* =========================================================
   EXTERN VERSTUURD
========================================================= */

.repair-print-third-table td,
.repair-print-third-table th {
    height: 6.5mm;
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 0;
    }

    body.repair-print-body {
        background: #fff;
    }

    .rp-screen-actions {
        display: none !important;
    }

    .repair-print-a4 {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0;
        padding: 4.5mm;
        box-shadow: none;
    }
}

.rp-gray {
    background-color: #c7c7c7 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.rp-screen-actions {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.rp-print-actions-card {
    width: min(210mm, calc(100% - 24px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.rp-print-actions-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #1f2937;
    font-size: 13px;
}

.rp-print-actions-info strong {
    font-size: 15px;
}

.rp-print-actions-info span {
    color: #64748b;
}

.rp-print-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.repair-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.repair-print-button:hover {
    background: #1d4ed8;
}

.repair-print-button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.repair-print-button-secondary:hover {
    background: #d1d5db;
}

@media print {
    .rp-screen-actions {
        display: none !important;
    }
}

.top-nav a,
.nav-dropdown-button,
.notification-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.menu-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.notification-button .menu-icon {
    font-size: 19px;
}

.nav-dropdown-button {
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
}

.nav-dropdown-menu a {
    gap: 8px;
}

.nav-icon svg {
    display: none;
}

.site-header {
    width: 100%;
}

.brand-block {
    flex: 0 0 auto;
}

.top-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-apr-logo {
    width: 400px;
    max-width: none;
    height: auto;
}

@media (max-width: 1100px) {

    .header-inner {
        padding: 12px 16px;
    }

    .portal-apr-logo {
        width: 180px;
    }

    .top-nav {
        gap: 2px;
    }
}

/* =========================================================
   EXCEL IMPORT
========================================================= */

.import-upload-card {
    padding: 20px;
}

.import-upload-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

.import-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.2s ease;
    overflow: hidden;
}

.import-dropzone:hover {
    border-color: #2d6cdf;
    background: #f1f7ff;
}

.import-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.import-dropzone-content {
    padding: 24px;
}

.import-dropzone-icon {
    font-size: 46px;
    margin-bottom: 14px;
}

.import-dropzone-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.import-dropzone-subtitle {
    display: block;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.import-info-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
}

.import-preview-table {
    min-width: 1200px;
}

.import-preview-table thead th {
    white-space: nowrap;
}

.import-preview-table tbody td {
    font-size: 13px;
    line-height: 1.45;
    vertical-align: top;
}

.import-mapping-select {
    min-width: 220px;
}

.import-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
}

.import-status-card {
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.import-status-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.import-status-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.import-warning-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {

    .import-upload-grid,
    .import-status-grid {
        grid-template-columns: 1fr;
    }
}