@import url("base.css?v=5");
/* Khung quản trị */
.side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 240px; display: flex; flex-direction: column; background: var(--pine-900); color: #ece6d6; transform: translateX(-100%); transition: transform .2s; }
.side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; text-decoration: none; } .side-brand:hover { color: #fff; text-decoration: none; }
.side-brand span { display: flex; flex-direction: column; line-height: 1.2; } .side-brand b { font-size: 15px; } .side-brand small { font-size: 11px; color: #e3a26f; }
.side nav { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.side h6 { margin: 16px 0 4px; padding: 0 12px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(236,230,214,.5); }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #ece6d6; font-weight: 500; text-decoration: none; } .side nav a:hover { background: var(--pine-800); color: #fff; }
.side nav a.on { background: #f3efe7; color: var(--pine-900); }
.side-foot { display: grid; gap: 4px; padding: 12px; border-top: 1px solid var(--pine-800); font-size: 12px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: #ece6d6; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; text-decoration: none; } .side-foot a:hover, .side-foot button:hover { color: #fff; }
.ver { padding: 4px 12px; font-size: 11px; color: rgba(236,230,214,.6); } .ver b { color: #ece6d6; }
.env { padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700; background: var(--pine-600); color: #fff; } .env-dev, .env-local { background: #fbbf24; color: #451a03; }
.side-backdrop { display: none; } .side.open + .side-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); }
.main { min-height: 100vh; } .bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.bar h1 { flex: 1; margin: 0; font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-toggle { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--ink); } .back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.bar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } .content { padding: 16px; max-width: 1200px; }
@media (min-width: 1024px) { .side { transform: none; } .main { margin-left: 240px; } .side-toggle { display: none; } .content { padding: 24px; } }
@media (max-width: 640px) { .bar-actions .btn { padding: 6px 10px; } .back-link span { display: none; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; } .toolbar select, .toolbar input:not([type=checkbox]) { width: auto; min-width: 9rem; }
.stats, .kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.stat { display: grid; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; } .stat:hover { border-color: var(--pine-600); text-decoration: none; }
.stat i { color: var(--pine-700); } .stat span { color: var(--muted); font-size: 12px; } .stat b { font-size: 1.35rem; } .stat small { color: var(--muted); font-size: 12px; }
.kpi { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; } .kpi span { color: var(--muted); font-size: 12px; } .kpi b { font-size: 1.3rem; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; } .cols > .card { margin-bottom: 0; }
.rooms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.room { display: grid; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #93c5fd; border-radius: 12px; color: var(--ink); text-decoration: none; } .room:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.room.thue { border-left-color: #22c55e; } .room.sua { border-left-color: #f59e0b; } .room-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; } .room-tenant { min-height: 1.5em; } .room-price { font-weight: 700; color: var(--pine-700); }
.meters input.num { width: 7rem; } .barcell { width: 30%; min-width: 120px; } .bar.in, .bar.out { display: block; height: 7px; border-radius: 4px; margin: 2px 0; } .bar.in { background: var(--pine-600); } .bar.out { background: var(--gold); }
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; } .auth-box { width: min(380px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.auth-box .side-brand { color: var(--pine-900); padding: 0 0 12px; } .auth-box .side-brand small { color: var(--muted); } .auth-box h1 { font-size: 1.15rem; }
body.print-page .content { max-width: 800px; }
/* ===== v3: nâng cấp giao diện quản trị ===== */
.main { display: flex; flex-direction: column; } .content { flex: 1; width: 100%; margin: 0 auto; max-width: 1240px; }
.bar { background: rgba(255,253,249,.88); backdrop-filter: blur(10px); } .bar h1 { font-weight: 700; letter-spacing: -.01em; }
.side { background: linear-gradient(180deg, #2f3424, #23271a); } .side nav a { transition: background .15s; } .side nav a.on { box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.card { box-shadow: 0 1px 2px rgba(60,50,30,.04), 0 6px 20px rgba(60,50,30,.04); } .card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.table tbody tr:hover td { background: #faf7f0; } .table th { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.stat { border-radius: 18px; position: relative; overflow: hidden; } .stat i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pine-50); margin-bottom: 6px; }
.stat b { font-size: 1.45rem; letter-spacing: -.01em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fffdf9; border: 1px solid var(--line); border-radius: 999px; }
.seg a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: none; } .seg a.on { background: var(--pine-700); color: #fff; } .seg a:hover { text-decoration: none; }
/* Danh sách người thuê dạng thẻ */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fffdf9; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.person:hover { border-color: var(--pine-600); text-decoration: none; color: var(--ink); } .person > div { display: grid; gap: 2px; min-width: 0; } .person small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .person span { display: flex; gap: 4px; flex-wrap: wrap; }
/* Hồ sơ */
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #fffdf9, #f5efe2); } .profile > div { flex: 1; min-width: 220px; } .profile h2 { margin: 0 0 2px; font-size: 1.3rem; } .profile p { margin: 4px 0; }
.id-uploads { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.id-slot { display: grid; gap: 6px; cursor: pointer; } .id-slot > img, .id-slot > span { width: 100%; aspect-ratio: 85.6/54; object-fit: cover; border-radius: 12px; border: 1px dashed #cfc8b6; background: #faf7f0; }
.id-slot.photo > img, .id-slot.photo > span { aspect-ratio: 3/4; max-width: 150px; }
.id-slot > span { display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; } .id-slot input[type=file] { font-size: 12px; } .id-slot small { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.check.inline { display: inline-flex; gap: 4px; }
/* Thành viên trong hợp đồng */
.members { display: grid; gap: 10px; }
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; position: relative; }
.m-info { display: grid; gap: 1px; min-width: 0; } .m-info small { color: var(--muted); font-size: 12px; }
.m-ids { display: flex; gap: 6px; } .m-ids img, .id-missing { width: 74px; aspect-ratio: 85.6/54; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.id-missing { display: grid; place-items: center; font-size: 10px; color: var(--muted); border-style: dashed; background: #faf7f0; }
.m-del { position: absolute; top: 8px; right: 8px; } .member:has(.m-del) .m-ids { margin-right: 52px; }
@media (max-width: 640px) { .member { grid-template-columns: auto 1fr; } .m-ids { grid-column: 1 / -1; } .member:has(.m-del) .m-ids { margin-right: 0; } }
.add-member { margin-top: 12px; } .add-member summary { list-style: none; display: inline-flex; } .add-member summary::-webkit-details-marker { display: none; }
.add-member[open] summary { margin-bottom: 10px; } .soft-inner { background: #faf7f0; box-shadow: none; margin: 10px 0 0; } .soft-inner h3 { font-size: .95rem; margin: 0 0 10px; }
/* Khách qua đêm */
.guest { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid #f1ede3; } .guest:last-child { border: 0; }
.g-main { display: grid; gap: 2px; min-width: 240px; flex: 1; } .g-main small { font-size: 12.5px; }
.guest .inline-form { margin: 0; align-items: center; } .guest .inline-form input { width: 200px; }
/* Khung xem trước A4 */
.a4-stage { background: #e9e4d8; padding: 24px 12px; border-radius: 18px; overflow-x: auto; }
body.print-page .content { max-width: none; }
.credit { margin-top: 24px; }
body.auth { grid-template-rows: 1fr auto; padding: 0; } body.auth .auth-box { margin: 16px; align-self: center; justify-self: center; } body.auth .credit { width: 100%; margin: 0; }
.g-main { display: block; } .g-main small { display: block; margin-top: 2px; } .g-main .badge { margin-left: 4px; }

/* ===== Trang Tổng quan ===== */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 18px; border-radius: 22px; color: #f3efe7;
  background: radial-gradient(120% 140% at 0% 0%, #4d553a 0%, #2a2f20 55%, #23271a 100%); box-shadow: 0 10px 30px rgba(42,47,32,.18); }
.hello small { color: #e3a26f; font-weight: 600; letter-spacing: .04em; } .hello h2 { margin: 2px 0 4px; font-size: 1.5rem; } .hello p { margin: 0; color: #cfc8b6; font-size: 13.5px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 8px; }
.quick a { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #f3efe7; font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }
.quick a:hover { background: #f3efe7; color: #2a2f20; text-decoration: none; } .quick .ico { color: #e3a26f; }
@media (max-width: 640px) { .quick { grid-template-columns: repeat(2, 1fr); width: 100%; } }
.kpis4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 18px; }
.kpi2 { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 20px; background: #fffdf9; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(60,50,30,.04); transition: transform .15s, box-shadow .15s; }
.kpi2:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(60,50,30,.08); text-decoration: none; color: var(--ink); }
.k-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pine-50); color: var(--pine-700); margin-bottom: 6px; }
.kpi2 small { color: var(--muted); font-size: 12.5px; } .kpi2 b { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.15; } .kpi2 b u { text-decoration: none; font-size: 1rem; color: var(--muted); font-weight: 600; }
.kpi2 em { font-style: normal; font-size: 12.5px; color: var(--muted); } .kpi2 em.up { color: var(--ok); } .kpi2 em.down { color: var(--bad); }
.kpi2.alert { border-color: #f0c9bd; background: linear-gradient(180deg, #fffdf9, #fdf1ec); } .kpi2.alert .k-ic { background: #f9ddd3; color: var(--bad); } .kpi2.alert em { color: var(--bad); }
.meter { height: 7px; border-radius: 99px; background: #eee8dc; overflow: hidden; margin: 6px 0 2px; } .meter i { display: block; height: 100%; border-radius: 99px; background: var(--pine-600); } .meter.gold i { background: #c8a24a; }
.dash-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 18px; } .dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-grid, .dash-grid.three { grid-template-columns: 1fr; } }
.panel { background: #fffdf9; border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 6px 20px rgba(60,50,30,.04); min-width: 0; margin-bottom: 18px; } .dash-grid > .panel { margin-bottom: 0; }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; } .panel h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.panel > header a { font-size: 12.5px; color: var(--muted); white-space: nowrap; } .panel > header a:hover { color: var(--pine-700); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #f6e6d3; color: #95561c; font-size: 12px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: 12px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 12px; height: 12px; border-radius: 4px; }
.s-thue { background: var(--pine-600); } .s-no { background: #c0553d; } .s-trong { background: #e7e1d3; } .s-sua { background: #e1b45a; } .s-chi { background: #c8a24a; }
.rmap-row { margin-bottom: 12px; } .rmap-row > small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.rmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.rmap a { display: grid; place-items: center; height: 34px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: #fff; text-decoration: none; transition: transform .12s; }
.rmap a:hover { transform: scale(1.08); text-decoration: none; color: #fff; } .rmap a.s-trong { color: #7a766b; border: 1px dashed #cfc8b6; } .rmap a.s-sua { color: #5a3e0a; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 230px; padding-top: 6px; }
.bar-col { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 4px; } .bar-col b { font-size: 11.5px; } .bar-col small { color: var(--muted); font-size: 11px; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; border-bottom: 1px solid var(--line); }
.bar-pair i { width: 38%; max-width: 22px; border-radius: 6px 6px 0 0; } .bar-pair .inc { background: linear-gradient(180deg, #6d7a50, var(--pine-700)); } .bar-pair .exp { background: linear-gradient(180deg, #ddb963, #c8a24a); }
ul.rows { list-style: none; margin: 0; padding: 0; } ul.rows li + li { border-top: 1px solid #f1ede3; }
ul.rows a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; } ul.rows a:hover { background: #faf7f0; text-decoration: none; }
.tag { display: inline-grid; place-items: center; min-width: 52px; padding: 5px 8px; border-radius: 9px; background: var(--pine-50); color: var(--pine-800); font-weight: 700; font-size: 12.5px; }
.grow { flex: 1; min-width: 0; display: grid; } .grow small { color: var(--muted); font-size: 12px; } ul.rows b { font-size: 13.5px; white-space: nowrap; }
.tasks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.task:hover { border-color: var(--pine-600); text-decoration: none; color: var(--ink); } .task b { font-size: 1.2rem; color: var(--muted); } .task.has b { color: #b5672f; } .task.has .k-ic { background: #f6e6d3; color: #b5672f; } .task .k-ic { margin: 0; }
/* ===== Bộ lọc liên kết ===== */
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
.prop-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-pills a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fffdf9; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.prop-pills a:hover { border-color: var(--pine-600); text-decoration: none; } .prop-pills a.on { background: var(--pine-800); border-color: var(--pine-800); color: #f3efe7; } .prop-pills a.on .ico { color: #e3a26f; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg a i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: #efe9dc; color: var(--muted); font-size: 11px; font-weight: 700; }
.seg a.on i { background: rgba(255,255,255,.2); color: #fff; }
.search { flex: 1; min-width: 200px; max-width: 360px; margin-left: auto; } .search input { border-radius: 999px !important; padding-left: 16px !important; background: #fffdf9 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border-radius: 999px; background: #f6e6d3; color: #7a4515; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.chip b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(122,69,21,.15); } .chip:hover { background: #f0d8bd; text-decoration: none; color: #7a4515; }
.chip-reset { font-size: 12.5px; color: var(--muted); }
.month-bar { margin-bottom: 8px; } .month-bar input[type=month] { width: auto; } .sumline { margin: -4px 0 14px; color: var(--muted); font-size: 13px; }
.tag.sm { min-width: 0; padding: 3px 8px; font-size: 12px; text-decoration: none; } a.tag:hover { background: var(--pine-100); text-decoration: none; }
.block { display: block; }
/* Sơ đồ phòng theo nhà */
.room-group { margin-bottom: 22px; } .room-group h3 { font-size: 1rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; } .room-group h3 small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.rooms { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.room { border-radius: 16px; border-left-width: 5px; padding: 12px 14px; gap: 6px; } .room.owe { border-left-color: #c0553d; background: linear-gradient(180deg, #fff, #fdf3ef); }
.room-tenant { font-weight: 600; } .room-flags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.flag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #f1ede3; color: var(--muted); }
.flag.bad { background: #f9ddd3; color: var(--bad); } .flag.warn { background: #f6e6d3; color: #95561c; } .flag.info { background: #e8e8dc; color: var(--pine-700); } .flag.key { color: #c8743a; }
/* Trang tổng hợp phòng */
.room-hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; padding: 22px 24px; margin-bottom: 14px; border-radius: 22px; color: #f3efe7; background: radial-gradient(120% 140% at 0% 0%, #4d553a 0%, #2a2f20 60%); }
.room-hero.trong { background: radial-gradient(120% 140% at 0% 0%, #6b6450 0%, #3c382b 60%); } .room-hero.sua { background: radial-gradient(120% 140% at 0% 0%, #8a6a2c 0%, #4a3a17 60%); }
.room-hero small { color: #e3c27a; } .room-hero h2 { margin: 4px 0; font-size: 1.6rem; display: flex; gap: 10px; align-items: center; } .room-hero p { margin: 0; color: #d8d1c0; }
.rh-nums { display: flex; gap: 10px; flex-wrap: wrap; } .rh-nums div { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; } .rh-nums small { color: #cfc8b6; font-size: 11.5px; } .rh-nums b { font-size: 1.15rem; } .rh-nums b.bad { color: #ffb4a0; }
.hub-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.hub-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fffdf9; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.hub-link:hover { border-color: var(--pine-600); text-decoration: none; color: var(--ink); } .hub-link .ico { color: var(--pine-600); } .hub-link span { flex: 1; } .hub-link b { color: var(--muted); }
ul.rows a .avatar { flex-shrink: 0; }
/* Bảng danh sách */
.card.flush { padding: 6px 8px; } .table.list td { vertical-align: middle; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; } .who span { display: grid; } .who small { color: var(--muted); font-size: 12px; } .who:hover b { color: var(--pine-700); }
/* Sự cố */
.dash-grid.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } @media (max-width: 1100px) { .dash-grid.wide-left { grid-template-columns: 1fr; } }
.issue2 { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid #c0553d; margin-bottom: 10px; background: #fff; }
.issue2.s-dang-xu-ly { border-left-color: #e1b45a; } .issue2.s-xong { border-left-color: var(--pine-600); opacity: .85; }
.i-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .issue2 p { margin: 4px 0 0; } .issue2 .inline-form { margin: 0; }
.person a b { color: var(--ink); } .person a:hover b { color: var(--pine-700); }
/* Form bàn giao: mỗi hạng mục một thẻ, nút chụp ảnh lớn dễ bấm trên điện thoại */
.ho-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 16px; } .ho-list .card { margin: 0; }
.ho-item { display: grid; gap: 8px; } .ho-head { display: flex; gap: 8px; align-items: center; }
.ho-no { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pine-50); color: var(--pine-700); font-weight: 700; font-size: 12px; }
.ho-name { font-weight: 600; } .ho-head select { width: 150px !important; flex-shrink: 0; }
.shoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1.5px dashed #cfc8b6; border-radius: 14px; background: #faf7f0; color: var(--pine-700); font-weight: 600; cursor: pointer; }
.shoot:hover { border-color: var(--pine-600); background: #f5f0e4; } .shoot input[type=file] { font-size: 12px; font-weight: 400; flex: 1; min-width: 180px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.ho-tools { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .ho-tools .card { margin-bottom: 14px; } @media (max-width: 900px) { .ho-tools { grid-template-columns: 1fr; } }
/* Ảnh phòng */
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gallery-admin figure { margin: 0; display: grid; gap: 4px; } .gallery-admin img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.gallery-admin figure.cover img { outline: 3px solid #c8a24a; outline-offset: -3px; }
.gallery-admin figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--pine-700); cursor: pointer; } .link-btn.bad { color: var(--bad); } .link-btn:hover { text-decoration: underline; }
.room-hero { background-size: cover; background-position: center; }