:root {
    --yellow: #a4ded8;
    --soft: #e2f4f1;
    --ink: #292929;
    --muted: #747474;
    --line: #d8d8d8;
    --canvas: #f5f5f5
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font: 14px Arial, Helvetica, sans-serif;
    background: var(--canvas)
}

a {
    color: #285f92;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

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

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #c4c4c4;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap
}

button:hover,
.button:hover {
    background: #f5f5f5;
    text-decoration: none
}

.primary {
    background: var(--yellow);
    border-color: #4fbcae;
    font-weight: 600
}

.primary:hover {
    background: #9fdbd3
}

.plain {
    border: 0;
    background: transparent;
    padding: 4px 8px
}

.topbar {
    height: 56px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 38px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 1px 0 #4abbac
}

.brand {
    color: #292929;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px
}

.brand-mark {
    font-size: 28px
}

.workspace {
    font-size: 13px;
    opacity: .7
}

.oauth-callback {
    max-width: 940px;
    margin: 16px auto 40px
}

.oauth-card {
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgb(41 41 41 / 9%)
}

.oauth-card__hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 34px;
    background: linear-gradient(135deg, #e3f4f2 0%, #fff 72%)
}

.oauth-provider {
    display: grid;
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 20px;
    background: #d6001c;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -3px;
    box-shadow: 0 10px 22px rgb(214 0 28 / 22%)
}

.oauth-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #245e56;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.oauth-card__hero h1 {
    margin: 0 0 8px;
    font-size: 26px
}

.oauth-card__hero p,
.oauth-next-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55
}

.oauth-address {
    margin: 0 34px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee
}

.oauth-address span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.oauth-address code {
    display: block;
    overflow-wrap: anywhere;
    color: #292929;
    font-size: 14px
}

.oauth-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 34px;
    background: #e8e8e8
}

.oauth-summary div {
    padding: 20px 18px;
    background: #fff
}

.oauth-summary strong,
.oauth-summary span {
    display: block
}

.oauth-summary strong {
    margin-bottom: 5px
}

.oauth-summary span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4
}

.oauth-content {
    padding: 8px 34px 4px
}

.oauth-section {
    padding: 22px 0;
    border-top: 1px solid #eee
}

.oauth-section:first-child {
    border-top: 0
}

.oauth-section h2 {
    margin: 0 0 12px;
    font-size: 18px
}

.oauth-section p {
    margin: 8px 0 0;
    color: #4f4f4f;
    line-height: 1.65
}

.oauth-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: #3f3f3f;
    line-height: 1.5
}

.oauth-list--checks {
    list-style: "✓  "
}

.oauth-note {
    padding: 12px 14px;
    border-left: 3px solid #43b0a2;
    border-radius: 0 8px 8px 0;
    background: #f4fbfa
}

.oauth-tech-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0
}

.oauth-tech-list div {
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa
}

.oauth-tech-list dt {
    margin-bottom: 6px;
    font-weight: 700
}

.oauth-tech-list dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

.oauth-tech-list code {
    overflow-wrap: anywhere
}

.oauth-section--contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.oauth-section--contact h2,
.oauth-section--contact p {
    margin: 0
}

.oauth-section--contact a {
    color: #292929;
    font-weight: 700
}

.oauth-next-step {
    display: flex;
    gap: 14px;
    margin: 4px 34px 0;
    padding: 20px;
    border-radius: 10px;
    background: #f4f8f1
}

.oauth-next-step__icon {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #48883f;
    color: #fff;
    font-weight: 700
}

.oauth-actions {
    display: flex;
    gap: 10px;
    padding: 24px 34px 30px
}

.oauth-footnote {
    margin: 14px 20px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center
}

@media (max-width: 680px) {
    .oauth-card__hero {
        align-items: flex-start;
        padding: 24px 20px
    }

    .oauth-provider {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 15px;
        font-size: 27px
    }

    .oauth-card__hero h1 {
        font-size: 21px
    }

    .oauth-address,
    .oauth-summary,
    .oauth-next-step {
        margin-right: 20px;
        margin-left: 20px
    }

    .oauth-summary,
    .oauth-tech-list {
        grid-template-columns: 1fr;
        gap: 0
    }

    .oauth-summary div {
        border-bottom: 1px solid #eee
    }

    .oauth-content {
        padding-right: 20px;
        padding-left: 20px
    }

    .oauth-tech-list {
        gap: 10px
    }

    .oauth-section--contact {
        align-items: flex-start;
        flex-direction: column
    }

    .oauth-actions {
        flex-direction: column;
        padding: 22px 20px 24px
    }
}

.account {
    margin-left: auto;
    display: flex;
    gap: 15px;
    align-items: center
}

.account form {
    margin: 0
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 224px;
    background: #efefef;
    border-right: 1px solid #d3d3d3;
    padding-top: 24px;
    display: flex;
    flex-direction: column
}

.nav-caption {
    padding: 0 22px 14px;
    font-size: 11px;
    color: #858585;
    letter-spacing: 1px
}

nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #393939;
    padding: 14px 20px;
    border-left: 3px solid transparent
}

nav a span {
    width: 22px;
    font-size: 20px;
    text-align: center
}

nav a:hover {
    background: #e5e5e5;
    text-decoration: none
}

nav a.active {
    background: var(--soft);
    border-left-color: #3a988c;
    font-weight: 600
}

.sidebar-foot {
    margin-top: auto;
    padding: 20px 22px;
    border-top: 1px solid #ddd;
    line-height: 1.8;
    font-size: 12px;
    color: #7c7c7c
}

main {
    margin: 56px 0 0 224px;
    min-height: calc(100vh - 56px)
}

.tabs {
    background: #e9e9e9;
    height: 41px;
    padding-left: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: end
}

.tab {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-bottom: 0;
    padding: 11px 25px 10px;
    font-size: 13px;
    border-radius: 4px 4px 0 0;
    position: relative;
    top: 1px
}

.content {
    padding: 24px 28px 40px
}

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

.breadcrumb {
    font-size: 12px;
    color: #919191;
    margin-bottom: 9px
}

h1 {
    font-size: 25px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3
}

.actions {
    display: flex;
    gap: 9px
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px
}

.metric {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    border-radius: 3px;
    padding: 19px 20px
}

.metric span {
    display: block;
    color: #666;
    font-size: 13px
}

.metric strong {
    display: block;
    font-size: 36px;
    font-weight: 500;
    margin: 14px 0 9px
}

.metric small {
    color: #909090;
    font-size: 12px
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    background: #fafafa;
    gap: 14px
}

.panel-title .muted {
    font-size: 12px;
    font-weight: 400
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(270px, 1fr);
    gap: 22px
}

.table-scroll {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    text-align: left
}

th {
    background: #f0f0f0;
    font-weight: 500;
    color: #626262;
    white-space: nowrap
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #e3e3e3;
    vertical-align: middle
}

th+th,
td+td {
    border-left: 1px solid #eee
}

tbody tr:hover {
    background: #e8f6f4
}

td small {
    display: block;
    color: #8c8c8c;
    margin-top: 5px
}

.badge {
    display: inline-block;
    background: #def2f0;
    color: #2b7369;
    border: 1px solid #c1e7e2;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap
}

.empty {
    padding: 35px 20px;
    color: #888;
    text-align: center;
    font-size: 13px
}

.stage-summary {
    padding: 5px 17px
}

.stage-summary>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px
}

.stage-summary strong {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 3px 8px
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--line)
}

.toolbar input {
    min-width: 270px
}

.toolbar input[type=checkbox],
.toolbar input[type=radio] {
    width: auto !important;
    min-width: 0;
    margin: 0
}

.toolbar input[type=date] {
    width: auto;
    min-width: 160px
}

.toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer
}

.toolbar .muted {
    margin-left: auto
}

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

input,
select,
textarea {
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 2px;
    padding: 7px 9px;
    color: var(--ink);
    max-width: 100%
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #9fdbd3;
    outline-offset: 1px
}

input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
select {
    min-height: 34px
}

textarea {
    resize: vertical;
    min-height: 75px
}

input[type=date],
input[type=time],
input[type=datetime-local] {
    display: block;
    width: 100%;
    min-width: 0;
    color-scheme: light;
    font-variant-numeric: tabular-nums
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator {
    margin-left: 8px;
    cursor: pointer;
    opacity: .72
}

.pagination {
    display: flex;
    gap: 16px;
    padding: 13px 16px;
    color: #777;
    font-size: 12px
}

.form-panel {
    max-width: 1040px
}

.email-settings-page {
    display: grid;
    gap: 24px;
    max-width: 1080px
}

.email-settings-page .panel {
    margin: 0
}

.email-settings-body {
    padding: 24px 28px 0
}

.email-settings-note {
    padding: 16px 18px;
    border-left: 4px solid var(--yellow);
    border-radius: 3px;
    background: #edf8f7
}

.email-settings-note p {
    margin: 7px 0 0;
    max-width: 760px;
    color: #555;
    line-height: 1.55
}

.email-settings-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
    padding: 12px 14px;
    border: 1px solid #c0d5bb;
    border-radius: 3px;
    background: #edf7ec
}

.email-settings-status>span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #4d8646;
    color: #fff;
    font-weight: 700
}

.email-settings-status strong,
.email-settings-status small {
    display: block
}

.email-settings-status small {
    margin-top: 3px;
    color: #557050
}

.email-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 130px;
    gap: 22px 24px;
    padding: 26px 0
}

.email-settings-grid .email-host,
.email-settings-grid .email-password {
    grid-column: span 2
}

.email-security-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin: 0 0 26px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 3px
}

.email-security-options legend {
    padding: 0 8px;
    font-weight: 600
}

.email-security-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.email-settings-actions {
    margin: 0 -28px;
    padding: 18px 28px
}

.email-test-card {
    max-width: 680px
}

.email-test-body {
    padding: 22px 26px 24px
}

.email-test-body>p {
    margin: 0 0 18px;
    line-height: 1.5
}

.email-test-actions {
    margin-top: 18px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding: 24px
}

.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 7px
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0
}

.field input[type=checkbox],
.field input[type=radio] {
    width: auto
}

.checkbox-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;
    grid-column: 1 / -1
}

.checkbox-field input {
    flex: 0 0 auto;
    margin: 2px 0 0
}

.checkbox-field label {
    flex: 1 1 240px;
    margin: 0;
    line-height: 1.45
}

.checkbox-field .errorlist,
.checkbox-field small {
    flex-basis: 100%
}

.required {
    color: #399589
}

.form-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid var(--line)
}

.errorlist {
    list-style: none;
    padding: 0;
    color: #ac3030;
    font-size: 12px
}

.notice {
    background: #daf1ee;
    border: 1px solid #9fdbd3;
    border-radius: 3px;
    padding: 13px 17px;
    margin-bottom: 18px
}

.notice.error {
    background: #fff0ef;
    border-color: #e7b2ac
}

.notice.success {
    background: #edf7ec;
    border-color: #c0d5bb
}

.details {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 16px;
    padding: 20px;
    font-size: 13px
}

.details dt {
    color: #777
}

.details dd {
    margin: 0
}

.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px
}

.detail-tabs a {
    padding: 12px 18px;
    background: #eee;
    border: 1px solid #ddd;
    border-bottom: 0;
    color: #333
}

.detail-tabs a:first-child {
    background: #e2f4f1
}

.response {
    padding: 18px;
    border-bottom: 1px solid #eee
}

.response-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap
}

.response-heading>a {
    font-weight: 600
}

.response small {
    color: #777
}

.stage-form {
    display: flex;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
    margin-top: 14px
}

.stage-form p {
    margin: 0;
    max-width: 260px
}

.stage-form label {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 5px
}

.stage-form textarea {
    height: 36px;
    min-height: 36px
}

.timeline {
    padding: 20px
}

.timeline>div {
    padding: 0 0 18px 18px;
    border-left: 2px solid #9fdbd3
}

.timeline small {
    display: block;
    color: #888;
    margin-top: 6px
}

.timeline p {
    font-size: 13px
}

.kanban {
    display: flex;
    gap: 14px;
    overflow: auto;
    padding: 20px 0;
    align-items: start;
    min-height: 400px
}

.kanban-column {
    min-width: 255px;
    max-width: 255px;
    background: #ededed;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    min-height: 260px
}

.kanban-column header {
    display: flex;
    justify-content: space-between;
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
    border-top: 3px solid var(--yellow);
    border-bottom: 1px solid #ddd;
    gap: 8px
}

.kanban-column header span {
    font-weight: 400
}

.kanban-card {
    display: block;
    background: white;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    padding: 14px;
    margin: 10px;
    color: #333
}

.kanban-card small {
    display: block;
    color: #888;
    margin-top: 9px;
    font-size: 12px
}

.kanban-empty {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 25px
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.login-main {
    margin-left: 0
}

.login-card {
    max-width: 430px;
    margin: 45px auto
}

.login-card form {
    padding: 24px
}

.login-card label {
    display: block;
    margin-bottom: 6px
}

.login-card input {
    width: 100%
}

@media(max-width:1100px) {
    .metrics {
        grid-template-columns: 1fr 1fr
    }

    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .workspace {
        display: none
    }
}

@media(max-width:700px) {
    .topbar {
        padding: 0 12px
    }

    .brand {
        font-size: 15px
    }

    .account>span {
        display: none
    }

    .sidebar {
        position: static;
        width: auto;
        margin-top: 56px;
        padding-top: 0
    }

    .nav-caption,
    .sidebar-foot {
        display: none
    }

    nav {
        display: flex;
        overflow: auto
    }

    nav a {
        white-space: nowrap;
        padding: 12px;
        font-size: 12px
    }

    nav a span {
        display: none
    }

    main {
        margin: 0
    }

    .content {
        padding: 18px 12px
    }

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

    h1 {
        font-size: 22px
    }

    .metrics {
        gap: 9px
    }

    .metric {
        padding: 14px
    }

    .form-grid,
    .integration-grid {
        grid-template-columns: 1fr
    }

    .email-settings-body {
        padding: 18px 16px 0
    }

    .email-settings-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 0
    }

    .email-settings-grid .email-host,
    .email-settings-grid .email-password {
        grid-column: auto
    }

    .email-security-options {
        display: grid;
        gap: 14px
    }

    .email-settings-actions {
        margin: 0 -16px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch
    }

    .email-test-body {
        padding: 18px 16px 20px
    }

    .details {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .details dd {
        margin-bottom: 12px
    }

    .detail-tabs {
        overflow: auto;
        white-space: nowrap
    }

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

/* Candidate registry */
.candidates-page {
    display: grid;
    gap: 20px
}

.candidate-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid #9fdbd3;
    border-radius: 8px;
    background: linear-gradient(100deg, #def3f0, #f8fcfc)
}

.candidate-overview div {
    display: flex;
    align-items: baseline;
    gap: 14px
}

.candidate-overview span,
.candidate-overview p {
    color: #456f69;
    margin: 0
}

.candidate-overview strong {
    font-size: 28px
}

.candidate-filter-card,
.candidate-register-card {
    overflow: hidden;
    margin: 0
}

.candidate-filters {
    padding: 16px 18px
}

.candidate-search-row {
    display: flex;
    align-items: end;
    gap: 12px
}

.candidate-search-field {
    flex: 1
}

.candidate-filters label>span,
.candidate-period-grid label>span {
    display: block;
    margin-bottom: 4px;
    color: #555;
    font-size: 12px;
    font-weight: 700
}

.candidate-filters input,
.candidate-filters select,
.candidate-bulk-actions select {
    width: 100%;
    min-height: 34px;
    height: 34px;
    padding: 6px 9px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    background: #fff
}

.candidate-search-field input {
    font-size: 14px
}

.candidate-advanced-filters {
    margin-top: 12px;
    border-top: 1px solid #e4e4e4
}

.candidate-advanced-filters summary {
    width: 100%;
    padding: 12px 0 2px;
    color: #285f92;
    font-weight: 700;
    cursor: pointer
}

.candidate-filter-section {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafbfc
}

.candidate-filter-section h3 {
    margin: 0 0 9px;
    font-size: 12px;
    color: #566273
}

.candidate-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px 12px
}

.candidate-filter-wide {
    grid-column: span 2
}

.candidate-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.candidate-period-grid fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 8px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 6px
}

.candidate-period-grid legend {
    padding: 0 5px;
    color: #555;
    font-size: 12px;
    font-weight: 700
}

.candidate-filter-footer {
    display: flex;
    gap: 10px;
    margin: 14px -18px -16px;
    padding: 12px 18px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa
}

.candidate-register-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #e3e3e3
}

.candidate-register-heading h2,
.candidate-register-heading p {
    margin: 0
}

.candidate-register-heading h2 {
    font-size: 18px
}

.candidate-register-heading p {
    margin-top: 5px;
    color: var(--muted)
}

.candidate-register-heading>span {
    padding: 6px 10px;
    border-radius: 14px;
    background: #f0f0f0;
    white-space: nowrap
}

.candidate-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid #ddd;
    background: #f4fbfa
}

.candidate-selection-scope,
.candidate-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.candidate-selection-scope label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap
}

.candidate-bulk-actions select {
    min-width: 230px
}

.candidate-table-wrap {
    margin: 0
}

.candidate-table {
    min-width: 1100px;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse
}

.candidate-table th {
    padding: 11px 14px;
    background: #f7f7f7;
    color: #666;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase
}

.candidate-table td {
    padding: 14px;
    vertical-align: top;
    overflow-wrap: anywhere
}

.candidate-table tbody tr:hover {
    background: #f6fcfb
}

.candidate-table td small,
.candidate-identity small,
.candidate-date small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px
}

.candidate-check {
    width: 42px;
    text-align: center
}

.candidate-identity a {
    color: #204f7a;
    font-weight: 700
}

.candidate-contacts {
    display: table-cell
}

.candidate-contacts a {
    display: block;
    margin-bottom: 6px
}

.candidate-table .candidate-check {
    width: 42px;
    vertical-align: middle;
    padding: 12px 8px
}

.candidate-table .candidate-check input {
    width: 16px;
    height: 16px;
    margin: 0
}

.candidate-table th.candidate-name-col { width: 21% }
.candidate-table th.candidate-contact-col { width: 19% }
.candidate-table th.candidate-city-col { width: 12% }
.candidate-table th.candidate-position-col { width: 19% }
.candidate-table th.candidate-source-col { width: 8% }
.candidate-table th.candidate-recruiter-col { width: 13% }
.candidate-table th.candidate-date-col { width: 100px }

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

.candidate-bulk-bar {
    flex-wrap: wrap
}

.candidate-selection-scope {
    flex-wrap: wrap
}

.candidate-bulk-actions {
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 420px;
    justify-content: flex-end
}

.candidate-bulk-actions select {
    width: auto;
    min-width: 180px;
    max-width: 340px;
    flex: 1 1 220px
}

.candidate-filters label {
    min-width: 0
}

.source-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 12px;
    background: #ededed;
    font-size: 11px;
    font-weight: 700
}

.source-avito {
    color: #7a2580;
    background: #f5e9f7
}

.source-hh {
    color: #a51c1c;
    background: #fbeaea
}

.candidate-empty {
    padding: 50px !important;
    text-align: center
}

.candidate-empty strong,
.candidate-empty span {
    display: block
}

.candidate-empty span {
    margin-top: 7px;
    color: var(--muted)
}

@media(max-width:1100px) {
    .candidate-filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr))
    }

    .candidate-bulk-bar,
    .candidate-bulk-actions {
        align-items: stretch;
        flex-direction: column
    }
}

@media(max-width:700px) {
    .candidate-page-actions,
    .candidate-search-row,
    .candidate-overview,
    .candidate-register-heading,
    .candidate-selection-scope {
        align-items: stretch;
        flex-direction: column
    }

    .candidate-overview {
        gap: 10px
    }

    .candidate-filters,
    .candidate-register-heading,
    .candidate-bulk-bar {
        padding: 16px
    }

    .candidate-filter-grid,
    .candidate-period-grid,
    .candidate-period-grid fieldset {
        grid-template-columns: 1fr
    }

    .candidate-filter-wide {
        grid-column: auto
    }

    .candidate-filter-footer {
        margin: 18px -16px -16px;
        padding: 14px 16px
    }

    .candidate-bulk-actions select {
        min-width: 0;
        max-width: none;
        width: 100%;
        flex: none
    }

    .candidate-bulk-actions {
        flex: none;
        width: 100%
    }
}
