.eap-application-wrap {
    max-width: 100%;
    margin: 50px 0;
    font-family: Arial, sans-serif;
}

.eap-form-header {
    margin-bottom: 28px;
}

.eap-form-header h1 {
    margin: 0;
    font-size: 38px;
    color: #111827;
    font-weight: 800;
}

.eap-form-header p {
    color: #6b7280;
    font-size: 16px;
}

.eap-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.eap-progress-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    color: #6b7280;
}

.eap-progress-step span {
    width: 34px;
    height: 34px;
    background: #e5e7eb;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 6px;
}

.eap-progress-step p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.eap-progress-step.active {
    border-color: #0758a8 !important;
    color: #0758a8 !important;
}

.eap-progress-step.active span,
.eap-progress-step.completed span {
    background: #0758a8 !important;
    color: #ffffff;
}

.eap-form-step {
    display: none;
}

.eap-form-step.active {
    display: block;
}

.eap-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
}

.eap-card h3 {
    margin: 24px 0 18px;
    color: #111827;
    font-size: 20px;
}

.eap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.eap-field-full {
    grid-column: 1 / -1;
}

.eap-field label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-field input,
.eap-field select,
.eap-field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    color: #111827;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.eap-field input,
.eap-field select {
    height: 52px;
}

.eap-field textarea {
    resize: vertical;
}

.eap-field input:focus,
.eap-field select:focus,
.eap-field textarea:focus {
    border-color: #0758a8 !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(202,1,9,0.08);
}

.eap-field-error {
    border-color: #0758a8 !important !important;
    background: #fff1f2 !important;
}

.eap-prefill-note {
    margin-top: 24px;
    background: #f8fafc;
    border-left: 4px solid #0758a8 !important;
    padding: 16px;
    border-radius: 10px;
}

.eap-prefill-note p {
    margin: 5px 0;
    color: #111827;
}

.eap-form-navigation {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.eap-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.eap-btn-primary {
    background: #0758a8 !important;
    color: #ffffff;
    border: 1px solid #0758a8 !important;
}

.eap-btn-primary:hover {
    background: #111827 !important;
    color: #ffffff;
    border: 1px solid #0758a8 !important;
}

.eap-btn-secondary {
    background: #111827 !important;
    color: #ffffff;
}

.eap-btn-secondary:hover {
    background: #0758a8 !important;
    color: #ffffff;
}

.eap-auth-required {
    max-width: 700px;
    margin: 60px auto;
    font-family: Arial, sans-serif;
}

.eap-auth-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.eap-auth-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 30px;
}

.eap-auth-card p {
    color: #6b7280;
    margin-bottom: 24px;
}

.eap-auth-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.eap-conditional-group {
    display: none;
    background: #f8fafc;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.eap-no-service-message {
    background: #fff7ed;
    border-left: 4px solid #0758a8 !important;
    padding: 16px;
    border-radius: 10px;
    color: #7c2d12;
    margin-top: 20px;
}

.eap-consent-box {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.eap-consent-box label {
    font-size: 15px;
    color: #111827;
}

.eap-consent-box input {
    margin-right: 8px;
}

.eap-submit-note {
    margin-top: 20px;
    background: #fff7ed;
    border-left: 4px solid #0758a8 !important;
    padding: 14px 16px;
    border-radius: 10px;
    color: #7c2d12;
}

@media (max-width: 900px) {
    .eap-application-wrap {
        margin: 30px 15px;
    }

    .eap-progress {
        grid-template-columns: repeat(2, 1fr);
    }

    .eap-grid {
        grid-template-columns: 1fr;
    }

    .eap-form-header h1 {
        font-size: 30px;
    }

    .eap-auth-actions {
        flex-direction: column;
    }
}

.eap-alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 700;
}

.eap-alert p {
    margin: 0;
}

.eap-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.eap-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #0758a8 !important;
}

.eap-profile-grid,
.eap-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.eap-profile-field,
.eap-detail-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f9fafb;
}

.eap-profile-field label,
.eap-detail-item label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-profile-field div,
.eap-detail-item div {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.eap-dashboard-note {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff7ed;
    border-left: 4px solid #0758a8 !important;
    color: #7c2d12;
    border-radius: 10px;
    font-size: 14px;
}

.eap-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eap-table-wrap {
    overflow-x: auto;
}

.eap-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.eap-table th {
    text-align: left;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    vertical-align: middle;
}

.eap-table small {
    color: #6b7280;
}

.eap-table-action,
.eap-table-action input[type="submit"]{
    display: inline-block !important;
    background: #111827 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.eap-table-action:hover {
    background: #0758a8 !important;
    color: #ffffff;
}

.eap-status-badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
    color: #111827;
}

.eap-status-pending-review {
    background: #fff7ed;
    color: #9a3412;
}

.eap-status-documents-required {
    background: #fee2e2;
    color: #991b1b;
}

.eap-status-documents-received {
    background: #dbeafe;
    color: #1e40af;
}

.eap-status-in-process,
.eap-status-submitted-to-dmv,
.eap-status-appointment-required {
    background: #fef9c3;
    color: #854d0e;
}

.eap-status-completed {
    background: #dcfce7;
    color: #166534;
}

.eap-status-rejected,
.eap-status-cancelled {
    background: #f3f4f6;
    color: #374151;
}

.eap-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}

.eap-empty-state h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
}

.eap-empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

.eap-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-detail-header h2 {
    margin: 0 0 6px;
}

.eap-detail-header p {
    margin: 0;
    color: #6b7280;
}

.eap-detail-section {
    margin-top: 30px;
}

.eap-detail-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #111827;
}

.eap-doc-list {
    display: grid;
    gap: 12px;
}

.eap-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 16px;
}

.eap-doc-item span {
    font-weight: 700;
    color: #111827;
}

.eap-doc-item a {
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.eap-doc-item a:hover {
    background: #0758a8 !important;
    color: #ffffff;
}

.eap-detail-actions {
    margin-top: 30px;
}

@media (max-width: 900px) {
    .eap-profile-grid,
    .eap-detail-grid {
        grid-template-columns: 1fr;
    }

    .eap-card-top,
    .eap-detail-header {
        flex-direction: column;
    }
}

/* Express Auto Dashboard Layout */
.eap-dashboard-wrap {
    max-width: 100%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    font-family: Arial, sans-serif;
}

.eap-sidebar {
    background: #111827 !important;
    border-radius: 18px;
    padding: 26px;
    color: #ffffff;
    min-height: 560px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eap-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 35px;
}

.eap-logo-icon {
    width: 48px;
    height: 48px;
    background: #0758a8 !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
}

.eap-sidebar-logo h3 {
    margin: 0;
    font-size: 18px;
    color: #fff !important;
    line-height: 1.2;
}

.eap-sidebar-logo p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #cbd5e1 !important;
}

.eap-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eap-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #d1d5db !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: 0.25s ease;
}

.eap-menu a.active,
.eap-menu a:hover {
    background: #0758a8 !important;
    color: #ffffff !important;
}

.eap-menu a.active {
    font-weight: 700;
}

.eap-sidebar-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.08);
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    transition: 0.25s ease;
}

.eap-sidebar-footer a:hover {
    background: #0758a8 !important;
    color: #ffffff !important;
}

.eap-main {
    background: #f8fafc;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.eap-small-title {
    color: #0758a8 !important;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eap-header h1 {
    margin: 0;
    font-size: 34px;
    color: #111827;
    font-weight: 800;
}

.eap-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.eap-card h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.eap-card p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}

/* Profile fields */
.eap-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.eap-profile-field {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f9fafb;
}

.eap-profile-field label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-profile-field div {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    word-break: break-word;
}

.eap-dashboard-note {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff7ed;
    border-left: 4px solid #0758a8 !important;
    color: #7c2d12;
    border-radius: 10px;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 900px) {
    .eap-dashboard-wrap {
        grid-template-columns: 1fr;
        margin: 30px 15px;
    }

    .eap-sidebar {
        min-height: auto;
    }

    .eap-profile-grid {
        grid-template-columns: 1fr;
    }

    .eap-header h1 {
        font-size: 28px;
    }
}

.eap-owner-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 16px;
    align-items: end;
    margin: 24px 0 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.eap-filter-button-field {
    display: flex;
    gap: 10px;
    align-items: end;
}

.eap-filter-button-field .eap-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eap-owner-update-form {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
}

.eap-form-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .eap-owner-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .eap-owner-filter-grid {
        grid-template-columns: 1fr;
    }

    .eap-filter-button-field {
        flex-direction: column;
        align-items: stretch;
    }
}

.eap-tracking-wrap {
    max-width: 1000px;
    margin: 50px auto;
    font-family: Arial, sans-serif;
}

.eap-tracking-form {
    margin-top: 5px;
}

.eap-tracking-result {
    margin-top: 28px;
}

.eap-tracking-alert {
    margin-top: 24px;
}

.eap-public-note {
    background: #f8fafc;
    border-left: 4px solid #0758a8 !important;
    padding: 16px 18px;
    border-radius: 12px;
    color: #111827;
}

.eap-public-note p {
    margin: 0;
    color: #111827;
}

@media (max-width: 900px) {
    .eap-tracking-wrap {
        margin: 30px 15px;
    }
}

.eap-access-denied-wrap {
    max-width: 700px;
    margin: 70px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.eap-access-denied-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-access-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0758a8 !important;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 18px;
}

.eap-access-denied-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
}

.eap-access-denied-card p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 16px;
}

/* Login Required / User Required Card */
.eap-login-required-wrap {
    max-width: 720px;
    margin: 70px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.eap-login-required-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-login-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: #0758a8 !important;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.eap-login-required-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
}

.eap-login-required-card p {
    margin: 0 0 26px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.eap-login-required-card .eap-auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eap-login-required-card .eap-btn {
    min-width: 145px;
    text-align: center;
}

@media (max-width: 700px) {
    .eap-login-required-wrap {
        margin: 40px 15px;
    }

    .eap-login-required-card {
        padding: 35px 22px;
    }

    .eap-login-required-card h2 {
        font-size: 26px;
    }

    .eap-login-required-card .eap-auth-actions {
        flex-direction: column;
    }

    .eap-login-required-card .eap-btn {
        width: 100%;
    }
}

.eap-set-password-wrap {
    max-width: 720px;
    margin: 70px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.eap-set-password-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-set-password-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
}

.eap-set-password-card p {
    margin: 0 0 26px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.eap-set-password-form {
    margin-top: 26px;
    text-align: left;
}

.eap-set-password-form .eap-field {
    margin-bottom: 18px;
}

.eap-set-password-form .eap-form-actions {
    justify-content: center;
    text-align: center;
}

@media (max-width: 700px) {
    .eap-set-password-wrap {
        margin: 40px 15px;
    }

    .eap-set-password-card {
        padding: 35px 22px;
    }

    .eap-set-password-card h2 {
        font-size: 26px;
    }
}

/* Thank You Page */
.eap-thank-you-wrap {
    max-width: 820px;
    margin: 70px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.eap-thank-you-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 48px 38px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-thank-you-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 22px;
}

.eap-thank-you-error {
    background: #0758a8 !important;
}

.eap-thank-you-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
}

.eap-thank-you-card p {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

.eap-thank-you-summary {
    margin: 28px 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
}

.eap-thank-you-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-thank-you-row:last-child {
    border-bottom: 0;
}

.eap-thank-you-row span {
    color: #6b7280;
    font-weight: 600;
}

.eap-thank-you-row strong {
    color: #111827;
    text-align: right;
}

.eap-thank-you-note {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin: 24px 0;
    text-align: left;
}

.eap-thank-you-note strong {
    display: block;
    color: #111827;
    margin-bottom: 8px;
    font-size: 16px;
}

.eap-thank-you-note p {
    margin: 0;
    font-size: 15px;
}

.eap-thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (max-width: 700px) {
    .eap-thank-you-wrap {
        margin: 40px 15px;
    }

    .eap-thank-you-card {
        padding: 34px 22px;
    }

    .eap-thank-you-card h2 {
        font-size: 26px;
    }

    .eap-thank-you-row {
        flex-direction: column;
        gap: 5px;
    }

    .eap-thank-you-row strong {
        text-align: left;
    }

    .eap-thank-you-actions {
        flex-direction: column;
    }

    .eap-thank-you-actions .eap-btn {
        width: 100%;
        text-align: center;
    }
}

/* Editable Profile Form */
.eap-profile-edit-form {
    margin-top: 24px;
}

.eap-profile-edit-form .eap-field span {
    color: #0758a8 !important;
}

.eap-profile-edit-form textarea {
    resize: vertical;
}

.eap-profile-edit-form .eap-form-actions {
    margin-top: 10px;
}

/* Owner History */
.eap-history-card {
    margin-top: 24px;
}

.eap-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eap-history-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.eap-history-box h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.eap-muted {
    color: #6b7280;
    margin: 0;
}

.eap-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eap-history-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0758a8 !important;
    border-radius: 12px;
    padding: 14px;
}

.eap-history-item strong {
    display: block;
    color: #111827;
    margin-bottom: 6px;
}

.eap-history-item p {
    margin: 4px 0;
    color: #374151;
}

.eap-history-item small {
    display: block;
    color: #6b7280;
    margin-top: 6px;
}

.eap-history-item span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 8px;
}

@media (max-width: 800px) {
    .eap-history-grid {
        grid-template-columns: 1fr;
    }
}

/* Owner Application Accordion */
.eap-owner-accordion {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    margin: 18px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.eap-owner-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.eap-owner-accordion summary::-webkit-details-marker {
    display: none;
}

.eap-owner-accordion[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.eap-owner-accordion-body {
    padding: 22px;
    background: #ffffff;
}

.eap-accordion-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
}

.eap-owner-accordion[open] .eap-accordion-arrow {
    background: #0758a8 !important;
    color: #ffffff;
}

.eap-owner-accordion[open] .eap-accordion-arrow {
    font-size: 0;
}

.eap-owner-accordion[open] .eap-accordion-arrow::before {
    content: "-";
    font-size: 18px;
}

.eap-owner-accordion:not([open]) .eap-accordion-arrow {
    font-size: 0;
}

.eap-owner-accordion:not([open]) .eap-accordion-arrow::before {
    content: "+";
    font-size: 18px;
}

/* Remove extra nested card spacing inside accordion */
.eap-owner-accordion .eap-card {
    box-shadow: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.eap-owner-accordion .eap-card h2:first-child,
.eap-owner-accordion-body > h2:first-child {
    display: none;
}

@media (max-width: 700px) {
    .eap-owner-accordion summary {
        padding: 17px 16px;
        font-size: 15px;
    }

    .eap-owner-accordion-body {
        padding: 16px;
    }
}

/* Customer Application Timeline */
.eap-customer-history {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
}

.eap-customer-history h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.eap-customer-history > p {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 15px;
}

.eap-customer-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eap-customer-history-item {
    display: flex;
    gap: 14px;
    position: relative;
}

.eap-customer-history-dot {
    width: 13px;
    height: 13px;
    min-width: 13px;
    border-radius: 50%;
    background: #0758a8 !important;
    margin-top: 6px;
}

.eap-customer-history-content {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
}

.eap-customer-history-content strong {
    display: block;
    color: #111827;
    margin-bottom: 6px;
    font-size: 15px;
}

.eap-customer-history-content p {
    margin: 0 0 6px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.eap-customer-history-content small {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

.eap-customer-history-content span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 8px;
}

/* Owner Trash / Delete Buttons */
.eap-btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
}

.eap-btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

.eap-btn-small {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.eap-inline-trash-form {
    display: inline-block;
    margin-left: 8px;
}

.eap-owner-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

@media (max-width: 700px) {
    .eap-owner-detail-actions {
        justify-content: flex-start;
    }

    .eap-inline-trash-form {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}

.eap-checkout-wrap {
    max-width: 850px;
    margin: 40px auto;
    padding: 20px;
}

.eap-checkout-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.eap-checkout-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.eap-checkout-header p {
    margin: 0 0 25px;
    color: #6b7280;
}

.eap-checkout-summary {
    background: #f9fafb;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.eap-checkout-summary p {
    margin: 6px 0;
}

.eap-checkout-shipping {
    margin-bottom: 25px;
}

.eap-checkout-shipping label {
    display: block;
    margin-bottom: 8px;
}

.eap-checkout-shipping select,
.eap-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

.eap-shipping-estimate {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.eap-fee-breakdown {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.eap-fee-breakdown h3 {
    margin: 0;
    padding: 16px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.eap-fee-row,
.eap-fee-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-fee-row:last-child {
    border-bottom: none;
}

.eap-fee-total {
    background: #111827;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-bottom: none;
}

.eap-checkout-payment-form {
    text-align: right;
}

.eap-checkout-payment-form .eap-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   Mobile Dashboard Overflow Fix
   Add this at the very end of portal.css
========================================================= */

.eap-application-wrap,
.eap-dashboard-wrap,
.eap-dashboard-wrap *,
.eap-checkout-wrap,
.eap-checkout-wrap *,
.eap-thank-you-wrap,
.eap-thank-you-wrap *,
.eap-tracking-wrap,
.eap-tracking-wrap * {
    box-sizing: border-box;
}

@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
    }

    .eap-dashboard-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 22px 0 !important;
        padding: 0 14px !important;
        display: block !important;
    }

    .eap-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 18px 0 !important;
        padding: 18px !important;
        overflow: hidden !important;
    }

    .eap-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 18px !important;
        overflow: hidden !important;
    }

    .eap-sidebar-logo {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .eap-sidebar-logo h3 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    .eap-menu {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .eap-menu a {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 13px 14px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .eap-menu a.active,
    .eap-menu a:hover {
        width: 100% !important;
        max-width: 100% !important;
    }

    .eap-sidebar-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 18px !important;
    }

    .eap-sidebar-footer a {
        width: 100% !important;
        max-width: 100% !important;
    }

    .eap-header {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .eap-header h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    .eap-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {

    .eap-dashboard-wrap {
        padding: 0 10px !important;
    }

    .eap-sidebar {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .eap-main {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .eap-sidebar-logo h3 {
        font-size: 20px !important;
    }

    .eap-menu a {
        font-size: 14px !important;
        padding: 12px 13px !important;
    }
}

/* =========================================================
   Owner Dashboard Mobile Table/Card Fix
   Add this at the very end of portal.css
========================================================= */

@media (max-width: 767px) {

    .eap-dashboard-wrap .eap-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        border-radius: 16px !important;
    }

    .eap-dashboard-wrap .eap-table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 16px !important;
        background: transparent !important;
    }

    .eap-dashboard-wrap .eap-table thead {
        display: none !important;
    }

    .eap-dashboard-wrap .eap-table tbody,
    .eap-dashboard-wrap .eap-table tr,
    .eap-dashboard-wrap .eap-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .eap-dashboard-wrap .eap-table tr {
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
        margin-bottom: 16px !important;
    }

    .eap-dashboard-wrap .eap-table td {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 14px !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid #e5e7eb !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        text-align: right !important;
        word-break: break-word !important;
        flex-direction: column;
    }

    .eap-dashboard-wrap .eap-table td:last-child {
        border-bottom: none !important;
    }

    .eap-dashboard-wrap .eap-table td::before {
        content: "";
        min-width: 115px;
        max-width: 130px;
        text-align: left;
        color: #6b7280;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        flex-shrink: 0;
    }

    /* Owner applications table labels */
    .eap-dashboard-wrap .eap-table td:nth-child(1)::before {
        content: "Tracking";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(2)::before {
        content: "Applicant";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(3)::before {
        content: "Service";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(4)::before {
        content: "App Status";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(5)::before {
        content: "Payment";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(6)::before {
        content: "Submitted";
    }

    .eap-dashboard-wrap .eap-table td:nth-child(7)::before {
        content: "Action";
    }

    .eap-dashboard-wrap .eap-table td:last-child {
        display: block !important;
        text-align: left !important;
    }

    .eap-dashboard-wrap .eap-table td:last-child::before {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .eap-dashboard-wrap .eap-table-action,
    .eap-dashboard-wrap .eap-table-action input[type="submit"],
    .eap-dashboard-wrap .eap-inline-trash-form,
    .eap-dashboard-wrap .eap-inline-trash-form input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin: 8px 0 0 0 !important;
        box-sizing: border-box !important;
    }

    .eap-dashboard-wrap .eap-table small {
        display: block !important;
        margin-top: 4px !important;
        text-align: right !important;
    }

    .eap-dashboard-wrap .eap-status-badge,
    .eap-dashboard-wrap .eap-payment-badge {
        display: inline-block !important;
        white-space: normal !important;
        text-align: center !important;
    }
}


/* =========================================================
   Owner Applications Table - Mobile Card Layout
========================================================= */

@media (max-width: 1200px) {

    .eap-owner-app-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    table.eap-owner-app-table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 16px !important;
        background: transparent !important;
    }

    table.eap-owner-app-table thead {
        display: none !important;
    }

    table.eap-owner-app-table,
    table.eap-owner-app-table tbody,
    table.eap-owner-app-table tr,
    table.eap-owner-app-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    table.eap-owner-app-table tr {
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
        margin-bottom: 16px !important;
    }

    table.eap-owner-app-table td {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 14px !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid #e5e7eb !important;
        text-align: right !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    table.eap-owner-app-table td:last-child {
        border-bottom: none !important;
    }

    table.eap-owner-app-table td::before {
        content: attr(data-label);
        min-width: 125px;
        max-width: 125px;
        text-align: left;
        color: #6b7280;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        flex-shrink: 0;
    }

    table.eap-owner-app-table td[data-label="Action"] {
        display: block !important;
        text-align: left !important;
    }

    table.eap-owner-app-table td[data-label="Action"]::before {
        display: block !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    table.eap-owner-app-table .eap-table-action,
    table.eap-owner-app-table .eap-inline-trash-form,
    table.eap-owner-app-table .eap-inline-trash-form button {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin: 8px 0 0 0 !important;
        box-sizing: border-box !important;
    }

    table.eap-owner-app-table small {
        display: block !important;
        margin-top: 4px !important;
        text-align: right !important;
    }
}