:root { --pink: #e64980; --pink-soft: #fff0f6; --ink: #1f2933; --muted: #6b7280; --line: #e5e7eb; --ok: #137333; --err: #c5221f; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #f7f7fa; font-size: 14px; }
a { color: var(--pink); text-decoration: none; }
header.top { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 6px 24px; background: #fff; border-bottom: 1px solid var(--line); font-size: 16px; }
header.top .brand { display: flex; align-items: center; flex: none; margin-right: auto; }
header.top .brand img { height: 40px; width: auto; display: block; } /* logo.png cao 80px → nét trên retina, giữ tỉ lệ */
.login-logo { text-align: center; margin-bottom: 10px; } .login-logo img { height: 72px; width: auto; }
header.top > a:not(.brand) { padding: 8px 14px; border-radius: 8px; } header.top > a:not(.brand):hover { background: var(--pink-soft); }
header.top .who { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
header.top .role-chip { font-size: 12px; font-weight: 700; color: var(--pink); background: var(--pink-soft); padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
header.top .btn-link { font-size: 15px; }
main { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.danger { color: var(--err); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--pink); cursor: pointer; padding: 0; font: inherit; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; width: 100%; background: #fff; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #eef2f7; }
.badge.draft { background: #f1f1f1; } .badge.new { background: #e7f0ff; } .badge.urgent { background: #ffe3e3; color: #b42318; }
.badge.doing { background: #fff4d6; } .badge.in_review { background: #efe7ff; } .badge.need_fix { background: #ffe8cc; } .badge.done { background: #e3f6e8; }
.flash { padding: 9px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok { background: #e3f6e8; color: var(--ok); } .flash.error { background: #fdecea; color: var(--err); }
.muted { color: var(--muted); } .err { color: var(--err); } .ok { color: var(--ok); }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 12px; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 760px; padding: 20px 24px; }
.modal h2 { margin: 0 0 6px; }
.dropzone { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.over { border-color: var(--pink); background: var(--pink-soft); }
.file-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.file-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { width: 120px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--pink); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 130px; font-size: 12px; } .thumb img { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fafafa; }
.thumb .ph { width: 130px; height: 130px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fafafa; font-weight: 700; color: var(--muted); }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.combo { position: relative; }
.combo input { padding-right: 52px; }
.combo-x { position: absolute; right: 26px; top: 6px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.combo-caret { position: absolute; right: 9px; top: 8px; color: var(--muted); cursor: pointer; user-select: none; }
.pt-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 7px; max-height: 260px; overflow: auto; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.pt-list div { padding: 7px 10px; cursor: pointer; }
.pt-list div.active { background: var(--pink-soft); } .pt-list div.sel { font-weight: 600; color: var(--pink); }
.desc { white-space: pre-wrap; word-break: break-word; }
[x-cloak] { display: none !important; }
