﻿.hrc-tool-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
    font-family: Arial, sans-serif;
}

.hrc-tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hrc-tool-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.hrc-tool-sub {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.hrc-tool-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hrc-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

    .hrc-btn:hover {
        filter: brightness(0.98);
    }

.hrc-btn-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.hrc-btn-secondary {
    background: #f9fafb;
}

.hrc-tool-disclaimer {
    margin-top: 14px;
    background: #fff3cd;
    border-left: 4px solid #f4b400;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.hrc-tool-form {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.hrc-form-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 160px;
    gap: 12px;
}

@media (max-width: 820px) {
    .hrc-form-row {
        grid-template-columns: 1fr;
    }
}

.hrc-field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.hrc-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 10px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

    .hrc-input:focus {
        box-shadow: 0 0 0 4px rgba(17,24,39,.08);
    }

.hrc-field-btn {
    display: flex;
    flex-direction: column;
}

.hrc-valerr {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 12px;
}

.hrc-smallnote {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.hrc-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 820px) {
    .hrc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hrc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.hrc-card-wide {
    grid-column: span 4;
}

@media (max-width: 820px) {
    .hrc-card-wide {
        grid-column: span 2;
    }
}

.hrc-k {
    font-size: 12px;
    color: #6b7280;
}

.hrc-v {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.hrc-micro {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.hrc-range {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.hrc-badge {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hrc-rtext {
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    min-width: 240px;
}

.hrc-footnote {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}
.hrc-info {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
    color: #374151;
}

    .hrc-info ul {
        margin: 8px 0 0 18px;
        padding: 0;
    }

    .hrc-info li {
        margin-bottom: 6px;
    }
/* =========================
   Reference Conversion Table
   ========================= */
.hrc-ref {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.hrc-ref-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hrc-ref-title {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.hrc-ref-sub {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.hrc-ref-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.hrc-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px; /* mobile horizontal scroll */
}

    .hrc-ref-table th,
    .hrc-ref-table td {
        padding: 10px 12px;
        font-size: 13px;
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
        text-align: center;
        color: #111827;
    }

        .hrc-ref-table th:last-child,
        .hrc-ref-table td:last-child {
            border-right: none;
        }

    .hrc-ref-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        font-weight: 700;
    }

/* Column-wise professional colors 
.col-hrc {
    background: #eef2ff;
}
 light indigo 
.col-hb {
    background: #f5f3eb;
}
 warm sand/grey 
.col-hv {
    background: #ecfdf5;
}
 light mint 
.col-hrb {
    background: #fffbeb;
}
 soft amber 
.col-mpa {
    background: #fff1f2;
}
 soft rose 

.hrc-ref-table tbody tr:hover td {
    filter: brightness(0.985);
}

.hrc-ref-divider td {
    font-weight: 700;
    color: #6b7280;
}
*/

/* Reference Table (SteelExpress style) */
/* =========================
   Reference Conversion Table
   (Single system: .hrc-ref-table)
   ========================= */

.hrc-ref-card {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17,24,39,.08);
}

.hrc-ref-head {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fafafa;
}

.hrc-ref-title {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
}

.hrc-ref-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* Scroll container */
.hrc-ref-wrap {
    overflow: auto;
    max-height: 560px;
    border-top: 0;
}

/* Table */
.hrc-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    table-layout: fixed; /* Column alignment lock */
    font-size: 14px;
}

    /* Header cells */
    .hrc-ref-table thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #f3f4f6; /* Important for sticky */
        text-align:center;
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 700;
        white-space: nowrap;
        color: #111827;
    }

    .hrc-ref-table thead .th-sub {
        font-size: 12px;
        color: #6b7280;
        font-weight: 600;
    }

    /* Body cells */
    .hrc-ref-table tbody td {
        padding: 10px 14px;
        border-bottom: 1px solid #eef2f7;
        white-space: nowrap;
        color: #111827;
    }

    /* Zebra + hover */
    .hrc-ref-table tbody tr:nth-child(even) {
        background: #fcfcfd;
    }

    .hrc-ref-table tbody tr:hover {
        background: #fff7d6;
    }

/* Divider row */
.hrc-ref-divider td {
    background: #f9fafb;
    font-weight: 700;
    color: #111827;
}

/* Optional: fixed widths to avoid header/data drift */
.hrc-ref-table .col-hrc {
    width: 16%;
}

.hrc-ref-table .col-hb {
    width: 18%;
}

.hrc-ref-table .col-hv {
    width: 18%;
}

.hrc-ref-table .col-hrb {
    width: 18%;
}

.hrc-ref-table .col-mpa {
    width: 30%;
}

/* Footnote */
.hrc-footnote {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}
