:root {
    --bis-navy: #0B2A6B;
    --bis-navy-dark: #071c49;
    --bis-orange: #F7941D;
    --bis-red: #E53E1E;
    --bis-gold: #FFD700;
    --bis-white: #FFFFFF;
    --bis-gray-light: #F4F6FB;
    --bis-gray: #6B7280;
    --bis-success: #1E9E5A;
    --bis-danger: #D92D20;
    --bis-warning: #F59E0B;
    --shadow-card: 0 2px 10px rgba(11, 42, 107, 0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: var(--bis-gray-light);
    color: #1a1a2e;
}

a { color: inherit; text-decoration: none; }

/* ---------- Top bar / sidebar shell ---------- */
.bis-shell { display: flex; min-height: 100vh; }

.bis-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--bis-navy) 0%, var(--bis-navy-dark) 100%);
    color: #fff;
    padding: 24px 16px;
    flex-shrink: 0;
}

.bis-sidebar .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.bis-sidebar .brand img { height: 40px; }
.bis-sidebar .brand span { font-weight: 700; font-size: 15px; line-height: 1.2; }

.bis-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #d7e0f5;
    margin-bottom: 4px;
    font-size: 14px;
}
.bis-nav a:hover, .bis-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.bis-main { flex: 1; display: flex; flex-direction: column; }

.bis-topbar {
    background: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e6e9f2;
}

.bis-topbar h1 { font-size: 18px; margin: 0; color: var(--bis-navy); }

.bis-content { padding: 28px; }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; color: var(--bis-navy); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 18px;
    border-left: 4px solid var(--bis-orange);
}
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--bis-navy); }
.stat-card .label { font-size: 13px; color: var(--bis-gray); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn-primary { background: var(--bis-navy); color: #fff; }
.btn-accent  { background: linear-gradient(90deg, var(--bis-orange), var(--bis-red)); color: #fff; }
.btn-success { background: var(--bis-success); color: #fff; }
.btn-danger  { background: var(--bis-danger); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--bis-navy); color: var(--bis-navy); }
.btn:hover { filter: brightness(1.06); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f7; }
th { background: var(--bis-gray-light); color: var(--bis-navy); font-weight: 600; }
tr:hover td { background: #fafbff; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending  { background: #FFF3D6; color: #92650B; }
.badge-approved { background: #DEF7E7; color: #14532D; }
.badge-rejected { background: #FDE2E1; color: #7F1D1D; }
.badge-sent     { background: #E3F0FF; color: #1E40AF; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--bis-navy); }
input, select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d7dce8;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

/* ---------- Login page ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 20%, #12377f, var(--bis-navy-dark));
}
.login-card {
    background: #fff; border-radius: 16px; padding: 36px;
    width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.login-card img { height: 56px; display: block; margin: 0 auto 14px; }
.login-card h1 { text-align: center; font-size: 18px; color: var(--bis-navy); margin-bottom: 22px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #DEF7E7; color: #14532D; }
.alert-error   { background: #FDE2E1; color: #7F1D1D; }
.alert-info    { background: #E3F0FF; color: #1E40AF; }

.text-muted { color: var(--bis-gray); font-size: 13px; }
