body { background: #f4f6fa; font-size: .92rem; }
.sidebar { width: 250px; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e3e7ef; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.sidebar .nav-link { color: #334; padding: .38rem 1rem; border-radius: 0; font-size: .9rem; }
.sidebar .nav-link i { width: 22px; display: inline-block; color: #5b6b8c; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: #e8f0fe; color: #0d6efd; }
.sidebar .nav-header { font-size: .7rem; font-weight: 700; color: #8a94a6; padding: .8rem 1rem .25rem; letter-spacing: .05em; }
.main-content { min-width: 0; }
.card { border: 0; box-shadow: 0 1px 3px rgba(20,30,60,.08); }
.card-header { background: #fff; font-weight: 600; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; }
.stat-card .label { color: #6c757d; font-size: .82rem; }
.table { font-size: .87rem; }
.table th { white-space: nowrap; background: #f8f9fb; }
.page-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.fee-table td:last-child { text-align: right; white-space: nowrap; }
.timeline { list-style: none; padding-left: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; border-left: 2px solid #d0d7e2; margin-left: .5rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #0d6efd; }
.timeline li:first-child::before { background: #198754; box-shadow: 0 0 0 4px #d1e7dd; }
.scan-input { font-size: 1.4rem; font-family: monospace; }
.signature-pad { border: 1px dashed #999; border-radius: 6px; background: #fff; width: 100%; height: 180px; touch-action: none; }
.waybill { width: 100mm; min-height: 140mm; border: 1px solid #000; padding: 4mm; margin: 0 auto 6mm; background: #fff; font-size: 11px; page-break-after: always; }
.waybill h5 { font-size: 14px; margin: 0; }
.waybill .box { border: 1px solid #000; padding: 2mm; margin-top: 2mm; }
.label-tag { width: 70mm; border: 1px dashed #000; padding: 3mm; display: inline-block; margin: 2mm; background: #fff; font-size: 11px; vertical-align: top; }
.print-page { background: #fff; padding: 10mm; }
@media print {
  .no-print, .navbar, .sidebar { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; }
  .card { box-shadow: none; }
}
.shipper-app { max-width: 640px; margin: 0 auto; padding-bottom: 70px; }
.shipper-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #ddd; z-index: 100; }
.shipper-bottom a { flex: 1; text-align: center; padding: .45rem 0; color: #555; text-decoration: none; font-size: .75rem; }
.shipper-bottom a i { font-size: 1.3rem; display: block; }
#map { height: 520px; border-radius: 8px; }

/* ===== Menu trái: cố định độ rộng, không xuống dòng ===== */
.sidebar { flex: 0 0 260px; width: 260px; }
.side-menu .nav-link { display: block; color: #334; padding: .38rem 1rem .38rem 1.1rem; font-size: .9rem; border-left: 3px solid transparent;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-menu .nav-link i { width: 22px; display: inline-block; color: #5b6b8c; }
.side-menu .nav-link:hover { background: #f1f5fd; color: #0d6efd; }
.side-menu .nav-link.active { background: #e8f0fe; color: #0d6efd; font-weight: 600; border-left-color: #0d6efd; }
.side-menu .nav-link.active i { color: #0d6efd; }
.menu-group-title { font-size: .72rem; font-weight: 700; color: #8a94a6; padding: .75rem 1rem .3rem; letter-spacing: .05em; white-space: nowrap; }
