body {
    background: #f3f5f7;
    color: #263238;
}


.license-navbar-code {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.license-layout .sidenav {
    padding-top: 16px;
    border: 1px solid #e5e9ed;
    box-shadow: 0 2px 10px rgba(30, 45, 60, .04);
}

.license-layout .list-group-heading {
    margin-left: 24px;
}

.license-layout .sidenav .list-group .list-group-item > a {
    padding-left: 24px;
}

.license-panel {
    overflow: hidden;
    border: 1px solid #e5e9ed;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(30, 45, 60, .05);
}

.license-panel > .panel-heading {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.license-panel > .panel-body {
    padding: 22px;
}

.license-page-heading {
    margin: 0;
    color: #202a31;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.license-page-subtitle {
    margin: 4px 0 0;
    color: #85919a;
    font-size: 13px;
}

.license-header-text {
    min-width: 0;
}

.license-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 12px;
    background: #eef2f4;
    color: #66737c;
    font-size: 12px;
    white-space: nowrap;
}

.license-status::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.license-status-success {
    background: #e8f7ef;
    color: #168a50;
}

.license-status-warning {
    background: #fff5dd;
    color: #a86c00;
}

.license-status-danger {
    background: #fdecec;
    color: #c33d3d;
}

.license-stat-grid {
    display: grid;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid #e8ecef;
    border-radius: 4px;
    background: #fafbfc;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.license-stat {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid #e8ecef;
}

.license-stat:last-child {
    border-right: 0;
}

.license-stat-label,
.license-info-label {
    display: block;
    margin-bottom: 6px;
    color: #8a959d;
    font-size: 13px;
    font-weight: 400;
}

.license-stat-value {
    display: block;
    overflow: hidden;
    color: #29343b;
    font-size: 17px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-section + .license-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #edf0f2;
}

.license-section-title {
    margin: 0 0 16px;
    color: #344149;
    font-size: 15px;
    font-weight: 600;
}

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

.license-info-item {
    min-width: 0;
    padding: 14px 16px;
    border-left: 3px solid #dce5eb;
    background: #f7f9fa;
}

.license-info-value {
    display: block;
    overflow-wrap: anywhere;
    color: #354148;
    font-size: 15px;
}

.license-code {
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
}

.license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.license-actions .btn {
    margin: 0;
}

.console-entry-empty {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    background: #f7f9fa;
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.console-entry-empty-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #e7f5ed;
    color: #168a50;
    font-size: 19px;
}

.console-entry-empty-content {
    min-width: 0;
}

.console-entry-empty-content strong {
    display: block;
    color: #344149;
    font-size: 15px;
    font-weight: 600;
}

.console-entry-empty-content p {
    margin: 5px 0 0;
    color: #849099;
    font-size: 13px;
}

.console-entry-empty > .btn {
    white-space: nowrap;
}

.license-form-section + .license-form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #edf0f2;
}

.license-form-section-title {
    margin: 0 0 18px;
    color: #344149;
    font-size: 15px;
    font-weight: 600;
}

.qywx-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.qywx-section-heading .license-form-section-title {
    margin-bottom: 0;
}

.qywx-collapse-toggle {
    flex: 0 0 auto;
}

.qywx-collapse-toggle .when-collapsed,
.qywx-collapse-toggle.collapsed .when-expanded {
    display: none;
}

.qywx-collapse-toggle.collapsed .when-collapsed {
    display: inline;
}

.qywx-credential-summary {
    display: grid;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #e2e8eb;
    border-radius: 4px;
    background: #f7f9fa;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qywx-credential-summary > div {
    min-width: 0;
}

.qywx-summary-label {
    display: block;
    margin-bottom: 5px;
    color: #87939b;
    font-size: 12px;
}

.qywx-credential-summary strong {
    display: block;
    overflow: hidden;
    color: #344149;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qywx-credential-summary + .collapse.in,
.qywx-credential-summary + .collapsing {
    margin-top: 20px;
}

.qywx-config-form {
    max-width: 820px;
}

.qywx-sync-layout {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
}

.qywx-sync-form {
    max-width: 520px;
}

.qywx-sync-form .control-label {
    display: block;
    margin-bottom: 7px;
}

.qywx-sync-actions {
    margin-top: 22px;
    margin-bottom: 0;
}

.qywx-sync-actions .help-block {
    margin-bottom: 0;
}

.qywx-profile-preview {
    overflow: hidden;
    border: 1px solid #dce2e6;
    border-radius: 4px;
    background: #f0f2f3;
    box-shadow: 0 8px 22px rgba(40, 55, 65, .08);
}

.qywx-preview-header {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid #e2e6e8;
    background: #fff;
    color: #56636b;
    font-size: 13px;
    font-weight: 600;
}

.qywx-preview-header i {
    color: #16a064;
    font-size: 17px;
}

.qywx-preview-profile {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
}

.qywx-preview-avatar {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #e7f5ed;
    color: #168a50;
    font-size: 24px;
}


.qywx-preview-profile strong {
    color: #252d32;
    font-size: 17px;
    font-weight: 600;
}

.qywx-preview-profile div span {
    margin-top: 5px;
    color: #8b969d;
    font-size: 13px;
}

.qywx-preview-band {
    padding: 9px 18px;
    border-top: 1px solid #e2e6e8;
    border-bottom: 1px solid #e2e6e8;
    color: #8b949a;
    font-size: 12px;
}

.qywx-preview-row {
    display: grid;
    min-height: 62px;
    align-items: center;
    padding: 0 18px;
    background: #fff;
    grid-template-columns: minmax(72px, .55fr) minmax(0, 1fr) 12px;
}

.qywx-preview-label,
.qywx-preview-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qywx-preview-label {
    color: #242c31;
    font-size: 15px;
}

.qywx-preview-value {
    color: #6f7a81;
    font-size: 15px;
}

.qywx-preview-row i {
    color: #bdc4c8;
    font-size: 18px;
    text-align: right;
}

.license-panel .form-horizontal .control-label {
    color: #59666e;
    font-weight: 500;
}

.license-panel .form-control {
    border-color: #dce2e6;
    box-shadow: none;
}

.license-panel .form-control:focus {
    border-color: #5b7fa3;
    box-shadow: 0 0 0 2px rgba(75, 112, 148, .1);
}

.license-secret-state {
    margin: 7px 0 0;
    font-size: 12px;
}

.entry-domain-mode {
    margin-bottom: 14px;
}

.entry-domain-mode .btn {
    min-width: 112px;
}

.entry-domain-mode .btn.active {
    border-color: #4f7396;
    background: #edf4f9;
    color: #315b7f;
    box-shadow: none;
}

.entry-domain-panel {
    max-width: 620px;
}

.entry-domain-panel[hidden] {
    display: none;
}

.entry-robot-test-status {
    min-height: 17px;
    margin-bottom: 0;
}

.license-url-box {
    padding: 16px;
    border: 1px solid #cde9da;
    border-radius: 4px;
    background: #f1fbf6;
}

.license-url-box .input-group {
    margin-top: 8px;
}

.license-empty {
    padding: 52px 20px;
    color: #88949c;
    text-align: center;
}

.license-empty > i {
    display: block;
    margin-bottom: 12px;
    color: #b7c1c7;
    font-size: 38px;
}

.license-table {
    margin-bottom: 0;
}

.license-table > thead > tr > th {
    border-bottom: 1px solid #dfe5e8;
    background: #f7f9fa;
    color: #65717a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.license-table > tbody > tr > td {
    border-top-color: #edf0f2;
    vertical-align: middle;
}

.license-pagination {
    min-height: 20px;
    padding: 16px 20px 4px;
    overflow-x: auto;
    text-align: center;
}

.license-pagination .pagination {
    margin: 0 0 12px;
    white-space: nowrap;
}

.license-login-wrap {
    display: flex;
    min-height: calc(100vh - 190px);
    align-items: center;
    justify-content: center;
}

.license-login-wrap .login-section {
    margin: 20px auto;
    border: 1px solid #e1e6e9;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(32, 48, 60, .08);
}

.license-login-title {
    margin: 0;
    color: #25313a;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.license-login-desc {
    margin: 8px 0 24px;
    color: #8b969e;
    font-size: 13px;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 991px) {
    .license-layout .sidenav {
        position: static;
        width: auto;
        min-width: 0;
        height: auto;
        padding-top: 16px;
        overflow: visible;
    }

    .license-layout .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .qywx-sync-layout {
        grid-template-columns: 1fr;
    }

    .qywx-sync-form {
        max-width: none;
    }
}

@media (max-width: 767px) {
    main.content {
        padding: 10px 0;
    }

    .license-navbar-code {
        max-width: 220px;
    }

    .license-panel {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .license-panel > .panel-heading,
    .license-panel > .panel-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .license-stat-grid,
    .license-info-grid,
    .qywx-credential-summary {
        grid-template-columns: 1fr;
    }

    .qywx-section-heading {
        align-items: flex-start;
    }

    .qywx-collapse-toggle {
        padding-right: 8px;
        padding-left: 8px;
    }

    .qywx-sync-layout {
        gap: 20px;
    }

    .license-stat {
        border-right: 0;
        border-bottom: 1px solid #e8ecef;
    }

    .license-stat:last-child {
        border-bottom: 0;
    }

    .console-entry-empty {
        align-items: start;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .console-entry-empty-icon {
        width: 40px;
        height: 40px;
    }

    .console-entry-empty > .btn {
        width: 100%;
        grid-column: 1 / -1;
    }

    .license-login-wrap {
        min-height: calc(100vh - 170px);
        padding: 0 12px;
    }

    .license-login-wrap .login-section {
        width: 100%;
    }
}
