/* ===== Cosupplier custom styles ===== */
:root {
    --cs-primary: #1a4fa3;
    --cs-primary-dark: #123a7a;
    --cs-accent: #ff9f1c;
}

/* Global content width: 1440px */
.container { max-width: 1440px; }

.bg-primary-dark { background-color: var(--cs-primary) !important; }
.text-cs-primary { color: var(--cs-primary) !important; }
.btn-cs-primary { background-color: var(--cs-primary); color: #fff; border: none; }
.btn-cs-primary:hover { background-color: var(--cs-primary-dark); color: #fff; }

/* Hero */
.cs-hero {
    background: linear-gradient(135deg, #123a7a 0%, #1a4fa3 55%, #2e6fd0 100%);
    color: #fff;
    padding: 64px 0 72px;
}
.cs-hero .cs-rfq-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    padding: 24px;
    color: #212529;
}
.cs-hero .cs-trust { color: #cfe0ff; }

/* Cards */
.min-w-0 { min-width: 0; }
.supplier-card { transition: transform .15s ease, box-shadow .15s ease; }
.supplier-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important; }
.supplier-card .card-title a:hover { color: var(--cs-primary) !important; }

/* Selling points */
.cs-feature .bi { font-size: 2.2rem; color: var(--cs-primary); }

/* Industry hub tiles */
.cs-industry-tile {
    display: block;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: #212529;
    transition: border-color .15s, box-shadow .15s;
    height: 100%;
}
.cs-industry-tile:hover { border-color: var(--cs-primary); box-shadow: 0 4px 14px rgba(26, 79, 163, .12); }
.cs-cat-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cs-cat-sub a { color: #6c757d; text-decoration: none; }
.cs-cat-sub a:hover { color: var(--cs-primary); text-decoration: underline; }
.cs-cat-nav .cs-cat-active { background: var(--cs-primary) !important; color: #fff !important; border-color: var(--cs-primary) !important; }

/* Filter sidebar */
.cs-filters { position: sticky; top: 76px; }
@media (max-width: 991px) { .cs-filters { position: static; } }

/* Portal / admin sidebar */
.portal-sidebar .nav-link, .admin-sidebar .nav-link {
    color: #495057;
    border-left: 3px solid transparent;
    padding: .55rem 1rem;
}
.portal-sidebar .nav-link:hover { color: var(--cs-primary); background: rgba(26, 79, 163, .05); }
.portal-sidebar .nav-link.active { color: var(--cs-primary); border-left-color: var(--cs-primary); background: rgba(26, 79, 163, .08); font-weight: 600; }
.admin-sidebar { min-height: calc(100vh - 56px); }
.admin-sidebar .nav-link { color: #adb5bd; border-left: 3px solid transparent; padding: .55rem 1rem; }
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.admin-sidebar .nav-link.active { color: #fff; border-left-color: #dc3545; background: rgba(255, 255, 255, .08); font-weight: 600; }

/* Onboarding stepper */
.cs-steps { display: flex; gap: 0; margin-bottom: 28px; }
.cs-steps .step { flex: 1; text-align: center; position: relative; padding-top: 34px; font-size: .85rem; color: #6c757d; }
.cs-steps .step::before {
    content: attr(data-n);
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; line-height: 28px; border-radius: 50%;
    background: #dee2e6; color: #6c757d; font-weight: 700;
}
.cs-steps .step.active::before { background: var(--cs-primary); color: #fff; }
.cs-steps .step.done::before { content: "\2713"; background: #198754; color: #fff; }
.cs-steps .step.active { color: var(--cs-primary); font-weight: 600; }
.cs-steps .step::after {
    content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px);
    height: 2px; background: #dee2e6;
}
.cs-steps .step:last-child::after { display: none; }
.cs-steps .step.done::after { background: #198754; }

/* Main navbar: single row at >=1400px, no label wrapping */
.cs-navbar .navbar-brand { white-space: nowrap; }
.cs-navbar .navbar-nav .nav-link { white-space: nowrap; padding-left: .6rem; padding-right: .6rem; }
.cs-navbar .btn { white-space: nowrap; }

/* Misc */
.table-dense td, .table-dense th { padding: .45rem .6rem; font-size: .9rem; }
.badge-verified { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c1; }
footer a:hover { color: #fff !important; }
