* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-login:hover {
    opacity: 0.9;
}

.alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* 仪表盘样式 */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c82333;
}

.dashboard-main {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    text-align: center;
}

.welcome-message h2 {
    color: #28a745;
    margin-bottom: 15px;
}

/* 用户管理样式 */
.user-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.user-form-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

.user-list-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}

.no-users {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 可以根据需要添加一些针对不同用户等级的样式 */
.user-level-root {
    color: #dc3545;
    font-weight: bold;
}

.user-level-admin {
    color: #28a745;
    font-weight: bold;
}

.user-level-normal {
    color: #6c757d;
}

/* 车辆管理样式 */
.car-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.car-form-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.car-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.car-form .form-row .form-group {
    flex: 1;
}

.car-list-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-car-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-car-group:last-child {
    border-bottom: none;
}

.user-car-group h3 {
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.car-table th,
.car-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.car-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.car-table tr:hover {
    background-color: #f5f5f5;
}

.no-cars {
    color: #6c757d;
    font-style: italic;
    padding: 10px 0;
}

.no-users {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.function-links .btn-primary {
    margin: 0 10px;
}

/* 充值管理样式 */
.recharge-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.user-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.balance {
    margin: 0;
    color: #6c757d;
}

.amount {
    color: #28a745;
    font-weight: bold;
}

.recharge-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form .form-group {
    margin: 0;
}

.inline-form input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-success:hover {
    background: #218838;
}

.recharge-history-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recharge-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.recharge-table th,
.recharge-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.recharge-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.recharge-table tr:hover {
    background-color: #f5f5f5;
}

.no-users, .no-records {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.function-links .btn-primary {
    margin: 0 10px;
}

/* 加油消费样式 */
.consumption-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.consumption-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.consumption-form .form-row .form-group {
    flex: 1;
}

.consumption-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.consumption-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.consumption-form .form-group input:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
}

.btn-info {
    background: #17a2b8;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-warning:hover {
    background: #e0a800;
}

/* 报告页面样式 */
.report-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-content {
    max-width: 800px;
    margin: 0 auto;
}

.report-text {
    font-size: 18px;
    line-height: 1.6;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
}

.balance-info {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.balance-info p {
    margin: 5px 0;
}

.signature-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.signature-pad-container {
    margin: 15px 0;
}

#signature-pad {
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: white;
}

.signature-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.signature-preview {
    margin-top: 15px;
    text-align: center;
}

/* 消费历史样式 */
.consumption-history-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.consumption-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.consumption-table th,
.consumption-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.consumption-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.consumption-table tr:hover {
    background-color: #f5f5f5;
}

.no-records {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.function-links .btn-primary {
    margin: 0 10px;
}

/* 筛选表单样式 */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filter-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.filter-form .form-row .form-group {
    flex: 1;
}

.filter-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.filter-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.quick-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-buttons .btn-info {
    padding: 8px 15px;
    font-size: 14px;
}

.quick-buttons .btn-info.active {
    background: #0056b3;
    border-color: #004085;
}

.quick-buttons .btn-warning {
    padding: 8px 15px;
    font-size: 14px;
}

/* 消费表格样式 */
.consumption-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.consumption-table th,
.consumption-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.consumption-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.consumption-table tr:hover {
    background-color: #f5f5f5;
}

.amount {
    color: #e74c3c;
    font-weight: bold;
}

.no-records {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.function-links .btn-primary {
    margin: 0 10px;
}

/* 密码显示按钮样式 */
.password-display {
    font-family: 'Courier New', monospace;
    margin-right: 10px;
}

.view-password {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
}

.view-password:hover {
    background: #138496;
}

/* 表单样式调整 */
.user-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.user-form .form-row .form-group {
    flex: 1;
}

.user-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.user-form .form-group input,
.user-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.user-form .form-group input:focus,
.user-form .form-group select:focus {
    border-color: #667eea;
    outline: none;
}

/* 用户表格样式调整 */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}

/* 功能链接样式调整 */
.function-links {
    margin-top: 30px;
    text-align: center;
}

.function-links .btn-primary {
    margin: 0 10px;
}

/* 密码操作按钮样式 */
.password-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.password-actions .btn-info,
.password-actions .btn-warning {
    padding: 4px 8px;
    font-size: 12px;
}

.password-display {
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 5px;
}

/* 密码模态框样式 */
.password-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #e74c3c;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* 用户表格样式调整 */
.user-table td {
    vertical-align: top;
}

/* 车辆管理样式 - 按用户分类 */
.car-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.car-form-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.car-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.car-form .form-row .form-group {
    flex: 1;
}

.car-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.car-form .form-group input,
.car-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.car-form .form-group input:focus,
.car-form .form-group select:focus {
    border-color: #667eea;
    outline: none;
}

.car-list-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-car-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-car-group:last-child {
    border-bottom: none;
}

.user-car-group h3 {
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.car-table th,
.car-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.car-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.car-table tr:hover {
    background-color: #f5f5f5;
}

.no-cars {
    color: #6c757d;
    font-style: italic;
    padding: 10px 0;
}

.no-users {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c82333;
}

.alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 消费管理样式 */
.consumption-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}

.user-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.company-name {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.balance-info {
    text-align: right;
}

.balance {
    margin: 0;
    color: #6c757d;
}

.amount {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.user-actions {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.recharge-form {
    display: inline-block;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form .form-group {
    margin: 0;
}

.inline-form input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.car-list {
    margin-top: 15px;
}

.car-list h4 {
    margin-bottom: 10px;
    color: #555;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
}

.car-table th,
.car-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.car-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.car-table tr:hover {
    background-color: #f5f5f5;
}

.no-cars {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.no-users {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-success:hover {
    background: #218838;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* 油价显示区域样式 */
.fuel-price-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.fuel-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fuel-price-display p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.fuel-price-display p span {
    color: #e74c3c;
    font-size: 20px;
}

.fuel-price-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fuel-price-form input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    width: 150px;
}

/* 用户折扣样式 */
.user-discount {
    margin: 5px 0;
    color: #28a745;
    font-weight: bold;
}

.update-discount-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.update-discount-form h4 {
    margin-bottom: 10px;
    color: #333;
}

.discount-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.discount-form .form-group {
    margin: 0;
}

.discount-form select,
.discount-form input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.discount-form input {
    width: 120px;
}

/* 油价信息样式 */
.fuel-info {
    font-size: 14px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.car-table td.fuel-info {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 报告格式样式 */
.report-text {
    font-size: 18px;
    line-height: 1.6;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
    font-family: 'SimSun', '宋体', serif;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fuel-price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fuel-price-form {
        width: 100%;
    }
    
    .fuel-price-form input {
        flex: 1;
    }
    
    .discount-form {
        flex-wrap: wrap;
    }
    
    .discount-form .form-group {
        flex: 1;
        min-width: 120px;
    }
}

.consumption-header {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.company-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.company-search-form input {
    width: 250px;
}

.user-collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.user-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.3s;
}

.user-collapsible-header:hover {
    background: #f0f0f0;
}

.collapsible-toggle {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.collapsible-toggle:hover {
    background: #5a67d8;
}

.collapsible-content {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.cars-single-select {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.car-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.car-info .car-plate {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.single-car-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.single-car-form input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.car-consumption-form .btn-primary {
    white-space: nowrap;
}

.shift-record-row {
    height: 50px; /* 增大行高 */
    border-bottom: 1px solid #e0e0e0;
}

.shift-record-row:hover {
    background-color: #f5f5f5;
}

.shift-record-row td {
    padding: 12px 15px; /* 增加内边距 */
    vertical-align: middle;
}

.shift-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 15px;
}

.shift-table th {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

.shift-actions {
    margin-bottom: 15px;
    text-align: right;
}

.already-handovered-message {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.already-handovered-message p {
    margin: 10px 0;
    font-size: 16px;
}

.text-success {
    color: #4caf50;
    font-weight: bold;
}

.shift-info .amount {
    font-size: 24px;
    color: #e74c3c;
}

.fuel-calculation {
    background: #e8f4fc;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 12px;
    color: #333;
}

.fuel-calculation strong {
    color: #e74c3c;
    font-size: 14px;
}

.detailed-fuel-info {
    margin-top: 5px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 2px solid #667eea;
}

.detailed-fuel-info small {
    font-size: 12px;
    color: #666;
}

.detailed-fuel-info strong {
    color: #e74c3c;
    font-weight: bold;
}

.price-preview {
    margin-top: 5px;
    padding: 5px;
    background: #e8f5e8;
    border-radius: 4px;
    text-align: center;
}

.price-preview .preview-amount {
    color: #e74c3c;
    font-weight: bold;
}

/* 调整car-item布局 */
.car-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.car-info {
    flex: 1;
}

.car-plate {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.car-consumption-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 200px;
}