:root {
    --page-background: #f5f8fb;
    --surface: #ffffff;
    --surface-soft: #eef7f6;
    --text: #183042;
    --text-soft: #5a6f7d;
    --primary: #0067c5;
    --primary-dark: #004b91;
    --accent: #16a98b;
    --border: #dce6ec;
    --shadow: 0 18px 45px rgba(20, 52, 74, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(22,169,139,0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
    color: var(--text);
}

.container {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.admin-header {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.tagline {
    color: var(--text-soft);
    margin-top: 5px;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

main {
    padding: 70px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

form {
    margin-top: 20px;
}

label {
    font-weight: 700;
}

input,
select {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.error {
    color: #b00020;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--surface-soft);
}

/* Workforce Ready Admin Branding */

.admin-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo {
    width: 90px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 600px) {

    .admin-logo {
        width: 60px;
    }

    .admin-branding {
        gap: 10px;
    }

}


/* Admin back navigation */

.back-button {
    display: inline-block;
    margin-bottom: 20px;
}


/* Admin page components */

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-description {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.status-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.status-card h3 {
    margin-top: 0;
}

.status {
    font-weight: 800;
}

.status-new {
    color: var(--primary);
}

.status-success {
    color: var(--accent);
}

.table-container {
    overflow-x: auto;
    margin-top: 25px;
}

.action-button {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

footer {
    padding: 30px 0;
    color: var(--text-soft);
    text-align: center;
}

@media (max-width: 700px) {

    .admin-nav {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

}



/* WRS EMPLOYER ENQUIRIES UPLIFT */

.wrs-enquiries-page .page-header {
    margin-bottom: 1.5rem;
}

.wrs-enquiry-search {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.7fr) auto auto;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.wrs-enquiry-search label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.wrs-enquiry-search input,
.wrs-enquiry-search select {
    width: 100%;
    min-height: 42px;
}

.wrs-enquiries-page .table-container {
    overflow-x: auto;
    border-radius: 12px;
}

.wrs-enquiries-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.wrs-enquiries-table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.wrs-enquiries-table td {
    vertical-align: top;
    line-height: 1.35;
}

.wrs-enquiries-table th,
.wrs-enquiries-table td {
    padding: 0.9rem 0.8rem;
}

.wrs-enquiries-table th:nth-child(1),
.wrs-enquiries-table td:nth-child(1) {
    min-width: 110px;
}

.wrs-enquiries-table th:nth-child(2),
.wrs-enquiries-table td:nth-child(2) {
    min-width: 150px;
}

.wrs-enquiries-table th:nth-child(3),
.wrs-enquiries-table td:nth-child(3) {
    min-width: 110px;
}

.wrs-enquiries-table th:nth-child(4),
.wrs-enquiries-table td:nth-child(4) {
    min-width: 110px;
}

.wrs-enquiries-table th:nth-child(5),
.wrs-enquiries-table td:nth-child(5) {
    min-width: 130px;
}

.wrs-enquiries-table th:nth-child(8),
.wrs-enquiries-table td:nth-child(8) {
    min-width: 170px;
}

.wrs-enquiries-table th:nth-child(9),
.wrs-enquiries-table td:nth-child(9) {
    min-width: 210px;
}

.wrs-date {
    white-space: nowrap;
    color: #435766;
}

.wrs-status {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    background: #eef4f5;
    color: #0d3043;
}

.wrs-status-completed {
    background: #e8f7ef;
    color: #17613a;
}

.wrs-status-ready-for-app {
    background: #e8f4fb;
    color: #075f91;
}

.wrs-status-email-failed {
    background: #fff0f0;
    color: #9a2f2f;
}

.wrs-payment-cell small {
    display: block;
    margin-top: 0.3rem;
    color: #5c6d77;
    line-height: 1.3;
}

.wrs-action-cell {
    font-size: 0.92rem;
}

.wrs-action-cell form {
    display: grid;
    gap: 0.6rem;
}

.wrs-action-cell label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.wrs-action-cell input {
    width: 100%;
}

@media (max-width: 900px) {
    .wrs-enquiry-search {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .wrs-enquiry-search {
        grid-template-columns: 1fr;
    }
}


/* WRS SECURITY THREAT DASHBOARD */

.wrs-security-section {
    margin-top: 50px;
}

.wrs-security-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: #eef4f5;
    border-left: 6px solid #70818a;
    box-shadow: var(--shadow);
}

.wrs-security-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
}

.wrs-security-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wrs-security-healthy {
    background: #e8f7ef;
    border-left-color: #2a9d65;
}

.wrs-security-attention {
    background: #fff7df;
    border-left-color: #d89a20;
}

.wrs-security-critical {
    background: #fff0f0;
    border-left-color: #c84646;
}

.wrs-security-grid {
    margin-top: 24px;
}

.wrs-security-grid .card {
    border-top: 4px solid #00a7a7;
}

.wrs-security-grid h3 {
    color: #0d3043;
}

.wrs-security-note {
    color: #5d6f79;
    font-size: 0.9rem;
    line-height: 1.45;
}

.wrs-security-attention-card {
    border-top-color: #d89a20 !important;
}

.wrs-security-attention-card ul {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.wrs-security-attention-card li {
    margin-bottom: 0.55rem;
}

.wrs-security-sources {
    margin-top: 24px;
}

.wrs-security-source-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.wrs-security-source-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(13, 48, 67, 0.10);
}

.wrs-security-source-list > div:last-child {
    border-bottom: 0;
}

@media (max-width: 650px) {
    .wrs-security-summary {
        display: block;
    }

    .wrs-security-summary small {
        display: block;
        margin-top: 0.75rem;
    }

    .wrs-security-source-list > div {
        display: block;
    }
}
