﻿/* Bison Embroidery — Admin. Primary bg: #182842, Accent: #1ae6ff. Dashboard layout. */
:root {
    --bison-bg: #182842;
    --bison-accent: #1ae6ff;
    --bison-border: rgba(24, 40, 66, 0.28);
    --sidebar-width: 260px;
}
body { margin: 0; min-height: 100vh; font-family: system-ui, -apple-system, sans-serif; }
/* ----- Login (no sidebar) ----- */
body.login-page { background: var(--bison-bg); color: #fff; display: flex; align-items: center; justify-content: center; }
body.login-page .card { background: #fff; color: #000; box-shadow: 0 0.5rem 1rem rgba(0,0,0,.2); }
body.login-page .card .card-title, body.login-page .card .card-text { color: inherit; }
/* ----- App layout (sidebar + main) ----- */
.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-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 cards (light area) */
.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; }
.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);
}
/* Stat card icon colors â€” avoid Bootstrap bg-* solid fills washing out glyphs */
.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; }
.stat-card .stat-icon.stat-icon--secondary,
.stat-card .stat-icon.bg-secondary { background: rgba(108,117,125,.18) !important; color: #495057 !important; }
/* Dashboard card with header + kebab */
.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 chart â€” purple (~50%), bright red (~33%), bright yellow (~20%); center: bold value + label below; legend: horizontal bar + number + label */
.donut-wrap { display: flex; flex-direction: column; align-items: center; justify-content: 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; }
.donut-legend-bar.bar-orange { background: #fd7e14; }
.donut-legend-bar.bar-beige { background: #e9c46a; }
/* Stacked bar â€” purple (Net salary), light orange (Tax), dark red/orange (Loan), Y-axis 0kâ€“600k */
.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; gap: 0; 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%; }
.stacked-legend .dot.dot-purple { background: #6f42c1; }
.stacked-legend .dot.dot-tax { background: #ffc107; }
.stacked-legend .dot.dot-loan { background: #c2410c; }
/* Area chart â€” gradient + line like ss, red callout */
.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; }
.area-chart-y { display: flex; flex-direction: column-reverse; justify-content: space-between; font-size: 0.7rem; color: #6c757d; margin-right: 0.35rem; height: 140px; flex-shrink: 0; }
.big-stat { font-size: 1.75rem; font-weight: 700; color: #212529; }
/* Table in card */
.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;
}
.badge-pending { background: #ffc107; color: #212529; }
/* Collapsible detail right panel (order / quote view) */
.detail-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.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;
}
.order-notes-card--tab {
    min-height: 0 !important;
}
.order-notes-card--tab .card-body {
    display: block !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 1.25rem;
}
.order-notes-card--tab .order-notes-timeline {
    flex: none !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
}
@media (max-width: 991.98px) {
    .detail-page-toolbar {
        justify-content: flex-start;
    }
    .detail-page-tabs {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}
.detail-page-toolbar > .btn,
.detail-aside-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bison-bg) !important;
    background: transparent !important;
    border-color: var(--bison-bg) !important;
}
.detail-page-toolbar > .btn:hover,
.detail-page-toolbar > .btn:focus,
.detail-aside-toggle:hover,
.detail-aside-toggle:focus {
    color: #fff !important;
    background: var(--bison-bg) !important;
    border-color: var(--bison-bg) !important;
}
.detail-aside-toggle[aria-expanded="false"] {
    color: var(--bison-bg) !important;
    background: transparent !important;
    border-color: var(--bison-bg) !important;
}
.detail-aside-toggle[aria-expanded="false"]:hover,
.detail-aside-toggle[aria-expanded="false"]:focus {
    color: #fff !important;
    background: var(--bison-bg) !important;
    border-color: var(--bison-bg) !important;
}
/* Narrower side panel → more room for main content */
@media (min-width: 992px) {
    .detail-layout > .detail-layout-main {
        flex: 0 0 78%;
        max-width: 78%;
    }
    .detail-layout > .detail-layout-aside {
        flex: 0 0 22%;
        max-width: 22%;
    }
}
/* Fill the viewport; offset accounts for app topbar + order tabs row */
.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;
}
@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;
    }
}
.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;
}
.detail-layout.is-aside-collapsed .detail-layout-main {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
.detail-layout.is-aside-collapsed .detail-layout-aside {
    display: none !important;
}
@media (max-width: 991.98px) {
    .detail-aside-toggle { display: none !important; }
    .detail-layout.is-aside-collapsed .detail-layout-aside { display: block !important; }
}
/* Order notes timeline */
.order-notes-card {
    min-height: 780px;
}
.order-notes-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 720px;
    max-height: calc(100vh - 140px);
    overflow: hidden;
    padding-bottom: 1rem;
}
.order-note-add-form {
    flex-shrink: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bison-border);
}
.order-notes-timeline {
    flex: 1;
    min-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-right: 0.15rem;
}
.order-note-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--bison-border);
    border-radius: 0.5rem;
    background: #f8fafc;
}
.order-note-item--change {
    border-left: 3px solid #0dcaf0;
}
.order-note-item--note {
    border-left: 3px solid var(--bison-accent-dark);
}
.order-note-item--legacy {
    border-left: 3px solid #6c757d;
    background: #fff;
}
.order-note-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.order-note-time {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}
.order-note-message {
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}
.order-note-meta {
    margin-top: 0.35rem;
}
@media (max-width: 991.98px) {
    .order-notes-card {
        min-height: 0;
    }
    .order-notes-card .card-body {
        min-height: 520px;
        max-height: none;
    }
    .order-notes-timeline {
        min-height: 360px;
    }
}
/* 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 var(--bison-border);
    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,
.upload-file-table-preview-btn:hover + .upload-file-preview-zoom { opacity: 1; }
.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 var(--bison-border);
    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; }
/* Order status filter tabs */
.order-list-card {
    border: 1px solid var(--bison-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.order-status-tabs-wrap {
    padding: 1.15rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}
.order-status-tabs-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.order-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.order-status-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.order-status-tab:hover {
    color: var(--bison-bg);
    border-color: #94a3b8;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.order-status-tab-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}
.order-status-tab-count {
    min-width: 1.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--bison-border);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
.order-status-tab.active {
    color: #fff;
    border-width: 1px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}
.order-status-tab.active .order-status-tab-count {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.order-status-tab.active .order-status-tab-dot {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.order-status-tab--all .order-status-tab-dot { background: var(--bison-accent-dark); }
.order-status-tab--all.active {
    background: linear-gradient(135deg, var(--bison-bg) 0%, #1e3a5f 100%);
    border-color: var(--bison-bg);
}
.order-status-tab--pending .order-status-tab-dot { background: #f59e0b; }
.order-status-tab--pending.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
}
.order-status-tab--confirmed .order-status-tab-dot { background: #3b82f6; }
.order-status-tab--confirmed.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}
.order-status-tab--processing .order-status-tab-dot { background: var(--bison-accent-dark); }
.order-status-tab--processing.active {
    background: linear-gradient(135deg, var(--bison-accent) 0%, var(--bison-accent-dark) 100%);
    border-color: var(--bison-accent-dark);
    color: var(--bison-bg);
}
.order-status-tab--processing.active .order-status-tab-count {
    color: var(--bison-bg);
}
.order-status-tab--shipped .order-status-tab-dot { background: #06b6d4; }
.order-status-tab--shipped.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-color: #0891b2;
}
.order-status-tab--delivered .order-status-tab-dot { background: #22c55e; }
.order-status-tab--delivered.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
}
.order-status-tab--cancelled .order-status-tab-dot { background: #ef4444; }
.order-status-tab--cancelled.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
}
.order-status-tab--quoted .order-status-tab-dot { background: #6366f1; }
.order-status-tab--quoted.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: #4f46e5;
}
.order-status-tab--converted .order-status-tab-dot { background: #22c55e; }
.order-status-tab--converted.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
}
.order-list-card .card-body.border-bottom {
    border-color: var(--bison-border) !important;
}
.order-type-filter-bar {
    background: #fff;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
@media (max-width: 767.98px) {
    .order-status-tabs-wrap {
        padding: 1rem;
    }
    .order-status-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .order-status-tab {
        flex-shrink: 0;
    }
}
/* Delete confirmation modal */
.confirm-delete-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}
.confirm-delete-modal .confirm-delete-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    opacity: 0.45;
}
.confirm-delete-modal .confirm-delete-close:hover { opacity: 0.8; }
.confirm-delete-modal .modal-body {
    padding: 2rem 2rem 1.25rem;
}
.confirm-delete-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.confirm-delete-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}
.confirm-delete-text {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.confirm-delete-name {
    display: inline-block;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--bison-bg);
    background: #f1f5f9;
    border: 1px solid var(--bison-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
    word-break: break-word;
}
.confirm-delete-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
}
.confirm-delete-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    border-top: none;
    background: #fafbfc;
}
.confirm-delete-footer .btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
}
.confirm-delete-footer .btn-light {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
}
.confirm-delete-footer .btn-light:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}
.confirm-delete-modal.show .modal-dialog {
    animation: confirmModalIn 0.22s ease-out;
}
@keyframes confirmModalIn {
    from { transform: scale(0.95) translateY(8px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
/* Status change confirmation modal */
.confirm-status-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}
.confirm-status-modal .confirm-status-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.15);
    color: #fd7e14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.confirm-status-modal .confirm-status-icon .bi-toggle2-on {
    color: #198754;
}
.confirm-status-modal .confirm-status-note {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fff8e6;
    border: 1px solid #ffe69c;
    color: #664d03;
    font-size: 0.875rem;
    line-height: 1.45;
}
.confirm-status-modal.show .modal-dialog {
    animation: confirmModalIn 0.22s ease-out;
}
@media (max-width: 575.98px) {
    .confirm-delete-modal .modal-body,
    .confirm-status-modal .modal-body { padding: 1.5rem 1.25rem 1rem; }
    .confirm-delete-footer { padding: 0 1.25rem 1.25rem; }
}
@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;
}

/* 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-dropzone {
    border: 1.5px dashed rgba(24, 40, 66, 0.28);
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at top right, rgba(26, 230, 255, 0.08), transparent 42%),
        #f8fafc;
    padding: 1rem 1.1rem 1.1rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.bison-files-dropzone.is-dragover {
    border-color: #1ae6ff;
    background: rgba(26, 230, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(26, 230, 255, 0.25);
}
.bison-files-dropzone__inner {
    text-align: center;
    padding: 0.65rem 0.5rem 0.25rem;
}
.bison-files-dropzone__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.65rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #182842;
    color: #1ae6ff;
    font-size: 1.35rem;
}
.bison-files-dropzone__lead {
    font-weight: 600;
    color: #182842;
}
.bison-files-dropzone__hint {
    font-size: 0.8rem;
    color: #6c757d;
}
.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;
}
.bison-files-item.is-pending {
    border-style: dashed;
}
.bison-files-send-bar {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #f0f9ff;
    border: 1px solid rgba(14, 116, 144, 0.18);
}
@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;
    }
}
