:root {
    --app-bg: #f4f7fb;
    --sidebar-bg: linear-gradient(180deg, #102542 0%, #0f172a 100%);
    --sidebar-text: rgba(255, 255, 255, 0.86);
    --sidebar-muted: rgba(255, 255, 255, 0.64);
    --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    background: radial-gradient(circle at top left, #dbeafe 0, transparent 35%), var(--app-bg);
    color: #0f172a;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

    .offcanvas-lg .offcanvas-body {
        display: inline;
        padding: 0;
    }

.sidebar {
    width: 296px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-brand-title {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sidebar-brand-subtitle {
    font-size: 0.92rem;
    color: var(--sidebar-muted);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #38bdf8, #14b8a6);
    font-size: 1.5rem;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text);
    padding: 0.95rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #38bdf8;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.app-content {
    padding: 1.5rem;
}

.user-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.6rem 0.85rem;
    line-height: 1.3;
}

.user-role {
    color: #64748b;
    font-size: 0.82rem;
}

.content-card,
.stat-card,
.login-card {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.94);
}

.content-card {
    overflow: hidden;
}

.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -32px -32px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
}

.table-responsive {
    border-radius: 18px;
}

.table thead th {
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.form-label {
    font-weight: 600;
    color: #334155;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #dbe4f0;
    padding: 0.75rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-panel {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), #ffffff);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.25), transparent 35%),
        #e2e8f0;
}

.login-card {
    max-width: 420px;
    width: 100%;
    padding: 2rem;
}

.page-hero {
    padding: 1.5rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: var(--card-shadow);
}

.page-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
}

.hero-title {
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    font-weight: 700;
}

.quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #475569;
}

.quote-summary-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
}

.quote-summary-card--accent {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.quote-summary-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.quote-summary-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}

.info-list {
    display: grid;
    gap: 0.85rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed #e2e8f0;
}

.info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.info-value {
    font-size: 1rem;
    color: #0f172a;
}

.note-panel {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.1rem;
}

.note-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.note-body {
    color: #334155;
}

.total-box {
    border-radius: 20px;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #dbe4f0;
}

.quote-table input,
.quote-table textarea,
.quote-table select {
    min-width: 100px;
}

.quote-detail-table td:nth-child(2),
.quote-detail-table td:nth-child(3) {
    min-width: 170px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.media-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
}

.print-hidden {
    display: inline-flex;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }

    .app-content {
        padding: 1rem;
    }

    .topbar,
    .content-toolbar {
        gap: 1rem;
        align-items: flex-start;
    }

    .quote-summary-value {
        font-size: 1.2rem;
    }
}

@media print {
    body {
        background: #fff;
    }

    .sidebar,
    .topbar,
    .print-hidden,
    .btn,
    .alert {
        display: none !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .content-card {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
