@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    font-family: "DM Sans", sans-serif;
    color: #202b27;
    background: #f3f6f4;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px;
    background:
        radial-gradient(ellipse at 15% 5%, rgb(198 218 205 / 28%), transparent 40%),
        #f3f6f4;
}

.login-shell {
    display: grid;
    width: min(1050px, 100%);
    min-height: 650px;
    overflow: hidden;
    grid-template-columns: 0.92fr 1.08fr;
    border: 1px solid #e6ebe7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgb(31 52 42 / 10%);
}

.welcome-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    color: #f4f7ef;
    background:
        radial-gradient(ellipse at 85% 20%, rgb(98 145 115 / 38%), transparent 44%),
        linear-gradient(145deg, #182b25 0%, #213d31 57%, #284b39 100%);
}

.welcome-panel::after {
    position: absolute;
    right: -155px;
    bottom: 95px;
    width: 390px;
    height: 390px;
    border: 1px solid rgb(228 240 223 / 12%);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgb(228 240 223 / 3%), 0 0 0 84px rgb(228 240 223 / 3%);
    content: "";
    pointer-events: none;
}

.wordmark,
.dashboard-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.105em;
    text-decoration: none;
}

.wordmark-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgb(237 245 237 / 28%);
    border-radius: 10px;
    background: rgb(237 245 237 / 10%);
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
}

.welcome-copy {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin-top: 35px;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #638673;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.welcome-panel .eyebrow {
    color: #a9c4a7;
}

.welcome-copy h1,
.dashboard-content h1 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(35px, 4.3vw, 48px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.welcome-copy p {
    max-width: 330px;
    margin: 20px 0 0;
    color: #c2d0c6;
    font-size: 15px;
    line-height: 1.7;
}

.welcome-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #bed0c3;
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9cc89b;
    box-shadow: 0 0 0 4px rgb(156 200 155 / 14%);
}

.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px clamp(38px, 7vw, 84px) 28px;
}

.form-content {
    width: 100%;
    max-width: 365px;
    margin: auto;
}

.mobile-wordmark {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
    color: #213b2e;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.105em;
}

.mobile-wordmark .wordmark-icon {
    border-color: #dce7df;
    background: #f3f7f3;
}

.form-content h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(25px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.form-description {
    margin: 10px 0 30px;
    color: #828d87;
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    margin-top: 3px;
    color: #344139;
    font-size: 12px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #e0e7e2;
    border-radius: 9px;
    outline: none;
    padding: 0 14px;
    background: #fff;
    color: #23332a;
    font-size: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-form input::placeholder {
    color: #a8b1ab;
}

.login-form input:focus {
    border-color: #6d977b;
    box-shadow: 0 0 0 3px rgb(81 128 96 / 12%);
}

.password-label {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.sign-in-button {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    border: 0;
    border-radius: 9px;
    background: #284a38;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 150ms ease, transform 150ms ease;
}

.sign-in-button:hover {
    transform: translateY(-1px);
    background: #1f3d2e;
}

.sign-in-button:focus-visible,
.sign-out-button:focus-visible {
    outline: 3px solid #91b99a;
    outline-offset: 3px;
}

.sign-in-button span {
    font-size: 17px;
    font-weight: 400;
}

.login-note {
    margin: 24px 0 0;
    color: #9aa39d;
    font-size: 11px;
    text-align: center;
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    border: 1px solid #f1d4d1;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff7f6;
    color: #963f37;
    font-size: 12px;
    line-height: 1.5;
}

.error-icon {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #f4dedb;
    font-size: 11px;
    font-weight: 700;
}

.form-footer {
    margin-top: 38px;
    color: #9aa39d;
    font-size: 10px;
    text-align: center;
}

.form-footer span {
    padding: 0 4px;
    color: #c2cac5;
}

.dashboard-page {
    background: #f3f6f4;
}

.dashboard-header {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e9e4;
    padding: 0 clamp(20px, 5vw, 72px);
    background: #fff;
}

.dashboard-brand {
    color: #213b2e;
}

.dashboard-brand .wordmark-icon {
    border-color: #dce7df;
    background: #f3f7f3;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.role-chip {
    border: 1px solid #dce7df;
    border-radius: 999px;
    padding: 6px 11px;
    background: #f4f8f4;
    color: #45664f;
    font-size: 11px;
    font-weight: 700;
}

.account-name {
    color: #647168;
    font-size: 13px;
}

.account-actions form {
    margin: 0;
}

.sign-out-button {
    border: 1px solid #e0e7e2;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #344139;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.sign-out-button:hover {
    background: #f3f7f3;
}

.dashboard-content {
    width: min(960px, calc(100% - 40px));
    margin: 100px auto;
}

.dashboard-content h1 {
    color: #213b2e;
    font-size: clamp(32px, 5vw, 46px);
}

.dashboard-content p {
    margin-top: 15px;
    color: #77827b;
    font-size: 15px;
}

.operations-content,
.order-form-content {
    width: min(1240px, calc(100% - 48px));
    margin: 52px auto 72px;
}

.operations-content .eyebrow,
.order-form-content .eyebrow {
    margin-bottom: 8px;
}

.orders-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.orders-heading h1,
.form-page-heading h1 {
    margin: 0;
    color: #202b27;
    font-family: Manrope, sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.orders-summary {
    margin: 8px 0 0;
    color: #79837d;
    font-size: 13px;
}

.orders-summary strong {
    color: #36473d;
    font-weight: 700;
}

.live-update-status {
    margin: 7px 0 0;
    color: #6e9279;
    font-size: 10px;
}

.live-update-status::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 1px 0;
    border-radius: 50%;
    background: #4b9b63;
    content: "";
}

.live-update-status.is-disconnected {
    color: #a45527;
}

.live-update-status.is-disconnected::before {
    background: #c2733f;
}

.summary-separator {
    padding: 0 4px;
    color: #bec7c0;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.primary-action {
    flex: 0 0 auto;
    background: #244934;
    color: #fff;
}

.primary-action:hover {
    transform: translateY(-1px);
    background: #1b3b29;
}

.primary-action > span {
    font-size: 17px;
    font-weight: 400;
}

.secondary-action {
    border-color: #dfe6e1;
    background: #fff;
    color: #425449;
}

.secondary-action:hover {
    border-color: #bfcfc3;
    background: #f7faf7;
}

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

.order-tabs {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 3px;
    border: 1px solid #e1e7e2;
    border-radius: 9px;
    padding: 4px;
    background: #fff;
}

.order-tab {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 0 12px;
    color: #657269;
    font-size: 12px;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}

.order-tab:hover {
    color: #294b36;
}

.order-tab.is-selected {
    background: #eff4ef;
    color: #294b36;
    font-weight: 700;
}

.order-tab span {
    color: #8b968e;
    font-size: 11px;
}

.filter-note {
    margin: -4px 0 14px;
    color: #929b94;
    font-size: 10px;
}

.order-search {
    display: flex;
    width: min(100%, 360px);
    align-items: center;
    gap: 8px;
}

.search-field {
    display: flex;
    height: 42px;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
    border: 1px solid #e1e7e2;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-field:focus-within {
    border-color: #6d977b;
    box-shadow: 0 0 0 3px rgb(81 128 96 / 10%);
}

.search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1.5px solid #728078;
    border-radius: 50%;
}

.search-icon::after {
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 6px;
    height: 1.5px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: #728078;
    content: "";
}

.search-field input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: #304139;
    font-size: 12px;
}

.search-field input::placeholder {
    color: #9ba59e;
}

.search-field input:focus-visible {
    outline: 0;
}

.clear-search {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #77837b;
    font-size: 18px;
    text-decoration: none;
}

.clear-search:hover {
    background: #eff4ef;
    color: #294b36;
}

.search-submit {
    height: 42px;
    border: 1px solid #dfe6e1;
    border-radius: 8px;
    padding: 0 13px;
    background: #fff;
    color: #425449;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.search-submit:hover {
    background: #f7faf7;
}

.results-caption {
    margin: 0 0 10px;
    color: #879189;
    font-size: 11px;
}

.results-caption strong {
    color: #536258;
    font-weight: 650;
}

.results-caption > span {
    margin-left: 4px;
    color: #a0a9a2;
}

.orders-table-card {
    overflow: hidden;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    background: #fff;
}

.table-scroll {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.orders-table th {
    height: 42px;
    border-bottom: 1px solid #e4e9e5;
    padding: 0 18px;
    background: #fafbf9;
    color: #7b867e;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.orders-table td {
    height: 66px;
    border-bottom: 1px solid #e9ede9;
    padding: 10px 18px;
    color: #38453d;
    font-size: 12px;
    vertical-align: middle;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.orders-table tbody tr:hover {
    background: #fcfdfb;
}

.job-number {
    color: #526e5c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    white-space: nowrap;
}

.order-detail-link {
    text-decoration: none;
}

.order-detail-link:hover {
    color: #1b6a3b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-detail-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid #73967b;
    outline-offset: 3px;
}

.position-name,
.client-name,
.handler-name,
.table-secondary {
    display: block;
}

.position-name,
.client-name,
.handler-name {
    color: #26352c;
    font-size: 12px;
    font-weight: 600;
}

.unassigned-handler {
    color: #a0a9a2;
    font-size: 13px;
}

.table-secondary {
    overflow: hidden;
    max-width: 200px;
    margin-top: 4px;
    color: #89938c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.number-cell {
    width: 70px;
    text-align: right !important;
}

.requirements-number {
    color: #26352c;
    font-size: 14px;
    font-weight: 700;
}

.assignment-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.assignment-state.is-pending {
    color: #a45527;
}

.assignment-state > span {
    font-size: 13px;
}

.jo-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.jo-status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.jo-status.is-active {
    background: #e5f4eb;
    color: #28734a;
}

.jo-status.is-active > span {
    background: #34845a;
}

.jo-status.is-inactive {
    background: #f0f1ef;
    color: #737b75;
}

.jo-status.is-inactive > span {
    background: #979f98;
}

.date-cell {
    color: #7a867d !important;
    text-align: right !important;
    white-space: nowrap;
}

.orders-empty {
    display: flex;
    min-height: 265px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    text-align: center;
}

.empty-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 15px;
    border: 1px solid #e0e9e2;
    border-radius: 12px;
    background: #f4f8f4;
    color: #52745c;
    font-size: 19px;
}

.orders-empty h2 {
    margin: 0;
    color: #314137;
    font-family: Manrope, sans-serif;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.orders-empty p {
    margin: 8px 0 17px;
    color: #89938c;
    font-size: 12px;
}

.pagination-bar,
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pagination-bar {
    margin-top: 16px;
}

.pagination-caption,
.pagination-page {
    color: #89938c;
    font-size: 11px;
}

.pagination-controls {
    gap: 8px;
}

.pagination-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid #e0e6e1;
    border-radius: 7px;
    padding: 0 11px;
    background: #fff;
    color: #536258;
    font-size: 11px;
    text-decoration: none;
}

a.pagination-button:hover {
    border-color: #bccdc0;
    background: #f8faf8;
}

.pagination-button.is-disabled {
    color: #b3bbb5;
}

.order-form-content {
    width: min(940px, calc(100% - 48px));
    margin-top: 38px;
}

.order-detail-content {
    width: min(1000px, calc(100% - 48px));
    margin: 38px auto 72px;
}

.detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 10px 0 24px;
}

.detail-hero h1 {
    margin: 0;
    color: #202b27;
    font-family: Manrope, sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.detail-hero p {
    margin: 8px 0 0;
    color: #77827b;
    font-size: 13px;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-job-number {
    color: #45664f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.detail-assignment {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    border: 1px solid #e1e7e2;
    border-radius: 10px;
    padding: 14px 18px;
    background: #fff;
}

.assignment-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dfe9e0;
    border-radius: 50%;
    background: #f4f8f4;
    color: #58735f;
    font-size: 13px;
    font-weight: 700;
}

.detail-assignment > div {
    display: grid;
    gap: 4px;
}

.detail-label {
    color: #89938c;
    font-size: 10px;
}

.detail-assignment strong {
    color: #314137;
    font-size: 12px;
}

.assignment-hint {
    margin-left: auto;
    color: #929b94;
    font-size: 10px;
}

.detail-sections {
    display: grid;
    gap: 16px;
}

.detail-card {
    border: 1px solid #e1e7e2;
    border-radius: 10px;
    padding: 22px;
    background: #fff;
}

.detail-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-card-heading h2 {
    margin: 0;
    color: #2c3d32;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.detail-card-heading p {
    margin: 4px 0 0;
    color: #89938c;
    font-size: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 26px;
    margin: 0;
}

.detail-grid > div {
    min-width: 0;
}

.detail-grid dt {
    margin-bottom: 6px;
    color: #89938c;
    font-size: 10px;
}

.detail-grid dd {
    margin: 0;
    color: #35443a;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.detail-grid-single {
    grid-template-columns: 1fr;
    gap: 16px;
}

.detail-grid .detail-long-text {
    color: #536258;
    font-weight: 400;
    white-space: pre-wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 27px;
    color: #67746b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: #294b36;
}

.back-link > span {
    font-size: 17px;
}

.form-page-heading {
    margin-bottom: 24px;
}

.form-page-heading h1 {
    font-size: clamp(28px, 4vw, 34px);
}

.form-page-heading p {
    margin: 8px 0 0;
    color: #7c877f;
    font-size: 12px;
}

.form-page-heading .job-number-note {
    margin-top: 8px;
    color: #55715d;
    font-size: 11px;
}

.required-star {
    color: #b85c49;
}

.order-error-summary {
    margin: 0 0 18px;
}

.job-order-form {
    overflow: hidden;
    border: 1px solid #e1e7e2;
    border-radius: 12px;
    background: #fff;
}

.form-section {
    padding: 25px 28px 28px;
    border-bottom: 1px solid #e9ede9;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.section-number {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dfe9e0;
    border-radius: 8px;
    background: #f4f8f4;
    color: #58735f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 1px 0 4px;
    color: #2c3d32;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 0;
    color: #89938c;
    font-size: 11px;
}

.form-grid {
    display: grid;
    column-gap: 18px;
    row-gap: 18px;
}

.form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #39483e;
    font-size: 11px;
    font-weight: 600;
}

.field > label,
.field-label,
.status-fieldset legend,
.choice-fieldset legend {
    color: #39483e;
    font-size: 11px;
    font-weight: 600;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.salary-input input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dfe6e1;
    border-radius: 7px;
    outline: 0;
    padding: 0 11px;
    background: #fff;
    color: #34433a;
    font-size: 11px;
    font-weight: 400;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea {
    min-height: 96px;
    padding: 10px 11px;
    resize: vertical;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a0aaa3;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.salary-input input:focus {
    border-color: #73967b;
    box-shadow: 0 0 0 3px rgb(81 128 96 / 9%);
}

.field select {
    padding-right: 30px;
}

.field input:disabled {
    background: #f5f7f5;
    color: #89938c;
    cursor: not-allowed;
}

.field-hint {
    color: #929b94;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.field-error {
    color: #a44539;
    font-size: 10px;
    font-weight: 500;
}

.field-span-two {
    grid-column: 1 / -1;
}

.field-hidden {
    display: none;
}

.client-combobox {
    position: relative;
    display: flex;
    min-width: 0;
}

.field .client-combobox > input {
    padding-right: 42px;
    color-scheme: light;
}

.client-combobox > input[aria-expanded="true"] {
    border-color: #73967b;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.client-combobox-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    width: 38px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #fff;
    color: #526b59;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
}

.client-combobox-toggle:hover,
.client-combobox-toggle[aria-expanded="true"] {
    background: #f1f6f2;
    color: #315940;
}

.client-combobox-options {
    position: absolute;
    z-index: 30;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #b8cbbd;
    border-radius: 0 0 8px 8px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(35 57 42 / 14%);
}

.client-combobox-options[hidden] {
    display: none;
}

.client-combobox-option {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 9px 10px;
    background: transparent;
    color: #35443a;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-align: left;
}

.client-combobox-option:hover,
.client-combobox-option.is-active {
    background: #edf4ee;
    color: #294b36;
}

.client-combobox-empty {
    padding: 10px;
    color: #89938c;
    font-size: 10px;
    line-height: 1.5;
}

.client-combobox-empty[hidden] {
    display: none;
}

.salary-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rate-input-group {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    border: 1px solid #dfe6e1;
    border-radius: 7px;
    padding-left: 11px;
    background: #fff;
    color: #526057;
}

.rate-input-group:focus-within {
    border-color: #73967b;
    box-shadow: 0 0 0 3px rgb(81 128 96 / 9%);
}

.rate-input-group > span {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
}

.rate-input-group input,
.rate-input-group select {
    width: auto;
    min-width: 0;
    min-height: 40px;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent;
    color: #34433a;
    font: inherit;
    font-size: 11px;
    box-shadow: none !important;
}

.rate-input-group input {
    flex: 1 1 auto;
    padding: 0 9px;
}

.rate-input-group select {
    flex: 0 0 auto;
    border-left: 1px solid #e5eae6 !important;
    padding: 0 9px;
}

.salary-input {
    min-width: 0;
    flex: 1;
}

.allowance-fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #e9ede9;
    padding-top: 16px;
}

.allowance-fieldset legend {
    margin-bottom: 0;
    padding: 0;
    color: #39483e;
    font-size: 11px;
    font-weight: 600;
}

.allowance-toggle {
    width: fit-content;
}

.allowance-rate-fields {
    width: min(100%, 460px);
}

.allowance-rate-fields .rate-input-group {
    width: 100%;
}

.check-option,
.choice-option,
.status-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526057;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.check-option input,
.choice-option input,
.status-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #315940;
}

.status-fieldset,
.choice-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.status-fieldset legend,
.choice-fieldset legend {
    margin-bottom: 9px;
    padding: 0;
}

.status-options,
.choice-options {
    display: flex;
    min-height: 37px;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.status-option {
    min-height: 36px;
    border: 1px solid #e2e8e3;
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
}

.status-option:has(input:checked) {
    border-color: #b7cdbc;
    background: #f7faf7;
}

.status-option .jo-status {
    padding: 3px 7px;
}

.form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e9ede9;
    padding: 14px 28px;
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(8px);
}

.operations-flash {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    border: 1px solid #d8e9dd;
    border-radius: 8px;
    padding: 11px 14px;
    background: #f1f8f3;
    color: #32714a;
    font-size: 12px;
}

.recruitment-toolbar {
    align-items: flex-start;
}

.recruitment-table {
    min-width: 930px;
}

.action-cell {
    text-align: right !important;
    white-space: nowrap;
}

.action-cell form {
    margin: 0;
}

.claim-button,
.retract-button,
.stage-form button {
    min-height: 34px;
    border: 1px solid #244934;
    border-radius: 7px;
    padding: 0 12px;
    background: #244934;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.claim-button:hover,
.retract-button:hover,
.stage-form button:hover {
    background: #1b3b29;
}

.retract-button {
    border-color: #e1c9c4;
    background: #fff;
    color: #8d463c;
}

.retract-button:hover {
    border-color: #d9ada5;
    background: #fff7f6;
    color: #78372f;
}

.detail-recruitment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recruitment-stage {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce7df;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f4f8f4;
    color: #45664f;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.stage-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-form select {
    min-height: 34px;
    max-width: 155px;
    border: 1px solid #dfe6e1;
    border-radius: 7px;
    padding: 0 8px;
    background: #fff;
    color: #425449;
    font: inherit;
    font-size: 10px;
}

.recruitment-error {
    margin-bottom: 16px;
    border: 1px solid #f0d5d2;
    border-radius: 8px;
    padding: 11px 14px;
    background: #fff7f6;
    color: #9d4038;
    font-size: 12px;
}

.recruitment-page .claim-button:focus-visible,
.stage-form button:focus-visible,
.stage-form select:focus-visible {
    outline: 3px solid #91b99a;
    outline-offset: 2px;
}

.flash-check {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: #dff0e3;
    font-size: 11px;
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.admin-content {
    width: min(1100px, calc(100% - 48px));
    margin: 46px auto 72px;
}

.admin-content .orders-heading {
    margin-bottom: 22px;
}

.admin-tabs {
    margin-bottom: 18px;
}

.admin-account-sections {
    display: grid;
    gap: 20px;
}

.admin-panel {
    overflow: hidden;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    background: #fff;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e9ede9;
    padding: 18px 22px;
}

.admin-panel-heading .eyebrow {
    margin-bottom: 5px;
}

.admin-panel-heading h2 {
    margin: 0;
    color: #2c3d32;
    font-family: Manrope, sans-serif;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.admin-panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-count {
    color: #89938c;
    font-size: 11px;
    white-space: nowrap;
}

.admin-create-form {
    padding: 24px;
    background: #fff;
}

.admin-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
}

.admin-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    border-top: 1px solid #e9ede9;
    padding-top: 18px;
}

.admin-create-actions .primary-action {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.admin-create-content {
    max-width: 760px;
}

.admin-create-panel {
    max-width: 680px;
}

.admin-account-list {
    display: grid;
}

.admin-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf0ed;
    padding: 18px 22px;
}

.admin-account:last-child {
    border-bottom: 0;
}

.admin-account-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.admin-account-identity .admin-password-trigger {
    min-height: 36px;
    margin-left: auto;
    padding: 0 11px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

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

.admin-account-actions form {
    margin: 0;
}

.danger-action {
    min-height: 36px;
    border: 1px solid #e7d1ce;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: #984a40;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.danger-action:hover {
    border-color: #d9ada5;
    background: #fff7f6;
}

.cancellation-inbox-link {
    position: relative;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border: 1px solid #e0e7e2;
    border-radius: 8px;
    padding: 0 10px;
    color: #425449;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

.cancellation-inbox-link:hover,
.cancellation-inbox-link.is-selected {
    border-color: #cbd9cd;
    background: #f4f8f4;
    color: #294b36;
}

.cancellation-inbox-count {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: #294b36;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.cancellation-inbox-count[hidden] {
    display: none;
}

.cancellation-request-status {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: #536258;
    font-size: 10px;
}

.cancellation-request-status > span,
.cancellation-request-status > strong {
    font-weight: 700;
}

.cancellation-request-status small {
    color: #89938c;
    font-size: 9px;
}

.cancellation-last-decision {
    color: #984a40;
    font-size: 10px;
    line-height: 1.5;
}

.cancellation-request-status form {
    margin: 0;
}

.cancellation-retry-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #8d463c;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cancellation-retry-button:hover {
    color: #78372f;
}

.cancellation-request-form {
    display: grid;
    min-width: min(260px, 100%);
    gap: 10px;
}

.cancellation-request-form .field {
    gap: 6px;
}

.cancellation-request-form textarea,
.cancellation-decline-form textarea {
    min-height: 74px;
    resize: vertical;
}

.cancellation-request-form .request-cancel-button,
.cancellation-review-actions form > .primary-action,
.cancellation-review-actions form > .danger-action {
    width: fit-content;
}

.cancellation-request-dialog {
    width: min(500px, calc(100% - 28px));
}

.cancellation-request-dialog .admin-password-form {
    gap: 16px;
}

.cancellation-dialog-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    border: 1px solid #e9ede9;
    border-radius: 10px;
    padding: 14px;
    background: #f8faf8;
}

.cancellation-dialog-details div {
    min-width: 0;
}

.cancellation-dialog-details dt {
    margin-bottom: 4px;
    color: #89938c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cancellation-dialog-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #35443a;
    font-size: 12px;
    font-weight: 600;
}

.recruitment-email-notifications {
    display: grid;
    gap: 12px;
}

.recruitment-email-notifications .detail-card-heading {
    margin-bottom: 0;
}

.recruitment-email-notifications ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recruitment-email-notifications li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0ed;
    padding-top: 8px;
    color: #536258;
    font-size: 11px;
}

.recruitment-email-notifications > form {
    margin: 0;
}

.cancellation-request-dialog textarea {
    min-height: 90px;
    resize: vertical;
}

.cancellation-request-dialog .request-cancel-button {
    width: auto;
}

.cancellation-request-list {
    display: grid;
    gap: 12px;
}

.cancellation-request-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    padding: 18px 20px;
    background: #fff;
}

.cancellation-request-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cancellation-request-card h2 {
    margin: 0;
    color: #314137;
    font-family: Manrope, sans-serif;
    font-size: 16px;
}

.cancellation-request-card p {
    margin: 0;
    color: #79837d;
    font-size: 11px;
    line-height: 1.6;
}

.cancellation-request-card .secondary-action {
    width: fit-content;
}

.cancellation-request-reason {
    border-left: 2px solid #dce7df;
    padding-left: 10px;
}

.cancellation-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f0f3f0;
    color: #5d6b61;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.cancellation-status.is-pending {
    background: #fff4df;
    color: #946622;
}

.cancellation-status.is-approved {
    background: #e5f4eb;
    color: #28734a;
}

.cancellation-status.is-sent {
    background: #e5f4eb;
    color: #28734a;
}

.cancellation-status.is-failed {
    background: #fff0ee;
    color: #984a40;
}

.cancellation-status.is-declined {
    background: #fff0ee;
    color: #984a40;
}

.cancellation-review-content {
    max-width: 900px;
}

.cancellation-review-card {
    display: grid;
    gap: 20px;
}

.cancellation-review-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid #e9ede9;
    padding-top: 18px;
}

.cancellation-review-actions form {
    margin: 0;
}

.cancellation-review-actions .cancellation-decline-form {
    display: grid;
    width: min(100%, 360px);
    gap: 10px;
}

.cancellation-decision-note {
    display: grid;
    gap: 6px;
    border-top: 1px solid #e9ede9;
    padding-top: 18px;
    color: #536258;
    font-size: 11px;
}

.cancellation-decision-note span,
.cancellation-decision-note p {
    margin: 0;
    color: #89938c;
    line-height: 1.6;
}

.cancel-job-order-button {
    white-space: nowrap;
}

.request-cancel-button {
    min-height: 36px;
    border: 1px solid #cbd9cd;
    border-radius: 8px;
    padding: 0 11px;
    background: #f4f8f4;
    color: #355b40;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.request-cancel-button:hover {
    border-color: #b7cdbc;
    background: #eaf2eb;
}

.request-cancel-button:disabled {
    border-color: #e0e6e1;
    background: #f5f7f5;
    color: #7b867e;
    cursor: not-allowed;
}

.operations-job-order-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #89938c;
    font-size: 11px;
}

.operations-job-order-action form {
    margin: 0;
}

.admin-account-identity > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-account-identity strong {
    overflow-wrap: anywhere;
    color: #314137;
    font-size: 12px;
}

.admin-account-identity > div > span {
    overflow-wrap: anywhere;
    color: #89938c;
    font-size: 11px;
}

.admin-password-form {
    display: grid;
    gap: 16px;
}

.admin-password-dialog {
    width: min(440px, calc(100% - 28px));
    max-width: none;
    border: 1px solid #e0e6e1;
    border-radius: 14px;
    padding: 0;
    background: #fff;
    color: #202b27;
    box-shadow: 0 24px 80px rgb(31 52 42 / 24%);
}

.admin-password-dialog::backdrop {
    background: rgb(17 30 23 / 48%);
    backdrop-filter: blur(2px);
}

.admin-password-dialog .admin-password-form {
    padding: 24px;
}

.admin-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.admin-dialog-heading .eyebrow {
    margin-bottom: 7px;
}

.admin-dialog-heading h2 {
    margin: 0;
    color: #2c3d32;
    font-family: Manrope, sans-serif;
    font-size: 20px;
    letter-spacing: -0.035em;
}

.admin-dialog-heading p {
    margin: 7px 0 0;
    color: #89938c;
    font-size: 12px;
    line-height: 1.5;
}

.admin-dialog-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e1e7e2;
    border-radius: 8px;
    background: #fff;
    color: #647168;
    cursor: pointer;
    font-size: 21px;
}

.admin-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 6px;
    border-top: 1px solid #e9ede9;
    padding-top: 16px;
}

.admin-dialog-actions .primary-action {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.admin-dialog-actions .secondary-action {
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.admin-empty {
    padding: 24px 22px;
    color: #89938c;
    font-size: 12px;
}

.admin-log-search {
    width: min(100%, 540px);
    margin: 18px 0;
}

.admin-log-list {
    display: grid;
    overflow: hidden;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    background: #fff;
}

.admin-log-entry {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 14px;
    border-bottom: 1px solid #e9ede9;
    padding: 17px 20px;
}

.admin-log-entry:last-child {
    border-bottom: 0;
}

.admin-log-indicator {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: #5a8867;
    box-shadow: 0 0 0 4px #eef5ef;
}

.admin-log-main {
    min-width: 0;
}

.admin-log-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-log-heading time {
    color: #89938c;
    font-size: 10px;
    text-align: right;
}

.admin-log-position {
    display: block;
    margin-top: 7px;
    color: #314137;
    font-size: 12px;
}

.admin-log-main > .table-secondary {
    max-width: 100%;
}

.admin-log-main p {
    margin: 12px 0 5px;
    color: #536258;
    font-size: 11px;
    line-height: 1.5;
}

.admin-log-main p strong {
    color: #314137;
}

.admin-log-actor {
    color: #89938c;
    font-size: 10px;
}

.admin-statistics,
.admin-recruiter-stats {
    margin-bottom: 18px;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    padding: 20px;
    background: #fff;
}

.admin-statistics-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-statistics-heading .eyebrow {
    margin-bottom: 5px;
}

.admin-statistics-heading h2 {
    margin: 0;
    color: #2c3d32;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    letter-spacing: -0.025em;
}

.admin-statistics-note {
    color: #89938c;
    font-size: 10px;
    line-height: 1.5;
}

.admin-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-stat-card {
    display: grid;
    gap: 8px;
    border: 1px solid #e8ede9;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafbf9;
}

.admin-stat-card span {
    color: #79837d;
    font-size: 10px;
}

.admin-stat-card strong {
    color: #294b36;
    font-family: Manrope, sans-serif;
    font-size: 23px;
}

.admin-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 19px;
}

.admin-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #69766d;
    font-size: 10px;
}

.admin-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.admin-chart-legend .is-logins,
.admin-chart-bar.is-logins {
    background: #477e5a;
}

.admin-chart-legend .is-created,
.admin-chart-bar.is-created {
    background: #82a98a;
}

.admin-chart-legend .is-completed,
.admin-chart-bar.is-completed {
    background: #d8a04c;
}

.admin-bar-chart {
    display: grid;
    height: 178px;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    align-items: end;
    gap: 3px;
    margin-top: 12px;
    border-bottom: 1px solid #e8ede9;
    padding: 12px 2px 0;
}

.admin-chart-day {
    display: grid;
    min-width: 0;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) 20px;
    align-items: end;
}

.admin-chart-bars {
    display: flex;
    min-height: 0;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
}

.admin-chart-bar {
    width: 29%;
    border-radius: 2px 2px 0 0;
    height: var(--bar-size);
}

.admin-chart-label {
    align-self: end;
    color: #89938c;
    font-size: 8px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.admin-recruiter-stats {
    display: grid;
    gap: 0;
}

.admin-recruiter-stats .admin-statistics-heading {
    margin-bottom: 12px;
}

.admin-recruiter-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0ed;
    padding: 11px 2px;
    color: #536258;
    font-size: 12px;
}

.admin-recruiter-stat strong {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #eff4ef;
    color: #294b36;
    font-size: 11px;
}

.admin-order-list {
    overflow: hidden;
    border: 1px solid #e0e6e1;
    border-radius: 11px;
    background: #fff;
}

.admin-managed-order {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #e9ede9;
    padding: 16px 18px;
}

.admin-managed-order:last-child {
    border-bottom: 0;
}

.admin-managed-order-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.admin-managed-order-main strong {
    color: #314137;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-managed-order-main > span:last-child,
.admin-managed-order-meta {
    color: #89938c;
    font-size: 10px;
    line-height: 1.5;
}

.admin-managed-order-meta {
    display: grid;
    gap: 3px;
}

.admin-managed-order .danger-action {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .login-shell {
        display: block;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .welcome-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 34px 26px 22px;
    }

    .mobile-wordmark {
        display: flex;
    }

    .form-content {
        margin: auto;
    }

    .dashboard-header {
        padding-right: 18px;
        padding-left: 18px;
    }

    .account-actions {
        gap: 9px;
    }

    .account-name {
        display: none;
    }

    .dashboard-content {
        margin-top: 70px;
    }

    .operations-content,
    .order-form-content,
    .order-detail-content,
    .admin-content {
        width: calc(100% - 32px);
        margin-top: 34px;
    }

    .admin-content .orders-heading {
        gap: 14px;
    }

    .admin-content .orders-heading .secondary-action {
        width: 100%;
    }

    .admin-create-fields {
        grid-template-columns: 1fr;
    }

    .admin-create-actions {
        flex-direction: column-reverse;
    }

    .admin-create-actions > * {
        width: 100%;
        min-height: 46px;
    }

    .admin-account {
        padding: 16px;
    }

    .admin-account-identity {
        flex-wrap: wrap;
    }

    .admin-account-actions {
        width: 100%;
        margin-left: 49px;
    }

    .admin-account-identity .admin-password-trigger {
        flex: 1;
    }

    .admin-account-actions form,
    .admin-account-actions .danger-action {
        flex: 1;
    }

    .admin-account-actions .danger-action {
        width: 100%;
        min-height: 42px;
    }

    .cancellation-inbox-link {
        min-height: 38px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 10px;
    }

    .cancellation-request-status {
        justify-items: start;
    }

    .cancellation-request-form {
        width: 100%;
    }

    .cancellation-request-form .request-cancel-button,
    .cancellation-review-actions form > .primary-action,
    .cancellation-review-actions form > .danger-action {
        width: 100%;
        min-height: 44px;
    }

    .cancellation-review-actions {
        flex-direction: column;
    }

    .cancellation-review-actions > form,
    .cancellation-review-actions .cancellation-decline-form {
        width: 100%;
    }

    .admin-password-dialog .admin-password-form {
        padding: 20px;
    }

    .admin-dialog-actions > * {
        min-height: 44px;
    }

    .admin-panel-heading {
        padding-right: 16px;
        padding-left: 16px;
    }

    .admin-log-entry {
        padding: 15px;
    }

    .admin-statistics,
    .admin-recruiter-stats {
        padding: 15px;
    }

    .admin-statistics-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .admin-stat-cards {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .admin-stat-card strong {
        font-size: 20px;
    }

    .admin-bar-chart {
        height: 148px;
        gap: 2px;
    }

    .admin-chart-label {
        font-size: 7px;
    }

    .admin-managed-order {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 15px;
    }

    .admin-managed-order .danger-action {
        width: 100%;
        min-height: 42px;
    }

    .orders-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .orders-heading .primary-action {
        width: 100%;
    }

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

    .order-tabs {
        width: 100%;
        max-width: 100%;
    }

    .order-tab {
        min-height: 40px;
        flex: 1;
        justify-content: center;
        padding-right: 8px;
        padding-left: 8px;
        text-align: center;
    }

    .order-search {
        width: 100%;
    }

    .search-field,
    .search-submit {
        min-height: 46px;
    }

    .orders-table,
    .recruitment-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .orders-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .orders-table tbody tr {
        display: block;
        overflow: hidden;
        border: 1px solid #e4eae5;
        border-radius: 9px;
        background: #fff;
    }

    .orders-table td {
        display: flex;
        min-height: 42px;
        height: auto;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid #edf0ed;
        padding: 9px 11px;
        text-align: right !important;
        overflow-wrap: anywhere;
    }

    .orders-table td:last-child {
        border-bottom: 0;
    }

    .orders-table td::before {
        flex: 0 0 36%;
        color: #89938c;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        text-align: left;
    }

    .orders-table td > * {
        min-width: 0;
    }

    .orders-table .position-name,
    .orders-table .client-name,
    .orders-table .handler-name {
        overflow-wrap: anywhere;
        text-align: right;
    }

    .orders-table td[data-label="Position"],
    .orders-table td[data-label="Client"] {
        display: grid;
        grid-template-columns: minmax(90px, 36%) minmax(0, 1fr);
        align-items: center;
    }

    .orders-table td[data-label="Position"]::before,
    .orders-table td[data-label="Client"]::before {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .orders-table td[data-label="Position"] > *,
    .orders-table td[data-label="Client"] > * {
        grid-column: 2;
        text-align: right;
    }

    .orders-table .table-secondary {
        max-width: 58vw;
        margin-left: 0;
        text-align: right;
    }

    .orders-table .number-cell {
        width: auto;
    }

    .orders-table .stage-form {
        width: min(100%, 230px);
        align-items: center;
        flex-direction: row;
    }

    .stage-form select {
        min-width: 0;
        min-height: 42px;
        max-width: none;
        flex: 1;
        font-size: 16px;
    }

    .claim-button,
    .retract-button,
    .stage-form button {
        min-height: 42px;
    }

    .orders-table .action-cell form {
        width: min(100%, 230px);
    }

    .orders-table .action-cell button {
        width: 100%;
    }

    .table-scroll {
        overflow: visible;
    }

    .order-tabs {
        overflow: hidden;
    }

    .pagination-button {
        min-height: 42px;
    }

    .detail-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .detail-assignment {
        flex-wrap: wrap;
    }

    .assignment-hint {
        width: 100%;
        margin-left: 50px;
    }

    .detail-card {
        padding: 16px;
    }

    .operations-job-order-action {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .operations-job-order-action .danger-action,
    .operations-job-order-action .request-cancel-button {
        width: 100%;
        min-height: 44px;
    }

    .results-caption > span {
        display: block;
        margin: 4px 0 0;
    }

    .form-grid-three,
    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .field-span-two {
        grid-column: auto;
    }

    .form-section {
        padding: 21px 18px 23px;
    }

    .form-actions {
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    }

    .form-actions .primary-action,
    .form-actions .secondary-action {
        min-height: 46px;
        flex: 1;
    }

    .field input:not([type="checkbox"]):not([type="radio"]),
    .field select,
    .field textarea,
    .salary-input input {
        min-height: 46px;
        font-size: 16px;
    }

    .field textarea {
        min-height: 112px;
    }

    .salary-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .salary-input {
        width: 100%;
    }

    .choice-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .choice-option,
    .check-option,
    .status-option {
        min-height: 42px;
    }

    .detail-hero-meta,
    .detail-recruitment-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-hero-meta form,
    .detail-recruitment-actions form {
        flex: 1;
    }

    .detail-hero-meta .claim-button,
    .detail-recruitment-actions .retract-button {
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .order-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .order-tab {
        gap: 5px;
        padding: 0 8px;
        font-size: 11px;
    }

    .dashboard-header {
        min-height: 64px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-brand {
        gap: 7px;
        font-size: 13px;
    }

    .dashboard-brand .wordmark-icon {
        width: 30px;
        height: 30px;
    }

    .account-actions {
        gap: 7px;
    }

    .role-chip {
        padding: 5px 8px;
        font-size: 10px;
    }

    .sign-out-button {
        min-height: 38px;
        padding: 0 9px;
    }

    .cancellation-inbox-link {
        width: 36px;
        min-width: 36px;
        justify-content: center;
        overflow: hidden;
        gap: 0;
        padding: 0;
        font-size: 0;
    }

    .cancellation-inbox-link::before {
        content: "✉";
        font-size: 14px;
    }

    .cancellation-inbox-count {
        position: absolute;
        width: 16px;
        min-width: 16px;
        height: 16px;
        margin: -20px 0 0 22px;
        font-size: 9px;
    }

    .operations-content,
    .order-form-content,
    .order-detail-content,
    .admin-content {
        width: calc(100% - 24px);
        margin-top: 24px;
    }

    .admin-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .admin-panel-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-log-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admin-log-heading time {
        text-align: left;
    }

    .orders-table td {
        gap: 8px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .orders-table td::before {
        flex-basis: 34%;
    }

    .stage-form select {
        font-size: 14px;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-controls {
        width: 100%;
    }

    .pagination-controls .pagination-button {
        justify-content: center;
        flex: 1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.login-shell {
    animation: jo-page-enter 520ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.dashboard-header {
    animation: jo-header-enter 420ms ease-out both;
}

.dashboard-content,
.operations-content,
.order-form-content,
.order-detail-content,
.admin-content {
    animation: jo-page-enter 480ms 50ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.detail-sections .detail-card {
    animation: jo-page-enter 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.detail-sections .detail-card:nth-child(2) {
    animation-delay: 70ms;
}

.detail-sections .detail-card:nth-child(3) {
    animation-delay: 120ms;
}

.operations-flash,
.form-error,
.recruitment-error,
.order-error-summary {
    animation: jo-feedback-enter 360ms ease-out both;
}

.sign-out-button,
.search-submit,
.claim-button,
.retract-button,
.stage-form button,
.danger-action,
.pagination-button,
.admin-dialog-close {
    transition:
        transform 160ms ease,
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.dashboard-brand,
.back-link,
.clear-search,
.order-detail-link {
    transition: color 160ms ease;
}

.orders-table tbody tr,
.detail-card,
.admin-panel,
.admin-account,
.admin-stat-card,
.admin-managed-order,
.admin-log-entry,
.admin-recruiter-stat {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.sign-in-button:active,
.primary-action:active,
.secondary-action:active,
.sign-out-button:active,
.search-submit:active,
.claim-button:active,
.retract-button:active,
.stage-form button:active,
.danger-action:active,
.pagination-button:active {
    transform: translateY(1px) scale(0.985);
}

.sign-out-button:focus-visible,
.request-cancel-button:focus-visible,
.search-submit:focus-visible,
.claim-button:focus-visible,
.retract-button:focus-visible,
.stage-form button:focus-visible,
.danger-action:focus-visible,
.pagination-button:focus-visible,
.order-tab:focus-visible,
.dashboard-brand:focus-visible,
.back-link:focus-visible,
.admin-dialog-close:focus-visible {
    outline: 3px solid rgb(109 151 123 / 55%);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .detail-card:hover,
    .admin-stat-card:hover,
    .admin-account:hover,
    .admin-managed-order:hover,
    .admin-recruiter-stat:hover {
        transform: translateY(-2px);
        border-color: #d3dfd5;
        box-shadow: 0 8px 22px rgb(31 52 42 / 5%);
    }

    .orders-table tbody tr:hover {
        background: #f9fcf9;
    }
}

@keyframes jo-page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jo-header-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jo-feedback-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
