/* WMI Dashboard - Minimal Popup and Table Styles */

/* WMI Dashboard container - wraps everything with proper spacing */
.wmi-dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    margin-bottom: 32px;
}

/* WMI Map container - full width and responsive */
.wmi-map-container {
    width: 100%;
    margin-bottom: 24px;
}

.wmi-dashboard-map {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px !important;
    height: auto !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

/* WMI Map title positioning - now above the map */
.wmi-map-container .map-title {
    position: static !important;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    pointer-events: auto !important;
}

/* Original breadcrumb map container - keep existing styles */
.breadcrumb-map {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Original map title positioning for other maps */
.map-title {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

/* Map popup styles */
.wmi-popup {
    min-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wmi-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wmi-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.wmi-popup-link {
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
}

.wmi-popup-link:hover {
    color: #334155;
}

.wmi-popup-details {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.wmi-popup-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

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

.wmi-popup-label {
    color: #64748b;
    font-weight: 500;
}

.wmi-popup-value {
    color: #334155;
    font-family: 'SF Mono', Monaco, monospace;
}

.wmi-popup-actions {
    display: flex;
    gap: 8px;
}

.wmi-popup-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.wmi-popup-btn-primary {
    background: #1e40af;
    color: white;
}

.wmi-popup-btn-primary:hover {
    background: #1d4ed8;
}

.wmi-popup-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.wmi-popup-btn-secondary:hover {
    background: #e2e8f0;
}

/* Location table styles */
.wmi-table {
    margin-top: 24px;
    width: 100%;
}

.wmi-table-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.wmi-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    width: 100%;
}

.wmi-table-element {
    width: 100%;
    border-collapse: collapse;
}

.wmi-table-header {
    background: #f8fafc;
}

.wmi-table-header th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.wmi-table-header th:first-child {
    padding-left: 24px;
}

.wmi-table-row {
    border-bottom: 1px solid #f1f5f9;
}

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

.wmi-table-cell {
    padding: 12px 16px;
}

.wmi-table-cell:first-child {
    padding-left: 24px;
}

.wmi-table-cell-primary {
    font-weight: 500;
    color: #1e293b;
}

.wmi-table-cell-secondary {
    color: #64748b;
}

.wmi-table-cell-mono {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.wmi-table-cell-center {
    text-align: center;
}

.wmi-table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wmi-table-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}