/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand img {
    max-height: 40px;
}

/* 内容区域样式 */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 表格样式 */
.table {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    padding: .375rem 1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* 警告和提示样式 */
.alert {
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
}

@media print {
    body, .container {
        background: #fff !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .table {
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .table th, .table td {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #333 !important;
        padding: 4px 8px !important;
    }
    /* 隐藏不需要打印的元素 */
    .navbar, .btn, .alert, .card, .card-header {
        display: none !important;
    }
    /* 避免分页时表头丢失 */
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
}

/* 屏幕和打印都生效 */
.table th:first-child,
.table td:first-child {
    max-width: 360px;
    width: 360px;
    word-break: break-all;
    white-space: nowrap;
}

/* 打印时再加强一次 */
@media print {
    .table th:first-child,
    .table td:first-child {
        max-width: 360px !important;
        width: 360px !important;
        word-break: break-all !important;
        white-space: nowrap !important;
    }
}

.table th {
    font-size: 12px;
}

@media print {
    .table th {
        font-size: 11px !important;
    }
} 