/* PC端样式 - 隆成果蔬店管理平台 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f2f5; }

/* POS Header */
.pos-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-radius:10px;
  margin-bottom: 3px;
}
.pos-header-content { display: flex; justify-content: space-between; align-items: flex-start; }
.pos-header-left { display: flex; align-items: center; gap: 16px; }
.pos-header-logo { width: 50px; height: 50px; background: #00b386; color: white; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-weight: bold; font-size: 14px; }
.pos-header-title { display: flex; flex-direction: column; }
.pos-header-main-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }
.pos-header-subtitle { font-size: 12px; color: #666; }
.pos-header-divider { width: 1px; height: 36px; background: #e8e8e8; }
.pos-header-user { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; }
.pos-header-center { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #666; }
.pos-header-right { display: flex; gap: 16px; }
.pos-header-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid #e8e8e8; border-radius: 6px; cursor: pointer; font-size: 11px; color: #666; background: #fafafa; transition: all .2s; }
.pos-header-btn:hover { background: #f0f0f0; border-color: #d9d9d9; }
.pos-header-btn i { font-size: 16px; }

/* Layout */
.app-wrapper { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar { width: 220px; min-width: 220px; background: #1a2332; color: #fff; display: flex; flex-direction: column; overflow-y: auto; transition: width .3s; }
.sidebar.collapsed { width: 64px; min-width: 64px; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg,#00b386,#00d4aa); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sidebar-logo .logo-text { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sidebar-logo .logo-sub { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; }
.sidebar.collapsed .logo-text, .sidebar.collapsed .logo-sub { display: none; }
.nav-group-title { padding: 12px 18px 6px; font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; cursor: pointer; color: rgba(255,255,255,.7); font-size: 13.5px; transition: all .2s; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(0,179,134,.15); color: #00d4aa; border-left-color: #00d4aa; }
.nav-item .nav-icon { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.nav-item .nav-label { flex: 1; min-width: 0; }
.nav-item .nav-badge { margin-left: auto; background: #e34d59; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 8px; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; gap: 0; }
.sidebar.collapsed .nav-item .nav-label, .sidebar.collapsed .nav-group-title, .sidebar.collapsed .nav-item .nav-badge { display: none; }
.nav-sub { background: rgba(0,0,0,.2); }
.nav-sub .nav-item { padding-left: 44px; font-size: 13px; }

/* Header */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-bar { height: 56px; background: #fff; border-bottom: 1px solid #e7e7e7; display: flex; align-items: center; padding: 0 20px; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.collapse-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; background: #fff; cursor: pointer; color: #555; flex-shrink: 0; transition: all .15s ease; }
.collapse-btn:hover { border-color: #00b386; color: #00b386; }
.breadcrumb { flex: 1; font-size: 13px; color: #999; }
.breadcrumb span { color: #1a2332; font-weight: 500; }
.top-bar-actions { display: flex; align-items: center; gap: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #00b386; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; cursor: pointer; }
.notification-btn { position: relative; cursor: pointer; color: #666; font-size: 18px; }
.notification-btn .dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; background: #e34d59; border-radius: 50%; border: 1.5px solid #fff; }
.role-switcher { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: #f7f8fa; border: 1px solid #e8e8e8; border-radius: 6px; }
.role-select { border: none; background: transparent; outline: none; font-size: 13px; color: #333; cursor: pointer; padding: 0; }
.role-select:focus { outline: none; }

/* Content */
.content-area { flex: 1; overflow-y: auto; padding: 10px; }

/* Cards */
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 600; color: #1a2332; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
.card-title .title-tag { font-size: 11px; font-weight: 400; padding: 2px 8px; border-radius: 10px; background: #e6fff8; color: #00b386; }

/* Stat Cards */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-icon.green { background: #e6fff8; }
.stat-icon.blue { background: #e6f4ff; }
.stat-icon.orange { background: #fff7e6; }
.stat-icon.red { background: #fff0f0; }
.stat-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; color: #1a2332; }
.stat-change { font-size: 11px; margin-top: 2px; }
.stat-change.up { color: #e34d59; }
.stat-change.down { color: #00b386; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: #fafafa; padding: 11px 14px; text-align: left; color: #666; font-weight: 500; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #f7f7f7; color: #333; vertical-align: middle; }
.data-table tr:hover td { background: #f9fffe; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.badge-success { background: #e6fff8; color: #00b386; }
.badge-warning { background: #fff7e6; color: #e88c04; }
.badge-error { background: #fff0f0; color: #e34d59; }
.badge-info { background: #e6f4ff; color: #0052d9; }
.badge-default { background: #f5f5f5; color: #999; }

/* Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00b386; }
input:checked + .slider:before { transform: translateX(20px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; transition: all .2s; font-weight: 500; }
.btn-primary { background: #00b386; color: #fff; }
.btn-primary:hover { background: #00a077; }
.btn-outline { background: transparent; border: 1px solid #ddd; color: #555; }
.btn-outline:hover { border-color: #00b386; color: #00b386; }
.btn-danger { background: #e34d59; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-link { background: transparent; border: none; color: #00b386; padding: 2px 6px; font-size: 12px; cursor: pointer; }

/* Form */
.form-row { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.form-item { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.form-label { font-size: 12px; color: #666; }
.form-input { height: 34px; padding: 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; outline: none; color: #333; transition: border .2s; }
.form-select { height: 34px; padding: 0 30px 0 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; outline: none; color: #333; transition: border .2s; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center; background-size: 14px; }
.form-input:focus, .form-select:focus { border-color: #00b386; }

/* Tab */
.tab-bar { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 16px; }
.tab-item { padding: 8px 18px; font-size: 13.5px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-item.active { color: #00b386; border-bottom-color: #00b386; font-weight: 600; }
.tab-item:hover { color: #00b386; }

/* Search Bar */
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }

/* Pagination */
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.page-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; border: 1px solid #e0e0e0; color: #555; }
.page-btn.active { background: #00b386; color: #fff; border-color: #00b386; }
.page-total { color: #999; margin-right: 8px; }

/* POS */
.pos-layout { display: flex; gap: 5px; height: calc(100vh - 150px); }
.pos-left { min-width: 600px; width: 70%; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.pos-right { min-width: 390px; width: 30%; display: flex; flex-direction: column; gap: 3px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow-y: auto; }
.product-card { background: #fff; border-radius: 8px; padding: 12px; cursor: pointer; border: 1.5px solid transparent; transition: all .2s; text-align: center; }
.product-card:hover { border-color: #00b386; }
.product-card .pname { font-size: 12.5px; font-weight: 500; margin: 6px 0 2px; }
.product-card .pprice { font-size: 13px; color: #e34d59; font-weight: 600; }
.product-card .punit { font-size: 11px; color: #999; }
.product-emoji { font-size: 32px; }

/* Cart */
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-list { flex: 1; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item-name { flex: 1; font-size: 13px; }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: #555; }
.cart-item-price { font-size: 13px; font-weight: 600; color: #e34d59; width: 60px; text-align: right; }
.cart-summary { border-top: 2px solid #f0f0f0; padding-top: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.summary-total { font-size: 15px; font-weight: 700; }
.pay-btn { width: 100%; height: 44px; background: linear-gradient(135deg, #00b386, #00d4aa); border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.member-card { background: linear-gradient(135deg, #e88c04, #2d3f55); border-radius: 8px; padding: 12px; color: #fff; }
.member-name { font-size: 14px; font-weight: 600; }
.member-meta { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; }
.coupon-input { display: flex; gap: 6px; margin-top: 8px; }
.coupon-input input { flex: 1; height: 32px; padding: 0 8px; border-radius: 6px; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 12px; outline: none; }
.coupon-input input::placeholder { color: rgba(255,255,255,.5); }
.scan-btn { height: 32px; padding: 0 10px; background: #00b386; border: none; border-radius: 6px; color: #fff; font-size: 12px; cursor: pointer; }

/* Chart placeholder */
.chart-placeholder { height: 200px; background: linear-gradient(135deg, #f0fffe, #e6fff8); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #00b386; font-size: 13px; flex-direction: column; gap: 8px; }
.chart-bar-row { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 16px; }
.chart-bar { flex: 1; background: linear-gradient(180deg, #00d4aa, #00b386); border-radius: 4px 4px 0 0; position: relative; min-width: 20px; transition: all .3s; }
.chart-bar:hover { opacity: .8; }
.chart-labels { display: flex; gap: 8px; padding: 6px 16px 0; }
.chart-label { flex: 1; text-align: center; font-size: 11px; color: #999; min-width: 20px; box-sizing: border-box; }

/* Alert */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.alert-warning { background: #fff7e6; color: #e88c04; border: 1px solid #ffe8a0; }

/* Modal overlay */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 12px; padding: 24px; min-width: 480px; max-width: 640px; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #1a2332; display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: #999; font-size: 18px; }

/* 线下取货弹窗 */
.offline-pickup { margin: -8px -8px 0; }
.opq-header {
  background: linear-gradient(135deg, #00b386 0%, #00d4aa 100%);
  color: #fff; padding: 18px 22px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; box-shadow: 0 4px 12px rgba(0,179,134,.15);
}
.opq-header-left { display:flex; flex-direction:column; gap:6px; }
.opq-pickup-code { display:flex; align-items:baseline; gap:10px; }
.opq-pickup-label { font-size:12px; opacity:.85; }
.opq-pickup-num {
  font-size:30px; font-weight:800; letter-spacing:6px;
  font-family: 'Courier New', monospace;
}
.opq-meta { display:flex; gap:16px; font-size:12px; opacity:.92; }
.opq-meta span { display:inline-flex; align-items:center; }
.opq-header-right { text-align:right; }
.opq-tag-pill {
  display:inline-block; padding:3px 10px; border-radius:20px;
  background: rgba(255,255,255,.2); font-size:11px; margin-bottom:4px;
}
.opq-time { font-size:11px; opacity:.85; }
.opq-section-title {
  font-size:12px; color:#999; font-weight:500;
  margin-bottom:10px; letter-spacing:.5px;
}
.opq-items { display:flex; flex-direction:column; gap:8px; }
.opq-item {
  display:flex; align-items:center; gap:12px;
  padding:10px 14px; background:#fff; border:1px solid #f0f0f0;
  border-radius:8px; transition: all .2s;
  border-left: 3px solid transparent;
}
.opq-item:hover { border-color:#e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.opq-item.returning {
  background: #fff8f8; border-color: #ffd4d4; border-left-color: #e34d59;
}
.opq-item-emoji {
  width:36px; height:36px; border-radius:8px;
  background: linear-gradient(135deg, #f0fff9 0%, #e6f7ef 100%);
  display:flex; align-items:center; justify-content:center;
  color:#00b386; font-size:18px; flex-shrink:0;
}
.opq-item-info { flex:1; min-width:0; }
.opq-item-name { font-size:13px; font-weight:600; color:#222; }
.opq-item-spec { font-size:11px; color:#999; margin-top:2px; }
.opq-item-price {
  font-size:15px; font-weight:700; color:#1a2332;
  font-family: 'Courier New', monospace; flex-shrink:0;
}
.opq-item-action { flex-shrink:0; }
.opq-item-return {
  padding:5px 12px; border:1px solid #e0e0e0; color:#666;
  background:#fff; border-radius:16px; font-size:12px;
  cursor:pointer; transition: all .15s;
  display:inline-flex; align-items:center;
}
.opq-item-return:hover { border-color:#e34d59; color:#e34d59; }
.opq-item-return.active {
  background:#e34d59; border-color:#e34d59; color:#fff;
}
.opq-item-no-return {
  font-size:11px; color:#bbb; padding:0 6px;
  display:inline-flex; align-items:center;
}
.opq-summary {
  margin-top:18px; padding:16px 18px;
  background: linear-gradient(135deg, #f8fdfb 0%, #f0fff9 100%);
  border-radius:10px; border:1px solid #e6f7ef;
  display:flex; justify-content:space-between; align-items:center;
}
.opq-summary-left { display:flex; align-items:center; gap:16px; }
.opq-stat { text-align:center; }
.opq-stat-num {
  font-size:22px; font-weight:700; color:#e34d59;
  font-family: 'Courier New', monospace;
}
.opq-stat-num-primary { color:#00b386; }
.opq-stat-label { font-size:11px; color:#999; margin-top:2px; }
.opq-stat-divider { width:1px; height:30px; background:#e0e0e0; }
.opq-summary-right { text-align:right; }
.opq-amount-label { font-size:11px; color:#999; }
.opq-amount-num {
  font-size:24px; font-weight:800; color:#1a2332;
  font-family: 'Courier New', monospace; margin-top:2px;
}
.opq-footer-btn {
  padding: 9px 20px; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display:inline-flex; align-items:center;
  transition: all .15s;
}
.opq-btn-text {
  background: transparent; color: #999;
  border: 1px solid #e0e0e0;
}
.opq-btn-text:hover { color: #e34d59; border-color: #e34d59; }
.opq-btn-primary {
  background: linear-gradient(135deg, #00b386 0%, #00d4aa 100%);
  color: #fff; box-shadow: 0 2px 8px rgba(0,179,134,.25);
}
.opq-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,179,134,.35); }

/* Toast */
.toast-root { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 1200; pointer-events: none; }
.toast { pointer-events: auto; min-width: 280px; max-width: 360px; background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12); border: 1px solid #f0f0f0; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; animation: toastIn .18s ease-out; }
@keyframes toastIn { from { transform: translateY(-6px); opacity: .0; } to { transform: translateY(0); opacity: 1; } }
.toast-ico { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.toast-ico.success { background: #e6fff8; color: #00b386; }
.toast-ico.info { background: #e6f4ff; color: #0052d9; }
.toast-ico.warning { background: #fff7e6; color: #e88c04; }
.toast-ico.error { background: #fff0f0; color: #e34d59; }
.toast-title { font-size: 13px; font-weight: 600; color: #1a2332; line-height: 1.3; }
.toast-msg { font-size: 12px; color: #666; margin-top: 2px; line-height: 1.45; }
.toast-close { margin-left: auto; cursor: pointer; color: #bbb; font-size: 16px; line-height: 1; }

/* Batch bar */
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f9fffe; border: 1px solid #dff7f1; border-radius: 10px; margin: 10px 0 14px; }
.batch-bar .count { font-size: 13px; color: #333; }
.batch-bar .sep { width: 1px; height: 18px; background: #e7e7e7; margin: 0 4px; }

/* Goods editor page */
.page-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-hd .ph-title { font-size: 16px; font-weight: 700; color: #1a2332; }
.page-hd .ph-sub { font-size: 12px; color: #999; margin-top: 2px; }
.page-hd .ph-left { min-width: 0; }
.page-hd .ph-actions { display: flex; gap: 10px; flex-shrink: 0; }
.section { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 16px; margin-bottom: 16px; }
.section-title { font-size: 14px; font-weight: 700; color: #1a2332; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.img-uploader { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.img-drop { width: 160px; height: 120px; border: 1.5px dashed #dcdcdc; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #999; cursor: pointer; background: #fafafa; transition: all .15s ease; text-align: center; padding: 10px; font-size: 12px; }
.img-drop:hover { border-color: #00b386; color: #00b386; background: #f6fffd; }
.img-preview { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid #f0f0f0; background: #fff; position: relative; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview .rm { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f5f5f5; color: #555; font-size: 12px; cursor: pointer; user-select: none; }
.pill input { margin: 0; }
.editor { border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; }
.editor-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; background: #fafafa; border-bottom: 1px solid #eee; }
.editor-btn { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #e6e6e6; background: #fff; cursor: pointer; font-size: 12px; color: #555; }
.editor-btn:hover { border-color: #00b386; color: #00b386; }
.editor-body { min-height: 220px; padding: 12px; font-size: 13px; line-height: 1.7; outline: none; color: #333; }
.sku-table th, .sku-table td { padding: 10px 12px; }
.sku-table input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 12px; outline: none; }
.sku-table input:focus { border-color: #00b386; }

/* Page nav */
.page-nav { display: flex; gap: 8px; margin-bottom: 16px; }
.page-nav-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; background: #f5f5f5; color: #555; border: none; transition: all .2s; }
.page-nav-btn.active { background: #00b386; color: #fff; }

/* Color tag */
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* Progress */
.progress-bar { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #00b386; border-radius: 3px; }

/* Inventory alert */
.stock-low { color: #e34d59; font-weight: 600; }
.stock-ok { color: #00b386; }

/* Delivery type */
.delivery-option { display: flex; align-items: center; gap: 8px; padding: 10px 6px; justify-content: center; border: 1.5px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: all .2s; }
.delivery-option.selected { border-color: #00b386; background: #f0fff9; }
.delivery-options { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* Responsive */
@media (max-width: 1280px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .product-grid { grid-template-columns: repeat(3, 1fr); } .pos-right { width: 320px; } }
@media (max-width: 980px) { .app-wrapper { flex-direction: column; } .sidebar { width: 100%; min-width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; } .sidebar-logo { border-bottom: none; border-right: 1px solid rgba(255,255,255,.08); padding: 12px 14px; } .nav-group-title { display: none; } .nav-item { border-left: none; border-bottom: 3px solid transparent; padding: 12px 14px; } .nav-item.active { border-left-color: transparent; border-bottom-color: #00d4aa; } .content-area { padding: 14px; } .pos-layout { flex-direction: column; height: auto; } .pos-right { width: 100%; } .product-grid { grid-template-columns: repeat(4, 1fr); } }
