/* HX ADMIN V2 • network.css — trang "Web công ty" (dùng thêm .ls-bar, .al-form/.al-sec, .td-set, .chip-t, .sl-two) */
.nw-msg { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--soft); padding: 12px 0; color: inherit; font: inherit; cursor: pointer; align-items: flex-start; }
.nw-msg:first-of-type { border-top: 0; }
.nw-msg:hover b { text-decoration: underline; }
.nw-msg .grow { min-width: 0; display: block; }
.nw-msg .grow > .sub { display: block; margin-top: 2px; }
.nw-msg .pill { vertical-align: 2px; }
.nw-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.nw-kv span { color: var(--muted); }
.nw-kv b { word-break: break-word; }
.nw-body { padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.6; max-height: 320px; overflow: auto; }
.nw-row { align-items: center; }
.nw-tb { flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 380px; }
.nw-th { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--raised); border: 1px solid var(--raisedb); flex-shrink: 0; }
.nw-th.r { border-radius: 50%; object-fit: cover; }
.nw-th.ph, .nw-pv.ph { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.nw-img { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nw-pv { width: 120px; height: 80px; border-radius: 14px; object-fit: contain; background: var(--raised); border: 1px dashed var(--raisedb); font-size: 12px; }
.nw-pv.r { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.nw-sr, .nw-tr { display: grid; gap: 8px; align-items: center; margin-bottom: 8px; min-width: 0; }
.nw-sr { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) 92px minmax(0, 1.5fr); }
.nw-tr { grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.8fr) auto; }
.nw-sr > *, .nw-tr > * { min-width: 0; }
.nw-sr .field input:disabled { opacity: .7; cursor: not-allowed; }
.nw-hd { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.td-set > .btn.sm { justify-self: start; }
.nw-save { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 12px; z-index: 5; padding: 12px 16px; max-width: 640px; }
.nw-save .btn { width: auto; }
.sheet:has(.nw-kv) > *, .sheet:has(.nw-img) > *, .sheet:has(#neTitle) > * { flex-shrink: 0; }
@media (max-width: 640px) {
  .nw-row { flex-wrap: wrap; }
  .nw-tb { max-width: none; width: 100%; justify-content: flex-start; }
  .nw-sr, .nw-tr { padding-bottom: 10px; border-bottom: 1px solid var(--soft); }
  .nw-sr { grid-template-columns: minmax(0, 1fr) 72px; }
  .nw-sr > :first-child, .nw-sr > :last-child { grid-column: 1 / -1; }
  .nw-hd { display: none; }
  .nw-tr { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .nw-tr > :nth-child(3) { grid-column: 1 / -1; order: 5; }
}
/* ---- tin tức & chân trang ---- */
.nw-note { margin-bottom: 14px; }
#nwBox > .card + .card { margin-top: 14px; }
.nw-art { align-items: center; }
.nw-cv { width: 96px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--raised); border: 1px solid var(--raisedb); display: grid; place-items: center; font-size: 20px; }
.sheet.nw-sheet { max-width: 1080px; }
.nw-ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.nw-edm, .nw-eds { display: grid; gap: 14px; min-width: 0; align-content: start; }
.nw-edm > *, .nw-eds > * { min-width: 0; }
.nw-eds { position: sticky; top: 0; padding: 16px; border-radius: 18px; background: var(--raised); border: 1px solid var(--raisedb); }
.nw-eds .btn.lg { width: 100%; }
.nw-eds .li { padding: 10px 0; }
.nw-tt textarea { min-height: 0; font-size: 19px; font-weight: 700; line-height: 1.4; }
.nw-sp textarea { min-height: 0; }
.nw-blk { border: 1px solid var(--raisedb); background: var(--raised); border-radius: 16px; padding: 10px 12px 12px; display: grid; gap: 8px; margin-bottom: 10px; }
.nw-bh { display: flex; align-items: center; gap: 6px; }
.nw-bh small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.nw-blk .field.area textarea { min-height: 0; }
.nw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nw-slot { position: relative; aspect-ratio: 16 / 7; border-radius: 14px; border: 1.5px dashed var(--raisedb); background: var(--card-solid); display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); overflow: hidden; cursor: pointer; }
.nw-two .nw-slot { aspect-ratio: 4 / 3; }
.nw-slot.has { border-style: solid; }
.nw-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nw-slot.has:after { content: "Đổi ảnh"; position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; }
.nw-slot.busy:before { content: "Đang tải ảnh…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; z-index: 2; }
.nw-add { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sheet:has(.nw-ed) > * { flex-shrink: 0; }
@media (max-width: 900px) {
  .nw-ed { grid-template-columns: minmax(0, 1fr); }
  .nw-eds { position: static; }
}
@media (max-width: 640px) {
  .nw-cv { width: 72px; height: 48px; }
  .nw-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nw-art { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; }
  .nw-art .nw-tb { grid-column: 1 / -1; }
}
