* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; background: #f5f7fa; }

.layout { display: flex; min-height: 100vh; }

.sidebar { width: 240px; background: #1e293b; color: #fff; position: fixed; height: 100vh; overflow-y: auto; }
.sidebar-logo { height: 60px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #334155; }
.sidebar-logo h1 { font-size: 18px; color: #ff2d55; }
.sidebar-logo i { margin-right: 8px; }

.nav-section { padding: 12px 16px; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-top: 12px; }
.nav-item { display: flex; align-items: center; padding: 10px 20px; color: #94a3b8; text-decoration: none; transition: all .2s; font-size: 14px; }
.nav-item:hover { background: #334155; color: #fff; }
.nav-item.active { background: rgba(255,45,85,.1); color: #ff2d55; border-left: 3px solid #ff2d55; }
.nav-item i { width: 20px; margin-right: 12px; text-align: center; }
.nav-logout { margin-top: 20px; border-top: 1px solid #334155; padding-top: 20px; }
.nav-logout .nav-item { color: #f87171; }
.nav-logout .nav-item:hover { background: rgba(248,113,113,.1); }

.main { margin-left: 240px; flex: 1; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 18px; font-weight: 600; color: #1e293b; }
.topbar-user { font-size: 14px; color: #64748b; }
.topbar-user span { color: #ff2d55; font-weight: 500; }

.content { padding: 24px; }

.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; font-weight: 600; color: #1e293b; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 20px; }

.form-input { width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 14px; transition: all .2s; }
.form-input:focus { outline: none; border-color: #ff2d55; box-shadow: 0 0 0 3px rgba(255,45,85,.1); }
.form-select { padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 14px; background: #fff; cursor: pointer; }
.form-select:focus { outline: none; border-color: #ff2d55; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: #ff2d55; color: #fff; }
.btn-primary:hover { background: #e0264a; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-secondary { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.btn-secondary:hover { background: #f9fafb; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
thead { background: #f8fafc; }
th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #e5e7eb; }
td { padding: 14px 16px; font-size: 14px; color: #374151; border-bottom: 1px solid #f1f5f9; }
tr:hover td { background: #f8fafc; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-amber { background: #fef3c7; color: #92400e; }

.action-btn { padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; cursor: pointer; border: none; transition: all .2s; }
.action-btn-view { background: #eff6ff; color: #2563eb; }
.action-btn-view:hover { background: #dbeafe; }
.action-btn-edit { background: #fffbeb; color: #d97706; }
.action-btn-edit:hover { background: #fef3c7; }
.action-btn-delete { background: #fef2f2; color: #dc2626; }
.action-btn-delete:hover { background: #fee2e2; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat-card .label { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; }
.stat-card.blue .value { color: #3b82f6; }
.stat-card.green .value { color: #10b981; }
.stat-card.red .value { color: #ef4444; }
.stat-card.amber .value { color: #f59e0b; }
.stat-card.purple .value { color: #8b5cf6; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #f1f5f9; margin-top: 16px; }
.pagination-info { font-size: 14px; color: #64748b; }
.pagination-info span { color: #ff2d55; font-weight: 500; }
.pagination-btns { display: flex; gap: 8px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 12px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-header .close { background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 12px; background: #f8fafc; }

.loading { display: flex; justify-content: center; padding: 48px; }
.loading i { font-size: 32px; color: #ff2d55; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 48px; color: #94a3b8; }
.empty i { font-size: 48px; margin-bottom: 16px; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.login-wrap { display: flex; min-height: 100vh; }

.image-section { display: none; flex: 1; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); position: relative; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .image-section { display: flex; } }
.image-section::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 100px; background: linear-gradient(to right, transparent, #1e293b); pointer-events: none; z-index: 10; }
.image-content { text-align: center; color: #fff; padding: 40px; position: relative; z-index: 5; }
.image-content .icon { width: 80px; height: 80px; background: rgba(255,45,85,.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 32px; color: #ff2d55; }
.image-content h2 { font-size: 32px; margin-bottom: 16px; }
.image-content p { color: #94a3b8; font-size: 16px; line-height: 1.6; }

.form-section { width: 100%; max-width: 480px; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: #fff; }
@media (min-width: 1024px) { .form-section { min-width: 480px; } }

.form-header { margin-bottom: 32px; }
.form-header .icon { width: 56px; height: 56px; background: #fff5f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.form-header .icon i { font-size: 24px; color: #ff2d55; }
.form-header h1 { font-size: 28px; font-weight: 700; color: #1e293b; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.form-header h1 span { font-size: 12px; padding: 4px 10px; background: #dbeafe; color: #1e40af; border-radius: 12px; font-weight: 500; }
.form-header p { color: #64748b; font-size: 14px; }

.admin-form-group { margin-bottom: 20px; }
.admin-form-group label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 8px; }
.admin-form-group label i { color: #ff2d55; margin-right: 6px; }
.admin-form-group input { width: 100%; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; transition: all .2s; }
.admin-form-group input:focus { outline: none; border-color: #ff2d55; box-shadow: 0 0 0 3px rgba(255,45,85,.1); }
.admin-form-group input.error { border-color: #ef4444; background: #fef2f2; }
.admin-form-group .error-msg { color: #ef4444; font-size: 13px; margin-top: 6px; }

.form-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: #ff2d55; }
.remember span { font-size: 14px; color: #64748b; }
.form-options a { font-size: 14px; color: #ff2d55; text-decoration: none; }
.form-options a:hover { text-decoration: underline; }

.btn-login { width: 100%; padding: 14px; background: #ff2d55; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-login:hover { background: #e0264a; }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }
.btn-login .spinner { width: 18px; height: 18px; border: 2px solid transparent; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

.divider { display: flex; align-items: center; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.divider span { padding: 0 16px; color: #94a3b8; font-size: 14px; }

.btn-home { display: block; width: 100%; padding: 14px; background: #fff; color: #64748b; border: 1px solid #e5e7eb; border-radius: 8px; text-align: center; text-decoration: none; font-size: 15px; transition: all .2s; }
.btn-home:hover { border-color: #ff2d55; color: #ff2d55; }

.card-filter { margin-bottom: 24px; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-input { flex: 1; min-width: 200px; }
.filter-select { width: auto; }

.mono-text { font-family: monospace; font-size: 13px; }
.item-title { font-weight: 500; font-size: 14px; }
.item-sub { font-size: 12px; color: #94a3b8; }
.price-text { font-weight: 600; color: #ff2d55; }
.price-success { font-weight: 600; color: #10b981; }
.price-warning { color: #f59e0b; }
.price-info { color: #3b82f6; }
.price-danger { color: #ef4444; }
.muted-text { color: #94a3b8; font-size: 13px; }
.ellipsis-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.action-btns { display: flex; gap: 8px; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.concert-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.concert-img-lg { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }

.info-box { background: #f8fafc; padding: 12px; border-radius: 8px; }
.info-box-sm { background: #f8fafc; padding: 16px; border-radius: 8px; }
.info-box-blue { background: #eff6ff; padding: 16px; border-radius: 8px; text-align: center; }
.info-box-green { background: #ecfdf5; padding: 16px; border-radius: 8px; text-align: center; }
.info-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.info-value { font-weight: 500; }
.info-value-lg { font-size: 20px; font-weight: 700; }
.info-value-lg.blue { color: #3b82f6; }
.info-value-lg.green { color: #10b981; }

.section-title { font-weight: 500; margin-bottom: 12px; }
.section-title i { color: #ff2d55; margin-right: 8px; }
.section-row { display: flex; gap: 16px; background: #f8fafc; padding: 16px; border-radius: 8px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-grid > div { background: #f8fafc; padding: 12px; border-radius: 8px; }

.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.order-header-left p:first-child { font-size: 12px; color: #64748b; }
.order-header-left p:last-child { font-family: monospace; font-size: 18px; }
.badge-lg { font-size: 14px; padding: 8px 16px; }

.user-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.user-header h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.user-header p { color: #64748b; }

.form-group-inline { margin-bottom: 16px; }
.form-input-readonly { background: #f8fafc; }
.required-mark { color: #ef4444; }

.modal-sm { max-width: 400px; }
.modal-md { max-width: 500px; }
.modal-lg { max-width: 700px; }

.amount-positive { color: #10b981; font-weight: 600; }
.amount-negative { color: #ef4444; font-weight: 600; }
.balance-change { font-size: 13px; color: #64748b; }
.date-text { font-size: 13px; }

.pagination-pad { padding: 16px 20px; }
.empty-cell { text-align: center; padding: 24px; color: #94a3b8; }

.card-mb { margin-bottom: 24px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-row-center { display: flex; justify-content: space-between; align-items: center; }
.input-flex { flex: 1; min-width: 200px; }
.select-auto { width: auto; }
.title-primary { font-weight: 500; color: #ff2d55; }
.title-medium { font-weight: 500; }
.icon-red { color: #ef4444; }
.icon-red-mr { color: #ef4444; margin-right: 4px; }
.icon-green { color: #10b981; }
.icon-green-mr { color: #10b981; margin-right: 4px; }
.icon-amber { color: #f59e0b; }
.icon-width { width: 16px; }
.icon-mr { margin-right: 8px; }
.text-muted-sm { font-size: 12px; color: #94a3b8; }
.text-muted-md { color: #64748b; font-size: 14px; }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-link { color: #3b82f6; font-size: 13px; }
.text-price { font-weight: 600; color: #f59e0b; }
.text-slash { color: #94a3b8; }
.ellipsis-200 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.banner-img { width: 120px; height: 60px; object-fit: cover; border-radius: 4px; }
.concert-img-xl { width: 160px; height: 160px; border-radius: 8px; object-fit: cover; }
.flex-1 { flex: 1; }
.title-lg { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.sub-text { color: #64748b; margin-bottom: 12px; }
.info-text { font-size: 14px; color: #64748b; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-box { padding: 16px; border-radius: 8px; text-align: center; }
.stat-box-blue { background: #eff6ff; padding: 16px; border-radius: 8px; text-align: center; }
.stat-box-green { background: #ecfdf5; padding: 16px; border-radius: 8px; text-align: center; }
.stat-box-red { background: #fef2f2; padding: 16px; border-radius: 8px; text-align: center; }
.stat-box-purple { background: #f5f3ff; padding: 16px; border-radius: 8px; text-align: center; }
.stat-box-amber { background: #fffbeb; padding: 16px; border-radius: 8px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .form-grid-2 { grid-template-columns: 1fr; } }

.venue-layout-overlay { align-items: stretch; padding: 24px; }
.modal-layout { max-width: 1400px; width: 100%; height: calc(100vh - 48px); display: flex; flex-direction: column; }
.layout-body { display: grid; grid-template-columns: 320px 1fr; gap: 20px; min-height: 0; flex: 1; }
@media (max-width: 1080px) { .layout-body { grid-template-columns: 1fr; overflow-y: auto; } }
.layout-sidebar { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-right: 4px; }
.layout-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.layout-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.panel-title { font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 12px; }
.layout-actions-line { display: flex; gap: 10px; }
.btn-block { width: 100%; }
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tool-chip { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font-size: 13px; cursor: pointer; transition: all .2s; }
.tool-chip:hover { border-color: #ff2d55; color: #ff2d55; }
.tool-chip.active { background: #fff1f3; border-color: #ff2d55; color: #be123c; font-weight: 600; }
.color-input { width: 100%; height: 42px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; }
.layout-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.metric-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; text-align: center; }
.metric-label { display: block; color: #64748b; font-size: 12px; margin-bottom: 6px; }
.layout-legend-list { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; }
.legend-color { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.legend-name { flex: 1; color: #0f172a; font-size: 13px; font-weight: 500; }
.legend-count { font-size: 12px; color: #64748b; }
.layout-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 13px; }
@media (max-width: 720px) { .layout-hint { flex-direction: column; align-items: flex-start; } }
.layout-canvas-wrap { flex: 1; min-height: 0; overflow: auto; background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border: 1px solid #dbeafe; border-radius: 14px; padding: 18px; }
.layout-canvas { display: grid; gap: 4px; min-width: 720px; user-select: none; }
.layout-cell { aspect-ratio: 1 / 1; border: 1px solid #e2e8f0; border-radius: 6px; background: rgba(255,255,255,.9); color: #fff; font-size: 10px; font-weight: 700; cursor: crosshair; display: flex; align-items: center; justify-content: center; padding: 2px; text-align: center; transition: transform .08s, box-shadow .08s, border-color .08s; }
.layout-cell:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.layout-cell.type-empty { background: rgba(255,255,255,.7); color: transparent; }
.layout-cell.type-aisle { color: #64748b; border-style: dashed; }
.layout-cell.type-stage { min-height: 30px; }
.layout-cell.selected { outline: 2px solid #f97316; outline-offset: 1px; }
.layout-selected { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #475569; background: #f8fafc; border-radius: 10px; padding: 12px 14px; border: 1px solid #e2e8f0; }
.stat-value-blue { font-size: 24px; font-weight: 700; color: #3b82f6; }
.stat-value-green { font-size: 24px; font-weight: 700; color: #10b981; }
.stat-value-red { font-size: 24px; font-weight: 700; color: #ef4444; }
.stat-value-purple { font-size: 24px; font-weight: 700; color: #8b5cf6; }
.stat-value-amber { font-size: 24px; font-weight: 700; color: #f59e0b; }
.stat-label { font-size: 12px; color: #64748b; }
.desc-box { background: #f8fafc; padding: 16px; border-radius: 8px; }
.desc-title { font-weight: 500; margin-bottom: 8px; }
.desc-text { font-size: 14px; color: #64748b; white-space: pre-line; }
.detail-header { display: flex; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mt-16 { margin-top: 16px; }
.resize-v { resize: vertical; }
.form-group { margin-bottom: 16px; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.chart-height-sm { height: 250px; }
.chart-height-md { height: 300px; }
.card-body-no-pad { padding: 0; }
.card-header-icon { color: #ff2d55; margin-right: 8px; }
.card-header-link { font-size: 13px; color: #ff2d55; text-decoration: none; }
.order-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; }
.order-item-left p:first-child { font-weight: 500; color: #1e293b; font-size: 14px; }
.order-item-left p:last-child { font-size: 12px; color: #64748b; }
.order-item-right { text-align: right; }
.order-item-right p:first-child { font-weight: 600; color: #ff2d55; font-size: 14px; }
.order-item-right p:last-child { font-size: 12px; color: #94a3b8; }
.rank-num { width: 50px; text-align: center; font-weight: 600; color: #ff2d55; }
.concert-title { font-weight: 500; }
.order-count { text-align: right; color: #64748b; font-size: 13px; }
.sales-amount { text-align: right; font-weight: 600; color: #10b981; }

.icon-primary { color: #ff2d55; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 800px; }
.text-primary { color: #ff2d55; }
.text-warning { color: #f59e0b; }
.points-text { color: #f59e0b; }

.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-label input { width: 16px; height: 16px; }
.batch-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.row-selected { background: #fff5f6 !important; }
.row-selected td { background: #fff5f6 !important; }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-bottom: none; border-radius: 6px 6px 0 0; }
.editor-toolbar button { width: 32px; height: 32px; border: none; background: #fff; border-radius: 4px; cursor: pointer; color: #64748b; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.editor-toolbar button:hover { background: #ff2d55; color: #fff; }
.toolbar-divider { width: 1px; background: #e5e7eb; margin: 0 4px; }
.rich-editor { min-height: 280px; max-height: 400px; overflow-y: auto; padding: 16px; border: 1px solid #e5e7eb; border-radius: 0 0 6px 6px; font-size: 14px; line-height: 1.8; outline: none; }
.rich-editor:focus { border-color: #ff2d55; }
.rich-editor:empty::before { content: '请输入公告内容...'; color: #94a3b8; }
.rich-editor h1, .rich-editor h2, .rich-editor h3 { margin: 16px 0 8px; color: #1e293b; }
.rich-editor h1 { font-size: 24px; }
.rich-editor h2 { font-size: 20px; }
.rich-editor h3 { font-size: 16px; }
.rich-editor p { margin: 8px 0; }
.rich-editor ul, .rich-editor ol { margin: 8px 0; padding-left: 24px; }
.rich-editor img { max-width: 100%; border-radius: 4px; margin: 8px 0; }
.rich-editor a { color: #ff2d55; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.select-auto { width: auto; min-width: 120px; }
