body.wms-login-page {
    min-height: 100%;
    overflow: auto;
    background: #ffffff;
    color: #2e3238;
}

body.wms-login-page form {
    display: block;
}

.wms-login-shell {
    display: none;
    flex-direction: column;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    min-height: 100vh;
    margin: 0;
    border: 0;
    overflow: visible;
    box-sizing: border-box;
    background: #fff;
}

.wms-login-banner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2127;
    color: #f7f8fa;
    font-size: 16px;
    font-weight: 700;
}

.wms-login-banner strong {
    color: #62e87f;
}

.wms-login-header {
    width: min(1340px, 100%);
    max-width: 1340px;
    height: 106px;
    margin: 0 auto;
    padding: 0 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.wms-login-logo {
    display: flex;
    align-items: center;
    width: 180px;
    height: 52px;
    overflow: hidden;
}

.wms-login-logo img {
    display: block;
    width: 180px;
    height: 52px;
    object-fit: contain;
}

.wms-login-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.wms-login-nav a {
    color: #555b64;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.wms-login-nav a:hover {
    color: #22272d;
}

.wms-login-main {
    flex: 1 0 auto;
    max-width: 1060px;
    min-height: 445px;
    margin: 0 auto;
    padding: 92px 34px 74px;
    display: grid;
    grid-template-columns: minmax(360px, 494px) minmax(320px, 494px);
    column-gap: 64px;
    box-sizing: border-box;
}

.wms-login-panel h1,
.wms-login-side h2 {
    margin: 0 0 11px;
    color: #2d3238;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.wms-login-panel p,
.wms-login-side p {
    margin: 0 0 36px;
    color: #66707c;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.wms-login-inputs {
    margin-bottom: 16px;
    border: 1px solid #dfe3e8;
    background: #fff;
}

.wms-login-field {
    position: relative;
}

.wms-login-field + .wms-login-field {
    border-top: 1px solid #e6e9ee;
}

.wms-login-field label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa1aa;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}

.wms-login-field input {
    width: 100%;
    height: 46px;
    padding: 0 18px 0 84px;
    border: 0;
    box-sizing: border-box;
    background: transparent;
    color: #22272d;
    font-size: 15px;
    outline: none;
}

.wms-login-field input:focus {
    background: #fbfffc;
}

.wms-login-remember {
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #555f6b;
    font-size: 15px;
    font-weight: 600;
}

.wms-login-remember input {
    width: 20px;
    height: 20px;
    accent-color: #62e87f;
}

.wms-login-demo {
    margin: -2px 0 14px;
    text-align: right;
}

.wms-login-demo a {
    color: #4d5864;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wms-login-demo a:hover {
    color: #20262d;
    text-decoration: underline;
}

.wms-login-active-state {
    padding: 27px 0 0;
}

.wms-login-status-message {
    margin-bottom: 24px;
    color: #2d3238;
    font-size: 18px;
    font-weight: 800;
}

.wms-login-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wms-login-submit {
    width: 100%;
    height: 43px;
    border: 0;
    border-radius: 2px;
    background: #62e87f;
    color: #07130b;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.wms-login-submit.is-secondary {
    border: 1px solid #d5dbe3;
    box-sizing: border-box;
    background: #eef1f4;
    color: #3d4650;
}

.wms-login-submit:hover,
.wms-login-side-button:hover {
    background: #52dc70;
}

.wms-login-submit.is-secondary:hover {
    background: #e1e6eb;
}

.wms-login-links {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    color: #5c6570;
    font-size: 15px;
    font-weight: 600;
}

.wms-login-links a {
    color: inherit;
    text-decoration: none;
}

.wms-login-side {
    padding-top: 1px;
}

.wms-login-side-section {
    padding-bottom: 22px;
    border-bottom: 1px dashed #d9dee5;
}

.wms-login-side-section + .wms-login-side-section {
    padding-top: 32px;
}

.wms-login-side-section p {
    margin-bottom: 32px;
}

.wms-login-side-button {
    min-width: 98px;
    height: 39px;
    padding: 0 20px;
    border: 0;
    border-radius: 2px;
    background: #62e87f;
    color: #07130b;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wms-login-footer {
    min-height: 176px;
    border-top: 1px solid #e4e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #87909c;
}

.wms-login-footer-nav,
.wms-login-footer-policy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.wms-login-footer a {
    color: #7c8794;
    text-decoration: none;
    font-weight: 700;
}

.wms-login-footer-policy {
    gap: 12px;
    font-size: 14px;
}

.wms-login-copyright {
    font-size: 13px;
    color: #a2aab5;
}

@media (max-width: 960px) {
    .wms-login-header {
        height: auto;
        padding: 28px 28px 12px;
        flex-direction: column;
        gap: 20px;
    }

    .wms-login-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 22px;
    }

    .wms-login-main {
        grid-template-columns: 1fr;
        row-gap: 42px;
        padding: 48px 24px 54px;
    }
}

@media (max-width: 560px) {
    .wms-login-banner {
        height: auto;
        padding: 12px 20px;
        text-align: center;
        line-height: 1.4;
    }

    .wms-login-main {
        padding-top: 34px;
    }

    .wms-login-field input {
        padding-left: 76px;
    }

    .wms-login-footer-nav,
    .wms-login-footer-policy {
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}

body.scm-login-page,
body.scm-main-page {
    min-height: 100vh;
    margin: 0;
    background: #f3f6f8;
    color: #1f2933;
    font-family: inherit;
}

body.scm-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.scm-login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(360px, 420px);
    width: min(920px, 100%);
    min-height: 540px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.13);
}

.scm-login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    background: #19212b;
    color: #fff;
}

.scm-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
}

.scm-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scm-login-brand-copy h1 {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.scm-login-brand-copy p {
    margin: 0;
    color: #d9e2ec;
    font-size: 16px;
    font-weight: 600;
}

.scm-login-menu-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scm-login-menu-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef3f7;
    font-size: 12px;
    font-weight: 700;
}

.scm-login-form-panel {
    display: flex;
    align-items: center;
    padding: 42px;
}

.scm-login-form {
    width: 100%;
}

.scm-login-form-head {
    margin-bottom: 26px;
}

.scm-login-kicker {
    display: block;
    margin-bottom: 8px;
    color: #198754;
    font-size: 12px;
    font-weight: 800;
}

.scm-login-form h2 {
    margin: 0;
    color: #1f2933;
    font-size: 26px;
    font-weight: 800;
}

.scm-login-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    background: #fff1f2;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.scm-login-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.scm-login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.scm-login-field span {
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
}

.scm-login-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #c8d3de;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    outline: none;
}

.scm-login-field.is-focused input {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.scm-login-submit {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: #198754;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.scm-login-submit:hover {
    background: #157347;
}

.scm-login-submit.is-secondary {
    border: 1px solid #d5dbe3;
    box-sizing: border-box;
    background: #eef1f4;
    color: #3d4650;
}

.scm-login-submit.is-secondary:hover {
    background: #e1e6eb;
}

.scm-login-active-state {
    padding-top: 2px;
}

.scm-login-status-message {
    margin: 0 0 20px;
    color: #1f2933;
    font-size: 17px;
    font-weight: 800;
}

.scm-login-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.scm-main-page {
    overflow: hidden;
}

.scm-app-shell {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: 100vh;
}

.scm-sidebar {
    background: #17202a;
    color: #f8fafc;
    padding: 18px 14px;
}

.scm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 20px;
}

.scm-sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.scm-sidebar-brand strong {
    font-size: 18px;
    font-weight: 800;
}

.scm-nav {
    padding-top: 16px;
}

.scm-nav-group + .scm-nav-group {
    margin-top: 20px;
}

.scm-nav-dashboard + .scm-nav-group {
    margin-top: 50px;
}

.scm-nav-group-title {
    margin: 0 0 8px;
    padding: 0 8px;
    color: #aab7c4;
    font-size: 12px;
    font-weight: 800;
}

.scm-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    color: #d9e2ec;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.scm-nav-group a:not(:last-child) {
    margin-bottom: 10px;
}

.scm-nav-group a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    border-bottom: 1px dashed rgba(170, 183, 196, 0.45);
}

.scm-nav a:hover,
.scm-nav a.is-active {
    background: #198754;
    color: #fff;
}

.scm-main-content {
    min-width: 0;
    padding: 22px;
    overflow: auto;
}

.scm-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.scm-main-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #198754;
    font-size: 12px;
    font-weight: 800;
}

.scm-main-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.scm-main-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scm-main-user span {
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
}

.scm-main-user a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #c8d3de;
    border-radius: 5px;
    background: #fff;
    color: #1f2933;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.scm-overview-panel {
    max-width: 760px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.scm-overview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edf3;
}

.scm-overview-title h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.scm-overview-title span {
    color: #52616f;
    font-size: 12px;
    font-weight: 700;
}

.scm-permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.scm-permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-right: 1px solid #e6edf3;
    border-bottom: 1px solid #e6edf3;
}

.scm-permission-item span {
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
}

.scm-permission-item strong {
    color: #7b8794;
    font-size: 13px;
    font-weight: 800;
}

.scm-permission-item strong.is-write {
    color: #198754;
}

.scm-page-panel {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.scm-page-panel + .scm-page-panel {
    margin-top: 14px;
}

.scm-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scm-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.scm-dashboard-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.scm-dashboard-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 32px;
}

.scm-dashboard-card-main span,
.scm-dashboard-card small {
    display: block;
    color: #7b8794;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.scm-dashboard-card-main strong {
    display: block;
    margin: 0;
    color: #1f2933;
    font-size: 27px;
    line-height: 1.1;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.scm-dashboard-card small {
    margin-top: 8px;
}

.scm-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) minmax(600px, 0.85fr);
    gap: 12px;
}

.scm-dashboard-panel {
    min-width: 0;
}

.scm-dashboard-table-wrap {
    max-height: 360px;
    margin: 5px;
    border: 1px solid #d5dee7;
    border-radius: 5px;
    background: #fff;
    overflow: auto;
}

.scm-dashboard-table {
    min-width: 620px;
}

.scm-dashboard-table .col-date {
    width: 102px;
}

.scm-dashboard-table .col-name {
    width: 155px;
}

.scm-dashboard-table .col-qty {
    width: 96px;
}

.scm-dashboard-table .col-status {
    width: 86px;
}

.scm-dashboard-table-wrap .scm-table th,
.scm-dashboard-stock-wrap .scm-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.scm-table.scm-dashboard-table th,
.scm-table.scm-dashboard-stock-table th {
    height: 34px;
    padding: 0 10px;
}

.scm-table.scm-dashboard-table td,
.scm-table.scm-dashboard-stock-table td {
    height: 44px;
    padding: 5px 10px;
    vertical-align: middle;
}

.scm-dashboard-product {
    display: block;
    overflow: hidden;
    color: #1f2933;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scm-dashboard-table small,
.scm-dashboard-stock-table small {
    display: block;
    margin-top: 2px;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scm-dashboard-stock-wrap {
    max-height: 360px;
    margin: 5px;
    border: 1px solid #d5dee7;
    border-radius: 5px;
    background: #fff;
    overflow: auto;
}

.scm-dashboard-stock-table {
    min-width: 520px;
}

.scm-dashboard-stock-table .col-name {
    width: 300px;
}

.scm-dashboard-stock-table .col-stock {
    width: 110px;
}

.scm-dashboard-stock-table .col-status {
    width: 92px;
}

.scm-table.scm-dashboard-table td.is-right,
.scm-table.scm-dashboard-stock-table td.is-right {
    padding-right: 12px;
}

.scm-dashboard-table th:last-child,
.scm-dashboard-table td:last-child,
.scm-dashboard-stock-table th:last-child,
.scm-dashboard-stock-table td:last-child {
    border-right: 0;
}

.scm-dashboard-table tbody tr:last-child td,
.scm-dashboard-stock-table tbody tr:last-child td {
    border-bottom: 0;
}

.scm-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #198754;
    font-size: 11px;
    font-weight: 800;
}

.scm-stock-badge.is-low {
    background: #fff3cd;
    color: #8a6400;
}

.scm-stock-badge.is-empty {
    background: #f1f3f5;
    color: #52616f;
}

.scm-dashboard-empty {
    padding: 28px 12px;
    color: #7b8794;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.scm-stock-panel {
    max-width: 1280px;
}

.scm-stock-table-wrap {
    max-height: calc(100vh - 190px);
    margin: 5px;
    border: 1px solid #d5dee7;
    border-radius: 5px;
    background: #fff;
    overflow: auto;
}

.scm-stock-table-wrap .scm-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.scm-stock-table {
    min-width: 920px;
}

.scm-stock-table th:last-child,
.scm-stock-table td:last-child {
    border-right: 0;
}

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

.scm-stock-table .col-no {
    width: 64px;
}

.scm-stock-table .col-name {
    width: 360px;
}

.scm-stock-table .col-code,
.scm-stock-table .col-barcode {
    width: 150px;
}

.scm-stock-table .col-stock {
    width: 110px;
}

.scm-stock-table .col-status {
    width: 100px;
}

.scm-table.scm-stock-table td {
    height: 40px;
}

.scm-supplier-info-panel {
    width: 50%;
    min-width: 720px;
}

.scm-supplier-info-panel .scm-section-title {
    min-height: 36px;
    padding: 6px 12px;
}

.scm-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edf3;
}

.scm-section-title h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.scm-section-title span {
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.scm-supplier-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

.scm-supplier-info-grid > div,
.scm-supplier-info-grid > label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin: 0;
    padding: 5px 12px;
    border-right: 1px solid #e6edf3;
    border-bottom: 1px solid #e6edf3;
}

.scm-supplier-info-grid > div.is-wide,
.scm-supplier-info-grid > label.is-wide {
    grid-column: 1 / -1;
}

.scm-supplier-info-grid span {
    flex: 0 0 72px;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.scm-supplier-info-grid strong {
    min-width: 0;
    color: #1f2933;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    word-break: keep-all;
}

.scm-supplier-info-grid .form-control {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
}

.scm-supplier-info-grid .form-control[readonly] {
    background: #f3f6f8;
    color: #52616f;
}

.scm-supplier-info-form:not(.is-readonly) .scm-supplier-info-grid input:not([readonly]) {
    background: #fffdf2;
}

.scm-supplier-info-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 12px;
}

.scm-supplier-info-actions .btn {
    min-height: 30px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

.scm-manager-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 430px);
    gap: 12px;
    padding: 12px;
}

.scm-manager-layout.is-readonly {
    grid-template-columns: minmax(520px, 760px);
}

.scm-table-wrap {
    overflow: auto;
    border: 1px solid #d5dee7;
}

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

.scm-table th {
    height: 32px;
    padding: 0 8px;
    border-right: 1px solid #c8d3de;
    border-bottom: 1px solid #c8d3de;
    background: #eef3f7;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.scm-table td {
    height: 34px;
    padding: 0 8px;
    border-right: 1px solid #d5dee7;
    border-bottom: 1px solid #d5dee7;
    color: #1f2933;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scm-table tbody tr:nth-child(even) td {
    background: #f7fafc;
}

.scm-table tbody tr[data-user-code] {
    cursor: pointer;
}

.scm-table tbody tr[data-user-code]:hover td,
.scm-table tbody tr.is-selected td {
    background: #eaf3ff;
}

.scm-table tbody tr.is-primary-user td {
    color: #52616f;
}

.scm-table td.is-left {
    text-align: left;
}

.scm-supplier-user-col-status {
    width: 74px;
}

.scm-supplier-user-col-name {
    width: 220px;
}

.scm-supplier-user-col-login {
    width: 230px;
}

.scm-supplier-user-col-permission {
    width: 262px;
}

.scm-supplier-user-col-role {
    width: 74px;
}

#scmSupplierUserTable {
    min-width: 860px;
}

.scm-permission-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.scm-permission-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.scm-permission-summary span.is-write {
    background: #fff3cd;
    color: #8a6400;
}

.scm-permission-summary em {
    font-style: normal;
    font-weight: 400;
}

.scm-table-empty {
    height: 92px !important;
    color: #7b8794 !important;
}

.scm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: 11px;
    font-weight: 800;
}

.scm-badge.is-success {
    background: #dcfce7;
    color: #198754;
}

.scm-badge.is-muted {
    background: #edf1f4;
    color: #7b8794;
}

.scm-badge.is-write {
    background: #fff3cd;
    color: #8a6400;
}

.scm-badge.is-primary {
    background: #eaf3ff;
    color: #0d6efd;
}

.scm-manager-form {
    border: 1px solid #d5dee7;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
}

.scm-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.scm-form-head strong {
    font-size: 14px;
    font-weight: 800;
}

.scm-manager-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

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

.scm-form-grid label,
.scm-permission-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.scm-form-grid label.is-wide {
    grid-column: 1 / -1;
}

.scm-form-grid label > span,
.scm-permission-edit-grid label > span {
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
}

.scm-manager-form .form-control,
.scm-manager-form .form-select {
    min-height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    font-size: 12px;
}

.scm-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #e0e7ee;
    border-radius: 6px;
    background: #fff;
}

.scm-status-row > span {
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
}

.scm-status-row label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #1f2933;
    font-size: 12px;
    font-weight: 700;
}

.scm-form-note {
    min-height: 18px;
    margin: 10px 0 0;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.scm-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.scm-result-modal .modal-content {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.scm-result-modal .modal-header {
    min-height: 48px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f4;
}

.scm-result-modal.is-success .modal-header {
    background: linear-gradient(90deg, #62e87f 0%, #c9f9d4 100%);
}

.scm-result-modal.is-error .modal-header {
    background: linear-gradient(90deg, #f8d7da 0%, #fff1f2 100%);
}

.scm-result-modal .modal-title {
    font-size: 13px;
    font-weight: 800;
}

.scm-result-modal .modal-body {
    padding: 20px 18px;
}

.scm-result-modal .modal-body p {
    margin: 0;
    white-space: pre-line;
}

.scm-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    gap: 7px;
    color: #7b8794;
    font-size: 13px;
}

.scm-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.scm-inline-badge.is-write {
    background: #fff3cd;
    color: #8a6400;
}

.scm-goods-toolbar,
.scm-po-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #d9e2ec;
    background: #f8fafc;
}

.scm-toolbar-field {
    display: flex;
    align-items: center;
    gap: 7px;
}

.scm-toolbar-field > span {
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.scm-toolbar-field input,
.scm-toolbar-field select {
    width: 150px;
    height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    font-size: 12px;
}

.scm-toolbar-field em {
    color: #7b8794;
    font-style: normal;
    font-weight: 800;
}

.scm-toolbar-field.is-search input {
    width: 260px;
}

.scm-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scm-toolbar-actions .btn {
    min-height: 30px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

.scm-toolbar-divider {
    display: block;
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: #d5dee7;
}

.scm-goods-layout {
    display: grid;
    grid-template-columns: minmax(760px, 1fr) minmax(380px, 470px);
    gap: 12px;
    padding: 12px;
}

.scm-goods-list,
.scm-goods-detail {
    min-width: 0;
}

.scm-goods-table {
    min-width: 1160px;
}

.scm-goods-table tbody tr[data-goods-code] {
    cursor: pointer;
}

.scm-goods-table tbody tr[data-goods-code]:hover td,
.scm-goods-table tbody tr.is-selected td {
    background: #eaf3ff;
}

.scm-goods-table .col-no {
    width: 56px;
}

.scm-goods-table .col-code {
    width: 112px;
}

.scm-goods-table .col-name {
    width: 250px;
}

.scm-goods-table .col-barcode {
    width: 128px;
}

.scm-goods-table .col-buyer-code {
    width: 126px;
}

.scm-goods-table .col-category {
    width: 120px;
}

.scm-goods-table .col-stock,
.scm-goods-table .col-price {
    width: 94px;
}

.scm-goods-table .col-status {
    width: 82px;
}

.scm-goods-table .col-date {
    width: 128px;
}

.scm-table td.is-right {
    text-align: right;
}

.scm-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.scm-page-size {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #52616f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.scm-page-size select {
    width: 88px;
    min-height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    font-size: 12px;
}

.scm-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.scm-pagination button {
    min-width: 30px;
    height: 30px;
    border: 1px solid #d5dee7;
    border-radius: 6px;
    background: #fff;
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
}

.scm-pagination button.is-current {
    border-color: #a7f3bf;
    background: #bbf7d0;
    color: #166534;
}

.scm-pagination button:disabled {
    color: #c8d3de;
    background: #f8fafc;
}

.scm-goods-detail {
    border: 1px solid #d5dee7;
    border-radius: 8px;
    background: #fbfcfd;
}

.scm-goods-detail form {
    padding: 12px;
}

.scm-detail-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #e0e7ee;
    border-radius: 6px;
    background: #fff;
}

.scm-detail-summary strong {
    min-width: 0;
    overflow: hidden;
    color: #1f2933;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scm-detail-summary span {
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

.scm-goods-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.scm-goods-form-grid label.is-wide {
    grid-column: 1 / -1;
}

.scm-goods-form-grid label > span {
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
}

.scm-goods-form-grid .form-control,
.scm-goods-form-grid .form-select {
    min-height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    font-size: 12px;
}

.scm-goods-form-grid textarea.form-control {
    min-height: 72px;
    resize: vertical;
}

.scm-goods-detail form.is-readonly .form-control,
.scm-goods-detail form.is-readonly .form-select,
.scm-goods-form-grid .form-control[readonly] {
    background: #f3f6f8;
    color: #52616f;
}

.scm-po-layout {
    display: grid;
    grid-template-columns: minmax(860px, 1fr) minmax(390px, 470px);
    gap: 12px;
    padding: 12px;
}

.scm-po-list,
.scm-po-detail {
    min-width: 0;
}

.scm-po-table {
    min-width: 1420px;
}

.scm-po-table tbody tr[data-po-code] {
    cursor: pointer;
}

.scm-po-table tbody tr[data-po-code]:hover td,
.scm-po-table tbody tr.is-selected td {
    background: #eaf3ff;
}

.scm-po-table .col-no {
    width: 56px;
}

.scm-po-table .col-date {
    width: 108px;
}

.scm-po-table .col-code {
    width: 132px;
}

.scm-po-table .col-sub,
.scm-po-table .col-qty {
    width: 76px;
}

.scm-po-table .col-buyer-code,
.scm-po-table .col-barcode {
    width: 128px;
}

.scm-po-table .col-name {
    width: 260px;
}

.scm-po-table .col-status {
    width: 98px;
}

.scm-po-detail {
    border: 1px solid #d5dee7;
    border-radius: 8px;
    background: #fbfcfd;
}

.scm-po-detail form {
    padding: 12px;
}

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

.scm-po-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.scm-po-form-grid label.is-wide {
    grid-column: 1 / -1;
}

.scm-po-form-grid label > span {
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
}

.scm-po-form-grid .form-control,
.scm-po-form-grid .form-select {
    min-height: 30px;
    border-color: #c8d3de;
    border-radius: 5px;
    font-size: 12px;
}

.scm-po-detail form.is-readonly .form-control,
.scm-po-detail form.is-readonly .form-select,
.scm-po-form-grid .form-control[readonly] {
    background: #f3f6f8;
    color: #52616f;
}

.scm-po-form-grid .js-po-editable:not(:disabled) {
    background: #fffdf2;
}

.scm-po-location-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #e0e7ee;
    border-radius: 6px;
    background: #fff;
    color: #52616f;
    font-size: 12px;
    font-weight: 700;
}

.scm-po-location-title,
.scm-po-location-name,
.scm-po-location-meta {
    display: flex;
    align-items: center;
}

.scm-po-location-title,
.scm-po-location-name {
    justify-content: space-between;
    gap: 8px;
}

.scm-po-location-title strong {
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
}

.scm-po-location-title span,
.scm-po-location-empty {
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.scm-po-location-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 196px;
    overflow-y: auto;
}

.scm-po-location-item {
    padding: 8px;
    border: 1px solid #e6edf3;
    border-radius: 5px;
    background: #f8fafc;
}

.scm-po-location-name strong {
    min-width: 0;
    overflow: hidden;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scm-po-location-name small {
    flex: 0 0 auto;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
}

.scm-po-location-meta {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.scm-po-location-meta span {
    padding: 2px 6px;
    border: 1px solid #dce5ed;
    border-radius: 999px;
    background: #fff;
    color: #52616f;
    font-size: 11px;
    font-weight: 800;
}

.scm-po-location-dates {
    margin-top: 5px;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 1280px) {
    .scm-dashboard-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scm-dashboard-layout,
    .scm-goods-layout,
    .scm-po-layout {
        grid-template-columns: 1fr;
    }

    .scm-goods-detail,
    .scm-po-detail {
        max-width: 760px;
    }
}

.scm-empty-message strong {
    color: #1f2933;
    font-size: 16px;
}

@media (max-width: 760px) {
    body.scm-login-page {
        align-items: stretch;
        padding: 0;
    }

    .scm-login-shell,
    .scm-app-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border-radius: 0;
    }

    .scm-login-brand-panel {
        min-height: 260px;
        padding: 28px;
    }

    .scm-login-form-panel {
        padding: 28px;
    }

    .scm-sidebar {
        display: none;
    }

    .scm-permission-list {
        grid-template-columns: 1fr;
    }

    .scm-dashboard-card-grid,
    .scm-supplier-info-grid,
    .scm-manager-layout,
    .scm-form-grid,
    .scm-permission-edit-grid {
        grid-template-columns: 1fr;
    }

    .scm-manager-layout.is-readonly {
        grid-template-columns: 1fr;
    }

    .scm-supplier-info-panel {
        width: 100%;
        min-width: 0;
    }
}
