* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.tab-groups {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.tab:hover {
    border-color: #4a6cf7;
    color: #4a6cf7;
}

.tab.active {
    background: #4a6cf7;
    border-color: #4a6cf7;
    color: #fff;
}

.tab-pro {
    border-color: #e8a820;
    color: #b88415;
}

.tab-pro:hover {
    border-color: #d4951a;
    color: #d4951a;
}

.tab-pro.active {
    background: #e8a820;
    border-color: #e8a820;
    color: #fff;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: #4a6cf7;
}

.content-area {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

thead th {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

tbody tr:hover {
    background: #e8ecff;
}

tbody tr.active {
    background: #d0d8ff;
}

tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.detail-panel {
    width: 450px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
    position: sticky;
    top: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.detail-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.detail-content h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.detail-id {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.detail-division {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.detail-ytd {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #4a6cf7;
}

.detail-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #444;
}

.records-table {
    font-size: 0.85rem;
}

.records-table thead th {
    padding: 8px 10px;
    font-size: 0.8rem;
}

.records-table tbody td {
    padding: 6px 10px;
}

@media (max-width: 800px) {
    .content-area {
        flex-direction: column;
    }
    .detail-panel {
        width: 100%;
        position: static;
        max-height: none;
    }
    .tab-groups {
        flex-direction: column;
        gap: 12px;
    }
}
