/**
 * Physician Panel Manager - Frontend Styles
 * Supports Tennessee (choice) and Georgia (panel) forms
 */

/* Container */
.ppm-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Georgia Insurance Section */
.ppm-insurance-section {
    background: #f8f9fa;
    border-color: #0073aa;
}

.ppm-form-row {
    margin-bottom: 15px;
}

.ppm-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e3a5f;
}

.ppm-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ppm-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Category Sections */
.ppm-category-section {
    margin-bottom: 25px;
}

.ppm-category-section h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppm-required-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ppm-limit-badge {
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.ppm-min-notice {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

/* Validation Messages */
.ppm-validation-messages {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.ppm-validation-messages ul {
    margin: 0;
    padding-left: 20px;
}

.ppm-validation-messages li {
    color: #856404;
    margin-bottom: 5px;
}

.ppm-validation-messages li:last-child {
    margin-bottom: 0;
}

/* Header */
.ppm-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.ppm-header h2 {
    color: #1e3a5f;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.ppm-header p {
    color: #666;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.ppm-header .ppm-subtext {
    font-size: 14px;
    color: #0073aa;
    font-style: italic;
}

/* Sections */
.ppm-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ppm-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #1e3a5f;
    font-size: 20px;
}

/* Selection Count */
.ppm-selection-count {
    background: #f0f6fc;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    color: #1e3a5f;
    display: inline-block;
    margin-bottom: 20px;
}

#ppm-selected-count {
    color: #0073aa;
    font-size: 18px;
}

/* Physicians Grid */
.ppm-physicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Physician Card */
.ppm-physician-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    background: #fff;
    cursor: pointer;
}

.ppm-physician-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.ppm-physician-card.selected {
    border-color: #0073aa;
    background: #f0f6fc;
}

.ppm-physician-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.ppm-physician-header {
    margin-bottom: 12px;
}

.ppm-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.ppm-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.ppm-physician-name {
    font-weight: 600;
    font-size: 16px;
    color: #1e3a5f;
    line-height: 1.3;
}

.ppm-physician-details {
    padding-left: 30px;
    font-size: 14px;
    color: #555;
}

.ppm-physician-details p {
    margin: 5px 0;
    line-height: 1.4;
}

.ppm-physician-details strong {
    color: #333;
}

/* Badges */
.ppm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ppm-badge-telehealth {
    background: #d4edda;
    color: #155724;
}

.ppm-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Telehealth Only Section */
.ppm-telehealth-header {
    margin: 30px 0 10px 0;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 600;
}

.ppm-telehealth-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ppm-telehealth-only-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.ppm-telehealth-only {
    background: #fff;
    border-style: dashed;
    border-color: #0073aa;
}

/* Selected Summary */
.ppm-selection-summary {
    background: #f0f6fc;
}

#ppm-selected-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppm-selected-item {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ppm-selected-item.telehealth-only {
    border-left-color: #17a2b8;
    background: #e8f4f8;
}

.ppm-selected-item strong {
    color: #1e3a5f;
}

.ppm-selected-item span {
    color: #666;
    font-size: 13px;
}

/* Actions */
.ppm-actions {
    text-align: center;
    padding: 30px 0;
}

/* Buttons */
.ppm-button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ppm-button-primary {
    background: #0073aa;
    color: #fff;
}

.ppm-button-primary:hover:not(:disabled) {
    background: #005d8c;
    transform: translateY(-1px);
}

.ppm-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ppm-button-success {
    background: #28a745;
    color: #fff;
}

.ppm-button-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.ppm-help-text {
    color: #666;
    font-size: 13px;
    margin-top: 15px;
}

/* PDF Result */
#ppm-pdf-result {
    background: #d4edda;
    border-color: #c3e6cb;
    text-align: center;
}

#ppm-pdf-result h3 {
    color: #155724;
    border-bottom-color: #c3e6cb;
}

/* Error */
.ppm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.ppm-loading {
    position: relative;
    pointer-events: none;
}

.ppm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: ppm-spin 1s linear infinite;
}

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

/* Login Required */
.ppm-login-required {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ppm-login-required-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ppm-login-required h3 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
    font-size: 24px;
}

.ppm-login-required p {
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.ppm-login-required-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ppm-or {
    color: #888;
    font-size: 14px;
}

.ppm-button-secondary {
    background: #fff;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
}

.ppm-button-secondary:hover {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .ppm-container {
        padding: 10px;
    }
    
    .ppm-section {
        padding: 15px;
    }
    
    .ppm-physicians-grid {
        grid-template-columns: 1fr;
    }
    
    .ppm-physician-details {
        padding-left: 0;
        margin-top: 10px;
    }
}

/* ===== Curated Panels ===== */
.ppm-curated-panels-section {
    background: #f0f7ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.ppm-curated-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.ppm-curated-panel-card {
    background: #fff;
    border: 2px solid #dde5ed;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}

.ppm-curated-panel-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

.ppm-curated-panel-card.ppm-curated-selected {
    border-color: #00a32a;
    background: #f0faf0;
    box-shadow: 0 2px 8px rgba(0, 163, 42, 0.2);
}

.ppm-curated-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ppm-curated-panel-header strong {
    font-size: 15px;
    color: #1e3a5f;
}

.ppm-curated-panel-desc {
    color: #555;
    font-size: 13px;
    margin: 5px 0 10px;
    line-height: 1.4;
}

.ppm-curated-panel-physicians {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.ppm-curated-physician-tag {
    background: #e8f0fe;
    color: #1e3a5f;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.ppm-curated-physician-tag small {
    color: #666;
    font-style: italic;
}

.ppm-use-curated-panel-btn {
    margin-top: 8px;
}

.ppm-divider {
    border: none;
    border-top: 1px solid #dde5ed;
    margin: 20px 0 10px;
}

.ppm-or-text {
    text-align: center;
    color: #666;
    margin: 10px 0 0;
}

/* ===== Orthopedic Sub-specialty Badge ===== */
.ppm-subspecialty-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: normal;
}

.ppm-subspecialties {
    color: #2e7d32;
    font-style: italic;
}

/* ===== Inline Search/Filter Bar ===== */
.ppm-inline-search {
    margin-bottom: 20px;
}

.ppm-inline-search-toggle {
    margin-bottom: 10px;
}

#ppm-toggle-filters-btn {
    font-size: 14px;
    padding: 8px 16px;
}

#ppm-toggle-filters-btn.ppm-active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ppm-inline-search-filters {
    background: #f0f7ff;
    border: 1px solid #c3daf0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 5px;
}

.ppm-inline-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ppm-inline-search-row:last-of-type {
    margin-bottom: 0;
}

.ppm-inline-field {
    flex: 1;
    min-width: 150px;
}

.ppm-inline-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e3a5f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ppm-inline-field-checkbox {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.ppm-inline-field-checkbox label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    text-transform: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
}

.ppm-zip-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ppm-input-zip {
    max-width: 80px !important;
}

.ppm-input-radius {
    max-width: 90px !important;
}

.ppm-inline-search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #c3daf0;
    margin-top: 12px;
}

.ppm-filter-count {
    font-size: 13px;
    color: #0073aa;
    font-weight: 600;
}

/* Hidden cards during filter */
.ppm-physician-card[style*="display: none"] + .ppm-physician-card {
    /* Smooth grid reflow */
}

@media (max-width: 600px) {
    .ppm-inline-search-row {
        flex-direction: column;
    }
    
    .ppm-inline-field {
        min-width: 100%;
    }
    
    .ppm-zip-group {
        flex-wrap: wrap;
    }
}

/* Optional label */
.ppm-optional {
    font-weight: normal;
    color: #888;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

/* ===== Curated Panel Dropdown ===== */
.ppm-curated-select-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.ppm-curated-dropdown {
    flex: 1;
    max-width: 600px;
    font-size: 14px;
}

.ppm-curated-preview {
    background: #f0f7ff;
    border: 1px solid #c3daf0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ppm-curated-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ppm-curated-preview-desc {
    color: #555;
    font-style: italic;
    margin: 0 0 10px;
    font-size: 13px;
}

.ppm-curated-preview-physicians {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ppm-curated-physician-tag {
    background: #e1ecf4;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    color: #1e3a5f;
}

.ppm-curated-tag-muted {
    background: #eee;
    color: #888;
    font-style: italic;
}

/* ===== Premium Listing (Tier 2) ===== */
.ppm-premium-listing {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d4a843;
}

.ppm-provider-logo {
    margin-bottom: 8px;
}

.ppm-provider-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.ppm-provider-logo-sm img {
    max-width: 80px;
    max-height: 50px;
}

.ppm-provider-desc {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 5px 0;
}

.ppm-provider-web {
    font-size: 13px;
    margin: 4px 0;
}

.ppm-wc-liaison {
    font-size: 13px;
    margin-top: 6px;
    padding: 6px 8px;
    background: #fef8e8;
    border-radius: 4px;
    border-left: 3px solid #d4a843;
}

.ppm-wc-liaison-inline {
    font-size: 13px;
    margin: 4px 0;
}

.ppm-premium-listing-compact {
    margin-top: 8px;
    padding-top: 8px;
}

/* ===== Provider Portal - Premium Section ===== */
.ppm-premium-listing-section {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #fffaf0, #fef8e8);
    border: 1px solid #d4a843;
    border-radius: 6px;
}

.ppm-premium-heading {
    color: #8b6914;
    font-size: 14px;
    margin: 0 0 8px;
}

.ppm-provider-logo-preview {
    margin-bottom: 8px;
}

.ppm-provider-logo-preview img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 4px;
}

.ppm-logo-preview {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.ppm-logo-preview img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.ppm-button-danger {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

.ppm-button-danger:hover {
    background: #b32d2e;
}

.ppm-form-row-half {
    display: flex;
    gap: 15px;
}

.ppm-form-row-half .ppm-form-field {
    flex: 1;
}

@media (max-width: 600px) {
    .ppm-curated-select-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ppm-form-row-half {
        flex-direction: column;
    }
}

/* ===== Provider Member Page ===== */
.ppm-provider-member-page {
    max-width: 800px;
}

.ppm-member-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ppm-member-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ppm-member-card-header h3 {
    margin: 0;
    font-size: 20px;
}

.ppm-member-location {
    color: #666;
    font-size: 13px;
    margin: 0 0 20px;
    text-transform: capitalize;
}

.ppm-member-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ppm-member-section:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.ppm-member-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1e3a5f;
}

.ppm-member-section h4 small {
    font-weight: normal;
    color: #888;
    font-size: 12px;
}

.ppm-member-logo-area {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ppm-member-logo-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.ppm-member-logo-preview img {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.ppm-member-field-row {
    margin-bottom: 12px;
}

.ppm-member-field-row-half {
    display: flex;
    gap: 15px;
}

.ppm-member-field {
    flex: 1;
}

.ppm-member-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.ppm-member-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.ppm-member-save-status {
    font-size: 14px;
    font-weight: 600;
}

.ppm-notice-info {
    background: #f0f7ff;
    border: 1px solid #c3daf0;
    border-radius: 6px;
    padding: 16px;
    color: #1e3a5f;
}

@media (max-width: 600px) {
    .ppm-member-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ppm-member-field-row-half {
        flex-direction: column;
    }
    
    .ppm-member-logo-area {
        flex-direction: column;
    }
}

/* ===== Premium Badge & View Details Button ===== */
.ppm-premium-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
}

.ppm-badge-premium {
    background: linear-gradient(135deg, #d4a843, #b8922e);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ppm-view-details-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1a6daa;
    background: #eaf4fb;
    border: 1px solid #b8d8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.ppm-view-details-btn:hover {
    background: #d0e8f7;
    border-color: #88bfe0;
    color: #0e4f7a;
}

/* ===== View Details Modal ===== */
body.ppm-modal-open {
    overflow: hidden;
}

.ppm-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppm-details-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.ppm-details-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ppmModalSlideIn 0.2s ease-out;
}

@keyframes ppmModalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ppm-details-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 26px;
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    transition: background 0.15s;
}

.ppm-details-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Modal Header */
.ppm-details-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #fafafa, #f4f7fa);
    border-radius: 10px 10px 0 0;
}

.ppm-detail-logo-wrap {
    flex-shrink: 0;
}

.ppm-detail-logo-wrap img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px;
}

.ppm-detail-title-wrap h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1d2327;
    line-height: 1.3;
    padding-right: 30px;
}

.ppm-detail-practice {
    margin: 0 0 6px;
    font-size: 14px;
    color: #555;
    font-style: italic;
}

/* Modal Body */
.ppm-details-modal-body {
    padding: 20px 24px 24px;
}

.ppm-detail-section {
    margin-bottom: 18px;
}

.ppm-detail-section:last-child {
    margin-bottom: 0;
}

.ppm-detail-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.ppm-detail-section p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.ppm-detail-section a {
    color: #1a6daa;
    text-decoration: none;
}

.ppm-detail-section a:hover {
    text-decoration: underline;
}

/* WC Liaison section in modal */
#ppm-detail-liaison-section {
    background: #fef8e8;
    border: 1px solid #e8d48a;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 12px;
}

#ppm-detail-liaison-section h4 {
    color: #8b6914;
    border-bottom-color: #e8d48a;
}

/* Responsive */
@media (max-width: 480px) {
    .ppm-details-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .ppm-details-modal-header {
        flex-direction: column;
        padding: 16px 16px 12px;
    }

    .ppm-details-modal-body {
        padding: 14px 16px 18px;
    }

    .ppm-detail-title-wrap h3 {
        font-size: 16px;
    }
}

/* ===== Medical Group Cards ===== */
.ppm-group-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ppm-group-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    transition: border-color 0.2s;
}

.ppm-group-card:hover {
    border-color: #0073aa;
}

.ppm-group-card.ppm-group-selected {
    border-color: #46b450;
    background: #f0faf0;
}

.ppm-group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.ppm-group-card-header h4 {
    margin: 0;
    font-size: 14px;
    color: #1e3a5f;
}

.ppm-group-card-body {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.ppm-group-card-body p {
    margin: 3px 0;
}

.ppm-group-desc {
    font-style: italic;
    color: #777;
}

.ppm-group-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.ppm-group-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ppm-group-card-compact {
    padding: 10px;
}

.ppm-group-card-compact .ppm-group-card-body {
    margin-bottom: 8px;
}

#ppm-filter-count {
    padding: 8px 12px;
    background: #e8f1fa;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ===== Collapsible Drawers ===== */
.ppm-drawer {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
}

.ppm-drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.ppm-drawer-header:hover {
    background: #f5f7fa;
}

.ppm-drawer-header h3,
.ppm-drawer-header h4 {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppm-drawer-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
    width: 14px;
    text-align: center;
}

.ppm-drawer.ppm-drawer-open > .ppm-drawer-header .ppm-drawer-arrow {
    transform: rotate(90deg);
}

.ppm-drawer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
}

.ppm-drawer-content {
    padding: 0 16px 16px;
}

/* Remove extra section padding inside drawers */
.ppm-drawer .ppm-group-cards-grid,
.ppm-drawer .ppm-physicians-grid {
    margin-top: 10px;
}
