body.public-app {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 100%);
    color: #243044;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.public-app-header {
    background: #0a2540;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.18);
}

.public-app-header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-app-header img {
    height: 40px;
    width: auto;
}

.public-app-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-app-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.public-app-nav a.primary {
    background: #12b886;
}

.public-app-nav a.ghost {
    background: rgba(255, 255, 255, 0.12);
}

.public-app-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.public-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(10, 37, 64, 0.1);
    padding: 28px 22px;
}

.public-lookup {
    max-width: 480px;
    margin: 48px auto;
}

.public-lookup h1,
.public-card h1,
.public-card h2,
.public-card h3 {
    margin-top: 0;
    color: #0a2540;
}

.public-lookup p.lead,
.public-help {
    color: #5b6778;
    line-height: 1.6;
}

.public-lookup label,
.public-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.public-lookup input,
.public-field input,
.public-field select,
.public-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: #1d6fd8;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.public-btn:hover {
    background: #1557ab;
    color: #fff;
    text-decoration: none;
}

.public-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.public-alert.error {
    background: #fde8e8;
    color: #9b1c1c;
}

.public-alert.ok {
    background: #e8f7ef;
    color: #146c43;
}

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

.public-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 24px;
}

.public-table-wrap table {
    min-width: 820px;
    background: #fff;
}

.signin-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.signin-card {
    width: 100%;
    max-width: 420px;
}

.signin-card .logo-name {
    max-width: 180px;
    height: auto;
}

.public-app-main .ibox,
.public-app-main .panel {
    border-radius: 16px;
    overflow: hidden;
}

.public-app-main .ibox-title,
.public-app-main .ibox-content {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 767px) {
    .public-vend-grid {
        grid-template-columns: 1fr;
    }

    .public-app-header .inner {
        flex-wrap: wrap;
    }

    .public-lookup {
        margin: 24px auto;
    }

    .public-app-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .middle-box,
    .middle-box.loginscreen {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 0 12px;
        float: none !important;
    }

    .middle-box .alert,
    .alert[style] {
        width: 100% !important;
        max-width: 100%;
    }
}
