.directory-toolbar { flex-wrap: wrap; }
.directory-toolbar .supplier-filter-form { flex: 1; min-width: 0; }
.directory-toolbar .search-field { flex: 1 1 220px; min-width: 180px; }
.directory-toolbar > button { flex-shrink: 0; }
.directory-table { min-width: 1020px; }
.directory-table td { vertical-align: middle; }
.directory-table .stacked-cell, .directory-table .supplier-name-cell { max-width: 240px; overflow-wrap: anywhere; white-space: normal; }
.directory-table .row-actions { flex-wrap: wrap; gap: 6px; }
.action-menu-cell { min-width: 78px; text-align: center; }
.row-action-dropdown-host { display: inline-block; }
.row-action-dropdown { position: fixed; z-index: 50; width: 184px; padding: 6px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 10px 28px rgba(8, 47, 85, 0.18); }
.row-action-dropdown[hidden] { display: none; }
.row-action-dropdown-title { display: block; overflow: hidden; padding: 7px 10px 8px; border-bottom: 1px solid var(--border-default); color: var(--text-tertiary); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.row-action-dropdown a, .row-action-dropdown button { display: flex; width: 100%; min-height: 36px; align-items: center; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.row-action-dropdown a:hover, .row-action-dropdown a:focus-visible, .row-action-dropdown button:hover, .row-action-dropdown button:focus-visible { background: var(--bg-selected); color: var(--brand-navy); outline: none; }
@media (max-width: 700px) {
    .directory-toolbar .supplier-filter-form { width: 100%; flex-basis: 100%; }
    .directory-toolbar .native-select-field { flex: 1 1 130px; min-width: 0; }
    .directory-toolbar .search-field { flex-basis: 100%; }
}

:root {
    --bg-default: #f5f7fa;
    --bg-surface: #ffffff;
    --bg-selected: #edf4ff;
    --bg-disabled: #edf0f4;
    --border-default: #dfe5ec;
    --border-focus: rgba(44, 107, 237, 0.09);
    --text-primary: #162536;
    --text-secondary: #344457;
    --text-tertiary: #526174;
    --text-placeholder: #6d7b8c;
    --text-disabled: #8a96a4;
    --brand-navy: #082f55;
    --brand-mint: #20c4c8;
    --brand-logo: #16c6c5;
    --text-positive: var(--brand-logo);
    --interactive: #2c6bed;
    --mint-soft: #77d9cb;
    --warning-bg: #fff4da;
    --warning: #925700;
    --error-bg: #fdebed;
    --error: #bc2d3c;
    --lock-bg: #e9eef4;
    --shadow-line: 0 0 2px var(--border-focus);
}

* {
    box-sizing: border-box;
}

*{scrollbar-width:thin;scrollbar-color:var(--brand-logo) transparent}
@supports selector(::-webkit-scrollbar){
    *{scrollbar-width:auto;scrollbar-color:auto}
    ::-webkit-scrollbar{width:10px;height:10px}
    ::-webkit-scrollbar-track{background:transparent}
    ::-webkit-scrollbar-thumb{background:var(--brand-logo);border:2px solid transparent;background-clip:padding-box;border-radius:999px;min-width:40px;min-height:40px}
    ::-webkit-scrollbar-button{display:none;width:0;height:0}
    ::-webkit-scrollbar-corner{background:transparent}
}

.has-auto-list-scrollbars :is(.data-table-wrap, .pin-compare-table-scroll, .settlement-primary-frame) {
    --list-scrollbar-color: transparent;
    scrollbar-color: var(--list-scrollbar-color) transparent;
}

.has-auto-list-scrollbars :is(.data-table-wrap, .pin-compare-table-scroll, .settlement-primary-frame).is-list-scrolling {
    --list-scrollbar-color: var(--brand-logo);
}

@supports selector(::-webkit-scrollbar) {
    .has-auto-list-scrollbars :is(.data-table-wrap, .pin-compare-table-scroll, .settlement-primary-frame) {
        scrollbar-color: auto;
    }

    .has-auto-list-scrollbars :is(.data-table-wrap, .pin-compare-table-scroll, .settlement-primary-frame)::-webkit-scrollbar-thumb:vertical {
        background-color: var(--list-scrollbar-color);
    }
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background: var(--bg-default);
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-width: 1180px;
}

.app-shell.sidebar-collapsed {
    min-width: 980px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: 240px;
    min-height: 1024px;
    background: var(--bg-surface);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.08);
    transition: width 0.18s ease;
    overflow: visible;
}

.sidebar-collapsed .sidebar {
    width: 80px;
}

.sidebar-logo {
    position: relative;
    height: 96px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 136px;
    height: 32px;
    object-fit: contain;
    transition: opacity 0.12s ease, transform 0.18s ease;
}

.sidebar-collapsed .sidebar-logo {
    padding: 0;
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo .brand-logo {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.collapse-button {
    position: absolute;
    top: 24px;
    left: 216px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-navy);
    display: grid;
    place-items: center;
    transition: left 0.18s ease, transform 0.18s ease;
    z-index: 2;
}

.sidebar-collapsed .collapse-button {
    left: 56px;
    transform: rotate(180deg);
}

.collapse-button img {
    width: 14px;
    height: 14px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.sidebar-collapsed .side-nav {
    padding: 16px 12px;
}

.menu-group {
    width: 100%;
}

.menu-item {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 8px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-collapsed .menu-item {
    width: 56px;
    padding: 8px;
    justify-content: center;
}

.sidebar-collapsed .menu-item span:not(.active-dot),
.sidebar-collapsed .menu-arrow,
.sidebar-collapsed .submenu {
    display: none !important;
}

.sidebar-collapsed .menu-item.is-active {
    justify-content: center;
    padding: 8px;
}

.menu-item.is-active {
    justify-content: space-between;
    padding-left: 12px;
    color: var(--brand-navy);
    background: var(--bg-surface);
}

.menu-item > span:not(.active-dot) {
    flex: 1 1 auto;
    min-width: 0;
}

.active-dot {
    display: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-navy);
    flex: none;
}

.menu-item.is-active .active-dot {
    display: block;
}

.menu-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex: 0 0 16px;
    transition: transform 0.15s ease;
}

.menu-group.is-open .menu-arrow {
    transform: rotate(90deg);
}

.submenu {
    display: none;
    padding: 4px 0 0 28px;
}

.menu-group.is-open .submenu {
    display: block;
}

.submenu a {
    display: block;
    height: 32px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--text-placeholder);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.submenu a:hover {
    color: var(--brand-navy);
    background: var(--bg-selected);
}

.submenu a.is-active {
    color: var(--brand-navy);
    background: var(--bg-selected);
    font-weight: 800;
}

.top-header {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 240px;
    width: calc(100% - 240px);
    min-width: 940px;
    height: 80px;
    padding: 20px 40px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-default);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    transition: left 0.18s ease, width 0.18s ease;
}

.sidebar-collapsed .top-header {
    left: 80px;
    width: calc(100% - 80px);
}

.icon-button,
.profile-chip,
.logout-button {
    height: 40px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
}

.icon-button {
    width: 40px;
    display: grid;
    place-items: center;
}

.icon-button img {
    width: 18px;
    height: 18px;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    position: relative;
}

.profile-chip img {
    width: 16px;
    height: 16px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-disabled);
}

.logout-button {
    padding: 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.profile-menu {
    position: absolute;
    top: 64px;
    right: 112px;
    width: 184px;
    display: none;
    padding: 12px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: 0 10px 28px rgba(8, 47, 85, 0.12);
}

.profile-menu.is-open {
    display: block;
}

.profile-menu strong,
.profile-menu span,
.profile-menu a {
    display: block;
}

.profile-menu strong {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 21px;
}

.profile-menu span {
    margin-bottom: 8px;
    color: var(--text-disabled);
    font-size: 12px;
    line-height: 18px;
}

.profile-menu a {
    padding: 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.profile-menu a:hover {
    background: var(--bg-selected);
    color: var(--brand-navy);
}

.main-content {
    position: relative;
    width: calc(100% - 240px);
    min-width: 940px;
    margin-left: 240px;
    padding: 116px 40px 36px 36px;
    transition: margin-left 0.18s ease, width 0.18s ease;
}

.sidebar-collapsed .main-content {
    width: calc(100% - 80px);
    margin-left: 80px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 87px;
    margin-bottom: 18px;
}

.page-title p,
.page-title h1,
.page-title span {
    margin: 0;
}

.page-title p {
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.page-title h1 {
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 27px;
    font-weight: 700;
    line-height: 38px;
}

.page-title span {
    display: block;
    margin-top: 4px;
    color: var(--text-placeholder);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.page-title.has-page-purpose {
    height: auto;
    min-height: 87px;
    align-items: flex-start;
    gap: 16px;
}

.page-title.has-page-purpose > div { flex: 1; min-width: 0; }
.page-title.has-page-purpose > button { flex-shrink: 0; margin-top: 4px; }
.page-title .page-purpose { max-width: 1050px; color: var(--text-secondary); overflow-wrap: anywhere; }

.filter-card,
.stat-card,
.chart-card,
.alert-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: var(--shadow-line);
}

.filter-card {
    min-height: 87px;
    margin-bottom: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.field-set {
    display: flex;
    gap: 12px;
}

.select-field {
    width: 144px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.select-field span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.select-field > button {
    width: 144px;
    height: 37px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.select-field button b {
    font: inherit;
}

.select-field img {
    width: 16px;
    height: 16px;
}

.select-menu {
    position: absolute;
    z-index: 6;
    top: 59px;
    left: 0;
    width: 144px;
    display: none;
    padding: 6px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: 0 10px 28px rgba(8, 47, 85, 0.12);
}

.select-menu.is-open {
    display: block;
}

.select-menu button {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    padding: 7px 8px;
    font-size: 13px;
    font-weight: 600;
}

.select-menu button:hover {
    background: var(--bg-selected);
    color: var(--brand-navy);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.navy-button,
.outline-button,
.mint-button,
.primary-button {
    min-width: 57px;
    height: 37px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.navy-button,
.primary-button {
    border: 1px solid var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

.outline-button {
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
}

.mint-button {
    border: 1px solid var(--brand-logo);
    background: var(--brand-logo);
    color: var(--text-primary);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    min-width: 0;
    height: 109px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card span {
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.stat-card strong {
    color: var(--brand-navy);
    font-size: 23px;
    font-weight: 800;
    line-height: 31px;
}

.stat-card em {
    color: var(--text-positive);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: minmax(620px, 717px) minmax(320px, 391px);
    gap: 16px;
    margin-bottom: 18px;
}

.chart-card {
    height: 361px;
    padding: 18px 20px;
}

.chart-card h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.bar-chart {
    height: 255px;
    border-left: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    padding: 4px 12px;
    display: flex;
    align-items: flex-end;
    gap: 26px;
}

.bar-day {
    width: 71px;
    height: 214px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.bar-stack {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.bar-stack span {
    display: block;
    width: 14px;
    border-radius: 2px 2px 0 0;
}

.bar-day small {
    color: var(--text-tertiary);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.legend {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.legend span,
.today-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.legend i,
.today-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.bar-color-1 {
    background: var(--brand-navy);
}

.bar-color-2 {
    background: var(--brand-mint);
}

.bar-color-3 {
    background: var(--interactive);
}

.bar-color-4 {
    background: var(--mint-soft);
}

.today-card {
    display: flex;
    flex-direction: column;
    gap: 66px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 44px;
}

.donut-chart {
    position: relative;
    width: 158px;
    height: 158px;
    display: grid;
    place-items: center;
}

.donut-chart img {
    position: absolute;
    inset: 0;
    width: 158px;
    height: 158px;
}

.donut-chart strong {
    position: relative;
    color: var(--text-primary);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.today-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.today-legend span {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 21px;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.alert-card {
    height: 115px;
    padding: 16px 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-card img {
    width: 16px;
    height: 16px;
}

.alert-card strong {
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 800;
    line-height: 27px;
}

.alert-card p {
    margin: 0;
    color: var(--text-disabled);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.badge {
    min-height: 26px;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
}

.badge.warning {
    color: var(--warning);
}

.badge.error {
    color: var(--error);
}

.badge.lock {
    color: var(--brand-navy);
}

.login-page {
    min-height: 100vh;
    background: #ffffff;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.login-wrap {
    width: min(560px, 100vw);
    min-height: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

.login-panel {
    width: 420px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 190px;
    height: 45px;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto 34px;
}

.login-heading h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 800;
    line-height: 42px;
}

.login-heading p {
    margin: 0 0 26px;
    color: var(--text-placeholder);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label span {
    color: var(--text-disabled);
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
}

.login-form input:not([type="checkbox"]) {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.login-form input:focus {
    border-color: var(--interactive);
    box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.12);
}

.remember-line {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    margin-top: 2px;
}

.remember-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-navy);
}

.remember-line span {
    font-size: 15px !important;
    line-height: 22px !important;
}

.form-error {
    margin: 0;
    color: var(--error);
    font-size: 13px;
    line-height: 20px;
}

.primary-button {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    font-size: 16px;
}


.password-change-page {
    padding: 24px 16px;
}

.password-change-page .login-wrap {
    width: min(560px, 100%);
    padding: 40px 32px;
}

.password-change-page .login-panel {
    width: 100%;
    min-width: 0;
}

.password-change-page .login-logo {
    margin-bottom: 24px;
}

.password-change-page .login-heading h1 {
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
}

.password-change-notice {
    margin: 24px 0 0;
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--bg-default);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.password-change-account {
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.password-change-guidance {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.7;
}

.password-change-exit {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.password-change-exit .outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    height: auto;
    padding: 10px 16px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .password-change-page .login-wrap {
        padding: 28px 20px;
    }
}

.login-join-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-default);
}

.login-join-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--brand-navy);
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-join-link--apply {
    border-color: #d5eae8;
    background: #f2faf9;
}

.login-join-link:hover {
    border-color: #b4c5d5;
    background: #f0f4f8;
    box-shadow: 0 4px 12px rgba(8, 47, 85, 0.06);
    transform: translateY(-2px);
}

.login-join-link--apply:hover {
    border-color: #9ccfca;
    background: #eaf7f5;
}

.login-join-link:focus-visible {
    outline: 3px solid rgba(44, 107, 237, 0.4);
    outline-offset: 3px;
}

.login-join-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e8eef5;
    color: #476788;
}

.login-join-link--apply .login-join-icon {
    background: #dcefeb;
    color: #17766c;
}

.login-join-icon svg {
    width: 22px;
    height: 22px;
}

.login-join-copy {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.login-join-copy strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    word-break: keep-all;
}

.login-join-copy > span {
    color: var(--text-tertiary);
    font-size: 11px;
    line-height: 18px;
    word-break: keep-all;
}

.login-join-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 16px;
    height: 16px;
    color: #8191a3;
}

@media (max-width: 480px) {
    .login-join-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .login-join-link {
        gap: 12px;
        padding: 14px 16px;
    }

    .login-join-copy {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-join-link {
        transition: none;
    }

    .login-join-link:hover {
        transform: none;
    }
}

.login-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-disabled);
    font-size: 15px;
    line-height: 22px;
}

.login-help strong {
    color: var(--brand-navy);
}

.search-field {
    width: min(630px, 100%);
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-field span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.search-field input {
    width: 100%;
    height: 37px;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 8px 16px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.search-field input::placeholder {
    color: var(--text-disabled);
}

.search-field input:focus {
    border-color: var(--interactive);
    box-shadow: 0 0 0 4px rgba(44, 107, 237, 0.09);
}

.table-card,
.detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: var(--shadow-line);
}

.table-card {
    padding: 12px 0 8px;
}

.table-card-head,
.table-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.table-card-head {
    height: 37px;
    margin-bottom: 12px;
}

.table-card-head p,
.table-card-foot p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.table-card-head p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.per-page-select {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.per-page-select > span {
    color: var(--text-disabled);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.per-page-select > button {
    width: 74px;
    height: 37px;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.per-page-select img {
    width: 16px;
    height: 16px;
}

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

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

.data-table th,
.data-table td {
    height: 54px;
    border-bottom: 1px solid var(--bg-disabled);
    padding: 0 16px;
    text-align: left;
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.data-table th {
    height: 46px;
    border-top: 1px solid var(--border-default);
    border-bottom-color: var(--border-default);
    background: var(--bg-default);
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
}

.check-col {
    width: 52px;
    padding: 0 18px !important;
}

.check-col input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-navy);
}

.sort-mark {
    color: var(--text-disabled);
    font-size: 11px;
}

.row-button {
    display: inline-flex;
    min-width: 57px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.table-card-foot {
    height: 42px;
    padding-top: 8px;
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.pagination button.is-current {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

.badge.success {
    color: var(--text-positive);
}

.badge.disabled {
    color: var(--text-disabled);
}

.notice {
    min-height: 44px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.notice.success {
    border-color: #b8eadb;
    color: var(--text-positive);
    background: #f0fbf7;
}

.notice.error,
.notice.danger {
    border-color: #f2bdc4;
    color: var(--error);
    background: #fff6f7;
}

.supplier-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.supplier-summary {
    height: 96px;
    padding: 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.supplier-summary span {
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.supplier-summary strong {
    color: var(--brand-navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 36px;
}

.supplier-summary.mint strong {
    color: var(--text-positive);
}

.supplier-summary.warning strong {
    color: var(--warning);
}

.supplier-summary.lock strong {
    color: var(--text-tertiary);
}

.supplier-toolbar {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.supplier-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.native-select-field {
    width: 138px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.native-select-field.compact {
    width: 104px;
}

.native-select-field span,
.modal-form label span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.native-select-field select,
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    min-height: 37px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.native-select-field select:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--interactive);
    box-shadow: 0 0 0 4px rgba(44, 107, 237, 0.09);
}

.supplier-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outline-link {
    min-width: 57px;
    height: 37px;
    padding: 8px 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.supplier-table-card .table-card-head {
    height: auto;
    min-height: 45px;
}

.table-caption {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--brand-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.text-button:hover {
    color: var(--brand-mint);
}

.muted-text {
    color: var(--text-disabled);
}

.supplier-table {
    min-width: 1380px;
}

.policy-table {
    min-width: 1680px;
}

.inventory-status-table {
    min-width: 1580px;
}

.supplier-name-cell,
.stacked-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.supplier-name-cell strong,
.stacked-cell strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}

.supplier-name-cell span,
.stacked-cell span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.policy-stack-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.policy-stack-cell strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 19px;
}

.policy-stack-cell span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.table-action {
    min-width: 82px;
    height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border-default);
    border-radius: 7px;
    background: var(--bg-surface);
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    cursor: pointer;
}

.table-action:hover {
    border-color: var(--brand-navy);
    background: #f3f8fd;
}

.metric-pill-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-pill-group span {
    min-height: 24px;
    padding: 3px 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.empty-cell {
    height: 140px !important;
    text-align: center !important;
    color: var(--text-disabled) !important;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-links a,
.pagination-links span {
    min-width: 30px;
    height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.pagination-links span {
    color: var(--text-disabled);
}

.pagination-links .is-current {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 47, 85, 0.36);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    width: min(780px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    box-shadow: 0 18px 48px rgba(8, 47, 85, 0.2);
}

.modal-panel.small {
    width: min(480px, 100%);
}

.modal-head {
    min-height: 72px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-head h2,
.modal-head p {
    margin: 0;
}

.modal-head h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 28px;
}

.modal-head p {
    margin-top: 4px;
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-tertiary);
    font-size: 22px;
    line-height: 24px;
}

.modal-form {
    padding: 20px;
}

.company-information-actions,
.pin-company-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.pin-company-context {
    justify-content: space-between;
}

.company-information-section .table-card-head h2 {
    margin: 0;
    font-size: 16px;
}

.company-information-section {
    overflow: hidden;
}

.company-information-documents {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 0 20px 20px;
}

.company-information-documents .table-caption {
    margin: 0;
}

.company-information .company-information-actions,
.company-information .settlement-tabs,
.company-limits .settlement-tabs {
    margin: 0;
}

.company-limits-intro,
.company-limits-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.company-information > *,
.company-limits > * {
    min-width: 0;
}

.company-limits .data-table-wrap {
    max-width: 100%;
}

.company-limits-intro {
    justify-content: space-between;
    gap: 12px;
}

.company-limits-intro p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.7;
}

.company-limits-filter {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(220px, 1fr)) auto;
    border: 1px solid var(--pin-border);
    background: var(--bg-surface);
}

.company-limits-filter > .company-limits-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding: 10px 12px;
}

.company-limits-filter .pin-compare-search-button,
.company-limits-filter .pin-compare-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 92px;
    flex: 0 0 auto;
}

.company-limits-filter .pin-compare-field {
    grid-template-columns: 90px minmax(0, 1fr);
}

.company-limits .table-card-head,
.company-operation-table .table-card-head {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 12px;
}

.company-operation-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.company-limits .table-card-head h2 {
    margin: 0;
    font-size: 16px;
}

.company-limits .pin-compare-table {
    min-width: 1040px;
}

.company-limits .pin-compare-table th:nth-child(1) { width: 240px; }
.company-limits .pin-compare-table th:nth-child(2) { width: 150px; }
.company-limits .pin-compare-table th:nth-child(3),
.company-limits .pin-compare-table th:nth-child(4) { width: 140px; }
.company-limits .pin-compare-table th:nth-child(5),
.company-limits .pin-compare-table th:nth-child(6) { width: 90px; }
.company-limits .pin-compare-table th:nth-child(7) { width: 100px; }
.company-limits .pin-compare-table th:nth-child(8) { width: 90px; }

.company-limits .pin-compare-product {
    white-space: normal;
    overflow-wrap: anywhere;
}

.company-limits-products .pin-compare-product small {
    display: block;
    margin-top: 5px;
    color: var(--text-tertiary);
}

.company-limits-alerts > summary {
    padding: 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--brand-navy);
    font-weight: 700;
    cursor: pointer;
}

.company-limits-alerts[open] > summary {
    margin-bottom: 12px;
}

.company-limits-alerts label:has(> input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.company-limits-alerts input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
}

@media (max-width: 1460px) {
    .company-limits-filter { grid-template-columns: repeat(2, minmax(0, 1fr)) 116px; }
    .company-limits-filter > .company-limits-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        flex-direction: column;
        justify-content: center;
        padding: 0 12px;
    }
}

@media (max-width: 600px) {
    .company-limits-filter { grid-template-columns: minmax(0, 1fr); }
    .company-limits-filter > .company-limits-actions {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        justify-content: flex-end;
        padding: 10px 12px;
    }
}

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

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

.modal-form label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-form textarea {
    min-height: 92px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 18px;
}

.supplier-detail-hero {
    min-height: 132px;
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.supplier-detail-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.supplier-detail-kicker span {
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-default);
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.supplier-detail-hero h2,
.supplier-detail-hero p {
    margin: 0;
}

.supplier-detail-hero h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    line-height: 38px;
}

.supplier-detail-hero p {
    margin-top: 4px;
    color: var(--text-placeholder);
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
}

.supplier-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.supplier-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.supplier-detail-metrics article {
    min-height: 102px;
    padding: 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.supplier-detail-metrics span {
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.supplier-detail-metrics strong {
    color: var(--brand-navy);
    font-size: 26px;
    font-weight: 800;
    line-height: 34px;
}

.supplier-detail-metrics em {
    color: var(--text-placeholder);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
}

.supplier-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.supplier-info-panel,
.supplier-detail-main {
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
}

.supplier-info-panel {
    padding: 18px 16px;
}

.supplier-info-panel h3 {
    margin: 0 0 12px;
    color: var(--brand-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
}

.supplier-info-panel dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.supplier-info-panel div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.supplier-info-panel dt {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.supplier-info-panel dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.supplier-detail-main {
    min-width: 0;
    padding: 0 20px 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.supplier-readonly-grid {
    padding-top: 4px;
}

.mini-table-head {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mini-table-head h3,
.mini-table-head p {
    margin: 0;
}

.mini-table-head h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
}

.mini-table-head p {
    margin-top: 2px;
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.mini-table-head span {
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.mini-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.compact-table {
    min-width: 760px;
}

.compact-table th,
.compact-table td {
    height: 46px;
}

.mini-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
}

.mini-pager p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
}

.wide-field {
    grid-column: 1 / -1;
}

.as-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
    align-items: start;
}

.product-form-layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.delivery-form > label,
.delivery-form > .form-grid { margin-bottom: 14px; }
.data-table.delivery-table-templates { min-width: 640px; }
.data-table.delivery-table-requests { min-width: 920px; }
.data-table.delivery-table-history,
.data-table.delivery-table-failures { min-width: 1100px; }

.product-form-main,
.product-policy-panel {
    min-width: 0;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    padding: 20px;
}

.inventory-upload-layout {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) 320px;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.inventory-upload-card,
.inventory-help-panel {
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-line);
    padding: 20px;
}

.inventory-upload-form {
    margin-top: 16px;
}

.inventory-help-panel h3 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 26px;
}

.inventory-help-panel dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inventory-help-panel div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-disabled);
}

.inventory-help-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.inventory-help-panel dt {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}

.inventory-help-panel dd {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.upload-policy-strip {
    min-height: 40px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-default);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
}

.upload-policy-strip span {
    color: var(--text-disabled);
}

.inventory-upload-actions {
    margin-top: 16px;
    padding-top: 14px;
}

.mini-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-error-card {
    margin-top: 16px;
}

.inventory-detail-list {
    margin: 0;
    padding: 18px 20px 0;
    display: grid;
    gap: 10px;
}

.inventory-detail-list div {
    min-height: 42px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--bg-disabled);
}

.inventory-detail-list dt {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}

.inventory-detail-list dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    word-break: break-all;
}

.form-section-head {
    margin-bottom: 16px;
}

.form-section-head h2,
.form-section-head p {
    margin: 0;
}

.form-section-head h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 26px;
}

.form-section-head p {
    margin-top: 3px;
    color: var(--text-disabled);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
}

.product-create-form .form-grid,
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.product-create-form label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-create-form label span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.origin-form .form-grid,
.seller-registration-form .form-grid {
    gap: 20px 24px;
}

.origin-form label,
.seller-registration-form label {
    gap: 8px;
}

.origin-form .form-grid input,
.origin-form .form-grid select,
.seller-registration-form .form-grid input,
.seller-registration-form .form-grid select {
    min-height: 40px;
}

.product-create-form input,
.product-create-form select,
.product-create-form textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.product-create-form textarea {
    min-height: 88px;
    resize: vertical;
}

.alimtalk-template-preview {
    border: 1px solid var(--border-default);
    border-radius: 10px;
    background: var(--bg-default);
    padding: 16px;
}

.alimtalk-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.alimtalk-preview-head h3,
.alimtalk-preview-head p {
    margin: 0;
}

.alimtalk-preview-head h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 22px;
}

.alimtalk-preview-head p,
.alimtalk-preview-head > span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.alimtalk-preview-head > span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--bg-surface);
    padding: 4px 9px;
}

.alimtalk-preview-card {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) minmax(260px, 0.65fr);
    gap: 14px;
    max-width: 920px;
}

.alimtalk-preview-image-frame {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    background: #fff;
}

.alimtalk-preview-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
}

.alimtalk-preview-image-frame [hidden] {
    display: none;
}

.alimtalk-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-disabled);
    text-align: center;
    padding: 20px;
}

.alimtalk-preview-placeholder strong {
    color: var(--text-tertiary);
    font-size: 15px;
}

.alimtalk-preview-placeholder span {
    font-size: 12px;
    line-height: 18px;
}

.alimtalk-preview-message {
    min-width: 0;
    border: 1px solid #f0d98a;
    border-radius: 10px;
    background: #fffdf5;
    padding: 16px;
}

.alimtalk-preview-channel {
    display: inline-flex;
    border-radius: 999px;
    background: #fee500;
    color: #3c1e1e;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
}

.alimtalk-preview-message > strong {
    display: block;
    margin-top: 10px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 23px;
    word-break: break-word;
}

.alimtalk-preview-message dl {
    margin: 12px 0;
    display: grid;
    gap: 6px;
}

.alimtalk-preview-message dl div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
}

.alimtalk-preview-message dt,
.alimtalk-preview-message dd {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
}

.alimtalk-preview-message dt {
    color: var(--text-disabled);
    font-weight: 700;
}

.alimtalk-preview-message dd {
    color: var(--text-secondary);
    font-weight: 700;
    word-break: break-word;
}

.alimtalk-preview-message > small {
    display: block;
    border-top: 1px solid #f0e6bf;
    padding-top: 10px;
    color: var(--text-disabled);
    font-size: 11px;
    line-height: 17px;
}

@media (max-width: 900px) {
    .alimtalk-preview-card {
        grid-template-columns: 1fr;
    }

    .alimtalk-preview-head {
        flex-direction: column;
    }
}

.product-create-form input:focus,
.product-create-form select:focus,
.product-create-form textarea:focus {
    border-color: var(--interactive);
    box-shadow: 0 0 0 4px rgba(44, 107, 237, 0.09);
}

.sticky-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 16px;
    padding: 14px 0;
    background: var(--bg-default);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sticky-form-actions label {
    flex: 1 1 160px;
    max-width: 480px;
}

.seller-registration-form .sticky-form-actions,
.product-registration-form .sticky-form-actions {
    position: static;
}

.detail-card {
    padding: 20px;
}

.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-head h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 21px;
    font-weight: 700;
    line-height: 30px;
}

.detail-head p {
    margin: 2px 0 0;
    color: var(--text-placeholder);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.detail-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 16px;
}

.detail-tabs button {
    height: 41px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 10px 16px;
    color: var(--text-disabled);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.detail-tabs button.is-active {
    border-bottom-color: var(--interactive);
    color: var(--brand-navy);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) 356px;
    gap: 16px;
}

.detail-section {
    min-width: 0;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 20px 16px;
}

.detail-section:nth-child(3) {
    grid-column: 1 / 2;
}

.detail-section h3 {
    margin: 0 0 12px;
    color: var(--brand-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

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

.readonly-grid label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readonly-grid span {
    color: var(--text-disabled);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.readonly-grid input {
    width: 100%;
    height: 37px;
    border: 1px solid var(--border-default);
    border-radius: 9px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

@media (max-width: 900px) {
    .app-shell {
        min-width: 0;
    }

    .sidebar {
        transform: translateX(-240px);
    }

    .top-header,
    .main-content {
        left: 0;
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    .main-content {
        padding: 104px 20px 24px;
    }

    .stat-grid,
    .dashboard-row,
    .alert-grid,
    .supplier-summary-grid {
        grid-template-columns: 1fr;
    }

    .filter-card,
    .field-set,
    .supplier-toolbar,
    .supplier-filter-form {
        flex-wrap: wrap;
    }

    .supplier-toolbar {
        align-items: stretch;
    }

    .supplier-toolbar .mint-button,
    .supplier-filter-form,
    .search-field,
    .native-select-field {
        width: 100%;
    }

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

    .product-form-layout,
    .inventory-upload-layout,
    .product-create-form .form-grid {
        grid-template-columns: 1fr;
    }

    .origin-form .sticky-form-actions {
        position: static;
    }

    .bar-chart {
        overflow-x: auto;
    }

    .login-page {
        padding: 20px 18px;
    }

    .login-wrap {
        width: 100%;
        padding: 48px 0;
    }

    .login-panel {
        width: min(420px, 100%);
        padding: 0;
    }

    .login-logo {
        width: 170px;
        height: 40px;
        margin-bottom: 30px;
    }

    .login-heading h1 {
        font-size: 28px;
        line-height: 39px;
    }

    .login-heading p,
    .login-help {
        font-size: 15px;
        line-height: 22px;
    }

    .login-form input:not([type="checkbox"]),
    .primary-button {
        height: 52px;
    }
}

.supplier-form-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.supplier-form-section + .supplier-form-section {
    padding-top: 24px;
    border-top: 1px solid var(--border-default);
}

.product-create-form .form-confirm {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.product-create-form .form-confirm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    accent-color: var(--brand-logo);
}

.product-create-form .form-confirm span {
    font-size: 13px;
    line-height: 20px;
}

.priority-drag-cell {
    min-width: 104px;
    text-align: center;
}

.priority-drag-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #cbd6df;
    border-radius: 6px;
    background: #fff;
    color: #0a2e50;
    font: inherit;
    cursor: grab;
    user-select: none;
}

.priority-drag-control:hover {
    border-color: #58a9a4;
    background: #f1fbfa;
}

.priority-drag-control:focus-visible {
    outline: 2px solid rgba(29, 125, 163, 0.35);
    outline-offset: 2px;
}

.priority-drag-control:active {
    cursor: grabbing;
}

.priority-drag-number {
    min-width: 22px;
    font-weight: 700;
    text-align: center;
}

.priority-drag-grip {
    color: #718295;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -4px;
}

[data-priority-row].priority-drag-source {
    opacity: 0.45;
}

[data-priority-row].priority-drop-before {
    box-shadow: inset 0 3px 0 #1b8a84;
}

[data-priority-row].priority-drop-after {
    box-shadow: inset 0 -3px 0 #1b8a84;
}

[data-priority-row].priority-saving {
    opacity: 0.58;
    pointer-events: none;
}
