/* =============================================================
   Element UI 风格 - 商城后台管理系统样式
   ============================================================= */

/* ---------- CSS Variables ---------- */
:root {
    --el-color-primary: #409EFF;
    --el-color-primary-light: #66b1ff;
    --el-color-primary-lighter: #d9ecff;
    --el-color-primary-dark: #3a8ee6;
    --el-color-success: #67C23A;
    --el-color-warning: #E6A23C;
    --el-color-danger: #F56C6C;
    --el-color-info: #909399;
    --el-bg-color: #f0f2f5;
    --el-bg-white: #ffffff;
    --el-text-primary: #303133;
    --el-text-regular: #606266;
    --el-text-secondary: #909399;
    --el-text-placeholder: #c0c4cc;
    --el-border-color: #dcdfe6;
    --el-border-color-light: #e4e7ed;
    --el-border-color-lighter: #ebeef5;
    --el-border-radius: 4px;
    --el-border-radius-base: 4px;
    --el-border-radius-round: 20px;
    --el-sidebar-width: 220px;
    --el-sidebar-collapsed: 64px;
    --el-header-height: 56px;
    --el-transition: all 0.3s ease;
    --el-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --el-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --el-font-size: 14px;
    --el-font-size-small: 12px;
    --el-font-size-large: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--el-font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--el-text-primary);
    background: var(--el-bg-color);
    line-height: 1.5;
    min-height: 100vh;
}

a { text-decoration: none; color: var(--el-color-primary); }
a:hover { color: var(--el-color-primary-light); }

/* ---------- Login Page ---------- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--el-bg-white);
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--el-color-primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logo-icon {
    font-size: 28px;
    color: white;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--el-text-primary);
    margin-bottom: 8px;
}

.login-desc {
    font-size: var(--el-font-size);
    color: var(--el-text-secondary);
}

.login-form .form-item {
    margin-bottom: 22px;
}

.login-btn {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 16px !important;
    letter-spacing: 2px;
}

.form-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--el-border-radius);
    font-size: var(--el-font-size-small);
}

.form-tip.error {
    background: #fef0f0;
    color: var(--el-color-danger);
    border: 1px solid #fde2e2;
}

/* ---------- Layout ---------- */
#app {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--el-sidebar-width);
    background: var(--el-text-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width var(--el-transition);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--el-sidebar-collapsed);
}

.sidebar-header {
    height: var(--el-header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logo {
    font-size: 22px;
    min-width: 24px;
    text-align: center;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-item.active {
    color: #fff;
    background: rgba(64,158,255,0.2);
    border-left-color: var(--el-color-primary);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--el-color-primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.logout-link {
    color: rgba(255,255,255,0.5);
    font-size: var(--el-font-size-small);
    padding: 4px 0;
    display: block;
}

.logout-link:hover {
    color: var(--el-color-danger);
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    margin-left: var(--el-sidebar-width);
    transition: margin-left var(--el-transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content.expanded {
    margin-left: var(--el-sidebar-collapsed);
}

/* ---------- Top Bar ---------- */
.top-bar {
    height: var(--el-header-height);
    background: var(--el-bg-white);
    border-bottom: 1px solid var(--el-border-color-lighter);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: var(--el-shadow-light);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--el-text-regular);
    padding: 6px;
    border-radius: var(--el-border-radius);
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--el-bg-color);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--el-text-primary);
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-time {
    font-size: var(--el-font-size-small);
    color: var(--el-text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ---------- Content Area ---------- */
.main-content > *:not(.top-bar) {
    padding: 20px 24px;
}

/* ---------- Stats Grid (Dashboard) ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--el-bg-white);
    border-radius: var(--el-border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--el-shadow-light);
    border: 1px solid var(--el-border-color-lighter);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--el-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card--blue .stat-icon { background: var(--el-color-primary-lighter); color: var(--el-color-primary); }
.stat-card--green .stat-icon { background: #f0f9eb; color: var(--el-color-success); }
.stat-card--orange .stat-icon { background: #fdf6ec; color: var(--el-color-warning); }
.stat-card--red .stat-icon { background: #fef0f0; color: var(--el-color-danger); }

.stat-body {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--el-text-primary);
}

.stat-label {
    font-size: var(--el-font-size-small);
    color: var(--el-text-secondary);
    margin-top: 4px;
}

/* ---------- Chart Row ---------- */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .chart-row {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--el-bg-white);
    border-radius: var(--el-border-radius);
    box-shadow: var(--el-shadow-light);
    border: 1px solid var(--el-border-color-lighter);
}

.chart-card .card-body {
    height: 280px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 260px;
}

/* ---------- Data Card ---------- */
.data-card {
    background: var(--el-bg-white);
    border-radius: var(--el-border-radius);
    box-shadow: var(--el-shadow-light);
    border: 1px solid var(--el-border-color-lighter);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--el-border-color-lighter);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--el-text-primary);
}

.card-body {
    padding: 0;
}

/* ---------- Toolbar ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--el-bg-white);
    border-radius: var(--el-border-radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--el-shadow-light);
    border: 1px solid var(--el-border-color-lighter);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-sep {
    color: var(--el-text-secondary);
    padding: 0 2px;
}

/* ---------- Element UI Form Items ---------- */
.form-item {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-item--half {
    flex: 1;
    min-width: 0;
}

.form-label {
    display: block;
    font-size: var(--el-font-size);
    color: var(--el-text-regular);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label .required,
span.required {
    color: var(--el-color-danger);
}

/* ---------- Element UI Input ---------- */
.el-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    font-size: var(--el-font-size);
}

.el-input--small {
    font-size: var(--el-font-size-small);
}

.el-input-inner {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--el-border-color);
    border-radius: var(--el-border-radius);
    outline: none;
    font-size: inherit;
    font-family: inherit;
    color: var(--el-text-primary);
    background: var(--el-bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.el-input--small .el-input-inner {
    height: 32px;
    padding: 0 10px;
    font-size: var(--el-font-size-small);
}

.el-input-inner:focus {
    border-color: var(--el-color-primary);
    box-shadow: 0 0 0 1px var(--el-color-primary-lighter);
}

.el-input-inner::placeholder {
    color: var(--el-text-placeholder);
}

.el-input-prefix {
    position: absolute;
    left: 10px;
    color: var(--el-text-placeholder);
    display: flex;
    z-index: 1;
    pointer-events: none;
}

.el-input-prefix + .el-input-inner {
    padding-left: 34px;
}

/* Date input */
input[type="date"].el-input-inner {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 10px;
}

/* ---------- Element UI Select ---------- */
.el-select {
    height: 36px;
    padding: 0 28px 0 12px;
    border: 1px solid var(--el-border-color);
    border-radius: var(--el-border-radius);
    font-size: var(--el-font-size);
    color: var(--el-text-primary);
    background: var(--el-bg-white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.el-select--small {
    height: 32px;
    font-size: var(--el-font-size-small);
    padding: 0 24px 0 10px;
}

.el-select:focus {
    border-color: var(--el-color-primary);
    box-shadow: 0 0 0 1px var(--el-color-primary-lighter);
}

/* ---------- Element UI Textarea ---------- */
.el-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--el-border-color);
    border-radius: var(--el-border-radius);
    font-size: var(--el-font-size);
    font-family: inherit;
    color: var(--el-text-primary);
    background: var(--el-bg-white);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.6;
}

.el-textarea:focus {
    border-color: var(--el-color-primary);
    box-shadow: 0 0 0 1px var(--el-color-primary-lighter);
}

.el-textarea::placeholder {
    color: var(--el-text-placeholder);
}

/* ---------- Element UI Button ---------- */
.el-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: var(--el-font-size);
    font-family: inherit;
    border-radius: var(--el-border-radius);
    border: 1px solid var(--el-border-color);
    background: var(--el-bg-white);
    color: var(--el-text-regular);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    height: 36px;
}

.el-button:hover {
    color: var(--el-color-primary);
    border-color: var(--el-color-primary-light);
    background: var(--el-color-primary-lighter);
}

.el-button:active {
    color: var(--el-color-primary-dark);
    border-color: var(--el-color-primary-dark);
}

.el-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.el-button--small {
    padding: 5px 12px;
    font-size: var(--el-font-size-small);
    height: 28px;
}

.el-button--primary {
    background: var(--el-color-primary);
    border-color: var(--el-color-primary);
    color: #fff;
}

.el-button--primary:hover {
    background: var(--el-color-primary-light);
    border-color: var(--el-color-primary-light);
    color: #fff;
}

.el-button--success {
    background: var(--el-color-success);
    border-color: var(--el-color-success);
    color: #fff;
}

.el-button--success:hover {
    background: #85ce61;
    border-color: #85ce61;
    color: #fff;
}

.el-button--danger {
    background: var(--el-color-danger);
    border-color: var(--el-color-danger);
    color: #fff;
}

.el-button--text {
    background: transparent;
    border-color: transparent;
    color: var(--el-color-primary);
    padding: 0 4px;
    height: auto;
    min-width: auto;
}

.el-button--text:hover {
    background: transparent;
    color: var(--el-color-primary-light);
}

.text-danger {
    color: var(--el-color-danger) !important;
}

.text-danger:hover {
    color: #f89898 !important;
}

/* ---------- Element UI Table ---------- */
.el-table-wrapper {
    overflow-x: auto;
}

.el-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--el-font-size);
}

.el-table thead {
    background: #fafafa;
}

.el-table th {
    padding: 10px 12px;
    font-weight: 600;
    color: var(--el-text-regular);
    text-align: left;
    border-bottom: 1px solid var(--el-border-color-lighter);
    white-space: nowrap;
    font-size: var(--el-font-size-small);
}

.el-table td {
    padding: 10px 12px;
    color: var(--el-text-primary);
    border-bottom: 1px solid var(--el-border-color-lighter);
}

.el-table tbody tr:hover {
    background: #f5f7fa;
}

.el-table tbody tr:last-child td {
    border-bottom: none;
}

.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-muted { color: var(--el-text-secondary) !important; font-size: var(--el-font-size-small); }
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 40px 16px !important;
    color: var(--el-text-secondary);
}

.error-cell {
    color: var(--el-color-danger);
}

.table-actions {
    white-space: nowrap;
}

.table-actions .el-button + .el-button {
    margin-left: 4px;
}

.product-name {
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.order-no {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--el-text-regular);
}

/* ---------- Element UI Tag ---------- */
.el-tag {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    height: 24px;
    line-height: 24px;
    font-size: var(--el-font-size-small);
    border-radius: var(--el-border-radius);
    white-space: nowrap;
    font-weight: 500;
}

.el-tag--primary { background: var(--el-color-primary-lighter); color: var(--el-color-primary); border: 1px solid #b3d8ff; }
.el-tag--success { background: #f0f9eb; color: var(--el-color-success); border: 1px solid #c2e7b0; }
.el-tag--warning { background: #fdf6ec; color: var(--el-color-warning); border: 1px solid #f5dab1; }
.el-tag--danger { background: #fef0f0; color: var(--el-color-danger); border: 1px solid #fbc4c4; }
.el-tag--info { background: #f4f4f5; color: var(--el-color-info); border: 1px solid #c8c9cc; }

/* ---------- Element UI Pagination ---------- */
.el-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.el-pagination-info {
    font-size: var(--el-font-size-small);
    color: var(--el-text-secondary);
    margin-right: 8px;
}

.el-pagination-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- Element UI Radio ---------- */
.el-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--el-font-size);
    color: var(--el-text-regular);
    user-select: none;
}

.el-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--el-border-color);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    flex-shrink: 0;
}

.el-radio input[type="radio"]:checked {
    border-color: var(--el-color-primary);
}

.el-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--el-color-primary);
}

.el-radio span {
    margin-left: 6px;
}

/* ---------- Modal / Dialog ---------- */
.el-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 20px;
}

.el-overlay.active {
    visibility: visible;
    opacity: 1;
}

.el-dialog {
    background: var(--el-bg-white);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 600px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.el-overlay.active .el-dialog {
    transform: scale(1);
}

.el-dialog--wide {
    width: 750px;
}

.el-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--el-border-color-lighter);
}

.el-dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--el-text-primary);
}

.el-dialog-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--el-text-placeholder);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.el-dialog-close:hover {
    color: var(--el-text-primary);
}

.el-dialog-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.el-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 24px;
    border-top: 1px solid var(--el-border-color-lighter);
}

/* ---------- Order Items Table in Form ---------- */
.order-items-table {
    border: 1px solid var(--el-border-color-lighter);
    border-radius: var(--el-border-radius);
    overflow: hidden;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--el-border-color-lighter);
}

.order-item-row:last-child {
    border-bottom: none;
}

.oi-subtotal {
    width: 80px;
    text-align: right;
    font-weight: 500;
    color: var(--el-color-danger);
    flex-shrink: 0;
}

.order-total-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--el-color-danger);
    margin-right: auto;
}

/* ---------- Detail Grid ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fafafa;
    padding: 12px 16px;
    border-radius: var(--el-border-radius);
    font-size: var(--el-font-size);
}

.detail-grid div {
    line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .sidebar {
        width: var(--el-sidebar-collapsed);
    }
    .sidebar .sidebar-title,
    .sidebar .nav-item span,
    .sidebar .user-info span,
    .sidebar .logout-link {
        display: none;
    }
    .sidebar .nav-item {
        justify-content: center;
        padding: 12px 0;
    }
    .sidebar .user-info {
        justify-content: center;
    }
    .sidebar .sidebar-footer {
        text-align: center;
    }
    .main-content {
        margin-left: var(--el-sidebar-collapsed);
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    .sidebar.open {
        width: var(--el-sidebar-width);
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-left {
        flex-direction: column;
    }
    .toolbar-left .el-input,
    .toolbar-left .el-select {
        width: 100% !important;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .el-dialog {
        width: 100% !important;
        max-height: 90vh;
    }
    .el-dialog-body {
        padding: 16px;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #909399;
}
