body {
    background: #f5f6f8;
    color: #1f2937;
    font-family: Arial, sans-serif;
}

.login-page {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
}

.app-shell {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 16px 110px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-box {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 700px;
    margin: auto;
    background: #0f172a;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
    scrollbar-width: thin;
}

.bottom-nav::-webkit-scrollbar {
    height: 6px;
}

.bottom-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .20);
    border-radius: 999px;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    flex: 0 0 auto;
    min-height: 42px;
    transition: background .2s ease, transform .2s ease;
}

.bottom-nav a:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.bottom-nav a:active {
    transform: translateY(0);
}

.table-responsive {
    border-radius: 14px;
}

.display-6 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.card-box h3,
.card-box h2 {
    color: #111827;
}

.card-box .small {
    color: #6b7280;
}

canvas {
    width: 100% !important;
    max-width: 100%;
}

.pos-sticky-summary {
    position: sticky;
    bottom: 76px;
    z-index: 20;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.pos-search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    margin-top: 6px;
}

.pos-search-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.pos-search-item:last-child {
    border-bottom: none;
}

.pos-search-item:hover {
    background: #f9fafb;
}

.pos-mini-label {
    font-size: .82rem;
    color: #6b7280;
}

.pos-difference-ok {
    color: #15803d;
    font-weight: 700;
}

.pos-difference-bad {
    color: #b91c1c;
    font-weight: 700;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 576px) {
    .app-shell {
        padding: 12px 12px 110px;
    }

    .topbar {
        padding: 12px 14px;
    }

    .bottom-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .bottom-nav a {
        font-size: .88rem;
        padding: 9px 12px;
        min-height: 40px;
    }
}