/*-------------------------------------------------------+
| Olympique.ru - Transfers Page Stylesheet
| Classic Compact Football Tables & OM Blue Palette
+--------------------------------------------------------*/

.om-transfers-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* Top bar with Lead & Status Legend */
.om-transfers-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #009ddc;
    border-radius: 4px;
}

.om-transfers-lead {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.om-transfers-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Status Badges */
.om-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.3;
}

.om-status-green {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.om-status-blue {
    background: #f0f9ff;
    color: #009ddc;
    border-color: #bae6fd;
}

.om-status-yellow {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.om-status-red {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Navigation Tabs Bar */
.om-transfers-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

.om-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #0077aa;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.om-tab-btn:hover {
    background: #e0f2fe;
    color: #0077aa;
    border-color: #009ddc;
    text-decoration: none;
}

.om-tab-btn.active {
    background: #009ddc;
    color: #ffffff;
    border-color: #009ddc;
    box-shadow: 0 1px 3px rgba(0, 157, 220, 0.3);
}

.om-tab-btn.active i {
    color: #ffffff;
}

/* Sub-tabs */
.om-subtabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.om-subtab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.om-subtab:hover {
    background: #f0f9ff;
    color: #009ddc;
    border-color: #7dd3fc;
    text-decoration: none;
}

.om-subtab.active {
    background: #002d62;
    color: #ffffff;
    border-color: #002d62;
}

/* Filter Bar */
.om-transfers-filterbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
}

.om-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.om-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.om-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 4px;
}

.om-pill-btn {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.12s ease;
}

.om-pill-btn:hover {
    color: #009ddc;
    background: #ffffff;
    text-decoration: none;
}

.om-pill-btn.active {
    background: #009ddc;
    color: #ffffff;
}

.om-season-select {
    padding: 2px 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #002d62;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #ffffff;
    outline: none;
}

/* Responsive Data Table */
.om-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 14px;
}

.om-transfers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.om-transfers-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.om-transfers-table th {
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #475569;
    white-space: nowrap;
}

.om-transfers-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.om-transfers-table tbody tr:hover {
    background: #f0f9ff;
}

.om-transfers-table.compact th,
.om-transfers-table.compact td {
    padding: 5px 8px;
    font-size: 12px;
}

/* Player Column */
.om-table-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.om-table-player-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
}

.om-table-player-details {
    min-width: 0;
}

.om-table-player-name {
    font-weight: 700;
    font-size: 12.5px;
    color: #002d62;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.om-player-age {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.om-desc-icon {
    font-size: 11px;
    color: #009ddc;
    cursor: help;
}

.om-table-player-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

/* Route Movement (Vertical Stack to fit neatly) */
.om-table-route {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    min-width: 140px;
}

.om-route-line {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-route-line.from {
    color: #475569;
}

.om-route-line.to {
    color: #0f172a;
    font-weight: 600;
}

.om-route-arrow {
    font-size: 9px;
    color: #009ddc;
}

.om-mini-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.om-club-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Values & Tags */
.om-table-subval {
    font-size: 10.5px;
    font-weight: normal;
    color: #64748b;
    margin-top: 1px;
}

.om-season-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #002d62;
    background: #e0f2fe;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.om-table-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.om-table-badge.hit {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.om-table-badge.miss {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Rank Badges */
.om-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10.5px;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
}

.om-rank-badge.rank-1 {
    background: #fef08a;
    color: #854d0e;
}

.om-rank-badge.rank-2 {
    background: #e2e8f0;
    color: #334155;
}

.om-rank-badge.rank-3 {
    background: #fed7aa;
    color: #9a3412;
}

/* Empty State */
.om-table-empty {
    text-align: center;
    padding: 24px 12px;
    color: #64748b;
    font-size: 12.5px;
}

/* Flows Summary */
.om-flows-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12.5px;
}

.om-flow-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.om-flow-stat .label {
    color: #64748b;
    font-weight: 600;
}

.om-flow-stat .value {
    font-weight: 800;
    color: #002d62;
    font-size: 13.5px;
}

.om-flow-stat.spent .value { color: #009ddc; }
.om-flow-stat.earned .value { color: #10b981; }
.om-flow-stat.balance.pos .value { color: #10b981; }
.om-flow-stat.balance.neg .value { color: #ef4444; }
.om-flow-stat .count { color: #94a3b8; font-size: 11px; }

.om-flows-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.om-subblock-title {
    margin: 0 0 6px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #002d62;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Verdict Rows */
.verdict-hit td {
    background: #fdfffe;
}

.verdict-miss td {
    background: #fffdfd;
}

@media screen and (max-width: 768px) {
    .om-transfers-topbar,
    .om-transfers-filterbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .om-transfers-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .om-flows-tables {
        grid-template-columns: 1fr;
    }
}
