:root {
    --gold: #b8973a;
    --gold-light: #d4b05a;
    --gold-pale: #f5edda;
    --navy: #0f1e35;
    --navy-mid: #1a2f4a;
    --slate: #4a5568;
    --silver: #e8edf3;
    --white: #ffffff;
    --success: #2d7a5f;
    --danger: #c0392b;
    --shadow-card: 0 4px 32px rgba(15,30,53,0.10);
    --shadow-card: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    --shadow-hover: 0 8px 40px rgba(15,30,53,0.16);
    --radius: 14px;
    --radius-sm: 8px;
}

/* Page Banner */
.BW-etailWrp {
    background-image: url('/website/assets/img/Blocks/General/gate.jpg');
    padding: 70px 0;
    background-position: top;
}
.BW-upcoming-pro-wrp { background: transparent; }
#eli_text_id { display: none; }
#eli_text_id a { color: var(--gold); }

@media screen and (max-width: 768px) {
    .ballot_wrap p { text-align: justify !important; }
}
.loader_content main { min-height: auto; }

/* ─── Search Section ─── */
.fs-search-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 30px 26px;
    border-top: 4px solid var(--gold);
}
.fs-search-card .form-label {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 8px;
}
.fs-search-card .form-control {
    border: 1.5px solid var(--silver);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    padding: 10px 14px;
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}
.fs-search-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,151,58,0.15);
    outline: none;
}
.fs-search-card .grad_btn {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    padding: 11px 24px;
    color: var(--white);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 2px 10px rgba(15,30,53,0.18);
}
.fs-search-card .grad_btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184,151,58,0.28);
}

/* ─── Result Card ─── */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.25s;
    animation: fadeSlideUp 0.4s ease both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.result-card-header .header-icon {
    width: 42px;
    height: 42px;
    background: rgba(184,151,58,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.result-card-header .header-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.result-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}
.result-card-header .header-badge {
    margin-left: auto;
    background: rgba(184,151,58,0.22);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ─── Info Table ─── */
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table tr {
    border-bottom: 1px solid var(--silver);
    transition: background 0.15s;
}
.info-table tr:last-child { border-bottom: none; }
.info-table tr:hover { background: var(--gold-pale); }

.info-table td {
    padding: 14px 28px;
    font-size: 0.9rem;
    vertical-align: middle;
}
.info-table td:first-child {
    font-weight: 600;
    color: var(--slate);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 42%;
    border-right: 1px solid var(--silver);
    background: #f8f9fb;
}
.info-table td:last-child {
    color: var(--navy);
    font-weight: 500;
}
.info-table td:last-child span {
    display: inline-block;
}

/* Status badge in unit details */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}
.status-badge-active {
    background: rgba(45,122,95,0.1);
    color: var(--success);
    border: 1px solid rgba(45,122,95,0.25);
}
.status-badge-pending {
    background: rgba(184,151,58,0.12);
    color: #9a7d28;
    border: 1px solid rgba(184,151,58,0.3);
}

/* ─── Merged Reg List ─── */
.merged-list-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: fadeSlideUp 0.45s ease both;
    animation-delay: 0.08s;
}
.merged-list-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 16px 24px;
}
.merged-list-header h3 {
    font-size: 1rem;
    color: var(--navy);
    margin: 0;
    font-weight: 700;
}

/* JS-generated merge tables */
#myTable .table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
#myTable .table td {
    padding: 13px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--silver);
}
#myTable .table tr:last-child td { border-bottom: none; }
#myTable .table tr:hover td { background: var(--gold-pale); }

/* ─── No Record State ─── */
.no_record {
    padding: 48px 24px;
    text-align: center;
}
.no_record h2 {
    color: var(--danger);
    font-size: 1.4rem;
    font-weight: 600;
}

/* ─── Unit Details Section Header ─── */
.unit-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    padding: 15px;
    border-bottom: 1px solid var(--silver);
    display: flex;
    align-items: center;
    gap: 10px;
}
.unit-section-title .unit-status-inline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

/* Loader */
.loader_wrapper {
    border-radius: var(--radius);
    justify-content: center;
    align-items: center;
}

/* Section spacing */
.ballot_wrap { padding-bottom: 60px; }
.ballot_wrap > p {
    color: var(--slate);
    font-size: 0.95rem;
}