
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
    margin: 0;
    background: #f7f3ee;
    color: #1f2933;
}

/* Pastikan dalam panel semua teks ikut warna gelap */
.panel {
    color:#111827;
}

/* Label kecil & info-info yang mungkin terwarisi putih */
.small-label,
.points-line,
.order-meta,
.member-info,
.redeem-note,
.modal-text {
    color:#4b5563;
}


a { text-decoration: none; }
header.top-bar {
    background: #4b2e19;
    color: #fdfaf6;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-link.disabled {
    opacity: 0.35;
    pointer-events: none;   /* tak boleh klik */
    cursor: not-allowed;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-pos {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 999px;
    background: #fdfaf6;
    padding: 3px;
}
.top-bar-text { display:flex; flex-direction:column; }
.top-bar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.top-bar-sub { font-size: 11px; opacity: .85; }
.top-bar-right { display:flex; align-items:center; gap:10px; }
.user-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.35);
    border: 1px solid rgba(209,213,219,0.7);
}
.top-bar-nav-wrapper { display:flex; align-items:center; }
.top-bar-toggle {
    display:none;
    border:1px solid rgba(209,213,219,0.7);
    background:#3b2515;
    color:#fdfaf6;
    border-radius:999px;
    padding:4px 10px;
    font-size:12px;
    cursor:pointer;
    margin-right:8px;
}
.top-bar-toggle span { margin-right:4px; font-size:14px; }
.nav-links { display:flex; gap:6px; }
.nav-link {
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    color:#fdfaf6;
    border:1px solid transparent;
    display:inline-flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
}
.nav-link:hover { background:#3b2515; }
.nav-link.active {
    background:#facc15;
    color:#3b2515;
    border-color:#facc15;
    font-weight:600;
}
.nav-link span.icon { font-size:13px; }

.page-wrapper {
    max-width:1280px;
    margin:0 auto;
    padding:12px;
}
.card-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:10px;
}
.card {
    background:#ffffff;
    border-radius:10px;
    padding:12px;
    box-shadow:0 1px 3px rgba(15,23,42,0.08);
}
.card-title { font-size:13px; color:#6b7280; }
.card-value { font-size:22px; font-weight:700; margin-top:4px; }

.table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}
.table th, .table td {
    padding:6px 5px;
    border-bottom:1px solid #e5e7eb;
}
.table th {
    background:#f9fafb;
    font-size:11px;
    color:#6b7280;
    text-align:left;
}
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 12px;
    border-radius:999px;
    border:none;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}
.btn-primary { background:#facc15; color:#3b2515; }
.btn-primary:hover { filter:brightness(0.96); }
.btn-outline {
    background:transparent;
    color:#f9fafb;
    border:1px solid rgba(249,250,251,0.5);
}
.badge {
    display:inline-block;
    padding:2px 6px;
    border-radius:999px;
    font-size:10px;
}
.badge-success { background:#dcfce7;color:#166534; }
.badge-warning { background:#fef3c7;color:#92400e; }
.badge-info    { background:#e0f2fe;color:#0369a1; }

@media (max-width: 768px) {
    header.top-bar { flex-wrap:wrap; gap:6px; }
    .top-bar-left { width:100%; }
    .top-bar-right { width:100%; justify-content:space-between; }
    .top-bar-toggle { display:inline-flex; }
    .nav-links {
        flex-wrap:wrap;
        display:none;
        background:#3b2515;
        padding:6px 8px;
        border-radius:10px;
        margin-top:6px;
    }
    .nav-links.show { display:flex; }
    .page-wrapper { padding:10px; }
}
