html {
    position: relative;
    min-height: 100%;
    font-size: 15px;
}

body {
    margin-bottom: 70px;
    background-color: #f5f7fa;
    color: #212529;
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.navbar-brand {
    letter-spacing: .5px;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eef0f3;
    font-weight: 600;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    white-space: nowrap;
    font-size: .9rem;
    color: #6b7280;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
}

.text-preline {
    white-space: pre-line;
    word-break: break-word;
}

.period-card {
    margin-bottom: 1.1rem;
}

.period-meta {
    font-size: .85rem;
    color: #6b7280;
}

.entry-block {
    background-color: #f8f9fb;
    border-left: 3px solid #0d6efd;
    border-radius: .35rem;
    padding: .7rem .9rem;
}

.entry-author {
    font-size: .85rem;
    font-weight: 600;
    color: #0d6efd;
}

.entry-time {
    font-size: .78rem;
    color: #9aa1ab;
}

.entry-content {
    margin-top: .35rem;
    white-space: pre-line;
    word-break: break-word;
}

.badge-outstanding {
    background-color: #fdecec;
    color: #d6336c;
}

.badge-settled {
    background-color: #e7f6ec;
    color: #198754;
}

.login-card {
    max-width: 400px;
    margin: 6vh auto 0;
}

.empty-state {
    text-align: center;
    color: #9aa1ab;
    padding: 2rem 1rem;
}

.empty-state .icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: .5rem;
}

.pagination .page-link {
    color: #0d6efd;
}

.btn-group-actions {
    white-space: nowrap;
}

.quick-add-region {
    background-color: #e3effc;
    border-top: 2px solid #0d6efd;
    border-left: 4px solid #0d6efd;
}

.quick-add-title {
    display: inline-block;
    font-weight: 600;
    font-size: .85rem;
    color: #fff;
    background-color: #0d6efd;
    padding: .25rem .7rem;
    border-radius: .25rem;
    margin-bottom: .7rem;
}

.order-table th,
.order-table td {
    border: 1px solid #dce4f0;
}

.order-table thead th {
    background-color: #cfe2ff;
    color: #1f3a5f;
    text-align: center;
}

.order-table tbody td {
    text-align: center;
}

[contenteditable][placeholder]:empty::before {
    content: attr(placeholder);
    color: #9aa1ab;
}

.rich-editor {
    min-height: 420px;
    max-height: 720px;
    overflow-y: auto;
}

.color-input {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    align-self: center;
}

.rich-editor img,
.notification-content img {
    max-width: 100%;
    height: auto;
    border-radius: .25rem;
}
