﻿    align-items: center;
    gap: .35rem .5rem;
    font-size: .8rem;
    color: #475569;
    padding: .4rem .75rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}
.try-doc-quota-chip i { color: var(--doc-accent); }
.try-doc-quota-track {
    width: 72px;
    height: 4px;
    background: #ccfbf1;
    border-radius: 4px;
    overflow: hidden;
}
.try-doc-quota-fill {
    height: 100%;
    background: var(--doc-accent);
    border-radius: 4px;
    transition: width .3s ease;
}
.try-doc-date-field {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .65rem;
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    background: #fff;
    font-size: .85rem;
    color: #64748b;
    margin: 0;
}
.try-doc-date-field input {
    border: 0;
    padding: 0;
    font-size: .85rem;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    width: 8.5rem;
}
.try-doc-block {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .03);
}
.try-doc-block-head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.15rem .5rem;
}
.try-doc-step {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.try-doc-block-title {
    font-size: .95rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}
.try-doc-block-sub {
    font-size: .78rem;
    color: #64748b;
    margin: .15rem 0 0;
}
.try-doc-add-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: var(--doc-accent);
}
.try-doc-add-btn:hover { background: var(--doc-accent); color: #fff; border-color: var(--doc-accent); }
.try-doc-block-body { padding: 0 1.15rem 1.15rem; }
.try-doc-logo-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .65rem .85rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    margin-bottom: .85rem;
}
.try-doc-lock-tag {
    font-size: .72rem;
    color: #64748b;
    background: #fff;
    padding: .25rem .55rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.try-doc-field { margin-bottom: .75rem; }
.try-doc-field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .3rem;
}
.try-doc-field .form-control {
    border-radius: 10px;
    border-color: #e2e8f0;
    font-size: .9rem;
}
.try-doc-field .form-control:focus {
    border-color: var(--doc-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}
.try-doc-chips-wrap {
    padding: 0 1.15rem .65rem;
}
.try-doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.try-doc-chips .try-product-chip {
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all .15s ease;
}
.try-doc-chips .try-product-chip:hover {
    border-color: var(--doc-accent);
    color: var(--doc-accent);
    background: #f0fdfa;
}
.try-doc-items-list { padding: 0 .65rem; }
.try-doc-item-row {
    padding: .85rem .75rem;
    margin-bottom: .5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.try-doc-item-row .item-name { font-weight: 600; }
.try-doc-item-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .35rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    margin-top: .5rem;
    margin-bottom: .2rem;
}
.try-doc-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .35rem;
}
.try-doc-item-actions {
    display: flex;
    gap: .35rem;
    margin-top: .5rem;
    justify-content: flex-end;
}
.try-doc-item-actions .btn { padding: .2rem .45rem; font-size: .75rem; border-radius: 6px; }
.try-doc-summary-bar {
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border-top: 1px solid var(--doc-border);
}
.try-doc-vat-note {
    font-size: .75rem;
    color: #64748b;
    margin-bottom: .65rem;
}
.try-doc-summary-lines { font-size: .88rem; }
.try-doc-summary-line {
    display: flex;
    justify-content: space-between;
    padding: .2rem 0;
}
.try-doc-summary-line.muted { color: #64748b; }
.try-doc-summary-line.grand {
    margin-top: .35rem;
    padding-top: .5rem;
    border-top: 1px dashed #cbd5e1;
    font-size: 1rem;
}
.try-doc-summary-line.grand strong { color: var(--doc-accent); }
.try-doc-generate-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0d9488 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}
.try-doc-generate-btn i { font-size: 1.35rem; }
.try-doc-generate-btn small { font-size: .72rem; font-weight: 500; opacity: .85; }
.try-doc-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 148, 136, .35);
    color: #fff;
}
.try-doc-generate-btn:disabled { opacity: .55; transform: none; }
.try-doc-preview-panel { top: 5.5rem; }
.try-doc-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.try-doc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #0d9488;
    margin-bottom: .25rem;
}
.try-doc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: try-doc-pulse 1.5s ease infinite;
}
@keyframes try-doc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}
.try-doc-preview-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}
.try-doc-preview-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
}
.try-doc-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.try-doc-action-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.try-doc-action-btn.line:hover { background: #06c755; border-color: #06c755; color: #fff; }
.try-doc-action-btn.wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.try-doc-paper-wrap {
    padding: 1rem;
    background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}
.try-doc-paper {
    background: #fff;
    border-radius: 8px;
    min-height: 480px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04);
    padding: 1.25rem;
    overflow: auto;
}
.try-doc-paper .demo-doc-preview-inner { padding: .25rem; }
.try-doc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    text-align: center;
    color: #94a3b8;
}
.try-doc-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.try-doc-empty p { margin: 0; font-size: .9rem; line-height: 1.5; }
#tryDocResultMsg .alert { border-radius: 10px; margin-top: .75rem; }
@media (max-width: 991.98px) {
    .try-doc-topbar { flex-direction: column; align-items: stretch; }
    .try-doc-preview-panel { position: static !important; }
    .try-doc-paper { min-height: 360px; }
    .try-doc-type-pill span { display: none; }
    .try-doc-type-pill { padding: .5rem .65rem; }
    .try-doc-type-pill i { font-size: 1.1rem; }
}

/* ===== Formal document sheet (issuer branding) — see assets/css/doc-sheet.css ===== */

/* Pricing â€” à¸—à¸µà¸¡ 1-4 à¸„à¸™ */
.pricing-plan-card { transition: transform .2s, box-shadow .2s; }
.pricing-plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.1) !important; }
.pricing-plan-recommended { border: 2px solid var(--secondary) !important; }
.pricing-users-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f1f5f9;
    color: var(--secondary);
    font-weight: 600;
    font-size: .85rem;
    padding: .35rem .75rem;
    border-radius: 999px;
}
.landing-price-card { transition: transform .15s; }
.landing-price-card:hover { transform: translateY(-2px); }
.pricing-team-note { background: linear-gradient(135deg, #f8fafc, #fff); }
.billing-plan-row:last-child { border-bottom: 0 !important; }
@media print {
    body:not(.doc-print-body):not(.ctr-print-page) * { visibility: hidden; }
    .try-doc-print-area, .try-doc-print-area * { visibility: visible; }
    .try-doc-print-area { position: absolute; left: 0; top: 0; width: 100%; }
    body.doc-print-body, body.doc-print-body *, body.ctr-print-page, body.ctr-print-page * { visibility: visible; }
    .demo-doc-watermark { display: none; }
}
.try-ocr-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem 1rem;
    background: #f8fafc;
}
.try-feature-header .try-feature-icon-lg { margin-top: .25rem; }

/* Try v2 */
.try-nav { border-bottom: 1px solid var(--genz-border); }
.try-hero-v2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
    padding: 3rem 0 3.5rem;
}
.try-hero-pill {
    display: inline-block;
    background: rgba(0, 201, 167, .15);
    color: #5eead4;
    font-weight: 700;
    font-size: .85rem;
    padding: .4rem 1rem;
    border-radius: 999px;
}
.try-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.try-hero-sub { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 560px; }
.try-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.try-stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}
.try-stat-num { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.try-stat-label { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: .35rem; }
.try-features-section { background: var(--genz-bg); }
.try-group-title { color: var(--genz-text); }
.try-feature-card-v2 { position: relative; padding-right: 2rem; }
.try-feature-card-v2:hover .try-card-arrow { opacity: 1; transform: translateX(2px); }
.try-card-arrow {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--genz-muted);
    opacity: .35;
    transition: .2s;
}
.try-sticky-cta-v2 {
    background: rgba(15, 23, 42, .96);
    backdrop-filter: blur(8px);
}
.try-feature-header-v2 { background: #fff; }
.try-quota-pill {
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: var(--accent);
    white-space: nowrap;
}
.try-quota-pill-out { background: #fef3c7; color: #92400e; }
.try-nav-pills-v2 .nav-link.active { background: var(--primary); }
.try-demo-wrap { border-radius: var(--genz-radius-sm); }
.try-tabs-section-v2 { background: var(--genz-bg); }
@media (max-width: 575.98px) {
    .try-hero-stats { grid-template-columns: 1fr; }
    .try-feature-card-v2 { padding-right: 1rem; }
    .try-card-arrow { display: none; }
}

/* Legal pages */
.legal-page {
    background: linear-gradient(165deg, #f0f9ff 0%, #f8fafc 40%, #ecfdf5 100%);
    min-height: calc(100vh - 80px);
}
.legal-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, .08);
    border: 1px solid rgba(59, 130, 246, .1);
}
.legal-card h1 { color: #0f172a; font-size: 1.75rem; }
.legal-body h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
    color: #0f172a;
}
.legal-body p, .legal-body li {
    line-height: 1.7;
    color: #334155;
}
.legal-body ul { padding-left: 1.25rem; }
.legal-body a { color: #2563eb; text-decoration: underline; }
.legal-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, .12);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .18);
}
.legal-modal .modal-body { max-height: min(70vh, 640px); }
.legal-link-btn {
    color: #2563eb !important;
    text-decoration: underline;
    font-size: inherit;
    vertical-align: baseline;
}
.legal-link-btn:hover { color: #1d4ed8 !important; }
@media (max-width: 575.98px) {
    .legal-card { padding: 1.25rem 1rem; }
}

/* ===== Platform Admin (à¹à¸¢à¸à¸ˆà¸²à¸à¸ªà¸¡à¸²à¸Šà¸´à¸) ===== */
.admin-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #f0f2f8;
    min-height: 100vh;
}
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}
.admin-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(245,158,11,.2);
    color: #fbbf24;
    padding: .4rem .75rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
}
.admin-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.admin-nav-section {
    padding: .75rem 1.25rem .25rem;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 700;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.admin-sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.admin-main {
    flex: 1;
    margin-left: 0;
}
@media (min-width: 992px) {
    .admin-main { margin-left: 260px; }
}
.admin-header {
    background: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
}
.admin-content { padding: 1.5rem; }
.admin-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
}
.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.admin-card-head {
    padding: .85rem 1.25rem;
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.admin-card-body { padding: 1.25rem; }
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
}
.admin-tabs .nav-link {
    font-weight: 700;
    font-size: .9rem;
    color: #64748b;
    border-radius: 999px;
    padding: .5rem 1rem;
}
.admin-tabs .nav-link.active {
    background: #1a1a2e;
    color: #fff;
}
.btn-admin-primary {
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
    border: none;
}
.btn-admin-primary:hover {
    background: #16213e;
    color: #fff;
}
.admin-offcanvas { background: #1a1a2e; color: #fff; }
.admin-offcanvas .btn-close { filter: invert(1); }
.admin-offcanvas .admin-nav-link { color: #cbd5e1; }
.admin-menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }

/* Blog */
.blog-hero { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.blog-badge { background: rgba(0, 201, 167, .12); color: #0d9488; font-weight: 700; }
.blog-hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.blog-hero-lead { color: var(--genz-muted); max-width: 640px; }
.blog-cat-pill {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--genz-border);
    color: var(--genz-muted);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}
.blog-cat-pill:hover, .blog-cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.blog-card {
    display: block;
    background: #fff;
    border: 1px solid var(--genz-border);
    border-radius: var(--genz-radius-sm);
    overflow: hidden;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.blog-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.blog-card-featured .blog-card-img { height: 200px; }
.blog-card-body { padding: 1.25rem; }
.blog-cat-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--genz-mint);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--genz-text);
    line-height: 1.4;
    margin-bottom: .5rem;
}
.blog-card-excerpt {
    font-size: .9rem;
    color: var(--genz-muted);
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-article-cover {
    height: 320px;
    background-size: cover;
    background-position: center;
}
.blog-article-header { max-width: 800px; }
.blog-article-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.blog-article-lead { font-size: 1.15rem; color: var(--genz-muted); }
.blog-article-body { font-size: 1.05rem; line-height: 1.8; }
.blog-article-body h2 { font-size: 1.35rem; font-weight: 800; margin-top: 2rem; margin-bottom: .75rem; }
.blog-article-body p { margin-bottom: 1rem; }
.blog-article-body a { color: var(--secondary); font-weight: 600; }
.blog-article-cta { background: #f8fafc; border: 1px solid var(--genz-border); }

/* CTA à¸£à¸±à¸šà¸—à¸³à¹‚à¸›à¸£à¹à¸à¸£à¸¡ / à¹€à¸§à¹‡à¸šà¸£à¸°à¸šà¸š */
.cta-custom-dev {
    margin-top: 2.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 45%, #0e7490 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.cta-custom-dev-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 1.75rem;
}
.cta-custom-dev-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .25rem .7rem;
    margin-bottom: .65rem;
}
.cta-custom-dev-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .5rem;
}
.cta-custom-dev-lead {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 1rem;
}
.cta-custom-dev-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.cta-custom-dev-line {
    white-space: nowrap;
    background: #06c755;
    border-color: #06c755;
    color: #fff;
    font-weight: 800;
}
.cta-custom-dev-line:hover,
.cta-custom-dev-line:focus {
    background: #05b34c;
    border-color: #05b34c;
    color: #fff;
}
.cta-line-mark {
    display: inline-block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    background: rgba(255,255,255,.22);
    border-radius: 4px;
    padding: .1rem .35rem;
    margin-right: .35rem;
}
.cta-custom-dev-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .15rem;
}
.cta-custom-dev-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}
.cta-custom-dev-form .form-control {
    background: rgba(255,255,255,.95);
    border: none;
    font-size: .85rem;
}
.cta-custom-dev-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}
.cta-custom-dev-form-msg.text-success { color: #6ee7b7 !important; }
.cta-custom-dev-form-msg.text-warning { color: #fde68a !important; }
.cta-custom-dev--compact .cta-custom-dev-inner { padding: 1.25rem 1.5rem; }
.cta-custom-dev--compact .cta-custom-dev-title { font-size: 1.1rem; }
.cta-custom-dev--compact .cta-custom-dev-lead { font-size: .9rem; }
.cta-custom-dev--compact .cta-custom-dev-actions .btn-lg {
    padding: .5rem 1rem;
    font-size: .95rem;
}

/* CTA à¹€à¸”à¹ˆà¸™ â€” à¸«à¸™à¹‰à¸²à¹à¸£à¸ & à¹à¸”à¸Šà¸šà¸­à¸£à¹Œà¸” */
.cta-hero-band {
    padding: 0 0 2.5rem;
    margin-top: -1rem;
}
.cta-hero-band .cta-custom-dev {
    margin-top: 0;
    border-radius: 1.35rem;
}
.dash-home > .cta-custom-dev--prominent {
    margin: 0 0 1.25rem;
    border-radius: 1.1rem;
}
.dash-home > .cta-custom-dev--prominent .cta-custom-dev-inner {
    padding: 1.25rem 1.15rem;
}
.dash-home > .cta-custom-dev--prominent .cta-custom-dev-title {
    font-size: 1.15rem;
    line-height: 1.35;
}
.dash-home > .cta-custom-dev--prominent .cta-custom-dev-lead {
    font-size: .92rem;
}
.dash-home > .cta-custom-dev--prominent .cta-custom-dev-points {
    display: none;
}
@media (min-width: 768px) {
    .dash-home > .cta-custom-dev--prominent .cta-custom-dev-points {
        display: grid;
    }
    .dash-home > .cta-custom-dev--prominent .cta-custom-dev-title {
        font-size: 1.35rem;
    }
}
.cta-custom-dev--prominent {
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .28), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.cta-custom-dev-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgba(56, 189, 248, .35), transparent 55%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(16, 185, 129, .22), transparent 50%);
}
.cta-custom-dev--prominent .cta-custom-dev-inner {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.5rem;
    align-items: stretch;
}
.cta-custom-dev--prominent .cta-custom-dev-copy {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
    min-width: min(100%, 280px);
}
.cta-custom-dev-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cta-custom-dev--prominent .cta-custom-dev-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: .35rem;
}
.cta-custom-dev-points {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: grid;
    gap: .35rem;
}
.cta-custom-dev-points li {
    font-size: .88rem;
    color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.cta-custom-dev-points .bi { color: #6ee7b7; font-size: .95rem; }
.cta-custom-dev--prominent .cta-custom-dev-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: min(100%, 220px);
}
.cta-custom-dev--prominent .cta-custom-dev-line {
    font-size: 1.05rem;
    font-weight: 800;
    padding: .85rem 1.25rem;
    box-shadow: 0 8px 24px rgba(6, 199, 85, .35);
}
.cta-custom-dev--prominent .cta-custom-dev-form-toggle {
    border-color: rgba(255,255,255,.45);
}
.cta-custom-dev-note {
    font-size: .78rem;
    color: rgba(255,255,255,.72);
    text-align: center;
    margin-top: .35rem !important;
}
@media (min-width: 768px) {
    .cta-custom-dev--prominent .cta-custom-dev-inner {
        padding: 2rem 2rem;
    }
    .cta-custom-dev--prominent .cta-custom-dev-actions {
        align-items: flex-end;
        min-width: 240px;
    }
    .cta-custom-dev-note { text-align: right; }
}

@media (max-width: 480px) {
    .cta-custom-dev-form-row { grid-template-columns: 1fr; }
}

/* à¸Ÿà¸­à¸£à¹Œà¸¡à¸ªà¸£à¹‰à¸²à¸‡à¸—à¸§à¸´ 50 */
.wht-create-form .wht-create-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    margin-right: .4rem;
}
.wht-pnd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
}
.wht-pnd-option, .wht-condition-option {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: .88rem;
    padding: .45rem .6rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
    background: #f8fafc;
}
.wht-pnd-option:has(input:checked), .wht-condition-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}
.wht-condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem;
}
.wht-create-preview-amt { font-size: .95rem; }

.blog-article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.blog-article-gallery-item { margin: 0; }
.blog-article-gallery-item img { width: 100%; height: auto; display: block; }

/* Admin article gallery */
/* Admin article wizard */
.art-wizard-card .admin-card-body { padding: 1.25rem 1.25rem 1rem; }
.art-wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .art-wizard-steps { grid-template-columns: repeat(2, 1fr); }
}
.art-wizard-step {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: .65rem .75rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.art-wizard-step:hover { border-color: #cbd5e1; background: #fff; }
.art-wizard-step.is-active {
    border-color: #1a1a2e;
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 26, 46, .18);
}
.art-wizard-step.is-done:not(.is-active) {
    border-color: #86efac;
    background: #f0fdf4;
}
.art-wizard-step-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    background: rgba(0,0,0,.08);
    flex-shrink: 0;
}
.art-wizard-step.is-active .art-wizard-step-no { background: rgba(255,255,255,.2); }
.art-wizard-step-label { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.art-wizard-pane { display: none; }
.art-wizard-pane.is-active { display: block; animation: artFadeIn .25s ease; }
@keyframes artFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.art-wizard-pane-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.art-wizard-pane-lead { color: #64748b; font-size: .92rem; margin-bottom: 1.25rem; }
.art-body-input { min-height: 320px; font-size: .88rem; line-height: 1.5; }
.art-wizard-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}
.art-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.art-dropzone:hover, .art-dropzone.is-dragover {
    border-color: #1a1a2e;
    background: #eef2ff;
}
.art-dropzone:focus { outline: 2px solid #93c5fd; outline-offset: 2px; }
.art-dropzone-icon { font-size: 2rem; color: #64748b; line-height: 1; }
.art-dropzone-title { font-weight: 700; margin-top: .5rem; }
.art-dropzone-hint { font-size: .85rem; color: #64748b; }
.art-gallery-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.art-cover-preview {
    max-height: 180px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}
.art-cover-preview-wrap {
    padding: .75rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.article-gallery-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: .65rem;
    overflow: hidden;
    background: #fff;
}
.article-gallery-item.is-pending { border-color: #fde68a; box-shadow: 0 0 0 1px #fef3c7; }
.article-gallery-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: .65rem;
    font-weight: 800;
    background: #1a1a2e;
    color: #fff;
    border-radius: 999px;
    padding: .15rem .45rem;
}
.article-gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}
.article-gallery-meta { padding-top: .15rem; }
.article-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .4rem;
}
.site-footer { background: #f8fafc; border-top: 1px solid var(--genz-border); }

/* Landing â€” à¸šà¸—à¸„à¸§à¸²à¸¡à¸¥à¹ˆà¸²à¸ªà¸¸à¸” */
.landing-blog { overflow: hidden; }
.landing-blog-head .genz-h2 { margin-bottom: .35rem; }
.genz-pill-teal { background: rgba(13, 148, 136, .12); color: #0d9488; }
.landing-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--genz-border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.landing-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .1);
    border-color: rgba(0, 201, 167, .35);
}
.landing-blog-card-hero { flex-direction: row; }
@media (max-width: 991.98px) {
    .landing-blog-card-hero { flex-direction: column; }
}
.landing-blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.landing-blog-card-hero .landing-blog-card-img-wrap {
    width: 52%;
    min-height: 280px;
}
@media (max-width: 991.98px) {
    .landing-blog-card-hero .landing-blog-card-img-wrap { width: 100%; min-height: 200px; }
}
.landing-blog-card:not(.landing-blog-card-hero) .landing-blog-card-img-wrap {
    aspect-ratio: 16 / 10;
}
.landing-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.landing-blog-card:hover .landing-blog-card-img { transform: scale(1.04); }
.landing-blog-cat {
    position: absolute;
    top: .85rem;
    left: .85rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0d9488;
    backdrop-filter: blur(6px);
}
.landing-blog-card-body {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.landing-blog-card-hero .landing-blog-card-body {
    padding: 1.5rem 1.75rem;
    justify-content: center;
}
.landing-blog-date {
    font-size: .8rem;
    color: var(--genz-muted);
    margin-bottom: .4rem;
}
.landing-blog-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--genz-text);
    line-height: 1.35;
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landing-blog-card-hero .landing-blog-title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    -webkit-line-clamp: 3;
}
.landing-blog-excerpt {
    font-size: .9rem;
    color: var(--genz-muted);
    line-height: 1.55;
    margin: 0 0 .75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landing-blog-card-hero .landing-blog-excerpt { -webkit-line-clamp: 3; }
.landing-blog-more {
    font-size: .85rem;
    font-weight: 700;
    color: #0d9488;
    margin-top: auto;
}
.landing-blog-card:hover .landing-blog-more i { transform: translateX(3px); }
.landing-blog-more i { transition: transform .2s ease; display: inline-block; }

/* DMS Hub â€” à¸¨à¸¹à¸™à¸¢à¹Œà¹€à¸­à¸à¸ªà¸²à¸£ */
.dms-hub { max-width: 1200px; width: 100%; min-width: 0; }

.dms-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
    color: #fff;
}
.dms-hero-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .25rem; letter-spacing: -.02em; }
.dms-hero-sub { margin: 0; font-size: .9rem; opacity: .85; }
.dms-hero-actions .btn-light { font-weight: 600; color: #0f172a; }

.dms-company-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.dms-company-info { display: flex; align-items: center; gap: .75rem; }
.dms-company-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #eff6ff; color: #2563eb;
    border-radius: 10px; font-size: 1.1rem;
}
.dms-company-name { font-weight: 700; font-size: .95rem; color: #0f172a; }
.dms-company-meta { font-size: .78rem; color: #64748b; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dms-badge { font-size: .7rem; font-weight: 600; padding: .15em .55em; border-radius: 6px; }
.dms-badge-vat { background: #d1fae5; color: #047857; }
.dms-badge-novat { background: #f1f5f9; color: #64748b; }
.dms-company-actions { display: flex; align-items: center; gap: .75rem; }
.dms-company-select { min-width: 180px; border-color: #e2e8f0; }
.dms-company-limit { font-size: .75rem; color: #94a3b8; white-space: nowrap; }

.dms-stepper {
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
}
.dms-stepper-track { display: flex; align-items: center; gap: 0; min-width: 0; }
a.dms-step {
    text-decoration: none;
    color: inherit;
}
.dms-step {
    display: flex; align-items: center; gap: .65rem;
    flex: 1; min-width: 0;
    padding: .65rem .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    text-align: left;
}
.dms-step:hover { border-color: #93c5fd; background: #f8fafc; }
.dms-step.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.dms-step.is-done:not(.is-active) .dms-step-num { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.dms-step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}
.dms-step.is-active .dms-step-num { background: #2563eb; border-color: #2563eb; color: #fff; }
.dms-step-body { min-width: 0; }
.dms-step-title { display: block; font-size: .82rem; font-weight: 700; color: #0f172a; }
.dms-step-desc { display: block; font-size: .7rem; color: #94a3b8; }
.dms-step-line { flex: 0 0 20px; height: 2px; background: #e2e8f0; margin: 0 .35rem; }

.dms-callout {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.dms-callout i { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.dms-callout-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.dms-quick-create {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .75rem 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}
.dms-quick-label { font-size: .75rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-right: .25rem; }
.dms-quick-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem;
    font-size: .82rem; font-weight: 600;
    color: #1e40af;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.dms-quick-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.dms-quick-btn i { font-size: 1rem; }

.dms-kpi {
    display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    height: 100%;
}
.dms-kpi-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.dms-kpi-num { font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: #0f172a; }
.dms-kpi-label { font-size: .72rem; color: #64748b; font-weight: 500; }
.dms-kpi-revenue { background: linear-gradient(135deg, #f0fdf4, #fff); border-color: #bbf7d0; }

.dms-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.dms-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.15rem;
    font-weight: 700; font-size: .9rem;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.dms-panel-body { padding: 1.15rem; }

.dms-cat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dms-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem;
    font-size: .78rem; font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: all .15s;
}
.dms-chip:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.dms-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.dms-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
}
.dms-empty i { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .75rem; }

.dms-doc-table { }
.dms-doc-thead {
    display: grid;
    grid-template-columns: 1.4fr 1fr .7fr .8fr;
    gap: .5rem;
    padding: .5rem 1.15rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.dms-doc-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
    padding: .9rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
@media (min-width: 768px) {
    .dms-doc-item {
        grid-template-columns: 1.4fr 1fr .7fr .8fr;
        align-items: center;
        gap: .5rem;
    }
}
.dms-doc-item:hover { background: #f8fafc; }
.dms-doc-item:last-child { border-bottom: none; }
.dms-doc-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    min-width: 0;
}
.dms-doc-type {
    font-size: .68rem; font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: .1em .45em;
    border-radius: 4px;
    margin-left: .35rem;
}
.dms-doc-no {
    font-weight: 700;
    font-size: .92rem;
    color: #0f172a;
    margin-top: .2rem;
    word-break: break-word;
    flex: 1 1 100%;
}
.dms-doc-customer { font-size: .85rem; color: #475569; }
.dms-doc-date { font-size: .85rem; color: #64748b; }
.dms-doc-amount { font-weight: 800; font-size: .95rem; color: #047857; text-align: right; }
.dms-doc-mobile-meta { grid-column: 1 / -1; }

.dms-activity-list { padding: .5rem 0; }
.dms-activity-item {
    display: flex; gap: .75rem;
    padding: .65rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
}
.dms-activity-item:last-child { border-bottom: none; }
.dms-activity-dot {
    width: 8px; height: 8px;
    margin-top: .45rem;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
}
.dms-activity-text { font-size: .82rem; color: #334155; }
.dms-activity-time { font-size: .72rem; color: #94a3b8; margin-top: .15rem; }

/* legacy DMS */
.dms-stat-card {
    background: #fff;
    border: 1px solid var(--genz-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    height: 100%;
}
.dms-stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.dms-stat-label { font-size: .75rem; color: var(--genz-muted); margin-top: .25rem; }
.dms-stat-icon { font-size: 1.25rem; margin-bottom: .35rem; }
.dms-stat-revenue { background: linear-gradient(135deg, #f0fdf4, #fff); border-color: #bbf7d0; }
.dms-doc-row { transition: background .15s; }
.dms-doc-row:hover { background: #f8fafc; }
.doc-item-row .item-line-total { font-size: .85rem; }
.doc-item-row .item-detail { font-size: .875rem; resize: vertical; min-height: 2.5rem; }
.doc-item-detail { font-size: .85rem; color: #64748b; margin-top: .15rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 575.98px) {
    .dms-hero {
        padding: 1.15rem;
        flex-direction: column;
        align-items: stretch;
    }
    .dms-hero-main { min-width: 0; }
    .dms-hero-sub { font-size: .82rem; line-height: 1.45; }
    .dms-hero-actions { width: 100%; }
    .dms-hero-actions .dropdown,
    .dms-hero-actions .btn { width: 100%; }
    .dms-hero-title { font-size: 1.25rem; }
    .dms-step-desc { display: none; }
    .dms-step { padding: .5rem .55rem; min-width: 0; }
    .dms-step-title { font-size: .75rem; white-space: nowrap; }
    .dms-step-line { flex: 0 0 8px; margin: 0 .2rem; }
    .dms-quick-create { gap: .4rem; }
    .dms-quick-btn { flex: 1 1 calc(50% - .25rem); justify-content: center; min-width: 0; }
    .dms-quick-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dms-kpi { padding: .75rem .85rem; gap: .6rem; }
    .dms-kpi-num { font-size: 1.1rem; }
    .dms-kpi-icon { width: 38px; height: 38px; font-size: 1rem; }
    .dms-doc-main { min-width: 0; }
    .dms-doc-amount { font-size: .88rem; }
    .dms-company-bar { padding: .75rem; }
    .dms-company-select { min-width: 0; width: 100%; max-width: 100%; }
    .dms-company-actions { width: 100%; flex-wrap: wrap; }
}

/* ===== Contrast / Readability fixes ===== */
.text-muted { color: #64748b !important; }
.small.text-muted, .form-text { color: #64748b !important; }

.badge.bg-secondary-subtle,
.badge.bg-secondary-subtle.text-secondary {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.badge.bg-warning-subtle,
.badge.bg-warning-subtle.text-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}
.badge.bg-info-subtle,
.badge.bg-info-subtle.text-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
.badge.bg-primary-subtle,
.badge.bg-primary-subtle.text-primary {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}
.badge.bg-success-subtle,
.badge.bg-success-subtle.text-success {
    background-color: #d1fae5 !important;
    color: #047857 !important;
}
.badge.bg-danger-subtle,
.badge.bg-danger-subtle.text-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
.badge.bg-light.text-muted {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}
.badge.bg-light.text-dark { color: #1e293b !important; }

.sidebar-section { color: #94a3b8 !important; }

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #94a3b8;
}
.btn-outline-secondary:hover {
    --bs-btn-color: #0f172a;
    background-color: #f8fafc;
}

.card-header.bg-white,
.card-header.bg-white strong,
.card-header.bg-white .fw-bold { color: #0f172a; }

.dms-stat-label { color: #64748b !important; }
.dms-stat-num { color: #0f172a; }

.doc-status-badge {
    display: inline-block;
    font-weight: 600;
    font-size: .75rem;
    padding: .35em .65em;
    border-radius: 6px;
    line-height: 1.2;
}
.doc-status-draft { background: #f1f5f9; color: #475569; }
.doc-status-submitted,
.doc-status-sent { background: #dbeafe; color: #1d4ed8; }
.doc-status-pending_approval { background: #fef3c7; color: #92400e; }
.doc-status-approved,
.doc-status-paid { background: #d1fae5; color: #047857; }
.doc-status-rejected,
.doc-status-overdue { background: #fee2e2; color: #b91c1c; }
.doc-status-cancelled,
.doc-status-void,
.doc-status-partial { background: #e2e8f0; color: #334155; }

.site-nav .site-logo-nav,
.auth-card .site-logo,
.auth-card .brand-logo {
    filter: none;
}

.dashboard-header .page-title,
.dashboard-content h2:not(.cta-custom-dev-title),
.dashboard-content h4,
.dashboard-content h5 { color: #0f172a; }

/* CTA à¸£à¸±à¸šà¸—à¸³à¸£à¸°à¸šà¸šà¹ƒà¸™à¹à¸”à¸Šà¸šà¸­à¸£à¹Œà¸” â€” à¸à¸±à¸™ heading à¸ªà¸µà¹€à¸‚à¹‰à¸¡à¸—à¸±à¸šà¸žà¸·à¹‰à¸™à¸¡à¸·à¸” */
.dashboard-content .cta-custom-dev,
.dashboard-content .cta-custom-dev .cta-custom-dev-title,
.dashboard-content .cta-custom-dev .cta-custom-dev-lead,
.dashboard-content .cta-custom-dev .cta-custom-dev-note,
.dashboard-content .cta-custom-dev .cta-custom-dev-points li {
    color: #fff;
}
.dashboard-content .cta-custom-dev .cta-custom-dev-badge {
    color: #fff;
}
.dashboard-content .cta-custom-dev .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.dashboard-content .cta-custom-dev .btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: #fff;
}

.list-group-item-action { color: #0f172a; }
.list-group-item-action .text-muted { color: #64748b !important; }

/* ===== PromptPay QR Module ===== */
.pp-page .pp-card { border-radius: 16px; }
.pp-amount-input { font-size: 1.5rem !important; font-weight: 700; text-align: center; }
.pp-generate-btn { border-radius: 12px; min-height: 52px; }
.pp-qr-preview-card { border-radius: 16px; min-height: 420px; }
.pp-qr-image-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.pp-qr-image { width: 100%; height: auto; display: block; }
.pp-qr-placeholder { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pp-pdf-section { background: #f8fafc; page-break-inside: avoid; }
@media (max-width: 767px) {
    .pp-amount-input { font-size: 2rem !important; }
    .pp-generate-btn { font-size: 1.1rem; min-height: 56px; }
    .pp-qr-preview-card { min-height: auto; }
    .pp-qr-actions .btn { flex: 1 1 45%; }
}
@media print {
    .pp-qr-actions, .sidebar, .dashboard-header, .no-print { display: none !important; }
    .pp-qr-image-wrap { box-shadow: none; border: 1px solid #ccc; }
}

/* ===== Loan calculator ===== */
.loan-calc-page { max-width: 1100px; margin: 0 auto; }
.loan-calc-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.loan-calc-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(217, 119, 6, .35);
}
.loan-calc-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}
.loan-calc-hero-sub {
    font-size: .9rem;
    color: #475569;
    margin-top: .15rem;
}
.loan-stat-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
}
.loan-stat-primary .fs-3 { line-height: 1.2; }
.loan-schedule-table th,
.loan-schedule-table td { font-size: .85rem; white-space: nowrap; }
.loan-money-input { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#resMonthly, #resInterest, #resTotal, #resPrincipal { font-variant-numeric: tabular-nums; }
.loan-calc-public-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background: var(--genz-bg, #eef2f8);
    min-height: 60vh;
}
.loan-register-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .25);
}
.loan-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: .75rem 0;
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}

/* ===== LINE group pairing ===== */
.line-pair-code-box {
    padding: .75rem 1rem;
    background: #ecfdf5;
    border: 2px solid #6ee7b7;
    border-radius: 12px;
}
.line-pair-code {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: .15em;
    color: #047857;
    font-family: ui-monospace, monospace;
}

/* ===== Accounting / Expenses ===== */
.acct-page { max-width: 1100px; margin: 0 auto; }
.acct-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.acct-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
}
.acct-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}
.acct-hero-sub {
    font-size: .9rem;
    color: #475569;
    margin-top: .15rem;
}
.acct-stat-card .fs-4 { line-height: 1.2; }
.acct-upload-zone { min-height: 140px; }
.acct-expense-list { border-top: 1px solid #e2e8f0; }
.acct-expense-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.acct-expense-item:hover { background: #f8fafc; }
.acct-expense-thumb-wrap { flex-shrink: 0; text-decoration: none; }
.acct-expense-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    display: block;
}
.acct-expense-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 1.25rem;
}
.acct-expense-title {
    font-weight: 600;
    color: #0f172a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acct-expense-meta {
    font-size: .78rem;
    color: #64748b;
    margin-top: .15rem;
}
.acct-expense-amount {
    flex-shrink: 0;
    font-size: .95rem;
    white-space: nowrap;
}
.acct-expense-delete { flex-shrink: 0; }
.acct-receipt-full { max-height: 70vh; object-fit: contain; }
.acct-detail-amount { font-size: 2rem; font-weight: 800; }
.acct-detail-list dt { color: #64748b; font-weight: 500; }
.acct-detail-list dd { color: #0f172a; }

/* ===== Slip Verification ===== */
.slip-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    overflow: hidden;
}
.slip-upload-zone:hover { border-color: var(--secondary, #6366f1); background: #f1f5f9; }
.slip-upload-zone img { max-height: 360px; object-fit: contain; }
.slip-trust-ring {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #22c55e;
    background: #f0fdf4;
    line-height: 1.1;
}
.slip-trust-ring[data-score^="0"],
.slip-trust-ring[data-score^="1"],
.slip-trust-ring[data-score^="2"],
.slip-trust-ring[data-score^="3"] { border-color: #ef4444; background: #fef2f2; }
.slip-trust-ring[data-score^="4"],
.slip-trust-ring[data-score^="5"] { border-color: #f59e0b; background: #fffbeb; }
.slip-result-image { max-height: 70vh; object-fit: contain; }

/* ===== Dashboard company switcher ===== */
.dashboard-company-bar {
    margin-bottom: 1.25rem;
}
@media (max-width: 575.98px) {
    .dashboard-company-bar .dms-company-actions {
        width: 100%;
    }
    .dashboard-company-bar .dms-company-select {
        flex: 1;
        min-width: 0;
    }
}
.dashboard-chart-empty {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

/* Dashboard setup panel */
.dashboard-setup-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.dashboard-setup-links li {
    margin-bottom: .5rem;
}
.dashboard-setup-links a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #334155;
    text-decoration: none;
    font-size: .9rem;
    padding: .45rem 0;
}
.dashboard-setup-links a:hover {
    color: var(--secondary);
}
.dashboard-setup-checklist li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    font-size: .88rem;
    color: #64748b;
}
.dashboard-setup-checklist li.done {
    color: #0f172a;
}
.nav-company-trigger-logo--setup {
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.1rem;
}
.nav-company-trigger--setup {
    border-color: #bfdbfe;
    background: #f8fafc;
}

/* ===== Document footer (issuer only — no platform branding) ===== */

/* ===== Mobile app-like dashboard ===== */
.tsu-mobile-app {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}
@media (max-width: 991.98px) {
    .tsu-mobile-app {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .tsu-mobile-app .dashboard-wrapper,
    .tsu-mobile-app .dashboard-main,
    .tsu-mobile-app .dashboard-content {
        max-width: 100%;
        min-width: 0;
    }
    .tsu-mobile-app .dashboard-main {
        overflow-x: hidden;
    }
    .tsu-mobile-app .dashboard-header {
        padding: .65rem 1rem;
        padding-top: calc(.65rem + env(safe-area-inset-top, 0px));
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
        gap: .5rem;
    }
    .tsu-mobile-app .nav-company-trigger {
        max-width: min(200px, 46vw);
        padding: .3rem .5rem .3rem .35rem;
    }
    .tsu-mobile-app .nav-company-trigger-text {
        display: none;
    }
    .tsu-mobile-app .nav-company-trigger-logo {
        width: 34px;
        height: 34px;
    }
    .tsu-mobile-app .page-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tsu-mobile-app .dashboard-content {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .tsu-mobile-app .card {
        border-radius: 14px;
    }
    .tsu-mobile-app .btn,
    .tsu-mobile-app .form-control,
    .tsu-mobile-app .form-select {
        min-height: 44px;
    }
    .tsu-mobile-app .mobile-bottom-nav {
        backdrop-filter: blur(16px);
        background: rgba(255, 255, 255, .94);
        border-top: 1px solid rgba(226, 232, 240, .9);
    }
    .tsu-mobile-app .mobile-bottom-nav .nav-item {
        border-radius: 12px;
        transition: color .15s, background .15s;
    }
    .tsu-mobile-app .mobile-bottom-nav .nav-item.active {
        color: var(--secondary);
        background: rgba(37, 99, 235, .08);
    }
    .tsu-mobile-app .mobile-bottom-nav .nav-item span {
        font-weight: 600;
        font-size: .65rem;
    }
    .tsu-mobile-app .dms-hero {
        border-radius: 16px;
    }
    .tsu-mobile-app .dms-stepper {
        margin-left: -.25rem;
        margin-right: -.25rem;
        padding-left: .25rem;
        padding-right: .25rem;
    }
    .tsu-mobile-app .dms-stepper-track {
        width: max-content;
        min-width: 100%;
        scroll-snap-type: x proximity;
        padding-bottom: .25rem;
    }
    .tsu-mobile-app .dms-step {
        scroll-snap-align: start;
        flex: 0 0 auto;
        min-width: 4.5rem;
    }
    .tsu-mobile-app .dms-step-line {
        flex: 0 0 6px;
    }
    .tsu-mobile-app .issuer-sig-pad canvas {
        width: 100%;
        height: 120px;
    }
    .dash-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .5rem;
    }
    .dash-app-tile { padding: .75rem .35rem; }
    .dash-app-icon { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 12px; }
    .dash-app-sub { display: none; }
    .dash-kpi-value { font-size: 1rem; }
    .dash-welcome-title { font-size: 1.15rem; }
}

/* Contracts module */
.ctr-hub { max-width: 1100px; width: 100%; min-width: 0; }
.ctr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
}
.ctr-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .85rem .5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #1e40af;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    transition: background .15s, border-color .15s;
}
.ctr-type-card i { font-size: 1.35rem; }
.ctr-type-card:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.ctr-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}
.ctr-list-item:hover { background: #f8fafc; }
.ctr-list-item:last-child { border-bottom: none; }
.ctr-list-main { min-width: 0; }
.ctr-list-title { font-weight: 700; font-size: .92rem; margin: .2rem 0; }
.ctr-doc-sheet { border-radius: 14px; }
.ctr-content { line-height: 1.65; font-size: .92rem; }
.ctr-content h1, .ctr-content h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .75rem; }
.ctr-sig-img { max-height: 72px; max-width: 200px; display: block; margin: 0 auto; }
.ctr-thai-doc {
    font-family: 'Sarabun', 'TH Sarabun New', 'Angsana New', serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #0f172a;
    text-align: justify;
}
.ctr-thai-title {
    text-align: center;
    font-size: 1.35rem !important;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 1rem !important;
}
.ctr-thai-lead { text-indent: 2.5rem; margin-bottom: .35rem; }
.ctr-thai-clause { text-indent: 2.5rem; margin-bottom: .65rem; }
.ctr-thai-indent { margin-left: 3.5rem; margin-bottom: .35rem; }
.ctr-thai-closing { text-indent: 2.5rem; margin-top: 1.25rem; margin-bottom: 1.5rem; }
.ctr-thai-sigs { margin-top: 2rem; }
.ctr-thai-sigs p { margin-bottom: 2rem; text-align: center; }
.ctr-thai-sig-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-block;
    margin-top: .35rem;
}
.ctr-sig-signer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.ctr-save-bar {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-bottom: .5rem;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    backdrop-filter: blur(6px);
}
@media (min-width: 992px) {
    .ctr-save-bar { bottom: 0; }
}
.ctr-thai-notes { margin-top: .75rem; }
.ctr-quill-editor { min-height: 360px; }
.ctr-quill-editor .ql-editor {
    font-family: 'Sarabun', 'TH Sarabun New', serif;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 320px;
}
.ctr-quill-editor .ql-toolbar {
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
    background: #f8fafc;
}
.ctr-quill-editor .ql-container {
    border-bottom-left-radius: .375rem;
    border-bottom-right-radius: .375rem;
}
@media print {
    .ctr-thai-doc { font-size: 14pt; }
    .ctr-thai-sigs p { page-break-inside: avoid; }
}

/* Settings â€” Telegram setup steps */
.tg-setup-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tg-setup-step {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}
.tg-setup-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .8rem;
    font-weight: 800;
}
.tg-setup-step strong { display: block; margin-bottom: .15rem; color: #0f172a; }
.tg-setup-step code {
    font-size: .78em;
    background: #f1f5f9;
    padding: .1em .35em;
    border-radius: 4px;
}

/* à¸™à¹‰à¸­à¸‡à¸à¸´à¸¥ â€” NPC à¸„à¸§à¸²à¸¡à¸„à¸´à¸”à¹€à¸«à¹‡à¸™à¸¡à¸¸à¸¡à¸‚à¸§à¸²à¸¥à¹ˆà¸²à¸‡ */
.gil-npc {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    pointer-events: none;
}
.gil-npc > * { pointer-events: auto; }
.gil-npc-panel {
    width: min(320px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
    border: 1px solid rgba(226, 232, 240, .9);
    padding: 1rem 1rem 1.1rem;
    position: relative;
    animation: gilSlideUp .25s ease;
}
@keyframes gilSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.gil-npc-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border: none;
    background: transparent;
    color: #64748b;
    padding: .25rem;
    line-height: 1;
}
.gil-npc-panel-head {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 1.5rem;
}
.gil-npc-greeting { color: #475569; line-height: 1.45; }
.gil-stars { display: flex; gap: .35rem; }
.gil-star {
    border: none;
    background: transparent;
    padding: 0;
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    transition: color .15s, transform .15s;
}
.gil-star:hover,
.gil-star.active { color: #fbbf24; transform: scale(1.08); }
.gil-npc-trigger {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 6px 16px rgba(37, 99, 235, .25));
    transition: transform .2s;
}
.gil-npc-trigger:hover { transform: translateY(-2px) scale(1.02); }
.gil-npc-avatar { display: block; width: 72px; height: 84px; }
.gil-avatar-svg { width: 100%; height: 100%; display: block; }
.gil-npc-bubble {
    position: absolute;
    right: calc(100% + .5rem);
    bottom: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .45rem .65rem;
    font-size: .75rem;
    color: #334155;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    animation: gilBubble 2.5s ease-in-out infinite;
    transition: opacity .2s ease;
}
.gil-npc-bubble.is-changing { opacity: 0; }
.gil-npc-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 10px;
    border: 6px solid transparent;
    border-left-color: #fff;
}
@keyframes gilBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.gil-npc-hide {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}
.gil-npc-mini {
    position: fixed;
    right: .75rem;
    bottom: 5.5rem;
    z-index: 1039;
}
.gil-npc-mini button {
    border: none;
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gil-npc-mini .gil-avatar-svg { width: 36px; height: 42px; }
@media (max-width: 991.98px) {
    .tsu-mobile-app .gil-npc {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        right: .65rem;
    }
    .tsu-mobile-app .gil-npc-mini {
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
    .gil-npc-bubble {
        right: 0;
        bottom: calc(100% + .4rem);
        white-space: normal;
        max-width: min(11.5rem, 52vw);
        text-align: center;
        line-height: 1.35;
        font-size: .68rem;
        padding: .4rem .55rem;
    }
    .gil-npc-bubble::after {
        right: 1.1rem;
        bottom: -5px;
        left: auto;
        border: 5px solid transparent;
        border-top-color: #fff;
        border-left-color: transparent;
    }
    .gil-npc-avatar { width: 64px; height: 74px; }
}

/* Print documents from dashboard â€” hide app chrome (logout, nav, etc.) */
@media print {
    .tsu-mobile-app .sidebar,
    .tsu-mobile-app .mobile-bottom-nav,
    .tsu-mobile-app .dashboard-header,
    .tsu-mobile-app .offcanvas,
    .tsu-mobile-app .no-print,
    .tsu-mobile-app .doc-print-hide,
    .gil-npc,
    .gil-npc-mini {
        display: none !important;
    }
    .tsu-mobile-app .dashboard-main {
        margin-left: 0 !important;
    }
    .tsu-mobile-app .dashboard-content {
        padding: 0 !important;
    }
    .tsu-mobile-app .doc-print-zone {
        box-shadow: none !important;
        border: none !important;
    }
    .tsu-mobile-app .doc-print-zone .card,
    .tsu-mobile-app .doc-print-zone .card-body {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

.nav-company-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    min-width: 0;
}
.nav-company-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}
.nav-company-actions .btn {
    white-space: nowrap;
    font-size: .78rem;
    padding: .32rem .55rem;
    line-height: 1.2;
}
@media (max-width: 575.98px) {
    .nav-company-actions .btn-label {
        display: none;
    }
    .nav-company-actions .btn {
        padding: .38rem .5rem;
    }
}
