.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.page-header h2 {
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}
.page-header small {
    color: #777;
    font-size: 13px;
}
.content-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.card-header {
    font-weight: 600;
    background: #ffffff;
    color: var(--secondary);
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}
.card-body {
    padding: 15px;
}
.card-body p {
    margin-bottom: 10px;
}
.card-body p:last-child {
    margin-bottom: 0;
}
.table {
    margin-bottom: 0;
}
.table th {
    background: #f8f6f2;
    color: var(--secondary);
    font-weight: 600;
    padding: 10px 12px;
}
.table td {
    vertical-align: middle;
    padding: 10px 12px;
}
.table-hover tbody tr:hover {
    background: #f5f9f3;
    transition: 0.2s;
}
.form-footer {
    margin-top: 18px;
    display: flex;
    gap: 8px;
}
.badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 16px;
    font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    border-radius: 10px;
}
.dashboard-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}
/* =========================================================
   VISITOR KPI CARDS
   Only affects the Visitor Dashboard KPI boxes
   ========================================================= */

.visitor-kpi-row .dashboard-widget {
    min-height: 0;
    height: auto;
    padding: 14px 10px;
}

.visitor-kpi-row .dashboard-widget h6 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.visitor-kpi-row .dashboard-widget h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary);
}
.dashboard-widget:hover {
    transform: translateY(-2px);
}
.dashboard-widget h6 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}
.dashboard-widget h2 {
    font-size: 28px;
    margin-top: 6px;
    font-weight: 700;
    color: var(--secondary);
}
.visitor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.visitor-profile-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f1f1f1;
}
.visitor-profile-placeholder {
    width: 130px;
    height: 130px;
    margin: auto;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6c757d;
}
.visitor-qr {
    width: 190px;
    height: 190px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-header .btn {
        width: 100%;
    }
    .content-card,
    .visitor-kpi-row .dashboard-widget {
        padding: 14px;
    }
    .form-footer {
        flex-direction: column;
    }
    .form-footer .btn {
        width: 100%;
    }
    .visitor-photo,
    .visitor-profile-photo,
    .visitor-profile-placeholder {
        width: 110px;
        height: 110px;
    }
    .visitor-qr {
        width: 170px;
        height: 170px;
    }
}
/* =========================================================
   VISITOR KPI CARDS
   Only affects the Visitor Dashboard KPI boxes
   ========================================================= */

.visitor-kpi-row .dashboard-widget {
    min-height: 0;
    height: auto;
    padding: 14px 10px;
}

.visitor-kpi-row .dashboard-widget h6 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.visitor-kpi-row .dashboard-widget h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary);
}