:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --sidebar: #172033;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.supplier-page {
    min-height: 100vh;
    display: flex;
}

.ix-sidebar {
    width: 240px;
    background: var(--sidebar);
    color: #fff;
    padding: 24px 18px;
    flex-shrink: 0;
}

.ix-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 32px;
}

.ix-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ix-sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 10px;
}

    .ix-sidebar a:hover,
    .ix-sidebar a.active {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

.ix-main {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.ix-topbar,
.supplier-hero,
.panel,
.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.ix-topbar {
    padding: 22px 24px;
}

    .ix-topbar small {
        color: var(--muted);
    }

    .ix-topbar h1 {
        margin: 4px 0 0;
        font-weight: 800;
    }

.supplier-hero {
    margin-top: 20px;
    padding: 24px;
}

.supplier-avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    flex-shrink: 0;
}

.supplier-hero h2,
.supplier-hero p {
    margin: 3px 0;
}

.supplier-hero p {
    color: var(--muted);
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

    .status.active {
        background: #dcfce7;
        color: #166534;
    }

    .status.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .status.paid {
        background: #dbeafe;
        color: #1e40af;
    }

.stat-card {
    padding: 18px;
    height: 100%;
}

    .stat-card span {
        color: var(--muted);
        display: block;
        margin-bottom: 8px;
    }

    .stat-card strong {
        font-size: 24px;
    }

.panel {
    padding: 22px;
}

    .panel h3 {
        margin: 0;
        font-weight: 800;
    }

.form-control {
    border-radius: 10px;
    border-color: var(--border);
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .15);
    }

.table {
    margin-top: 14px;
    vertical-align: middle;
}

    .table th {
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
    }

    .table td,
    .table th {
        padding: 14px 10px;
        border-bottom: 1px solid var(--border);
    }

.download-btn {
    border: none;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

    .download-btn:hover {
        background: #dbeafe;
        transform: translateY(-1px);
    }

.toast-custom {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #111827;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: .25s ease;
    z-index: 9999;
}

    .toast-custom.show {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 991px) {
    .supplier-page {
        flex-direction: column;
    }

    .ix-sidebar {
        width: 100%;
        padding: 18px;
    }

    .ix-logo {
        margin-bottom: 16px;
    }

    .ix-sidebar nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .ix-sidebar a {
        white-space: nowrap;
    }

    .ix-main {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .ix-topbar,
    .supplier-hero,
    .panel {
        padding: 18px;
        border-radius: 14px;
    }

    .supplier-avatar {
        width: 56px;
        height: 56px;
        font-size: 19px;
    }

    .stat-card strong {
        font-size: 20px;
    }

    .download-btn {
        width: 100%;
    }
}
