:root {
    --nwc-navy: #072e65;
    --nwc-navy-dark: #041d42;
    --nwc-orange: #F97000;
    --nwc-orange-hover: #E36500;
    --nwc-white: #ffffff;
    --nwc-page: #f3f6fa;
    --nwc-surface: #ffffff;
    --nwc-border: #dce3ec;
    --nwc-text: #17263b;
    --nwc-muted: #68778b;
    --nwc-success: #19734a;
    --nwc-warning: #98600a;
    --nwc-danger: #a83232;
    --nwc-sidebar-width: 252px;
    --nwc-shadow: 0 2px 10px rgba(7, 46, 101, .06);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--nwc-text);
    background: var(--nwc-page);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--nwc-page);
    color: var(--nwc-text);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--nwc-navy);
    text-decoration: none;
}

a:hover {
    color: var(--nwc-orange);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--nwc-navy);
    border-radius: 0;
    background: var(--nwc-navy);
    color: var(--nwc-white);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

button:hover,
.button:hover {
    border-color: var(--nwc-navy-dark);
    background: var(--nwc-navy-dark);
    color: var(--nwc-white);
}

.button-orange {
    border-color: var(--nwc-orange);
    background: var(--nwc-orange);
    color: var(--nwc-white);
}

.button-orange:hover {
    border-color: var(--nwc-orange-hover);
    background: var(--nwc-orange-hover);
}

.button-outline {
    border-color: var(--nwc-border);
    background: var(--nwc-white);
    color: var(--nwc-navy);
}

.button-outline:hover {
    border-color: var(--nwc-navy);
    background: #f4f7fb;
    color: var(--nwc-navy);
}

.button-danger {
    border-color: var(--nwc-danger);
    background: var(--nwc-danger);
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: var(--nwc-white);
    color: var(--nwc-text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(249, 112, 0, .2);
    border-color: var(--nwc-orange);
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--nwc-text);
    font-size: 13px;
    font-weight: 700;
}

:focus-visible {
    outline: 2px solid var(--nwc-orange);
    outline-offset: 2px;
}

.nwc-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 0 6%;
    border-bottom: 3px solid var(--nwc-orange);
    background: var(--nwc-white);
}

.nwc-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--nwc-navy);
}

.nwc-brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    background: var(--nwc-navy);
    color: var(--nwc-white);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -1px;
}

.nwc-brand-name {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1.2;
}

.nwc-brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--nwc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nwc-public-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.nwc-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 7% 100px;
    background: var(--nwc-navy);
    color: var(--nwc-white);
}

.nwc-hero::after {
    position: absolute;
    top: -170px;
    right: -100px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .12);
    content: "";
    transform: rotate(35deg);
}

.nwc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.nwc-eyebrow {
    margin: 0 0 16px;
    color: var(--nwc-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nwc-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.nwc-hero p {
    max-width: 650px;
    margin: 0 0 30px;
    color: #dce6f3;
    font-size: 17px;
    line-height: 1.8;
}

.nwc-section {
    padding: 64px 7%;
}

.nwc-section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.nwc-section-heading h2 {
    margin: 0 0 10px;
    color: var(--nwc-navy);
    font-size: 30px;
}

.nwc-section-heading p {
    margin: 0;
    color: var(--nwc-muted);
    font-size: 15px;
}

.nwc-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nwc-feature {
    min-height: 180px;
    padding: 25px;
    border: 1px solid var(--nwc-border);
    border-top: 3px solid var(--nwc-orange);
    background: var(--nwc-white);
    box-shadow: var(--nwc-shadow);
}

.nwc-feature h3 {
    margin: 0 0 10px;
    color: var(--nwc-navy);
    font-size: 18px;
}

.nwc-feature p {
    margin: 0;
    color: var(--nwc-muted);
    line-height: 1.7;
}

.nwc-public-footer {
    padding: 26px 7%;
    background: var(--nwc-navy-dark);
    color: #dce6f3;
    font-size: 12px;
}

.nwc-auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    background: var(--nwc-white);
}

.nwc-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 8%;
    background: var(--nwc-navy);
    color: var(--nwc-white);
}

.nwc-auth-panel h1 {
    max-width: 560px;
    margin: auto 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.15;
}

.nwc-auth-panel p {
    max-width: 520px;
    color: #dce6f3;
    font-size: 16px;
    line-height: 1.8;
}

.nwc-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 9%;
}

.nwc-auth-form {
    width: 100%;
    max-width: 420px;
}

.nwc-auth-form h2 {
    margin: 0 0 8px;
    color: var(--nwc-navy);
    font-size: 30px;
}

.nwc-auth-form > p {
    margin: 0 0 28px;
    color: var(--nwc-muted);
}

.nwc-form-field {
    margin-bottom: 18px;
}

.nwc-form-field input {
    margin-top: 7px;
}

.nwc-auth-form button {
    width: 100%;
    margin-top: 8px;
}

.nwc-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid var(--nwc-danger);
    background: #fff1f1;
    color: #762323;
}

.nwc-app {
    min-height: 100vh;
}

.nwc-sidebar {
    position: fixed;
    z-index: 10;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--nwc-sidebar-width);
    flex-direction: column;
    background: var(--nwc-navy-dark);
    color: var(--nwc-white);
}

.nwc-sidebar-brand {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 17px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--nwc-white);
}

.nwc-sidebar-brand .nwc-brand-mark {
    flex: 0 0 44px;
    background: var(--nwc-orange);
}

.nwc-sidebar-brand .nwc-brand-name {
    color: var(--nwc-white);
    font-size: 13px;
}

.nwc-sidebar-brand .nwc-brand-subtitle {
    color: #bdcbe0;
    font-size: 9px;
}

.nwc-sidebar-label {
    margin: 27px 22px 10px;
    color: #aebed4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nwc-sidebar-nav {
    display: grid;
    gap: 4px;
    padding: 0 12px;
}

.nwc-sidebar-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    color: #e0e8f3;
    font-weight: 600;
}

.nwc-sidebar-nav a:hover,
.nwc-sidebar-nav a.active {
    border-left-color: var(--nwc-orange);
    background: rgba(255, 255, 255, .09);
    color: var(--nwc-white);
}

.nwc-sidebar-nav a.active {
    background: rgba(255, 255, 255, .14);
}

.nwc-sidebar-spacer {
    flex: 1;
}

.nwc-sidebar-bottom {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #bdcbe0;
    font-size: 12px;
}

.nwc-workspace {
    min-height: 100vh;
    margin-left: var(--nwc-sidebar-width);
}

.nwc-topbar {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 34px;
    border-bottom: 1px solid var(--nwc-border);
    background: var(--nwc-white);
}

.nwc-topbar-title {
    color: var(--nwc-navy);
    font-size: 17px;
    font-weight: 800;
}

.nwc-topbar-user {
    color: var(--nwc-muted);
    font-size: 13px;
}

.nwc-topbar-user strong {
    color: var(--nwc-text);
}

.nwc-topbar form {
    display: inline;
    margin-left: 16px;
}

.nwc-topbar button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
}

.nwc-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px;
}

.nwc-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.nwc-page-heading h1 {
    margin: 0 0 5px;
    color: var(--nwc-navy);
    font-size: 27px;
}

.nwc-page-heading p {
    margin: 0;
    color: var(--nwc-muted);
}

.nwc-breadcrumb {
    margin-bottom: 10px;
    color: var(--nwc-muted);
    font-size: 12px;
}

.nwc-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

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

.nwc-card-label {
    margin-bottom: 10px;
    color: var(--nwc-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nwc-card-value {
    color: var(--nwc-navy);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.nwc-card-note {
    margin-top: 8px;
    color: var(--nwc-muted);
    font-size: 12px;
}

.nwc-panel {
    margin-bottom: 24px;
    border: 1px solid var(--nwc-border);
    background: var(--nwc-white);
    box-shadow: var(--nwc-shadow);
}

.nwc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--nwc-border);
}

.nwc-panel-header h2 {
    margin: 0;
    color: var(--nwc-navy);
    font-size: 17px;
}

.nwc-panel-body {
    padding: 22px;
}

.nwc-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.nwc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--nwc-white);
}

.nwc-table th,
.nwc-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--nwc-border);
    text-align: left;
    vertical-align: middle;
}

.nwc-table th {
    background: #f5f7fa;
    color: var(--nwc-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.nwc-table td {
    font-size: 13px;
}

.nwc-table tbody tr:hover {
    background: #f8fafd;
}

.nwc-status {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid var(--nwc-border);
    background: #f5f7fa;
    color: var(--nwc-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.nwc-status-active,
.nwc-status-approved {
    border-color: #b9dfca;
    background: #edf8f1;
    color: var(--nwc-success);
}

.nwc-status-pending,
.nwc-status-review {
    border-color: #f0d8a9;
    background: #fff8e9;
    color: var(--nwc-warning);
}

.nwc-status-inactive,
.nwc-status-declined {
    border-color: #edc5c5;
    background: #fff1f1;
    color: var(--nwc-danger);
}

.nwc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nwc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.nwc-inline-form {
    display: inline-flex;
    gap: 6px;
    margin: 2px 4px 2px 0;
}

.nwc-inline-form button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
}

.nwc-muted {
    color: var(--nwc-muted);
}

.nwc-empty-state {
    padding: 35px 20px;
    color: var(--nwc-muted);
    text-align: center;
}

.nwc-mobile-menu {
    display: none;
}

@media (max-width: 1100px) {
    .nwc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --nwc-sidebar-width: 0px;
    }

    .nwc-sidebar {
        position: static;
        width: 100%;
    }

    .nwc-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nwc-sidebar-label,
    .nwc-sidebar-spacer,
    .nwc-sidebar-bottom {
        display: none;
    }

    .nwc-sidebar-brand {
        min-height: 68px;
    }

    .nwc-workspace {
        margin-left: 0;
    }

    .nwc-topbar {
        min-height: 64px;
        padding: 12px 18px;
    }

    .nwc-content {
        padding: 22px 16px;
    }

    .nwc-page-heading {
        flex-direction: column;
    }

    .nwc-feature-grid {
        grid-template-columns: 1fr;
    }

    .nwc-public-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 17px 5%;
    }

    .nwc-public-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nwc-hero {
        padding: 65px 6%;
    }

    .nwc-section {
        padding: 45px 6%;
    }

    .nwc-auth-page {
        grid-template-columns: 1fr;
    }

    .nwc-auth-panel {
        min-height: 230px;
        padding: 28px 7%;
    }

    .nwc-auth-panel h1 {
        margin: 30px 0 10px;
        font-size: 32px;
    }

    .nwc-auth-panel p {
        margin-bottom: 0;
        font-size: 14px;
    }

    .nwc-auth-form-wrap {
        padding: 40px 7%;
    }

    .nwc-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nwc-card-grid {
        grid-template-columns: 1fr;
    }

    .nwc-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nwc-topbar form {
        margin-left: 8px;
    }

    .nwc-sidebar-nav {
        grid-template-columns: 1fr 1fr;
    }
}


/* Step 21U-N: actual NWC logo image */
.nwc-brand-logo {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
}

.nwc-sidebar-brand .nwc-brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}


/* Step 21U-R: login brand name contrast */
.nwc-auth-panel .nwc-brand .nwc-brand-name {
    color: #ffffff;
}

.nwc-auth-panel .nwc-brand:hover .nwc-brand-name {
    color: var(--nwc-orange);
}
