/* =========================================================
   BASIS
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    background: #f7f9fc;
    color: #53627c;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    background: #ffffff;

    border-top: 1px solid #e3e7ed;
    border-bottom: 1px solid #e9edf3;
}

.topbar-inner {
    width: 100%;
    max-width: 1400px;
    min-height: 94px;

    margin: 0 auto;
    padding: 12px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 220px;
    max-height: 70px;
}


/* =========================================================
   USER AREA TOPBAR
   ========================================================= */

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 14px;
}

.user-profile {
    display: flex;
    align-items: center;

    gap: 11px;
}

.user-details {
    display: flex;
    flex-direction: column;

    min-width: 0;

    line-height: 1.25;
}

.user-name {
    color: #40536f;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.user-role {
    margin-top: 2px;

    color: #8a96a8;

    font-size: 12px;
    font-weight: 500;
}

.topbar-divider {
    width: 1px;
    height: 34px;

    background: #e2e7ee;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.logout-form {
    margin: 0;
}

.topbar-logout {
    min-height: 42px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;
    border-radius: 10px;

    background: #f1f4f8;
    color: #40536f;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.topbar-logout:hover {
    background: #e7ecf2;
}

.topbar-logout:active {
    transform: scale(.98);
}

.topbar-logout:focus-visible {
    outline: 3px solid rgba(64, 83, 111, .20);
    outline-offset: 2px;
}

.logout-icon {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   PAGE
   ========================================================= */

.dashboard {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 36px 28px 60px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    margin-bottom: 42px;
}

.welcome h1 {
    margin: 0 0 5px;

    color: #40536f;

    font-size: 38px;
    font-weight: 750;
    line-height: 1.2;
}

.welcome p {
    margin: 0;

    color: #71809a;

    font-size: 19px;
}


/* =========================================================
   DASHBOARD SECTIONS
   ========================================================= */

.dashboard-section {
    margin-top: 38px;
}

.dashboard-section:first-of-type {
    margin-top: 0;
}

.section-title {
    margin: 0 0 18px;

    color: #40536f;

    font-size: 21px;
    font-weight: 750;
}

.section-description {
    margin: 0;

    color: #71809a;

    font-size: 14px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   DASHBOARD CARD
   ========================================================= */

.dashboard-card {
    min-height: 128px;

    padding: 22px;

    display: flex;
    align-items: center;

    gap: 18px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 5px 22px rgba(0, 0, 0, .055);

    color: inherit;
    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 26px rgba(0, 0, 0, .08);
}

.dashboard-card:focus-visible {
    outline: 3px solid rgba(64, 83, 111, .20);
    outline-offset: 3px;
}


/* =========================================================
   ADMIN CARD
   ========================================================= */

.admin-card {
    border-left: 5px solid #40536f;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.card-icon {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #f1f4f8;

    font-size: 32px;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.card-title {
    color: #40536f;

    font-size: 20px;
    font-weight: 750;
}

.card-description {
    margin-top: 4px;

    color: #71809a;

    font-size: 15px;
    line-height: 1.45;
}

.card-arrow {
    color: #90a0b4;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel,
.form-card,
.auth-card {
    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .06);
}

.panel {
    padding: 24px;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-card {
    padding: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;

    margin-bottom: 7px;

    color: #40536f;

    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;

    padding: 11px 13px;

    border: 1px solid #d9e0e8;
    border-radius: 10px;

    background: #ffffff;
    color: #40536f;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

textarea.form-control {
    min-height: 120px;

    resize: vertical;
}

.form-control:hover {
    border-color: #c8d0da;
}

.form-control:focus {
    border-color: #40536f;

    box-shadow:
        0 0 0 3px rgba(64, 83, 111, .10);
}

.form-help {
    margin-top: 6px;

    color: #8a96a8;

    font-size: 12px;
}

.form-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 24px;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-row {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    min-height: 46px;

    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;
    border-radius: 10px;

    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.button:active {
    transform: scale(.985);
}

.button:focus-visible {
    outline: 3px solid rgba(64, 83, 111, .20);
    outline-offset: 2px;
}

.button-primary {
    background: #40536f;
    color: #ffffff;
}

.button-primary:hover {
    background: #34455f;
}

.button-secondary {
    background: #f1f4f8;
    color: #40536f;
}

.button-secondary:hover {
    background: #e7ecf2;
}

.button-danger {
    background: #b42318;
    color: #ffffff;
}

.button-danger:hover {
    background: #981e15;
}

.button-full {
    width: 100%;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 14px;
}

.alert-error {
    background: #fdf0ef;
    color: #a62d2d;
}

.alert-success {
    background: #edf8f0;
    color: #2f6840;
}

.alert-warning {
    background: #fff8df;
    color: #856404;
}

.alert-info {
    background: #eef5fb;
    color: #40536f;
}


/* =========================================================
   BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    background: #f1f3f6;
    color: #7b8492;

    font-size: 11px;
    font-weight: 700;
}

.status-active {
    background: #edf8f0;
    color: #2f6840;
}

.status-inactive {
    background: #f1f3f6;
    color: #7b8492;
}

.status-warning {
    background: #fff8df;
    color: #856404;
}

.status-danger {
    background: #fdf0ef;
    color: #a62d2d;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .06);
}

.data-table {
    width: 100%;
    min-width: 700px;

    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;

    border-bottom: 1px solid #edf0f4;

    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f7f9fc;
    color: #40536f;

    font-size: 13px;
    font-weight: 700;
}

.data-table td {
    color: #53627c;

    font-size: 14px;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fafbfd;
}

.table-subtext {
    margin-top: 3px;

    color: #8a96a8;

    font-size: 12px;
}


/* =========================================================
   TABLE ACTION BUTTONS
   ========================================================= */

.table-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: nowrap;
}

.table-button {
    min-height: 34px;

    padding: 7px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce2ea;
    border-radius: 9px;

    background: #ffffff;
    color: #40536f;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.table-button:hover {
    background: #f7f9fc;
    border-color: #cbd3df;
}

.table-button-primary {
    background: #40536f;
    border-color: #40536f;

    color: #ffffff;
}

.table-button-primary:hover {
    background: #35465e;
    border-color: #35465e;

    color: #ffffff;
}

.table-action-link {
    color: #40536f;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.table-action-link:hover {
    text-decoration: underline;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 40px 24px;

    text-align: center;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .06);
}

.empty-state-icon {
    margin-bottom: 12px;

    font-size: 38px;
}

.empty-state-title {
    margin: 0 0 5px;

    color: #40536f;

    font-size: 18px;
    font-weight: 700;
}

.empty-state-text {
    margin: 0;

    color: #71809a;

    font-size: 14px;
}

.empty-state-actions {
    margin-top: 20px;
}


/* =========================================================
   LOGIN / AUTH
   ========================================================= */

.auth-page {
    min-height: 100vh;

    background: #f7f9fc;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;

    margin: 0 auto;

    padding: 55px 20px;
}

.auth-brand {
    margin-bottom: 25px;

    text-align: center;
}

.auth-brand img {
    width: auto;
    height: auto;

    max-width: 220px;
    max-height: 85px;
}

.auth-card {
    padding: 30px;
}

.auth-title {
    margin: 0 0 5px;

    color: #40536f;

    font-size: 25px;
    font-weight: 750;
}

.auth-subtitle {
    margin: 0 0 25px;

    color: #71809a;

    font-size: 14px;
}


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

.page-header {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.page-header-content {
    min-width: 0;
}

.page-title {
    margin: 0;

    color: #40536f;

    font-size: 28px;
    font-weight: 750;
}

.page-description {
    margin: 4px 0 0;

    color: #71809a;

    font-size: 14px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 18px;

    color: #71809a;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.back-link:hover {
    color: #40536f;
}


/* =========================================================
   DETAIL PAGES
   ========================================================= */

.location-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px 32px;
}

.detail-item {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.detail-label {
    color: #8a96a8;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.detail-value {
    color: #40536f;

    font-size: 15px;
    font-weight: 600;
}

.detail-empty {
    color: #9aa5b5;

    font-weight: 400;
}

.section-heading-row {
    margin-bottom: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-heading-row .section-title {
    margin-bottom: 3px;
}


/* =========================================================
   KINDEREN
   ========================================================= */

.children-filter-card {
    margin-top: 24px;
}

.children-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 2fr)
        repeat(4, minmax(150px, 1fr));

    gap: 16px;
}

.children-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-top: 24px;
}

.pagination-info {
    color: #71809a;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .children-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 1000px) {

    .dashboard-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .topbar-inner {
        min-height: 70px;

        padding: 10px 15px;

        gap: 12px;
    }

    .logo {
        max-width: 155px;
        max-height: 48px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .user-details {
        display: none;
    }

    .topbar-divider {
        display: none;
    }

    .topbar-logout {
        width: 40px;
        height: 40px;
        min-height: 40px;

        padding: 0;
    }

    .logout-text {
        display: none;
    }

    .dashboard {
        padding: 26px 15px 45px;
    }

    .welcome {
        margin-bottom: 32px;
    }

    .welcome h1 {
        font-size: 28px;
    }

    .welcome p {
        font-size: 16px;
    }

    .dashboard-section {
        margin-top: 32px;
    }

    .section-title {
        margin-bottom: 14px;

        font-size: 19px;
    }

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

        gap: 14px;
    }

    .dashboard-card {
        min-height: 100px;

        padding: 16px;

        gap: 14px;

        border-radius: 16px;
    }

    .card-icon {
        width: 54px;
        height: 54px;

        flex-basis: 54px;

        border-radius: 14px;

        font-size: 27px;
    }

    .card-title {
        font-size: 17px;
    }

    .card-description {
        font-size: 13px;
    }

    .card-arrow {
        font-size: 26px;
    }

    .auth-wrapper {
        padding: 35px 15px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .button {
        min-height: 50px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
    }

    .page-title {
        font-size: 24px;
    }

    .page-header-actions {
        width: 100%;
        align-items: stretch;
    }

    .page-header-actions .button {
        flex: 1;
    }

    .detail-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .section-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading-row .button {
        width: 100%;
    }

    .children-filter-grid {
        grid-template-columns: 1fr;
    }

    .children-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .logo {
        max-width: 135px;
    }

    .topbar-logout {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-card {
        padding: 14px;
    }

    .card-description {
        line-height: 1.35;
    }

}

/* =========================================================
   SELECTIELIJST KINDEREN / RELATIES
   ========================================================= */

.selection-list {
    display: flex;
    flex-direction: column;

    border: 1px solid #e4e9ef;
    border-radius: 12px;

    overflow: hidden;
}

.selection-option {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    border-bottom: 1px solid #edf0f4;

    background: #ffffff;

    cursor: pointer;
}

.selection-option:last-child {
    border-bottom: 0;
}

.selection-option:hover {
    background: #f9fafc;
}

.selection-option input[type="checkbox"] {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin: 0;
}

.selection-option-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.selection-option-main {
    color: #40536f;

    font-size: 14px;
    font-weight: 700;
}

.selection-option-sub {
    color: #8a96a8;

    font-size: 12px;
}

.selection-option-disabled {
    background: #f7f8fa;

    cursor: not-allowed;

    opacity: .65;
}

.selection-option-disabled:hover {
    background: #f7f8fa;
}

/* =========================================================
   AANWEZIGHEDEN
   ========================================================= */

.attendance-period-tabs {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;
}

.attendance-period-tab {
    min-height: 44px;

    padding: 10px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce2ea;
    border-radius: 10px;

    background: #ffffff;
    color: #40536f;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.attendance-period-tab:hover {
    background: #f4f6f9;
    border-color: #cbd3df;
}

.attendance-period-tab-active {
    background: #40536f;
    border-color: #40536f;

    color: #ffffff;
}

.attendance-period-tab-active:hover {
    background: #34455f;
    border-color: #34455f;

    color: #ffffff;
}


/* =========================================================
   FILTERS
   ========================================================= */

.attendance-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 2fr)
        repeat(3, minmax(160px, 1fr));

    gap: 16px;
}


/* =========================================================
   SAMENVATTING
   ========================================================= */

.attendance-summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.attendance-summary-item {
    min-height: 100px;

    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .055);
}

.attendance-summary-number {
    color: #40536f;

    font-size: 28px;
    font-weight: 750;
    line-height: 1.1;
}

.attendance-summary-label {
    margin-top: 5px;

    color: #71809a;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   KINDERLIJST
   ========================================================= */

.attendance-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.attendance-child-card {
    padding: 16px 18px;

    background: #ffffff;

    border: 1px solid transparent;
    border-radius: 14px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, .045);
}

.attendance-child-card-present {
    border-color: #d8eade;

    background: #fbfefc;
}

.attendance-child-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.attendance-child-info {
    min-width: 0;

    flex: 1;
}

.attendance-child-title-row {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.attendance-child-name {
    margin: 0;

    color: #40536f;

    font-size: 17px;
    font-weight: 750;
}

.attendance-child-subtext {
    margin-top: 3px;

    color: #8a96a8;

    font-size: 12px;
}

.attendance-child-meta {
    margin-top: 7px;

    display: flex;
    align-items: center;

    gap: 5px;

    flex-wrap: wrap;

    color: #71809a;

    font-size: 13px;
}

.attendance-current {
    margin-top: 8px;

    color: #53627c;

    font-size: 13px;
}

.attendance-child-action {
    flex: 0 0 auto;
}

.attendance-child-action form {
    margin: 0;
}

.attendance-action-button {
    min-width: 125px;
}


/* =========================================================
   RESPONSIVE AANWEZIGHEDEN
   ========================================================= */

@media (max-width: 1000px) {

    .attendance-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .attendance-period-tabs {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .attendance-period-tab {
        width: 100%;
    }

    .attendance-filter-grid {
        grid-template-columns: 1fr;
    }

    .attendance-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
    }

    .attendance-summary-item {
        min-height: 85px;

        padding: 14px 10px;

        text-align: center;
    }

    .attendance-summary-number {
        font-size: 24px;
    }

    .attendance-summary-label {
        font-size: 11px;
    }

    .attendance-child-card {
        padding: 15px;
    }

    .attendance-child-main {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }

    .attendance-child-action {
        width: 100%;
    }

    .attendance-child-action form {
        width: 100%;
    }

    .attendance-action-button {
        width: 100%;
        min-width: 0;
    }

}


@media (max-width: 420px) {

    .attendance-period-tabs {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   QR-KAART
   ========================================================= */

.qr-print-area {
    max-width: 420px;
}

.qr-child-card {
    padding: 26px;

    background: #ffffff;

    border: 1px solid #dfe5ec;
    border-radius: 18px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .055);

    text-align: center;
}

.qr-child-card-heading {
    color: #71809a;

    font-size: 13px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.qr-child-card-name {
    margin-top: 7px;

    color: #40536f;

    font-size: 22px;
    font-weight: 750;
}

.qr-child-card-sub {
    margin-top: 3px;

    color: #71809a;

    font-size: 13px;
}

.qr-code {
    width: 280px;
    max-width: 100%;

    margin:
        22px auto 16px;
}

.qr-code svg {
    display: block;

    width: 100%;
    height: auto;
}

.qr-child-card-footer {
    color: #71809a;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   QR-SCANNER
   ========================================================= */

.qr-scanner-card {
    padding: 20px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, .055);
}

.qr-scanner-video-wrap {
    position: relative;

    width: 100%;

    margin-top: 18px;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 16px;

    background: #111820;
}

.qr-scanner-video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.qr-scanner-frame {
    position: absolute;

    top: 50%;
    left: 50%;

    width: min(65%, 280px);

    aspect-ratio: 1 / 1;

    transform:
        translate(-50%, -50%);

    border: 3px solid #ffffff;
    border-radius: 18px;

    box-shadow:
        0 0 0 9999px
        rgba(0, 0, 0, .22);

    pointer-events: none;
}

.qr-scanner-fallback {
    margin-top: 20px;

    padding: 18px;

    border-radius: 12px;

    background: #f7f9fc;
}


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

@media print {

    body * {
        visibility: hidden !important;
    }

    .qr-print-area,
    .qr-print-area * {
        visibility: visible !important;
    }

    .qr-print-area {
        position: absolute;

        top: 20px;
        left: 20px;

        width: 360px;
        max-width: none;
    }

    .qr-child-card {
        box-shadow: none;

        border: 1px solid #bbbbbb;
    }

    .no-print {
        display: none !important;
    }

}


/* =========================================================
   MOBILE QR
   ========================================================= */

@media (max-width: 650px) {

    .qr-scanner-card {
        padding: 14px;
    }

    .qr-scanner-video-wrap {
        border-radius: 13px;
    }

    .qr-child-card {
        padding: 20px;
    }

    .qr-code {
        width: 240px;
    }

}