/* ============================================================
   Property Management Wizard — Card Grid Redesign
   ============================================================ */

/* --- Main Container --- */
.pmw-onboarding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Header & Progress --- */
.pmw-header {
    margin-bottom: 28px;
}

.pmw-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1E3A52;
    margin: 0 0 16px;
}

.pmw-progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #e8ecf1;
    overflow: hidden;
}

.pmw-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, #00ACAC, #009090);
    transition: width 0.5s ease;
}

.pmw-progress-text {
    font-size: 13px;
    color: #6b7a8d;
    margin-top: 6px;
}

/* --- Drop Zone --- */
.pmw-drop-zone {
    border: 2px dashed #cbd5e0;
    background-color: #f8fafc;
    border-radius: 12px;
    text-align: center;
    padding: 44px 24px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.pmw-drop-zone:hover {
    border-color: #00ACAC;
}

.pmw-drop-zone.pmw-drag-over {
    border-color: #00ACAC;
    background-color: rgba(0, 172, 172, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 172, 172, 0.12);
}

.pmw-drop-zone i {
    font-size: 48px;
    color: #a0aec0;
    display: block;
    margin-bottom: 12px;
}

.pmw-drop-notice {
    font-size: 13px;
    color: #8896a6;
    margin-top: 8px;
}

.pmw-choose-files {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #1E3A52, #2F4F6F);
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pmw-choose-files:hover {
    background: linear-gradient(135deg, #2F4F6F, #4A6B8A);
    box-shadow: 0 4px 14px rgba(30, 58, 82, 0.25);
}

/* --- Processing Feed --- */
.pmw-processing-feed {
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    background-color: #ffffff;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    margin-bottom: 24px;
}

.pmw-feed-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pmw-feed-item:last-child {
    margin-bottom: 0;
}

.pmw-feed-processing {
    background-color: #fffbeb;
    color: #92600a;
}

.pmw-feed-success {
    background-color: #eafaf1;
    color: #1e7e46;
}

.pmw-feed-error {
    background-color: #fdecea;
    color: #c0392b;
}

.pmw-feed-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(146, 96, 10, 0.25);
    border-top-color: #92600a;
    border-radius: 50%;
    animation: pmw-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes pmw-spin {
    to { transform: rotate(360deg); }
}

/* --- Info Banner --- */
.pmw-info-banner {
    border-left: 4px solid #00ACAC;
    background-color: rgba(0, 172, 172, 0.06);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #1E3A52;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* --- Property Sections --- */
.pmw-property-section {
    margin-bottom: 32px;
}

.pmw-property-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pmw-property-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1E3A52;
    margin: 0;
}

.pmw-property-progress {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background-color: rgba(0, 172, 172, 0.1);
    color: #00ACAC;
    font-size: 12px;
    font-weight: 600;
}

.pmw-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #1E3A52, #2F4F6F);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    margin-left: auto;
}

.pmw-dashboard-link:hover {
    background: linear-gradient(135deg, #2F4F6F, #4A6B8A);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 82, 0.2);
}

/* --- Category Card Grid --- */
.pmw-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.pmw-cat-card {
    background-color: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pmw-cat-card:hover {
    box-shadow: 0 4px 16px rgba(30, 58, 82, 0.1);
}

/* State: Needed */
.pmw-cat-needed {
    border-style: dashed;
    opacity: 0.75;
}

.pmw-cat-needed:hover {
    opacity: 1;
    border-color: #00ACAC;
}

/* State: Processing */
.pmw-cat-processing {
    border-color: #e6a817;
}

/* State: Complete */
.pmw-cat-complete {
    border-left: 4px solid #00ACAC;
}

/* Icon */
.pmw-cat-icon {
    font-size: 24px;
    color: #8896a6;
}

.pmw-cat-needed .pmw-cat-icon {
    color: #a0aec0;
}

.pmw-cat-complete .pmw-cat-icon {
    color: #00ACAC;
}

.pmw-cat-processing .pmw-cat-icon {
    color: #1E3A52;
}

/* Name */
.pmw-cat-name {
    font-size: 15px;
    font-weight: 700;
    color: #1E3A52;
}

/* Status text */
.pmw-cat-status {
    font-size: 13px;
    color: #8896a6;
}

.pmw-cat-processing .pmw-cat-status {
    color: #b8860b;
}

.pmw-cat-complete .pmw-cat-status {
    color: #00ACAC;
    font-weight: 600;
}

/* Detail line */
.pmw-cat-detail {
    font-size: 12px;
    color: #8896a6;
}

/* Upload button on card */
.pmw-cat-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 5px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 16px;
    background: transparent;
    color: #1E3A52;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pmw-cat-upload-btn:hover {
    border-color: #00ACAC;
    color: #00ACAC;
    background-color: rgba(0, 172, 172, 0.04);
}

/* Multi-building zone */
.pmw-multi-building-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 32px;
    text-align: center;
    margin-bottom: 8px;
}
.pmw-multi-building-icon {
    font-size: 36px;
    color: #a0aec0;
    margin-bottom: 12px;
}
.pmw-multi-building-zone p {
    color: #1E3A52;
    font-size: 15px;
    margin: 0 0 8px;
}
.pmw-multi-building-zone .pmw-drop-notice {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}
.pmw-multi-upload-btn {
    margin-top: 8px;
}
.pmw-building-count {
    background: #e8ecf1;
    color: #1E3A52;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Not applicable state */
.pmw-cat-na {
    border-style: solid;
    border-color: #e8ecf1;
    opacity: 0.55;
}
.pmw-cat-na .pmw-cat-icon {
    color: #a0aec0;
}
.pmw-cat-na .pmw-cat-name {
    text-decoration: line-through;
    color: #a0aec0;
}
.pmw-cat-na .pmw-cat-status {
    color: #a0aec0;
    font-size: 13px;
}
.pmw-cat-na:hover {
    opacity: 0.75;
}

/* Card action row */
.pmw-cat-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.pmw-cat-na-link,
.pmw-cat-undo-na {
    font-size: 12px;
    color: #a0aec0;
    text-decoration: none;
    cursor: pointer;
}
.pmw-cat-na-link:hover,
.pmw-cat-undo-na:hover {
    color: #00ACAC;
}

/* Mobile App Interest Banner */
.pmw-app-banner {
    background: linear-gradient(135deg, #1E3A52, #2F4F6F);
    border-radius: 12px;
    padding: 32px 36px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
    color: #ffffff;
}
.pmw-app-banner-icon {
    font-size: 36px;
    color: #00ACAC;
    flex-shrink: 0;
    background: rgba(0,172,172,0.15);
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.pmw-app-banner p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.pmw-app-banner p strong {
    color: #ffffff;
    font-size: 17px;
}
.pmw-app-banner-content {
    flex: 1;
}
.pmw-app-options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
}
.pmw-app-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    padding: 8px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}
.pmw-app-option:hover {
    border-color: rgba(0,172,172,0.5);
    color: rgba(255,255,255,0.9);
}
.pmw-app-option.pmw-app-selected {
    border-color: #00ACAC;
    background: rgba(0,172,172,0.15);
    color: #ffffff;
}
.pmw-app-option input[type="checkbox"] {
    display: none;
}
.pmw-app-option i {
    font-size: 18px;
    color: #00ACAC;
}
.pmw-app-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0 14px;
}
.pmw-app-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pmw-app-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,172,172,0.12);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}
.pmw-app-feature i {
    color: #00ACAC;
    font-size: 12px;
}
.pmw-app-options-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.pmw-app-notify-btn {
    background: #00ACAC;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pmw-app-notify-btn:hover {
    background: #009090;
}
.pmw-app-notify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pmw-onboarding {
        padding: 20px 14px;
    }

    .pmw-header h2 {
        font-size: 22px;
    }

    .pmw-category-grid {
        grid-template-columns: 1fr;
    }

    .pmw-property-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pmw-dashboard-link {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   Vendor / Completed Dashboard Styles (preserved)
   ============================================================ */

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 8px solid #000;
    width: 40px;
    opacity: .3;
    float: right;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
    transition: opacity 0.5s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h2.prop-task {
    margin-bottom: 20px;
    margin-top: 20px;
}

h3.display-4 {
    font-size: 30px;
}

.checkmark {
    display: none;
    width: 40px;
    height: 40px;
    background: url('https://confirmedlifesafety.com/wp-content/plugins/property-management-wizard/checkmark.png') no-repeat;
    background-size: cover;
    float: right;
}

.du-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.du-flex-item {
    flex: 1;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .du-flex-item {
        margin-right: 0;
        width: 100%;
    }
}

.du-label-style {
    font-weight: bold;
    padding: 5px 10px;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    position: relative;
    padding-left: 30px;
    margin-right: 15px !important;
    cursor: pointer;
}

.radio-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #888;
    background-color: #fff;
    transition: background-color 0.2s;
}

.radio-group input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #888;
    transition: background-color 0.2s;
}

.radio-group label:hover::before {
    border-color: #555;
}

.pmw-field-form {
    margin-top: -20px;
}

.pmw-field-form input[type="text"] {
    width: 75%;
    border: none;
    border-bottom: 2px solid #adadad;
    background-color: #e4e4e4;
    padding: 5px 10px;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.pmw-field-form input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
}

.view-page-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0b486b;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.view-page-pill:hover {
    background-color: #06293d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 72, 107, 0.25);
}

.view-page-pill .view-page-icon {
    font-size: 18px;
}

.parent-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parent-title-container:not(:first-of-type) {
    margin-top: 50px;
}

.pmw-completed-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.pmw-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pmw-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pmw-card-title {
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 16px;
    color: #0b486b;
}

.pmw-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pmw-card-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f9fbfd;
    padding: 10px 12px;
    border-radius: 6px;
}

.pmw-card-field-label {
    font-weight: 600;
    color: #34495e;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.pmw-card-field-value {
    color: #2f3640;
    font-size: 14px;
    line-height: 1.5;
}

.pmw-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pmw-section + .pmw-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
}

.pmw-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b486b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pmw-card-empty {
    margin: 0;
    color: #6c757d;
}

.pmw-card-status {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #ecf0f1;
    color: #2f3640;
}

.pmw-card-status.pmw-status-pass {
    background-color: #eafaf1;
    color: #27ae60;
}

.pmw-card-status.pmw-status-fail {
    background-color: #fdecea;
    color: #c0392b;
}

.pmw-card-status.pmw-status-not_applicable {
    background-color: #f5f6fa;
    color: #718093;
}

.pmw-contact-card {
    border-left: 4px solid #0b486b;
    padding: 24px;
    gap: 16px;
}

.pmw-vendor-grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .pmw-vendor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .pmw-vendor-grid {
        grid-template-columns: 1fr;
    }
}

.pmw-vendor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pmw-vendor-search-wrap {
    position: relative;
    flex: 0 1 320px;
    min-width: 200px;
}

.pmw-vendor-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.pmw-vendor-search {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pmw-vendor-search::placeholder {
    color: #94a3b8;
}

.pmw-vendor-search:focus {
    outline: none;
    border-color: #0b486b;
    box-shadow: 0 0 0 3px rgba(11, 72, 107, 0.12);
}

.pmw-card.pmw-vendor-hidden {
    display: none !important;
}

.pmw-vendor-grid.pmw-vendor-grid-empty::after {
    content: "No vendors match your search.";
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.pmw-contact-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pmw-contact-card-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pmw-contact-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b486b;
    display: block;
}

.pmw-contact-card-subtitle {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-top: 4px;
    color: #7f8c8d;
    text-transform: uppercase;
}

.pmw-contact-summary {
    font-size: 14px;
    color: #2f3640;
    line-height: 1.5;
    background-color: #f9fbfd;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.pmw-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

.pmw-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eaf2f7;
    color: #0b486b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pmw-contact-icon:hover {
    background-color: #0b486b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 72, 107, 0.25);
}

.pmw-contact-icon i {
    font-size: 16px;
}

.pmw-contact-icon.pmw-icon-phone {
    background-color: #e6f6ed;
    color: #27ae60;
}

.pmw-contact-icon.pmw-icon-phone:hover {
    background-color: #27ae60;
    color: #ffffff;
}

.pmw-contact-icon.pmw-icon-email {
    background-color: #f1e8f7;
    color: #8e44ad;
}

.pmw-contact-icon.pmw-icon-email:hover {
    background-color: #8e44ad;
    color: #ffffff;
}

.pmw-contact-icon.pmw-icon-link {
    background-color: #e3f0fb;
    color: #3498db;
}

.pmw-contact-icon.pmw-icon-link:hover {
    background-color: #3498db;
    color: #ffffff;
}

.pmw-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pmw-contact-line i {
    color: #0b486b;
    font-size: 14px;
}

.pmw-next-due {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #eaf4f8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b486b;
}

.pmw-next-due i {
    font-size: 16px;
    color: #0b486b;
}

.pmw-card-rating {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.pmw-card-rating.has-rating {
    display: flex;
}

.pmw-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #34495e;
}

.pmw-rating-stars i {
    color: #f1c40f;
    margin-right: 2px;
}

.pmw-rating-empty .pmw-rating-text {
    color: #7f8c8d;
    font-style: italic;
}

.pmw-card-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pmw-card-actions .pmw-button {
    padding: 6px 12px;
}

.pmw-card-actions .pmw-button + .pmw-button {
    margin-left: 0;
}

.pmw-card-actions .pmw-button i {
    font-size: 14px;
}

.pmw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f3f7f9;
    color: #0b486b;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #c6d5de;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pmw-button:hover {
    background-color: #06293d;
    color: #ffffff;
    border-color: #06293d;
    box-shadow: 0 4px 12px rgba(11, 72, 107, 0.15);
}

.pmw-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 72, 107, 0.25);
}

.pmw-upcoming-grid {
    align-items: stretch;
}

.pmw-upcoming-card {
    border-left: 4px solid #0b486b;
    background-color: #f5fbff;
    padding: 20px;
    gap: 10px;
}

.pmw-upcoming-name {
    font-size: 16px;
    font-weight: 600;
    color: #0b486b;
}

.pmw-upcoming-meta {
    font-size: 14px;
    color: #2f3640;
}

/* .pmw-file-modal shell styles moved to cls-modal.css (.cls-modal--xl) */

.pmw-file-frame {
    width: 100%;
    height: 85vh;
    border: none;
}

.pmw-file-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* .pmw-manage-modal / .pmw-rating-modal shell styles moved to cls-modal.css */

.pmw-manage-services ul {
    margin: 0;
    padding-left: 18px;
}

.pmw-manage-services li {
    margin-bottom: 4px;
    color: #34495e;
}

.pmw-services-empty {
    margin: 0;
    color: #7f8c8d;
    font-style: italic;
}

.pmw-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.pmw-manage-feedback,
.pmw-rating-feedback {
    margin-bottom: 12px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.pmw-manage-feedback.pmw-error,
.pmw-rating-feedback.pmw-error {
    background-color: #fdecea;
    color: #c0392b;
}

.pmw-manage-feedback.pmw-success,
.pmw-rating-feedback.pmw-success {
    background-color: #eafaf1;
    color: #27ae60;
}

.pmw-rating-select {
    display: flex;
    gap: 6px;
}

.pmw-rating-star {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dfe6eb;
    background-color: #f6f9fb;
    color: #0b486b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pmw-rating-star i {
    font-size: 18px;
}

.pmw-rating-star:hover {
    background-color: #0b486b;
    color: #ffffff;
}

.pmw-rating-history {
    margin-top: 20px;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid #eef2f5;
    padding-top: 10px;
}

.pmw-rating-summary-block {
    margin-bottom: 16px;
}

.pmw-rating-company {
    font-weight: 700;
    color: #0b486b;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .pmw-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Post-upload "what happens next" summary */
.pmw-next-steps {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 14px;
}
.pmw-next-steps__title {
    font-weight: 700;
    color: #065f46;
    margin-bottom: 6px;
    font-size: 15px;
}
.pmw-next-steps p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

/* ============================================================
   Upload feedback that follows the user
   ------------------------------------------------------------
   The processing feed sits at the top of the page, under the bulk drop zone. The per-category
   Upload buttons are rendered far below it — once per category, per property — so on any real
   portfolio the confirmation was thousands of pixels away from the click that caused it. These
   two pieces put the state where the person actually is: busy state on the card they pressed,
   and a fixed toast for the outcome.
   ============================================================ */
.pmw-toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100000;          /* above the wizard's modals, which sit at 9999 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
    pointer-events: none;      /* never blocks the page underneath */
}
.pmw-toast {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    padding: 12px 14px;
    animation: pmw-toast-in .22s ease-out;
}
.pmw-toast--ok    { border-left-color: #16a34a; }
.pmw-toast--info  { border-left-color: #0ea5e9; }
.pmw-toast--error { border-left-color: #dc2626; }
.pmw-toast__title { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
.pmw-toast__msg   { font-size: 13px; color: #475569; line-height: 1.45; }
.pmw-toast--out   { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes pmw-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Respect a reduced-motion preference: the toast still appears, it just does not slide. */
@media (prefers-reduced-motion: reduce) {
    .pmw-toast { animation: none; }
    .pmw-toast--out { transition: none; }
}

.pmw-origin-busy { box-shadow: 0 0 0 2px #0ea5e9 inset; }
.pmw-origin-spinner {
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 5px;
    border: 2px solid #cbd5e1;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: pmw-origin-spin .7s linear infinite;
    vertical-align: -1px;
}
@keyframes pmw-origin-spin { to { transform: rotate(360deg); } }

/* "Received, still being read" — deliberately NOT styled as an error. A timeout almost always
   means the document is on file; the server stores it before it runs the AI. */
.pmw-feed-pending { color: #0369a1; }
