/* =========================================================
   北京安邦模拟科技有限公司 后台样式
   ========================================================= */

:root {
    --navy: #071a2f;
    --navy-2: #0c2745;
    --navy-3: #123354;
    --accent: #5aa9e6;
    --accent-2: #1a5c8a;
    --ink: #152033;
    --ink-2: #455468;
    --ink-3: #64748b;
    --line: #e4e9f1;
    --bg: #f3f6fa;
    --white: #ffffff;
    --danger: #c0392b;
    --success: #1f7a4d;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

code {
    font-family: var(--mono);
}

/* ---------------- 外框 ---------------- */

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 236px;
    background: var(--navy);
    color: #a9b9cc;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-mark {
    display: inline-flex;
    color: var(--accent);
}

.admin-brand-text strong {
    display: block;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.16em;
    color: #ffffff;
}

.admin-brand-text em {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    font-style: normal;
    color: #7e93ab;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px;
    overflow-y: auto;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 3px;
    font-size: 13.5px;
    color: #a9b9cc;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-nav-link svg {
    flex: none;
    opacity: 0.78;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.admin-nav-link.is-active {
    background: rgba(90, 169, 230, 0.18);
    color: #ffffff;
    box-shadow: inset 2px 0 0 var(--accent);
}

.admin-nav-link.is-active svg {
    opacity: 1;
    color: var(--accent);
}

.admin-side-foot {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1c3048;
    color: #cfe6f7;
    font-size: 13px;
}

.admin-user strong {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #e6edf7;
}

.admin-user em {
    display: block;
    font-size: 10.5px;
    font-style: normal;
    color: #7e93ab;
}

.admin-logout {
    display: block;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    text-align: center;
    font-size: 12px;
    color: #c9d5e4;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.admin-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 236px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 62px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.admin-page-title {
    font-size: 16px;
    font-weight: 600;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    font-size: 12.5px;
    color: var(--ink-3);
}

.admin-top-actions a {
    color: var(--ink-2);
}

.admin-top-actions a:hover {
    color: var(--accent-2);
}

.admin-top-user {
    padding-left: 16px;
    border-left: 1px solid var(--line);
    color: var(--ink-2);
}

.admin-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 1px solid #dbe2ec;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}

.admin-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
}

.admin-content {
    display: grid;
    gap: 20px;
    padding: 26px 28px 52px;
}

/* ---------------- 通用 ---------------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-head h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.page-head p {
    font-size: 12.5px;
    color: var(--ink-3);
}

.page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    font-size: 14.5px;
    font-weight: 600;
}

.card-head-link {
    font-size: 12.5px;
    color: var(--ink-3);
}

.card-head-link:hover {
    color: var(--accent-2);
}

.card-head-hint {
    font-size: 11.5px;
    color: var(--ink-3);
}

.card-body {
    padding: 20px;
}

.hint {
    margin-top: 12px;
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--ink-3);
    word-break: break-all;
}

.hint code,
.form-row small code {
    padding: 1px 4px;
    background: #f2f5f9;
    font-size: 11px;
    color: var(--accent-2);
}

.empty {
    padding: 28px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---------------- 按钮 ---------------- */

.btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border: 1px solid #d9e0ea;
    border-radius: 3px;
    background: #ffffff;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-2);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-admin:hover {
    border-color: #b9c6d6;
    color: var(--ink);
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--navy-3);
    border-color: var(--navy-3);
    color: #ffffff;
}

.btn-danger {
    color: var(--danger);
    border-color: #f0c9c5;
}

.btn-danger:hover {
    background: #fdf1ef;
    border-color: #e08a82;
    color: #a93226;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11.5px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

/* ---------------- 统计 ---------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-box {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box-label {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.stat-box strong {
    display: block;
    margin: 8px 0 2px;
    font-family: var(--mono);
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
}

.stat-box em {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--ink-3);
}

.stat-box-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--ink-2);
}

.stat-box-link:hover {
    color: var(--accent-2);
}

.admin-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 20px;
    align-items: start;
}

/* ---------------- 表格 ---------------- */

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    color: var(--ink-3);
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: var(--ink-2);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.table-hover tbody tr:hover {
    background: #fafcfe;
}

.table-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

a.table-title:hover {
    color: var(--accent-2);
}

.table-sub {
    display: block;
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-3);
    word-break: break-all;
}

.cell-nowrap {
    white-space: nowrap;
}

.cell-mono {
    font-family: var(--mono);
    font-size: 12px;
}

.cell-clip {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    line-height: 1.7;
}

.badge-on {
    background: #eaf7f0;
    color: var(--success);
}

.badge-off {
    background: #f2f4f7;
    color: #7a889c;
}

.badge-pin {
    margin-left: 6px;
    background: #e8f2fb;
    color: var(--accent-2);
}

/* ---------------- 表单 ---------------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-row {
    display: block;
    margin-bottom: 16px;
}

.form-row-full {
    grid-column: 1 / -1;
}

.form-row > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.form-row > span i {
    font-style: normal;
    color: var(--danger);
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="datetime-local"],
.form-row select,
.form-row textarea,
.dl-row input,
.msg-reply-form textarea,
.inline-details-form input {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #d9e0ea;
    border-radius: 3px;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-row textarea,
.msg-reply-form textarea {
    resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.dl-row input:focus,
.msg-reply-form textarea:focus,
.inline-details-form input:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(90, 169, 230, 0.18);
}

.form-row input:disabled {
    background: #f6f8fb;
    color: var(--ink-3);
}

.form-row small {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--ink-3);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
}

.check-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--navy-3);
}

.edit-form {
    display: grid;
    gap: 20px;
}

.edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.edit-main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.edit-side {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 20px;
}

/* 下载资料行 */

.dl-rows {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.dl-row {
    display: grid;
    grid-template-columns: 1.1fr 2fr 1fr 32px;
    gap: 8px;
    align-items: center;
}

.dl-row input {
    font-size: 12.5px;
}

.dl-remove {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1;
    color: var(--ink-3);
    cursor: pointer;
}

.dl-remove:hover {
    border-color: #e3b4ae;
    color: var(--danger);
}

/* 提示 */

.admin-alert {
    padding: 12px 16px;
    border: 1px solid #f2c7c3;
    border-radius: 4px;
    background: #fff3f3;
    font-size: 12.5px;
    line-height: 1.8;
    color: #a93226;
}

.admin-alert p + p {
    margin-top: 4px;
}

.admin-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 4px;
    font-size: 12.5px;
}

.admin-flash.is-success {
    border: 1px solid #bfe3cf;
    background: #eaf7f0;
    color: var(--success);
}

.admin-flash.is-error {
    border: 1px solid #f2c7c3;
    background: #fff3f3;
    color: #a93226;
}

.admin-flash-close {
    border: 0;
    background: none;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

/* 危险操作 */

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid #f0c9c5;
    border-radius: 5px;
    background: #ffffff;
}

.danger-zone strong {
    display: block;
    font-size: 13.5px;
    color: #a93226;
}

.danger-zone p {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--ink-3);
}

/* 简单列表 */

.simple-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12.5px;
}

.simple-list li:last-child {
    border-bottom: 0;
}

.simple-list a {
    color: var(--ink-2);
    line-height: 1.6;
}

.simple-list a:hover {
    color: var(--accent-2);
}

.simple-list li > span:last-child {
    flex: none;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-3);
    white-space: nowrap;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------------- 留言 ---------------- */

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}

.filter-item {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
}

.filter-item span {
    display: block;
    margin-bottom: 5px;
}

.filter-item select {
    min-width: 190px;
    padding: 7px 10px;
    border: 1px solid #d9e0ea;
    border-radius: 3px;
    background: #ffffff;
    font-size: 12.5px;
    color: var(--ink);
}

.msg-list {
    display: grid;
    gap: 14px;
}

.msg-card {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.msg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.msg-person strong {
    margin-right: 10px;
    font-size: 14px;
}

.msg-contact {
    font-size: 12px;
    color: var(--ink-3);
}

.msg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--ink-3);
}

.msg-text {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

.msg-reply {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: #f6f9fc;
}

.msg-reply > span {
    font-size: 11px;
    color: var(--accent-2);
}

.msg-reply p {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.msg-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.msg-detail {
    flex: 1;
    min-width: 260px;
}

.msg-detail > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
    list-style: none;
    cursor: pointer;
}

.msg-detail > summary::-webkit-details-marker,
.inline-details > summary::-webkit-details-marker {
    display: none;
}

.msg-detail > summary::before {
    content: "+";
    font-family: var(--mono);
    color: var(--accent-2);
}

.msg-detail[open] > summary::before {
    content: "\2212";
}

.msg-reply-form {
    display: grid;
    gap: 8px;
    max-width: 640px;
    margin-top: 10px;
}

.msg-reply-form button {
    justify-self: start;
}

.msg-actions {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

/* 用户行内重置密码 */

.inline-details {
    position: relative;
}

.inline-details > summary {
    display: inline-flex;
    list-style: none;
    cursor: pointer;
}

.inline-details-form {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    width: 280px;
    margin-top: 6px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(15, 30, 50, 0.13);
}

.inline-details-form input {
    font-size: 12px;
}

/* ---------------- 登录页 ---------------- */

.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background-color: #04101f;
    background-image:
        repeating-linear-gradient(90deg, rgba(122, 154, 190, 0.07) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(122, 154, 190, 0.07) 0 1px, transparent 1px 76px),
        radial-gradient(circle at 20% 0%, rgba(90, 169, 230, 0.16), transparent 55%);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.login-panel {
    display: flex;
    align-items: center;
    padding: 48px 42px;
    background-color: var(--navy-2);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px);
    color: #ffffff;
}

.login-brand-mark {
    display: inline-flex;
    color: var(--accent);
}

.login-brand-en {
    margin: 18px 0 4px;
    font-family: var(--mono);
    font-size: 22px;
    letter-spacing: 0.24em;
}

.login-panel h1 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.login-brand-slogan {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.login-brand-desc {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.95;
    color: #8fa3ba;
}

.login-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
}

.login-card-inner {
    width: 100%;
    max-width: 320px;
}

.login-card h2 {
    font-size: 21px;
}

.login-sub {
    margin: 6px 0 22px;
    font-size: 12px;
    color: var(--ink-3);
}

.login-field {
    display: block;
    margin-bottom: 14px;
}

.login-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--ink-2);
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9e0ea;
    border-radius: 3px;
    font-size: 13.5px;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-field input:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(90, 169, 230, 0.18);
}

.login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 11px;
    border: 0;
    border-radius: 3px;
    background: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s ease;
}

.login-submit:hover {
    background: var(--navy-3);
}

.login-alert {
    margin-bottom: 16px;
    padding: 9px 12px;
    border: 1px solid #f2c7c3;
    border-radius: 3px;
    background: #fff3f3;
    font-size: 12px;
    color: #a93226;
}

.login-foot {
    margin-top: 18px;
    font-size: 11.5px;
    text-align: center;
    color: var(--ink-3);
}

.login-foot a:hover {
    color: var(--accent-2);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-columns {
        grid-template-columns: 1fr;
    }

    .edit-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .edit-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .admin-sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 80;
    }

    body.admin-nav-open .admin-sidebar {
        transform: none;
    }

    body.admin-nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(4, 10, 18, 0.45);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-nav-toggle {
        display: flex;
    }

    .admin-topbar {
        padding: 0 18px;
    }

    .admin-content {
        padding: 20px 18px 44px;
    }

    .login-wrap {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-panel {
        display: none;
    }
}

@media (max-width: 720px) {
    .form-grid,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head-actions {
        width: 100%;
    }

    .dl-row {
        grid-template-columns: 1fr;
    }

    .dl-remove {
        justify-self: end;
    }

    .danger-zone {
        flex-direction: column;
        align-items: flex-start;
    }

    .inline-details-form {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .admin-top-user {
        display: none;
    }

    .admin-content {
        padding: 16px 14px 36px;
    }

    .card-body {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }
}
