﻿/* Organization Details Page Styles - Complete Version */
.organization-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* NEW: Consolidated Address Section Styles */
.address-consolidated-section {
    background: #f8fafc;
    border-left: 4px solid #10b981;
}

.address-group {
    margin-bottom: 1.5rem;
}

    .address-group:last-child {
        margin-bottom: 0;
    }

.address-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d1fae5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-details {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.address-line {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: flex-start;
    gap: 1rem;
}

    .address-line:last-child {
        margin-bottom: 0;
    }

.address-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.address-value {
    color: #1f2937;
    flex: 1;
    word-break: break-word;
    font-size: 0.875rem;
}

/* Contact Addresses List */
.contact-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-address-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .contact-address-item:hover {
        border-color: #d1d5db;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .contact-address-item.primary-contact {
        border-left: 3px solid #3b82f6;
        background: #eff6ff;
    }

    .contact-address-item.expired-contact {
        border-left: 3px solid #ef4444;
        background: #fef2f2;
        opacity: 0.85;
    }

.contact-address-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.contact-address-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.primary-badge-small {
    background: #3b82f6;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expired-badge-small {
    background: #ef4444;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-type-small {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

.contact-address-value {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.4;
}

    .contact-address-value i {
        color: #6b7280;
        margin-top: 0.125rem;
        flex-shrink: 0;
    }

/* Contact Address Priority Badge Styles */
.contact-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.contact-priority-badge.priority-1 { background: #dc2626; }
.contact-priority-badge.priority-2 { background: #ea580c; }
.contact-priority-badge.priority-3 { background: #d97706; }
.contact-priority-badge.priority-4 { background: #059669; }
.contact-priority-badge.priority-5 { background: #0891b2; }
.contact-priority-badge.priority-6 { background: #7c3aed; }
.contact-priority-badge.priority-other { background: #6b7280; }

/* Update contact address header to accommodate priority badge */
.contact-address-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile responsiveness for address section */
@media (max-width: 768px) {
    .address-line {
        flex-direction: column;
        gap: 0.25rem;
    }

    .address-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .address-value {
        font-size: 0.8rem;
    }

    .contact-address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-address-value {
        font-size: 0.8rem;
    }
}

/* High contrast mode for address section */
@media (prefers-contrast: high) {
    .address-consolidated-section {
        border-left: 4px solid #000;
        background: #fff;
    }

    .address-group-title {
        color: #000;
        border-bottom-color: #000;
    }

    .contact-address-item.primary-contact {
        border-left-color: #000;
        background: #fff;
    }

    .contact-address-item.expired-contact {
        border-left-color: #000;
        background: #fff;
    }

    .primary-badge-small,
    .expired-badge-small {
        background: #000;
        color: #fff;
    }

    .contact-priority-badge {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }
}

/* Contacts Section Styles */
.contacts-section {
    grid-column: 1 / -1;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .contact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .contact-card.primary {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
    }

    .contact-card.expired {
        opacity: 0.7;
        border-color: #ef4444;
        background: #fef2f2;
    }

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.primary-badge {
    background: #3b82f6;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.contact-title {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-status {
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .contact-detail i {
        color: #64748b;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .contact-detail a {
        color: #3b82f6;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .contact-detail a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

    .contact-detail.expired-info {
        color: #ef4444;
        font-style: italic;
    }

        .contact-detail.expired-info i {
            color: #ef4444;
        }

.contact-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.contact-priority-badge.priority-1 {
    background: #dc2626; /* Red for President/Chair */
}

.contact-priority-badge.priority-2 {
    background: #ea580c; /* Orange for Vice President */
}

.contact-priority-badge.priority-3 {
    background: #d97706; /* Amber for Treasurer */
}

.contact-priority-badge.priority-4 {
    background: #059669; /* Green for Secretary */
}

.contact-priority-badge.priority-5 {
    background: #0891b2; /* Cyan for Board Member */
}

.contact-priority-badge.priority-6 {
    background: #7c3aed; /* Purple for Commissioner */
}

.contact-priority-badge.priority-other {
    background: #6b7280; /* Gray for Others */
}

/* Mobile Responsiveness for Contacts */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .contact-name {
        font-size: 1rem;
    }

    .contact-detail {
        font-size: 0.8rem;
    }
}

/* High Contrast Mode for Contacts */
@media (prefers-contrast: high) {
    .contact-card.primary {
        border: 2px solid #000;
        background: #fff;
    }

    .contact-card.expired {
        border: 2px solid #000;
        background: #fff;
    }

    .primary-badge {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }

    .contact-priority-badge {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }
}

/* Success Header Styles (for Created.cshtml) */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Details Header Styles (for Details.cshtml) */
.details-header {
    background: linear-gradient(135deg, #296e4e 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    flex: 1;
}

    .header-content h1 {
        margin: 0 0 1rem 0;
        font-size: 2.5rem;
        font-weight: 700;
    }

.organization-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.organization-id,
.status-badge,
.organization-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.organization-id {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #10b981;
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.organization-type-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Card Styles (for Created.cshtml) */
.organization-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background: #f7fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

/* Details Content Styles (for Details.cshtml) */
.details-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
}

/* Detail Section Styles */
.detail-section {
    padding: 2rem;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Legacy support for Created.cshtml */
.details-grid .detail-section {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    border-right: none;
    border-bottom: none;
}

/* New Details.cshtml styles override */
.details-content .detail-section {
    padding: 2rem;
    background: white;
    border-radius: 0;
    border-left: none;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

    .details-content .detail-section:nth-child(even) {
        background: #f8fafc;
    }

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legacy section title for Created.cshtml */
.card-body .section-title {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
    gap: 1rem;
}

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

.detail-label {
    font-weight: 600;
    color: #64748b;
    min-width: 140px;
    flex-shrink: 0;
}

/* Legacy label styles for Created.cshtml */
.card-body .detail-label {
    color: #4a5568;
    min-width: 120px;
    margin-right: 1rem;
}

.detail-value {
    color: #1e293b;
    flex: 1;
    word-break: break-word;
}

/* Legacy value styles for Created.cshtml */
.card-body .detail-value {
    color: #2d3748;
}

.detail-value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .detail-value a:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

    /* Legacy link styles for Created.cshtml */
.card-body .detail-value a {
    color: #667eea;
}

    .card-body .detail-value a:hover {
        color: #5a67d8;
    }

.services-section {
    grid-column: 1 / -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.service-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.service-description {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Admin Only Section */
.admin-only {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b;
}

    .admin-only .section-title {
        color: #92400e;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
        color: white;
        text-decoration: none;
    }

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

    .btn-secondary:hover {
        background: #cbd5e0;
        transform: translateY(-1px);
        color: #4a5568;
        text-decoration: none;
    }

.header-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .header-actions .btn-primary:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
        box-shadow: none;
    }

.header-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .header-actions .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
    }

/* Icons */
.icon-check-circle::before {
    content: "✅";
}

.icon-plus::before {
    content: "➕";
}

.icon-home::before {
    content: "🏠";
}

.icon-arrow-left::before {
    content: "←";
}

.icon-edit::before {
    content: "✏️";
}

.icon-search::before {
    content: "🔍";
}

.icon-external-link::before {
    content: "🔗";
}

/* Contact Ranking Information Styles */
.contact-ranking-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ranking-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.ranking-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #3b82f6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .ranking-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #1d4ed8;
    }

    .ranking-toggle[aria-expanded="true"] .toggle-icon {
        transform: rotate(180deg);
    }

.toggle-text {
    font-weight: 500;
}

.toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.ranking-details {
    padding: 1.25rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

.ranking-description {
    margin: 0 0 1rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ranking-hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hierarchy-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.priority-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.priority-1 .priority-number {
    background: #dc2626;
}
/* Red for President */
.priority-2 .priority-number {
    background: #ea580c;
}
/* Orange for Secretary */
.priority-3 .priority-number {
    background: #d97706;
}
/* Amber for Treasurer */
.priority-4 .priority-number {
    background: #059669;
}
/* Green for Chair */
.priority-5 .priority-number {
    background: #0891b2;
}
/* Cyan for Vice President */
.priority-other .priority-number {
    background: #6b7280;
}
/* Gray for Others */

.priority-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    flex-shrink: 0;
    min-width: 80px;
}

.priority-description {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
    flex: 1;
}

.ranking-notes {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
}

    .ranking-notes p {
        margin: 0;
        font-size: 0.8rem;
        color: #92400e;
        line-height: 1.5;
    }

/* Enhanced Primary Badge with Tooltip */
.primary-badge {
    background: #3b82f6;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    cursor: help;
}

/* Icons */
.icon-info-circle::before {
    content: "ℹ️";
}

/* Mobile Responsiveness for Ranking Info */
@media (max-width: 768px) {
    .ranking-hierarchy {
        grid-template-columns: 1fr;
    }

    .hierarchy-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .priority-title {
        min-width: 70px;
        font-size: 0.8rem;
    }

    .priority-description {
        font-size: 0.7rem;
    }

    .ranking-details {
        padding: 1rem;
    }
}

/* High Contrast Mode for Ranking Info */
@media (prefers-contrast: high) {
    .contact-ranking-info {
        border: 2px solid #000;
    }

    .hierarchy-item {
        border: 1px solid #000;
    }

    .priority-number {
        background: #000;
        color: #fff;
    }
}

/* Lakes Information Styles */
.lakes-detail-section {
    margin-top: 1rem;
}

.lakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lake-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .lake-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.lake-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.wbic-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wbic-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

.wbic-value {
    background: #3b82f6;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.unknown-lake {
    color: #6b7280;
    font-style: italic;
    font-size: 0.875rem;
}

/* Search Results Lake Display Styles */
.lakes-info {
    grid-column: 1 / -1; /* Take full width when there are multiple lakes */
}

.lakes-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lake-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lake-name {
    font-weight: 500;
    color: #1e293b;
}

.wbic-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.more-lakes .more-indicator {
    color: #6b7280;
    font-style: italic;
    font-size: 0.8rem;
}

/* Mobile responsiveness for lakes */
@media (max-width: 768px) {
    .lakes-grid {
        grid-template-columns: 1fr;
    }

    .lake-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }

    .lakes-info {
        grid-column: auto;
    }
}

/* High contrast mode for lakes */
@media (prefers-contrast: high) {
    .lake-card {
        border: 2px solid #000;
    }

    .wbic-value {
        background: #000;
        color: #fff;
    }

    .wbic-badge {
        background: #000;
        color: #fff;
    }
}

/* Compact Lakes Section Styles */
.lakes-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

    .lakes-section-header .section-title {
        margin: 0;
        flex-shrink: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

.lakes-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

    .lakes-toggle:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #475569;
    }

    .lakes-toggle[aria-expanded="true"] {
        background: #e0f2fe;
        border-color: #0891b2;
        color: #0e7490;
    }

        .lakes-toggle[aria-expanded="true"] .lakes-toggle-icon {
            transform: rotate(180deg);
        }

.lakes-summary {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lakes-toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.lakes-detail-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    animation: slideDown 0.3s ease;
}

/* Simple List for Small Numbers (≤6 lakes) */
.lakes-simple-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lake-simple-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    gap: 1rem;
}

    .lake-simple-item .lake-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
    }

    .lake-simple-item .lake-name {
        font-weight: 500;
        color: #1e293b;
    }

    .lake-simple-item .wbic-compact {
        background: #e0f2fe;
        color: #0369a1;
        padding: 0.125rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
    }

.unknown-lake-compact {
    color: #64748b;
    font-style: italic;
    font-size: 0.875rem;
}

/* Lake Action Buttons */
.lake-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-lake-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

    .btn-lake-action span {
        white-space: nowrap;
    }

.btn-search {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

    .btn-search:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-dnr {
    background: #059669;
    color: white;
    border-color: #059669;
}

    .btn-dnr:hover {
        background: #047857;
        border-color: #047857;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* Compact Grid for Larger Numbers (>6 lakes) */
.lakes-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem;
}

.lake-compact-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .lake-compact-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

.lake-compact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.lake-name-compact {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.875rem;
    line-height: 1.2;
}

.lakes-compact-grid .wbic-compact {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    align-self: flex-start;
}

.lakes-compact-grid .unknown-lake-compact {
    color: #64748b;
    font-style: italic;
    font-size: 0.8rem;
}

/* Compact Lake Action Buttons */
.lake-actions-compact {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-start;
}

.btn-lake-action-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-search-compact {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

    .btn-search-compact:hover {
        background: #2563eb;
        border-color: #2563eb;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-dnr-compact {
    background: #059669;
    color: white;
    border-color: #059669;
}

    .btn-dnr-compact:hover {
        background: #047857;
        border-color: #047857;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* Scrollbar styling for the grid */
.lakes-compact-grid::-webkit-scrollbar {
    width: 6px;
}

.lakes-compact-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.lakes-compact-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .lakes-compact-grid::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .organization-details-container {
        padding: 1rem;
    }

    .success-header {
        padding: 1.5rem;
    }

    .success-title {
        font-size: 2rem;
    }

    .details-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .organization-meta {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .card-header,
    .card-body {
        padding: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .details-content .details-grid {
        gap: 0;
    }

    .detail-section {
        padding: 1rem;
    }

    .details-content .detail-section {
        border-right: none;
        padding: 1.5rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .details-content .detail-row {
        gap: 0.5rem;
    }

    .detail-label {
        min-width: auto;
        margin-right: 0;
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .lakes-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .lakes-compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: 250px;
    }

    .lakes-toggle {
        font-size: 0.8rem;
    }

    .lake-simple-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .lake-actions {
        justify-content: flex-start;
        margin-top: 0.25rem;
    }

    .btn-lake-action span {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .organization-details-container {
        max-width: none;
        padding: 0;
    }

    .details-header,
    .success-header {
        background: #f8fafc !important;
        color: #1e293b !important;
        box-shadow: none;
    }

    .header-actions,
    .action-buttons {
        display: none;
    }

    .details-content,
    .organization-details-card {
        box-shadow: none;
    }

    .detail-section {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .status-badge.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }

    .status-badge.expired {
        background: #000;
        color: #fff;
        border-color: #000;
    }

    .organization-type-badge {
        background: #000;
        color: #fff;
        border-color: #000;
    }

    .btn-search,
    .btn-search-compact {
        background: #000;
        color: #fff;
        border-color: #000;
    }

    .btn-dnr,
    .btn-dnr-compact {
        background: #000;
        color: #fff;
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn:hover,
    .service-card:hover {
        transform: none;
    }

    .detail-value a,
    .btn {
        transition: none;
    }
}

/* Animation for content reveal */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 400px;
        transform: translateY(0);
    }
}

/* CBCW Button styles */
.lake-actions .btn-cbcw-reports {
    flex-shrink: 0;
    white-space: nowrap;
}

.lake-actions-compact .btn-cbcw-reports {
    flex-shrink: 0;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-item.primary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
}

.contact-item.expired {
    opacity: 0.7;
    border-color: #ef4444;
    background: #fef2f2;
}

.contact-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-title {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-detail-item i {
    color: #64748b;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-detail-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-detail-item.expired-info {
    color: #ef4444;
    font-style: italic;
}

.contact-detail-item.expired-info i {
    color: #ef4444;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-contact-edit,
.btn-contact-delete {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-contact-edit {
    background: #3b82f6;
    color: white;
}

.btn-contact-edit:hover {
    background: #2563eb;
}

.btn-contact-delete {
    background: #ef4444;
    color: white;
}

.btn-contact-delete:hover {
    background: #dc2626;
}

/* Icon definitions */
.icon-mail::before { content: "✉️"; }
.icon-phone::before { content: "📞"; }
.icon-map-pin::before { content: "📍"; }
.icon-calendar::before { content: "📅"; }
.icon-trash::before { content: "🗑️"; }
.icon-user::before { content: "👤"; }
.icon-key::before { content: "🔑"; }

/* Enhanced ADA Compliance Additions */

/* Focus Indicators - Critical for keyboard navigation */
.btn:focus,
.btn:focus-visible,
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-to-main:focus {
    top: 6px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    /* Ensure all interactive elements have strong borders */
    .btn,
    .btn-lake-action,
    .btn-contact-edit,
    .btn-contact-delete,
    .lakes-toggle,
    .ranking-toggle {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .btn:hover,
    .btn-lake-action:hover,
    .btn-contact-edit:hover,
    .btn-contact-delete:hover {
        background: #000;
        color: #fff;
    }
    
    /* Improve form field visibility */
    input, select, textarea {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .contact-card:hover,
    .lake-card:hover,
    .service-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Color contrast improvements for better WCAG compliance */
.contact-type-small,
.detail-label,
.lake-name,
.wbic-label {
    color: #374151; /* Darker color for better contrast */
}

.contact-address-value i,
.contact-detail i {
    color: #4b5563; /* Better contrast for icons */
}

/* Ensure minimum touch target sizes (44px x 44px minimum) */
.btn,
.btn-lake-action,
.btn-contact-edit,
.btn-contact-delete,
.contact-priority-badge,
.primary-badge {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve text spacing for better readability */
.detail-value,
.contact-address-value,
.service-description {
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Ensure sufficient spacing between interactive elements */
.lake-actions,
.contact-actions,
.action-buttons {
    gap: 0.75rem;
}

.lake-actions .btn-lake-action,
.contact-actions button {
    margin: 0.25rem;
}

/* Temporary Admin Access Button Styles */
.temp-admin-access {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    text-align: center;
}

.btn-temp-admin {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    min-height: 44px; /* ADA touch target compliance */
}

    .btn-temp-admin:hover {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    }

    .btn-temp-admin:focus {
        outline: 2px solid #0066cc;
        outline-offset: 2px;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
    }

    .btn-temp-admin:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    }

    .btn-temp-admin i {
        font-size: 1.1rem;
    }

.temp-admin-help {
    margin-top: 0.75rem;
    color: #166534;
}

    .temp-admin-help small {
        font-size: 0.875rem;
        opacity: 0.9;
    }

/* High contrast mode for temp admin button */
@media (prefers-contrast: high) {
    .temp-admin-access {
        background: #fff;
        border: 2px solid #000;
    }

    .btn-temp-admin {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }

        .btn-temp-admin:hover {
            background: #fff;
            color: #000;
        }

    .temp-admin-help {
        color: #000;
    }
}

/* Reduced motion for temp admin button */
@media (prefers-reduced-motion: reduce) {
    .btn-temp-admin:hover {
        transform: none;
    }
}

/* Organization Details Extended Styles - Dashboard Header & Modal Content */

/* Dashboard Header Styles - ULTRA COMPACT */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
    color: white;
    margin: -1rem -1rem 1rem -1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    display: inline-block;
}

    .breadcrumb-nav a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
    }

.breadcrumb-separator {
    margin: 0 0.35rem;
    color: rgba(255, 255, 255, 0.5);
}

.organization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.organization-title-section {
    flex: 1;
    min-width: 0;
}

.organization-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.organization-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-id {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.badge-status-active {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.badge-status-expired {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.badge-type {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Quick Stats - INLINE HORIZONTAL */
.quick-stats {
    display: flex;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
}

.stat-number {
    font-size: 0.9rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.85;
}

.header-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.primary-actions, .secondary-actions {
    display: flex;
    gap: 0.4rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
}

.header-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

    .header-btn-primary:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
        text-decoration: none;
    }

.header-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

    .header-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
    }

/* Export Dropdown */
.export-section-details {
    position: relative;
}

.export-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 420px;
    max-width: 500px;
    z-index: 9999;
    color: #333;
}

    .export-dropdown.show {
        display: block;
    }

    .export-dropdown h4 {
        margin: 0 0 4px 0;
        color: #2c5aa0;
        font-size: 16px;
    }

    .export-dropdown p {
        margin: 0 0 16px 0;
        color: #666;
        font-size: 14px;
    }

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 70px;
}

    .format-btn:hover, .format-btn.selected {
        border-color: #007bff;
        background: rgba(0, 123, 255, 0.1);
        color: #007bff;
    }

    .format-btn .icon {
        font-size: 20px;
    }

    .format-btn .label {
        font-weight: 600;
        font-size: 12px;
    }

    .format-btn .desc {
        font-size: 10px;
        color: #6c757d;
    }

.columns-section h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.column-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

    .column-actions button {
        background: none;
        border: none;
        color: #007bff;
        text-decoration: underline;
        cursor: pointer;
        font-size: 12px;
        padding: 0;
    }

.columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.export-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 16px;
}

.selected-format {
    color: #666;
    font-size: 14px;
}

.export-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

    .export-btn:hover {
        background: #0056b3;
    }

/* Contact Priority Information Styles */
.contact-priority-info {
    background: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.priority-info-header {
    padding: 0.75rem 1rem;
    background: #0284c7;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

    .priority-info-header:hover {
        background: #0369a1;
    }

.priority-info-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-info-toggle {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

    .priority-info-toggle.expanded {
        transform: rotate(180deg);
    }

.priority-info-content {
    padding: 1rem;
    background: white;
    animation: slideDown 0.3s ease;
}

.priority-info-description {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

.priority-hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.priority-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #0284c7;
}

.priority-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #0284c7;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.priority-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 300px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
    }

    .organization-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .organization-title {
        font-size: 1.75rem;
    }

    .header-actions {
        width: 100%;
    }

    .primary-actions, .secondary-actions {
        flex-direction: column;
    }

    .header-btn {
        justify-content: center;
        width: 100%;
    }

    .export-dropdown {
        position: fixed;
        top: 10px;
        left: 5%;
        right: 5%;
        bottom: 10px;
        transform: none;
        width: 90%;
        max-width: none;
        max-height: none;
        height: auto;
        display: none;
        flex-direction: column;
        overflow: hidden;
    }

        .export-dropdown.show {
            display: flex;
        }

        /* Scrollable content area */
        .export-dropdown .columns-section {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Keep footer always visible at bottom */
    .export-footer {
        flex-shrink: 0;
        background: white;
        margin: 0 -20px -20px -20px;
        padding: 16px 20px;
        border-radius: 0 0 8px 8px;
        position: sticky;
        bottom: 0;
    }

    .priority-hierarchy {
        grid-template-columns: 1fr;
    }

    .priority-item {
        padding: 0.75rem 0.5rem;
    }
}

/* Main Content Styles */
.details-content {
    padding: 0 1rem;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 140px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
}

    .detail-value a {
        color: #007bff;
        text-decoration: none;
    }

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

    .status-badge.active {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.expired {
        background: #f8d7da;
        color: #721c24;
    }

/* Lakes Section */
.lakes-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.lakes-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1976d2;
}

    .lakes-toggle:hover {
        background: #bbdefb;
    }

.lakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lake-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.lake-info {
    margin-bottom: 0.75rem;
}

.lake-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.lake-wbic {
    font-size: 0.85rem;
    color: #666;
}

.lake-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-lake-action {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

    /* Loading state for buttons */
    .btn-lake-action.checking {
        opacity: 0.5;
        cursor: wait;
        pointer-events: none;
    }

        .btn-lake-action.checking::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
        }

/* Lakes Loading Indicator */
.lakes-loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in;
}

.lakes-loading-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1976d2;
    font-weight: 500;
    font-size: 0.95rem;
}

.lakes-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(25, 118, 210, 0.2);
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Individual button colors */
.btn-search {
    background: #28a745;
    color: white;
}

.btn-dnr {
    background: #17a2b8;
    color: white;
}

.btn-clmn {
    background: #6f42c1;
    color: white;
}

.btn-ice {
    background: #fd7e14;
    color: white;
}

.btn-cbcw {
    background: #e83e8c;
    color: white;
}

.btn-lake-action:hover:not(.checking) {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Contacts */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    padding-right: 5rem; /* Add right padding for action buttons */
    position: relative;
}

    .contact-card.primary {
        border-color: #28a745;
        background: #f0fff4;
    }

    .contact-card.expired {
        opacity: 0.7;
        border-color: #dc3545;
    }

.contact-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-name {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge-primary {
    background: #28a745;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.badge-expired {
    background: #dc3545;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.contact-title {
    font-size: 0.85rem;
    color: #666;
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-detail {
    font-size: 0.9rem;
}

.contact-actions {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    opacity: 0.6;
}

    .btn-icon:hover {
        opacity: 1;
    }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.service-card {
    background: #e8f4fd;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 1rem;
}

.service-name {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #1976d2;
}

.service-description {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Utility */
.no-data {
    color: #666;
    font-style: italic;
}

.btn-section-add, .btn-section-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
}

    .btn-section-add:hover, .btn-section-edit:hover {
        opacity: 1;
    }

.admin-section {
    background: #fff8e1;
    border: 1px solid #ffcc02;
}

/* CLMN Modal Styles - FIXED for visibility */
.clmn-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* INCREASED from 1050 to ensure it's on top */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .clmn-modal.show {
        display: flex !important; /* Force display when show class is added */
        opacity: 1;
    }

.clmn-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000; /* Ensure content is above overlay */
}

.clmn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.clmn-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.clmn-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .clmn-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.clmn-modal-body {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.clmn-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.clmn-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6f42c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.clmn-no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.clmn-stations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clmn-station {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.station-info {
    margin-bottom: 1rem;
}

    .station-info strong {
        color: #495057;
        font-size: 1.1rem;
    }

    .station-info span {
        display: block;
        color: #6c757d;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

.station-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.year-select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 120px;
}

.station-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .station-actions button:first-of-type {
        background: #28a745;
        color: white;
    }

        .station-actions button:first-of-type:hover {
            background: #218838;
        }

    .station-actions button:last-of-type {
        background: #dc3545;
        color: white;
    }

        .station-actions button:last-of-type:hover {
            background: #c82333;
        }

/* Responsive styles */
@media (max-width: 768px) {
    .clmn-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .clmn-modal-header,
    .clmn-modal-body {
        padding: 1rem;
    }

    .station-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .year-select,
        .station-actions button {
            width: 100%;
        }
}

/* CBCW Modal Styles - Same structure as CLMN */
.cbcw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .cbcw-modal.show {
        display: flex !important;
        opacity: 1;
    }

.cbcw-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
}

.cbcw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e83e8c 0%, #d63384 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.cbcw-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cbcw-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .cbcw-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.cbcw-modal-body {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.cbcw-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.cbcw-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e83e8c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.cbcw-no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.cbcw-stations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cbcw-station {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

    .cbcw-station .station-info {
        margin-bottom: 1rem;
    }

        .cbcw-station .station-info strong {
            color: #495057;
            font-size: 1.1rem;
        }

        .cbcw-station .station-info span {
            display: block;
            color: #6c757d;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

    .cbcw-station .station-actions {
        display: flex;
        gap: 0.75rem;
    }

.btn-cbcw-view {
    padding: 0.75rem 1.5rem;
    background: #e83e8c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

    .btn-cbcw-view:hover {
        background: #d63384;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(232, 62, 140, 0.3);
        color: white;
        text-decoration: none;
    }

/* Ice Modal Styles - Same structure as CLMN/CBCW */
.ice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .ice-modal.show {
        display: flex !important;
        opacity: 1;
    }

.ice-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
}

.ice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fd7e14 0%, #f76707 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.ice-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ice-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .ice-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.ice-modal-body {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.ice-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.ice-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #fd7e14;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.ice-no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.ice-stations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ice-station {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

    .ice-station .station-info {
        margin-bottom: 1rem;
    }

        .ice-station .station-info strong {
            color: #495057;
            font-size: 1.1rem;
        }

        .ice-station .station-info span {
            display: block;
            color: #6c757d;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

    .ice-station .station-actions {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

.btn-ice-html, .btn-ice-pdf {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-ice-html {
    background: #28a745;
    color: white;
}

    .btn-ice-html:hover {
        background: #218838;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    }

.btn-ice-pdf {
    background: #dc3545;
    color: white;
}

    .btn-ice-pdf:hover {
        background: #c82333;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }

/* Responsive styles */
@media (max-width: 768px) {
    .ice-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .ice-modal-header,
    .ice-modal-body {
        padding: 1rem;
    }

    .ice-station .station-actions {
        flex-direction: column;
    }

    .btn-ice-html, .btn-ice-pdf {
        width: 100%;
        justify-content: center;
    }
}

/* Temp Admin Information Section Styles */
.temp-admin-info {
    background: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.temp-admin-info-header {
    padding: 0.75rem 1rem;
    background: #6c757d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

    .temp-admin-info-header:hover {
        background: #5a6268;
    }

.temp-admin-info-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temp-admin-info-toggle {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

    .temp-admin-info-toggle.expanded {
        transform: rotate(180deg);
    }

.temp-admin-info-content {
    padding: 1.5rem;
    background: white;
    animation: slideDown 0.3s ease;
}

.temp-admin-description {
    margin: 0 0 1.5rem 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
}

.temp-admin-capabilities {
    margin-bottom: 1.5rem;
}

    .temp-admin-capabilities h5 {
        margin: 0 0 0.75rem 0;
        color: #1f2937;
        font-size: 1rem;
        font-weight: 600;
    }

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.capability-icon {
    color: #10b981;
    font-weight: bold;
    margin-top: 0.125rem;
}

.capability-text {
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.4;
}

.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.restriction-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #ef4444;
}

.restriction-icon {
    color: #ef4444;
    font-weight: bold;
    margin-top: 0.125rem;
}

.authorized-roles-section {
    margin-bottom: 1.5rem;
}

    .authorized-roles-section h5 {
        margin: 0 0 0.75rem 0;
        color: #1f2937;
        font-size: 1rem;
        font-weight: 600;
    }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.role-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.temp-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.temp-admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-request-access {
    background: #3b82f6;
    color: white;
}

    .btn-request-access:hover {
        background: #2563eb;
        color: white;
        text-decoration: none;
    }

.btn-contact-support {
    background: #6b7280;
    color: white;
}

    .btn-contact-support:hover {
        background: #4b5563;
        color: white;
        text-decoration: none;
    }

@media (max-width: 768px) {
    .capabilities-grid, .restrictions-grid {
        grid-template-columns: 1fr;
    }

    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .temp-admin-actions {
        flex-direction: column;
    }
}
