/* 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; }
.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; 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); }
.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; }
.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; }
.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; }

/* ---------------------------------------------------------------- утас */
@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; }
}
