/* Gợi Ý Tốt Studio — giao diện quản trị, dùng đúng màu thương hiệu của website. */
:root {
	--brand: #008b4c;
	--brand-dark: #034e40;
	--brand-tint: #eaf7f0;
	--text: #111827;
	--soft: #3d4756;
	--muted: #71809a;
	--line: #e5e9f0;
	--line-soft: #eef1f6;
	--bg: #f7f9fb;
	--warn: #b45309;
	--err: #b42318;
}
* { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand-dark); }
h1 { font-size: 24px; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }

.top {
	display: flex; align-items: center; gap: 26px;
	padding: 12px 26px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; text-decoration: none; color: var(--brand-dark); }
.brand span { color: var(--muted); font-weight: 600; }
.top nav { display: flex; gap: 18px; flex: 1; }
.top nav a { text-decoration: none; font-weight: 600; color: var(--soft); padding: 4px 0; }
.top nav a.on { color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--brand); }
.me { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 26px 60px; }
.cols { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; max-width: 420px; margin: 60px auto; }
.card.narrow { margin-top: 80px; }
body.auth { display: block; }

label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: 14px; }
label.inline { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; margin-top: 8px; }
input, select, textarea {
	width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
	font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand); }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px;
	background: #fff; color: var(--text); font: inherit; font-weight: 600;
	cursor: pointer; text-decoration: none; margin-top: 14px;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ok { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }

.alert { padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 14px; border: 1px solid; }
.alert.success { background: var(--brand-tint); border-color: #cfe9dc; color: var(--brand-dark); }
.alert.info    { background: #eef4ff; border-color: #d8e4ff; color: #1e40af; }
.alert.warn    { background: #fff7ed; border-color: #fed7aa; color: var(--warn); }
.alert.error   { background: #fef2f2; border-color: #fecaca; color: var(--err); }

.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.dim { color: var(--muted); }
.nowrap { white-space: nowrap; }
.back { font-size: 14px; text-decoration: none; }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px 6px 0; }
.tbl td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.t-moi       { background: #eef4ff; color: #1e40af; }
.t-dang_chay { background: #fff7ed; color: var(--warn); }
.t-cho_duyet { background: var(--brand-tint); color: var(--brand-dark); }
.t-da_dang   { background: #dcfce7; color: #166534; }
.t-loi       { background: #fef2f2; color: var(--err); }

.meta { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; font-size: 14px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li { padding-left: 4px; }
.steps li.done strong { color: var(--brand-dark); }
.steps li.next { background: var(--brand-tint); border-radius: 8px; padding: 8px 10px 8px 6px; margin-left: -6px; }
.steps .ok { color: var(--brand-dark); font-size: 13px; margin-left: 8px; }
.steps .fail { color: var(--err); font-size: 13px; margin-left: 8px; }
.chip { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	background: #fff7ed; color: var(--warn); padding: 1px 7px; border-radius: 999px; margin-left: 7px; }

.json {
	background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
	line-height: 1.6; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
details summary { cursor: pointer; margin-top: 14px; font-weight: 600; font-size: 14px; }

/* ---- Màn Nhập giá ---- */
table.bang { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.bang th, table.bang td { padding: 8px 10px; border-bottom: 1px solid #e6e8eb; text-align: left; vertical-align: top; }
table.bang th { font-size: 13px; color: #5b6570; font-weight: 600; }
/* Số máy NGHI không phải giá: làm mờ để mắt tự bỏ qua, nhưng KHÔNG ẩn — người vẫn phải chọn được */
table.bang tr.mo td { opacity: .55; }
table.bang tr.mo td:first-child input { outline: 2px solid #f3d9d9; }
ul.ds { list-style: none; padding: 0; margin: 8px 0; }
ul.ds li { padding: 6px 0; border-bottom: 1px solid #f0f2f4; }
button.lien { background: none; border: 0; padding: 0; color: #0a6c4a; font-weight: 600; cursor: pointer; text-decoration: underline; }
.hint.error { color: #b3261e; }

/* ---- Màn Prompt ---- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #e6e8eb; margin: 18px 0 0; flex-wrap: wrap; }
.tabs .tab { padding: 10px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  color: #5b6570; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; top: 2px; }
.tabs .tab:hover { background: #f3f5f7; }
.tabs .tab.on { background: #fff; border-color: #e6e8eb; color: #0a6c4a; }
.tabs .cham { font-size: 11px; font-weight: 700; color: #b26a00; background: #fff4e0;
  padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.btn.phu { background: #fff; color: #b3261e; border: 1px solid #e7c4c1; margin-left: 8px; }
.btn.phu:hover { background: #fdf3f2; }
