/* Arvai7766 Cargo — гар утсыг эхэнд тавьсан загвар. Брэнд: шар #FCA900, хар, цагаан, саарал. */
:root {
    --brand: #FCA900;
    --brand-soft: #FFF4D6;
    --ink: #111111;
    --muted: #6B6B73;
    --bg: #F4F5F7;
    --card: #FFFFFF;
    --line: #E6E6EB;
    --ok: #2E7D32;
    --bad: #C62828;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    /* footer богино хуудсанд ч дэлгэцийн доод хэсэгт байна (хуучин theme-ийн grid-ийг орлоно) */
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
    font: 15px/1.55 "Manrope", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--ink); }
a:hover, a:focus { color: #000; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--ink); }
h2 { font-size: 22px; margin: 4px 0 14px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { float: none !important; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- дээд мөр */
.topbar {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
    height: 64px; min-height: 0 !important; display: flex; align-items: center; gap: 12px;
    padding: 0 max(16px, calc((100% - 1140px) / 2));
}
.topnav .nav-cta { background: var(--brand); margin-left: 6px; }
.topnav .nav-cta:hover { background: #E59A00; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink); font-weight: 800; font-size: 18px; white-space: nowrap; flex-shrink: 0; }
/* Ажилтны цэс урт: багтахгүй өргөнд гулсдаг цэс рүү шилжинэ */
@media (max-width: 1279px) {
    body.many-links .topnav .nav-link { display: none; }
    body.many-links .menu-toggle { display: grid; }
}
.brand-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a, .topnav button {
    padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600;
    background: none; border: 0; font-size: 14px; white-space: nowrap;
}
.topnav a:hover, .topnav button:hover, .topnav a.active { background: var(--brand-soft); }
.topnav form { margin: 0; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--ink); background: none; border: 0; text-decoration: none; }
.icon-btn:hover { background: var(--bg); }
.badge-dot { position: absolute; top: 4px; right: 2px; background: var(--bad); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 5px; line-height: 17px; font-weight: 700; }
.menu-toggle { display: none; }

/* Утсан дээрх гулсдаг цэс */
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 320px; background: #fff; z-index: 100;
    transform: translateX(100%); transition: transform .2s ease, visibility .2s; padding: 18px 14px; overflow-y: auto;
    visibility: hidden; /* хаалттай үед хуудасны өргөнийг тэлэхгүй */
    box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.drawer a, .drawer button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; background: none; border: 0; text-align: left; font-size: 15px; }
.drawer a:hover, .drawer button:hover { background: var(--brand-soft); }
.drawer i { width: 22px; text-align: center; color: var(--muted); }
.drawer .who { padding: 6px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; color: var(--muted); }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-backdrop { display: block; }

/* Утсан дээрх доод цэс (апп шиг) */
.bottomnav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
.bottomnav a i { font-size: 19px; width: 54px; padding: 4px 0; border-radius: 16px; text-align: center; }
.bottomnav a.active { color: var(--ink); }
.bottomnav a.active i { background: var(--brand); color: var(--ink); }

/* ---------------------------------------------------------------- агуулга */
.page { max-width: 1140px; width: 100%; margin: 0 auto; padding: 16px; flex: 1 0 auto; }
.container { width: auto !important; max-width: 1140px; padding-left: 0; padding-right: 0; }
.page .container { padding: 0; }
.map_side_sec, .card-box {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.map_content { overflow: visible; }
.map_content h2 { margin-top: 0; }
.truck_about_wrapper, .sales_men_img, .downlord_sec_wrapper { padding: 0; background: none; }
.footer, footer.footer { min-height: 0 !important; background: #111 !important; color: #a9a9b0; font-size: 14px; margin-top: 30px; padding: 34px 16px 30px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; gap: 22px; grid-template-columns: 1fr; }
.footer .brand { color: #fff; margin-bottom: 10px; display: flex; }
.footer h5 { color: #fff; font-weight: 800; font-size: 14px; margin: 0 0 10px; }
.footer a { color: #e2e2e6; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--brand); }
.footer .brand:hover { color: #fff; }
.footer-bottom { max-width: 1140px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid #2a2a2e;
    display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; font-size: 13px; }
.footer-bottom b { color: #fff; }
body.has-bottomnav .footer { padding-bottom: 96px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

/* Товчнууд */
button, .btn { font-family: inherit; }
.buttons_header { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.buttons_header a { text-decoration: none; }
.buttons_header button, .buttons_header form button {
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
    font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin: 0;
}
.buttons_header button:hover { border-color: var(--ink); }
.buttons_header button:disabled { opacity: .5; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary, .btn-success { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.btn-primary:hover, .btn-success:hover, .btn-primary:focus, .btn-success:focus { background: #E59A00; border-color: #E59A00; color: var(--ink); }
.btn-info { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-info:hover { background: #333; color: #fff; }
.btn-warning { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-danger { background: #fff; border-color: var(--bad); color: var(--bad); }

/* Талбарууд */
.additional-01, .additional-01b { position: relative; display: flex; gap: 8px; margin: 0 0 10px !important; }
.additional-01 input, .additional-01 .input, .additional-01 textarea, .additional-01b input {
    flex: 1; width: 100% !important; height: 50px; border: 1px solid #D6D6DC !important; border-radius: 12px !important;
    padding: 0 14px !important; font-size: 16px; background: #fff; margin: 0 !important; float: none !important;
}
.additional-01 textarea { height: auto; padding: 10px 14px !important; }
.additional-01 button { position: static !important; float: none !important; width: auto !important; height: 50px; min-width: 50px; border-radius: 12px !important; border: 0; background: var(--ink); color: var(--brand); margin: 0 !important; }
.additional-01 button[disabled] { background: var(--bg); color: var(--muted); }
.additional-01.register button, .additional-01.check button, .authentication-btn {
    width: 100% !important; background: var(--brand) !important; color: var(--ink) !important; font-weight: 700; font-size: 16px; height: 52px;
}
.additional-01 input, .additional-01b input { min-width: 0; }
.additional-01.check { align-items: center; flex-wrap: wrap; }
.additional-01.check { padding-top: 0; }
.additional-01.check .llabel { white-space: nowrap; order: 2; padding: 0; }
.additional-01.check input { width: 22px !important; height: 22px; flex: 0 0 22px; order: 1; }
.additional-01.check button { flex: 1 0 100%; order: 3; margin-top: 4px !important; }
.contact-branch { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.contact-branch:first-of-type { border-top: 0; padding-top: 0; }
.contact-branch b { color: var(--ink); }
.contact-branch .fa { width: 16px; color: var(--brand); }
.contact-branch a { color: var(--ink); font-weight: 600; }
.auth-col .map_side_sec { padding: 28px 22px; border-radius: 22px; box-shadow: 0 18px 40px rgba(17,17,17,.06); margin-top: 18px; }
.auth-col .map_content h2 { font-size: 24px; font-weight: 800; }
.auth-col .map_content h2 .fa { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
    background: var(--brand); color: var(--ink); font-size: 24px; }
.auth-col .map_content p { color: var(--muted); }
.auth-col .additional-01 button[disabled] { display: none; }
/* Нэвтрэх, бүртгүүлэх г.м: дэлгэцийн өргөнөөс үл хамааран нэг багана */
.auth-col { width: 100%; max-width: 440px; margin: 0 auto; padding: 0 15px; float: none; }
.staff_add { margin-left: -5px; margin-right: -5px; }
.staff_add > div { padding: 0 5px; margin-bottom: 10px; }
.staff_add input, .staff_add select, .staff_add textarea, .form-control, .searchInput, .add_ereen textarea {
    width: 100%; min-height: 48px; height: 48px; margin: 0; border: 1px solid #D6D6DC; border-radius: 12px; padding: 10px 14px; font-size: 16px; background: #fff; box-shadow: none;
}
.staff_add button, .add_ereen button {
    width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--brand); color: var(--ink); font-weight: 700; font-size: 15px; margin: 0;
}
.staff_add button[type=button] { background: var(--ink); color: var(--brand); }
.staff_add textarea, .add_ereen textarea, textarea.form-control { height: auto; }
.staff_add input[type=checkbox], .staff_add input[type=radio], .staff_add input[type=file] { width: auto; min-height: 0; height: auto; }
.staff_add button:hover { border: 0; background: #E59A00; color: var(--ink); }
.staff_add button[type=button]:hover { background: #333; color: var(--brand); }
.form-control:focus, .staff_add input:focus, .staff_add select:focus, .additional-01 input:focus { outline: none; border-color: var(--ink) !important; }
label { font-weight: 600; }

/* Шүүлтүүрийн чипүүд */
.status-desc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; max-width: 100%; }
.status-desc a { text-decoration: none; flex: 0 0 auto; }
.status-desc div { background: #fff !important; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-weight: 600; font-size: 13px; color: var(--ink) !important; white-space: nowrap; margin: 0 !important; }
.status-desc div[style*="bold"], .status-desc a:focus div { background: var(--brand) !important; border-color: var(--brand); }

/* Хүснэгт: компьютер дээр хүснэгт, утсан дээр карт */
.product-table, .product_list { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-table th, .product_list th { background: #FAFAFB; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.product-table td, .product_list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.product-table tr:last-child td { border-bottom: 0; }
.product-table tr[class*="status-"] td:first-child { box-shadow: inset 4px 0 0 var(--line); }
.product-table tr.status-1 td:first-child { box-shadow: inset 4px 0 0 #1E88E5; }
.product-table tr.status-2 td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.product-table tr.status-3 td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.product-table tr.status-4 td:first-child { box-shadow: inset 4px 0 0 #9E9E9E; }
.product-table tr[class*="status-"], .status-desc [class*="status-"] { background: #fff !important; }
.group-row td { background: #FAFAFB !important; font-weight: 700; }
.grp-who { margin-right: 8px; white-space: nowrap; }
.grp-who a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.grp-name { font-weight: 500; opacity: .75; margin-left: 4px; }
.grp-count { display: inline-block; background: var(--brand); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; margin-right: 6px; }
.grp-pp { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; font-size: 11.5px; margin: 2px 4px 2px 0;
    text-decoration: none !important; color: inherit; opacity: .8; }
.mobile-show { display: none; }

/* Мэдэгдэл, label */
.alert { border-radius: 12px; border: 0; }
.alert-success { background: #E8F5E9; color: #1B5E20; }
.alert-warning { background: #FFF4D6; color: #6B4E00; }
.alert-danger { background: #FDECEA; color: #8E1B1B; }
.alert-info { background: #E8F1FB; color: #0D3C7A; }
.label { border-radius: 8px; padding: 3px 8px; font-weight: 600; }
.label-default { background: var(--ink); }
.label-success { background: var(--ok); }
.label-warning { background: var(--brand); color: var(--ink); }

/* Хуудаслалт */
.pagination { display: flex; justify-content: center; margin: 16px 0; }
.pagination .step-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pagination .step-links a, .pagination .step-links span { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .step-links .current { background: var(--brand); border-color: var(--brand); font-weight: 700; }

/* Нүүр хуудас, тусламж */
/* ---------------------------------------------------------------- нүүр хуудас */
.hero {
    position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 30px 22px; margin-bottom: 16px;
    background: radial-gradient(circle at 85% 15%, rgba(252,169,0,.28), transparent 45%),
                radial-gradient(circle at 0% 100%, rgba(252,169,0,.12), transparent 40%), #111;
    display: grid; grid-template-columns: 1fr; gap: 10px;
}
.hero::after { /* нарийн тор: гүн мэдрэмж */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 32px 32px;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--brand);
    background: rgba(252,169,0,.12); border: 1px solid rgba(252,169,0,.35); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.hero .hl { color: var(--brand); }
.hero p { color: #c9c9cf; margin: 0 0 18px; font-size: 16px; max-width: 520px; }
.track-form { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; gap: 10px; max-width: 560px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.track-form > i { color: var(--muted); }
.track-form input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; height: 46px; background: none; color: var(--ink); }
.track-form button { border: 0; background: var(--brand); color: var(--ink); font-weight: 800; border-radius: 12px; padding: 0 20px; height: 46px; }
.track-form button:hover { background: #E59A00; }
.search-bar { box-shadow: none; border: 1px solid #D6D6DC; margin-bottom: 16px; }
/* Нэвтэрсэн хэрэглэгчийн утсан дээр footer товч: доод цэс аль хэдийн байгаа */
@media (max-width: 767px) {
    body.has-bottomnav .footer-inner { display: none; }
    body.has-bottomnav .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
    body.has-bottomnav .footer { padding-top: 18px; margin-top: 16px; }
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 14px; font-weight: 800; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255,255,255,.1); color: #fff; }
.hero-visual { display: none; }
.hero-visual svg { width: 100%; height: auto; font-family: inherit; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }

.section { margin-bottom: 26px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.steps, .features { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step, .feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative;
    transition: transform .15s ease, box-shadow .15s ease; }
.step:hover, .feature:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,17,17,.07); }
.step h4, .feature h4 { margin: 12px 0 6px; font-weight: 800; }
.step p, .feature p { color: var(--muted); margin: 0; }
.step > i, .feature > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
    background: var(--brand-soft); color: #B87800; }
.feature > i { background: var(--ink); color: var(--brand); }
.step-no { position: absolute; top: 14px; right: 16px; font-size: 34px; font-weight: 800; color: #EFEFF2; line-height: 1; }

.contact-branch .cb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cb-call { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; text-decoration: none; flex: 0 0 38px; }
.contact-branch .cb-call .fa { color: var(--ink); width: auto; }

.app-banner { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border-radius: 22px; padding: 24px 22px; margin-bottom: 26px;
    background: linear-gradient(120deg, #FCA900, #FFC94D); }
.app-banner h2 { margin: 0 0 4px; font-weight: 800; }
.app-banner p { margin: 0; color: #3a2d00; }
.app-banner .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-banner .btn-primary:hover { background: #333; color: #fff; }

.help-links { display: grid; grid-template-columns: 1fr; gap: 12px; }
.help-link { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none !important; color: var(--muted); }
.help-link:hover { border-color: var(--ink); color: var(--muted); }
.help-link b { color: var(--ink); }
.help-link > i { font-size: 30px; color: var(--brand); }

@media (max-width: 767px) { /* утсанд картууд нам: дүрс зүүн талд */
    .step, .feature { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 14px; }
    .step > i, .feature > i { grid-row: span 2; }
    .step h4, .feature h4 { margin: 2px 0 2px; }
    .step-no { font-size: 24px; top: 10px; right: 12px; }
}
@media (min-width: 768px) {
    .hero { grid-template-columns: 1.25fr 1fr; align-items: center; padding: 48px 44px; }
    .hero h1 { font-size: 42px; }
    .hero-visual { display: block; }
    .stats b { font-size: 30px; }
    .stats span { font-size: 14px; }
    .steps, .features { grid-template-columns: repeat(2, 1fr); }
    .app-banner { flex-direction: row; justify-content: space-between; align-items: center; padding: 30px 36px; }
    .help-links { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
    .steps, .features { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 48px; }
}
.panel { border-radius: 12px; border-color: var(--line); box-shadow: none; overflow: hidden; }
.panel-heading { background: #fff !important; }
.panel-title a { display: block; font-weight: 600; text-decoration: none; }
.helpQuestions h4 { margin-top: 18px; }
.video_list p { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.add_ereen textarea { min-height: 260px; font-family: ui-monospace, Consolas, monospace; }
.add_ereen_info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* ---------------------------------------------------------------- профайл */
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--ink); display: inline-grid; place-items: center;
    font-weight: 800; font-size: 14px; overflow: hidden; flex: 0 0 32px; }
.avatar-sm img, .avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.topnav .avatar-btn { padding: 0; }
.drawer .who { display: flex !important; gap: 12px; align-items: center; text-decoration: none; }
.drawer .who .avatar-sm { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
.drawer .who b { display: block; color: var(--ink); }
.drawer .who small { display: block; color: var(--muted); font-weight: 500; }
.profile { max-width: 640px; margin: 0 auto; }
.profile .card-box h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.profile .card-box h3 .fa { color: var(--brand); width: 20px; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.avatar-big { position: relative; width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%; background: var(--brand); display: grid; place-items: center;
    cursor: pointer; margin: 0; overflow: visible; }
.avatar-big img { border-radius: 50%; }
.avatar-big span { font-size: 38px; font-weight: 800; }
.avatar-big input[type="file"] { display: none !important; }
.avatar-big span .fa { font-size: 38px; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
    display: grid; place-items: center; font-size: 14px; border: 3px solid #fff; }
.avatar-form { margin: 0; }
.profile-who h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.profile-who p { margin: 0 0 4px; color: var(--muted); }
.verified { color: var(--ok); font-size: 12.5px; font-weight: 700; margin-left: 6px; white-space: nowrap; }
.unverified { color: #B87800; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.pform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.link-btn.danger { color: var(--bad); }
.pdetails summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.plinks { padding: 6px !important; }
.plinks a, .plinks button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 12px; border-radius: 12px; text-decoration: none;
    color: var(--ink); font-weight: 600; background: none; border: 0; font: inherit; text-align: left; }
.plinks a:hover, .plinks button:hover { background: var(--bg); }
.plinks .fa:first-child { width: 22px; text-align: center; color: var(--muted); }
.plinks .fa-angle-right { margin-left: auto; color: var(--muted); }
.plinks form { margin: 0; }
.danger-zone { margin: 26px 0 10px; color: var(--muted); font-size: 13px; text-align: center; }
.danger-zone summary { cursor: pointer; list-style: none; text-decoration: underline; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone[open] { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.danger-zone[open] summary { margin-bottom: 8px; text-decoration: none; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- заавар, өгүүлбэр */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.help-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; background: #111; color: #fff;
    border-radius: 22px; padding: 26px 22px; margin-bottom: 20px;
    background: radial-gradient(circle at 90% 0%, rgba(252,169,0,.3), transparent 50%), #111; }
.help-hero h1 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.help-hero p { color: #c9c9cf; margin: 0; max-width: 560px; }
.help-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 0 14px; flex: 1 1 260px; max-width: 380px; margin: 0; }
.help-search .fa { color: var(--muted); }
.help-search input { border: 0; outline: none; height: 46px; flex: 1; min-width: 0; font: inherit; color: var(--ink); background: none; }
.help-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.help-group { font-size: 18px; font-weight: 800; margin: 6px 0 12px; }
.help-group .fa { color: var(--brand); margin-right: 4px; }
.vgroup { margin-bottom: 22px; }
.vgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.vcard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
    text-decoration: none !important; color: var(--ink); transition: border-color .15s, transform .15s; }
.vcard:hover { border-color: var(--ink); transform: translateY(-1px); color: var(--ink); }
.vplay { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 16px; padding-left: 3px; }
.vtext { flex: 1; min-width: 0; }
.vtext small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.vtext b { display: block; line-height: 1.35; }
.vgo { color: var(--muted); font-size: 13px; white-space: nowrap; }
.help-side .card-box h3 { margin-top: 0; font-size: 16px; font-weight: 800; }
.help-side .card-box h3 .fa { color: var(--brand); }
.help-none { color: var(--muted); text-align: center; padding: 30px; }
.sgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.scard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; }
.snum { position: absolute; top: 14px; right: 16px; color: #D6D6DC; font-weight: 800; font-size: 20px; }
.smn { font-weight: 700; margin: 0 28px 10px 0; }
.szh { font-size: 17px; line-height: 1.6; background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.scard .scopy { margin-top: auto; }
.scopy { align-self: flex-start; }
.scopy.copied { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.scopy.copied .fa::before { content: "\f00c"; }
@media (min-width: 768px) {
    .vgrid, .sgrid { grid-template-columns: repeat(2, 1fr); }
    .help-hero { padding: 34px 36px; }
}
@media (min-width: 1100px) {
    .help-layout { grid-template-columns: 1fr 320px; }
    .sgrid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- тайлан */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin: 4px 0 16px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.page-head h1 .fa { color: var(--brand); }
.page-head p { color: var(--muted); margin: 0; }
.rep-group { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; font-weight: 800; }
.rep-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rep-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; text-decoration: none !important; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.rep-card:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,17,17,.06); color: var(--ink); }
.rep-card > .fa:first-child { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-soft); color: #B87800; font-size: 20px; }
.rep-card b { display: block; font-size: 16px; }
.rep-card span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.rep-card .rep-go { margin-left: auto; color: var(--muted); font-size: 20px; }

.rep-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.rep-side { display: none; }
.rep-main { min-width: 0; }
.rep-export { display: flex; gap: 8px; }
.rep-export .btn { padding: 9px 14px; }
.btn-success { background: #1D6F42; border-color: #1D6F42; color: #fff; }
.btn-success:hover, .btn-success:focus { background: #155232; border-color: #155232; color: #fff; }

.rep-filters, .expense-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.rf-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.rf-field.rf-wide { flex: 3 1 260px; }
.rf-field[hidden] { display: none; }
.rf-field label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; }
.rf-field select, .rf-field input { height: 40px; border: 1px solid #D6D6DC; border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; width: 100%; min-width: 0; }
.rf-dates > div { display: flex; gap: 6px; align-items: center; }
.rf-actions { display: flex; gap: 6px; }
.rf-actions .btn { height: 40px; }
.rep-note { background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; color: #5c4300; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.kpi span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi b { display: block; font-size: clamp(15px, 1.3vw, 20px); font-weight: 800; letter-spacing: -.02em; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi-brand { background: var(--ink); border-color: var(--ink); }
.kpi-brand span, .kpi-brand small { color: #b9b9c0; }
.kpi-brand b { color: var(--brand); }
.kpi-good b { color: var(--ok); }
.kpi-bad b { color: var(--bad); }

.charts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.chart-card h4 { margin: 0 0 10px; font-weight: 800; }
.vbars { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-bottom: 18px; overflow-x: auto; }
.vbar { flex: 1 0 8px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.vbar i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 0; }
.vbar i.neg { background: var(--bad); }
.vbar:hover i { background: var(--ink); }
.vbar span { position: absolute; bottom: -17px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.vbars .vbar:not(:first-child):not(:last-child) span { visibility: hidden; }
.vbars .vbar:hover span { visibility: visible; color: var(--ink); font-weight: 700; z-index: 1; background: #fff; }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.hbar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-t { background: var(--bg); border-radius: 6px; height: 12px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hbar-t i.neg { background: var(--bad); }
.hbar-v { font-weight: 700; white-space: nowrap; }

.rep-table { padding: 0 !important; overflow: hidden; }
.rep-table-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; gap: 10px; }
.rep-table-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.rep-table-head span { color: var(--muted); font-size: 13px; }
.rtable { margin: 0 !important; font-size: 13.5px; }
.rtable thead th { background: #FAFAFB; color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line) !important;
    border-top: 0 !important; white-space: nowrap; position: sticky; top: 0; }
.rtable td { border-top: 1px solid #F0F0F3 !important; vertical-align: middle !important; }
.rtable tbody tr:hover td { background: #FFFBEF; }
.rtable tfoot td { font-weight: 800; background: var(--brand-soft); border-top: 2px solid var(--brand) !important; }
.rtable .k-money, .rtable .k-int, .rtable .k-pct { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable .k-date, .rtable .k-datetime { white-space: nowrap; }
.rep-more, .rep-empty { color: var(--muted); padding: 10px 16px 14px; margin: 0; font-size: 13px; }

@media (min-width: 768px) {
    .rep-grid { grid-template-columns: repeat(2, 1fr); }
    .kpis { grid-template-columns: repeat(3, 1fr); }
    .charts { grid-template-columns: repeat(2, 1fr); }
    .chart-card.chart-h:only-child, .charts .chart-card:only-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .rep-grid { grid-template-columns: repeat(3, 1fr); }
    .kpis { grid-template-columns: repeat(5, 1fr); }
    .rep-layout { grid-template-columns: 210px 1fr; }
    .rep-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; align-self: start; }
    .rep-side a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
    .rep-side a .fa { width: 20px; color: var(--muted); }
    .rep-side a:hover { background: #fff; }
    .rep-side a.active { background: var(--ink); color: #fff; }
    .rep-side a.active .fa { color: var(--brand); }
    .rep-side .rep-side-head { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
}
@media print {
    .rep-side, .rep-filters, .rep-export, .topbar, .footer, .bottomnav { display: none !important; }
    .rep-layout { display: block; }
    .kpis { grid-template-columns: repeat(4, 1fr); }
    .rep-table { break-inside: auto; }
    .rtable thead th { position: static; }
}

/* ---------------------------------------------------------------- утас */
@media (max-width: 767px) {
    .page { padding: 12px 12px 90px; }
    .page .row { margin-left: -6px; margin-right: -6px; }
    .page .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
    .page .table-responsive { width: 100%; overflow-x: auto; border: 0; }
    .page .table-responsive td, .page .table-responsive th { white-space: nowrap; }
    .topnav .nav-link { display: none; }
    .menu-toggle { display: grid; }
    .has-bottomnav .bottomnav { display: flex; }
    .map_side_sec, .card-box { padding: 14px; border-radius: 12px; }
    h2 { font-size: 19px; }
    .column-hide-xs { display: none !important; }
    .mobile-show { display: block; color: var(--muted); font-size: 13px; }

    /* Хүснэгтийг карт болгоно: мөр бүр нэг карт */
    .product-table, .product_list, .product-table > tbody, .product_list > tbody { display: block; width: 100% !important; }
    .product-table, .product_list { border: 0; background: none; border-radius: 0; overflow: visible; }
    .product-table tr:first-child:has(th), .product_list tr:first-child:has(th) { display: none; }
    .product-table tr, .product_list tr {
        display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: #fff; border: 1px solid var(--line);
        border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
    }
    .product-table td, .product_list td { display: block; border: 0; padding: 2px 0; text-align: left !important; width: auto !important; }
    .product-table td:empty, .product_list td:empty { display: none; }
    .product-table tr[class*="status-"] { border-left: 4px solid var(--line); }
    .product-table tr.status-1 { border-left-color: #1E88E5; }
    .product-table tr.status-2 { border-left-color: var(--brand); }
    .product-table tr.status-3 { border-left-color: var(--ok); }
    .product-table tr.status-4 { border-left-color: #9E9E9E; }
    .product-table tr[class*="status-"] td:first-child { box-shadow: none; }
    .product-table tr.group-row, .product-table tr.group-row[class*="status-"] { background: var(--ink) !important; border-color: var(--ink); margin-top: 14px; }
    .product-table tr.group-row td { background: none !important; color: #fff; }
    .product-table tr.group-row td a { color: var(--brand); }
    .product-table td { min-width: 0; overflow-wrap: anywhere; }
    .product-table tr.group-row a button { width: auto !important; }
    .product-table td:last-child:has(a, form, button) { margin-left: auto; }
    .table-responsive { border: 0; }
}
@media (min-width: 768px) {
    .drawer, .drawer-backdrop { display: none !important; }
}

/* Хэвлэх үед цэсгүй */
@media print {
    .topbar, .bottomnav, .drawer, .footer, .hidden-print { display: none !important; }
    body { background: #fff; }
}
