/* ===== 基础布局 ===== */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}
.container, .login-box {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.login-box { max-width: 400px; }

/* ===== 系统标题 ===== */
.system-title {
    text-align: center;
    margin: 30px 0 20px;
}
.system-title h1 {
    color: #333;
    font-size: 28px;
    margin: 0;
}

/* ===== 语言切换器 ===== */
.lang-switcher {
    text-align: right;
    margin-bottom: 15px;
}
.lang-switcher select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    width: auto;           /* 覆盖全局的 width: 100% */
    display: inline-block; /* 确保不占满父容器 */
}

/* ===== 头部操作栏 ===== */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-add {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
}
.btn-add:hover { background: #218838; }

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}
.search-box input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}
.search-box button {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.search-box button:hover { background: #0056b3; }

/* 客户页和搜索页专用的搜索表单（与内容框同一行） */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}
.search-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.search-form button {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== 筛选表单 ===== */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.filter-row label {
    font-weight: bold;
    min-width: 80px;
}
.filter-row select {
    width: 400px;
    max-width: 100%;
}
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.date-range input[type="date"] {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: auto;
    min-width: 140px;
}
.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}
.filter-actions button, .filter-actions a.btn-reset {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}
.filter-actions button[type="submit"] { background: #007bff; color: white; }
.filter-actions a.btn-reset { background: #6c757d; color: white; }

/* ===== 表格 ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th { background: #f2f2f2; }
.remark-column {
    max-width: 200px;
    word-wrap: break-word;
}

/* ===== 分页 ===== */
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination strong {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #007bff;
}
.pagination strong {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== 菜单 ===== */
.menu {
    list-style: none;
    padding: 0;
}
.menu li {
    display: inline-block;
    margin-right: 10px;
}
.menu li a {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}
.menu li a:hover { background: #0056b3; }

/* ===== 表单通用 ===== */
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover { background: #0056b3; }
.error { color: red; }
.success { color: green; }

/* ===== 复选框组 ===== */
.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

/* ===== 快捷管理 ===== */
.quick-actions {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 20px;
}
.quick-actions h3 {
    margin-top: 0;
    color: #333;
}
.quick-actions .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.quick-actions .btn:hover { background: #218838; }

/* 导入出货号 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.template-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}
.template-link:hover {
    color: #0056b3;
}

/* 其他辅助类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

