/* ============================================================
 * پىراۋا ئىمتىھانى — باشقۇرۇش سۇپىسى (Styles)
 * RTL ۋە ئۇيغۇرچە قوللىغۇچى — ئاق (يورۇق) تېما
 * ============================================================ */

:root {
  --bg: #f4f5fb;
  --bg-soft: #eceef7;
  --card: #ffffff;
  --card-2: #f1f3fa;
  --border: #e2e5f0;
  --text: #232838;
  --text-muted: #66708a;
  --primary: #6d5ef0;
  --primary-2: #8b7bf5;
  --primary-grad: linear-gradient(135deg, #6d5ef0 0%, #8b7bf5 100%);
  --success: #0e9f6e;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(35, 40, 70, 0.10);
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* UKIJEKRAN فونتى — ئالدى بەت (كىچىك پروگرامما) بىلەن ئوخشاش */
@font-face {
  font-family: "UKIJ";
  src: url("../fonts/UKIJEKRAN.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  font-family: "UKIJ", "Segoe UI", "Noto Sans Arabic", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

body { direction: rtl; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9cde0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #adb3cf; }

input, select, textarea, button { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }

/* ==================== 登录页 ==================== */
.login-view {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 800px at 70% 20%, #e6e3fb 0%, var(--bg) 60%);
  z-index: 100;
}
.login-bg {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #8b7bf5 0, transparent 35%),
    radial-gradient(circle at 80% 70%, #6d5ef0 0, transparent 30%);
}
.login-card {
  position: relative; width: 380px; max-width: 92vw;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px 36px 36px; text-align: center;
  box-shadow: 0 16px 50px rgba(35, 40, 70, 0.14);
}
.login-logo-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; border-radius: 22px;
  background: var(--primary-grad); box-shadow: 0 8px 24px rgba(109, 94, 240, 0.35);
}
.login-title { font-size: 24px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.login-subtitle { color: var(--text-muted); margin: 6px 0 26px; font-size: 15px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px; height: 48px;
}
.login-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 94, 240, 0.18); }
.login-input-icon { font-size: 18px; }
.login-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); }
.login-input::placeholder { color: var(--text-muted); }
.login-btn {
  height: 48px; border: none; border-radius: var(--radius-sm);
  background: var(--primary-grad); color: #fff; font-size: 16px; font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}
.login-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.login-btn:active { transform: scale(0.98); }
.login-hint { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.login-hint code {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; color: var(--primary);
}

/* ==================== 布局 ==================== */
.app-view { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: var(--sidebar-w); background: var(--card);
  border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 40;
  transition: transform 0.25s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px; border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 13px; background: var(--primary-grad);
}
.brand-name { font-weight: 700; font-size: 16px; color: var(--text); }
.brand-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 4px;
  border-radius: var(--radius-sm); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; border: none; background: transparent;
  width: 100%; text-align: right; font-size: 14px;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); }
.nav-item.active {
  background: var(--primary-grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(109, 94, 240, 0.35);
}
.nav-item .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-badge {
  margin-inline-start: auto; background: var(--danger); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px; min-width: 22px; text-align: center;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.9); color: var(--primary); }

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); font-size: 19px;
}
.user-name { font-weight: 600; font-size: 13px; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-muted); }
.logout-btn {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text-muted);
  transition: all 0.15s; font-size: 13px;
}
.logout-btn:hover { color: var(--danger); border-color: var(--danger); background: rgba(220, 38, 38, 0.06); }

.change-pwd-btn {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text-muted);
  transition: all 0.15s; font-size: 13px; margin-bottom: 8px;
}
.change-pwd-btn:hover { color: var(--primary); border-color: var(--primary); background: rgba(109, 94, 240, 0.06); }

.sidebar-mask {
  position: fixed; inset: 0; background: rgba(23, 27, 46, 0.45);
  z-index: 35; display: none;
}

.main {
  flex: 1; margin-inline-start: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh; min-width: 0;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; height: 64px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.topbar-btn {
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 13px; transition: all 0.15s;
}
.topbar-btn:hover { border-color: var(--primary); color: var(--primary); }
.topbar-date { color: var(--text-muted); font-size: 12px; }

.content { padding: 24px; flex: 1; }

/* ==================== 卡片与网格 ==================== */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text); }
.page-sub { color: var(--text-muted); font-size: 13px; }
.header-actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: none; font-size: 13px; font-weight: 600;
  transition: all 0.15s;
}
.btn-primary { background: var(--primary-grad); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: rgba(14, 159, 110, 0.12); color: var(--success); border: 1px solid rgba(14, 159, 110, 0.35); }
.btn-success:hover { background: rgba(14, 159, 110, 0.2); }
.btn-danger { background: rgba(220, 38, 38, 0.10); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.35); }
.btn-danger:hover { background: rgba(220, 38, 38, 0.18); }
.btn-warning { background: rgba(217, 119, 6, 0.10); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.35); }
.btn-warning:hover { background: rgba(217, 119, 6, 0.18); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.stat-icon.purple { background: rgba(109,94,240,0.12); }
.stat-icon.green { background: rgba(14,159,110,0.12); }
.stat-icon.blue { background: rgba(37,99,235,0.12); }
.stat-icon.amber { background: rgba(217,119,6,0.12); }
.stat-icon.red { background: rgba(220,38,38,0.10); }
.stat-icon.teal { background: rgba(13,148,136,0.12); }
.stat-info { min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-value { font-size: 22px; font-weight: 700; margin-top: 2px; color: var(--text); }
.stat-value small { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-inline-start: 4px; }
.stat-change { font-size: 11px; margin-top: 2px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.card-title .card-icon { font-size: 18px; }

/* ==================== 表格 ==================== */
.table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.table-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.table-toolbar .search-input { max-width: 280px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--bg-soft); color: var(--text-muted);
  font-size: 12px; font-weight: 600; text-align: right;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px; border-bottom: 1px solid rgba(226, 229, 240, 0.8);
  font-size: 13px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(109, 94, 240, 0.05); }
td.actions { white-space: nowrap; }
td .btn + .btn { margin-inline-start: 6px; }

.thumb {
  width: 40px; height: 40px; border-radius: 8px; background: var(--card-2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  flex-shrink: 0; border: none; padding: 0;
}
img.thumb { object-fit: cover; }
img.thumb.thumb-err { display: none; }
.thumb-wrap { position: relative; width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.thumb-wrap .thumb-fallback { display: flex; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
img.thumb.thumb-err ~ .thumb-fallback { display: flex !important; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-green { background: rgba(14,159,110,0.12); color: var(--success); }
.badge-amber { background: rgba(217,119,6,0.12); color: var(--warning); }
.badge-red { background: rgba(220,38,38,0.10); color: var(--danger); }
.badge-blue { background: rgba(37,99,235,0.10); color: var(--info); }
.badge-gray { background: rgba(102,112,138,0.12); color: var(--text-muted); }
.badge-purple { background: rgba(109,94,240,0.12); color: var(--primary); }

.license-chip {
  display: inline-block; min-width: 38px; text-align: center;
  background: var(--card-2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--primary);
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state .empty-text { font-size: 14px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; }
.page-info { color: var(--text-muted); font-size: 13px; }
.page-btn {
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==================== 表单 ==================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.form-label .req { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 94, 240, 0.15);
}
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
/* RTL 下箭头镜像到左侧，左侧留出箭头空间，避免遮挡右侧起始文本 */
html[dir="rtl"] .form-select { background-position: 18px 50%, 13px 50%; padding-right: 14px; padding-left: 32px; }
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-muted); }
.form-tip { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-top: 10px; padding: 8px 12px; background: rgba(109, 94, 240, 0.06); border-radius: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.switch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
  background: #c9cde0; border-radius: 12px; transition: background 0.2s;
  border: none; cursor: pointer;
}
.switch::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(calc(-1 * 20px)); }

/* RTL: چەمبەر ئۆزگەرتىش */
html[dir="ltr"] .switch.on::after { transform: translateX(20px); }

/* ==================== 弹窗 ==================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(23, 27, 46, 0.5);
  backdrop-filter: blur(3px); z-index: 90;
}
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 560px; max-width: 94vw; max-height: 88vh;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; z-index: 91; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(23, 27, 46, 0.28);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 18px;
  width: 32px; height: 32px; border-radius: 8px;
}
.modal-close:hover { background: var(--card-2); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.modal.wide { width: 720px; }
.modal.narrow { width: 420px; }

.confirm-icon { text-align: center; font-size: 46px; margin-bottom: 12px; }
.confirm-text { text-align: center; color: var(--text); font-size: 14px; line-height: 1.7; }

/* ==================== Toast ==================== */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 27, 46, 0.14); font-size: 13px;
  animation: toastIn 0.25s ease;
}
.toast.success { border-color: rgba(14,159,110,0.5); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(220,38,38,0.5); }
.toast.error .toast-icon { color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 仪表盘 ==================== */
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--text); }
.chart-wrap { width: 100%; height: 280px; position: relative; }
.seg-control { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-btn { padding: 6px 14px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 12px; transition: all 0.15s; }
.seg-btn.active { background: var(--primary-grad); color: #fff; font-weight: 600; }

.quick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.quick-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  transition: all 0.15s;
}
.quick-item:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.quick-item .quick-icon { font-size: 22px; }
.quick-item .quick-text { font-weight: 600; font-size: 14px; color: var(--text); }
.quick-item .quick-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 进度条 */
.progress { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary-grad); border-radius: 4px; transition: width 0.4s; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }

/* 阶段卡 */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.phase-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.phase-card h4 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.phase-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(35, 40, 70, 0.12); font-size: 13px; }
.phase-row:last-child { border-bottom: none; }
.phase-row .k { color: var(--text-muted); }
.phase-row .v { font-weight: 600; }

/* 徽章卡 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; transition: all 0.15s;
}
.badge-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.badge-card .badge-icon { font-size: 34px; margin-bottom: 8px; }
.badge-card .badge-name { font-weight: 600; font-size: 13px; color: var(--text); }
.badge-card .badge-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.badge-card .badge-edit { margin-top: 10px; }

/* 详情行 */
.detail-row { display: flex; padding: 9px 0; border-bottom: 1px dashed rgba(35, 40, 70, 0.12); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-muted); width: 140px; flex-shrink: 0; }
.detail-row .v { font-weight: 500; word-break: break-all; }

/* 统计小条 */
.trend-bar { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 10px; }
.trend-bar .bar { flex: 1; background: var(--primary-grad); border-radius: 3px 3px 0 0; min-height: 3px; opacity: 0.75; }

/* 响应式 */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  body[dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0) !important; }
  .sidebar-mask.show { display: block; }
  .main { margin-inline-start: 0; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar-date { display: none; }
}
