﻿/* ── Variables ── */
:root {
    --steel: #1e3a5f;
    --steel-d: #163050;
    --green: #51a121;
    --green-d: #3d7114;
    --ink: #0d1117;
    --line: rgba(30,58,95,0.13);
    --mist: #eef1f5;
    --paper: #f9f8f7;
}

/* ── Page wrapper ── */
.eir-page {
    background: var(--paper);
    min-height: calc(100vh - 100px);
    padding: 2rem 1rem 4rem;
}

/* ── Content wrapper ── */
.eir-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Page header row ── */
.eir-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.eir-page-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    border-bottom: 3px solid #4d7e15;
    font-size: 1.75rem;
}

.eir-page-title-hr {
    border: none;
    border-top: 1.5px solid var(--line);
    margin-bottom: 1.5rem;
}

/* ── Back button ── */
.eir-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

    .eir-back:hover {
        background: var(--green-d);
        color: #fff;
        text-decoration: none;
    }

/* ── Note banner ── */
.eir-note {
    background: #e8e8ce;
    border: 1px solid #4d7e15;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    font-size: 0.84rem;
    color: #212529;
}

    .eir-note i {
        margin-top: 2px;
        flex-shrink: 0;
    }

/* ── Card ── */
.eir-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.eir-card-body {
    padding: 1.5rem 1.75rem;
}

/* ── Tab switcher ── */
.eir-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    background: #eef0f2;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.eir-tab-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

    .eir-tab-btn.active {
        background: #4d7e15;
        color: #fff;
    }

/* ── Tab panels ── */
.eir-tab-panel {
    display: none;
}

    .eir-tab-panel.active {
        display: block;
    }

/* ── Field label ── */
.eir-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    /*color: var(--steel);*/
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Input ── */
.eir-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--green);
    border-radius: 6px;
    padding: 0.62rem 0.9rem;
    font-size: 0.92rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

    .eir-input:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(30,58,95,0.09);
    }

    .eir-input.uppercase {
        text-transform: uppercase;
    }

/* ── Exclusivity warning ── */
.eir-excl-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    color: #92400e;
    display: none;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

/* ── CAPTCHA ── */
.eir-captcha-wrap {
    background: #f7f9fb;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.eir-captcha-img {
    border: 1.5px solid var(--line);
    border-radius: 6px;
    height: 52px;
    width: auto;
    display: block;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}

.eir-captcha-reload {
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    padding: 6px 9px;
    cursor: pointer;
    color: #9aa3af;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

    .eir-captcha-reload:hover {
        border-color: var(--steel);
        color: var(--steel);
    }

.eir-captcha-input {
    width: 17rem;
    padding: 0.58rem 0.9rem;
    border: 1.5px solid var(--green);
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    /*letter-spacing: 0.14em;*/
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--ink);
    font-family: monospace;
}

    .eir-captcha-input:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(30,58,95,0.09);
    }

/* ── Submit button ── */
.eir-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #589e1e;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

    .eir-btn-submit:hover {
        background: #3d7114;
        box-shadow: 0 4px 14px rgba(37,99,235,0.25);
    }

/* ── Alert banners ── */
.eir-alert {
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.84rem;
    margin-bottom: 1.1rem;
}

.eir-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.eir-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ── Results header ── */
.eir-results-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .eir-results-header h2 {
        font-size: 0.95rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
    }

/* ── Badges ── */
.eir-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
}

.eir-badge-blue {
    background: #e8e8ce;
    color: #212529;
}

.eir-badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.eir-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.eir-badge-count {
    background: #e8e8ce;
    color: #212529;
    margin-left: auto;
}

/* ── Table ── */
.eir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

    .eir-table thead tr {
        background: var(--steel);
    }

    .eir-table thead th {
        padding: 0.65rem 1rem;
        text-align: left;
        font-size: 0.69rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: #ffff;
        white-space: nowrap;
        background: var(--green);
    }

    .eir-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.12s;
    }

        .eir-table tbody tr:last-child {
            border-bottom: none;
        }

        .eir-table tbody tr:hover {
            background: #f8fafc;
        }

    .eir-table td {
        padding: 0.7rem 1rem;
        color: #374151;
        vertical-align: middle;
    }

        .eir-table td.mono {
            font-weight: 700;
            color: var(--steel);
            font-size: 0.82rem;
        }

/* ── Table action buttons ── */
.eir-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #4a90e2;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}

    .eir-btn-view:hover {
        background: #3a7ac2;
    }

.eir-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}

    .eir-btn-pdf:hover {
        background: var(--green-d);
    }

/* ── Mobile cards ── */
.eir-mobile-card {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

    .eir-mobile-card:last-child {
        border-bottom: none;
    }

.eir-mobile-card-id {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--steel);
    margin-bottom: 0.55rem;
}

.eir-mobile-card-row {
    font-size: 0.82rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.28rem;
}

    .eir-mobile-card-row i {
        color: #9aa3af;
        width: 14px;
        text-align: center;
        flex-shrink: 0;
    }

.eir-mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

    .eir-mobile-card-actions button {
        flex: 1;
        justify-content: center;
    }

/* ── Empty state ── */
.eir-empty {
    text-align: center;
    padding: 3.5rem 2rem;
}

.eir-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    opacity: 0.6;
}

.eir-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}

.eir-empty p {
    font-size: 0.82rem;
    color: #9aa3af;
}

/* ── Modal ── */
#eirModal .eir-modal-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

#eirModal .eir-modal-header {
    background: var(--green);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#eirModal .eir-modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eir-modal-btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s;
}

    .eir-modal-btn-dl:hover {
        background: rgba(255,255,255,0.25);
    }

.eir-modal-btn-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 4px;
    display: inline-flex;
    transition: color 0.2s;
}

    .eir-modal-btn-close:hover {
        color: #fff;
    }

#eirModal .eir-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0.7rem;
}

#eirModal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

/* ── Fade animation ── */
@keyframes eirFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eir-fade {
    animation: eirFadeUp 0.3s ease both;
}

.eir-fade-2 {
    animation: eirFadeUp 0.3s ease 0.06s both;
}

.eir-fade-3 {
    animation: eirFadeUp 0.3s ease 0.12s both;
}

@media (max-width: 640px) {
    .eir-card-body {
        padding: 1.1rem 1rem;
    }
}
@keyframes eirSpin {
    to {
        transform: rotate(360deg);
    }
}