html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* 表格 */
.table > :not(caption) > * > * {
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* 审批进度条 */
.progress-steps .d-flex {
    gap: 0;
}

.progress-steps .flex-fill::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.progress-steps .flex-fill:last-child::after {
    display: none;
}

/* 导航栏 */
.navbar-brand {
    font-size: 1.2rem;
}

/* 表单 */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* 响应式 */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Badge 优化 */
.badge {
    font-weight: 500;
}

/* 面包屑 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* 动画 */
.fade {
    transition: opacity 0.15s linear;
}

/* 打印样式 */
@media print {
    .navbar, .btn, .breadcrumb, footer, #rejectModal {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
