*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f5f7;color:#1f2937}
.app{display:flex;min-height:100vh}.sidebar{width:250px;background:#111827;color:white;padding:18px;position:fixed;top:0;bottom:0;overflow:auto}
.brand{font-size:19px;font-weight:700;margin-bottom:18px}.sidebar a{display:block;color:#e5e7eb;text-decoration:none;padding:10px 12px;border-radius:8px;margin:4px 0}
.sidebar a:hover{background:#374151}.sidebar .danger{color:#fecaca}.main{margin-left:250px;width:calc(100% - 250px)}
.topbar{height:64px;background:white;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.content{padding:22px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.card{background:white;border-radius:14px;padding:18px;box-shadow:0 1px 5px #0001}
.card h3{margin-top:0}.kpi{font-size:28px;font-weight:700}.table{width:100%;border-collapse:collapse;background:white;border-radius:12px;overflow:hidden}
.table th,.table td{padding:11px;border-bottom:1px solid #e5e7eb;text-align:left}.table th{background:#f9fafb}
.btn{display:inline-block;background:#2563eb;color:white;padding:9px 13px;border-radius:8px;text-decoration:none;border:0;cursor:pointer}
.btn.gray{background:#6b7280}.btn.red{background:#dc2626}.btn.green{background:#16a34a}.btn.orange{background:#ea580c}
input,select,textarea{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:8px;background:white}
label{font-weight:600;margin-top:10px;display:block}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.actions{margin:14px 0}
.alert{padding:12px 14px;border-radius:10px;margin:14px 22px}.ok{background:#dcfce7;color:#166534}.err{background:#fee2e2;color:#991b1b}
.badge{padding:4px 8px;border-radius:999px;background:#e5e7eb}.low{background:#fee2e2;color:#991b1b}.okb{background:#dcfce7;color:#166534}
.login{max-width:420px;margin:80px auto;background:white;padding:28px;border-radius:16px;box-shadow:0 2px 16px #0002}
@media(max-width:800px){.sidebar{position:static;width:100%}.app{display:block}.main{margin-left:0;width:100%}}

/* V1.2 - Barkod odaklı hızlı satış ekranı */
.pos-shell{display:flex;flex-direction:column;gap:12px}
.pos-toolbar{display:grid;grid-template-columns:190px minmax(260px,1.25fr) minmax(240px,1fr) minmax(220px,.8fr);gap:10px;align-items:end}
.pos-toolbar>div{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.pos-toolbar label{font-size:12px;margin:0 0 5px;color:#64748b}
.pos-stat{background:linear-gradient(135deg,#f59e0b,#f97316)!important;color:#fff;border:0!important;min-height:72px;display:flex;flex-direction:column;justify-content:center}
.pos-stat span{font-size:11px;font-weight:700}.pos-stat strong{font-size:25px;margin-top:3px}
.pos-barcode{border:2px solid #f59e0b!important;font-size:18px;font-weight:700}
.pos-message{display:none;padding:10px 14px;border-radius:10px;font-weight:600}.pos-message.show{display:block}.pos-message.success{background:#dcfce7;color:#166534}.pos-message.error{background:#fee2e2;color:#991b1b}.pos-message.info{background:#dbeafe;color:#1e40af}
.pos-workspace{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(310px,.8fr);gap:12px;min-height:520px}
.pos-cart-panel,.pos-products-panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.pos-panel-title{background:#1e293b;color:#fff;padding:11px 14px;display:flex;justify-content:space-between;align-items:center}.pos-panel-title span{background:#475569;padding:3px 8px;border-radius:999px;font-size:12px}
.pos-products-panel .pos-panel-title{background:#2563eb}
.pos-cart-scroll{position:relative;flex:1;overflow:auto;min-height:330px}.pos-cart-table{width:100%;border-collapse:collapse}.pos-cart-table th{position:sticky;top:0;background:#f8fafc;color:#475569;font-size:12px;text-align:left;padding:10px;z-index:1}.pos-cart-table td{padding:10px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.pos-cart-table td:first-child{width:48%}.pos-cart-table td small{display:block;color:#64748b;margin-top:3px}
.pos-empty{position:absolute;inset:50px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8;gap:5px}.pos-empty[hidden]{display:none}.pos-empty span{font-size:42px;filter:grayscale(1)}
.pos-qty-control{display:grid;grid-template-columns:34px 65px 34px;gap:4px}.pos-qty-control button,.pos-remove{border:0;border-radius:7px;cursor:pointer;font-weight:800}.pos-qty-control button{background:#e2e8f0}.pos-qty-control input{text-align:center;padding:7px}.pos-remove{width:34px;height:34px;background:#fee2e2;color:#b91c1c;font-size:20px}
.pos-summary{background:#0f172a;color:#fff;padding:12px 16px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:16px}.pos-summary label{margin:0 0 5px;font-size:12px;color:#cbd5e1}.pos-summary input{background:#1e293b;border-color:#475569;color:#fff}.pos-grand-total{text-align:right}.pos-grand-total span{display:block;font-size:12px}.pos-grand-total strong{font-size:28px}
.pos-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;overflow:auto;max-height:545px}.pos-product-card{background:#fff;border:1px solid #cbd5e1;border-radius:11px;padding:9px 6px;min-height:126px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#172033}.pos-product-card:hover{border-color:#2563eb;box-shadow:0 3px 12px #2563eb22;transform:translateY(-1px)}.pos-product-card strong{font-size:12px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pos-product-card b{color:#1d4ed8}.pos-product-card small{background:#dcfce7;color:#166534;border-radius:999px;padding:3px 6px}.pos-product-icon{background:linear-gradient(135deg,#60a5fa,#2563eb);color:#fff;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:20px;font-weight:800}
.pos-payment-bar{display:grid;grid-template-columns:1.35fr 1.1fr 1fr 1fr auto;gap:8px;position:sticky;bottom:0;background:#f3f5f7;padding:8px 0;z-index:5}.pos-pay,.pos-clear{border:0;border-radius:11px;padding:15px 12px;font-size:15px;font-weight:800;cursor:pointer}.pos-pay small{float:right;opacity:.7}.pos-pay.cash{background:#16a34a;color:#fff}.pos-pay.card{background:#2563eb;color:#fff}.pos-pay.transfer{background:#0891b2;color:#fff}.pos-pay.account{background:#7c3aed;color:#fff}.pos-clear{background:#fee2e2;color:#b91c1c}
@media(max-width:1200px){.pos-toolbar{grid-template-columns:170px 1fr 1fr}.pos-customer-wrap{grid-column:1/-1}.pos-workspace{grid-template-columns:1fr}.pos-product-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:310px}.pos-payment-bar{grid-template-columns:repeat(4,1fr)}.pos-clear{grid-column:1/-1}}
@media(max-width:800px){.content{padding:10px}.pos-toolbar{grid-template-columns:1fr}.pos-customer-wrap{grid-column:auto}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-table th:nth-child(3),.pos-cart-table td:nth-child(3){display:none}.pos-cart-table td:first-child{width:auto}.pos-summary{grid-template-columns:1fr}.pos-payment-bar{grid-template-columns:1fr 1fr}.pos-clear{grid-column:1/-1}.pos-pay small{display:none}}

/* V1.3 - ödeme, müşteri ve banka hesabı pencereleri */
.pos-modal[hidden]{display:none}.pos-modal{position:fixed;inset:0;background:#0f172acc;z-index:1000;display:grid;place-items:center;padding:20px}.pos-modal-card{position:relative;background:#fff;border-radius:16px;padding:22px;width:min(620px,100%);max-height:90vh;overflow:auto;box-shadow:0 24px 80px #0005}.pos-modal-card h3{margin:0 42px 5px 0;font-size:22px}.pos-modal-card>p{margin:0 0 15px;color:#64748b}.pos-modal-close{position:absolute;right:14px;top:12px;border:0;background:#f1f5f9;width:34px;height:34px;border-radius:999px;font-size:22px;cursor:pointer}.pos-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}.pos-new-toggle{margin-top:8px}.pos-inline-new{margin-top:12px;padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.pos-inline-new[hidden]{display:none}.pos-checks{display:flex;gap:18px;margin:12px 0}.pos-checks label{display:flex;align-items:center;gap:7px;margin:0}.pos-checks input{width:auto}.pos-modal-open{overflow:hidden}
