/* Minimal styles for Sell Shares shortcode - accessible, responsive card/table + accordion */
.investor-page-badge {
    background:#f1f5f9;
    border-left:4px solid #2b6cb0;
    padding:12px 16px;
    margin:12px 0;
    border-radius:4px;
    color:#0f172a;
}
/* Contributions-like header wrapper (mirrors admin contributions styles) */
.im-contributions-wrap {
    max-width: 100%;
}

.im-contributions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    gap: 12px;
}

.im-contributions-header .wp-heading-inline {
    font-size: 22px;
    margin: 0;
}

.im-page-badge {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 12px 16px;
    border-radius: 4px;
    color: #333;
    margin: 8px 0 16px 0;
}

.wp-header-end {
    border: 0;
    height: 1px;
    display: block;
    margin: 0 0 16px 0;
    box-shadow: inset 0 -1px 0 #e6edf3;
}
.investor-card { background:#fff; border:1px solid #e6edf3; border-radius:6px; box-shadow:0 1px 2px rgba(15,23,42,0.03); margin:12px 0; }
.investor-card-header { padding:12px 16px; border-bottom:1px solid #f0f6fb; }
.investor-card-body { padding:16px; }
.investor-controls { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.investor-filter .investor-input { padding:8px 10px; border:1px solid #cbd5e1; border-radius:4px; max-width:320px; width:100%; }
.investor-table-wrap { overflow:auto; }
.investor-table { width:100%; border-collapse:collapse; }
.investor-table th, .investor-table td { padding:10px 12px; border-bottom:1px solid #f1f5f9; text-align:left; }
.investor-table th button.investor-sort { background:none; border:0; font-weight:600; cursor:pointer; }
.investor-table tr:nth-child(even) { background:#fbfdff; }
.screen-reader-text { position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.investor-accordion { display:none; }
.investor-form-actions { margin-top:12px; }

/* Currently Listed Shares Section */
.investor-listed-card { border-color: #e3f2fd; }
.investor-listed-card .investor-card-header { background: #f8f9fa; }
.investor-card-subtitle { margin: 4px 0 0 0; font-size: 14px; color: #6c757d; font-weight: normal; }

/* Status indicators */
.status-approved { color: #28a745; font-weight: 600; }
.status-pending { color: #ffc107; font-weight: 600; }

/* Listings details section */
.investor-listings-details { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; padding: 16px; }
.investor-listings-details h4 { margin-top: 0; color: #495057; }
.investor-listings-grid { display: grid; gap: 12px; }
.investor-listing-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 12px; border: 1px solid #e9ecef; border-radius: 4px; }
.investor-listing-info { flex: 1; }
.investor-listing-actions { margin-left: 16px; }
.investor-pending-notice { color: #6c757d; font-style: italic; }

/* No data message */
.investor-no-data { text-align: center; color: #6c757d; padding: 20px; font-style: italic; }

/* Responsive: show accordion on small screens, hide table inputs */
@media (max-width: 768px) {
    .investor-table { display:none; }
    .investor-accordion { display:block; }
    .investor-controls { flex-direction:column; align-items:stretch; }
    .investor-listing-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .investor-listing-actions { margin-left: 0; align-self: stretch; }
}

@media (max-width: 480px) {
    .im-contributions-header { flex-direction: column; align-items: flex-start; }
    .im-page-badge { width: 100%; }
}

/* Sell request status badges */
.investor-status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.investor-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.investor-status-badge.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.investor-status-badge.status-declined {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.investor-status-badge.status-listed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
