:root {
    --canvas: #f4f1ea;
    --surface: #fffdf8;
    --ink: #17202a;
    --muted: #68727b;
    --line: #d9d5cc;
    --lime: #b7d334;
    --blue: #2454a6;
    --green: #2f714d;
    --orange: #c27a16;
    --red: #b43b3b;
    --sidebar: #151b20;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: #f7f2e9;
    display: flex;
    flex: 0 0 248px;
    flex-direction: column;
    min-height: 100vh;
    padding: 25px 16px;
    position: sticky;
    top: 0;
}

.brand {
    align-items: center;
    display: flex;
    font: 800 19px Manrope;
    gap: 10px;
    padding: 0 11px;
}

.brand-mark {
    align-items: center;
    background: var(--lime);
    color: var(--ink);
    display: inline-flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.brand small,
.sidebar-role small,
.sidebar-footer small,
.profile small,
.company-menu small {
    color: #879198;
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.sidebar-role {
    border-bottom: 1px solid #30383d;
    border-top: 1px solid #30383d;
    margin: 30px 0 18px;
    padding: 17px 11px;
}

.sidebar-role strong {
    display: block;
    font: 600 13px Manrope;
    margin-top: 8px;
}

.eyebrow,
.metric-label {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sidebar .eyebrow {
    color: #8c9699;
}

.nav-group {
    margin-bottom: 23px;
}

.nav-group > .eyebrow {
    padding: 0 11px 8px;
}

.nav-link {
    align-items: center;
    color: #aeb5b7;
    display: flex;
    gap: 12px;
    padding: 10px 11px;
}

.nav-link:hover,
.nav-link.active {
    background: #263036;
    color: white;
}

.nav-link span {
    width: 18px;
}

.nav-link b {
    background: #394b3b;
    border-radius: 10px;
    color: #d8ed72;
    font-size: 11px;
    margin-left: auto;
    padding: 2px 7px;
}

.sidebar-footer {
    align-items: center;
    border-top: 1px solid #30383d;
    display: flex;
    gap: 9px;
    margin-top: auto;
    padding: 18px 11px 0;
}

.demo-dot {
    background: var(--lime);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    align-items: center;
    background: rgba(255, 253, 248, .95);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    height: 72px;
    padding: 0 clamp(18px, 4vw, 52px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.company-picker {
    position: relative;
}

.company-button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    gap: 9px;
    padding: 8px 11px;
}

.company-logo,
.initials {
    align-items: center;
    background: #e8efc4;
    display: inline-flex;
    justify-content: center;
}

.company-logo {
    height: 25px;
    width: 25px;
}

.company-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px #17202a18;
    left: 0;
    padding: 15px;
    position: absolute;
    top: 47px;
    width: 245px;
    z-index: 20;
}

.company-option {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    gap: 10px;
    padding: 9px 0;
    text-align: left;
    width: 100%;
}

.company-option:hover {
    color: var(--blue);
    cursor: pointer;
}

.company-option b {
    align-items: center;
    background: #eef2d0;
    display: flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.company-option span {
    font-weight: 600;
}

.search {
    align-items: center;
    background: #eeeae2;
    display: flex;
    gap: 8px;
    max-width: 400px;
    padding: 9px 12px;
    width: 100%;
}

.search input {
    background: transparent;
    border: 0;
    outline: 0;
    width: 100%;
}

.top-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.icon-button {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
}

.profile {
    align-items: center;
    display: flex;
    gap: 9px;
}

.avatar {
    align-items: center;
    background: var(--ink);
    color: var(--lime);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.content {
    margin: 0 auto;
    max-width: 1536px;
    padding: 39px clamp(18px, 4vw, 52px) 70px;
}

.flash {
    background: #e9f4df;
    border: 1px solid #bad69c;
    color: var(--green);
    margin-bottom: 22px;
    padding: 12px 15px;
}

.page-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 31px;
}

.page-heading h1 {
    font: 800 clamp(29px, 3vw, 44px) Manrope;
    letter-spacing: -.07em;
    line-height: 1;
    margin: 10px 0;
}

.page-heading p {
    color: var(--muted);
    max-width: 620px;
}

.badge,
.status {
    display: inline-flex;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    padding: 5px 8px;
    text-transform: uppercase;
}

.badge-blue,
.status-probation,
.status-applied {
    background: #dfe9fa;
    color: var(--blue);
}

.badge-green,
.status-active,
.status-paid,
.status-hired {
    background: #e2f1e3;
    color: var(--green);
}

.status-pending,
.status-screening {
    background: #faecd4;
    color: var(--orange);
}

.status-risk {
    background: #f8e1df;
    color: var(--red);
}

.button {
    background: transparent;
    border: 1px solid var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    padding: 10px 14px;
}

.button:hover {
    background: var(--ink);
    color: var(--surface);
}

.button-primary {
    background: var(--lime);
    border-color: var(--lime);
}

.metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 30px;
}

.metric,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 19px;
}

.metric {
    min-height: 128px;
}

.metric-value {
    font: 800 clamp(25px, 2.4vw, 34px) Manrope;
    letter-spacing: -.06em;
    margin: 14px 0 5px;
}

.metric-foot {
    color: var(--green);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
}

.grid-2 {
    display: grid;
    gap: 18px;
    grid-template-columns: 2fr 1fr;
}

.grid-2-equal {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.panel {
    margin-bottom: 18px;
}

.panel h2,
.panel h3 {
    font-family: Manrope;
    margin: 0 0 5px;
}

.panel-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 20px;
}

.chart {
    align-items: flex-end;
    background: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent 45px,
        #e9e5dc 46px
    );
    display: flex;
    gap: 10px;
    height: 190px;
    padding: 10px 5px 0;
}

.bar {
    background: var(--lime);
    min-height: 12px;
    position: relative;
    width: 100%;
}

.bar:nth-child(2n) {
    background: #82a8d8;
}

.bar small {
    bottom: -20px;
    color: var(--muted);
    font-size: 10px;
    left: 0;
    position: absolute;
}

.line-chart {
    height: 190px;
}

.line-chart svg {
    height: 100%;
    width: 100%;
}

.line-chart polyline {
    fill: none;
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.data-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.data-list li {
    align-items: center;
    border-bottom: 1px solid #ece8df;
    display: flex;
    gap: 12px;
    padding: 13px 0;
}

.initials {
    flex: 0 0 34px;
    font-size: 11px;
    height: 34px;
    width: 34px;
}

.list-copy {
    flex: 1;
    min-width: 0;
}

.list-copy strong {
    display: block;
    font-size: 13px;
}

.list-copy small {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

.activity-time {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    white-space: nowrap;
}

.progress-row {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.progress-row label {
    font-size: 12px;
    width: 90px;
}

.progress {
    background: #eeeae2;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.progress i {
    background: var(--lime);
    display: block;
    height: 100%;
}

.toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-input,
.filter-select {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 11px 12px;
}

.filter-input {
    min-width: 280px;
}

.table-wrap {
    border: 1px solid var(--line);
    overflow-x: auto;
}

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th {
    background: #f1eee7;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    padding: 13px 16px;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    border-top: 1px solid #ebe7df;
    padding: 14px 16px;
}

.funnel {
    display: grid;
    gap: 10px;
}

.funnel-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.funnel-row span:first-child {
    font-size: 12px;
    width: 90px;
}

.funnel-bar {
    background: #dfe9fa;
    height: 25px;
}

.funnel-row strong {
    font-size: 12px;
}

.notice {
    background: #f5f8e5;
    border-left: 3px solid var(--lime);
    padding: 14px;
}

.notice strong {
    display: block;
    font-family: Manrope;
    margin-bottom: 5px;
}

.notice p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.mobile-menu {
    background: none;
    border: 0;
    display: none;
    font-size: 22px;
}

.mobile-backdrop {
    display: none;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 1080px) {
    .metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-2,
    .grid-2-equal {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .sidebar {
        left: -260px;
        position: fixed;
        transition: left .2s;
        z-index: 10;
    }

    .sidebar.is-open {
        left: 0;
    }

    .mobile-backdrop {
        background: #17202a55;
        display: block;
        inset: 0;
        position: fixed;
        z-index: 9;
    }

    .mobile-menu {
        display: block;
    }

    .search,
    .profile-copy {
        display: none;
    }

    .topbar {
        height: 62px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-input {
        min-width: 0;
        width: 100%;
    }
}