/* NOS design tokens and shared JSP components. Breakpoints: 1280 / 820px. */
@font-face {
    font-family: Urbanist;
    src: url('../fonts/Urbanist.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('../fonts/NotoSansKR.woff2') format('woff2'),
        url('../fonts/NotoSansKR.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --font: Urbanist, 'Noto Sans KR', system-ui, sans-serif;
    --bg: #f3f5f8;
    --surface: #fff;
    --surface2: #f6f8fb;
    --glass: rgba(255, 255, 255, .62);
    --text: #1f2633;
    --muted: #8d96a8;
    --line: #edf0f5;
    --acc: #5e9bdc;
    --acc2: #7aaee3;
    --r: 26px;
    --shadow: 0 10px 30px -18px rgba(70, 110, 160, .35);
    --field-font-size: 14px;
    --field-height: 40px;
    color-scheme: light;
}

/* 화면의 본문과 조작 요소 크기를 인쇄 설정과 별도로 관리한다. */
@media screen {
    :root {
        --muted: #5d6b7e;
        --body-font-size: 12.5px;
        --caption-font-size: 11.5px;
        --copy-line-height: 1.45;
        --button-min-height: 36px;
        --button-line-height: 17px;
        --button-inline-padding: 12px;
        --button-font-size: 12.5px;
    }
}

@media screen and (max-width: 820px) {
    :root {
        --field-font-size: 16px;
        --field-height: 44px;
        --button-min-height: 44px;
        --button-inline-padding: 12px;
        --button-font-size: 12px;
    }
}

@media screen and (max-width: 360px) {
    :root {
        --button-inline-padding: 9px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 400 var(--body-font-size, 12px) var(--font);
    min-height: 100vh;
}

@media screen {
    body {
        line-height: var(--copy-line-height);
    }
}

small {
    font-size: var(--caption-font-size, smaller);
}

body:before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 560px;
    background: radial-gradient(1200px 440px at 50% 0%, #b9d3ef 0%, #cfe0f3 45%, rgba(243, 245, 248, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

img {
    display: block;
}

button:disabled {
    cursor: default;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 3px;
}

/* Keep the same usable width on short pages, long pages and task drawers. */
html {
    scrollbar-gutter: stable;
}

.page-shell {
    padding: 22px 26px;
    max-width: 1600px;
    margin: auto;
    min-width: 0;
}

@media screen {
    .page-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .page-shell>main {
        flex: 1 0 auto;
    }

    /* 일반 선택·계정 화면도 업무 화면과 같은 구간 간격을 사용한다. */
    .page-shell>main:not([class]),
    .company-opening-workspace {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-width: 0;
    }

    .page-shell>main:not([class])>.panel-align,
    .company-opening-workspace>.panel-align {
        margin-top: 0;
        padding-top: 0;
    }

    .site-header,
    .site-footer {
        flex-shrink: 0;
    }

    .auth-workspace {
        display: flex;
        flex-direction: column;
    }

    .auth-workspace .panel-align--auth {
        flex: 1;
        align-items: center;
        margin-top: 0;
        padding: 24px 0;
    }
}

.site-header {
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.site-header--compact {
    min-height: var(--button-min-height, 38px);
    display: flex;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: 19px;
    filter: drop-shadow(0 10px 15px rgba(70, 110, 160, .35));
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.34px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy small {
    font-size: var(--caption-font-size, 10.5px);
    line-height: var(--copy-line-height, 15px);
    color: var(--muted);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.primary-nav {
    justify-self: center;
    display: flex;
    gap: 4px;
    padding: 5px;
    align-items: center;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: var(--button-min-height, 38px);
    padding: 0;
    border-radius: 999px;
    background: transparent;
    font-size: var(--body-font-size, 12.5px);
    white-space: nowrap;
}

.nav-item:has(span) {
    flex-basis: 98px;
    width: 98px;
}

.nav-item--active {
    background: var(--surface);
    box-shadow: 0 2px 4px rgba(80, 120, 170, .18);
}

@media screen and (min-width: 821px) and (max-width: 1000px) {
    .site-header:not(.site-header--compact):not(.site-header--super) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-header:not(.site-header--compact):not(.site-header--super) .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .site-header:not(.site-header--compact):not(.site-header--super) .header-actions {
        grid-column: 2;
        grid-row: 1;
    }
}

.header-actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
}

.icon-button:has(img[width="15"]) {
    background: var(--surface);
}

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--acc2);
    color: white;
    font-weight: 600;
    font-size: var(--body-font-size, 12px);
}

.page-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.breadcrumb {
    color: var(--muted);
    font-size: var(--caption-font-size, 11.5px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

h1 {
    font-weight: 300;
    font-size: 42px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

h1 span {
    color: var(--acc);
}

.page-name {
    display: inline-block;
    margin-left: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: baseline;
    white-space: nowrap;
}

@media screen and (max-width: 520px) {
    h1:has(.page-name) {
        font-size: clamp(22px, 6.3vw, 29px);
    }

    main h1:not(:has(.page-name)) {
        font-size: 28px;
    }

    .page-name {
        font-size: 12px;
        margin-left: 8px;
    }
}

@media screen and (max-width: 360px) {
    .work-order-workspace h1:has(.page-name) {
        font-size: 20px;
    }
}

@media print {
    .page-name {
        display: none;
    }
}

.intro {
    font-size: var(--body-font-size, 12px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.submission-progress {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: var(--body-font-size, 13px);
}

.panel-align {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 40px;
}

.panel-align--auth {
    padding-top: 50px;
}

.panel {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 17px 19px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.panel--auth {
    width: 440px;
}

.panel--selection {
    width: 560px;
}

.panel h2 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.field>span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
}

.field input,
.field select {
    display: block;
    width: 100%;
    height: var(--field-height);
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface2);
    font-size: var(--field-font-size);
    line-height: 1.5;
    min-width: 0;
}

.field input::placeholder {
    color: var(--text);
    opacity: 1;
}

.panel--auth .field>span,
.panel--auth .field>label {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.panel--auth .field input {
    height: 52px;
    padding: 12px 14px;
    font-size: 18px;
    line-height: 1.4;
}

.panel--auth .field input::placeholder {
    opacity: .55;
}

.password-control {
    position: relative;
    min-width: 0;
}

.password-control input,
.panel--auth .password-control input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    min-width: 60px;
    min-height: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}

.password-toggle[hidden] {
    display: none;
}

.password-toggle--icon {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    padding: 0;
    background: transparent;
    color: var(--muted);
}

.password-toggle--icon .password-eye-off,
.password-toggle--icon[aria-pressed="true"] .password-eye {
    display: none;
}

.password-toggle--icon[aria-pressed="true"] .password-eye-off {
    display: block;
}

.password-toggle--icon:empty::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url('../icons/eye.svg') center / contain no-repeat;
    mask: url('../icons/eye.svg') center / contain no-repeat;
}

.password-toggle--icon[aria-pressed="true"]:empty::before {
    -webkit-mask-image: url('../icons/eye-off.svg');
    mask-image: url('../icons/eye-off.svg');
}

.panel--auth h2 {
    font-size: 20px;
}

.panel--auth .hint {
    color: var(--text);
    font-size: 13px;
    opacity: .8;
}

.panel--auth .button {
    min-height: 52px;
    font-size: 15px;
}

/* 비밀번호를 가리는 점도 작은 장식 글꼴 대신 또렷하게 표시한다. */
.field input[type="password"],
.panel--auth .field input[type="password"] {
    min-height: 44px;
    font-family: system-ui, 'Noto Sans KR', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
}

.field input[type="password"]::placeholder,
.panel--auth .field input[type="password"]::placeholder {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
}

.hint {
    color: var(--muted);
    font-size: var(--caption-font-size, 11.5px);
    line-height: 1.45;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-min-height, 33px);
    padding: 8px var(--button-inline-padding, 14px);
    border-radius: 999px;
    background: var(--glass);
    color: var(--muted);
    font: 400 var(--button-font-size, 12px)/var(--button-line-height, 17px) var(--font);
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

@media screen {
    .button {
        min-width: 44px;
    }
}

@media screen and (max-width: 360px) {
    .actions {
        gap: 6px;
    }

    .page-shell .site-header {
        column-gap: 3px;
    }

    .brand {
        gap: 5px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .site-header .brand-copy strong {
        font-size: 12px;
        letter-spacing: -.24px;
    }

    .site-header .header-actions {
        gap: 3px;
    }

    .site-header .header-actions .icon-button,
    .site-header .header-actions .avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

.button--primary {
    color: var(--surface);
    background: var(--text);
}

.button-icon::before,
.button-icon--next::after,
.message-reply::before,
.conversation-send::before {
    content: '';
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--button-icon) center / contain no-repeat;
    mask: var(--button-icon) center / contain no-repeat;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button-icon--search {
    --button-icon: url('../icons/search.svg');
}

.button-icon--reset {
    --button-icon: url('../icons/reset.svg');
}

.button-icon--previous {
    --button-icon: url('../icons/arrow-left.svg');
}

.button-icon--document {
    --button-icon: url('../icons/document.svg');
}

.button-icon--next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    --button-icon: url('../icons/arrow-right.svg');
}

.button:hover:not(:disabled) {
    filter: brightness(.97);
}

.button:disabled {
    opacity: .6;
}

.inline-form {
    display: inline-flex;
}

.scope-note {
    font-size: var(--caption-font-size, 11px);
    line-height: 1.6;
    color: var(--muted);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.choice-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.choice-section h3,
.choice-section legend {
    font: 500 var(--caption-font-size, 11px)/1.5 var(--font);
    color: var(--muted);
    margin-bottom: 4px;
    max-width: 100%;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 3px;
}

.button--choice {
    border: 1px solid var(--line);
    background: var(--surface2);
}

.selection-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.choices--arrivals {
    align-items: stretch;
}

.radio-choice {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface2);
    cursor: pointer;
    min-width: 0;
}

.radio-choice input {
    margin: 0;
    flex: 0 0 13px;
    accent-color: var(--acc);
    width: 13px;
    height: 13px;
}

.radio-choice>span {
    font-size: var(--body-font-size, 12px);
    line-height: 1.5;
    min-width: 0;
}

.radio-choice small {
    display: block;
    font-size: var(--caption-font-size, 10px);
    color: var(--muted);
}

.radio-choice:has(input:checked) {
    border-color: var(--acc);
    background: #dceaf8;
}

.pagination {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--acc);
    font-size: var(--caption-font-size, 11px);
    line-height: 1.5;
}

.pagination:empty {
    display: none;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details>div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    line-height: 1.6;
}

.details dt {
    color: var(--muted);
    font-size: var(--caption-font-size, 11px);
}

.details dd {
    font-size: var(--body-font-size, 12px);
    min-width: 0;
    overflow-wrap: anywhere;
}

.message {
    padding: 10px 12px;
    background: #eaf3fc;
    border-radius: 10px;
    font-size: var(--caption-font-size, 11.5px);
    line-height: 1.6;
    color: #3f6e9e;
}

.message--error {
    color: #b44646;
    background: #fdecec;
}

.site-footer {
    margin-top: 20px;
    color: var(--muted);
    font-size: var(--caption-font-size, 10.5px);
    line-height: 1.45;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    padding: 10px 16px;
    background: var(--surface);
    z-index: 100;
}

.skip-link:focus {
    top: 10px;
}

/* UI-06 / UI-07: preserve NOS blue/day panels, pills and table spacing. */
.task-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.task-workspace .page-heading {
    min-height: 0;
}

.task-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric {
    font-size: 30px;
    font-weight: 300;
    color: var(--acc);
    line-height: 1.45;
}

.task-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    min-width: 0;
}

.task-filters .field {
    flex: 1 1 135px;
    max-width: 210px;
}

.task-filters .field--keyword {
    flex: 2 1 210px;
    max-width: 320px;
}

.task-filters .field input,
.task-filters .field select {
    border-radius: 18px;
    background-color: var(--glass);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll-hint {
    display: none;
}

@media (max-width: 820px) {
    .table-scroll-hint {
        display: block;
        margin: 0 0 8px;
        color: var(--muted);
        font-size: var(--caption-font-size, 11.5px);
        line-height: 1.45;
    }
}

.task-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    min-width: 760px;
    text-align: left;
    line-height: 1.45;
}

.task-table th,
.task-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.task-table th {
    color: var(--muted);
    font-size: var(--caption-font-size, 11.5px);
    font-weight: 500;
}

.task-table th:first-child {
    width: 28%;
}

.task-table th:nth-child(2) {
    width: 21%;
}

.task-table th:nth-child(3) {
    width: 15%;
}

.task-table th:nth-child(4) {
    width: 21%;
}

.task-table tbody tr:hover {
    background: var(--surface2);
}

.task-link {
    display: inline-block;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.task-link:hover {
    color: var(--acc);
    text-decoration-color: var(--acc);
}

.tag {
    display: inline-block;
    color: var(--acc);
    font-size: var(--caption-font-size, 10px);
    margin-left: 6px;
}

.empty-state {
    padding: 26px 0;
    color: var(--muted);
    line-height: 1.6;
}

.details--task>div {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 12px;
}

.details--task dd {
    font-weight: 500;
}

.preserve-lines {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.subheading {
    font-size: var(--body-font-size, 12px);
    font-weight: 500;
    padding-top: 8px;
}

.record-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-list li {
    background: var(--surface2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.6;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.task-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1.325fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field textarea {
    width: 100%;
    min-width: 0;
    min-height: 84px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface2);
    font-size: var(--field-font-size);
    line-height: 1.6;
}

.field select {
    appearance: none;
    background-image: url('../icons/chevron-down.svg');
    background-repeat: no-repeat;
    background-size: 10px 6px;
    background-position: right 12px center;
    padding-right: 30px;
}

.field input[readonly] {
    color: var(--muted);
}

.checkbox-field {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: var(--caption-font-size, 11.5px);
    line-height: 1.6;
    color: var(--muted);
}

.checkbox-field input {
    flex: 0 0 auto;
    accent-color: var(--acc);
}

@media(max-width:1280px) {
    .task-edit-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-copy small {
        max-width: 190px;
    }

}

@media(max-width:820px) {

    .task-edit-form,
    .form-grid,
    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .task-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-filters .field,
    .task-filters .field--keyword {
        max-width: none;
        flex: 1 1 135px;
    }

    .task-filters .field--keyword {
        flex-basis: 100%;
    }

    .details--task>div {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .page-shell {
        padding: 22px 16px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        margin-bottom: 20px;
    }

    .site-header--compact {
        display: flex;
    }

    .brand-copy small {
        max-width: 210px;
    }

    .primary-nav {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-self: stretch;
        max-width: 100%;
    }

    .primary-nav .nav-item {
        flex-basis: 38px;
        width: 38px;
        min-width: 38px;
    }

    .primary-nav .nav-item:has(span) {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 48px;
        flex-direction: column;
        gap: 3px;
        font-size: 11px;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 6px;
    }

    .header-actions .icon-button,
    .header-actions .avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    h1 {
        font-size: 32px;
    }

    .panel-align {
        padding-top: 0;
    }

    .panel-align--auth {
        padding-top: 14px;
    }

    .panel {
        padding: 18px 20px;
        width: 100%;
    }

    .choices {
        max-height: 240px;
    }

    .details>div {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy small {
        max-width: 180px;
    }

    .site-footer {
        margin-top: 20px;
    }

}


.file-name {
    overflow-wrap: anywhere;
}

.field input[type="file"] {
    height: auto;
    padding: 8px 10px;
    max-width: 100%;
    font-size: var(--body-font-size, 13px);
}

.field input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

/* ST-28: reuse NOS native fields with three columns and the original responsive breaks. */
.reply-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.reply-grid .reply-wide {
    grid-column: 1/-1;
}

.choice-section summary {
    cursor: pointer;
    margin-bottom: 14px;
}

@media(max-width:1280px) {
    .reply-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:820px) {
    .reply-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Work-order drawer and inbox: original NOS geometry, palette and icon sizes. */
.notification-button {
    position: relative;
}

.notification-count,
.unread-pill {
    border-radius: 20px;
    background: var(--acc);
    color: #fff;
    font-size: var(--caption-font-size, 10px);
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
}

.notification-count {
    position: absolute;
    right: -5px;
    top: -4px;
}

[hidden] {
    display: none !important;
}

.work-order-list h2 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.work-order-list ul,
.notification-rows {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.order-mark {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    background: var(--surface2);
    border-radius: 12px;
}

.order-copy {
    display: grid;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.order-copy strong {
    font-size: var(--body-font-size, 12.5px);
    font-weight: 600;
}

.order-copy small,
.order-copy>span {
    color: var(--muted);
    font-size: var(--caption-font-size, 11px);
    overflow-wrap: anywhere;
}

/* Full-viewport overlays; keep the underlying page at its original gutter-adjusted position. */
html.conversation-viewport-ready {
    scrollbar-gutter: auto;
}

html.conversation-viewport-ready .page-shell {
    position: relative;
    left: calc(0px - var(--conversation-scrollbar-gutter, 0px) / 2);
    width: calc(100% - var(--conversation-scrollbar-gutter, 0px));
}

.conversation-scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(31, 38, 51, .3);
}

.conversation-drawer {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 21;
    width: 540px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body:has(.conversation-drawer) {
    overflow: hidden;
}

.conversation-heading {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.conversation-heading>div {
    min-width: 0;
}

.conversation-heading h2 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.drawer-close {
    flex: 0 0 var(--button-min-height, 34px);
    height: var(--button-min-height, 34px);
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.conversation-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.conversation-summary .status-pill {
    justify-self: start;
}

.conversation-summary form {
    margin-left: auto;
}

.conversation-pages {
    flex-shrink: 0;
    margin: 0;
}

.conversation-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 0 auto;
    min-height: 80px;
}

.message-bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 86%;
    align-self: flex-start;
    overflow-wrap: anywhere;
    scroll-margin: 12px;
}

.message-bubble--mine {
    align-self: flex-end;
    align-items: flex-end;
}

.message-content {
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 4px 16px 16px;
    background: #f1f5fa;
}

.message-bubble--mine .message-content {
    border-radius: 16px 4px 16px 16px;
    background: #e4f0ff;
}

.message-bubble:target,
.message-bubble:focus {
    outline: none;
}

.message-bubble--added {
    animation: message-arrive 160ms ease-out;
}

.conversation-feedback {
    color: var(--text);
}

.conversation-pages .is-updated {
    box-shadow: inset 0 0 0 1px var(--acc);
}

.reply-target blockquote {
    margin: 6px 0;
}

@keyframes message-arrive {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .message-bubble--added {
        animation: none;
    }
}

.message-bubble>header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.message-bubble>header strong {
    font-size: var(--caption-font-size, 10.5px);
}

.message-bubble time {
    color: var(--muted);
    font-size: var(--caption-font-size, 10.5px);
}

.message-content>p {
    font-size: var(--body-font-size, 12px);
    line-height: 1.55;
}

.message-bubble blockquote {
    margin: 0 0 8px;
    padding: 8px;
    border-left: 2px solid var(--muted);
    background: #ffffff99;
    border-radius: 6px;
}

.message-bubble blockquote p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em;
    overflow: hidden;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.reply-target p {
    max-height: 65px;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-bubble blockquote span,
.message-reply {
    font-size: var(--caption-font-size, 10.5px);
    color: #576b85;
}

.message-reply {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 44px;
    min-width: 44px;
    padding: 4px;
    --button-icon: url('../icons/reply.svg');
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.message-bubble--mine .message-meta {
    justify-content: flex-end;
}

.conversation-compose {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    flex-shrink: 0;
}

.conversation-compose textarea {
    min-height: 58px;
    max-height: 160px;
    width: 100%;
    resize: vertical;
}

.conversation-compose .actions {
    margin: 0;
}

.conversation-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.conversation-input-row .field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.conversation-send {
    flex-shrink: 0;
    min-height: 44px;
    width: 44px;
    padding: 0;
    --button-icon: url('../icons/send.svg');
}

.reply-target {
    background: var(--surface2);
    padding: 10px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
}

.reply-target>strong,
.reply-target>p,
.reply-target>blockquote {
    grid-column: 1;
    min-width: 0;
}

.reply-target>.button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.notification-inbox {
    width: 100%;
    min-width: 0;
}

.notification-rows {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.notification-row {
    padding: 14px 12px;
    border-radius: 12px;
    background: #f1f5fa;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: center;
    overflow-wrap: anywhere;
}

.notification-row > p,
.notification-row > h2 {
    grid-column: 2;
    min-width: 0;
}

.notification-row > form {
    grid-column: 3;
    grid-row: 1 / span 3;
}

.notification-select {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
}

.notification-actions {
    margin-top: 14px;
}

.notification-select-all {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.notification-row h2 {
    font-size: 13px;
    font-weight: 500;
}

.notification-update a {
    text-decoration: underline;
}

@media(max-width:820px) {
    .notification-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
    }

    .notification-row > form {
        grid-column: 2;
        grid-row: auto;
    }

    .conversation-drawer {
        padding: 24px 20px;
    }

    .message-bubble {
        max-width: 90%;
    }
}

/* Keep the drawer header and composer stable while only the message history scrolls. */
.conversation-drawer>* {
    flex-shrink: 0;
}

.conversation-timeline {
    flex: 1 1 120px;
    min-height: 90px;
    overflow-y: auto;
    padding: 4px;
}

@media (max-height: 700px) {
    .conversation-timeline {
        min-height: 30px;
        flex-basis: 30px;
    }
}

.message-bubble {
    flex-shrink: 0;
}

/* Reuse NOS two-column cards: 782.04 / 589.96 at a 1440px viewport. */
.source-columns {
    display: grid;
    grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
    gap: 16px;
    align-items: start;
    margin: 20px 0;
}

/* 상위 업무 레이아웃의 gap과 열 컨테이너 여백이 중복되지 않게 한다. */
.task-workspace>.source-columns {
    margin: 0;
}

.source-columns>.panel {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.source-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.source-wide {
    grid-column: 1/-1;
}

.source-original {
    max-height: 600px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.source-photo {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    border-radius: 12px;
}

.review-form,
.review-form>fieldset {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.review-form>fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.review-field {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    min-width: 0;
    margin: 14px 0;
    overflow-wrap: anywhere;
}

.review-field legend {
    font-size: var(--body-font-size, 12px);
}

.review-field .button {
    margin-top: 10px;
}

@media(max-width:820px) {
    .source-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .source-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.source-columns>.panel>.button {
    justify-self: start;
}

/* Equipment keeps the original NOS cards, fixed icon slots and native forms. */
.equipment-form {
    min-width: 0;
}

.equipment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.equipment-table {
    width: 640px;
    table-layout: fixed;
    border-collapse: collapse;
}

.equipment-table th,
.equipment-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    overflow-wrap: anywhere;
}

.equipment-table th {
    background: var(--surface2);
    color: var(--muted);
    font-size: var(--caption-font-size, 11.5px);
    font-weight: 500;
}

.equipment-table th:nth-child(1) {
    width: 220px;
}

.equipment-table th:nth-child(2) {
    width: 170px;
}

.equipment-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

@media(max-width:1280px) {
    .equipment-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:820px) {
    .equipment-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.equipment-workspace .source-columns {
    margin: 0;
}

.extraction-task-workspace .source-columns {
    margin: 0;
}

/* Fleet reuses the existing NOS cards, typography and form controls. */
.fleet-grades {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px
}

.fleet-grades .panel {
    padding: 18px 20px;
    min-width: 0
}

.fleet-grades h2 {
    font-size: 15px
}

.fleet-grade-number {
    margin: 0;
    font-size: 30px;
    color: var(--acc)
}

.fleet-grade-number small {
    font-size: 14px;
    margin-left: 7px;
    color: var(--muted)
}

.fleet-filters {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(130px, 1fr)) auto auto;
    align-items: end
}

.fleet-check {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: var(--field-height);
    font-size: var(--body-font-size, 12px);
}

.fleet-table {
    min-width: 690px
}

.fleet-table td:first-child {
    width: 37%
}

.fleet-sub {
    display: block;
    font-size: var(--caption-font-size, 11px);
    margin-top: 5px;
    color: var(--muted);
    overflow-wrap: anywhere
}

.fleet-score-inline {
    color: var(--acc);
    font-size: 20px
}

.fleet-score {
    font-size: 48px;
    color: var(--acc);
    margin: 0;
    line-height: 1.35
}

.fleet-score small {
    font-size: 14px;
    margin-left: 10px;
    color: var(--text)
}

.fleet-unassessed {
    font-size: 24px;
    color: var(--acc);
    margin: 6px 0
}

.fleet-issues {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    font-size: 13px;
    overflow-wrap: anywhere
}

.fleet-detail-columns.source-columns {
    margin: 0
}

.fleet-states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.fleet-workspace form {
    margin-bottom: 0
}

.fleet-workspace .actions form {
    max-width: 100%
}

.fleet-detail-columns .details--task>div {
    grid-template-columns: 115px minmax(0, 1fr)
}

.fleet-states .button {
    background: var(--surface2);
    gap: 6px
}

@media(max-width:1280px) {
    .fleet-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .fleet-grades {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:820px) {
    .fleet-grades {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .fleet-filters {
        grid-template-columns: minmax(0, 1fr)
    }

    .fleet-detail-columns.source-columns {
        grid-template-columns: minmax(0, 1fr)
    }

    .fleet-score {
        font-size: 40px
    }

    .fleet-score small {
        display: block;
        margin-left: 0
    }

    .fleet-workspace .page-heading h1 {
        overflow-wrap: anywhere
    }
}

/* Search form/results share the original NOS surfaces, fields and navigation. */
.search-form-align {
    display: flex;
    justify-content: center;
    padding-top: 40px
}

.search-form-panel {
    width: 560px;
    max-width: 100%;
    min-width: 0
}

.search-workspace .page-heading h1,
.search-meta {
    overflow-wrap: anywhere
}

.search-meta {
    display: block;
    font-size: var(--caption-font-size, 11px);
    color: var(--muted);
    margin-top: 5px
}

.search-query .review-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: end
}

.search-query .review-form>.hint {
    grid-column: 1/-1;
    grid-row: 2;
    margin: 0
}

.search-query .review-form>.actions {
    grid-column: 2;
    grid-row: 1
}

.search-table {
    min-width: 640px
}

.search-table th:first-child {
    width: 47%
}

.search-table th:nth-child(2) {
    width: 26.5%
}

.search-table th:nth-child(3) {
    width: 26.5%
}

.search-result-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--text);
    text-align: left;
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
    cursor: pointer;
    overflow-wrap: anywhere;
    max-width: 100%
}

.search-result-link:hover {
    color: var(--acc);
    text-decoration-color: var(--acc)
}

@media screen {
    button.search-result-link {
        min-height: var(--button-min-height, 44px);
    }
}

.search-result-link:disabled {
    opacity: .6
}

.search-workspace .hint {
    overflow-wrap: anywhere
}

.search-scroll-hint {
    display: none
}

@media(max-width:820px) {
    .search-query .review-form {
        grid-template-columns: minmax(0, 1fr)
    }

    .search-query .review-form>.actions,
    .search-query .review-form>.hint {
        grid-column: auto;
        grid-row: auto
    }

    .search-table {
        min-width: 470px
    }

    .search-scroll-hint {
        display: block
    }
}

/* Company audit pages retain the shared NOS cards, typography and controls. */
.audit-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.audit-number {
    font-size: 30px;
    color: var(--acc);
    margin: 0
}

.audit-number small {
    font-size: 14px;
    margin-left: 6px;
    color: var(--muted)
}

.audit-filter-form {
    display: grid;
    gap: 14px
}

.audit-meta {
    display: block;
    font-size: var(--caption-font-size, 11px);
    color: var(--muted);
    margin-top: 5px
}

.audit-table {
    min-width: 640px
}

.audit-table th:first-child {
    width: 37%
}

.audit-table th:nth-child(2),
.audit-table th:nth-child(3),
.audit-table th:nth-child(4) {
    width: 21%
}

.audit-scroll-hint {
    display: none
}

.audit-detail-align {
    display: flex;
    justify-content: center;
    padding-top: 40px
}

.audit-detail-panel {
    width: 560px;
    max-width: 100%;
    min-width: 0
}

.audit-detail-panel .details--task>div {
    grid-template-columns: 115px minmax(0, 1fr)
}

.audit-change {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    min-width: 0
}

.audit-change h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 0
}

.audit-workspace .hint,
.audit-workspace .page-heading h1,
.audit-workspace dd {
    overflow-wrap: anywhere
}

@media(max-width:820px) {
    .audit-metrics {
        grid-template-columns: minmax(0, 1fr)
    }

    .audit-table {
        min-width: 620px
    }

    .audit-scroll-hint {
        display: block
    }

    .audit-detail-panel .details--task>div {
        grid-template-columns: 90px minmax(0, 1fr)
    }
}

/* Company monitoring uses the unchanged NOS header, cards, fonts and table spacing. */
.monitoring-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
}

.monitoring-summary>div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.monitoring-summary dt {
    color: var(--muted);
    font-size: var(--caption-font-size, 12px);
}

.monitoring-summary dd {
    margin: 0;
    font-weight: 600;
}

.monitoring-guide {
    margin-top: 12px;
}

.monitoring-guide summary {
    display: list-item;
    width: fit-content;
    max-width: 100%;
    padding: 12px 0;
    cursor: pointer;
    font-size: var(--caption-font-size, 12px);
    color: var(--muted);
}

.monitoring-workspace .monitoring-companies {
    min-width: 760px
}

.monitoring-workspace .monitoring-companies th:nth-child(1) {
    width: 29%
}

.monitoring-workspace .monitoring-companies th:nth-child(2) {
    width: 22%
}

.monitoring-workspace .monitoring-companies th:nth-child(n+3) {
    width: 16.33%
}

.monitoring-workspace .monitoring-arrivals {
    min-width: 780px
}

.monitoring-workspace .monitoring-arrivals th:nth-child(1) {
    width: 37%
}

.monitoring-workspace .monitoring-arrivals th:nth-child(n+2) {
    width: 21%
}

.monitoring-workspace .monitoring-tasks {
    min-width: 980px
}

.monitoring-workspace .monitoring-tasks th:nth-child(1) {
    width: 23%
}

.monitoring-workspace .monitoring-tasks th:nth-child(2) {
    width: 17%
}

.monitoring-workspace .monitoring-tasks th:nth-child(3) {
    width: 12%
}

.monitoring-workspace .monitoring-tasks th:nth-child(4) {
    width: 18%
}

.monitoring-workspace .monitoring-tasks th:nth-child(5) {
    width: 12%
}

.monitoring-workspace .monitoring-tasks th:nth-child(6) {
    width: 18%
}

.monitoring-row-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--caption-font-size, 11px);
    margin-top: 6px;
    color: var(--muted)
}

.monitoring-row-links a {
    text-decoration: underline
}

.monitoring-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end
}

.monitoring-filters>.field {
    min-width: 150px;
    max-width: 220px;
    flex: 1
}

.monitoring-workspace .panel {
    min-width: 0
}

@media(max-width:820px) {
    .monitoring-filters>.field {
        max-width: none;
        flex-basis: 100%
    }
}

@media (max-width: 520px) {
    .monitoring-workspace .monitoring-arrivals {
        min-width: 620px;
    }

    .monitoring-workspace .monitoring-arrivals th:nth-child(1) {
        width: 30%;
    }

    .monitoring-workspace .monitoring-arrivals th:nth-child(n + 2) {
        width: 23.33%;
    }

}

.site-header--super {
    display: flex;
    justify-content: space-between
}

/* Reserve only the highest-admin viewport gutter when moving between short/long pages. */
html.super-admin-page {
    scrollbar-gutter: stable
}

/* Opening forms reuse the Figma 560px NOS card and existing input/button components. */
.company-opening-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0
}

.company-opening-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55
}

.company-opening-check input {
    flex-shrink: 0
}

.company-opening-workspace .details>div {
    grid-template-columns: 115px minmax(0, 1fr)
}

@media(max-width:820px) {
    .company-opening-workspace .details>div {
        grid-template-columns: 90px minmax(0, 1fr)
    }
}

/* Company settings and account access reuse Figma UI-12/UI-13 tokens. */
html.company-management-page {
    scrollbar-gutter: stable
}

.company-management .management-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.company-management form {
    display: grid;
    gap: 14px;
    margin: 0;
    min-width: 0
}

.company-management .field {
    min-width: 0
}

.company-management .management-vessels {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    min-width: 0;
    margin: 0
}

.company-management .management-vessels legend {
    font-size: var(--caption-font-size, 11px);
    color: var(--muted);
    padding: 0 5px
}

.company-management .management-grants {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 240px;
    overflow: auto
}

.company-management .management-grants label,
.company-management .management-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--body-font-size, 12px);
    overflow-wrap: anywhere
}

.company-management input[type=checkbox] {
    width: 16px;
    height: 16px;
    padding: 0;
    flex: none;
    accent-color: var(--acc)
}

.company-management .management-action-panel {
    width: 560px;
    max-width: 100%;
    min-width: 0
}

.company-management .management-users {
    min-width: 740px
}

.company-management .management-users th:nth-child(1) {
    width: 34%
}

.company-management .management-users th:nth-child(2) {
    width: 19%
}

.company-management .management-users th:nth-child(3) {
    width: 26%
}

.company-management .management-users th:nth-child(4) {
    width: 21%
}

.company-management p,
.company-management h2,
.company-management .hint {
    overflow-wrap: anywhere
}

@media(max-width:820px) {

    .company-management .management-fields,
    .company-management .management-grants {
        grid-template-columns: minmax(0, 1fr)
    }
}

.planning-workspace .planning-table {
    min-width: 760px
}

.planning-workspace textarea {
    min-height: 84px;
    resize: vertical
}

.planning-workspace .planning-assignees {
    margin: 0;
    padding-left: 20px;
    overflow-wrap: anywhere
}

.planning-workspace details ul {
    padding-left: 18px;
    overflow-wrap: anywhere
}

.planning-workspace summary {
    cursor: pointer
}
/* Keep the selected work scope visible without changing the primary navigation. */
.selection-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 16px;
}

.selection-context > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-quick-search {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.task-quick-search .field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.workflow-guide {
    padding-left: 22px;
    margin: 16px 0;
}

.workflow-guide li {
    padding-left: 4px;
    margin-bottom: 14px;
}

.workflow-guide p {
    margin: 4px 0 0;
}

@media print {
    .selection-context {
        display: none;
    }
}
