@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

#lrf-table-wrap {
    font-family: 'Poppins', Arial, sans-serif;
}

#lrf-export-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lrf-export-btn {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 18px;
    border: 2px solid #ac2522;
    border-radius: 6px;
    background: #fff;
    color: #ac2522;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
    display: inline-block;
}

.lrf-export-btn:hover {
    background: #ac2522;
    color: #fff;
}

#lrf-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.lrf-filter-btn {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 18px;
    border: 2px solid #ac2522;
    border-radius: 6px;
    background: #fff;
    color: #ac2522;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
}

.lrf-filter-btn:hover,
.lrf-filter-btn.active {
    background: #ac2522;
    color: #fff;
}

#lrf-dist-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', Arial, sans-serif;
    table-layout: fixed;
}

#lrf-dist-table th:nth-child(1) { width: 200px; }
/* th:nth-child(2) State / Territory — fills remaining space */
#lrf-dist-table th:nth-child(3) { width: 230px; }
#lrf-dist-table th:nth-child(4) { width: 300px; }

#lrf-dist-table th {
    background: #ac2522;
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
    padding: 12px 16px;
    text-align: left;
    border: none;
}

#lrf-dist-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
    font-size: 0.92em;
    color: #222;
    overflow: hidden;
    word-wrap: break-word;
}

#lrf-dist-table tbody tr:nth-child(odd)  { background: #ffffff; }
#lrf-dist-table tbody tr:nth-child(even) { background: #f5f5f5; }

#lrf-dist-table tbody tr:hover {
    background: #fdf0f0;
}

#lrf-dist-table tbody tr:last-child td {
    border-bottom: none;
}

#lrf-dist-table td p:first-child { margin-top: 0; }
#lrf-dist-table td p:last-child  { margin-bottom: 0; }

.lrf-contact-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lrf-contact-header h4 {
    margin: 0;
    flex: 1;
}

.lrf-expand-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ac2522;
    background: #fff;
    color: #ac2522;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.lrf-expand-btn:hover,
.lrf-expand-btn[aria-expanded="true"] {
    background: #ac2522;
    color: #fff;
}

.lrf-contact-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.lrf-contact-body.is-open {
    max-height: 800px;
}

@media (max-width: 640px) {
    #lrf-dist-table thead {
        display: none;
    }
    #lrf-dist-table,
    #lrf-dist-table tbody,
    #lrf-dist-table tr,
    #lrf-dist-table td {
        display: block;
        width: 100%;
    }
    #lrf-dist-table tbody tr {
        margin-bottom: 16px;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        overflow: hidden;
    }
    #lrf-dist-table td {
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 14px;
    }
    #lrf-dist-table td:last-child {
        border-bottom: none;
    }
    #lrf-dist-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #ac2522;
        display: block;
        margin-bottom: 4px;
        font-size: 0.85em;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    #lrf-dist-table td:empty {
        display: none;
    }
}
