/* ÖVKT Mitgliederverwaltung – dashboard.css */

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
.oevkt-wrap * { box-sizing: border-box; }

.oevkt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1e2d3d;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.oevkt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #f4f6f9;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.oevkt-search-wrap { display: flex; gap: 8px; flex: 1 1 280px; }
.oevkt-search-wrap input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #c3c9d4;
    border-radius: 4px;
    font-size: 13px;
}

.oevkt-filter-wrap { display: flex; gap: 8px; align-items: center; }
.oevkt-filter-wrap label { font-weight: 600; white-space: nowrap; }
.oevkt-filter-wrap select {
    padding: 7px 10px;
    border: 1px solid #c3c9d4;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.oevkt-counts {
    margin-left: auto;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.oevkt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #005b96;
    color: #fff;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.oevkt-btn:hover { background: #004678; }
.oevkt-btn:disabled { opacity: .5; cursor: not-allowed; }

.oevkt-btn-sm { padding: 4px 10px; font-size: 12px; font-weight: 500; }

.oevkt-btn-save     { background: #005b96; }
.oevkt-btn-activate { background: #1a7a4a; }
.oevkt-btn-activate:hover { background: #145e38; }
.oevkt-btn-reject   { background: #c0392b; }
.oevkt-btn-reject:hover   { background: #962d22; }

/* ── Notice ───────────────────────────────────────────────────────────────── */
.oevkt-notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 13px;
    border-left: 4px solid transparent;
}
.oevkt-success { background: #eaf7ee; border-color: #1a7a4a; color: #1a4a2e; }
.oevkt-error   { background: #fdecea; border-color: #c0392b; color: #7b1e14; }
.oevkt-info    { background: #e8f0fb; border-color: #005b96; color: #003d6b; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.oevkt-table-wrap { overflow-x: auto; margin-bottom: 12px; }

.oevkt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.oevkt-table thead {
    background: #005b96;
    color: #fff;
}
.oevkt-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.oevkt-table tbody tr:nth-child(even) { background: #f8f9fb; }
.oevkt-table tbody tr:hover           { background: #eef3fa; }
.oevkt-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #dde1e7;
    vertical-align: middle;
}

.oevkt-loading { text-align: center; color: #777; padding: 24px; }
.oevkt-empty   { text-align: center; color: #999; padding: 24px; font-style: italic; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.oevkt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.oevkt-badge-pending  { background: #fff3cd; color: #856404; }
.oevkt-badge-approved { background: #d1f0de; color: #155724; }
.oevkt-badge-rejected { background: #fde8e8; color: #7b1e14; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.oevkt-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.oevkt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99990;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.oevkt-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    width: 100%;
    max-width: 680px;
    position: relative;
    padding: 28px 32px 24px;
}

.oevkt-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
}
.oevkt-modal-close:hover { background: #f0f0f0; color: #222; }

#oevkt-modal-title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    color: #1e2d3d;
    padding-right: 32px;
    border-bottom: 2px solid #005b96;
    padding-bottom: 10px;
}

/* ── Modal sections ───────────────────────────────────────────────────────── */
.oevkt-modal-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.oevkt-modal-section:last-of-type { border-bottom: none; }
.oevkt-modal-section h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #005b96;
}

.oevkt-field-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 6px 14px;
    align-items: start;
    margin-bottom: 8px;
    font-size: 13px;
}
.oevkt-field-row label {
    font-weight: 600;
    color: #444;
    padding-top: 6px;
    white-space: nowrap;
}
.oevkt-field-row input[type="text"],
.oevkt-field-row input[type="date"],
.oevkt-field-row textarea {
    width: 100%;
    padding: 6px 9px;
    border: 1px solid #c3c9d4;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}
.oevkt-field-row input:disabled,
.oevkt-field-row textarea:disabled { background: #f5f5f5; color: #666; }
.oevkt-field-row textarea { resize: vertical; min-height: 70px; }
.oevkt-field-row span { padding-top: 6px; }

.req { color: #c0392b; }

/* ── Modal actions ────────────────────────────────────────────────────────── */
.oevkt-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #eee;
    margin-top: 4px;
}
.oevkt-info { margin: 0; font-size: 13px; color: #555; font-style: italic; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .oevkt-toolbar { flex-direction: column; align-items: stretch; }
    .oevkt-counts  { margin-left: 0; }
    .oevkt-field-row { grid-template-columns: 1fr; }
    .oevkt-field-row label { padding-top: 0; }
    .oevkt-modal { padding: 20px 16px; }
}
