:root {
    --navy: #1a365d;
    --navy-dark: #12233d;
    --gold: #c9a227;
    --tblr-primary: #1a365d;
    --tblr-primary-rgb: 26, 54, 93;
    --tblr-body-bg: #f4f6f8;
}

body {
    background-color: var(--tblr-body-bg);
}
.page, .page-wrapper, .page-body, .container, .container-fluid {
    max-width: 100%;
}
.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cari-card { border: 1px solid #e7e5e4; border-radius: 14px; padding: 14px; background: #fff; }
.cari-card + .cari-card { margin-top: 10px; }
.cari-k { color: #78716c; font-size: .78rem; }
.cari-v { font-weight: 700; }
.durum-soft { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 6px 10px; border-radius: 10px; font-weight: 700; }
.durum-late { background: #fff1f0; color: #9f1239; border: 1px solid #f3c1bc; }
.durum-soon { background: #fffbeb; color: #92400e; border: 1px solid #f5d9a8; }
.durum-open { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
.durum-paid { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.durum-pay { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
@media (max-width: 767.98px) {
    .container { padding-left: 12px; padding-right: 12px; }
    h2 { font-size: 1.35rem; }
    .btn, .form-control, .form-select { min-height: 42px; }
}

@media (min-width: 992px) {
    .navbar-vertical.navbar-expand-lg {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 16rem;
        z-index: 1030;
        overflow-y: auto;
    }
    .page-wrapper {
        margin-left: 16rem !important;
    }
}

.navbar-vertical {
    background: linear-gradient(180deg, #152c4c 0%, #0f2240 100%) !important;
}
.navbar-vertical .navbar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.navbar-logo {
    height: 36px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}
.navbar-vertical .navbar-logo {
    height: 32px;
    max-width: 170px;
}
.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gold);
    color: #12233d;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.brand-text {
    font-weight: 700;
    letter-spacing: .02em;
}
.sidebar-user {
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 8px;
}
.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
}
.sidebar-user-role {
    color: #f3e6b8;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.navbar-vertical .nav-link {
    color: #d7e0ee !important;
    border-radius: 8px;
    margin: 2px 8px;
}
.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-link.active {
    background: rgba(201, 162, 39, .16);
    color: #fff !important;
}
.navbar-vertical .nav-link.active .nav-link-title {
    font-weight: 700;
}
.navbar-vertical .nav-link-icon {
    color: var(--gold);
}

.topbar {
    background: var(--navy);
    color: #fff;
    min-height: 52px;
    border-bottom: 3px solid var(--gold);
}
.topbar .container-xl {
    display: flex;
    align-items: center;
    width: 100%;
}
.topbar-title {
    font-weight: 600;
    font-size: .92rem;
    color: #f3e6b8;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.topbar-user {
    color: #e8eef7;
    font-size: .9rem;
}
.guest-navbar {
    background: #1a365d !important;
    border-bottom: 3px solid var(--gold) !important;
}
.guest-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
    box-shadow: 0 8px 22px rgba(26,54,93,.10);
    transform: translateY(-2px);
}
.product-card img {
    max-height: 160px;
    object-fit: contain;
}

.product-image-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.product-image-box img {
    max-height: 380px;
    object-fit: contain;
}

.btn-b2b {
    background-color: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}
.btn-b2b:hover {
    background-color: var(--navy-dark);
    color: #fff;
}
.btn-b2b:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.price-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.badge-stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.badge-in-stock { background-color: #16a34a; }
.badge-limited { background-color: #dc2626; }
.badge-out { background-color: #6b7280; }

.site-footer {
    background: linear-gradient(180deg, #152c4c 0%, #0f2240 100%);
    color: #d7e0ee;
    border-top: 3px solid var(--gold);
}
.site-footer .footer-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
}
.site-footer .footer-lead {
    color: #c5d0e0;
    font-size: .92rem;
    line-height: 1.55;
}
.site-footer .footer-meta,
.site-footer .footer-meta a {
    color: #b7c4d8;
    font-size: .88rem;
    text-decoration: none;
}
.site-footer .footer-meta a:hover { color: #fff; }
.site-footer .footer-title {
    color: #f3e6b8;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a {
    color: #e8eef7;
    text-decoration: none;
    font-size: .92rem;
}
.site-footer .footer-links a:hover { color: #f3e6b8; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 0 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: #9eabc0;
    font-size: .78rem;
}

.legal-page { padding: 32px 0 48px; }
.legal-page h1 {
    color: var(--navy);
    font-size: 1.7rem;
    font-weight: 700;
}
.legal-page .legal-kicker {
    color: #b45309;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.legal-page .card {
    border: 1px solid #e6e1d6;
    border-radius: 14px;
}
.legal-page h2 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-top: 1.6rem;
}
.legal-page h2:first-child { margin-top: 0; }
.legal-note {
    background: #fff7ed;
    border: 1px solid #f3d5b0;
    color: #7c3d0a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .9rem;
}

.page-body { min-height: 60vh; }

@media (max-width: 991.98px) {
    .navbar-vertical .navbar-brand {
        margin: 0 auto 0 8px;
    }
}

html, body { max-width: 100%; overflow-x: hidden; }
.page, .page-wrapper { max-width: 100vw; overflow-x: hidden; }
.table-responsive { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
img, svg, table, .card, .btn, .form-control { max-width: 100%; }
@media (max-width: 991.98px) {
    .page-wrapper { margin-left: 0 !important; width: 100%; }
    .container { padding-left: 12px; padding-right: 12px; }
}
