:root {
    --adm-bg: #f2f2f2;
    --adm-surface: #ffffff;
    --adm-border: #eeeeee;
    --adm-text: #333333;
    --adm-muted: #666666;
    --adm-primary: #1e9fff;
    --adm-primary-strong: #0b79d0;
    --adm-success: #16a34a;
    --adm-warning: #d97706;
    --adm-danger: #dc2626;
    --adm-sidebar: #28333e;
    --adm-sidebar-strong: #192027;
    --adm-radius: 5px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--adm-text);
    background: var(--adm-bg);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

button,
input {
    font: inherit;
}

.adm-public-page {
    background: #e9eef3;
}

.adm-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #e9eef3;
}

.adm-login-panel {
    width: min(390px, 100%);
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: var(--adm-surface);
    box-shadow: 0 12px 32px rgba(25, 32, 39, 0.12);
    padding: 28px;
}

.adm-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.adm-login-brand__mark,
.adm-brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--adm-primary);
    font-weight: 700;
}

.adm-login-brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    font-size: 25px;
}

.adm-login-brand h1 {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.adm-login-brand p,
.adm-page-heading p {
    margin: 0;
    color: var(--adm-muted);
    font-size: 13px;
}

.adm-alert {
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    border-radius: var(--adm-radius);
    color: #991b1b;
    background: #fef2f2;
    padding: 10px 12px;
    font-size: 13px;
}

.adm-alert--success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.adm-field-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.adm-input-with-icon {
    position: relative;
}

.adm-input-with-icon > .layui-icon:first-child {
    position: absolute;
    left: 11px;
    top: 50%;
    color: #7a8794;
    transform: translateY(-50%);
    z-index: 1;
}

.adm-input-with-icon .layui-input {
    height: 40px;
    padding-left: 36px;
    border-radius: 4px;
}

.adm-password-field .layui-input {
    padding-right: 42px;
}

.adm-password-toggle,
.adm-icon-button {
    display: inline-grid;
    place-items: center;
    border: 0;
    color: var(--adm-muted);
    background: transparent;
    cursor: pointer;
}

.adm-password-toggle {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 34px;
    height: 34px;
}

.adm-password-toggle:hover,
.adm-icon-button:hover {
    color: var(--adm-primary);
    background: #eef7ff;
}

.adm-login-submit {
    height: 40px;
    margin-top: 4px;
    border-radius: 4px;
    background: var(--adm-primary);
}

.adm-login-submit:hover {
    background: var(--adm-primary-strong);
}

.adm-admin-page {
    overflow: hidden;
}

.adm-shell {
    min-height: 100vh;
    display: flex;
}

.adm-sidebar {
    width: 220px;
    flex: 0 0 220px;
    min-height: 100vh;
    color: #c8d0d8;
    background: var(--adm-sidebar);
    transition: width 0.18s ease, transform 0.18s ease;
}

.adm-brand {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    background: var(--adm-sidebar-strong);
    padding: 0 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.adm-brand:hover {
    color: #fff;
}

.adm-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    font-size: 18px;
}

.adm-brand__text {
    font-size: 15px;
    font-weight: 700;
}

.adm-navigation {
    padding: 8px 0;
}

.adm-navigation__item {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c8d0d8;
    padding: 0 17px;
    border-left: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.adm-navigation__item:hover,
.adm-navigation__item.is-active {
    color: #fff;
    background: #34414d;
    border-left-color: var(--adm-primary);
}

.adm-navigation__item .layui-icon {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.adm-navigation__heading {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f2f5f8;
    padding: 0 20px;
    font-weight: 600;
}

.adm-navigation__child {
    height: 36px;
    display: flex;
    align-items: center;
    color: #aeb9c4;
    padding: 0 20px 0 51px;
    text-decoration: none;
}

.adm-navigation__child:hover,
.adm-navigation__child.is-active {
    color: #fff;
    background: var(--adm-primary);
}

.adm-main {
    min-width: 0;
    flex: 1;
}

.adm-header {
    height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--adm-border);
    background: var(--adm-surface);
    padding: 0 18px;
}

.adm-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

.adm-header__title {
    margin-left: 12px;
    font-weight: 600;
}

.adm-header__account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.adm-header__user {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--adm-muted);
}

.adm-command-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d4dbe2;
    border-radius: 4px;
    color: var(--adm-text);
    background: #fff;
    padding: 0 11px;
    cursor: pointer;
}

.adm-command-button:hover {
    color: var(--adm-primary);
    border-color: var(--adm-primary);
}

.adm-content {
    height: calc(100vh - 58px);
    overflow: auto;
    padding: 18px;
}

.adm-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.adm-page-heading h1 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.3;
}

.adm-environment-badge {
    border: 1px solid #fed7aa;
    border-radius: 4px;
    color: #9a3412;
    background: #fff7ed;
    padding: 4px 8px;
    font-size: 12px;
}

.adm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.adm-stat-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-surface);
    padding: 16px;
}

.adm-stat-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    font-size: 21px;
}

.adm-stat-card--users .adm-stat-card__icon {
    color: #075985;
    background: #e0f2fe;
}

.adm-stat-card--equipment .adm-stat-card__icon {
    color: #5b21b6;
    background: #ede9fe;
}

.adm-stat-card--online .adm-stat-card__icon {
    color: #166534;
    background: #dcfce7;
}

.adm-stat-card--alarm .adm-stat-card__icon {
    color: #991b1b;
    background: #fee2e2;
}

.adm-stat-card__label {
    color: var(--adm-muted);
    font-size: 13px;
}

.adm-stat-card__value {
    margin-top: 5px;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}

.adm-status-panel {
    margin-top: 14px;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-surface);
}

.adm-status-panel__header {
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--adm-border);
    padding: 0 14px;
}

.adm-status-panel__header h2 {
    margin: 0;
    font-size: 14px;
}

.adm-status-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.adm-status-actions form {
    margin: 0;
}

.adm-status-row {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.adm-status-row + .adm-status-row {
    border-top: 1px solid var(--adm-border);
}

.adm-status-row strong,
.adm-status-row span {
    display: block;
}

.adm-status-row span {
    margin-top: 3px;
    color: var(--adm-muted);
    font-size: 12px;
}

.adm-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--adm-success);
}

.adm-status-dot--warning {
    background: #d97706;
}

.adm-status-dot--error {
    background: var(--adm-danger);
}

.adm-panel {
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-surface);
    padding: 14px;
}

.adm-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 0.8fr auto;
    gap: 12px;
    align-items: end;
}

.adm-filter-form--tcp {
    grid-template-columns: 1fr 0.7fr 1.4fr auto;
}

.adm-filter-form--operation-log {
    grid-template-columns: 0.9fr 0.9fr 0.65fr 1.2fr auto;
}

.adm-filter-form--mobile-api-log {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(210px, 1.3fr) minmax(110px, 0.6fr);
}

.adm-filter-form--equipment {
    grid-template-columns: 132px 132px 150px 170px 110px max-content;
    gap: 10px;
}

.adm-filter-form--users {
    grid-template-columns: 145px 145px 155px 120px max-content;
}

.adm-filter-form--compact {
    grid-template-columns: 260px 140px max-content;
    justify-content: start;
}

.adm-filter-form--dictionary-data {
    grid-template-columns: 150px 150px 90px 120px max-content;
}

.adm-filter-form--login-log {
    grid-template-columns: 180px 180px 140px max-content;
    justify-content: start;
}

.adm-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--adm-muted);
    font-size: 12px;
}

.adm-filter-actions,
.adm-table__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.adm-edit-form {
    max-width: 980px;
}

.adm-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 16px 0;
}

.adm-checkbox-group > strong { width: 100%; }
.adm-checkbox-group label { min-width: 180px; }
.adm-checkbox-group small { display: block; margin-left: 20px; color: var(--adm-muted); }

.adm-permission-grid {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--adm-border);
    padding: 14px;
}

.adm-inline-edit { display: inline-flex; gap: 6px; vertical-align: middle; }
.adm-inline-edit .layui-input { width: 110px; height: 28px; }

.adm-table-panel {
    margin-top: 14px;
}

.adm-list-page,
.adm-equipment-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.adm-content:has(> .adm-list-page),
.adm-content:has(> .adm-equipment-page) {
    overflow: hidden;
}

.adm-list-page .adm-alert,
.adm-equipment-page .adm-alert {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.adm-list-toolbar,
.adm-equipment-toolbar {
    flex: 0 0 auto;
}

.adm-list-toolbar--actions {
    display: flex;
    justify-content: flex-end;
}

.adm-list-toolbar__context {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.adm-list-toolbar__context small {
    color: var(--adm-muted);
}

.adm-list-table-panel,
.adm-equipment-table-panel {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: 0;
}

.adm-list-table-panel .adm-table-scroll,
.adm-equipment-table-panel .adm-table-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
}

.adm-list-table-panel .adm-pagination,
.adm-equipment-table-panel .adm-pagination {
    flex: 0 0 auto;
}

.adm-list-table-panel .adm-table-summary,
.adm-equipment-table-panel .adm-table-summary {
    flex: 0 0 auto;
}

.adm-table-summary {
    margin-bottom: 10px;
    color: var(--adm-muted);
    font-size: 13px;
}

.adm-table-scroll {
    overflow-x: auto;
}

.adm-table {
    min-width: 1040px;
    margin: 0;
}

.adm-table td {
    vertical-align: middle;
}

.adm-table td strong,
.adm-table td small {
    display: block;
}

.adm-table td small {
    margin-top: 3px;
    color: var(--adm-muted);
}

.adm-table__actions {
    width: 300px;
    white-space: nowrap;
}

.adm-table__actions form {
    display: inline-flex;
}

.adm-muted {
    color: #8a929a;
}

.adm-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 3px;
    color: #59636e;
    background: #edf0f2;
    padding: 2px 7px;
    font-size: 12px;
}

.adm-badge--success {
    color: #166534;
    background: #dcfce7;
}

.adm-badge--danger {
    color: #991b1b;
    background: #fee2e2;
}

.adm-badge--outbound {
    color: #075985;
    background: #e0f2fe;
}

.adm-notification-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 154px;
}

.adm-table--tcp-log {
    min-width: 1280px;
    width: 100%;
    table-layout: fixed;
}

.adm-table--tcp-log th,
.adm-table--tcp-log td {
    padding-right: 8px;
    padding-left: 8px;
}

.adm-tcp-col--time {
    width: 158px;
}

.adm-tcp-col--direction {
    width: 80px;
}

.adm-tcp-col--device {
    width: 86px;
}

.adm-tcp-col--bytes {
    width: 50px;
}

.adm-tcp-col--result {
    width: 100px;
}

.adm-tcp-col--remote {
    width: 148px;
}

.adm-tcp-col--hex {
    width: 270px;
}

.adm-table--operation-log {
    min-width: 1040px;
}

.adm-table--mobile-api-log {
    min-width: 1160px;
}

.adm-table--equipment {
    min-width: 1128px;
    width: 100%;
    table-layout: fixed;
}

.adm-list-table thead th,
.adm-table--equipment thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafafa;
    box-shadow: 0 1px 0 var(--adm-border);
}

.adm-equipment-col--device { width: 165px; }
.adm-equipment-col--health { width: 160px; }
.adm-equipment-col--progress { width: 120px; }
.adm-equipment-col--temperature { width: 135px; }
.adm-equipment-col--humidity { width: 110px; }
.adm-equipment-col--tasks { width: 205px; }
.adm-equipment-col--water { width: 105px; }
.adm-equipment-col--actions { width: 128px; }

.adm-table--equipment .adm-table__actions {
    width: auto;
    white-space: normal;
}

.adm-equipment-actions {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 5px;
}

.adm-equipment-actions .layui-btn {
    margin: 0;
}

.adm-equipment-alarm .adm-badge {
    white-space: normal;
    word-break: break-word;
}

.adm-equipment-task {
    display: block;
    margin-top: 4px;
}

.adm-table--tcp-log small {
    margin-top: 5px;
}

.adm-table--tcp-log td:first-child,
.adm-table--tcp-log td:nth-child(7) {
    font-size: 12px;
}

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

.adm-log-result {
    max-width: 240px;
    word-break: break-word;
}

.adm-log-parsed {
    display: block;
    line-height: 1.55;
    word-break: break-word;
}

.adm-hex-preview {
    display: block;
    color: #334155;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.adm-empty {
    height: 100px;
    color: var(--adm-muted);
    text-align: center;
}

.adm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--adm-muted);
    font-size: 13px;
}

.adm-list-pagination > div,
.adm-equipment-pagination > div {
    min-height: 32px;
}

.adm-list-pagination .layui-laypage,
.adm-equipment-pagination .layui-laypage {
    margin: 0;
}

.adm-form-grid,
.adm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.adm-form-panel h2,
.adm-detail-panel h2 {
    margin: 0 0 16px;
    font-size: 16px;
}

.adm-field-help {
    margin: 6px 0 0;
    color: var(--adm-muted);
    font-size: 12px;
    line-height: 1.6;
}

.adm-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.adm-detail-list {
    margin: 0;
}

.adm-detail-list > div {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 42px;
    align-items: center;
    border-bottom: 1px solid var(--adm-border);
}

.adm-detail-list > div:last-child {
    border-bottom: 0;
}

.adm-detail-list dt {
    color: var(--adm-muted);
}

.adm-detail-list dd {
    margin: 0;
    word-break: break-word;
}

.adm-modal {
    width: min(1080px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.adm-modal::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.adm-equipment-edit-modal {
    width: min(760px, calc(100vw - 40px));
}

.adm-modal__surface {
    display: flex;
    max-height: calc(100vh - 40px);
    flex-direction: column;
    overflow: hidden;
    background: var(--adm-surface);
}

.adm-modal__header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--adm-border);
    padding: 18px 20px 15px;
}

.adm-modal__header h2 {
    margin: 0;
    font-size: 18px;
}

.adm-modal__header p {
    margin: 5px 0 0;
    color: var(--adm-muted);
    font-size: 13px;
}

.adm-modal__header-actions,
.adm-modal__footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-modal__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    line-height: 30px;
}

.adm-modal__close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.adm-modal__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px 20px 20px;
}

.adm-modal__status {
    margin-bottom: 14px;
    border-radius: 4px;
    color: #475569;
    background: #f1f5f9;
    padding: 9px 12px;
    font-size: 13px;
}

.adm-modal__status.is-error {
    color: #991b1b;
    background: #fee2e2;
}

.adm-modal__footer {
    justify-content: flex-end;
    margin: 18px -20px -20px;
    border-top: 1px solid var(--adm-border);
    padding: 14px 20px;
}

.adm-equipment-detail__section + .adm-equipment-detail__section {
    margin-top: 18px;
    border-top: 1px solid var(--adm-border);
    padding-top: 16px;
}

.adm-equipment-detail__section h3 {
    margin: 0 0 11px;
    color: #334155;
    font-size: 14px;
}

.adm-equipment-detail__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 0;
}

.adm-equipment-detail__grid > div {
    min-width: 0;
    padding: 5px 0;
}

.adm-equipment-detail__grid dt,
.adm-equipment-detail__hex > span {
    margin-bottom: 3px;
    color: var(--adm-muted);
    font-size: 12px;
}

.adm-equipment-detail__grid dd {
    margin: 0;
    color: #1e293b;
    line-height: 1.55;
    word-break: break-word;
}

.adm-equipment-detail__hex {
    margin-top: 10px;
}

.adm-equipment-detail__hex > span,
.adm-equipment-detail__hex code {
    display: block;
}

.adm-equipment-detail__hex code {
    border-radius: 4px;
    color: #334155;
    background: #f8fafc;
    padding: 10px 12px;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.adm-equipment-debug-form {
    border-radius: 6px;
    background: #fffbeb;
    padding: 12px 14px;
}

.adm-equipment-debug-form__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr);
    gap: 12px 16px;
}

.adm-equipment-debug-form .layui-form-item {
    margin-bottom: 0;
}

.adm-equipment-debug-form .adm-modal__footer {
    margin: 12px -14px -12px;
    padding: 12px 14px;
}

@media (max-width: 680px) {
    .adm-equipment-debug-form__grid {
        grid-template-columns: 1fr;
    }
}

.adm-sidebar-mask {
    display: none;
}

.sidebar-collapsed .adm-sidebar {
    width: 64px;
    flex-basis: 64px;
}

.sidebar-collapsed .adm-brand__text,
.sidebar-collapsed .adm-navigation__item span {
    display: none;
}

@media (max-width: 980px) {
    .adm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm-filter-form--equipment {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .adm-filter-form--users,
    .adm-filter-form--compact,
    .adm-filter-form--dictionary-data,
    .adm-filter-form--login-log {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm-equipment-detail__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .adm-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: 220px;
        transform: translateX(-100%);
    }

    .sidebar-open .adm-sidebar {
        transform: translateX(0);
    }

    .sidebar-open .adm-sidebar-mask {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: block;
        background: rgba(15, 23, 42, 0.38);
    }

    .adm-header {
        padding: 0 12px;
    }

    .adm-header__title {
        margin-left: 8px;
    }

    .adm-header__user {
        max-width: 92px;
    }

    .adm-content {
        padding: 12px;
    }

    .adm-stats {
        grid-template-columns: 1fr;
    }

    .adm-form-grid,
    .adm-detail-grid,
    .adm-two-columns,
    .adm-filter-form,
    .adm-filter-form--tcp,
    .adm-filter-form--operation-log {
        grid-template-columns: 1fr;
    }

    .adm-filter-form--mobile-api-log {
        grid-template-columns: 1fr;
    }

    .adm-filter-form--users,
    .adm-filter-form--compact,
    .adm-filter-form--dictionary-data,
    .adm-filter-form--login-log {
        grid-template-columns: 1fr;
    }

    .adm-list-pagination,
    .adm-equipment-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .adm-equipment-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .adm-modal__surface {
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 430px) {
    .adm-login-shell {
        padding: 14px;
    }

    .adm-login-panel {
        padding: 22px 18px;
    }

    .adm-header__user {
        display: none;
    }

    .adm-command-button span {
        display: none;
    }

    .adm-command-button {
        width: 34px;
        justify-content: center;
        padding: 0;
    }

    .adm-equipment-detail__grid {
        grid-template-columns: 1fr;
    }

    .adm-modal__header,
    .adm-modal__body {
        padding-right: 14px;
        padding-left: 14px;
    }
}
