/* ============================================================
   genotyping-tables.css — Gestion des tables de génotypage
   ============================================================ */

.gt-page {
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Header ---- */
.gt-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gt-header h1 {
    font-size: 1.6rem;
    color: #005068;
    margin: 0;
}

.gt-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.btn-gt-refresh {
    background: #005068;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
}
.btn-gt-refresh:hover { background: #007a9a; }

/* ---- Tabs ---- */
.gt-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #005068;
    margin-bottom: 24px;
}

.gt-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 6px 6px 0 0;
    transition: color 0.2s, background 0.2s;
}
.gt-tab:hover { background: #f0f7fa; color: #005068; }
.gt-tab.active {
    color: #005068;
    border-bottom-color: #005068;
    background: #f0f7fa;
}

.gt-tab-panel { display: none; }
.gt-tab-panel.active { display: block; }

/* ---- Loading / empty / error ---- */
.gt-loading, .gt-empty, .gt-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1rem;
}
.gt-loading i, .gt-empty i { font-size: 2.5rem; display: block; margin-bottom: 14px; color: #bbb; }
.gt-error { color: #c62828; }
.gt-error i { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ---- Summary bar ---- */
.gt-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.gt-summary-total {
    color: #444;
}

.gt-summary-missing {
    color: #e65100;
    font-weight: 600;
}

.gt-summary-ok {
    color: #2e7d32;
    font-weight: 600;
}

/* ---- Table ---- */
.gt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.gt-table thead th {
    background: #005068;
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gt-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.gt-table tbody tr:last-child { border-bottom: none; }
.gt-table tbody tr:hover { background: #f5fafd; }

.gt-table td {
    padding: 11px 14px;
    vertical-align: middle;
}

.gt-array-name {
    font-weight: 600;
    color: #005068;
}
.gt-array-name i { margin-right: 6px; color: #007a9a; }

.gt-table-name code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    color: #333;
}

.gt-row-count {
    text-align: right;
    color: #555;
    font-variant-numeric: tabular-nums;
}

/* ---- Badges ---- */
.gt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gt-badge-exists {
    background: #e8f5e9;
    color: #2e7d32;
}

.gt-badge-missing {
    background: #fce4ec;
    color: #c62828;
}

/* ---- Create button ---- */
.btn-gt-create {
    background: #005068;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-gt-create:hover { background: #007a9a; }
.btn-gt-create:disabled { opacity: 0.6; cursor: not-allowed; }

.gt-action-none {
    color: #bbb;
}
