:root {
    --notion-bg: #faf9f7;
    --notion-surface: #fffefc;
    --notion-panel: #ffffff;
    --notion-sidebar: #f5f4f1;
    --notion-border: #e7e2da;
    --notion-border-soft: #f0ede8;
    --notion-text: #2f3437;
    --notion-muted: #787774;
    --notion-soft: #9b958c;
    --notion-accent: #2f3437;
    --notion-hover: #efede8;
    --notion-green: #e8f0ed;
    --notion-blue: #e8eef7;
    --notion-yellow: #f4ecdc;
    --notion-red: #f5e8e5;
    --notion-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
    --product-hemohub: #AFBC22;
    --product-gemwebplus: #A60B41;
    --product-quantalink: #A72B2A;
}

html,
body {
    min-height: 100%;
    background: var(--notion-bg);
    color: var(--notion-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
        "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: #365f7f;
}

a:hover,
a:focus {
    color: #1f3e56;
    text-decoration: none;
}

.notion-shell .wrapper {
    background: var(--notion-bg);
}

.notion-shell.skin-blue .main-header .logo,
.notion-shell.skin-blue .main-header .navbar {
    background: var(--notion-surface);
    color: var(--notion-text);
    border-bottom: 1px solid var(--notion-border);
    box-shadow: none;
}

.notion-shell.skin-blue .main-header .logo {
    border-right: 1px solid var(--notion-border);
    font-weight: 600;
}

.notion-shell.skin-blue .main-header .logo:hover,
.notion-shell.skin-blue .main-header .navbar .sidebar-toggle:hover {
    background: var(--notion-hover);
}

.notion-shell.skin-blue .main-header .navbar .sidebar-toggle,
.notion-shell.skin-blue .main-header .navbar .nav > li > a {
    color: var(--notion-muted);
}

.notion-shell.skin-blue .main-sidebar {
    background: var(--notion-sidebar);
    border-right: 1px solid var(--notion-border);
    padding-top: 50px;
}

.notion-shell.skin-blue .sidebar-menu > li.header {
    background: transparent;
    color: var(--notion-soft);
    padding: 18px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notion-shell.skin-blue .sidebar-menu > li > a {
    color: #4f4a45;
    border-left: 0;
    margin: 3px 10px;
    padding: 9px 10px;
    border-radius: 5px;
}

.notion-shell.skin-blue .sidebar-menu > li:hover > a,
.notion-shell.skin-blue .sidebar-menu > li.active > a {
    background: var(--notion-hover);
    color: var(--notion-text);
    border-left-color: transparent;
}

.notion-shell .content-wrapper,
.notion-shell .right-side {
    background: var(--notion-bg);
}

.notion-shell .content-header {
    position: relative;
    padding: 30px 34px 10px;
}

.notion-page-heading h1 {
    margin: 0;
    color: var(--notion-text);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.notion-subtitle {
    margin: 7px 0 0;
    color: var(--notion-muted);
    font-size: 13px;
}

.notion-shell .content-header > .breadcrumb {
    top: 34px;
    right: 34px;
    background: transparent;
    color: var(--notion-muted);
}

.notion-shell .content-header > .breadcrumb a {
    color: var(--notion-muted);
}

.notion-page {
    padding: 18px 34px 34px;
}

.notion-shell .main-footer {
    background: var(--notion-surface);
    border-top: 1px solid var(--notion-border);
    color: var(--notion-muted);
    padding: 13px 34px;
}

.box,
.notion-card {
    background: var(--notion-panel);
    border: 1px solid var(--notion-border);
    border-radius: 6px;
    box-shadow: var(--notion-shadow);
}

.box.box-primary,
.box.box-info,
.box.box-success,
.box.box-warning,
.box.box-danger,
.box.box-default {
    border-top-color: var(--notion-border);
}

.box-header {
    color: var(--notion-text);
    padding: 13px 16px;
}

.box-header.with-border {
    border-bottom: 1px solid var(--notion-border-soft);
}

.box-header .box-title {
    font-size: 15px;
    font-weight: 600;
}

.box-body {
    padding: 16px;
}

.box-body.no-padding {
    padding: 0;
}

.notion-table-card .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
}

.notion-filterbar form,
.notion-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table {
    margin-bottom: 0;
    color: var(--notion-text);
}

.table > thead > tr > th {
    background: #fbfaf8;
    color: var(--notion-muted);
    border-bottom: 1px solid var(--notion-border);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    border-top: 1px solid var(--notion-border-soft);
    padding: 10px 12px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fffdfb;
}

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

.form-control,
.input-group .form-control {
    height: 34px;
    color: var(--notion-text);
    border-color: #dcd7cf;
    border-radius: 5px;
    box-shadow: none;
}

textarea.form-control {
    height: auto;
    min-height: 84px;
}

.form-control:focus {
    border-color: #b7afa3;
    box-shadow: 0 0 0 2px rgba(183, 175, 163, 0.16);
}

.form-control::placeholder {
    color: #b4ada3;
}

.form-group label,
label.small {
    color: #5c5750;
    font-weight: 500;
}

.checkbox label {
    color: var(--notion-text);
}

.notion-toggle-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.notion-toggle-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #dcd7cf;
    border-radius: 5px;
    color: var(--notion-text);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

.notion-toggle-tile:hover {
    background: #fbfaf8;
    border-color: #cbc3b8;
}

.notion-toggle-tile input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--notion-accent);
}

.notion-toggle-tile span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    border-radius: 5px;
    box-shadow: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary,
.btn-success {
    background: var(--notion-accent);
    border-color: var(--notion-accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: #1f2325;
    border-color: #1f2325;
}

.btn-default {
    background: #fff;
    border-color: #d8d2ca;
    color: var(--notion-text);
}

.btn-default:hover,
.btn-default:focus {
    background: var(--notion-hover);
    border-color: #cbc3b8;
}

.btn-info {
    background: #eef3f5;
    border-color: #d8e4e8;
    color: #315a66;
}

.btn-warning {
    background: #f4ecdc;
    border-color: #ead9bd;
    color: #77521d;
}

.btn-danger {
    background: var(--notion-red);
    border-color: #ead1ca;
    color: #8a3d2f;
}

.label {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.25em 0.48em;
}

.label-info,
.label-primary {
    background: var(--notion-blue);
    color: #315273;
}

.label-success {
    background: var(--notion-green);
    color: #3f5e52;
}

.label-warning {
    background: var(--notion-yellow);
    color: #76531b;
}

.label-danger {
    background: var(--notion-red);
    color: #8a3d2f;
}

.label-default {
    background: #efede8;
    color: #5f5a52;
}

.product-label {
    display: inline-block;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
}


code {
    background: #f4f1ed;
    color: #6f4d31;
    border-radius: 4px;
}

.alert {
    border-radius: 6px;
    border: 1px solid var(--notion-border);
}

.pagination > li > a,
.pagination > li > span {
    color: var(--notion-text);
    border-color: var(--notion-border);
}

.pagination > .active > a,
.pagination > .active > span {
    background: var(--notion-accent);
    border-color: var(--notion-accent);
}

.small-box.notion-stat {
    background: var(--notion-panel) !important;
    color: var(--notion-text) !important;
    border: 1px solid var(--notion-border);
    border-radius: 6px;
    box-shadow: var(--notion-shadow);
}

.small-box.notion-stat > .inner {
    padding: 16px;
}

.small-box.notion-stat h3 {
    color: var(--notion-text);
    font-size: 30px;
    font-weight: 600;
}

.small-box.notion-stat p {
    color: var(--notion-muted);
}

.small-box.notion-stat .icon {
    color: rgba(47, 52, 55, 0.12);
    top: 10px;
}

.notion-profile-card .dl-horizontal dt {
    color: var(--notion-muted);
    font-weight: 500;
}

.notion-profile-card h5 {
    margin-top: 18px;
    font-weight: 600;
}

.well,
.server-form,
.instrument-form {
    background: #fbfaf8;
    border: 1px solid var(--notion-border);
    border-radius: 6px;
    box-shadow: none;
}

.product-fields h5,
.vm-fields h5 {
    color: var(--notion-text);
    font-weight: 600;
}

.vm-fields {
    background: #f7f5f0 !important;
    border-left-color: #b9afa2 !important;
    border-radius: 5px;
}

.feature-tag {
    display: inline-block;
    margin: 2px;
    padding: 3px 7px;
    background: var(--notion-blue);
    color: #315273;
    border-radius: 4px;
    font-size: 11px;
}

.notion-submitbar {
    margin: 10px 0 26px;
    padding: 14px 0;
}

.timeline:before {
    background: #ded8cf !important;
    width: 2px !important;
}

.timeline > li > .timeline-item {
    border: 1px solid var(--notion-border);
    border-radius: 6px !important;
    box-shadow: var(--notion-shadow) !important;
}

.timeline > li > .timeline-item > .timeline-header {
    border-bottom: 1px solid var(--notion-border-soft) !important;
}

.timeline > li > .timeline-badge {
    background: var(--notion-accent) !important;
    box-shadow: 0 0 0 4px var(--notion-bg);
}

.login-page.notion-login-page {
    background: var(--notion-bg);
}

.notion-login-page .login-box {
    margin-top: 9%;
}

.notion-login-page .login-logo {
    color: var(--notion-text);
    font-weight: 600;
}

.notion-login-page .login-box-body {
    background: var(--notion-panel);
    border: 1px solid var(--notion-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.06);
    color: var(--notion-text);
}

.notion-login-page .login-box-msg {
    color: var(--notion-muted);
}

.dropdown-menu {
    border-color: var(--notion-border);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.08);
}

.user-header {
    background: var(--notion-sidebar) !important;
    color: var(--notion-text) !important;
}

@media (max-width: 767px) {
    .notion-shell .content-header {
        padding: 24px 18px 8px;
    }

    .notion-page {
        padding: 14px 18px 26px;
    }

    .notion-page-heading h1 {
        font-size: 24px;
        font-weight: 600;
    }

    .notion-shell .content-header > .breadcrumb {
        position: static;
        float: none;
        margin-top: 10px;
    }

    .notion-table-card .box-header {
        display: block;
    }

    .notion-actions,
    .notion-filterbar form {
        margin-top: 8px;
    }
}
