/* ==========================================================================
   ParkingPro Customer Portal - Unified Stylesheet
   Clean & Modern Design (Variant A)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. ROOT FONT-SIZE RESET
   Override themes that set html { font-size: 62.5% } (10px).
   All rem values in this stylesheet assume a 16px root.
   -------------------------------------------------------------------------- */
html:has(> body.parkingpro-customer-portal-body) {
    font-size: 16px !important;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Primary (Teal)
       Reads from shared ParkingPro design tokens so an admin can
       change the brand colour once for all plugins. */
    --parkingpro-customer-portal-color-primary-50:  #f0fdfa;
    --parkingpro-customer-portal-color-primary-100: #ccfbf1;
    --parkingpro-customer-portal-color-primary-500: var(--parkingpro-color-primary, #14b8a6);
    --parkingpro-customer-portal-color-primary-600: var(--parkingpro-color-primary-hover, #0d9488);
    --parkingpro-customer-portal-color-primary-700: var(--parkingpro-color-primary-dark, #0f766e);
    --parkingpro-customer-portal-color-primary-800: #115e59;

    /* Colors - Gray */
    --parkingpro-customer-portal-color-gray-50:  #f9fafb;
    --parkingpro-customer-portal-color-gray-100: #f3f4f6;
    --parkingpro-customer-portal-color-gray-200: #e5e7eb;
    --parkingpro-customer-portal-color-gray-300: #d1d5db;
    --parkingpro-customer-portal-color-gray-400: #9ca3af;
    --parkingpro-customer-portal-color-gray-500: #6b7280;
    --parkingpro-customer-portal-color-gray-600: #4b5563;
    --parkingpro-customer-portal-color-gray-700: #374151;
    --parkingpro-customer-portal-color-gray-800: #1f2937;
    --parkingpro-customer-portal-color-gray-900: #111827;

    /* Colors - Success */
    --parkingpro-customer-portal-color-success-50:  #f0fdf4;
    --parkingpro-customer-portal-color-success-100: #dcfce7;
    --parkingpro-customer-portal-color-success-600: var(--parkingpro-color-success, #16a34a);
    --parkingpro-customer-portal-color-success-700: #15803d;

    /* Colors - Warning */
    --parkingpro-customer-portal-color-warning-50:  #fff7ed;
    --parkingpro-customer-portal-color-warning-100: #ffedd5;
    --parkingpro-customer-portal-color-warning-600: var(--parkingpro-color-warning, #ea580c);
    --parkingpro-customer-portal-color-warning-700: #c2410c;

    /* Colors - Error */
    --parkingpro-customer-portal-color-error-50:  #fef2f2;
    --parkingpro-customer-portal-color-error-100: #fee2e2;
    --parkingpro-customer-portal-color-error-600: var(--parkingpro-color-error, #dc2626);

    /* Colors - Info */
    --parkingpro-customer-portal-color-info-50:  #eff6ff;
    --parkingpro-customer-portal-color-info-100: #dbeafe;
    --parkingpro-customer-portal-color-info-700: var(--parkingpro-color-info, #1d4ed8);

    /* Typography */
    --parkingpro-customer-portal-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --parkingpro-customer-portal-font-size-xs:   0.75rem;
    --parkingpro-customer-portal-font-size-sm:   0.875rem;
    --parkingpro-customer-portal-font-size-base: 1rem;
    --parkingpro-customer-portal-font-size-lg:   1.125rem;
    --parkingpro-customer-portal-font-size-xl:   1.25rem;
    --parkingpro-customer-portal-font-size-2xl:  1.5rem;

    /* Spacing & Radius */
    --parkingpro-customer-portal-radius-md: 8px;
    --parkingpro-customer-portal-radius-lg: 12px;
    --parkingpro-customer-portal-radius-xl: 16px;
    --parkingpro-customer-portal-radius-full: 9999px;

    --parkingpro-customer-portal-sidebar-width: 256px;

    /* Shadows */
    --parkingpro-customer-portal-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --parkingpro-customer-portal-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --parkingpro-customer-portal-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-body {
    margin: 0;
    padding: 0;
    font-family: var(--parkingpro-customer-portal-font-family);
    font-size: var(--parkingpro-customer-portal-font-size-base);
    line-height: 1.6;
    color: var(--parkingpro-customer-portal-color-gray-800);
    background-color: var(--parkingpro-customer-portal-color-gray-100);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.parkingpro-customer-portal-body *,
.parkingpro-customer-portal-body *::before,
.parkingpro-customer-portal-body *::after {
    box-sizing: border-box;
}

.parkingpro-customer-portal *,
.parkingpro-customer-portal *::before,
.parkingpro-customer-portal *::after {
    box-sizing: border-box;
}

.parkingpro-customer-portal {
    font-family: var(--parkingpro-customer-portal-font-family);
    font-size: var(--parkingpro-customer-portal-font-size-base);
    line-height: 1.6;
    color: var(--parkingpro-customer-portal-color-gray-800);
}

.parkingpro-customer-portal a {
    color: var(--parkingpro-customer-portal-color-primary-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.parkingpro-customer-portal a:hover {
    color: var(--parkingpro-customer-portal-color-primary-700);
}

.parkingpro-customer-portal h1,
.parkingpro-customer-portal h2,
.parkingpro-customer-portal h3,
.parkingpro-customer-portal h4 {
    margin: 0 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--parkingpro-customer-portal-color-gray-900);
}

.parkingpro-customer-portal h1 { font-size: var(--parkingpro-customer-portal-font-size-2xl); }
.parkingpro-customer-portal h2 { font-size: var(--parkingpro-customer-portal-font-size-xl); }
.parkingpro-customer-portal h3 { font-size: var(--parkingpro-customer-portal-font-size-lg); }
.parkingpro-customer-portal h4 { font-size: var(--parkingpro-customer-portal-font-size-base); }

.parkingpro-customer-portal p {
    margin: 0 0 1em;
}

.parkingpro-customer-portal ul {
    margin: 0;
    padding: 0 0 0 1.5em;
}

/* --------------------------------------------------------------------------
   3. LAYOUT - SIDEBAR
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--parkingpro-customer-portal-sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--parkingpro-customer-portal-color-gray-200);
    display: flex;
    flex-direction: column;
    z-index: 40;
    overflow-y: auto;
}

.parkingpro-customer-portal-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--parkingpro-customer-portal-color-gray-100);
}

.parkingpro-customer-portal-sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--parkingpro-customer-portal-color-primary-500), var(--parkingpro-customer-portal-color-primary-700));
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.parkingpro-customer-portal-sidebar-logo-img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.parkingpro-customer-portal-sidebar-logo-text {
    font-size: var(--parkingpro-customer-portal-font-size-xl);
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900);
}

.parkingpro-customer-portal-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
}

.parkingpro-customer-portal-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    color: var(--parkingpro-customer-portal-color-gray-600);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.parkingpro-customer-portal-sidebar-nav-item:hover {
    background-color: var(--parkingpro-customer-portal-color-gray-50);
    color: var(--parkingpro-customer-portal-color-gray-800);
}

.parkingpro-customer-portal-sidebar-nav-item--active {
    background-color: var(--parkingpro-customer-portal-color-primary-50);
    color: var(--parkingpro-customer-portal-color-primary-700);
    font-weight: 600;
}

.parkingpro-customer-portal-sidebar-nav-item--active:hover {
    background-color: var(--parkingpro-customer-portal-color-primary-100);
    color: var(--parkingpro-customer-portal-color-primary-700);
}

.parkingpro-customer-portal-sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.parkingpro-customer-portal-sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--parkingpro-customer-portal-radius-full);
    background-color: var(--parkingpro-customer-portal-color-primary-100);
    color: var(--parkingpro-customer-portal-color-primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT - MAIN CONTENT
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-main {
    min-height: 100vh;
}

.parkingpro-customer-portal-body--has-sidebar .parkingpro-customer-portal-main {
    margin-left: var(--parkingpro-customer-portal-sidebar-width);
}

.parkingpro-customer-portal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.parkingpro-customer-portal-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.parkingpro-customer-portal-page-header h1 {
    margin: 0;
}

/* Public layout (login/register) */
.parkingpro-customer-portal-body--public .parkingpro-customer-portal-main {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.parkingpro-customer-portal-body--public .parkingpro-customer-portal-content {
    padding: 0;
}

.parkingpro-customer-portal-auth-card {
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    box-shadow: var(--parkingpro-customer-portal-shadow-lg);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    padding: 40px;
    width: 100%;
    max-width: 448px;
}

/* Hamburger */
.parkingpro-customer-portal-hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    background: #ffffff;
    border: 1px solid var(--parkingpro-customer-portal-color-gray-200);
    box-shadow: var(--parkingpro-customer-portal-shadow-md);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.parkingpro-customer-portal-hamburger svg {
    width: 24px;
    height: 24px;
    color: var(--parkingpro-customer-portal-color-gray-600);
}

/* Overlay */
.parkingpro-customer-portal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 39;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.parkingpro-customer-portal-overlay--active {
    display: block;
    opacity: 1;
}

/* Back link */
.parkingpro-customer-portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin-bottom: 16px;
    text-decoration: none;
}

.parkingpro-customer-portal-back-link:hover {
    color: var(--parkingpro-customer-portal-color-primary-600);
}

.parkingpro-customer-portal-back-link svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   5. CARDS
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-card {
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    box-shadow: var(--parkingpro-customer-portal-shadow-sm);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-100);
}

.parkingpro-customer-portal-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--parkingpro-customer-portal-color-gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.parkingpro-customer-portal-card-header h2,
.parkingpro-customer-portal-card-header h3 {
    margin: 0;
}

.parkingpro-customer-portal-card-body {
    padding: 24px;
}

.parkingpro-customer-portal-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--parkingpro-customer-portal-color-gray-50);
}

.parkingpro-customer-portal-card--hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.parkingpro-customer-portal-card--hover:hover {
    box-shadow: var(--parkingpro-customer-portal-shadow-md);
    transform: translateY(-2px);
}

.parkingpro-customer-portal-stat-card {
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    box-shadow: var(--parkingpro-customer-portal-shadow-sm);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    padding: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.parkingpro-customer-portal-stat-card:hover {
    box-shadow: 0 10px 30px -5px rgba(20, 184, 166, 0.15), 0 4px 10px -6px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.parkingpro-customer-portal-stat-card-label {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin-bottom: 4px;
}

.parkingpro-customer-portal-stat-card-value {
    font-size: var(--parkingpro-customer-portal-font-size-2xl);
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900);
}

/* --------------------------------------------------------------------------
   6. GRID HELPERS
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-grid {
    display: grid;
}

.parkingpro-customer-portal-grid--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.parkingpro-customer-portal-grid--3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.parkingpro-customer-portal-grid--stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.parkingpro-customer-portal-grid--form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.parkingpro-customer-portal-grid--detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.parkingpro-customer-portal-grid--full {
    grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    font-family: var(--parkingpro-customer-portal-font-family);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.parkingpro-customer-portal-btn--primary,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--primary {
    background-color: var(--parkingpro-customer-portal-color-primary-600);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.parkingpro-customer-portal-btn--primary:hover,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--primary:hover {
    background-color: var(--parkingpro-customer-portal-color-primary-700);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.3);
}

.parkingpro-customer-portal-btn--primary:focus {
    outline: none;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2), 0 0 0 2px #fff, 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.parkingpro-customer-portal-btn--secondary,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--secondary {
    background-color: var(--parkingpro-customer-portal-color-gray-100);
    color: var(--parkingpro-customer-portal-color-gray-700);
}

.parkingpro-customer-portal-btn--secondary:hover,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--secondary:hover {
    background-color: var(--parkingpro-customer-portal-color-gray-200);
    color: var(--parkingpro-customer-portal-color-gray-800);
}

.parkingpro-customer-portal-btn--link,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--link {
    background: transparent;
    color: var(--parkingpro-customer-portal-color-primary-600);
    padding: 10px 8px;
}

.parkingpro-customer-portal-btn--link:hover,
.parkingpro-customer-portal a.parkingpro-customer-portal-btn--link:hover {
    color: var(--parkingpro-customer-portal-color-primary-700);
    text-decoration: underline;
}

.parkingpro-customer-portal-btn--danger {
    background-color: var(--parkingpro-customer-portal-color-error-600);
    color: #ffffff;
}

.parkingpro-customer-portal-btn--danger:hover {
    background-color: #b91c1c;
    color: #ffffff;
}

.parkingpro-customer-portal-btn--icon {
    padding: 8px;
    border-radius: var(--parkingpro-customer-portal-radius-md);
    background: transparent;
    color: var(--parkingpro-customer-portal-color-gray-500);
}

.parkingpro-customer-portal-btn--icon:hover {
    background-color: var(--parkingpro-customer-portal-color-primary-50);
    color: var(--parkingpro-customer-portal-color-primary-600);
}

.parkingpro-customer-portal-btn--sm {
    padding: 6px 12px;
    font-size: var(--parkingpro-customer-portal-font-size-xs);
}

.parkingpro-customer-portal-btn--full {
    width: 100%;
}

/* Button loading spinner */
.parkingpro-customer-portal-btn--loading {
    position: relative;
}

.parkingpro-customer-portal-btn--loading-active {
    color: transparent !important;
    pointer-events: none;
}

.parkingpro-customer-portal-btn--loading-active::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: ppcp-spinner 0.6s linear infinite;
}

.parkingpro-customer-portal-btn--primary.parkingpro-customer-portal-btn--loading-active::after {
    border-top-color: #ffffff;
    border-right-color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.parkingpro-customer-portal-form-label,
.parkingpro-customer-portal .parkingpro-customer-portal-form-group > label {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-700);
    margin-bottom: 6px;
}

.parkingpro-customer-portal-form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--parkingpro-customer-portal-color-gray-300);
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    font-family: var(--parkingpro-customer-portal-font-family);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    line-height: 1.5;
    color: var(--parkingpro-customer-portal-color-gray-800);
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.parkingpro-customer-portal-form-control:focus {
    border-color: var(--parkingpro-customer-portal-color-primary-500);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.parkingpro-customer-portal-form-control::placeholder {
    color: var(--parkingpro-customer-portal-color-gray-400);
}

.parkingpro-customer-portal-form-control--icon {
    padding-left: 44px;
}

.parkingpro-customer-portal-form-icon-wrapper {
    position: relative;
}

.parkingpro-customer-portal-form-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.parkingpro-customer-portal-form-icon svg {
    width: 20px;
    height: 20px;
    color: var(--parkingpro-customer-portal-color-gray-400);
}

textarea.parkingpro-customer-portal-form-control {
    resize: vertical;
    min-height: 80px;
}

select.parkingpro-customer-portal-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.parkingpro-customer-portal-form-error {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    color: var(--parkingpro-customer-portal-color-error-600);
    margin-top: 4px;
}

.parkingpro-customer-portal-form-group--error .parkingpro-customer-portal-form-control {
    border-color: var(--parkingpro-customer-portal-color-error-600);
}

/* Radio & Checkbox */
.parkingpro-customer-portal-form-radio,
.parkingpro-customer-portal-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.parkingpro-customer-portal-form-radio input[type="radio"],
.parkingpro-customer-portal-form-checkbox input[type="checkbox"] {
    accent-color: var(--parkingpro-customer-portal-color-primary-600);
    margin-top: 3px;
}

/* Display-only field (basic-account-info) */
.parkingpro-customer-portal-form-group--readonly {
    margin-bottom: 16px;
}

.parkingpro-customer-portal-form-group--readonly > label {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin-bottom: 2px;
}

.parkingpro-customer-portal-form-value {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-800);
}

/* --------------------------------------------------------------------------
   9. ALERTS
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-alert {
    padding: 14px 16px;
    border-radius: 0 var(--parkingpro-customer-portal-radius-md) var(--parkingpro-customer-portal-radius-md) 0;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.parkingpro-customer-portal-alert--success {
    background-color: var(--parkingpro-customer-portal-color-success-50);
    color: var(--parkingpro-customer-portal-color-success-700);
    border-left-color: var(--parkingpro-customer-portal-color-success-600);
}

.parkingpro-customer-portal-alert--error {
    background-color: var(--parkingpro-customer-portal-color-error-50);
    color: var(--parkingpro-customer-portal-color-error-600);
    border-left-color: var(--parkingpro-customer-portal-color-error-600);
}

.parkingpro-customer-portal-alert--warning {
    background-color: var(--parkingpro-customer-portal-color-warning-50);
    color: var(--parkingpro-customer-portal-color-warning-700);
    border-left-color: var(--parkingpro-customer-portal-color-warning-600);
}

.parkingpro-customer-portal-alert--info {
    background-color: var(--parkingpro-customer-portal-color-info-50);
    color: var(--parkingpro-customer-portal-color-info-700);
    border-left-color: var(--parkingpro-customer-portal-color-info-700);
}

/* --------------------------------------------------------------------------
   10. TABLES
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-table {
    width: 100%;
    border-collapse: collapse;
}

.parkingpro-customer-portal-table th {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--parkingpro-customer-portal-color-gray-500);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--parkingpro-customer-portal-color-gray-200);
    text-align: left;
}

.parkingpro-customer-portal-table td {
    padding: 16px;
    border-bottom: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    vertical-align: top;
}

.parkingpro-customer-portal-table tr:last-child td {
    border-bottom: none;
}

.parkingpro-customer-portal-table tr:hover td {
    background-color: rgba(249, 250, 251, 0.5);
}

.parkingpro-customer-portal-table tfoot td,
.parkingpro-customer-portal-table tfoot th {
    font-weight: 600;
    border-top: 2px solid var(--parkingpro-customer-portal-color-gray-200);
    border-bottom: none;
}

.parkingpro-customer-portal-table--borderless td,
.parkingpro-customer-portal-table--borderless th {
    border: none;
}

.parkingpro-customer-portal-table--borderless tr:hover td {
    background: none;
}

.parkingpro-customer-portal-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   11. BADGES
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--parkingpro-customer-portal-radius-full);
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    font-weight: 600;
    line-height: 1.4;
}

.parkingpro-customer-portal-badge--success {
    background-color: var(--parkingpro-customer-portal-color-success-100);
    color: var(--parkingpro-customer-portal-color-success-700);
}

.parkingpro-customer-portal-badge--warning {
    background-color: var(--parkingpro-customer-portal-color-warning-100);
    color: var(--parkingpro-customer-portal-color-warning-700);
}

.parkingpro-customer-portal-badge--error {
    background-color: var(--parkingpro-customer-portal-color-error-100);
    color: var(--parkingpro-customer-portal-color-error-600);
}

.parkingpro-customer-portal-badge--neutral {
    background-color: var(--parkingpro-customer-portal-color-gray-100);
    color: var(--parkingpro-customer-portal-color-gray-600);
}

.parkingpro-customer-portal-badge--info {
    background-color: var(--parkingpro-customer-portal-color-info-100);
    color: var(--parkingpro-customer-portal-color-info-700);
}

.parkingpro-customer-portal-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--parkingpro-customer-portal-radius-full);
    display: inline-block;
}

.parkingpro-customer-portal-badge--success .parkingpro-customer-portal-badge-dot { background-color: var(--parkingpro-customer-portal-color-success-600); }
.parkingpro-customer-portal-badge--warning .parkingpro-customer-portal-badge-dot { background-color: var(--parkingpro-customer-portal-color-warning-600); }
.parkingpro-customer-portal-badge--error .parkingpro-customer-portal-badge-dot { background-color: var(--parkingpro-customer-portal-color-error-600); }
.parkingpro-customer-portal-badge--neutral .parkingpro-customer-portal-badge-dot { background-color: var(--parkingpro-customer-portal-color-gray-400); }
.parkingpro-customer-portal-badge--info .parkingpro-customer-portal-badge-dot { background-color: var(--parkingpro-customer-portal-color-info-700); }

/* --------------------------------------------------------------------------
   12. PAGINATION
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.parkingpro-customer-portal-pagination ul,
.parkingpro-customer-portal-pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parkingpro-customer-portal-pagination ul {
    display: flex;
    gap: 4px;
}

.parkingpro-customer-portal-pagination li {
    display: inline-block;
}

.parkingpro-customer-portal-pagination a,
.parkingpro-customer-portal-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 4px 10px;
    border-radius: var(--parkingpro-customer-portal-radius-md);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-600);
    text-decoration: none;
    transition: all 0.15s ease;
}

.parkingpro-customer-portal-pagination a:hover {
    background-color: var(--parkingpro-customer-portal-color-gray-100);
    color: var(--parkingpro-customer-portal-color-gray-800);
}

.parkingpro-customer-portal-pagination li.active a,
.parkingpro-customer-portal-pagination li.active span {
    background-color: var(--parkingpro-customer-portal-color-primary-600);
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. LOADING STATES
   -------------------------------------------------------------------------- */
@keyframes ppcp-spinner {
    to { transform: rotate(360deg); }
}

@keyframes ppcp-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.parkingpro-customer-portal-loading-shimmer {
    background: linear-gradient(90deg, var(--parkingpro-customer-portal-color-gray-100) 25%, var(--parkingpro-customer-portal-color-gray-200) 50%, var(--parkingpro-customer-portal-color-gray-100) 75%);
    background-size: 200px 100%;
    animation: ppcp-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--parkingpro-customer-portal-radius-md);
    height: 1em;
}

.parkingpro-customer-portal-section-spinner {
    position: relative;
    transition: opacity 0.2s ease;
}

.parkingpro-customer-portal-section-spinner--active {
    cursor: progress;
    opacity: 0.5;
}

.parkingpro-customer-portal-section-spinner--active::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    border: 4px solid transparent;
    border-top-color: var(--parkingpro-customer-portal-color-primary-600);
    border-radius: 50%;
    animation: ppcp-spinner 0.8s linear infinite;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   14. SECTIONS (form sections in reservation edit)
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-section {
    margin-bottom: 24px;
}

.parkingpro-customer-portal-section-title {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--parkingpro-customer-portal-color-gray-100);
}

.parkingpro-customer-portal-section-title h2 {
    margin: 0;
    font-size: var(--parkingpro-customer-portal-font-size-lg);
}

.parkingpro-customer-portal-section-body {
    /* Container for section content */
}

/* --------------------------------------------------------------------------
   15. SPECIFIC COMPONENTS
   -------------------------------------------------------------------------- */

/* Page subtitle */
.parkingpro-customer-portal-page-subtitle {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin: 4px 0 0;
}

/* Teal text link */
.parkingpro-customer-portal-link-teal {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-primary-600);
    text-decoration: none;
}

.parkingpro-customer-portal-link-teal:hover {
    color: var(--parkingpro-customer-portal-color-primary-800);
    text-decoration: underline;
}

/* Empty state text */
.parkingpro-customer-portal-empty-state {
    text-align: center;
    color: var(--parkingpro-customer-portal-color-gray-500);
    padding: 48px 0;
}

/* ---- Shared list rows (card-per-row with grid alignment) ---- */
.parkingpro-customer-portal-list-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parkingpro-customer-portal-list-row {
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    box-shadow: var(--parkingpro-customer-portal-shadow-sm);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-200);
    padding: 14px 24px;
    display: grid;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

.parkingpro-customer-portal-list-row:hover {
    box-shadow: var(--parkingpro-customer-portal-shadow-md);
}

/* Grid columns per row type */
.parkingpro-customer-portal-list-row--reservation {
    grid-template-columns: 140px 1fr 130px 24px 130px auto auto;
}

.parkingpro-customer-portal-list-row--invoice {
    grid-template-columns: 3fr 3fr 2fr 2fr 2fr;
}

/* Column labels */
.parkingpro-customer-portal-list-label {
    display: block;
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-400);
    margin-bottom: 2px;
}

/* Column values */
.parkingpro-customer-portal-list-value {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-700);
    margin: 0 !important;
    font-weight: 500;
}

.parkingpro-customer-portal-list-value--bold {
    font-weight: 600;
    color: var(--parkingpro-customer-portal-color-gray-900);
}

/* Date with icon */
.parkingpro-customer-portal-list-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.parkingpro-customer-portal-list-date svg {
    color: var(--parkingpro-customer-portal-color-primary-500);
    flex-shrink: 0;
}

/* Arrow column (reservations) */
.parkingpro-customer-portal-list-col--arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parkingpro-customer-portal-color-gray-300);
    align-self: end;
    padding-bottom: 2px;
}

/* Status column */
.parkingpro-customer-portal-list-col--status {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Actions column */
.parkingpro-customer-portal-list-col--actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* QR code button */
.parkingpro-customer-portal-btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--parkingpro-customer-portal-color-primary-50);
    color: var(--parkingpro-customer-portal-color-primary-700);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.parkingpro-customer-portal-btn-qr:hover {
    background-color: var(--parkingpro-customer-portal-color-primary-100);
}

.parkingpro-customer-portal-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--parkingpro-customer-portal-color-gray-400);
    transition: color 0.15s ease;
}

.parkingpro-customer-portal-btn-download:hover {
    color: var(--parkingpro-customer-portal-color-primary-600);
}

/* ---- Invoice summary card ---- */
.parkingpro-customer-portal-invoice-summary {
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-200);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.parkingpro-customer-portal-invoice-summary-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.parkingpro-customer-portal-invoice-summary-icon {
    width: 40px;
    height: 40px;
    background-color: var(--parkingpro-customer-portal-color-warning-100);
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parkingpro-customer-portal-invoice-summary-icon svg {
    color: var(--parkingpro-customer-portal-color-warning-600);
}

.parkingpro-customer-portal-invoice-summary-label {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    font-weight: 500;
    margin: 0 0 2px !important;
}

.parkingpro-customer-portal-invoice-summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900);
    margin: 0 !important;
}

.parkingpro-customer-portal-invoice-summary-right {
    text-align: right;
}

.parkingpro-customer-portal-invoice-summary-right p {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin: 0 !important;
}

.parkingpro-customer-portal-invoice-summary-total {
    color: var(--parkingpro-customer-portal-color-gray-400) !important;
}

/* (Invoice table styles removed — invoices now use shared list-row cards) */

/* Cost overview */
.parkingpro-customer-portal-cost-overview {
    width: 100%;
    border-collapse: collapse;
}

.parkingpro-customer-portal-cost-overview td {
    padding: 8px 0;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    border: none;
}

.parkingpro-customer-portal-cost-overview tfoot td {
    font-weight: 600;
    border-top: 2px solid var(--parkingpro-customer-portal-color-gray-200);
    padding-top: 12px;
}

/* Big box list (location/option selection) */
.parkingpro-customer-portal-big-box-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.parkingpro-customer-portal-big-box-list-item {
    position: relative;
}

.parkingpro-customer-portal-big-box-list-item input {
    opacity: 0;
    width: 1px;
    height: 1px;
    position: absolute;
}

.parkingpro-customer-portal-big-box-list-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    min-height: 80px;
    background: #ffffff;
    border: 2px solid var(--parkingpro-customer-portal-color-gray-200);
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    transition: all 0.15s ease;
}

.parkingpro-customer-portal-big-box-list-item:hover label {
    border-color: var(--parkingpro-customer-portal-color-primary-500);
    box-shadow: var(--parkingpro-customer-portal-shadow-sm);
}

.parkingpro-customer-portal-big-box-list-item label.active {
    background: var(--parkingpro-customer-portal-color-primary-50);
    border-color: var(--parkingpro-customer-portal-color-primary-600);
    color: var(--parkingpro-customer-portal-color-primary-700);
}

.parkingpro-customer-portal-big-box-list-item .check {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: var(--parkingpro-customer-portal-radius-full);
    background-color: var(--parkingpro-customer-portal-color-primary-600);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
}

.parkingpro-customer-portal-big-box-list-item label.active .check {
    display: block;
}

/* Location price (base template) */
.parkingpro-customer-portal-location-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
}
.parkingpro-customer-portal-location-price__label {
    font-size: 10px;
    font-weight: 600;
    color: var(--parkingpro-customer-portal-color-gray-500, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.parkingpro-customer-portal-location-price__amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900, #111827);
}

/* Generic price loading state (shared between templates) */
.parkingpro-price-loading {
    opacity: 0.35;
}

/* Date time overlay */
.parkingpro-customer-portal-datetime-overlay {
    position: absolute;
    top: 75px;
    padding: 10px 20px 20px 20px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    background-color: #ffffff;
    box-shadow: var(--parkingpro-customer-portal-shadow-lg);
    z-index: 2147483551;
    display: none;
    width: 100vw;
    max-width: 360px;
    left: 50%;
    transform: translateX(-50%);
}

.parkingpro-customer-portal-datetime-overlay--visible {
    display: block;
}

.parkingpro-customer-portal-datetime-overlay::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--parkingpro-customer-portal-color-gray-200);
    position: absolute;
    top: -12px;
    left: calc(50% - 12px);
}

.parkingpro-customer-portal-datetime-overlay::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ffffff;
    position: absolute;
    top: -10px;
    left: calc(50% - 12px);
}

.parkingpro-customer-portal-datetime-overlay-tabs {
    display: flex;
    width: 100%;
    justify-content: center;
}

.parkingpro-customer-portal-datetime-overlay-tabs-tab {
    padding: 7px 20px;
    cursor: pointer;
    opacity: 0.6;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
}

.parkingpro-customer-portal-datetime-overlay-tabs-tab--active {
    font-weight: 600;
    text-decoration: underline;
    opacity: 1;
}

.parkingpro-customer-portal-datetime-overlay-content {
    display: none;
}

.parkingpro-customer-portal-datetime-overlay-content--visible {
    display: block;
}

/* Flatpickr theming */
.parkingpro-customer-portal .flatpickr-day.selected,
.parkingpro-customer-portal .flatpickr-day.startRange,
.parkingpro-customer-portal .flatpickr-day.endRange,
.parkingpro-customer-portal .flatpickr-day.selected.inRange,
.parkingpro-customer-portal .flatpickr-day.startRange.inRange,
.parkingpro-customer-portal .flatpickr-day.endRange.inRange,
.parkingpro-customer-portal .flatpickr-day.selected:focus,
.parkingpro-customer-portal .flatpickr-day.startRange:focus,
.parkingpro-customer-portal .flatpickr-day.endRange:focus,
.parkingpro-customer-portal .flatpickr-day.selected:hover,
.parkingpro-customer-portal .flatpickr-day.startRange:hover,
.parkingpro-customer-portal .flatpickr-day.endRange:hover,
.parkingpro-customer-portal .flatpickr-day.selected.prevMonthDay,
.parkingpro-customer-portal .flatpickr-day.startRange.prevMonthDay,
.parkingpro-customer-portal .flatpickr-day.endRange.prevMonthDay,
.parkingpro-customer-portal .flatpickr-day.selected.nextMonthDay,
.parkingpro-customer-portal .flatpickr-day.startRange.nextMonthDay,
.parkingpro-customer-portal .flatpickr-day.endRange.nextMonthDay {
    background: var(--parkingpro-customer-portal-color-primary-600) !important;
    border-color: var(--parkingpro-customer-portal-color-primary-600) !important;
}

.parkingpro-customer-portal .flatpickr-day.inRange {
    background: var(--parkingpro-customer-portal-color-primary-100) !important;
    border-color: var(--parkingpro-customer-portal-color-primary-100) !important;
    box-shadow: -5px 0 0 var(--parkingpro-customer-portal-color-primary-100), 5px 0 0 var(--parkingpro-customer-portal-color-primary-100) !important;
}

.parkingpro-customer-portal .flatpickr-day.selected.startRange,
.parkingpro-customer-portal .flatpickr-day.startRange.startRange,
.parkingpro-customer-portal .flatpickr-day.endRange.startRange {
    box-shadow: 5px 0 0 var(--parkingpro-customer-portal-color-primary-100) !important;
}

.parkingpro-customer-portal .flatpickr-day {
    height: 36px !important;
    line-height: 36px !important;
}

.parkingpro-customer-portal .flatpickr-time input.flatpickr-hour {
    font-weight: normal;
}

.parkingpro-customer-portal .flatpickr-calendar select {
    background-image: none !important;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime {
    width: 100%;
    height: 130px;
    background: transparent !important;
    box-shadow: none;
    border: none;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime .flatpickr-time {
    max-height: 125px;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper,
.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime input {
    height: 120px;
    background-color: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    font-size: 40px !important;
    overflow: hidden;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime .numInputWrapper span {
    width: 100%;
    opacity: 1;
    border: none;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar.hasTime .numInputWrapper span::after {
    right: 40%;
    top: 45% !important;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar::before,
.parkingpro-customer-portal-datetime-overlay-content .flatpickr-calendar::after {
    display: none !important;
}

.parkingpro-customer-portal-datetime-overlay-content .flatpickr-current-month .flatpickr-monthDropdown-months {
    display: inline-block !important;
}

/* Applied options list */
.parkingpro-customer-portal-applied-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parkingpro-customer-portal-applied-options li {
    padding: 4px 0;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
}

/* Price calculation table */
.parkingpro-customer-portal .parkingpro-customer-portal-table.parkingpro-price-calculation td {
    padding: 8px 0;
    border: none;
}

.parkingpro-customer-portal .parkingpro-customer-portal-table.parkingpro-price-calculation tfoot td {
    font-weight: 600;
    border-top: 2px solid var(--parkingpro-customer-portal-color-gray-200);
    padding-top: 12px;
}

/* Update cars - remove car link */
.parkingpro-customer-portal .remove-car {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: var(--parkingpro-customer-portal-color-error-600);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
}

.parkingpro-customer-portal .remove-car:hover {
    color: #b91c1c;
}

/* Add car button */
.parkingpro-customer-portal .add-car {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   16. AUTH CARD DETAILS
   -------------------------------------------------------------------------- */

/* Auth card heading + subtitle */
.parkingpro-customer-portal-auth-card h1 {
    font-size: var(--parkingpro-customer-portal-font-size-xl);
    font-weight: 600;
    color: var(--parkingpro-customer-portal-color-primary-600);
    margin: 0 0 4px;
}

.parkingpro-customer-portal-auth-card-subtitle {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin: 0 0 24px;
}

/* Login form forgot password link */
.parkingpro-customer-portal-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.parkingpro-customer-portal-forgot-password a {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-primary-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.parkingpro-customer-portal-forgot-password a:hover {
    color: var(--parkingpro-customer-portal-color-primary-700);
}

/* Login form register footer */
.parkingpro-customer-portal-auth-footer {
    margin-top: 24px;
    text-align: center;
}

.parkingpro-customer-portal-auth-footer p {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin: 0;
}

.parkingpro-customer-portal-auth-footer a {
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-primary-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.parkingpro-customer-portal-auth-footer a:hover {
    color: var(--parkingpro-customer-portal-color-primary-700);
}

/* --------------------------------------------------------------------------
   Login two-panel layout
   -------------------------------------------------------------------------- */

.parkingpro-customer-portal-login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    box-shadow: var(--parkingpro-customer-portal-shadow-lg);
    border: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    overflow: hidden;
}

/* Welcome panel (left) */
.parkingpro-customer-portal-login-welcome {
    position: relative;
    background: var(--parkingpro-customer-portal-color-primary-50);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Back to home link */
.parkingpro-customer-portal-login-back {
    position: absolute;
    top: 20px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-primary-700);
    text-decoration: none;
    transition: color 0.15s ease;
}

.parkingpro-customer-portal-login-back:hover {
    color: var(--parkingpro-customer-portal-color-primary-800);
}

.parkingpro-customer-portal-login-back svg {
    width: 16px;
    height: 16px;
}

.parkingpro-customer-portal-login-welcome h2 {
    font-size: var(--parkingpro-customer-portal-font-size-2xl);
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-primary-600);
    margin: 0 0 12px;
    line-height: 1.3;
}

.parkingpro-customer-portal-login-welcome-desc {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-600);
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Feature checklist */
ul.parkingpro-customer-portal-login-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parkingpro-customer-portal-login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-700);
    line-height: 1.4;
}

.parkingpro-customer-portal-login-features-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--parkingpro-customer-portal-color-primary-600);
}

/* Register link at bottom of welcome panel */
.parkingpro-customer-portal-login-welcome-register {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
    margin: 0;
}

.parkingpro-customer-portal-login-welcome-register a {
    font-weight: 600;
    color: var(--parkingpro-customer-portal-color-primary-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.parkingpro-customer-portal-login-welcome-register a:hover {
    color: var(--parkingpro-customer-portal-color-primary-700);
}

/* Auth card inside login layout: remove standalone card styling */
.parkingpro-customer-portal-login-layout .parkingpro-customer-portal-auth-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
}

/* Public logo: flexbox column with "Pro" highlight and subtitle */
.parkingpro-customer-portal-public-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.parkingpro-customer-portal-public-logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.parkingpro-customer-portal-public-logo-brand span {
    font-size: var(--parkingpro-customer-portal-font-size-2xl);
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900);
}

.parkingpro-customer-portal-public-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.parkingpro-customer-portal-public-logo-brand .parkingpro-customer-portal-public-logo-highlight {
    color: var(--parkingpro-customer-portal-color-primary-600);
}

.parkingpro-customer-portal-public-logo-subtitle {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    color: var(--parkingpro-customer-portal-color-gray-500);
}

/* Sidebar logo subtitle */
.parkingpro-customer-portal-sidebar-logo-subtitle {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    color: var(--parkingpro-customer-portal-color-gray-400);
    line-height: 1;
}

.parkingpro-customer-portal-sidebar-header a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-decoration: none;
}

.parkingpro-customer-portal-sidebar-header a > .parkingpro-customer-portal-sidebar-logo-subtitle {
    width: 100%;
    margin-top: -4px;
    text-align: center;
}

.parkingpro-customer-portal-sidebar-logo-info {
    display: flex;
    flex-direction: column;
}

/* Sidebar nav separator */
.parkingpro-customer-portal-sidebar-nav-separator {
    border: none;
    border-top: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    margin: 8px 16px;
}

/* Sidebar nav CTA link */
.parkingpro-customer-portal-sidebar-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    color: var(--parkingpro-customer-portal-color-gray-600);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.parkingpro-customer-portal-sidebar-nav-cta:hover {
    background-color: var(--parkingpro-customer-portal-color-gray-50);
    color: var(--parkingpro-customer-portal-color-gray-800);
}

.parkingpro-customer-portal-sidebar-nav-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sidebar footer: logout as nav-item style */
.parkingpro-customer-portal-sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parkingpro-customer-portal-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    min-width: 0;
}

.parkingpro-customer-portal-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.parkingpro-customer-portal-sidebar-user-name {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parkingpro-customer-portal-sidebar-user-email {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    color: var(--parkingpro-customer-portal-color-gray-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parkingpro-customer-portal-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    color: var(--parkingpro-customer-portal-color-gray-500);
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.parkingpro-customer-portal-sidebar-logout:hover {
    background-color: var(--parkingpro-customer-portal-color-error-50);
    color: var(--parkingpro-customer-portal-color-error-600);
}

.parkingpro-customer-portal-sidebar-logout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   DASHBOARD
   -------------------------------------------------------------------------- */

/* Stat card internal layout */
.parkingpro-customer-portal-stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.parkingpro-customer-portal-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--parkingpro-customer-portal-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parkingpro-customer-portal-stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.parkingpro-customer-portal-stat-card-icon--teal {
    background-color: var(--parkingpro-customer-portal-color-primary-50);
    color: var(--parkingpro-customer-portal-color-primary-600);
}

.parkingpro-customer-portal-stat-card-icon--blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.parkingpro-customer-portal-stat-card-icon--amber {
    background-color: #fffbeb;
    color: #f59e0b;
}

.parkingpro-customer-portal-stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--parkingpro-customer-portal-color-gray-900);
    margin-top: 8px;
}

.parkingpro-customer-portal-stat-card-footer {
    margin-top: 16px;
}

.parkingpro-customer-portal-stat-card-hint {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-400);
}

.parkingpro-customer-portal-stat-card-hint--teal {
    color: var(--parkingpro-customer-portal-color-primary-500);
}

.parkingpro-customer-portal-stat-card-hint--amber {
    color: #f59e0b;
}

/* Dashboard reservation card */
.parkingpro-customer-portal-dashboard-reservation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.parkingpro-customer-portal-dashboard-reservation-icon {
    width: 40px;
    height: 40px;
    background-color: var(--parkingpro-customer-portal-color-primary-50);
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parkingpro-customer-portal-color-primary-600);
    font-weight: 700;
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    flex-shrink: 0;
}

.parkingpro-customer-portal-dashboard-reservation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.parkingpro-customer-portal-dashboard-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.parkingpro-customer-portal-dashboard-detail-icon {
    width: 32px;
    height: 32px;
    background-color: var(--parkingpro-customer-portal-color-gray-50);
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parkingpro-customer-portal-color-gray-400);
    flex-shrink: 0;
}

.parkingpro-customer-portal-dashboard-detail-label {
    font-size: var(--parkingpro-customer-portal-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--parkingpro-customer-portal-color-gray-400);
}

.parkingpro-customer-portal-dashboard-detail-value {
    font-size: var(--parkingpro-customer-portal-font-size-sm);
    font-weight: 500;
    color: var(--parkingpro-customer-portal-color-gray-700);
}

.parkingpro-customer-portal-dashboard-actions {
    display: flex;
    gap: 12px;
}

/* Dashboard list (cars / invoices) */
.parkingpro-customer-portal-dashboard-list {
    border-top: 1px solid var(--parkingpro-customer-portal-color-gray-50);
}

.parkingpro-customer-portal-dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--parkingpro-customer-portal-color-gray-50);
}

.parkingpro-customer-portal-dashboard-list-item:last-child {
    border-bottom: none;
}

.parkingpro-customer-portal-dashboard-list-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--parkingpro-customer-portal-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parkingpro-customer-portal-dashboard-list-icon--blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.parkingpro-customer-portal-dashboard-list-icon--green {
    background-color: var(--parkingpro-customer-portal-color-success-50);
    color: var(--parkingpro-customer-portal-color-success-600);
}

.parkingpro-customer-portal-dashboard-list-icon--amber {
    background-color: #fffbeb;
    color: #f59e0b;
}

.parkingpro-customer-portal-dashboard-list-icon--red {
    background-color: var(--parkingpro-customer-portal-color-error-50);
    color: var(--parkingpro-customer-portal-color-error-600);
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.parkingpro-customer-portal-text-center { text-align: center; }
.parkingpro-customer-portal-text-right  { text-align: right; }
.parkingpro-customer-portal-text-muted  { color: var(--parkingpro-customer-portal-color-gray-500); }
.parkingpro-customer-portal-mb-0        { margin-bottom: 0 !important; }
.parkingpro-customer-portal-mb-2        { margin-bottom: 0.5rem; }
.parkingpro-customer-portal-mt-4        { margin-top: 1rem; }
.parkingpro-customer-portal-hidden      { display: none !important; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet: sidebar becomes overlay */
@media (max-width: 1023px) {
    .parkingpro-customer-portal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        position: fixed;
        z-index: 50;
    }

    .parkingpro-customer-portal-sidebar--open {
        transform: translateX(0);
    }

    .parkingpro-customer-portal-body--has-sidebar .parkingpro-customer-portal-main {
        margin-left: 0;
    }

    .parkingpro-customer-portal-hamburger {
        display: flex;
    }

    .parkingpro-customer-portal-content {
        padding: 32px 24px;
        padding-top: 72px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .parkingpro-customer-portal-grid--2col,
    .parkingpro-customer-portal-grid--3col,
    .parkingpro-customer-portal-grid--stats {
        grid-template-columns: 1fr;
    }

    .parkingpro-customer-portal-grid--detail {
        grid-template-columns: 1fr;
    }

    .parkingpro-customer-portal-grid--form {
        grid-template-columns: 1fr;
    }

    .parkingpro-customer-portal-content {
        padding: 16px;
        padding-top: 72px;
    }

    .parkingpro-customer-portal-page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .parkingpro-customer-portal-auth-card {
        padding: 24px;
    }

    /* Login two-panel: stack vertically */
    .parkingpro-customer-portal-login-layout {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .parkingpro-customer-portal-login-welcome {
        padding: 32px 24px;
    }

    /* List rows: stack on mobile */
    .parkingpro-customer-portal-list-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
        padding: 16px;
    }

    .parkingpro-customer-portal-list-col--arrow {
        display: none;
    }

    .parkingpro-customer-portal-list-col--actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--parkingpro-customer-portal-color-gray-100);
    }

    /* Invoice summary: stack on mobile */
    .parkingpro-customer-portal-invoice-summary {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .parkingpro-customer-portal-invoice-summary-right {
        text-align: left;
    }

    .parkingpro-customer-portal-card-body {
        padding: 16px;
    }

    .parkingpro-customer-portal-card-header {
        padding: 12px 16px;
    }

    /* Responsive table - card layout */
    .parkingpro-customer-portal-table-responsive .parkingpro-customer-portal-table thead {
        display: none;
    }

    .parkingpro-customer-portal-table-responsive .parkingpro-customer-portal-table tr {
        display: block;
        margin-bottom: 16px;
        background: #ffffff;
        border-radius: var(--parkingpro-customer-portal-radius-md);
        border: 1px solid var(--parkingpro-customer-portal-color-gray-100);
        padding: 8px;
    }

    .parkingpro-customer-portal-table-responsive .parkingpro-customer-portal-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        border-bottom: 1px solid var(--parkingpro-customer-portal-color-gray-50);
    }

    .parkingpro-customer-portal-table-responsive .parkingpro-customer-portal-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: var(--parkingpro-customer-portal-font-size-xs);
        text-transform: uppercase;
        color: var(--parkingpro-customer-portal-color-gray-500);
        margin-right: 16px;
    }

    .parkingpro-customer-portal-table-responsive .parkingpro-customer-portal-table td:last-child {
        border-bottom: none;
    }

    .parkingpro-customer-portal-big-box-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small mobile */
@media (max-width: 479px) {
    .parkingpro-customer-portal-body--public .parkingpro-customer-portal-main {
        padding: 16px 8px;
    }

    .parkingpro-customer-portal-big-box-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .parkingpro-customer-portal-datetime-overlay {
        min-height: 240px;
        max-width: none;
        width: auto;
    }
}
