/* Super 后台基础样式 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #f0f2f5;
}

.super-app {
    display: flex;
    min-height: 100vh;
}

.super-sidenav {
    width: 220px;
    flex-shrink: 0;
    background: #001529;
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 0;
}

.super-brand {
    padding: 0 20px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
}

.super-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.super-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.super-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.super-nav-link.is-active {
    background: #1677ff;
    color: #fff;
}

.super-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.super-topbar {
    background: #fff;
    padding: 16px 28px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.super-page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.super-content {
    flex: 1;
    padding: 24px 28px;
}

.super-footer {
    padding: 12px 28px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.super-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.super-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.super-muted {
    color: #666;
    line-height: 1.6;
}

.super-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e6f4ff;
    color: #1677ff;
}

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

.super-table th,
.super-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.super-table th {
    background: #fafafa;
    font-weight: 600;
    color: #595959;
}

.super-placeholder {
    padding: 48px 24px;
    text-align: center;
    color: #8c8c8c;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

/* 顶栏 */
.super-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.super-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.super-user {
    font-size: 13px;
    color: #595959;
}

.super-link-btn {
    font-size: 13px;
    color: #1677ff;
    text-decoration: none;
}

.super-link-btn:hover {
    text-decoration: underline;
}

/* 登录页 */
.super-login-body {
    background: linear-gradient(160deg, #0b1f3a 0%, #001529 50%, #0a2540 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.super-login-wrap {
    width: 100%;
    max-width: 400px;
}

.super-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.super-login-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #001529;
}

.super-login-sub {
    margin: 0 0 24px;
    text-align: center;
    font-size: 14px;
    color: #8c8c8c;
}

.super-login-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

.super-login-form {
    display: flex;
    flex-direction: column;
}

.super-login-label {
    font-size: 13px;
    color: #595959;
    margin-bottom: 6px;
}

.super-login-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.super-login-input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.super-login-submit {
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1677ff;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.super-login-submit:hover {
    background: #4096ff;
}

/* 提示、按钮、表单、表格操作 */
.super-flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.super-flash-ok {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.super-flash-err {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.super-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.super-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.super-btn:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.super-btn-primary {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

.super-btn-primary:hover {
    background: #4096ff;
    border-color: #4096ff;
    color: #fff;
}

.super-btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.super-btn-danger {
    border-color: #ff4d4f;
    color: #cf1322;
}

.super-btn-danger:hover {
    background: #fff2f0;
    border-color: #cf1322;
    color: #a8071a;
}

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

.super-actions {
    white-space: nowrap;
}

.super-actions .super-inline-form {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.super-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.super-badge-ok {
    background: #f6ffed;
    color: #389e0d;
}

.super-badge-off {
    background: #f5f5f5;
    color: #8c8c8c;
}

.super-badge-warn {
    background: #fffbe6;
    color: #d48806;
}

.super-badge-muted {
    background: #fafafa;
    color: #8c8c8c;
}

.super-form {
    max-width: 560px;
}

.super-form-group {
    margin-bottom: 20px;
}

.super-form-label {
    display: block;
    font-size: 13px;
    color: #595959;
    margin-bottom: 6px;
}

.super-req {
    color: #cf1322;
}

.super-form-input,
.super-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.super-form-textarea {
    resize: vertical;
}

.super-form-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8c8c8c;
}

.super-form-check label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.super-form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.super-form-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.super-form-radio {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.super-card-tabs-head {
    padding-bottom: 0;
}

.super-card-tabs-head h2 {
    margin-bottom: 12px;
}

.super-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #e8e8e8;
    margin: 0 -4px;
}

.super-tab {
    display: inline-block;
    padding: 10px 16px;
    margin-bottom: -1px;
    border-radius: 6px 6px 0 0;
    color: #595959;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    border-bottom: none;
}

.super-tab:hover {
    color: #1677ff;
    background: #fafafa;
}

.super-tab.is-active {
    color: #1677ff;
    font-weight: 600;
    background: #fff;
    border-color: #e8e8e8;
    border-bottom: 1px solid #fff;
}

/* Super 设备管理 · 代管打印机工具条 */
.sd-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}

.sd-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sd-field-full {
    grid-column: 1 / -1;
}

.sd-label {
    font-size: 12px;
    color: #8c8c8c;
}

.sd-select {
    min-width: 220px;
    max-width: 100%;
}

.super-modal-backdrop {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.super-modal-backdrop.is-open {
    display: flex;
}

.super-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border: 1px solid #e8e8e8;
}

.super-modal--sm {
    max-width: 420px;
}

.super-modal-hd {
    padding: 14px 18px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.super-modal-bd {
    padding: 18px;
}

.super-modal-ft {
    padding: 12px 18px 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.sd-actions .super-btn-sm {
    margin-right: 4px;
}

.sd-actions .super-btn-sm:last-child {
    margin-right: 0;
}
