/* Phân hệ quản trị (theo prototype A01–A10): sidebar tối, thanh đầu sáng */
body.admin { background: #eef3f6; }
.adm { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #0e2235; color: #c3d2de; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 16px; color: #fff; font-weight: 800; letter-spacing: .3px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none !important; }
.adm-brand img { width: 36px; height: 36px; }
.adm-brand small { display: block; font-weight: 500; font-size: 10.5px; color: #93a9b8; letter-spacing: 0; }
.adm-nav { list-style: none; margin: 0; padding: 10px 0; }
.adm-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 18px; color: #c3d2de; font-size: 13.8px; text-decoration: none; border-left: 3px solid transparent; }
.adm-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.adm-nav a.on { background: #0b7a5c; color: #fff; border-left-color: #8ee0b5; font-weight: 600; }
.adm-nav .ic { font-size: 16px; }
.adm-nav .grp { padding: 14px 18px 4px; font-size: 11px; text-transform: uppercase; color: #6f8799; letter-spacing: .6px; }
.adm-main { min-width: 0; }
.adm-top { background: #fff; border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 22px; position: sticky; top: 0; z-index: 20; }
.adm-top h1 { font-size: 19px; }
.adm-top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.adm-top .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; }
.adm-body { padding: 18px 22px 40px; }
.adm-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-tabs a { padding: 8px 14px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.adm-tabs a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.filters .input { padding: 7px 9px; min-width: 150px; }
.st { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { padding: 5px 8px; width: auto; font-size: 12.5px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash.ok { background: #e6f5ee; color: #0d5c3d; border: 1px solid #b4dfc9; }
.flash.error { background: #fde8e7; color: #a11c16; border: 1px solid #f3bdb9; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.login-art { position: relative; color: #fff; display: flex; align-items: flex-end; padding: 40px; overflow: hidden; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 30, 40, .85), rgba(4, 30, 40, .2)); }
.login-art div { position: relative; z-index: 1; }
.login-art h1 { color: #fff; font-size: 34px; }
.login-box { display: grid; place-items: center; padding: 30px; background: #fff; }
.login-box form { width: 100%; max-width: 380px; }
.log-pre { background: #0e2235; color: #cfe3ef; padding: 12px; border-radius: 8px; font: 12px/1.5 Consolas, monospace; max-height: 340px; overflow: auto; white-space: pre-wrap; }
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; }
  .adm-nav { display: flex; flex-wrap: wrap; }
  .adm-nav .grp { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; }
}

/* ---------- phân hệ bản đồ (PL.1–PL.8) ---------- */
.stepper { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 14px; position: relative; padding: 14px 24px; }
.stepper .st { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 12.8px; color: var(--muted); position: relative; text-align: center; }
.stepper .st::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #9aa9b4; color: #fff; font-weight: 700; z-index: 1; }
.stepper .st.on { color: var(--navy); font-weight: 700; } .stepper .st.on .n { background: var(--forest); box-shadow: 0 0 0 4px rgba(0, 102, 77, .15); }
.stepper .st.done .n { background: var(--forest); } .stepper .st.done::before, .stepper .st.on::before { background: var(--forest); }
.type-card { display: flex; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.type-card input { accent-color: var(--forest); margin-top: 4px; }
.type-card.sel { border-color: var(--forest); background: #f4fbf7; }
.type-card[data-type="pdf"].sel { border-color: #e0322d; background: #fff7f6; }
.type-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
.tc-ic { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; flex: none; }
.dropzone { border: 2px dashed #b9c9d4; border-radius: 10px; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); cursor: pointer; background: #fafcfd; padding: 16px; text-align: center; }
.dropzone .ic { font-size: 40px; color: #8fb3c9; }
.dropzone.over { border-color: var(--forest); background: #eef8f3; }
.progress { position: relative; height: 22px; background: #eef3f6; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; width: 0; background: var(--forest); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy); }
.gcp-wrap { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 620px; background: #f3f6f8; cursor: crosshair; }
.gcp-wrap img { display: block; max-width: none; }
.gcp-pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #e0322d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }
.gcp-pt.sel { background: #1677d2; }
.gcp-table input { width: 92px; padding: 4px 6px; font-size: 12.5px; }
.gcp-table tr.sel td { background: #e8f2fc; }
.tool-col { display: flex; flex-direction: column; gap: 6px; position: absolute; left: 8px; top: 8px; z-index: 2; }
.page-thumbs { display: flex; gap: 6px; overflow: auto; padding-bottom: 4px; }
.page-thumbs a { border: 2px solid var(--line); border-radius: 4px; }
.page-thumbs a.on { border-color: var(--forest); }
.page-thumbs img { height: 90px; display: block; }
.tbl .inline-form { flex-wrap: nowrap; }
