/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #1a1a2e; min-height: 100vh; padding-bottom: 20px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
code { background: #e8e8e8; padding: 1px 5px; border-radius: 3px; font-size: 12px; }

/* ==================== LOGIN ==================== */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 32px 24px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo i { font-size: 48px; color: #0f3460; }
.login-logo h1 { font-size: 22px; color: #1a1a2e; margin-top: 8px; }
.login-logo p { color: #888; font-size: 14px; margin-top: 4px; }

/* ==================== FORM ELEMENTS ==================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; transition: border-color 0.2s; outline: none; background: #fafafa; }
.form-input:focus { border-color: #3498db; background: #fff; }
select.form-input { appearance: none; background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
textarea.form-input { resize: vertical; min-height: 60px; }

/* ==================== BUTTONS ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #3498db; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-info { background: #17a2b8; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-default { background: #e0e0e0; color: #333; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-touch { min-width: 48px; min-height: 48px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; border-radius: 10px; background: rgba(255,255,255,0.15); color: #fff; font-size: 18px; cursor: pointer; transition: background 0.15s; }
.btn-icon:active { background: rgba(255,255,255,0.3); }
.btn-danger-icon { background: rgba(231,76,60,0.2); color: #e74c3c; }
.btn-danger-icon:active { background: rgba(231,76,60,0.4); }

/* ==================== ALERTS ==================== */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.alert-danger { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ==================== APP HEADER ==================== */
.app-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.header-left { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.header-left i.fa-cube { font-size: 22px; color: #3498db; }
.header-right { display: flex; align-items: center; gap: 8px; }
.user-badge { font-size: 12px; color: rgba(255,255,255,0.8); }

/* ==================== STATUS CARDS ==================== */
.status-cards { display: flex; gap: 6px; padding: 10px 10px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.s-card { flex: 0 0 auto; min-width: 55px; padding: 5px 5px; border-radius: 12px; text-align: center; color: #fff; scroll-snap-align: start; transition: transform 0.15s; border: 2px solid transparent; }
.s-card.active { border-color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.s-card:active { transform: scale(0.95); }
.s-count { font-size: 22px; font-weight: 800; line-height: 1; }
.s-label { font-size: 10px; margin-top: 4px; opacity: 0.9; white-space: nowrap; }
.s-danger { background: #e74c3c; }
.s-warning { background: #f39c12; }
.s-info { background: #17a2b8; }
.s-primary { background: #3498db; }
.s-success { background: #27ae60; }
.s-purple { background: #8e44ad; }

/* ==================== SEARCH BAR ==================== */
.search-bar { padding: 8px 10px; }
.search-form { display: flex; }
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #999; }
.search-input { width: 100%; padding: 12px 14px 12px 40px; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 15px; background: #fff; outline: none; }
.search-input:focus { border-color: #3498db; }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 18px; }

/* ==================== ORDER LIST ==================== */
.order-list { padding: 0 10px; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .order-list { grid-template-columns: 1fr 1fr; } }
.order-list .empty-state, .order-list .scroll-loader { grid-column: 1 / -1; }
.order-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform 0.1s; border-left: 4px solid #ddd; }
.order-card:active { transform: scale(0.99); }
.oc-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0; }
.oc-id { font-size: 16px; font-weight: 800; color: #1a1a2e; }
.oc-body { padding: 6px 14px 10px; }
.oc-customer { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.oc-company { font-size: 12px; color: #777; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11px; color: #888; }
.oc-action { padding: 0 14px 10px; }
.oc-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; }
.oc-action-btn.btn-danger { background: #e74c3c; }
.oc-action-btn.btn-warning { background: #f39c12; }
.oc-action-btn.btn-success { background: #27ae60; }
.oc-action-btn.btn-info { background: #17a2b8; }
.oc-action-btn.btn-primary { background: #3498db; }
.oc-action-btn.btn-default { background: #95a5a6; }

/* ==================== BADGES ==================== */
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-danger { background: #fde8e8; color: #c0392b; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #d6eaf8; color: #2471a3; }
.badge-success { background: #d4edda; color: #155724; }
.badge-default { background: #eee; color: #555; }
.oc-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* ==================== DETAIL SECTIONS ==================== */
.detail-section { padding: 0 10px; margin-top: 10px; }
.section-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding: 0 4px; }
.section-header h3, .section-header h4 { font-size: 15px; color: #1a1a2e; }
.section-badges { display: flex; gap: 6px; }
.info-card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.info-title { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; padding-bottom: 6px; }
.info-row { font-size: 13px; padding: 3px 0; color: #444; }
.info-row a { color: #3498db; }

/* ==================== BARCODE BAR ==================== */
.barcode-bar { display: flex; gap: 6px; padding: 0 0 8px; align-items: stretch; }
.barcode-input-wrap { flex: 1; position: relative; }
.barcode-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 18px; }
.barcode-input-wrap input { width: 100%; padding: 14px 14px 14px 40px; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 16px; outline: none; background: #fff; }
.barcode-input-wrap input:focus { border-color: #3498db; }

/* ==================== PRODUCT LIST (TOPLAMA) ==================== */
.product-list { margin-bottom: 12px; }
.product-card { background: #fff; border-radius: 12px; margin-bottom: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid #ddd; transition: all 0.2s; }
.product-card.toplandi { border-left-color: #27ae60; background: #f0faf4; }
.product-card.product-eksik { border-left-color: #e74c3c; }
.pc-main { display: flex; align-items: center; padding: 12px; cursor: pointer; gap: 10px; -webkit-user-select: none; user-select: none; }
.pc-check { font-size: 24px; color: #ccc; width: 32px; text-align: center; flex-shrink: 0; }
.product-card.toplandi .pc-check { color: #27ae60; }
.product-card.toplandi .pc-check i::before { content: "\f14a"; }
.pc-info { flex: 1; min-width: 0; }
.pc-name { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-details { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 11px; color: #888; }
.pc-model { color: #3498db; font-weight: 600; }
.pc-raf { color: #e67e22; }
.pc-qty { text-align: center; flex-shrink: 0; }
.pc-qty-num { font-size: 20px; font-weight: 800; color: #1a1a2e; }
.pc-qty-label { font-size: 10px; color: #999; }
.pc-stock { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 8px 54px; }
.stock-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.stock-ok { background: #d4edda; color: #155724; }
.stock-low { background: #fff3cd; color: #856404; }
.stock-zero { background: #fde8e8; color: #c0392b; }
.pc-warning { padding: 6px 12px; background: #fde8e8; font-size: 11px; color: #c0392b; }

/* ==================== TOPLAMA INFO (badge + etiket) ==================== */
.pc-toplama-info { padding: 6px 12px 8px 54px; }
.pc-toplanan-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.pc-depo-etiket { font-size: 11px; }
.depo-etiket-text { color: #3498db; font-weight: 600; }
.depo-iade-text { color: #e74c3c; font-weight: 600; }
.product-card.product-toplandi { border-left: 3px solid #27ae60; background: #f0faf4; }
.product-card.product-toplandi .pc-check i { color: #27ae60; }

/* ==================== STOK EKSİK TABLOSU ==================== */
.stok-eksik-tablo { font-size: 12px; }
.stok-eksik-satir { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.stok-eksik-satir:last-child { border-bottom: none; }
.se-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 6px; }
.se-badges { display: flex; gap: 3px; flex-shrink: 0; }

/* ==================== DSM PROGRESS BAR ==================== */
.dsm-progress { height: 20px; background: #e9ecef; border-radius: 10px; overflow: hidden; }
.dsm-progress-bar { height: 100%; font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; transition: width 0.3s, background 0.3s; min-width: 0; border-radius: 10px; }
.dsm-progress-bar.bar-success { background: #27ae60; }
.dsm-progress-bar.bar-warning { background: #f39c12; }
.dsm-progress-bar.bar-danger { background: #e74c3c; }

/* ==================== ACCORDION ==================== */
.accordion-section { overflow: hidden; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: #333; -webkit-user-select: none; user-select: none; }
.accordion-arrow { transition: transform 0.2s; font-size: 12px; color: #999; }
.accordion-open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-open .accordion-body { max-height: 500px; }

/* ==================== SCROLL LOADER ==================== */
.scroll-loader { text-align: center; padding: 16px; color: #999; font-size: 13px; }
.scroll-loader.done { display: none; }

/* ==================== SEARCH BAR QR ==================== */
.search-bar { display: flex; align-items: stretch; gap: 8px; }
.search-form { flex: 1; }
.btn-qr-search { width: 44px; height: 44px; border-radius: 12px; background: #3498db; color: #fff; border: none; font-size: 18px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ==================== INFO GRID 2 COLUMN ==================== */
.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .info-grid-2 { grid-template-columns: 1fr; } }

/* ==================== SECTION COMPLETED ==================== */
.section-completed { opacity: 0.75; }
.section-completed .section-header h3 { font-size: 14px; }

/* ==================== KUTU ÜRÜN TABLO ==================== */
.kutu-urun-tablo-wrap { border: 1px solid #e0e0e0; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.kut-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f5f5f5; border-bottom: 1px solid #e0e0e0; }
.kut-hepsi-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.kut-hepsi-label input { width: 18px; height: 18px; accent-color: #3498db; }
.kut-body { max-height: 220px; overflow-y: auto; }
.kut-row { display: grid; grid-template-columns: 30px 1fr auto auto auto auto; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.kut-row:last-child { border-bottom: none; }
.kut-check input { width: 18px; height: 18px; accent-color: #3498db; }
.kut-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.kut-model code { font-size: 10px; }
.kut-adet { font-weight: 700; text-align: center; min-width: 30px; }
.kut-eklenecek .bpi-qty { width: 50px; padding: 4px; font-size: 12px; }
.kut-durum .badge { font-size: 10px; }

/* ==================== KUTU ÖLÇÜ ROW ==================== */
.kutu-olcu-row { display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.kutu-olcu-select-wrap { flex: 1; }
.kutu-olcu-row .btn { white-space: nowrap; height: auto; }

.kutu-olcu-bilgi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 12px; background: #f0f8ff; border: 1px solid #d4e6f1; border-radius: 8px; margin-bottom: 10px; text-align: center; }
.kob-item small { display: block; font-size: 10px; color: #888; }
.kob-item strong { font-size: 14px; color: #333; }
.kob-desi strong { color: #3498db; }

.kutu-agirlik-row { margin-bottom: 12px; }
.kutu-agirlik-row label { font-size: 12px; color: #666; margin-bottom: 4px; display: block; }

.nbf-header { font-size: 14px; font-weight: 700; color: #0f3460; margin-bottom: 10px; }

/* ==================== HIZLI KUTU MODAL ==================== */
.hk-form-group { margin-bottom: 10px; }
.hk-form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.hk-olcu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.hk-desi-sonuc { text-align: center; background: #f0f8ff; padding: 10px; border-radius: 8px; border: 1px solid #d4e6f1; }
.hk-desi-sonuc strong { font-size: 18px; color: #3498db; margin-left: 6px; }

/* ==================== COMPACT PRODUCT LIST ==================== */
.product-list.compact { margin-bottom: 0; }
.product-card-compact { background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.product-card-compact.product-eksik { border-left: 3px solid #e74c3c; }
.pcc-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pcc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; }

/* ==================== BOX CARDS ==================== */
.box-card { background: #fff; border-radius: 12px; margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #e0e0e0; }
.box-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.box-name { font-size: 14px; font-weight: 700; color: #0f3460; }
.box-badges { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.box-actions { display: flex; gap: 4px; flex-shrink: 0; }
.btn-warning-icon { background: rgba(243,156,18,0.2); color: #f39c12; text-decoration: none; }
.box-actions .btn-icon { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
.box-products { padding: 8px 14px; }
.bp-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; border-bottom: 1px solid #f5f5f5; }
.bp-item:last-child { border-bottom: none; }
.bp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-qty { font-weight: 700; color: #3498db; margin-left: 8px; }

/* ==================== NEW BOX FORM ==================== */
.new-box-form { background: #fff; border-radius: 12px; padding: 14px; margin-top: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.box-product-select { max-height: 220px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 10px; margin-bottom: 12px; }
.box-product-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; -webkit-user-select: none; user-select: none; }
.box-product-item:last-child { border-bottom: none; }
.box-product-item input[type="checkbox"] { width: 22px; height: 22px; flex-shrink: 0; accent-color: #3498db; }
.bpi-info { flex: 1; min-width: 0; }
.bpi-name { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpi-model { display: block; font-size: 11px; color: #888; }
.bpi-qty { width: 60px; padding: 6px 8px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; text-align: center; font-weight: 700; }
.box-size-select { margin-bottom: 10px; }
.box-weight { margin-bottom: 12px; }
.box-weight label { font-size: 12px; color: #666; margin-bottom: 4px; display: block; }

/* ==================== COMPLETE SECTION ==================== */
.complete-section { background: #fff; border-radius: 12px; padding: 16px; margin-top: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 2px solid #27ae60; }

/* ==================== MODAL ==================== */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; animation: slideUp 0.25s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 22px; color: #999; cursor: pointer; padding: 4px; }
.modal-body { padding: 16px 20px; }
.modal-footer { display: flex; gap: 8px; padding: 12px 20px 20px; justify-content: flex-end; }

/* ==================== DEPO SEÇİM ==================== */
.depo-ozet { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.depo-adet-satir { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border: 2px solid #e0e0e0; border-radius: 12px; background: #fafafa; transition: border-color 0.2s; }
.depo-adet-satir.aktif { border-color: #3498db; background: #eaf4fd; }
.depo-bilgi { flex: 1; }
.depo-adi { font-weight: 700; font-size: 14px; }
.depo-stok-bilgi { font-size: 12px; color: #888; }
.depo-adet-btns { display: flex; flex-direction: column; gap: 3px; }
.depo-adet-input { width: 80px; text-align: center; font-size: 18px; font-weight: 700; border: 2px solid #ddd; border-radius: 8px; padding: 8px 4px; flex-shrink: 0; }
.depo-adet-input:focus { border-color: #3498db; outline: none; }
.depo-adet-btn { width: 56px; height: 26px; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.depo-adet-btn.plus { background: #27ae60; color: #fff; }
.depo-adet-btn.minus { background: #e74c3c; color: #fff; }
.depo-adet-btn.hepsi { background: #3498db; color: #fff; }

/* ==================== QR READER ==================== */
.qr-result { text-align: center; margin-top: 10px; padding: 8px; }
#qr-reader { width: 100%; border-radius: 12px; overflow: hidden; }
#qr-reader video { border-radius: 12px; }

/* ==================== PAGINATION ==================== */
.pagination-wrap { display: flex; justify-content: center; gap: 4px; padding: 16px 0; flex-wrap: wrap; }
.pg-btn { padding: 8px 14px; border-radius: 8px; background: #fff; color: #333; font-size: 13px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.pg-btn.active { background: #3498db; color: #fff; }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 60px 20px; color: #bbb; }
.empty-state i { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .status-cards { justify-content: center; }
    .s-card { min-width: 100px; }
    .order-list { max-width: 600px; margin: 0 auto; }
    .detail-section { max-width: 600px; margin-left: auto; margin-right: auto; }
    .modal-content { border-radius: 20px; margin-bottom: 20px; }
    .modal { align-items: center; }
}

/* ==================== DARK SCROLL ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ==================== TOUCH HELPERS ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn, .order-card, .product-card .pc-main, .box-product-item { -webkit-tap-highlight-color: transparent; }
    .form-input, .search-input, .barcode-input-wrap input { font-size: 16px !important; }
}
