@charset "utf-8";

body { margin: 0; font-family: "Microsoft YaHei", sans-serif; background-color: #f9f9f9; }

/* 顶部导航样式 */
.top-nav-container { background-color: #333; color: white; padding: 10px 0; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.top-nav-user { float: right; margin-right: 20px; font-size: 14px; }
.top-nav-links { padding-left: 20px; }
.top-nav-links a { color: #ddd; text-decoration: none; margin-right: 15px; font-size: 14px; transition: color 0.3s; }
.top-nav-links a:hover { color: white; }

/* 工具栏 */
.toolbar-container { max-width: 1200px; margin: 0 auto 20px auto; background: white; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.toolbar-title { font-size: 18px; font-weight: bold; color: #333; display: flex; align-items: center; }
.toolbar-title span { color: #007bff; margin-left: 10px; }
.action-buttons button, .action-buttons a { margin-left: 5px; }

/* SQL 控制台 */
.sql-console-embed { display: block; max-width: 1200px; margin: 20px auto; background: white; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #f0ad4e; box-sizing: border-box; }
#sql_console { display: none; } /* 保持对旧ID的兼容或者之后清理，但在HTML中我们使用了class和id，这里主要针对弹窗时的样式覆盖 */
/* 直接使用 ID 覆盖 display: none */
#sql_console.sql-console-embed { display: block; }

#sql_input { width: 100%; height: 120px; font-family: Consolas, monospace; padding: 10px; border: 1px solid #ddd; border-radius: 3px; margin-bottom: 10px; box-sizing: border-box; resize: vertical; }
.quick-actions { margin-bottom: 10px; }
.quick-actions button { margin-right: 5px; margin-bottom: 5px; font-size: 12px; padding: 2px 8px; cursor: pointer; }

/* 表备注信息容器 */
.table-info-container { max-width: 1200px; margin: 0 auto 20px auto; background: white; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #28a745; text-align: center; }
.table-info-title { font-size: 18px; font-weight: bold; color: #28a745; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.table-info-section { margin-bottom: 15px; text-align: center; }
.table-info-section strong { display: block; color: #333; margin-bottom: 5px; font-size: 14px; }
.table-info-content { background-color: #f8f9fa; padding: 10px 15px; border-radius: 3px; border-left: 3px solid #007bff; font-size: 14px; line-height: 1.5; color: #495057; display: inline-block; text-align: left; max-width: 90%; margin: 0 auto; }

/* 编辑按钮样式 */
.edit-table-info-btn { background-color: #007bff; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 12px; margin-left: 10px; transition: background-color 0.3s; }
.edit-table-info-btn:hover { background-color: #0056b3; }

/* 编辑表单样式 */
.table-info-edit-form { display: none; margin-top: 10px; text-align: left; }
.table-info-edit-form textarea { width: 100%; height: 80px; padding: 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; resize: vertical; }
.table-info-edit-form .form-actions { margin-top: 10px; text-align: center; }
.table-info-edit-form .form-actions button { margin: 0 5px; padding: 5px 15px; border: none; border-radius: 3px; cursor: pointer; }
.table-info-edit-form .form-actions .btn-save { background-color: #28a745; color: white; }
.table-info-edit-form .form-actions .btn-cancel { background-color: #6c757d; color: white; }

/* 表格容器 */
.table-container { max-width: 1200px; margin: 0 auto; background: white; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.data { width: 100%; border-collapse: collapse; }
.data th { background-color: #f2f2f2; color: #333; padding: 10px; border-bottom: 2px solid #ddd; text-align: left; }
.data td { padding: 10px; border-bottom: 1px solid #eee; color: #666; }
.data tr:hover td { background-color: #f9f9f9; }
.hilite { background: #fda !important; }

.field-type { color: #d9534f; }
.field-null { color: #999; }
.field-default { color: #5bc0de; }
