/* Trang 3/5/7/10/15 ngày – giao diện mới (11/2026). Dùng chung biến/khối nm-* trong ngay-mai.css */
.nn-lead { color: var(--nm-muted); margin: 6px 0 0; font-size: 14px; max-width: 680px; }
.nn-date { white-space: nowrap; }
.nn-stack > * + * { margin-top: 18px; }
.nn-popbar { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; margin: 12px 0 6px; overflow: hidden; }
.nn-popbar span { display: block; height: 100%; background: var(--nm-rain); }
.nm-chart .daylabel { fill: #fff; font-size: 12px; font-weight: 600; }

/* ===== 3 ngày: ba cột so sánh ===== */
.nn3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nn3-col { background: var(--nm-panel-2); border: 1px solid var(--nm-line); border-radius: 12px; padding: 16px; text-align: center; }
.nn3-col.first { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.nn3-dn { font-size: 18px; font-weight: 700; margin: 0; color: #fff; }
.nn3-sub { font-size: 13px; }
.nn3-ico { width: 84px; height: 84px; display: block; margin: 4px auto 0; }
.nn3-t { font-size: 26px; }
.nn3-t b { font-weight: 600; }
.nn3-rows { margin-top: 10px; text-align: left; }
.nn3-rows div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--nm-line); }
.nn3-foot { font-size: 12px; margin-top: 10px; }
.nn3-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nn3-tip { background: var(--nm-panel-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }

/* ===== 5 ngày: bảng nhiệt ===== */
.nn5-hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nn5-hl { background: #fff; color: #1d2b44; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.nn5-hl span:first-child { color: #6b7a90; font-size: 13px; }
.nn5-hl b { font-size: 18px; color: #275EAF; }
.nn5-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--nm-muted); margin-bottom: 6px; }
.nn5-legend .grad { width: 150px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(70,140,220), rgb(245,110,60)); }
.nn5-wrap { overflow-x: auto; }
.nn5-hm { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 620px; }
.nn5-hm th { font-weight: 500; font-size: 12px; color: var(--nm-muted); text-align: center; }
.nn5-hm td { border-radius: 8px; text-align: center; padding: 4px 2px; color: #fff; font-size: 12px; }
.nn5-hm td img { width: 30px; height: 30px; display: block; margin: 0 auto; }
.nn5-hm td b { display: block; font-size: 16px; }
.nn5-hm td i { font-style: normal; font-size: 10.5px; display: block; }
.nn5-hm td.empty { background: rgba(255,255,255,.05); color: var(--nm-muted); }
.nn5-hm td.sum { background: var(--nm-panel-2); font-size: 13px; }
.nn5-hm .rowh { text-align: left; white-space: nowrap; padding-right: 6px; }
.nn5-hm .rowh b { display: block; color: #fff; font-size: 13px; }
.nn5-rbar { display: grid; grid-template-columns: 130px 1fr 64px; gap: 10px; align-items: center; padding: 6px 0; }
.nn5-rbar .track { height: 10px; background: rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
.nn5-rbar .track span { display: block; height: 100%; background: var(--nm-rain); }

/* ===== 7 ngày: lịch tuần, thẻ trắng ===== */
.nn7-card { background: #fff; color: #22324d; border-radius: 12px; padding: 18px 20px; }
.nn7-card h2 { color: #1d2b44; font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.nn7-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.nn7-wk { border: 1px solid #e3e9f2; background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #22324d; cursor: pointer; font: inherit; }
.nn7-wk span { font-size: 12px; color: #6b7a90; }
.nn7-wk .t { font-size: 13px; color: #22324d; }
.nn7-wk .pop { color: #1b8fd6; }
.nn7-wk.sel { background: #275EAF; color: #fff; border-color: #275EAF; }
.nn7-wk.sel span, .nn7-wk.sel .t { color: #fff; }
.nn7-wk.sel .pop { color: #bfeaff; }
.nn7-wk:focus { outline: 2px solid #8fdcff; outline-offset: 2px; }
.nn7-detail { margin-top: 16px; border-top: 1px solid #e3e9f2; padding-top: 14px; }
.nn7-dgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nn7-dgrid div { background: #f3f6fb; border-radius: 10px; padding: 10px; }
.nn7-dgrid span { display: block; font-size: 12px; color: #6b7a90; }
.nn7-dgrid b { font-size: 16px; }
.nn7-rg { display: grid; grid-template-columns: 110px 36px 44px 34px 1fr 34px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #edf1f7; }
.nn7-rg:first-of-type { border-top: 0; }
.nn7-rg img { width: 34px; height: 34px; }
.nn7-rg .pop { color: #1b8fd6; }
.nn7-rg .tr { position: relative; height: 8px; background: #edf1f7; border-radius: 4px; }
.nn7-rg .tr span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #5aa8f0, #f6a04d); }
.nn7-rg .mn { color: #6b7a90; text-align: right; }
.nn7-rg .mx { font-weight: 700; }
.nn-sidebottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.nn-sidebottom > * { margin: 0 !important; }

/* ===== 10 ngày: biểu đồ xu hướng ===== */
.nn10-dark { background: #173f7a; border-color: rgba(255,255,255,.18); }
.nn10-lg { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--nm-muted); margin-bottom: 4px; }
.nn10-lg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.nm-chart .tmax { fill: #ffd36b; font-size: 12px; text-anchor: middle; }
.nm-chart .tmin { fill: #bfe3ff; font-size: 12px; text-anchor: middle; }
.nm-chart .poplabel { fill: #bfeaff; font-size: 10.5px; text-anchor: middle; }
.nn10-trend { list-style: none; display: grid; gap: 6px; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--nm-line); font-size: 13.5px; }
.nn10-trend b { color: #ffd36b; font-weight: 600; }
.nn10-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #fff; white-space: nowrap; }
.nn10-table th { font-weight: 500; color: var(--nm-muted); text-align: left; padding: 8px 6px; }
.nn10-table td { padding: 6px; border-top: 1px solid var(--nm-line); }
.nn10-table img { width: 30px; height: 30px; vertical-align: middle; }

/* ===== 15 ngày: lịch nửa tháng ===== */
.nn15-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nn15-stats > div { background: linear-gradient(160deg, #2f7bd6, #1d4f9a); border: 1px solid var(--nm-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.nn15-stats span { color: var(--nm-muted); font-size: 13px; }
.nn15-stats b { font-size: 24px; font-weight: 600; }
.nn15-lg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--nm-muted); margin-bottom: 10px; }
.nn15-lg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.nn15-lg .sep { margin-left: auto; }
.nn15-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.nn15-cal .h { text-align: center; font-size: 12px; color: var(--nm-muted); }
.nn15-cal .c { border-radius: 10px; padding: 6px; min-height: 104px; display: flex; flex-direction: column; align-items: center; border: 2px solid rgba(255,255,255,.65); }
.nn15-cal .c.tb { border-color: rgba(255,255,255,.35); }
.nn15-cal .c.thap { border-color: rgba(255,255,255,.2); border-style: dashed; }
.nn15-cal .cd { display: flex; justify-content: space-between; width: 100%; font-size: 12px; }
.nn15-cal .cd span { color: var(--nm-muted); }
.nn15-cal img { width: 40px; height: 40px; }
.nn15-cal .ct { font-size: 13px; }
.nn15-lg .l0, .nn15-cal .c.l0 { background: rgba(255,255,255,.07); }
.nn15-lg .l1, .nn15-cal .c.l1 { background: rgba(143,220,255,.18); }
.nn15-lg .l2, .nn15-cal .c.l2 { background: rgba(143,220,255,.30); }
.nn15-lg .l3, .nn15-cal .c.l3 { background: rgba(143,220,255,.45); }
.nn15-pers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nn15-per { background: var(--nm-panel-2); border: 1px solid var(--nm-line); border-radius: 12px; padding: 14px; color: #fff; }
.nn15-per h3 { font-size: 16px; font-weight: 600; margin: 0; color: #fff; }
.nn15-per .pv { font-size: 22px; margin: 8px 0; }
.nn15-per p { font-size: 13px; color: var(--nm-muted); margin: 0; }
.nn15-per .cf { margin-top: 8px; font-size: 12px; }
.nn15-per .cf b { color: #ffd36b; }

@media (max-width: 991.98px) {
    .nn-sidebottom { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .nn-date { white-space: normal; }
    .nn3-cols { grid-template-columns: 1fr; }
    .nn3-col { display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: center; gap: 2px 10px; }
    .nn3-col .nn3-ico { grid-row: span 3; margin: 0; width: 64px; height: 64px; }
    .nn3-col .nn3-rows, .nn3-col .nn-popbar, .nn3-col .nn3-pop, .nn3-col .nn3-foot { grid-column: 1 / -1; }
    .nn3-tips, .nn5-hls, .nn15-pers { grid-template-columns: 1fr; }
    .nn5-rbar { grid-template-columns: 100px 1fr 56px; font-size: 12px; }
    .nn7-strip { grid-template-columns: repeat(7, 76px); overflow-x: auto; padding-bottom: 4px; }
    .nn7-dgrid { grid-template-columns: repeat(2, 1fr); }
    .nn7-rg { grid-template-columns: 70px 30px 36px 28px 1fr 30px; font-size: 12px; gap: 6px; }
    .nn7-rg img { width: 30px; height: 30px; }
    .nn15-stats { grid-template-columns: 1fr 1fr; }
    .nn15-cal { gap: 4px; }
    .nn15-cal .c { min-height: 88px; padding: 3px; }
    .nn15-cal .cd { justify-content: center; }
    .nn15-cal .cd span { display: none; }
    .nn15-cal img { width: 28px; height: 28px; }
    .nn15-cal .ct { font-size: 11px; }
    .nn15-cal .nm-pop { font-size: 10px; }
    .nn15-lg .sep { margin-left: 0; }
}
