/*
 * P4U Vtiger School Dashboard - Frontend Styles
 */

/* --- General Styles --- */
.p4uvt-login-wrapper,
.p4uvt-dashboard-container {
    font-family: sans-serif;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 1100px; /* Increased to accommodate wider columns */
    box-sizing: border-box;
}

.p4uvt-login-wrapper h3,
.p4uvt-dashboard-container h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

/* Buttons */
.p4uvt-login-form input[type="submit"],
.p4uvt-filters input[type="submit"],
.p4uvt-contact-details .button,
.p4uvt-logged-in .p4uvt-logout-button,
.p4uvt-dashboard-container .button /* General button class for back links etc. */
{
    background-color: #0073aa; /* WordPress blue */
    color: white;
    border: none;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1em;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    display: inline-block; /* For <a> tags styled as buttons */
}

.p4uvt-login-form input[type="submit"]:hover,
.p4uvt-filters input[type="submit"]:hover,
.p4uvt-contact-details .button:hover,
.p4uvt-logged-in .p4uvt-logout-button:hover,
.p4uvt-dashboard-container .button:hover {
    background-color: #005a87;
}

/* --- Search Form Styles --- */
.p4uvt-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.p4uvt-search-field {
    margin-bottom: 15px;
}

.p4uvt-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.p4uvt-search-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.p4uvt-search-field input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.p4uvt-searchable-fields-info {
    background-color: #f0f7fc;
    border-left: 3px solid #0073aa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.p4uvt-search-explanation {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: #23282d;
}

.p4uvt-searchable-fields-list {
    margin: 0;
    padding-left: 20px;
    columns: 2;
}

.p4uvt-searchable-fields-list li {
    margin-bottom: 5px;
    color: #555;
}

.p4uvt-search-actions {
    margin-top: 20px;
    text-align: right;
}

.p4uvt-search-button {
    padding: 10px 20px !important;
    font-size: 1.05em !important;
}

/* --- Login Form Styles --- */
.p4uvt-login-form-container p {
    margin-bottom: 15px;
}
.p4uvt-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
.p4uvt-login-form input[type="text"],
.p4uvt-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Logged-in message */
.p4uvt-logged-in p {
    font-size: 1.1em;
    color: #333;
}
.p4uvt-logged-in strong {
    color: #0073aa;
}


/* --- Flash Notices (Login/Logout) --- */
.p4uvt-notice {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.p4uvt-notice-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}
.p4uvt-notice-error {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

/* --- Dashboard General Messages --- */
.p4uvt-dashboard-message {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.p4uvt-dashboard-message.p4uvt-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.p4uvt-dashboard-message.p4uvt-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}
.p4uvt-dashboard-message.p4uvt-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}


/* --- Dashboard Filters --- */
.p4uvt-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.p4uvt-filters form {
    display: block;
    width: 100%;
}

.p4uvt-filter-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.p4uvt-filter-block {
    flex: 0 0 calc(50% - 10px);
    margin-right: 20px;
    box-sizing: border-box;
}

.p4uvt-filter-block:last-child {
    margin-right: 0;
}

.p4uvt-filters label {
    height: 25px;
    line-height: 25px;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.p4uvt-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    width: auto;
}

.p4uvt-filters select {
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
}

.p4uvt-filters select[multiple] {
    min-height: 120px;
    height: auto;
    width: 280px;
    display: block; /* Ensure it's block level */
}

.p4uvt-filter-help {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    font-style: italic;
    max-width: 280px;
}

.p4uvt-filter-buttons {
    display: block;
    text-align: right;
    margin-top: 10px;
    clear: both;
}

.p4uvt-filters .button {
    padding: 7px 15px;
    font-size: 14px;
}

/* --- Records Summary --- */
.p4uvt-records-summary {
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
}

/* --- Dashboard Table --- */
.p4uvt-dashboard-table {
    width: 100%;
    table-layout: fixed; /* Make columns more consistently sized */
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.p4uvt-dashboard-table th,
.p4uvt-dashboard-table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Column width specifications */
.p4uvt-dashboard-table th:nth-child(1),
.p4uvt-dashboard-table td:nth-child(1) {
    width: 15%; /* Achternaam */
}

.p4uvt-dashboard-table th:nth-child(2),
.p4uvt-dashboard-table td:nth-child(2) {
    width: 15%; /* Schadebeheerhandelaar */
}

.p4uvt-dashboard-table th:nth-child(3),
.p4uvt-dashboard-table td:nth-child(3) {
    width: 12%; /* Schadenummer */
}

.p4uvt-dashboard-table th:nth-child(4),
.p4uvt-dashboard-table td:nth-child(4) {
    width: 18%; /* Serienummer */
}

.p4uvt-dashboard-table th:nth-child(5),
.p4uvt-dashboard-table td:nth-child(5) {
    width: 15%; /* Voornaam */
}

.p4uvt-dashboard-table th {
    background-color: #e9ecef; /* Lighter header */
    font-weight: 600; /* Bolder header text */
    color: #333;
}
.p4uvt-dashboard-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Subtle striping */
}
.p4uvt-dashboard-table tbody tr:hover {
    background-color: #e2e6ea; /* Hover effect */
}
.p4uvt-dashboard-table td a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}
.p4uvt-dashboard-table td a:hover {
    text-decoration: underline;
    color: #005a87;
}

/* --- Pagination --- */
.p4uvt-pagination {
    margin-top: 20px;
    text-align: center;
    clear: both;
}

/* Fix for WordPress pagination list display */
.p4uvt-pagination ul {
    list-style: none !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
}

.p4uvt-pagination li {
    margin: 0 3px !important;
    display: inline-block !important;
}

.p4uvt-pagination .page-numbers { /* This class is used by paginate_links() */
    display: inline-block;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    border-radius: 3px;
    background-color: #fff;
    transition: background-color 0.2s, color 0.2s;
}

/* Current page styling */
.p4uvt-pagination .page-numbers.current {
    background-color: #005a87; /* Darker for current page */
    color: #fff;
    border-color: #005a87;
    font-weight: bold;
}

/* Hover effects for pagination links */
.p4uvt-pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.p4uvt-pagination .dots {
    padding: 8px 0; /* Align dots better */
}


/* --- Contact Detail Styles --- */

/* Contact Header */
.p4uvt-contact-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.p4uvt-header-title {
    font-size: 1.4em;
    color: #23282d;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header fields container */
.p4uvt-header-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: stretch;
}

/* Individual header field */
.p4uvt-header-field {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.p4uvt-header-field:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.p4uvt-header-field-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.p4uvt-header-field-value {
    font-size: 1.2em;
    color: #333;
    font-weight: 500;
}

/* Style for contact name */
.p4uvt-name-value {
    font-size: 1.3em;
    font-weight: 600;
}

/* Style for contact ID */
.p4uvt-header-field .p4uvt-contact-id {
    font-size: 1.1em;
    color: #555;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 0;
    font-weight: 500;
}

/* Status field styling */
.p4uvt-header-field.status-new,
.p4uvt-header-field.status-progress,
.p4uvt-header-field.status-waiting,
.p4uvt-header-field.status-completed,
.p4uvt-header-field.status-rejected {
    border-left: 4px solid;
}

.p4uvt-header-field.status-new {
    background-color: #e3f2fd;
    border-left-color: #2196F3;
}

.p4uvt-header-field.status-progress {
    background-color: #fff8e1;
    border-left-color: #FFC107;
}

.p4uvt-header-field.status-waiting {
    background-color: #e8f5e9;
    border-left-color: #4CAF50;
}

.p4uvt-header-field.status-completed {
    background-color: #e0f2f1;
    border-left-color: #009688;
}

.p4uvt-header-field.status-rejected {
    background-color: #ffebee;
    border-left-color: #F44336;
}

.p4uvt-header-field.status-default {
    background-color: #f5f5f5;
    border-left-color: #607D8B;
}

/* Highlight the status field */
.p4uvt-header-field .p4uvt-status-label {
    color: #0073aa;
    font-weight: 700;
}

.p4uvt-header-field .p4uvt-status-value {
    font-weight: 700;
    font-size: 1.3em;
}

/* Status Banner */
.p4uvt-status-banner {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
    font-weight: 500;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

/* Status color variations */
.p4uvt-status-banner.status-new {
    background-color: #e3f2fd;
    border-left-color: #2196F3;
}

.p4uvt-status-banner.status-progress {
    background-color: #fff8e1;
    border-left-color: #FFC107;
}

.p4uvt-status-banner.status-waiting {
    background-color: #e8f5e9;
    border-left-color: #4CAF50;
}

.p4uvt-status-banner.status-completed {
    background-color: #e0f2f1;
    border-left-color: #009688;
}

.p4uvt-status-banner.status-rejected {
    background-color: #ffebee;
    border-left-color: #F44336;
}

.p4uvt-status-label {
    color: #0073aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.p4uvt-status-value {
    font-size: 1.05em;
    color: #333;
    font-weight: 600;
}
.p4uvt-contact-details {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.p4uvt-contact-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0073aa, #00a0d2);
}

/* 3-Column Layout */
.p4uvt-three-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.p4uvt-column {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    background-color: #fcfcfc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.p4uvt-column:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.p4uvt-field {
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 2px;
}

.p4uvt-rounded-field {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 15px 18px;
    transition: all 0.2s ease;
    background: #fcfcfc;
    margin-bottom: 15px;
}

.p4uvt-rounded-field:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.p4uvt-rounded-field .p4uvt-field-label {
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.p4uvt-rounded-field .p4uvt-field-value {
    border-bottom: none;
    padding: 0;
    font-size: 1.1em;
}

.p4uvt-field-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #0073aa; /* WordPress blue */
}

.p4uvt-field-value {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 1.05em;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.p4uvt-field:hover .p4uvt-field-value {
    border-bottom-color: #0073aa;
}

/* Search Form Styles */
.p4uvt-search-container {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.p4uvt-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0073aa, #00a0d2);
}

.p4uvt-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.p4uvt-search-field {
    flex: 1;
    min-width: 250px;
}

.p4uvt-search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p4uvt-search-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.p4uvt-search-actions {
    width: 100%;
    padding-top: 15px;
    display: flex;
    gap: 10px;
}

.p4uvt-search-button {
    background-color: #0073aa !important;
    color: white !important;
    border: none !important;
}

.p4uvt-search-button:hover {
    background-color: #005d8c !important;
}

.p4uvt-reset-button {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.p4uvt-loading {
    padding: 15px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin: 10px 0;
    font-style: italic;
    color: #666;
}

/* Search Results */
.p4uvt-search-results {
    margin-top: 20px;
}

.p4uvt-search-results h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #444;
}

.p4uvt-search-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.p4uvt-search-results-table th {
    background-color: #f5f5f5;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

.p4uvt-search-results-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.p4uvt-search-results-table tr:hover td {
    background-color: #f9f9f9;
}

.p4uvt-search-pagination {
    margin-top: 15px;
    text-align: center;
}

.p4uvt-search-pagination a,
.p4uvt-search-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    text-decoration: none;
    border-radius: 3px;
}

.p4uvt-search-pagination a:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.p4uvt-current-page {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

.p4uvt-no-results {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.p4uvt-error {
    padding: 10px;
    background-color: #fef1f1;
    border-left: 4px solid #dc3232;
    color: #666;
    margin: 10px 0;
}

/* Legacy styles for backward compatibility */
.p4uvt-contact-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.p4uvt-contact-details li {
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}

.p4uvt-contact-details li:last-child {
    border-bottom: none;
}

.p4uvt-contact-details strong {
    display: inline-block;
    min-width: 150px;
    margin-right: 10px;
}

.p4uvt-contact-details li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee; /* Softer separator */
    display: flex; /* For better alignment if needed */
    flex-wrap: wrap; /* Allow wrapping for long content */
}
.p4uvt-contact-details li:last-child {
    border-bottom: none;
}
.p4uvt-contact-details li strong {
    display: inline-block;
    width: 200px; /* Adjust as needed for label width */
    color: #333;
    margin-right: 10px; /* Space between label and value */
    flex-shrink: 0; /* Prevent label from shrinking */
}
.p4uvt-contact-details li span { /* If you wrap values in spans */
    flex-grow: 1; /* Allow value to take remaining space */
    word-break: break-word; /* Break long words */
}

/* --- Email Display Styles --- */
.p4uvt-email-actions {
    margin: 20px 0;
}

.p4uvt-show-email-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1em;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    display: inline-block;
}

.p4uvt-show-email-button:hover {
    background-color: #005a87;
}

.p4uvt-emails-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Modal Styles */
.p4uvt-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.p4uvt-modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.p4uvt-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.p4uvt-modal-close:hover,
.p4uvt-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.p4uvt-email-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.p4uvt-email-header h2 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 30px;
    font-size: 1.4em;
}

.p4uvt-email-meta {
    margin-bottom: 5px;
    color: #666;
}

.p4uvt-email-body {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-line;
}

.p4uvt-emails-container h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.p4uvt-emails-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.p4uvt-emails-table th,
.p4uvt-emails-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.p4uvt-emails-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.p4uvt-emails-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.p4uvt-no-emails {
    padding: 15px;
    background-color: #f7f7f7;
    border-left: 3px solid #999;
    color: #666;
}

.p4uvt-loading {
    padding: 10px;
    text-align: center;
    color: #666;
}

.p4uvt-error {
    padding: 10px;
    background-color: #ffeaea;
    border-left: 3px solid #d32f2f;
    color: #d32f2f;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .p4uvt-login-wrapper,
    .p4uvt-dashboard-container {
        padding: 15px;
    }
    
    /* Make columns stack on mobile */
    .p4uvt-three-columns,
    .p4uvt-header-fields {
        flex-direction: column;
        gap: 15px;
    }
    
    .p4uvt-column,
    .p4uvt-header-field {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .p4uvt-contact-details {
        padding: 15px;
    }
    
    .p4uvt-header-title {
        font-size: 1.2em;
    }
    
    .p4uvt-header-field-value {
        font-size: 1.1em;
    }
    
    .p4uvt-header-field .p4uvt-status-value {
        font-size: 1.2em;
    }

    .p4uvt-filters {
        display: flex;
        flex-direction: column;
    }
    .p4uvt-filters label,
    .p4uvt-filters select,
    .p4uvt-filters input[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .p4uvt-dashboard-table {
        display: block;
        overflow-x: auto; /* Allow horizontal scroll for table on small screens */
        white-space: nowrap; /* Prevent text wrapping in cells that breaks layout */
    }
        /* Ensure table elements display properly on smaller screens */
    .p4uvt-dashboard-table thead, 
    .p4uvt-dashboard-table tbody, 
    .p4uvt-dashboard-table th, 
    .p4uvt-dashboard-table td, 
    .p4uvt-dashboard-table tr {
        max-width: 100%;
    }
     /* If you really want to stack table on mobile (more complex):
    .p4uvt-dashboard-table thead tr { display: none; }
    .p4uvt-dashboard-table tr { border-bottom: 2px solid #ddd; margin-bottom: 10px; display: block; }
    .p4uvt-dashboard-table td { display: block; text-align: right; border-bottom: 1px dotted #ccc; padding-left: 50%; position: relative; }
    .p4uvt-dashboard-table td:before { content: attr(data-label); position: absolute; left: 10px; width: calc(50% - 20px); padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; }
    You'd need to add data-label attributes to your TDs in PHP for this to work.
    */


    .p4uvt-contact-details li {
        flex-direction: column;
    }
    .p4uvt-contact-details li strong {
        width: auto; /* Full width on mobile */
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 480px) {
    .p4uvt-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}
