/* 场控报备系统 - order.html 样式 */

/* 全局重置与基础设置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}
.form-container {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
h2 { text-align: center; margin-bottom: 25px; color: #2c3e50; font-size: 24px; font-weight: 600; }

/* 表单通用样式 */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 14px; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; transition: border-color 0.3s, box-shadow 0.3s; outline: none; background-color: #fff;
}
.form-control:focus { border-color: #4a90e2; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); }
.form-control:disabled { background-color: #e9ecef; cursor: not-allowed; }
.form-control[readonly] { background-color: #f0f0f0; color: #888; cursor: not-allowed; }

/* 认证区域 */
.auth-section {
    background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #eee;
}
.auth-row { display: flex; gap: 15px; }
.auth-col { flex: 1; }

/* 搜索下拉框样式 */
.searchable-select-wrapper { position: relative; display: flex; gap: 10px; }
.name-input-container { flex: 1; position: relative; }
.real-input-hidden { position: absolute; opacity: 0; pointer-events: none; }
.quantity-input { width: 80px; flex-shrink: 0; }
.options-list {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd;
    border-radius: 6px; margin-top: 4px; max-height: 200px; overflow-y: auto; z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); display: none;
}
.options-list.show { display: block; }
.option-item { padding: 10px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s; }
.option-item:last-child { border-bottom: none; }
.option-item:hover { background-color: #f0f7ff; color: #4a90e2; }

/* 按钮样式 */
.btn-submit {
    width: 100%; padding: 12px; background-color: #4a90e2; color: white; border: none;
    border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: background-color 0.3s, transform 0.1s; margin-top: 10px;
}
.btn-submit:hover { background-color: #357abd; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { background-color: #ccc; cursor: not-allowed; }

/* 用户信息栏 (登录后显示) */
.user-info-bar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: #e6f7ff; padding: 10px 15px; border-radius: 6px;
    margin-bottom: 20px; border: 1px solid #91d5ff; color: #096dd9; font-size: 14px;
    gap: 10px;
}
.user-info-bar span {
    flex: 1;
}
.logout-btn {
    background: none; border: none; color: #ff4d4f; cursor: pointer; font-size: 13px; text-decoration: underline;
}
.logout-btn:hover { color: #d9363e; }

/* 密码输入框样式 */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control {
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #888;
    font-size: 16px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover {
    color: #4a90e2;
}
/* 眼睛图标 - 显示状态 */
.toggle-password .icon-eye {
    display: inline-block;
}
.toggle-password .icon-eye-off {
    display: none;
}
.toggle-password.showing .icon-eye {
    display: none;
}
.toggle-password.showing .icon-eye-off {
    display: inline-block;
}

/* 返回按钮样式 */
.top-nav {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}
.back-btn {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #f0f2f5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.back-btn:hover {
    background-color: #e0e2e5;
    color: #333;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}
.close-btn:hover {
    color: #333;
}
.modal-content .form-group {
    padding: 15px 20px;
    margin-bottom: 0;
}
.modal-content .form-group label {
    font-weight: 600;
}
.modal-content .form-control {
    margin-top: 5px;
}
.form-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}
.btn-cancel {
    flex: 1;
    padding: 10px;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-cancel:hover {
    background-color: #e0e0e0;
}

/* 邮箱验证码输入框样式 */
.email-wrapper {
    display: flex;
    gap: 10px;
}
.email-wrapper .form-control {
    flex: 1;
}
.btn-send-code {
    padding: 10px 15px;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}
.btn-send-code:hover:not(:disabled) {
    background-color: #3fb911;
}
.btn-send-code:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 用户信息弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.modal-overlay .modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}
.modal-overlay .modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.modal-overlay .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}
.modal-overlay .modal-close:hover {
    color: #333;
}
.modal-overlay .modal-body {
    padding: 20px;
}
.modal-overlay .user-info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.modal-overlay .user-info-item:last-child {
    border-bottom: none;
}
.modal-overlay .user-info-item .label {
    font-weight: 500;
    color: #666;
    min-width: 70px;
}
.modal-overlay .user-info-item span:last-child {
    color: #333;
    word-break: break-all;
}
.modal-overlay .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}
.modal-overlay .btn-logout,
.modal-overlay .btn-close {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.modal-overlay .btn-logout {
    background-color: #dc3545;
    color: white;
}
.modal-overlay .btn-logout:hover {
    background-color: #c82333;
}
.modal-overlay .btn-close {
    background-color: #6c757d;
    color: white;
}
.modal-overlay .btn-close:hover {
    background-color: #5a6268;
}

/* 用户信息栏按钮样式 */
.edit-info-btn {
    margin-left: 10px;
    padding: 6px 12px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.edit-info-btn:hover {
    background-color: #138496;
}

/* 可编辑字段样式 */
.editable-field {
    cursor: pointer;
    padding: 2px 6px;
    border-bottom: 1px dashed #999;
    transition: all 0.3s;
}
.editable-field:hover {
    background-color: #f0f8ff;
    border-bottom-color: #17a2b8;
}
.editable-field.editing {
    border-bottom: none;
    background-color: transparent;
}
.editable-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #17a2b8;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.btn-save {
    background-color: #28a745 !important;
}
.btn-save:hover {
    background-color: #218838 !important;
}

/* 备注模块样式 */
.remark-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}
.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #4a90e2;
}
.radio-label span {
    transition: color 0.2s;
}
.radio-label:hover span {
    color: #4a90e2;
}
.remark-container {
    transition: all 0.3s ease;
}
.remark-container.hidden {
    display: none;
}
.remark-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: none;
    height: 100px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}
.remark-textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 特殊订单容器样式 */
.special-order-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#assessment_container {
    background: #fff7e6;
    border-color: #ffd591;
}

#fine_container {
    background: #fff1f0;
    border-color: #ffa39e;
}

/* Tab 切换样式 */
.tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4a90e2;
}

.tab-btn.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 罚款统计栏 */
#fineStatsBar {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

#fineStatsBar strong {
    color: #4a90e2;
}