.mqg-actions { margin-bottom: 14px; }
.mqg-actions .btn { min-height: 40px; margin: 0 6px 6px 0; }
.mqg-print-hint { display: inline-block; font-size: 13px; color: #78909c; }

.mqg-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid #dfe7ee;
           border-radius: 6px; padding: 8px 10px; margin-bottom: 14px; max-width: 1040px; }
.mqg-manual .mqg-nav { max-width: none; background: #f5f8fb; }
.mqg-nav-label { font-weight: 700; color: #263238; margin-right: 6px; font-size: 14px; }
.mqg-nav-item { display: inline-block; padding: 6px 10px; border-radius: 4px; font-size: 13.5px; line-height: 1.3;
                border: 1px solid #cfd8dc; background: #f5f8fb; color: #1565c0; min-height: 32px; }
a.mqg-nav-item:hover, a.mqg-nav-item:focus { background: #e3f2fd; text-decoration: none; color: #0d47a1; }
.mqg-nav-item.active { background: #1565c0; color: #fff; border-color: #1565c0; }
.mqg-nav-item.disabled { color: #90a4ae; background: #fafafa; }
.mqg-xlink { color: #1565c0; font-weight: 600; }
.mqg-xlink:hover { color: #0d47a1; }
.mqg-h2 { scroll-margin-top: 110px; }

.mqg-manual { background: #fff; padding: 26px 30px; border-radius: 4px;
              box-shadow: 0 1px 2px rgba(0,0,0,.08); max-width: 1040px; }
.mqg-manual p { font-size: 15px; line-height: 1.75; margin: 0 0 10px; }

.mqg-cover { text-align: center; padding: 26px 0 30px; border-bottom: 3px solid #1565c0; margin-bottom: 26px; }
.mqg-cover h1 { font-size: 30px; font-weight: 700; color: #1565c0; margin: 0 0 4px; }
.mqg-cover h2 { font-size: 22px; font-weight: 700; color: #263238; margin: 0 0 8px; line-height: 1.4; }
.mqg-sub  { font-size: 16px; color: #546e7a; margin: 0; }
.mqg-sub2 { font-size: 14px; color: #78909c; margin: 6px 0 0; }

.mqg-toc { background: #f5f8fb; border: 1px solid #dfe7ee; border-radius: 6px; padding: 14px 18px; margin-bottom: 22px; }
.mqg-toc b { display: block; margin-bottom: 6px; color: #263238; }
.mqg-toc ol { margin: 0; padding-left: 22px; }
.mqg-toc li { font-size: 15px; line-height: 1.8; }

.mqg-h2 { font-size: 21px; font-weight: 700; color: #1565c0; border-left: 5px solid #1565c0;
          padding-left: 12px; margin: 30px 0 14px; }
.mqg-h3 { font-size: 17px; font-weight: 700; color: #263238; margin: 20px 0 8px; }

.mqg-list { margin: 0 0 12px; padding-left: 22px; }
.mqg-list li { font-size: 15px; line-height: 1.75; margin-bottom: 6px; }
.mqg-steps { margin: 0 0 12px; padding-left: 26px; }
.mqg-steps li { font-size: 15px; line-height: 1.75; margin-bottom: 8px; }
.mqg-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14.5px; }
.mqg-table th, .mqg-table td { border: 1px solid #cfd8dc; padding: 9px 11px; text-align: left; vertical-align: top; }
.mqg-table th { background: #eceff1; font-weight: 600; }
.mqg-table .btn { pointer-events: none; }

.mqg-tip, .mqg-warn { font-size: 14.5px; line-height: 1.7; padding: 11px 14px; border-radius: 4px; margin: 10px 0 14px; }
.mqg-tip  { background: #e8f4fd; border: 1px solid #b3e0f2; color: #0d47a1; }
.mqg-warn { background: #fff8e1; border: 1px solid #ffe082; color: #7a5600; }

.mqg-fig { margin: 12px 0 20px; text-align: center; }
.mqg-fig img { max-width: 100%; height: auto; border: 1px solid #cfd8dc; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.mqg-fig.mqg-fig-sm img { max-width: 420px; }
.mqg-fig.mqg-fig-md img { max-width: 640px; }
.mqg-fig figcaption { font-size: 13.5px; color: #607d8b; margin-top: 6px; }

.mqg-flow { margin: 12px 0 18px; }
.mqg-flow-lane { display: flex; align-items: stretch; margin-bottom: 9px; }
.mqg-flow-who { flex: 0 0 130px; border-radius: 7px; color: #fff; font-weight: 700; font-size: 15px;
                display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; line-height: 1.35; }
.mqg-who1 { background: #b35900; } .mqg-who2 { background: #5e35b1; } .mqg-who3 { background: #00897b; }
.mqg-flow-steps { flex: 1; display: flex; align-items: stretch; padding-left: 12px; }
.mqg-flow-step { flex: 1; background: #f5f8fb; border: 2px solid #cfd8dc; border-radius: 7px; padding: 10px 11px; }
.mqg-flow-step b { display: block; font-size: 14.5px; color: #263238; margin-bottom: 3px; line-height: 1.3; }
.mqg-flow-step span { display: block; font-size: 13px; color: #546e7a; line-height: 1.5; }
.mqg-flow-arrow { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #90a4af; font-weight: 700; }

.mqg-faq { margin-bottom: 12px; }
.mqg-faq b { font-size: 15.5px; color: #263238; }
.mqg-faq p { margin: 3px 0 0 18px; }
.mqg-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid #cfd8dc; text-align: center; font-size: 13px; color: #78909c; }

@media (max-width: 768px) {
    .mqg-manual { padding: 16px 14px; }
    .mqg-cover h1 { font-size: 24px; }
    .mqg-cover h2 { font-size: 18px; }
    .mqg-h2 { font-size: 18px; }
    .mqg-h3 { font-size: 16px; }
    .mqg-manual p, .mqg-list li, .mqg-steps li { font-size: 14.5px; }
    .mqg-flow-lane  { flex-direction: column; }
    .mqg-flow-who   { flex: none; margin-bottom: 8px; }
    .mqg-flow-steps { flex-direction: column; padding-left: 0; }
    .mqg-flow-step  { margin-bottom: 8px; }
    .mqg-flow-arrow { flex: none; height: 22px; transform: rotate(90deg); }
    .mqg-table { display: block; overflow-x: auto; }
    .mqg-actions .btn { width: 100%; min-height: 44px; }
    .mqg-fig.mqg-fig-sm img, .mqg-fig.mqg-fig-md img { max-width: 100%; }
}

@media print {
    @page { size: A4; margin: 14mm 12mm; }
    .main-header, .main-sidebar, .left-side, .main-footer, .content-header, .mqg-noprint, header, .navbar,
    .sidebar-toggle, .control-sidebar, .control-sidebar-bg, body > div:first-child { display: none !important; }
    html, body, .wrapper, .content-wrapper, .content { margin: 0 !important; padding: 0 !important;
        background: #fff !important; min-height: 0 !important; overflow: visible !important; }
    .content-wrapper { margin-left: 0 !important; }
    .mqg-manual { box-shadow: none !important; padding: 0 !important; max-width: none !important; border-radius: 0 !important; }
    body { font-size: 12pt; color: #000; }
    .mqg-manual p, .mqg-list li, .mqg-steps li { font-size: 11.5pt; line-height: 1.6; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .mqg-h2 { break-after: avoid; page-break-after: avoid; }
    .mqg-h3 { break-after: avoid; page-break-after: avoid; }
    .mqg-fig { break-inside: avoid; page-break-inside: avoid; }
    .mqg-fig img { box-shadow: none; }
}
