.lw-plugin { font-size: 14px; color: #333; }
.lw-plugin-shell .el-main, .lw-plugin-shell .el-container, .lw-plugin-shell .main-card { min-width: 0; box-sizing: border-box; }
.lw-plugin .lw-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.lw-plugin .lw-header h1 { font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.lw-plugin .lw-header p { margin: 0; color: #888; }
.lw-plugin .lw-empty { text-align: center; padding: 60px 0; color: #999; }
.lw-plugin .lw-empty i { font-size: 48px; color: #ccc; display: block; margin-bottom: 12px; }
.lw-plugin .lw-tag { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 11px; font-size: 12px; }
.lw-plugin .lw-tag-success { background: #e8f8ee; color: #2ba471; }
.lw-plugin .lw-tag-warning { background: #fff3e6; color: #e37318; }
.lw-plugin .lw-tag-danger { background: #fdeceb; color: #d54941; }
.lw-plugin .lw-tag-info { background: #f2f3f5; color: #777; }
.lw-plugin .lw-tag-primary { background: #e8f0ff; color: #0052d9; }
.lw-plugin .lw-card { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.lw-plugin .lw-card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.lw-plugin .lw-card-title::before { content: ''; display: inline-block; width: 4px; height: 14px; background: #ff6b35; margin-right: 8px; border-radius: 2px; }
.lw-plugin .lw-card-title span:first-child { display: flex; align-items: center; }
.lw-plugin .lw-tabs { display: flex; gap: 24px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.lw-plugin .lw-tabs .tab { padding: 10px 0; cursor: pointer; color: #666; position: relative; }
.lw-plugin .lw-tabs .tab.active { color: #ff6b35; font-weight: 600; }
.lw-plugin .lw-tabs .tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #ff6b35; }
.lw-plugin .lw-tabs .tab .badge { background: #e34d59; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.lw-plugin .lw-table { width: 100%; border-collapse: collapse; }
.lw-plugin .lw-table th { text-align: left; font-weight: 500; color: #888; background: #fafbfc; padding: 10px 12px; font-size: 13px; }
.lw-plugin .lw-table td { padding: 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.lw-plugin .lw-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #edf0f4; border-radius: 10px; }
.lw-plugin .lw-table-scroll .lw-table { min-width: 1120px; }
.lw-plugin .lw-chance-table th { white-space: nowrap; }
.lw-plugin .lw-chance-table td { line-height: 1.6; }
.lw-plugin .lw-pager { display: flex; justify-content: flex-end; margin-top: 16px; }
.lw-plugin .lw-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: 6px; border: 1px solid #ff6b35; color: #ff6b35; background: #fff; cursor: pointer; font-size: 13px; transition: all .2s; }
.lw-plugin .lw-btn:hover { background: #fff4ee; }
.lw-plugin .lw-btn.primary { background: #ff6b35; color: #fff; }
.lw-plugin .lw-btn.primary:hover { background: #f05a24; }
.lw-plugin .lw-btn.small { height: 26px; padding: 0 10px; font-size: 12px; }
.lw-plugin .lw-btn[disabled], .lw-plugin .lw-btn.disabled { opacity: .5; cursor: not-allowed; }
.lw-plugin .lw-muted { color: #999; font-size: 12px; }
.lw-plugin .lw-mono { font-family: Consolas, Menlo, monospace; letter-spacing: 1px; }
.lw-plugin .lw-kv { display: grid; grid-template-columns: 100px 1fr; row-gap: 10px; }
.lw-plugin .lw-kv .k { color: #888; }
@media (max-width: 768px) {
  .lw-plugin .lw-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lw-plugin .lw-table th:nth-child(n+4), .lw-plugin .lw-table td:nth-child(n+4) { display: none; }
  .lw-plugin .lw-table th:last-child, .lw-plugin .lw-table td:last-child { display: table-cell; }
}
@media (max-width: 768px) {
  .lw-plugin-shell .el-main { padding-left: 12px !important; padding-right: 12px !important; padding-bottom: 12px !important; margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 0 !important; }
  .lw-plugin-shell .main-card { max-width: 100%; margin: 0 !important; padding: 12px !important; }
  .lw-plugin { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .lw-plugin .lw-table-scroll { overflow: visible; border: 0; }
  .lw-plugin .lw-mobile-table, .lw-plugin .lw-table-scroll .lw-mobile-table { display: block; width: 100%; min-width: 0; border-collapse: separate; }
  .lw-plugin .lw-mobile-table thead { display: none; }
  .lw-plugin .lw-mobile-table tbody { display: grid; gap: 12px; }
  .lw-plugin .lw-mobile-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px; border: 1px solid #e8edf4; border-radius: 10px; background: #fff; }
  .lw-plugin .lw-mobile-table td, .lw-plugin .lw-mobile-table td:nth-child(n+4), .lw-plugin .lw-mobile-table td:last-child { display: grid; grid-template-columns: minmax(70px, .8fr) minmax(0, 1.4fr); align-items: start; gap: 8px; width: auto; min-width: 0; padding: 7px 0; border: 0; line-height: 20px; text-align: left; overflow-wrap: anywhere; }
  .lw-plugin .lw-mobile-table td::before { content: attr(data-label); color: #8692a5; font-family: inherit; letter-spacing: normal; font-size: 12px; }
  .lw-plugin .lw-mobile-table td > div { grid-column: 2; }
  .lw-plugin .lw-mobile-table td.lw-empty { display: block; }
  .lw-plugin .lw-mobile-table td.lw-empty::before { display: none; }
  .lw-plugin .lw-mobile-table td.lw-money { white-space: normal; }
  .lw-plugin .lw-mobile-table .lw-money-value { white-space: nowrap; }
  .lw-plugin .lw-mobile-table .lw-tag { justify-self: start; align-self: start; white-space: nowrap; }
  .lw-plugin .lw-mobile-table .lw-mobile-value { min-width: 0; max-width: 100%; }
  .lw-plugin .lw-pager { justify-content: center; max-width: 100%; }
  .lw-plugin .lw-pager .el-pagination { white-space: normal; padding: 0; }
  .lw-plugin.lw-card-page .lw-mobile-table td.lw-card-operation { width: 100%; min-width: 0; text-align: left; }
  .lw-plugin.lw-card-page .lw-card-action-group { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; min-width: 0; min-height: 44px; gap: 8px; }
  .lw-plugin.lw-card-page .lw-card-icon-btn.el-button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; }
  .lw-plugin .lw-header > div { min-width: 0; max-width: 100%; }
}
