﻿/* Bison Embroidery — Customer. Primary bg: #182842, Accent: #1ae6ff. Dashboard layout. */
:root {
    --bison-bg: #182842;
    --bison-bg-deep: #0f1a2e;
    --bison-accent: #1ae6ff;
    --bison-accent-dark: #0ea5c9;
    --bison-accent-soft: rgba(26, 230, 255, 0.12);
    --bison-text: #0f172a;
    --bison-muted: #64748b;
    --bison-border: rgba(24, 40, 66, 0.28);
    --sidebar-width: 260px;
    --auth-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --auth-font-body: "Inter", system-ui, sans-serif;
}
body { margin: 0; min-height: 100vh; font-family: var(--auth-font-body); }
/* ----- Branded auth (login / signup / forgot) ----- */
body.auth-page {
    background: #f1f5f9;
    color: var(--bison-text);
    display: block;
    align-items: stretch;
    justify-content: stretch;
}
.auth-shell {
    display: flex;
    min-height: 100vh;
}
.auth-brand {
    position: relative;
    flex: 0 0 42%;
    max-width: 520px;
    background: linear-gradient(165deg, var(--bison-bg) 0%, var(--bison-bg-deep) 55%, #0a1220 100%);
    color: #fff;
    overflow: hidden;
}
.auth-brand-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 230, 255, 0.22) 0%, transparent 70%);
    top: -120px;
    right: -100px;
    pointer-events: none;
}
.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2.5rem 2.25rem;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 2rem;
}
.auth-logo:hover { color: #fff; opacity: 0.92; }
.auth-logo-mark svg { display: block; width: 48px; height: 48px; }
.auth-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.auth-logo-name {
    font-family: var(--auth-font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}
.auth-logo-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bison-accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.auth-hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bison-accent);
    margin: 0 0 0.65rem;
}
.auth-hero-title {
    font-family: var(--auth-font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.auth-hero-lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
    max-width: 28rem;
}
.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.auth-benefit-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--bison-accent-soft);
    color: var(--bison-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.auth-steps { margin-top: auto; }
.auth-steps-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.65rem;
}
.auth-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.auth-steps-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}
.auth-steps-list li.active {
    background: var(--bison-accent-soft);
    border-color: rgba(26, 230, 255, 0.35);
    color: #fff;
}
.auth-steps-list li.done { color: rgba(255, 255, 255, 0.75); }
.auth-step-num {
    font-family: var(--auth-font-display);
    font-weight: 700;
    color: var(--bison-accent);
}
.auth-steps-list li.active .auth-step-num { color: #fff; }
.auth-brand-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
}
.auth-contact-link:hover { color: var(--bison-accent); }
.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}
.auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.25rem 2rem;
    overflow-y: auto;
}
.auth-form-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--bison-border);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* Wider, shorter signup layout */
.auth-page--signup .auth-brand {
    flex: 0 0 34%;
    max-width: 420px;
}
.auth-page--signup .auth-form-wrap {
    align-items: center;
    padding: 3.5rem 2rem 2.5rem;
}
.auth-form-card--signup {
    max-width: 980px;
}
.auth-page--signup .auth-form-card-header {
    padding: 1.35rem 1.75rem 1rem;
}
.auth-page--signup .auth-form-card-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.auth-page--signup .auth-form-card-header p {
    font-size: 0.88rem;
}
.auth-page--signup .auth-form-card-body {
    padding: 1.25rem 1.75rem 1.5rem;
}
.auth-page--signup .auth-form-section {
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
}
.auth-page--signup .auth-form-section:last-of-type {
    margin-bottom: 0.85rem;
}
.auth-page--signup .auth-form-section-title {
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    font-size: 0.76rem;
}
.auth-page--signup form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.85rem;
}
.auth-page--signup .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}
.auth-page--signup .form-control,
.auth-page--signup .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}
.auth-page--signup .form-text,
.auth-page--signup small.text-muted {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.auth-page--signup .auth-password-hint {
    display: block;
    margin-top: -0.25rem;
    line-height: 1.35;
}
.auth-page--signup .signup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}
.auth-page--signup .signup-recaptcha {
    margin: 0;
}
.auth-page--signup .signup-actions .btn-bison {
    min-width: 14rem;
    padding: 0.65rem 1.25rem;
    width: auto;
}
.auth-page--signup .signup-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}
.auth-page--signup .auth-trust-badges {
    margin-top: 0;
    gap: 0.45rem;
}
.auth-page--signup .auth-trust-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
}
.auth-page--signup .signup-signin-link {
    font-size: 0.9rem;
    color: var(--bison-muted);
    text-decoration: none;
    white-space: nowrap;
}
.auth-page--signup .signup-signin-link strong {
    color: var(--bison-accent-dark);
}
.auth-page--signup .signup-signin-link:hover strong {
    text-decoration: underline;
}
@media (max-width: 991.98px) {
    .auth-page--signup .auth-brand {
        flex: none;
        max-width: none;
    }
    .auth-page--signup .signup-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .auth-page--signup .signup-actions .btn-bison {
        width: 100%;
    }
}
.auth-form-card-header {
    padding: 2rem 2.25rem 1.5rem;
    border-bottom: 1px solid var(--bison-border);
    background: #fff;
}
.auth-form-card-header h2 {
    font-family: var(--auth-font-display);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: var(--bison-text);
}
.auth-form-card-header p {
    margin: 0;
    color: var(--bison-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.auth-form-card-body {
    padding: 1.75rem 2.25rem 2.25rem;
}
.auth-form-card-body > .alert {
    margin-bottom: 1.25rem;
}
.auth-form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--bison-border);
}
.auth-form-section:last-of-type {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}
.auth-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--auth-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bison-bg);
    margin: 0 0 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.auth-form-section-title i {
    color: var(--bison-accent-dark);
    font-size: 1rem;
}
.auth-page form .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.125rem;
}
.auth-page .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}
.auth-page .form-control,
.auth-page .form-select {
    border-color: var(--bison-border);
    border-radius: 0.55rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}
.auth-page textarea.form-control {
    min-height: 5.5rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}
.auth-page form small.text-muted {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
}
.auth-page form > .d-flex {
    margin-top: 0.25rem;
    gap: 0.75rem !important;
}
.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: var(--bison-accent-dark);
    box-shadow: 0 0 0 0.2rem rgba(26, 230, 255, 0.18);
}
.auth-page .g-recaptcha {
    display: inline-block;
    transform-origin: left top;
}
.auth-page .btn-bison {
    background: linear-gradient(135deg, var(--bison-accent) 0%, var(--bison-accent-dark) 100%);
    border: none;
    color: var(--bison-bg-deep);
    font-weight: 700;
    font-family: var(--auth-font-display);
    letter-spacing: 0.02em;
    padding: 0.7rem 1.5rem;
    border-radius: 0.55rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.auth-page .btn-bison:hover {
    color: var(--bison-bg-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 230, 255, 0.35);
}
.auth-page .btn-bison-outline {
    border: 1px solid var(--bison-border);
    background: #fff;
    color: var(--bison-text);
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.7rem 1.25rem;
}
.auth-page .btn-bison-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--bison-text);
}
.auth-signup-cta {
    margin-top: 1.5rem;
    padding: 1.25rem 1.15rem 1.15rem;
    border: 1px solid rgba(26, 230, 255, 0.35);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(26, 230, 255, 0.1) 0%, rgba(26, 230, 255, 0.04) 100%);
    text-align: center;
}
.auth-signup-cta-text {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bison-text);
}
.auth-page .btn-bison-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid var(--bison-accent-dark);
    color: var(--bison-bg);
    font-weight: 700;
    font-family: var(--auth-font-display);
    letter-spacing: 0.01em;
    padding: 0.75rem 1.25rem;
    border-radius: 0.55rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.auth-page .btn-bison-signup:hover {
    background: var(--bison-accent);
    border-color: var(--bison-accent);
    color: var(--bison-bg-deep);
    box-shadow: 0 8px 22px rgba(26, 230, 255, 0.35);
    transform: translateY(-1px);
}
.auth-alt-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bison-border);
    font-size: 0.925rem;
    color: var(--bison-muted);
}
.auth-alt-link a {
    color: var(--bison-accent-dark);
    font-weight: 600;
    text-decoration: none;
}
.auth-alt-link a:hover { text-decoration: underline; }
.auth-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--bison-muted);
}
.auth-main-footer-links { display: flex; gap: 1rem; }
.auth-main-footer-links a {
    color: var(--bison-muted);
    text-decoration: none;
}
.auth-main-footer-links a:hover { color: var(--bison-accent-dark); }
.auth-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid var(--bison-border);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}
.auth-trust-badge i { color: var(--bison-accent-dark); }
@media (max-width: 991.98px) {
    .auth-shell { flex-direction: column; }
    .auth-brand {
        flex: none;
        max-width: none;
    }
    .auth-brand-inner { padding: 1.75rem 1.25rem; }
    .auth-benefits { display: none; }
    .auth-steps { margin-top: 1rem; }
    .auth-form-wrap { padding: 1.5rem 1rem 1.25rem; align-items: flex-start; }
    .auth-form-card-header {
        padding: 1.5rem 1.25rem 1.15rem;
    }
    .auth-form-card-body {
        padding: 1.35rem 1.25rem 1.75rem;
    }
    .auth-form-section {
        margin-bottom: 1.35rem;
        padding-bottom: 1.35rem;
    }
    .auth-page form .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}
/* ----- Login / Signup legacy (no sidebar) ----- */
body.login-page:not(.auth-page) { background: var(--bison-bg); color: #fff; display: flex; align-items: center; justify-content: center; }
body.login-page:not(.auth-page) .card { background: #fff; color: #000; box-shadow: 0 0.5rem 1rem rgba(0,0,0,.2); }
body.login-page:not(.auth-page) .card .card-title, body.login-page:not(.auth-page) .card .card-text { color: inherit; }
/* ----- Uploaded files preview ----- */
.uploaded-files-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: #f8fafc;
}
.upload-file-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.upload-file-preview-link:hover {
    border-color: var(--bison-accent-dark);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    color: inherit;
}
.upload-file-preview-link--missing { opacity: 0.75; cursor: default; }
.upload-file-preview-thumb {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.upload-file-preview-zoom {
    position: absolute;
    inset: auto 0.35rem 0.35rem auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.upload-file-preview-link:hover .upload-file-preview-zoom { opacity: 1; }
.upload-file-table-preview-btn {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: zoom-in;
}
.upload-file-table-preview-btn img { pointer-events: none; }
.upload-image-lightbox-content {
    background: #0f172a;
    border: none;
    color: #fff;
}
.upload-image-lightbox-header,
.upload-image-lightbox-footer {
    background: rgba(15, 23, 42, 0.95);
}
.upload-image-lightbox-caption {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.upload-image-lightbox-frame {
    min-height: 50vh;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3.5rem;
    background: #0f172a;
}
.upload-image-lightbox-img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.upload-image-lightbox-control { width: 8%; }
.upload-image-lightbox-counter {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 600;
}
.upload-service-carousel-btn { cursor: zoom-in; }
.upload-file-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    text-align: center;
}
.upload-file-preview-icon i { font-size: 1.65rem; }
.upload-file-preview-icon span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; }
.upload-file-preview-icon--pdf { color: #dc3545; background: #fff5f5; }
.upload-file-preview-icon--archive { color: #6f42c1; background: #f8f5ff; }
.upload-file-preview-icon--embroidery { color: #0ea5c9; background: #ecfeff; }
.upload-file-preview-icon--vector { color: #fd7e14; background: #fff7ed; }
.upload-file-preview-icon--document { color: #2563eb; background: #eff6ff; }
.upload-file-preview-icon--generic { color: #64748b; background: #f1f5f9; }
.upload-file-preview-icon--missing { color: #dc3545; background: #fff5f5; }
.upload-file-preview-name {
    padding: 0.45rem 0.5rem 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.upload-file-preview-meta { padding: 0 0.5rem 0.5rem; font-size: 0.68rem; color: #64748b; }
.upload-file-table-preview {
    width: 52px;
    height: 52px;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.upload-file-table-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-file-table-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    text-decoration: none;
}
.upload-file-table-icon--pdf { color: #dc3545; background: #fff5f5; }
.upload-file-table-icon--archive { color: #6f42c1; background: #f8f5ff; }
.upload-file-table-icon--embroidery { color: #0ea5c9; background: #ecfeff; }
.upload-file-table-icon--vector { color: #fd7e14; background: #fff7ed; }
.upload-file-table-icon--document { color: #2563eb; background: #eff6ff; }
.upload-file-table-icon--generic { color: #64748b; background: #f1f5f9; }
.upload-file-table-icon--missing { color: #dc3545; background: #fff5f5; }
/* ----- App layout ----- */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bison-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1030;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: transform 0.25s ease;
}
.main-wrapper { transition: margin-left 0.25s ease; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); gap: 0.5rem; }
.sidebar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    flex: 1;
}
.sidebar-brand:hover { color: var(--bison-accent); }
.btn-sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,.8); font-size: 1.25rem; padding: 0.25rem; line-height: 1; }
.btn-sidebar-close:hover { color: #fff; }
.topbar-welcome { display: flex; flex-direction: column; gap: 0.1rem; }
.topbar-welcome-text { font-weight: 600; font-size: 1rem; color: #212529; }
.topbar-welcome-date { font-size: 0.85rem; color: #6c757d; }
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active { color: var(--bison-accent); border-left-color: var(--bison-accent); background: rgba(26,230,255,.08); }
.sidebar-nav .nav-link i { font-size: 1.2rem; width: 1.5rem; text-align: center; }
.sidebar-accordion { margin: 0.15rem 0; }
.sidebar-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,.85);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sidebar-accordion__toggle:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.sidebar-accordion__toggle.is-active,
.sidebar-accordion.is-open > .sidebar-accordion__toggle {
    color: #fff;
    background: rgba(255,255,255,.04);
}
.sidebar-accordion__label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-accordion__label i {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}
.sidebar-accordion__chevron {
    font-size: 0.85rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}
.sidebar-accordion.is-open .sidebar-accordion__chevron {
    transform: rotate(180deg);
}
.sidebar-accordion__panel {
    padding: 0.15rem 0 0.35rem;
}
.sidebar-nav .nav-link--sub {
    padding-left: 2.75rem;
    font-size: 0.92rem;
}
.sidebar-nav .nav-link--sub i {
    font-size: 1.05rem;
}
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.75rem; color: rgba(255,255,255,.5); }
.main-wrapper { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--bison-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar .btn-sidebar-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: #333; font-size: 1.5rem; padding: 0.35rem; cursor: pointer; }
.topbar .btn-sidebar-toggle:hover { color: #000; }
.topbar-user { display: flex; align-items: center; gap: 0.75rem; }
.topbar-notify { position: relative; }
.topbar-notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #182842;
    text-decoration: none;
    background: rgba(24,40,66,.08);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    cursor: pointer;
}
.topbar-notify-btn:hover,
.topbar-notify.is-open .topbar-notify-btn { background: rgba(24,40,66,.14); color: #182842; }
.topbar-notify-btn i { font-size: 1.2rem; line-height: 1; display: block; }
.topbar-notify-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}
.topbar-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(460px, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid rgba(24,40,66,.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(24,40,66,.16);
    z-index: 1050;
    overflow: hidden;
}
.topbar-notify-panel[hidden] { display: none !important; }
.topbar-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.topbar-notify-head strong { display: block; font-size: 0.95rem; color: #182842; }
.topbar-notify-count {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #6c757d;
}
.topbar-notify-mark {
    font-size: 0.78rem;
    color: #0d6efd;
    text-decoration: none;
    white-space: nowrap;
}
.topbar-notify-mark:hover { text-decoration: underline; }
.topbar-notify-list { max-height: 360px; overflow-y: auto; }
.topbar-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.7rem 0.75rem 0.7rem 0.55rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: background 0.12s;
}
.topbar-notify-item:last-child { border-bottom: 0; }
.topbar-notify-item:hover { background: rgba(26,230,255,.06); }
.topbar-notify-tick {
    width: 28px;
    height: 28px;
    margin-top: 4px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #98a2b3;
    text-decoration: none;
    border: 1.5px solid rgba(152,162,179,.55);
    background: #fff;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.topbar-notify-tick:disabled { opacity: 0.55; cursor: default; }
.topbar-notify-tick i { font-size: 0.95rem; line-height: 1; }
.topbar-notify-tick:hover {
    color: #198754;
    border-color: #198754;
    background: rgba(25,135,84,.1);
}
.topbar-notify-main {
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 0.15rem 0.25rem;
    margin: -0.15rem -0.25rem;
}
.topbar-notify-main:hover { color: inherit; }
.topbar-notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(24,40,66,.08);
    color: #182842;
}
.topbar-notify-icon--order { background: rgba(13,110,253,.12); color: #0d6efd; }
.topbar-notify-icon--quote { background: rgba(13,202,240,.15); color: #0aa2c0; }
.topbar-notify-icon--payment { background: rgba(25,135,84,.12); color: #198754; }
.topbar-notify-icon--file { background: rgba(108,117,125,.15); color: #6c757d; }
.topbar-notify-icon--customer { background: rgba(255,193,7,.18); color: #b58100; }
.topbar-notify-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.topbar-notify-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}
.topbar-notify-text {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topbar-notify-time { font-size: 0.72rem; color: #98a2b3; }
.topbar-notify-empty {
    text-align: center;
    padding: 2.25rem 1.25rem;
    color: #182842;
    background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
}
.topbar-notify-empty i {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 50%;
    color: #182842;
    background: rgba(24, 40, 66, 0.1);
    border: 1px solid rgba(24, 40, 66, 0.14);
}
.topbar-notify-empty p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #182842;
}
.topbar-notify-foot {
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 0.7rem 1rem;
    text-align: center;
    background: #fafbfc;
}
.topbar-notify-foot a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #182842;
    text-decoration: none;
}
.topbar-notify-foot a:hover { color: #0d6efd; }
.topbar-user-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; border-radius: 0.35rem; padding: 0.25rem 0.5rem; margin: -0.25rem -0.5rem; transition: background 0.15s; }
.topbar-user-link:hover { background: rgba(0,0,0,.06); color: inherit; }
.topbar-user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bison-bg); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.topbar-user .user-info { line-height: 1.3; }
.topbar-user .user-name { font-weight: 600; color: #212529; }
.topbar-user .user-role { font-size: 0.8rem; color: #6c757d; }
.content { flex: 1; padding: 1.5rem; }
.content h1, .content .h1 { color: #212529; margin-bottom: 0.25rem; }
.content .text-muted { color: #6c757d; }
.dashboard-greeting { margin-bottom: 1.5rem; }
.dashboard-greeting h2 { font-size: 1.5rem; font-weight: 600; color: #212529; margin: 0 0 0.25rem 0; }
.dashboard-greeting .date { color: #6c757d; font-size: 0.95rem; }
.stat-card {
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid var(--bison-border);
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(24,40,66,.06);
    height: 100%;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: #212529; }
.stat-card .stat-label { color: #6c757d; font-size: 0.9rem; margin-top: 0.25rem; }
.stat-card .stat-trend { font-size: 0.8rem; margin-top: 0.5rem; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.75rem; }
.stat-card .stat-icon i { line-height: 1; color: inherit; }
.stat-card .stat-icon.stat-icon--primary,
.stat-card .stat-icon.bg-primary { background: rgba(26,230,255,.18) !important; color: #0aa8bd !important; }
.stat-card .stat-icon.stat-icon--warning,
.stat-card .stat-icon.bg-warning { background: rgba(255,193,7,.22) !important; color: #c77700 !important; }
.stat-card .stat-icon.stat-icon--danger,
.stat-card .stat-icon.bg-danger { background: rgba(220,53,69,.15) !important; color: #b02a37 !important; }
.stat-card .stat-icon.stat-icon--info,
.stat-card .stat-icon.bg-info { background: rgba(13,202,240,.18) !important; color: #087990 !important; }
.dash-card { border-radius: 0.5rem; overflow: hidden; height: 100%; }
.dash-card .card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--bison-border); background: #fff; }
.dash-card .card-header .card-title { margin: 0; font-size: 1rem; font-weight: 600; }
.dash-card .card-header .card-kebab { background: none; border: none; color: #6c757d; padding: 0.25rem; font-size: 1.1rem; }
.dash-card .card-body { padding: 1.25rem; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; padding: 1rem 0; }
.donut { width: 180px; height: 180px; border-radius: 50%; position: relative; }
.donut-apps { background: conic-gradient(#6f42c1 0deg 180deg, #dc3545 180deg 300deg, #ffc107 300deg 360deg); }
.donut::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: #fff; z-index: 0; }
.donut-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; padding: 0.5rem; box-sizing: border-box; }
.donut-inner-content { text-align: center; line-height: 1.3; }
.donut-inner .donut-value { font-weight: 700; font-size: 1.75rem; color: #212529; margin: 0; }
.donut-inner .donut-label { font-size: 0.8rem; color: #6c757d; font-weight: 500; margin: 0.2rem 0 0 0; display: block; text-align: center; }
.donut-legend { margin-top: 1rem; width: 100%; }
.donut-legend-h { display: flex; flex-direction: row; justify-content: center; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.donut-legend-h .donut-legend-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.donut-legend-h .donut-legend-bar { width: 10px; min-height: 32px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.donut-legend-h .donut-legend-num { font-weight: 700; font-size: 1rem; color: #212529; }
.donut-legend-h .donut-legend-text { font-size: 0.8rem; color: #6c757d; font-weight: 500; }
.donut-legend-bar.bar-purple { background: #6f42c1; }
.donut-legend-bar.bar-red { background: #dc3545; }
.donut-legend-bar.bar-yellow { background: #ffc107; }
.chart-y-axis { display: flex; flex-direction: column-reverse; justify-content: space-between; font-size: 0.7rem; color: #6c757d; margin-right: 0.5rem; height: 140px; }
.stacked-bars-wrap { display: flex; align-items: flex-end; flex: 1; min-width: 0; }
.stacked-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 0.5rem 0; flex: 1; }
.stacked-bar-group { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; align-items: stretch; min-width: 0; }
.stacked-bar-segment { width: 100%; min-height: 6px; border-radius: 1px; }
.stacked-bar-segment.seg-purple { background: #6f42c1; }
.stacked-bar-segment.seg-tax { background: #ffc107; }
.stacked-bar-segment.seg-loan { background: #c2410c; }
.stacked-bar-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #6c757d; margin-top: 0.5rem; padding-left: 0.25rem; }
.stacked-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; font-size: 0.8rem; }
.stacked-legend span { display: flex; align-items: center; gap: 0.35rem; }
.stacked-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.area-chart-wrap { position: relative; height: 140px; margin-top: 0.75rem; }
.area-chart-placeholder { width: 100%; height: 100%; border-radius: 0.25rem; overflow: hidden; position: relative; background: #fafafa; }
.area-chart-placeholder .area-chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-chart-placeholder .area-chart-line { stroke: #6f42c1; }
.area-chart-callout { position: absolute; right: 18%; top: 38%; background: #dc3545; color: #fff; padding: 0.3rem 0.5rem; border-radius: 0.2rem; font-size: 0.8rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 2; }
.big-stat { font-size: 1.75rem; font-weight: 700; color: #212529; }
.dash-card .table { margin: 0; font-size: 0.9rem; }
.dash-card .table > :not(caption) > * > * {
    border-bottom-width: 0;
    border-bottom-color: transparent;
}
.dash-card .table thead th {
    border-top: none;
    border-bottom: none;
    font-weight: 600;
    color: #6c757d;
}
.dash-card .table tbody td {
    border-top: 1px solid var(--bison-border);
    border-bottom: none;
}
.dash-card .table td,
.dash-card .table th {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}
.card { background: #fff; color: #212529; border: 1px solid var(--bison-border); box-shadow: 0 0.125rem 0.25rem rgba(24,40,66,.06); }
.card .card-header,
.card .card-footer { border-color: var(--bison-border); }
.card .card-title { color: #212529; }
.card .card-text { color: #6c757d; }
.form-control,
.form-select,
.input-group-text {
    border-color: var(--bison-border);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--bison-border);
    box-shadow: 0 0 0 0.2rem rgba(24, 40, 66, 0.15);
}
.table,
.table > :not(caption) > * > *,
.table-bordered,
.table-bordered > :not(caption) > *,
.table-bordered > :not(caption) > * > * {
    border-color: var(--bison-border);
}
.list-group-item,
.modal-content,
.dropdown-menu {
    border-color: var(--bison-border);
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    html[data-sidebar-open="1"] .app-wrapper .sidebar { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .btn-sidebar-close { display: block; }
}
@media (min-width: 992px) {
    html[data-sidebar-open="0"] .app-wrapper .sidebar { transform: translateX(-100%); }
    html[data-sidebar-open="0"] .app-wrapper .main-wrapper { margin-left: 0; }
}

.notification-item--unread {
    background: #f8f9fc;
}

/* Order status checkpoint bar */
.order-status-track {
    --track-done: #16a34a;
    --track-upcoming: #ef4444;
    --track-muted: #cbd5e1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    max-width: 52rem;
    margin: 0.5rem auto 0;
    padding: 0.75rem 0.25rem 0.15rem;
}
.order-status-track__step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.order-status-track__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: calc(50% + 0.55rem);
    width: calc(100% - 1.1rem);
    height: 3px;
    border-radius: 999px;
    background: var(--track-upcoming);
    z-index: 0;
}
.order-status-track__step--done:not(:last-child)::after {
    background: var(--track-done);
}
.order-status-track__dot {
    position: relative;
    z-index: 1;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--track-upcoming);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}
.order-status-track__step--done .order-status-track__dot,
.order-status-track__step--current .order-status-track__dot {
    background: var(--track-done);
}
.order-status-track__step--current .order-status-track__dot {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}
.order-status-track__label {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.order-status-track__step--upcoming .order-status-track__label {
    color: #64748b;
    font-weight: 600;
}
.order-status-track--cancelled .order-status-track__step:not(:last-child)::after {
    background: var(--track-muted);
}
.order-status-track--cancelled .order-status-track__dot {
    background: var(--track-muted);
    box-shadow: none;
}
.order-status-track--cancelled .order-status-track__label {
    color: #94a3b8;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .order-status-track {
        overflow-x: auto;
        justify-content: flex-start;
        max-width: none;
        padding-bottom: 0.35rem;
    }
    .order-status-track__step {
        flex: 0 0 4.75rem;
    }
    .order-status-track__label {
        font-size: 0.7rem;
    }
}

/* Order detail tabs (match admin pill tabs) */
.detail-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.detail-page-toolbar__spacer {
    width: 7.5rem;
    flex: 0 0 auto;
}
.detail-page-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid rgba(24, 40, 66, 0.12);
    max-width: 100%;
    overflow-x: auto;
}
.detail-page-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.detail-page-tab:hover {
    color: #182842;
    background: rgba(255, 255, 255, 0.8);
}
.detail-page-tab.is-active {
    color: #fff;
    background: #182842;
    box-shadow: 0 4px 12px rgba(24, 40, 66, 0.18);
}
.detail-page-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(26, 230, 255, 0.22);
    color: inherit;
}
.detail-page-tab.is-active .detail-page-tab__count {
    background: rgba(26, 230, 255, 0.28);
    color: #1ae6ff;
}
@media (max-width: 767.98px) {
    .detail-page-toolbar__spacer {
        display: none;
    }
    .detail-page-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}
.order-files-split {
    --order-files-height: calc(100vh - 9.5rem);
    min-height: var(--order-files-height);
    height: var(--order-files-height);
    align-items: stretch;
    margin-bottom: 0 !important;
}
.order-files-split > [class*="col-"] {
    display: flex;
    height: 100%;
}
.order-files-split > [class*="col-"] > .card,
.order-files-split > [class*="col-"] > .bison-files-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
}
.order-files-split .bison-files-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
}
.bison-files-card--customer .bison-files-card__header {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 55%, #1e3a5f 100%);
}
.bison-files-card--customer .bison-files-card__mark {
    background: rgba(45, 212, 191, 0.22);
    color: #99f6e4;
}
.bison-files-status--customer {
    background: #ecfeff;
    color: #0e7490;
}
.bison-files-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.files-image-slider__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.45rem;
}
.files-image-slider__carousel {
    overflow: hidden;
    background: #0f172a;
}
.files-image-slider__img {
    max-height: 260px;
    object-fit: contain;
    background: #0f172a;
}
.files-image-slider__caption {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0.4rem;
    padding: 0.35rem 0.6rem;
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
}
.files-image-slider__dots {
    margin-bottom: 0.35rem;
}
@media (max-width: 991.98px) {
    .order-files-split {
        height: auto;
        min-height: 0;
    }
    .order-files-split > [class*="col-"] > .card,
    .order-files-split > [class*="col-"] > .bison-files-card {
        height: min(100vh, 80vh);
        min-height: 24rem;
        max-height: 80vh;
    }
}

/* Files From Bison */
.bison-files-card {
    border: 1px solid rgba(24, 40, 66, 0.16);
    overflow: hidden;
}
.bison-files-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #182842 0%, #243b61 58%, #1a4f66 100%);
    color: #fff;
    border-bottom: 0;
}
.bison-files-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bison-files-card__mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 230, 255, 0.18);
    color: #1ae6ff;
    font-size: 1.15rem;
}
.bison-files-card__sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.15rem;
}
.bison-files-card__count {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.bison-files-empty {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(24, 40, 66, 0.08);
}
.bison-files-empty__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.65rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef6;
    color: #182842;
    font-size: 1.25rem;
}
.bison-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.bison-files-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(24, 40, 66, 0.14);
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bison-files-item:hover {
    border-color: rgba(26, 230, 255, 0.55);
    box-shadow: 0 6px 18px rgba(24, 40, 66, 0.06);
}
.bison-files-item.is-missing {
    opacity: 0.65;
}
.bison-files-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e8f9fc, #eef2f8);
    color: #182842;
    font-size: 1.2rem;
}
.bison-files-item__meta {
    min-width: 0;
    flex: 1 1 auto;
}
.bison-files-item__name {
    font-weight: 600;
    color: #182842;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bison-files-item__info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #6c757d;
}
.bison-files-item__note {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #334155;
}
.bison-files-item__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.bison-files-item__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}
.bison-files-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.bison-files-status--pending {
    background: #fff7ed;
    color: #c2410c;
}
.bison-files-status--sent {
    background: #ecfdf5;
    color: #047857;
}
@media (max-width: 575.98px) {
    .bison-files-item {
        flex-wrap: wrap;
    }
    .bison-files-item__actions {
        width: 100%;
    }
    .bison-files-item__actions .btn {
        flex: 1 1 auto;
    }
}

/* Customer quote revision history */
.quote-revision-item {
    padding: 1rem 1.15rem;
}
.quote-revision-item__text {
    white-space: pre-wrap;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.45;
}
.quote-revision-list .list-group-item:nth-child(even) {
    background: #fafbfc;
}
.quote-prev-detail {
    border-color: #e2e8f0 !important;
}
.quote-prev-detail .table {
    margin-bottom: 0;
}

/* Customer profile page — full content width, compact grid */
.profile-page {
    width: 100%;
    max-width: none;
}
.profile-page__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}
.profile-hero--inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: -0.25rem 0 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background:
        linear-gradient(135deg, rgba(26, 230, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
        #f8fafc;
    border: 1px solid #e8eef5;
}
.profile-hero__avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--auth-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #182842 0%, #243b5c 100%);
    box-shadow: 0 6px 16px rgba(24, 40, 66, 0.18);
    flex-shrink: 0;
}
.profile-hero__username {
    color: var(--bison-accent-dark);
    font-weight: 600;
    font-size: 0.92rem;
}
.profile-card {
    border: 1px solid var(--bison-border);
    box-shadow: 0 0.35rem 1.25rem rgba(24, 40, 66, 0.06);
}
.profile-card .card-body {
    padding: 1.35rem 1.5rem 1.5rem;
}
.profile-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #eef2f7;
}
.profile-section--last {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}
.profile-section__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--auth-font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bison-bg);
    margin: 0 0 0.9rem;
}
.profile-section__title i {
    color: var(--bison-accent-dark);
    font-size: 1rem;
}
.profile-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.85rem;
}
.profile-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}
.profile-form .form-control,
.profile-form .form-select {
    border-color: var(--bison-border);
    border-radius: 0.5rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.92rem;
}
.profile-form .form-control:focus,
.profile-form .form-select:focus {
    border-color: var(--bison-accent-dark);
    box-shadow: 0 0 0 0.2rem rgba(26, 230, 255, 0.18);
}
.profile-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.15rem;
}
.profile-form .btn-bison {
    background: var(--bison-bg);
    border-color: var(--bison-bg);
    color: #fff;
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.65rem 1.35rem;
    min-width: 10rem;
}
.profile-form .btn-bison:hover {
    background: #122038;
    border-color: #122038;
    color: #fff;
}
@media (max-width: 575.98px) {
    .profile-hero--inline {
        align-items: flex-start;
    }
    .profile-form__actions {
        justify-content: stretch;
    }
    .profile-form .btn-bison {
        width: 100%;
    }
}
