*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#0f172a;color:#e2e8f0}a{color:inherit;text-decoration:none}.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}aside{background:#111827;padding:24px 16px;border-right:1px solid #253044;display:flex;flex-direction:column}.brand{font-weight:800;font-size:24px;padding:0 10px 22px}.brand span{display:block;font-size:12px;color:#94a3b8;font-weight:600;margin-top:3px}nav{display:grid;gap:6px}nav a,.logout{padding:11px 12px;border-radius:9px;color:#cbd5e1}nav a:hover,.logout:hover{background:#1f2937;color:#fff}.logout{margin-top:auto}main header{height:78px;padding:16px 28px;border-bottom:1px solid #253044;display:flex;align-items:center}h1{margin:0;font-size:22px}small{color:#94a3b8}.content{padding:26px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:#111827;border:1px solid #263246;border-radius:14px;padding:18px}.metric{font-size:27px;font-weight:800;margin-top:8px}.muted{color:#94a3b8}.table-wrap{overflow:auto;background:#111827;border:1px solid #263246;border-radius:14px;margin-top:18px}table{width:100%;border-collapse:collapse}th,td{padding:13px 14px;text-align:left;border-bottom:1px solid #233044;white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:#94a3b8}.btn{display:inline-block;border:0;border-radius:9px;padding:10px 14px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer}.btn.secondary{background:#334155}.btn.danger{background:#b91c1c}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.form-card{max-width:760px;background:#111827;border:1px solid #263246;border-radius:14px;padding:20px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{margin-bottom:14px}label{display:block;font-size:13px;color:#cbd5e1;margin-bottom:6px}input,select,textarea{width:100%;padding:11px 12px;background:#0b1220;border:1px solid #334155;color:#fff;border-radius:9px}.alert{padding:12px 14px;border-radius:9px;margin-bottom:14px}.alert.success{background:#064e3b}.alert.error{background:#7f1d1d}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(430px,100%);background:#111827;border:1px solid #263246;border-radius:18px;padding:28px}.auth-card h1{font-size:28px;margin-bottom:5px}.auth-card p{color:#94a3b8;margin-top:0}.auth-card .btn{width:100%;margin-top:7px}.sale-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.product{background:#111827;border:1px solid #263246;border-radius:13px;padding:16px;cursor:pointer}.product:hover{border-color:#3b82f6}.product strong{display:block;margin-bottom:7px}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#1e293b;font-size:12px}.total{font-size:30px;font-weight:900;margin:10px 0 18px}@media(max-width:900px){.app{grid-template-columns:1fr}aside{display:none}.grid{grid-template-columns:1fr 1fr}.sale-layout{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.grid,.row,.product-grid{grid-template-columns:1fr}.content{padding:16px}}
/* V2 POS */
.pos-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.7fr);gap:18px}.pos-products .toolbar input{max-width:360px}.product{font:inherit;color:inherit;text-align:left;width:100%}.pos-cart{position:sticky;top:18px;height:max-content}.cart-lines{max-height:340px;overflow:auto;border-top:1px solid #263246;border-bottom:1px solid #263246;margin:10px 0 15px}.empty-cart{padding:28px 8px;text-align:center;color:#94a3b8}.cart-line{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:11px 3px;border-bottom:1px solid #233044}.cart-line small{display:block;color:#94a3b8;margin-top:3px}.qty{display:flex;align-items:center;gap:8px}.qty button,.icon-btn,.payment-row button{border:0;background:#334155;color:#fff;border-radius:7px;cursor:pointer}.qty button{width:28px;height:28px;font-size:18px}.discount-box{padding-top:4px}.summary{display:grid;gap:8px;margin:12px 0}.summary>div{display:flex;justify-content:space-between}.summary .grand{border-top:1px solid #334155;padding-top:10px;font-size:21px}.pay-btn{width:100%;font-size:18px;padding:15px}.modal{position:fixed;inset:0;background:rgba(0,0,0,.68);display:none;place-items:center;padding:20px;z-index:100}.modal.show{display:grid}.modal-card{width:min(760px,100%);max-height:94vh;overflow:auto;background:#111827;border:1px solid #334155;border-radius:18px;padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.modal-head h2{margin:0 0 4px}.icon-btn{width:38px;height:38px;font-size:25px}.payment-types{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.payment-types button,.provider-grid button{padding:17px 8px;border:1px solid #334155;background:#0b1220;color:#fff;border-radius:11px;font-weight:800;cursor:pointer}.payment-types button.active,.provider-grid button.active{background:#2563eb;border-color:#60a5fa}.provider-area{margin:16px 0}.provider-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:7px}.payment-entry{margin-top:16px}.change-info{min-height:24px;font-weight:700;color:#86efac}.payment-list{margin-top:14px}.payment-row{display:grid;grid-template-columns:1fr auto 30px;align-items:center;gap:10px;padding:10px;border-top:1px solid #263246}.payment-row button{width:28px;height:28px}.payment-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px;padding-top:16px;border-top:1px solid #334155;font-size:18px}.payment-footer .btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1050px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}}@media(max-width:650px){.payment-types{grid-template-columns:1fr 1fr}.provider-grid{grid-template-columns:1fr 1fr}.payment-footer{align-items:stretch;flex-direction:column}.payment-footer .btn{width:100%}}

/* ===== UBT POS V2.1 VISUAL REFRESH ===== */
body{background:#08111f;color:#eaf1fb}
.app{grid-template-columns:220px minmax(0,1fr)}
aside{background:#0a1424;border-right:1px solid #1c2b41;padding:26px 16px}.brand{font-size:23px;letter-spacing:-.4px}.brand span{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:#71829a}nav a,.logout{border:1px solid transparent;font-weight:650}nav a:hover{background:#12213a;border-color:#203653}.logout:hover{background:#251522;border-color:#5f2439}
main header{height:74px;background:rgba(8,17,31,.92);backdrop-filter:blur(12px);border-bottom:1px solid #1b2b42;padding:15px 26px}.content{padding:22px 26px 30px;max-width:1800px;width:100%;margin:0 auto}
.card{background:linear-gradient(180deg,#0e1a2d 0%,#0b1627 100%);border-color:#21324a;box-shadow:0 14px 38px rgba(0,0,0,.18)}

/* POS workspace */
.pos-layout{grid-template-columns:minmax(0,1.55fr) minmax(390px,.68fr);gap:22px;align-items:start}.pos-products{min-width:0}.pos-products .toolbar{background:#0d192b;border:1px solid #21324a;border-radius:16px;padding:16px 18px;margin-bottom:16px;box-shadow:0 10px 30px rgba(0,0,0,.14)}.pos-products .toolbar h3{font-size:19px}.pos-products .toolbar input{max-width:520px;height:46px;border-radius:12px;background:#07111f;border-color:#2a3d58;padding-left:15px;font-size:14px}.pos-products .toolbar input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.13)}
.product-grid{grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px}.product{min-height:148px;background:linear-gradient(145deg,#101e33,#0c1728);border:1px solid #223752;border-radius:16px;padding:17px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;display:flex!important;flex-direction:column}.product:hover{transform:translateY(-2px);border-color:#3b82f6;box-shadow:0 12px 28px rgba(0,0,0,.25)}.product:active{transform:scale(.985)}.product strong{font-size:15px;line-height:1.3}.product p{font-size:21px;font-weight:850;margin:15px 0 11px;color:#f8fbff}.product .badge{margin-top:auto;width:max-content;background:#132844;border:1px solid #25466e;color:#a8c8f4}.product .muted{font-size:12px}

/* Cart */
.pos-cart{top:16px;border-radius:18px;padding:20px;overflow:hidden}.pos-cart>h3{font-size:20px;margin:0 0 14px}.cart-lines{max-height:360px;margin:0 0 16px;border:1px solid #20324a;border-radius:13px;background:#081321}.empty-cart{padding:46px 12px}.cart-line{grid-template-columns:minmax(0,1fr) auto auto;padding:13px 12px;border-bottom:1px solid #1c2d44}.cart-line:last-child{border-bottom:0}.qty{background:#0c1a2c;border:1px solid #263a54;border-radius:10px;padding:3px}.qty button{background:#172a44;width:30px;height:30px}.discount-box{background:#091524;border:1px solid #20324a;border-radius:13px;padding:13px;margin-top:4px}.discount-box .field{margin-bottom:10px}.discount-box label{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#8192aa}.discount-box input,.discount-box select{background:#07111f;border-color:#293d59;height:41px}.summary{background:#091524;border:1px solid #20324a;border-radius:13px;padding:14px;margin:14px 0}.summary>div{padding:3px 0;color:#aab8ca}.summary>div strong{color:#eef5ff}.summary .grand{margin-top:6px;padding-top:13px;font-size:22px;color:#fff}.summary .grand strong{font-size:26px;color:#60a5fa}.pay-btn{height:56px;border-radius:13px;font-size:17px;letter-spacing:.25px;background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 10px 24px rgba(37,99,235,.22)}.pay-btn:hover{filter:brightness(1.08)}

/* Payment modal */
.modal{background:rgba(2,8,18,.78);backdrop-filter:blur(8px);padding:24px}.modal-card{width:min(820px,100%);background:linear-gradient(180deg,#101d31,#0a1525);border:1px solid #2a3d58;border-radius:22px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.5)}.modal-head{padding-bottom:16px;border-bottom:1px solid #20324a}.modal-head h2{font-size:24px}.modal-head .muted{font-size:15px}.modal-head .muted b{color:#60a5fa;font-size:20px}.icon-btn{background:#17263b;border:1px solid #2b3f5a;border-radius:11px}.payment-types{grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.payment-types button{min-height:88px;border-radius:15px;background:#0b1728;border:1px solid #29405e;font-size:14px;letter-spacing:.2px;transition:.15s}.payment-types button:hover{border-color:#4b8ef7;background:#10223a}.payment-types button.active{background:linear-gradient(135deg,#2563eb,#1e40af);border-color:#60a5fa;box-shadow:0 10px 25px rgba(37,99,235,.22)}.provider-area{background:#091524;border:1px solid #20324a;border-radius:14px;padding:14px;margin:16px 0}.provider-grid{gap:9px}.provider-grid button{min-height:48px;background:#0d1b2e}.payment-entry{background:#091524;border:1px solid #20324a;border-radius:14px;padding:14px;margin-top:16px}.payment-entry .field{margin:0}.payment-entry input{height:46px;font-size:16px}.change-info{padding:8px 2px 2px;color:#86efac}.payment-list{border-radius:12px;overflow:hidden}.payment-row{background:#0b1728;padding:12px 14px}.payment-footer{font-size:18px}.payment-footer>div{background:#091524;border:1px solid #20324a;padding:12px 15px;border-radius:12px}.payment-footer #remaining{color:#60a5fa;font-size:22px}.payment-footer .btn{min-height:48px;border-radius:12px}

@media(max-width:1320px){.product-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.pos-layout{grid-template-columns:minmax(0,1.35fr) minmax(370px,.7fr)}}
@media(max-width:1050px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}.product-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:760px){.content{padding:16px}.product-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.pos-products .toolbar{align-items:stretch;flex-direction:column}.pos-products .toolbar input{max-width:none}.payment-types{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.product-grid{grid-template-columns:1fr}.pos-cart{padding:15px}.modal{padding:10px}.modal-card{padding:16px}.row{grid-template-columns:1fr}}

/* ===== UBT POS V3 ===== */
.stock-v3-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.stock-panel{max-width:none;border-radius:18px;background:linear-gradient(180deg,#0e1a2d,#0b1627);box-shadow:0 14px 38px rgba(0,0,0,.18)}.stock-panel-head{margin-bottom:18px}.stock-panel-head h3{margin:3px 0 5px;font-size:21px}.stock-panel-head p{margin:0}.eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:1.2px;color:#60a5fa}.stock-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 15px}.stock-info>div{background:#081321;border:1px solid #20324a;border-radius:12px;padding:13px}.stock-info span{display:block;color:#8192aa;font-size:12px;margin-bottom:5px}.stock-info strong{font-size:18px;color:#fff}.stock-primary{width:100%;min-height:46px}.secondary-stock-panel .btn{width:100%;min-height:46px}.stock-plus{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#083b31;color:#86efac;font-weight:800}.cash-quick-area{margin-top:13px}.cash-quick-area>label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#8192aa}.cash-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.cash-quick{min-height:46px;border:1px solid #29405e;background:#0c1b2f;color:#eaf1fb;border-radius:11px;font-weight:800;cursor:pointer}.cash-quick:hover{border-color:#4b8ef7}.cash-quick.active{background:#2563eb;border-color:#60a5fa}.cash-custom-input{margin-top:10px;height:46px;font-size:17px}.change-info{font-size:16px;padding-top:10px}
@media(max-width:900px){.stock-v3-grid{grid-template-columns:1fr}}@media(max-width:560px){.cash-quick-grid{grid-template-columns:1fr 1fr}.stock-info{grid-template-columns:1fr}}


/* V4 - Urun durum ve silme islemleri */
.product-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.product-actions form{margin:0}.mini-btn{border:1px solid #334155;border-radius:9px;padding:8px 11px;font-weight:800;cursor:pointer;background:#152033;color:#fff}.mini-btn.warning{border-color:#a16207;background:rgba(161,98,7,.16);color:#fbbf24}.mini-btn.success{border-color:#15803d;background:rgba(21,128,61,.16);color:#4ade80}.mini-btn.danger{border-color:#b91c1c;background:rgba(185,28,28,.16);color:#f87171}.mini-btn:hover{filter:brightness(1.12)}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.status-pill.active{background:rgba(22,163,74,.16);color:#4ade80;border:1px solid rgba(74,222,128,.25)}.status-pill.passive{background:rgba(148,163,184,.12);color:#cbd5e1;border:1px solid rgba(148,163,184,.2)}.product-inactive{opacity:.68}.product-inactive:hover{opacity:1}

/* ===== UBT POS V6 EAN-8 ===== */
.barcode-scan-card{display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,#0f172a,#172554);border-radius:18px;padding:18px 20px;margin-bottom:20px;color:#fff;box-shadow:0 10px 30px rgba(15,23,42,.18)}
.scan-icon{font-size:36px;line-height:1}.scan-main{flex:1}.scan-main label{display:block;font-size:12px;font-weight:800;letter-spacing:.09em;margin-bottom:7px;color:#cbd5e1}.scan-main input{width:100%;font-size:22px;font-weight:800;letter-spacing:.08em;background:#fff;color:#0f172a;border:0;border-radius:12px;padding:14px 16px}.scan-main small{display:block;margin-top:8px}.scan-ok{color:#86efac;font-weight:700}.scan-error{color:#fda4af;font-weight:700}
.barcode-created-card{margin-bottom:18px}.barcode-code-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;margin-top:12px;word-break:break-word}.barcode-auto-note{padding:11px 12px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:13px;margin-bottom:14px}
.barcode-page-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.barcode-label-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.barcode-label{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px;text-align:center}.barcode-product-name{font-weight:800;margin-bottom:8px}.ean8-svg{width:100%;max-width:190px;height:auto}.barcode-status{font-size:11px;font-weight:800;margin-top:5px;letter-spacing:.06em}.sold-barcode{opacity:.45}.product-actions a.mini-btn{text-decoration:none;display:inline-flex;align-items:center}
@media(max-width:700px){.barcode-page-head{align-items:flex-start;flex-direction:column}.barcode-scan-card{align-items:flex-start}.scan-icon{display:none}.scan-main input{font-size:17px}}

/* ===== UBT POS V9 ===== */
.campaign-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 16px;margin-bottom:16px;border:1px solid #7c3aed;border-radius:14px;background:linear-gradient(135deg,rgba(124,58,237,.19),rgba(37,99,235,.12));color:#e9ddff}.campaign-banner span{color:#c4b5fd}.revenue-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:16px}.revenue-grid .card{padding:14px}.revenue-grid span{display:block;color:#94a3b8;font-size:12px;margin-bottom:5px}.revenue-grid strong{font-size:19px}.dashboard-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.dashboard-two h3{margin-top:0}.urgent-list{display:grid;gap:8px}.urgent-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 12px;border-radius:11px;background:color-mix(in srgb,var(--danger-color) 13%,var(--card-bg));border:1px solid color-mix(in srgb,var(--danger-color) 65%,var(--border-color));color:var(--text-color)}.urgent-row small{display:block;margin-top:3px}.urgent-row b{color:var(--danger-color)!important}.urgent-row.level-2,.urgent-row.level-3{background:color-mix(in srgb,var(--warning-color) 13%,var(--card-bg));border-color:color-mix(in srgb,var(--warning-color) 65%,var(--border-color))}.urgent-row.level-2 b,.urgent-row.level-3 b{color:var(--warning-color)!important}.notice-row{display:grid;gap:2px;padding:10px 0;border-bottom:1px solid #20324a}.notice-row span{color:#cbd5e1}.notice-row small{color:#64748b}.hour-chart{display:grid;gap:9px}.hour-row{display:grid;grid-template-columns:55px minmax(80px,1fr) 190px;gap:9px;align-items:center;font-size:12px}.hour-bar{height:10px;background:#0a1423;border-radius:999px;overflow:hidden}.hour-bar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:999px}.rank-row{display:grid;grid-template-columns:38px 1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid #20324a}.rank-row span{color:#60a5fa;font-weight:800}.dashboard-table{margin-top:8px}.campaign-summary strong{color:#c4b5fd!important}.batch-meta{font-size:11px;line-height:1.6;color:#334155;margin-top:8px}.urgent-text{color:#dc2626;margin-left:4px}.inline-edit{position:relative}.inline-edit summary{list-style:none}.inline-edit summary::-webkit-details-marker{display:none}.inline-edit-form{position:absolute;z-index:20;right:0;top:38px;width:320px;padding:12px;background:#0b1627;border:1px solid #334155;border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.45);display:grid;gap:8px}.inline-edit-form input,.inline-edit-form select{width:100%}.alert.warning{background:rgba(161,98,7,.18);border:1px solid #a16207;color:#fde68a}.payment-types{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px){.revenue-grid{grid-template-columns:repeat(3,1fr)}.dashboard-two{grid-template-columns:1fr}.payment-types{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.revenue-grid{grid-template-columns:1fr 1fr}.hour-row{grid-template-columns:48px 1fr}.hour-row b{grid-column:2}.campaign-banner{align-items:flex-start;flex-direction:column}.payment-types{grid-template-columns:1fr 1fr}}

/* ===== UBT POS V10 - LİSANS YÖNETİMİ ===== */
.license-grid{display:grid;grid-template-columns:minmax(0,760px) minmax(260px,1fr);gap:18px;align-items:start;margin-bottom:18px}.license-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:18px}.license-lock-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#172554 0,#0f172a 45%,#070b13 100%)}.license-lock-card{width:min(560px,100%);background:#111827;border:1px solid #334155;border-radius:22px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.45);text-align:center}.license-lock-card h1{font-size:28px;margin:10px 0 12px}.license-lock-card p{line-height:1.6}.license-lock-icon{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:rgba(185,28,28,.2);border:1px solid #ef4444;color:#fca5a5;font-size:34px;font-weight:900}.license-lock-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0;text-align:left}.license-lock-info>div{background:#0b1220;border:1px solid #263246;border-radius:12px;padding:14px}.license-lock-info span{display:block;color:#94a3b8;font-size:12px;margin-bottom:5px}.license-lock-info b{display:block}.license-lock-card .btn{margin-top:12px}.table-wrap select{min-width:120px;padding:8px 9px}.product-actions .btn{display:inline-flex;align-items:center}
@media(max-width:1100px){.license-kpi-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.license-grid{grid-template-columns:1fr}.license-kpi-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.license-kpi-grid,.license-lock-info{grid-template-columns:1fr}}

/* ===== UBT POS V12 REPORTS ===== */
.report-toolbar{margin-bottom:18px}
.report-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.report-filter .field{min-width:180px;margin:0}
.report-filter .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.report-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
.report-summary .metric{font-size:28px}
.report-section{margin-top:18px}
.report-section>h3{margin-top:0}
.report-highlight{padding:12px 14px;border:1px solid var(--border,#e5e7eb);border-radius:12px;background:rgba(99,102,241,.06)}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.card.compact{padding:14px;min-height:84px}.card.compact strong{font-size:21px;display:block;margin-top:5px}
@media(max-width:1200px){.report-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter .field,.report-filter .btn{width:100%}}


/* V13 - İşletme özellik yönetimi */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:14px}.feature-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--border,#dfe5ec);border-radius:12px;background:var(--card,#fff);cursor:pointer}.feature-toggle div{display:flex;flex-direction:column;gap:5px}.feature-toggle small{opacity:.7;line-height:1.35}.feature-toggle input{width:22px;height:22px;flex:0 0 auto}


/* ===== UBT POS V16 - KAYDIRILABILIR URUN LISTESI ===== */
.products-scroll-wrap{max-height:520px;overflow-y:auto;overflow-x:auto;position:relative;scrollbar-gutter:stable;border-radius:14px}
.products-scroll-wrap table{margin:0}
.products-scroll-wrap thead th{position:sticky;top:0;z-index:8;background:#111c2e;box-shadow:0 1px 0 #2b3b52}
.products-scroll-wrap::-webkit-scrollbar{width:10px;height:10px}
.products-scroll-wrap::-webkit-scrollbar-track{background:#0b1422;border-radius:999px}
.products-scroll-wrap::-webkit-scrollbar-thumb{background:#334155;border-radius:999px;border:2px solid #0b1422}
.products-scroll-wrap::-webkit-scrollbar-thumb:hover{background:#475569}
@media(max-width:760px){.products-scroll-wrap{max-height:430px}}


/* ===== UBT POS V17 - URUN LISTESI SCROLL FIX ===== */
.products-scroll-wrap{height:520px!important;max-height:520px!important;overflow-y:scroll!important;overflow-x:auto!important;display:block!important;position:relative!important}
.products-scroll-wrap table{width:100%;min-width:900px}
.products-scroll-wrap thead{position:sticky;top:0;z-index:20}
.products-scroll-wrap thead th{position:sticky!important;top:0!important;z-index:21!important;background:#111c2e!important}
@media(max-width:760px){.products-scroll-wrap{height:430px!important;max-height:430px!important}}

/* V20 - Excel bulk product import */
.bulk-import-card{margin-bottom:18px}
.bulk-import-card p{max-width:980px;color:var(--muted,#94a3b8)}
.bulk-import-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px}
.bulk-upload-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;flex:1}
.bulk-upload-form input[type=file]{min-width:280px;max-width:460px;padding:10px;border:1px dashed rgba(148,163,184,.45);border-radius:10px;background:rgba(15,23,42,.35)}
@media(max-width:760px){.bulk-upload-form{display:grid;width:100%}.bulk-upload-form input[type=file]{min-width:0;width:100%}.bulk-import-actions{display:grid}}


/* ===== V21 Excel Toplu Ürün Modal ===== */
.product-create-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.product-create-actions .btn{margin:0}
.bulk-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:24px}
.bulk-modal.is-open{display:flex}
.bulk-modal-backdrop{position:absolute;inset:0;background:rgba(2,8,23,.78);backdrop-filter:blur(4px)}
.bulk-modal-dialog{position:relative;width:min(760px,100%);max-height:88vh;overflow:hidden;border:1px solid rgba(148,163,184,.22);border-radius:22px;background:#0d1b2d;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.bulk-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid rgba(148,163,184,.16)}
.bulk-modal-head h2{margin:4px 0 0;font-size:24px}
.bulk-modal-close{width:40px;height:40px;border:1px solid rgba(148,163,184,.2);border-radius:12px;background:#13253b;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.bulk-modal-close:hover{background:#1b3049}
.bulk-modal-body{padding:22px 24px 26px;overflow-y:auto;max-height:calc(88vh - 90px)}
.bulk-step{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid rgba(148,163,184,.12)}
.bulk-step:last-of-type{border-bottom:0}
.bulk-step-no{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#1f6feb;color:#fff;font-weight:800}
.bulk-step strong{font-size:16px}
.bulk-step p{margin:5px 0 14px;color:#94a3b8;line-height:1.55}
.bulk-step-content{width:100%}
.bulk-upload-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
.bulk-upload-form input[type=file]{flex:1;min-width:260px;padding:11px;border:1px dashed rgba(148,163,184,.35);border-radius:12px;background:#0a1626;color:#dbeafe}
.bulk-result-box{margin-top:18px;padding:18px;border:1px solid rgba(59,130,246,.22);border-radius:16px;background:rgba(30,64,175,.10)}
.modal-open{overflow:hidden}
@media(max-width:760px){.bulk-modal{padding:10px}.bulk-modal-dialog{max-height:94vh;border-radius:16px}.bulk-modal-head,.bulk-modal-body{padding:18px}.bulk-upload-form{display:grid}.bulk-upload-form input[type=file]{min-width:0;width:100%}.product-create-actions{display:grid}.product-create-actions .btn{width:100%}}
\n\n/* ===== UBT POS V23 - Manager License Badge ===== */\n.manager-license-row{display:flex;justify-content:flex-end;margin:-6px 0 16px}.manager-license-card{min-width:340px;max-width:520px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:12px 16px;border-radius:14px;border:1px solid #1e3a5f;background:linear-gradient(135deg,#0d1d31,#101b2b);box-shadow:0 8px 24px rgba(0,0,0,.16)}.manager-license-main{display:flex;align-items:center;gap:10px;min-width:0}.manager-license-main>div{display:grid;gap:2px}.manager-license-main small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.manager-license-main strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-license-dot{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12);flex:0 0 auto}.manager-license-meta{display:grid;text-align:right;gap:2px}.manager-license-meta b{font-size:13px;color:#86efac}.manager-license-meta span{font-size:11px;color:#94a3b8;white-space:nowrap}.manager-license-card.license-warning{border-color:#854d0e;background:linear-gradient(135deg,#251a08,#101b2b)}.manager-license-card.license-warning .manager-license-dot{background:#eab308;box-shadow:0 0 0 4px rgba(234,179,8,.13)}.manager-license-card.license-warning .manager-license-meta b{color:#fde047}.manager-license-card.license-danger{border-color:#9a3412;background:linear-gradient(135deg,#2a120b,#101b2b)}.manager-license-card.license-danger .manager-license-dot{background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.13)}.manager-license-card.license-danger .manager-license-meta b{color:#fdba74}@media(max-width:700px){.manager-license-row{justify-content:stretch}.manager-license-card{min-width:0;width:100%;align-items:flex-start}.manager-license-meta{margin-left:auto}}\n

/* V31 - Süper Admin merkezi işletme özellik yönetimi */
.feature-admin-shell{display:grid;gap:16px}
.feature-admin-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.feature-org-picker{min-width:300px}
.feature-org-picker label{display:block;font-size:12px;color:#94a3b8;margin-bottom:6px}
.feature-org-picker select{width:100%}
.feature-summary-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
.feature-summary-grid .stat strong{font-size:20px}
.feature-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.feature-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.feature-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.feature-control-item{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    padding:16px;border:1px solid #1f334b;border-radius:14px;
    background:rgba(15,23,42,.42);cursor:pointer
}
.feature-control-item:hover{border-color:#365777}
.feature-control-copy{display:grid;gap:5px;min-width:0}
.feature-control-copy strong{font-size:14px}
.feature-control-copy small{color:#94a3b8;line-height:1.4}
.feature-switch{position:relative;width:48px;height:27px;flex:0 0 auto}
.feature-switch input{opacity:0;width:0;height:0;position:absolute}
.feature-slider{
    position:absolute;inset:0;border-radius:999px;background:#334155;
    transition:.18s;border:1px solid #475569
}
.feature-slider:before{
    content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;
    border-radius:50%;background:#e2e8f0;transition:.18s
}
.feature-switch input:checked + .feature-slider{background:#16a34a;border-color:#22c55e}
.feature-switch input:checked + .feature-slider:before{transform:translateX(21px);background:#fff}
.feature-save-bar{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    margin-top:18px;padding-top:16px;border-top:1px solid #1f334b
}
@media(max-width:900px){
    .feature-admin-top,.feature-admin-heading,.feature-save-bar{align-items:stretch;flex-direction:column}
    .feature-org-picker{min-width:0;width:100%}
    .feature-summary-grid{grid-template-columns:1fr}
    .feature-control-grid{grid-template-columns:1fr}
}

/* V32 - Şube yönetimi */
.branch-limit-note{font-size:12px;color:#94a3b8}

/* ===== V32 SUPER ADMIN THEME VARIABLES ===== */
html,body{background:var(--ubt-page-bg)!important;color:var(--ubt-text)!important}body{color:var(--ubt-text)!important}aside{background:var(--ubt-sidebar-bg)!important;border-color:var(--ubt-border)!important}main header{background:var(--ubt-header-bg)!important;border-color:var(--ubt-border)!important}.brand,h1,h2,h3,h4,strong,.metric{color:var(--ubt-text)}.brand span,small,.muted,.empty-cart{color:var(--ubt-muted)!important}nav a,.logout{color:var(--ubt-muted)!important}nav a:hover,.logout:hover{background:var(--ubt-nav-hover)!important;color:var(--ubt-text)!important;border-color:var(--ubt-border)!important}.card,.form-card,.table-wrap,.auth-card{background:linear-gradient(180deg,var(--ubt-card-bg),var(--ubt-card-bg-alt))!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}table,tbody,tr,td{color:var(--ubt-text)}th{color:var(--ubt-table-header)!important}th,td,.table-wrap{border-color:var(--ubt-border)!important}input,select,textarea{background:var(--ubt-input-bg)!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}input:focus,select:focus,textarea:focus{border-color:var(--ubt-accent)!important;outline:none}label{color:var(--ubt-muted)!important}.btn{background:var(--ubt-primary)!important;color:#fff!important}.btn:hover{background:var(--ubt-primary-hover)!important}.btn.secondary{background:var(--ubt-secondary)!important}.btn.danger,.mini-btn.danger{background:var(--ubt-danger)!important}.btn.warning,.mini-btn.warning{background:var(--ubt-warning)!important}.btn.success,.mini-btn.success{background:var(--ubt-success)!important}.product{background:linear-gradient(145deg,var(--ubt-product-bg),var(--ubt-card-bg-alt))!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}.product:hover{border-color:var(--ubt-accent)!important}.product p{color:var(--ubt-text)!important}.product .badge,.badge{background:var(--ubt-surface-bg)!important;border-color:var(--ubt-border)!important;color:var(--ubt-accent)!important}.pos-products .toolbar,.pos-cart,.stock-panel{background:linear-gradient(180deg,var(--ubt-card-bg),var(--ubt-card-bg-alt))!important;border-color:var(--ubt-border)!important}.cart-lines,.discount-box,.summary,.payment-entry,.provider-area,.payment-footer>div,.stock-info>div{background:var(--ubt-surface-bg)!important;border-color:var(--ubt-border)!important}.cart-line,.payment-row,.notice-row{border-color:var(--ubt-border)!important}.qty,.qty button,.icon-btn,.payment-row button{background:var(--ubt-secondary)!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}.summary .grand strong,.payment-footer #remaining{color:var(--ubt-pos-total)!important}.pay-btn{background:linear-gradient(135deg,var(--ubt-primary),var(--ubt-primary-hover))!important}.modal-card{background:linear-gradient(180deg,var(--ubt-modal-bg),var(--ubt-card-bg-alt))!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}.modal-head,.payment-footer{border-color:var(--ubt-border)!important}.payment-types button,.provider-grid button,.cash-quick{background:var(--ubt-surface-bg)!important;border-color:var(--ubt-border)!important;color:var(--ubt-text)!important}.payment-types button.active,.provider-grid button.active,.cash-quick.active{background:var(--ubt-primary)!important;border-color:var(--ubt-accent)!important}.eyebrow{color:var(--ubt-accent)!important}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px}.theme-color-field{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;padding:12px;background:var(--ubt-surface-bg);border:1px solid var(--ubt-border);border-radius:12px}.theme-color-field input[type=color]{width:58px;height:44px;padding:3px;cursor:pointer}.theme-preview{display:grid;grid-template-columns:190px 1fr;min-height:300px;border:1px solid var(--ubt-border);border-radius:16px;overflow:hidden;margin-top:18px}.theme-preview-side{background:var(--preview-sidebar,var(--ubt-sidebar-bg));padding:18px}.theme-preview-main{background:var(--preview-page,var(--ubt-page-bg));padding:18px}.theme-preview-header{background:var(--preview-header,var(--ubt-header-bg));border:1px solid var(--preview-border,var(--ubt-border));padding:12px;border-radius:10px;margin-bottom:14px}.theme-preview-card{background:var(--preview-card,var(--ubt-card-bg));border:1px solid var(--preview-border,var(--ubt-border));padding:14px;border-radius:12px;margin-bottom:12px}.theme-preview-btn{display:inline-block;background:var(--preview-primary,var(--ubt-primary));color:#fff;padding:9px 12px;border-radius:9px;font-weight:800}.theme-preset-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}@media(max-width:900px){.theme-grid{grid-template-columns:1fr 1fr}.theme-preview{grid-template-columns:1fr}.theme-preview-side{display:none}}@media(max-width:560px){.theme-grid{grid-template-columns:1fr}}


/* ===== V32.1 SAKLANABILIR SOL MENU ===== */
.app{
    transition:grid-template-columns .2s ease;
}
.app main{
    min-width:0;
}
.sidebar-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px;
}
.sidebar-close{
    display:none;
    width:34px;
    height:34px;
    flex:0 0 34px;
    border:1px solid var(--ubt-border);
    border-radius:9px;
    background:var(--ubt-surface-bg);
    color:var(--ubt-text);
    font-size:22px;
    line-height:1;
    cursor:pointer;
}
.sidebar-toggle{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    margin-right:14px;
    border:1px solid var(--ubt-border);
    border-radius:11px;
    background:var(--ubt-surface-bg);
    color:var(--ubt-text);
    cursor:pointer;
    font-size:21px;
    transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.sidebar-toggle:hover{
    background:var(--ubt-nav-hover);
    border-color:var(--ubt-accent);
}
.sidebar-toggle:active{transform:scale(.96)}
main header{display:flex!important;align-items:center!important}
.header-title{min-width:0}
.sidebar-backdrop{display:none}

/* Masaüstünde menü tamamen gizlenir ve içerik tam genişlik olur */
.app.sidebar-collapsed{
    grid-template-columns:0 minmax(0,1fr)!important;
}
.app.sidebar-collapsed aside{
    width:0!important;
    min-width:0!important;
    padding-left:0!important;
    padding-right:0!important;
    border-right-width:0!important;
    overflow:hidden!important;
    opacity:0;
    pointer-events:none;
}
.app aside{
    transition:width .2s ease,padding .2s ease,opacity .16s ease,border-width .2s ease;
}

/* ===== V32.1 SATIS EKRANI: SEPET SOLDA ===== */
.pos-layout{
    grid-template-columns:minmax(360px,.68fr) minmax(0,1.55fr)!important;
    align-items:start!important;
}
.pos-cart{
    order:1!important;
    grid-column:1!important;
}
.pos-products{
    order:2!important;
    grid-column:2!important;
    min-width:0;
}

@media(max-width:1050px){
    .pos-layout{
        grid-template-columns:1fr!important;
    }
    .pos-cart,.pos-products{
        grid-column:1!important;
    }
    .pos-cart{
        order:1!important;
        position:static!important;
    }
    .pos-products{
        order:2!important;
    }
}

@media(max-width:900px){
    .app,.app.sidebar-collapsed{
        display:block!important;
        min-height:100vh;
    }
    .app aside,.app.sidebar-collapsed aside{
        display:flex!important;
        position:fixed;
        z-index:1002;
        left:0;
        top:0;
        bottom:0;
        width:min(300px,86vw)!important;
        min-width:min(300px,86vw)!important;
        padding:22px 16px!important;
        border-right:1px solid var(--ubt-border)!important;
        opacity:1;
        pointer-events:auto;
        transform:translateX(-102%);
        transition:transform .22s ease;
        box-shadow:16px 0 45px rgba(0,0,0,.35);
    }
    .app.sidebar-open aside{
        transform:translateX(0);
    }
    .sidebar-close{display:grid;place-items:center}
    .sidebar-backdrop{
        display:block;
        position:fixed;
        z-index:1001;
        inset:0;
        background:rgba(0,0,0,.58);
        opacity:0;
        pointer-events:none;
        transition:opacity .2s ease;
    }
    .app.sidebar-open .sidebar-backdrop{
        opacity:1;
        pointer-events:auto;
    }
    .app main{width:100%}
    main header{padding-left:16px!important;padding-right:16px!important}
    .sidebar-toggle{display:grid}
}

@media(min-width:901px){
    .sidebar-toggle{display:grid}
}


/* ===== SATIS EKRANI SOL SEPET - KESIN YERLESIM FIX ===== */
.pos-layout.pos-layout-cart-left{
    display:grid!important;
    grid-template-columns:minmax(360px,420px) minmax(0,1fr)!important;
    grid-template-areas:"cart products"!important;
    gap:22px!important;
    align-items:start!important;
}
.pos-layout.pos-layout-cart-left>.pos-cart{
    grid-area:cart!important;
    grid-column:auto!important;
    order:0!important;
    position:sticky!important;
    top:16px!important;
    width:100%!important;
}
.pos-layout.pos-layout-cart-left>.pos-products{
    grid-area:products!important;
    grid-column:auto!important;
    order:0!important;
    min-width:0!important;
    width:100%!important;
}
@media(max-width:1050px){
    .pos-layout.pos-layout-cart-left{
        grid-template-columns:1fr!important;
        grid-template-areas:"cart" "products"!important;
    }
    .pos-layout.pos-layout-cart-left>.pos-cart{
        position:static!important;
    }
}


/* ===== V32 POS DEVICE SETTINGS ===== */
.pos-device-settings{max-width:900px}
.pos-device-settings .check-row{
    display:flex;gap:12px;align-items:flex-start;padding:14px 16px;
    border:1px solid var(--border-color,#263449);border-radius:14px;
    background:var(--surface-bg,#111c2d);cursor:pointer
}
.pos-device-settings .check-row input{margin-top:4px;transform:scale(1.15)}
.pos-device-settings .check-row span{display:flex;flex-direction:column;gap:4px}
.pos-device-settings .check-row small{display:block}


/* ===== V32 GELISMIS TEMA RENK YONETIMI ===== */
.theme-admin-shell{display:grid;gap:20px}
.theme-admin-hero{
    display:flex;justify-content:space-between;gap:18px;align-items:center;
    padding:22px 24px;border:1px solid var(--border-color);border-radius:18px;
    background:linear-gradient(135deg,var(--card-bg),var(--card-bg-alt))
}
.theme-admin-hero h2{margin:6px 0 7px;font-size:26px}
.theme-admin-hero p{margin:0;color:var(--muted-color);max-width:780px}
.theme-help-badge{padding:10px 14px;border-radius:999px;background:var(--surface-bg);border:1px solid var(--border-color);font-weight:800;white-space:nowrap}
.theme-section{padding:20px;border:1px solid var(--border-color);border-radius:18px;background:var(--card-bg)}
.theme-section-title{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:16px}
.theme-section-title>div{display:flex;align-items:center;gap:10px}
.theme-section-title h3{margin:0}
.theme-section-title p{margin:0;color:var(--muted-color);max-width:620px;text-align:right}
.theme-step{
    display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;
    background:var(--primary-color);color:#fff;font-weight:900
}
.theme-preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.theme-preset-card{margin:0}
.theme-preset-button{
    width:100%;min-height:168px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;
    text-align:left;padding:15px;border-radius:16px;border:1px solid var(--border-color);
    background:var(--card-bg-alt);color:var(--text-color);cursor:pointer;transition:.18s ease
}
.theme-preset-button:hover{transform:translateY(-2px);border-color:var(--primary-color);box-shadow:0 10px 24px rgba(0,0,0,.12)}
.theme-preset-button strong{font-size:15px}
.theme-preset-button small{color:var(--muted-color);line-height:1.35;min-height:38px}
.theme-preset-swatches{display:grid;grid-template-columns:repeat(4,1fr);width:100%;height:34px;border-radius:10px;overflow:hidden;border:1px solid rgba(127,127,127,.18)}
.theme-preset-swatches i{display:block}
.theme-preset-apply{margin-top:auto;font-size:11px;font-weight:900;letter-spacing:.04em;color:var(--accent-color)}
.theme-groups{display:grid;gap:16px}
.theme-group{border:1px solid var(--border-color);border-radius:16px;background:var(--card-bg-alt);overflow:hidden}
.theme-group-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border-color);background:var(--surface-bg)}
.theme-group-head h4{margin:0;font-size:15px}
.theme-group-head span{font-size:12px;color:var(--muted-color)}
.theme-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border-color)}
.theme-field-card{display:flex;gap:13px;padding:15px;background:var(--card-bg);cursor:pointer;min-width:0}
.theme-field-card:hover{background:var(--surface-bg)}
.theme-color-picker{width:52px!important;height:52px!important;min-width:52px;padding:3px!important;border-radius:12px!important;cursor:pointer}
.theme-field-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.theme-field-copy>strong{font-size:14px}
.theme-field-copy>small{color:var(--muted-color);line-height:1.35;min-height:34px}
.theme-hex-row{display:flex;align-items:center;gap:8px;margin-top:4px}
.theme-hex-row>span{font-size:10px;font-weight:900;color:var(--muted-color);letter-spacing:.08em}
.theme-hex-row input{max-width:118px!important;padding:7px 9px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.theme-preview-pro{min-height:310px}
.theme-preview-pro .theme-preview-main{color:var(--preview-text,var(--text-color))}
.theme-preview-pro .muted{color:var(--preview-muted,var(--muted-color))!important}
.theme-preview-nav{margin-top:25px;display:grid;gap:8px}
.theme-preview-demo-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;padding:14px}
.theme-preview-total{font-size:30px;font-weight:900;margin-top:10px;color:var(--preview-total,var(--ubt-pos-total))}
.theme-sticky-actions{
    position:sticky;bottom:10px;z-index:30;margin-top:16px;padding:12px 14px;border-radius:14px;
    background:color-mix(in srgb,var(--card-bg) 92%,transparent);backdrop-filter:blur(10px);
    border:1px solid var(--border-color);display:flex;align-items:center;gap:12px;box-shadow:0 12px 30px rgba(0,0,0,.18)
}
.theme-sticky-actions span{color:var(--muted-color);font-size:13px}
.theme-reset-row{display:flex;justify-content:flex-end}
@media(max-width:1250px){.theme-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
    .theme-admin-hero,.theme-section-title{align-items:flex-start;flex-direction:column}
    .theme-section-title p{text-align:left}
    .theme-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .theme-field-grid{grid-template-columns:1fr}
    .theme-preview-demo-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
    .theme-preset-grid{grid-template-columns:1fr}
    .theme-section{padding:14px}
    .theme-admin-hero{padding:17px}
    .theme-help-badge{white-space:normal}
    .theme-field-card{padding:13px}
    .theme-sticky-actions{align-items:stretch;flex-direction:column}
}


/* ===== V32 YAZDIRMA KURALLARI ===== */
.print-settings-shell{max-width:1040px}
.print-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.print-mode-card{
    position:relative;display:flex;align-items:flex-start;gap:14px;padding:18px;
    border:1px solid var(--border-color);border-radius:16px;background:var(--card-bg-alt);cursor:pointer
}
.print-mode-card:has(input:checked){border-color:var(--primary-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary-color) 30%,transparent)}
.print-mode-card input{margin-top:5px;transform:scale(1.25)}
.print-mode-card>span:last-child{display:flex;flex-direction:column;gap:6px}
.print-mode-card small{color:var(--muted-color);line-height:1.45}
.print-mode-icon{font-size:25px}
.print-group-panel{margin:18px 0;padding:18px;border:1px solid var(--border-color);border-radius:16px;background:var(--surface-bg);transition:.2s}
.print-group-panel.is-disabled{opacity:.48}
.print-group-panel.is-disabled .print-group-grid{pointer-events:none}
.print-group-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.print-group-head h3{margin:0 0 5px}.print-group-head p{margin:0;color:var(--muted-color);font-size:13px}
.print-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.print-group-card{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid var(--border-color);border-radius:14px;background:var(--card-bg);cursor:pointer}
.print-group-card:has(input:checked){border-color:var(--success-color)}
.print-group-card input{transform:scale(1.18)}
.print-group-card>span:last-child{display:flex;flex-direction:column;gap:4px}
.print-group-card small{color:var(--muted-color);line-height:1.35}
.group-dot{width:14px;height:14px;min-width:14px;border-radius:50%}
.group-dot.dessert{background:#ec4899}.group-dot.coffee{background:#a16207}.group-dot.other{background:#64748b}
.print-info-note{margin:14px 0 0}
.print-example{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:12px;margin:18px 0}
.print-example>div{padding:14px;border:1px solid var(--border-color);border-radius:14px;background:var(--card-bg-alt)}
.print-example p{margin:5px 0 0}
.print-example-box{display:flex;flex-direction:column;gap:6px}
.print-example-box span{color:var(--muted-color);font-size:12px}
@media(max-width:850px){
    .print-mode-grid,.print-group-grid,.print-example{grid-template-columns:1fr}
    .print-group-head{align-items:flex-start;flex-direction:column}
}

/* V32 TokenX Connect */
.tokenx-shell{max-width:1050px}.tokenx-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;margin-bottom:15px;border:1px solid var(--border-color);border-radius:20px;background:var(--card-bg)}.tokenx-hero h2{margin:6px 0}.tokenx-hero p{margin:0;color:var(--muted-color)}.tokenx-badge{padding:18px 28px;border-radius:16px;background:var(--primary-color);color:#fff;text-align:center}.tokenx-badge b,.tokenx-badge small{display:block}.tokenx-badge b{font-size:25px}.tokenx-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}.tokenx-steps>div{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--border-color);border-radius:14px;background:var(--card-bg);opacity:.5}.tokenx-steps>div.on{opacity:1;border-color:var(--success-color)}.tokenx-steps b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface-bg)}.tokenx-steps strong,.tokenx-steps small{display:block}.tokenx-steps small{color:var(--muted-color);margin-top:3px}.tokenx-form{display:grid;gap:14px}.tokenx-form .form-card{margin:0}.tokenx-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tokenx-options.two{grid-template-columns:repeat(2,1fr)}.tokenx-options label{display:flex;gap:10px;padding:14px;border:1px solid var(--border-color);border-radius:14px;background:var(--card-bg-alt);cursor:pointer}.tokenx-options label:has(input:checked){border-color:var(--primary-color)}.tokenx-options strong,.tokenx-options small{display:block}.tokenx-options small{margin-top:4px;color:var(--muted-color)}.tokenx-enable{display:flex;gap:12px;cursor:pointer}.tokenx-enable input{transform:scale(1.2);margin-top:5px}.tokenx-enable strong,.tokenx-enable small{display:block}.tokenx-enable small{margin-top:4px;color:var(--muted-color)}@media(max-width:800px){.tokenx-hero{flex-direction:column;align-items:stretch}.tokenx-steps,.tokenx-options,.tokenx-options.two{grid-template-columns:1fr}}

/* V32 Müdür Satış Ekranı */
.manager-pos-branch{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 18px;margin-bottom:14px;border:1px solid var(--border-color);border-radius:14px;background:var(--card-bg)}
.manager-pos-branch strong,.manager-pos-branch small{display:block}.manager-pos-branch small{margin-top:3px;color:var(--muted-color)}
.manager-pos-branch form{min-width:240px}.manager-pos-branch select{width:100%}
@media(max-width:700px){.manager-pos-branch{align-items:stretch;flex-direction:column}.manager-pos-branch form{min-width:0;width:100%}}


/* ===== V32 TEMA YAZI RENKLERI - GLOBAL UYUM ===== */
/* Ana metinler */
html,body,.app,.app-main,.content,.page-content,
h1,h2,h3,h4,h5,h6,p,span,label,legend,td,th,li,dt,dd,
.form-card,.table-wrap,.card,.panel,.modal,.modal-content,
.pos-layout,.pos-products,.pos-cart {
  color:var(--text-color) !important;
}

/* İkincil / açıklama metinleri */
.muted,small,.help-text,.form-text,.description,.subtitle,
.field small,.field .hint,.tokenx-section-title p,
.tokenx-options small,.tokenx-enable small,.tokenx-steps small,
.manager-pos-branch small,.print-group-head p,
.print-mode-card small,.print-group-card small {
  color:var(--muted-color) !important;
}

/* Form alanları */
input:not([type="checkbox"]):not([type="radio"]),
select,textarea {
  color:var(--text-color) !important;
  background-color:var(--input-bg) !important;
  border-color:var(--border-color) !important;
}
input::placeholder,textarea::placeholder {
  color:var(--muted-color) !important;
  opacity:.72;
}
input:disabled,select:disabled,textarea:disabled {
  color:var(--muted-color) !important;
  -webkit-text-fill-color:var(--muted-color) !important;
  opacity:.8;
}

/* Linkler */
a:not(.btn):not(.mini-btn):not(.nav-link) {
  color:var(--accent-color) !important;
}

/* Tablo */
table,table td,table th {
  color:var(--text-color) !important;
}
table thead th {
  background:var(--table-header) !important;
  color:var(--text-color) !important;
}

/* Sidebar */
.sidebar,.sidebar * {
  color:var(--text-color) !important;
}
.sidebar a,.sidebar .nav-link {
  color:var(--text-color) !important;
}
.sidebar a:hover,.sidebar .nav-link:hover,
.sidebar a.active,.sidebar .nav-link.active {
  color:var(--text-color) !important;
}

/* Header */
.topbar,.topbar *,header,.app-header,.app-header * {
  color:var(--text-color) !important;
}

/* Kartlar ve POS ürün metinleri */
.product-card,.product-card *,
.cart-item,.cart-item *,
.pos-product,.pos-product *,
.category-card,.category-card * {
  color:var(--text-color) !important;
}

/* Durum/aksiyon butonlarında okunabilir sabit kontrast */
.btn,.mini-btn,
button.btn,button.mini-btn,
.btn-primary,.btn-success,.btn-danger,.btn-warning,
.success,.danger,.warning {
  color:#fff !important;
}
.btn-warning,.mini-btn.warning {
  color:#111 !important;
}

/* Rozetler kendi arka planlarında okunabilir kalsın */
.badge,.status-badge,.eyebrow {
  color:inherit;
}

/* Modal / dropdown */
.modal,.modal *,dialog,dialog *,
.dropdown,.dropdown-menu,.dropdown-menu * {
  color:var(--text-color) !important;
}

/* Fiş önizleme alanında ekrandaki tema; gerçek yazdırmada siyah */
.receipt-preview,.receipt-preview * {
  color:var(--text-color) !important;
}
@media print {
  body,body *,.receipt,.receipt * {
    color:#000 !important;
  }
}


/* ===== V32 MANAGER DASHBOARD - ACIL SAT / SKT TEMA UYUMU ===== */
.dashboard-two > .card {
  background:var(--card-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-color) !important;
}
.dashboard-two > .card > h3 {
  color:var(--text-color) !important;
}
.urgent-row,
.urgent-row strong {
  color:var(--text-color) !important;
}
.urgent-row small {
  color:var(--muted-color) !important;
}
.urgent-row b {
  color:var(--danger-color) !important;
}
.urgent-row.level-2,
.urgent-row.level-3 {
  background:color-mix(in srgb,var(--warning-color) 13%,var(--card-bg)) !important;
  border-color:color-mix(in srgb,var(--warning-color) 65%,var(--border-color)) !important;
}
.urgent-row.level-2 b,
.urgent-row.level-3 b {
  color:var(--warning-color) !important;
}
/* Bugün / geçmiş SKT */
.urgent-row.level-0,
.urgent-row.level--1 {
  background:color-mix(in srgb,var(--danger-color) 13%,var(--card-bg)) !important;
  border-color:color-mix(in srgb,var(--danger-color) 65%,var(--border-color)) !important;
}
.notice-row {
  border-bottom-color:var(--border-color) !important;
}
.notice-row strong {
  color:var(--text-color) !important;
}
.notice-row span,
.notice-row small {
  color:var(--muted-color) !important;
}


/* ===== V32 ODEME MODALI - ALINAN ODEMELER TEMA UYUMU ===== */
#paymentModal .modal-card{
  background:var(--modal-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-color) !important;
}
#paymentModal .modal-head,
#paymentModal .modal-head h2,
#paymentModal .modal-head p,
#paymentModal .provider-area,
#paymentModal .payment-entry,
#paymentModal .payment-footer,
#paymentModal .payment-footer span{
  color:var(--text-color) !important;
}
#paymentModal .payment-list{
  color:var(--text-color) !important;
}
#paymentModal .payment-row{
  background:var(--card-bg-alt) !important;
  border:1px solid var(--border-color) !important;
  border-radius:11px;
  color:var(--text-color) !important;
  margin-top:8px;
}
#paymentModal .payment-row span,
#paymentModal .payment-row strong{
  color:var(--text-color) !important;
}
#paymentModal .payment-row button{
  background:var(--secondary-color) !important;
  color:#fff !important;
  border:1px solid var(--border-color) !important;
}
#paymentModal .payment-footer{
  border-top-color:var(--border-color) !important;
}
#paymentModal #remaining{
  color:var(--accent-color) !important;
}
#paymentModal .payment-types button,
#paymentModal .provider-grid button{
  background:var(--surface-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-color) !important;
}
#paymentModal .payment-types button.active,
#paymentModal .provider-grid button.active{
  background:var(--primary-color) !important;
  border-color:var(--primary-hover) !important;
  color:#fff !important;
}
#paymentModal .provider-area,
#paymentModal .payment-entry{
  background:color-mix(in srgb,var(--surface-bg) 70%,var(--modal-bg)) !important;
  border-color:var(--border-color) !important;
}
#paymentModal .change-info{
  color:var(--success-color) !important;
}


/* ===== V32 ODEME MODALI - SOLID / TRANSPARANLIK DUZELTMESI ===== */
/* Arka ekran karartılır; yalnızca bu katman yarı saydamdır. */
#paymentModal.modal {
  background:rgba(0,0,0,.62) !important;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

/* Modal kartının kendisi kesinlikle transparan olmasın. */
#paymentModal .modal-card {
  background:var(--modal-bg, var(--card-bg)) !important;
  background-image:none !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border:1px solid var(--border-color) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.42) !important;
  isolation:isolate;
}

/* Tema modal_bg değeri alfa/transparan gelirse güvenli kart rengi kullan. */
#paymentModal .modal-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:var(--card-bg) !important;
  opacity:1 !important;
}
#paymentModal .modal-card {
  position:relative;
}

/* İç bloklar da transparan görünmesin. */
#paymentModal .provider-area,
#paymentModal .payment-entry {
  background:var(--surface-bg) !important;
}
#paymentModal .payment-row {
  background:var(--card-bg-alt) !important;
}


/* ===== V32 ODEME MODALI KESIN DUZELTME =====
   Gercek tema degiskenleri --ubt-* adlariyla uretiliyor. */
#paymentModal.modal{
  background:rgba(0,0,0,.62)!important;
}
#paymentModal > .modal-card{
  position:relative!important;
  z-index:1!important;
  background-color:var(--ubt-modal-bg)!important;
  background-image:none!important;
  border:1px solid var(--ubt-border)!important;
  color:var(--ubt-text)!important;
  opacity:1!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:0 30px 80px rgba(0,0,0,.48)!important;
}
#paymentModal > .modal-card::before{
  display:none!important;
  content:none!important;
}
#paymentModal .modal-head,
#paymentModal .modal-head h2,
#paymentModal .modal-head span,
#paymentModal .modal-head b,
#paymentModal label,
#paymentModal .payment-footer,
#paymentModal .payment-footer span{
  color:var(--ubt-text)!important;
}
#paymentModal .provider-area,
#paymentModal .payment-entry{
  background-color:var(--ubt-surface-bg)!important;
  background-image:none!important;
  border-color:var(--ubt-border)!important;
}
#paymentModal input{
  background-color:var(--ubt-input-bg)!important;
  color:var(--ubt-text)!important;
  border-color:var(--ubt-border)!important;
}
#paymentModal .payment-row{
  background-color:var(--ubt-card-bg-alt)!important;
  background-image:none!important;
  border:1px solid var(--ubt-border)!important;
  color:var(--ubt-text)!important;
}
#paymentModal .payment-row span,
#paymentModal .payment-row strong{
  color:var(--ubt-text)!important;
}
#paymentModal .payment-row button{
  background:var(--ubt-secondary)!important;
  color:#fff!important;
}
#paymentModal .payment-types button,
#paymentModal .provider-grid button{
  background-color:var(--ubt-surface-bg)!important;
  background-image:none!important;
  border-color:var(--ubt-border)!important;
  color:var(--ubt-text)!important;
}
#paymentModal .payment-types button.active,
#paymentModal .provider-grid button.active{
  background-color:var(--ubt-primary)!important;
  border-color:var(--ubt-primary-hover)!important;
  color:#fff!important;
}
#paymentModal #remaining{
  color:var(--ubt-accent)!important;
}
#paymentModal .change-info{
  color:var(--ubt-success)!important;
}


/* ===== V32 TEMA YONETIMI - SATIS EKRANI CANLI ONIZLEME ===== */
.theme-sales-preview{
  --preview-card-alt:var(--preview-card);
  --preview-surface:var(--preview-card);
  --preview-input:var(--preview-card);
  --preview-product:var(--preview-card);
  --preview-primary-hover:var(--preview-primary);
  --preview-secondary:var(--preview-primary);
  --preview-accent:var(--preview-primary);
  --preview-table-header:var(--preview-card);
}
.theme-sales-preview .theme-preview-main{min-width:0}
.theme-sales-preview .theme-preview-header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.theme-sales-user{font-size:12px;color:var(--preview-muted)}
.theme-sales-workspace{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,1.6fr);gap:12px;padding:12px;background:var(--preview-page);color:var(--preview-text)}
.theme-sales-cart,.theme-sales-products{background:var(--preview-card);border:1px solid var(--preview-border);border-radius:12px;padding:11px;min-width:0}
.theme-sales-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--preview-border)}
.theme-sales-title span,.theme-sales-line small,.theme-sales-product small,.theme-sales-product span{color:var(--preview-muted)}
.theme-sales-line{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--preview-border);font-size:12px}
.theme-sales-line span{display:grid;gap:2px}.theme-sales-line small{font-size:10px}
.theme-sales-summary{display:flex;justify-content:space-between;padding:10px 0 5px;font-size:11px}
.theme-sales-grand{display:flex;justify-content:space-between;align-items:center;margin-top:5px;padding:10px;border-radius:9px;background:var(--preview-surface);border:1px solid var(--preview-border)}
.theme-sales-grand strong{color:var(--preview-total);font-size:17px}
.theme-sales-pay{display:block!important;text-align:center;margin-top:9px;padding:9px!important;background:var(--preview-primary)!important;color:#fff!important}
.theme-sales-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:9px}
.theme-sales-search{flex:1;min-width:110px;padding:7px 9px;border-radius:7px;background:var(--preview-input);border:1px solid var(--preview-border);color:var(--preview-muted);font-size:10px}
.theme-sales-chip{padding:6px 8px;border-radius:7px;background:var(--preview-surface);border:1px solid var(--preview-border);font-size:9px}
.theme-sales-chip.active{background:var(--preview-primary);color:#fff;border-color:var(--preview-primary-hover)}
.theme-sales-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.theme-sales-product{display:grid;gap:3px;min-height:76px;padding:9px;border-radius:9px;background:var(--preview-product);border:1px solid var(--preview-border)}
.theme-sales-product strong{font-size:11px}.theme-sales-product small,.theme-sales-product span{font-size:9px}.theme-sales-product b{color:var(--preview-accent);font-size:12px}
@media(max-width:800px){
 .theme-sales-workspace{grid-template-columns:1fr}
 .theme-sales-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){.theme-sales-product-grid{grid-template-columns:1fr}}

/* ===== V32 SATIS - SEPET / URUN GRUPLARI / URUNLER ===== */
.pos-layout.pos-layout-cart-left{
  display:grid!important;
  grid-template-columns:minmax(300px,360px) minmax(150px,190px) minmax(0,1fr)!important;
  align-items:start!important;
  gap:16px!important;
}
.pos-group-filter{
  background:var(--ubt-card-bg);
  border:1px solid var(--ubt-border);
  border-radius:16px;
  padding:12px;
  position:sticky;
  top:16px;
  max-height:calc(100vh - 32px);
  overflow:auto;
}
.pos-group-filter-head{padding:4px 4px 10px;display:flex;flex-direction:column;gap:2px}
.pos-group-filter-head strong{font-size:15px}
.pos-group-filter-head small{color:var(--ubt-muted)}
.pos-group-btn{
  width:100%;border:1px solid var(--ubt-border);background:var(--ubt-surface-bg);
  color:var(--ubt-text);border-radius:11px;padding:12px 10px;margin:0 0 8px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  cursor:pointer;text-align:left;font-weight:700;
}
.pos-group-btn b{
  min-width:28px;height:28px;border-radius:8px;display:grid;place-items:center;
  background:var(--ubt-card-bg-alt);font-size:12px;
}
.pos-group-btn:hover{border-color:var(--ubt-primary)}
.pos-group-btn.active{
  background:var(--ubt-primary);border-color:var(--ubt-primary);color:#fff!important;
}
.pos-group-btn.active span,.pos-group-btn.active b{color:#fff!important}
.pos-group-btn.active b{background:rgba(255,255,255,.16)}
@media(max-width:1100px){
 .pos-layout.pos-layout-cart-left{grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important}
 .pos-group-filter{grid-column:2;position:static;display:flex;gap:8px;overflow-x:auto;max-height:none}
 .pos-group-filter-head{min-width:120px}
 .pos-group-btn{min-width:135px;margin:0}
 .pos-products{grid-column:2}
}
@media(max-width:760px){
 .pos-layout.pos-layout-cart-left{display:flex!important;flex-direction:column!important}
 .pos-cart,.pos-group-filter,.pos-products{width:100%!important}
 .pos-group-filter{display:flex;position:static;overflow-x:auto}
 .pos-group-filter-head{display:none}
 .pos-group-btn{min-width:130px}
}

/* ===== V32 SATIS - URUN GRUPLARI DAR ORTA SUTUN ===== */
@media(min-width:1101px){
 .pos-layout.pos-layout-cart-left{
   grid-template-columns:minmax(300px,360px) 128px minmax(0,1fr)!important;
   gap:12px!important;
 }
 .pos-group-filter{
   width:128px!important;
   min-width:128px!important;
   padding:8px!important;
   border-radius:12px!important;
   box-sizing:border-box!important;
 }
 .pos-group-filter-head{
   padding:3px 3px 8px!important;
 }
 .pos-group-filter-head strong{
   font-size:13px!important;
   line-height:1.15!important;
 }
 .pos-group-filter-head small{font-size:11px!important}
 .pos-group-btn{
   padding:10px 7px!important;
   min-height:48px!important;
   border-radius:9px!important;
   font-size:12px!important;
   flex-direction:column!important;
   align-items:flex-start!important;
   justify-content:center!important;
   gap:5px!important;
 }
 .pos-group-btn b{
   min-width:24px!important;height:22px!important;
   padding:0 5px!important;font-size:10px!important;
 }
}

/* ===== V32 SATIS EKRANI - KESIN 3 SUTUN DUZENI ===== */
@media(min-width:901px){
 .pos-layout.pos-layout-cart-left{
   display:grid!important;
   grid-template-columns:330px 180px minmax(520px,1fr)!important;
   column-gap:14px!important;
   row-gap:0!important;
   width:100%!important;
   max-width:none!important;
   align-items:stretch!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-cart{
   grid-column:1!important;
   grid-row:1!important;
   width:auto!important;
   min-width:0!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-group-filter{
   grid-column:2!important;
   grid-row:1!important;
   width:auto!important;
   min-width:0!important;
   max-width:none!important;
   height:auto!important;
   min-height:100%!important;
   position:relative!important;
   top:auto!important;
   padding:12px!important;
   display:block!important;
   overflow-y:auto!important;
   overflow-x:hidden!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-products{
   grid-column:3!important;
   grid-row:1!important;
   width:auto!important;
   min-width:0!important;
   max-width:none!important;
 }
 .pos-products .toolbar{
   width:100%!important;
   display:flex!important;
   align-items:center!important;
   justify-content:space-between!important;
   gap:16px!important;
 }
 .pos-products .toolbar input#search{
   width:min(420px,55%)!important;
   flex:0 1 420px!important;
 }
 .pos-products .product-grid{
   width:100%!important;
   grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;
 }
 .pos-group-filter-head{
   padding:2px 2px 12px!important;
 }
 .pos-group-filter-head strong{
   font-size:16px!important;
   line-height:1.2!important;
 }
 .pos-group-filter-head small{
   display:block!important;
   margin-top:3px!important;
 }
 .pos-group-btn{
   width:100%!important;
   min-width:0!important;
   min-height:54px!important;
   margin:0 0 9px!important;
   padding:10px 11px!important;
   display:flex!important;
   flex-direction:row!important;
   align-items:center!important;
   justify-content:space-between!important;
   font-size:13px!important;
 }
 .pos-group-btn b{
   flex:0 0 auto!important;
 }
}
@media(min-width:901px) and (max-width:1250px){
 .pos-layout.pos-layout-cart-left{
   grid-template-columns:300px 155px minmax(380px,1fr)!important;
 }
}

.pos-group-filter a.pos-group-btn{text-decoration:none!important;box-sizing:border-box!important}

/* ===== V32 SIDEBAR AC/KAPA - URUN GRUPLARI KORUMA ===== */
@media(min-width:901px){
 .pos-layout.pos-layout-cart-left{
   display:grid!important;
   grid-template-columns:minmax(280px,330px) minmax(150px,180px) minmax(0,1fr)!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   overflow:visible!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-cart{
   grid-column:1!important;
   min-width:0!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-group-filter{
   grid-column:2!important;
   display:block!important;
   visibility:visible!important;
   opacity:1!important;
   min-width:150px!important;
   width:100%!important;
   max-width:180px!important;
   overflow-y:auto!important;
   overflow-x:hidden!important;
   z-index:2!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-products{
   grid-column:3!important;
   min-width:0!important;
   width:100%!important;
 }
}
/* Dar sidebar / geniş içerik halinde de aynı 3 sütunu koru */
.app.sidebar-collapsed .pos-layout.pos-layout-cart-left,
body.sidebar-collapsed .pos-layout.pos-layout-cart-left,
.sidebar-collapsed .pos-layout.pos-layout-cart-left{
 grid-template-columns:minmax(280px,330px) minmax(150px,180px) minmax(0,1fr)!important;
}
.app.sidebar-collapsed .pos-group-filter,
body.sidebar-collapsed .pos-group-filter,
.sidebar-collapsed .pos-group-filter{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
}
@media(min-width:901px) and (max-width:1150px){
 .pos-layout.pos-layout-cart-left{
   grid-template-columns:minmax(260px,300px) 150px minmax(300px,1fr)!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-group-filter{
   min-width:150px!important;
   max-width:150px!important;
 }
}

/* ===== V32 SIDEBAR KAPALIYKEN URUN GRUBU TIKLAMA ===== */
@media(min-width:901px){
 .pos-layout.pos-layout-cart-left{
   position:relative!important;
   isolation:isolate!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-cart{
   position:relative!important;
   z-index:1!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-group-filter{
   position:relative!important;
   z-index:20!important;
   pointer-events:auto!important;
 }
 .pos-layout.pos-layout-cart-left > .pos-products{
   position:relative!important;
   z-index:1!important;
 }
 .pos-group-filter .pos-group-btn,
 .pos-group-filter a.pos-group-btn{
   position:relative!important;
   z-index:21!important;
   pointer-events:auto!important;
   cursor:pointer!important;
 }
 .sidebar-collapsed .pos-group-filter,
 body.sidebar-collapsed .pos-group-filter,
 .app.sidebar-collapsed .pos-group-filter{
   pointer-events:auto!important;
   z-index:30!important;
 }
 .sidebar-collapsed .pos-group-filter a,
 body.sidebar-collapsed .pos-group-filter a,
 .app.sidebar-collapsed .pos-group-filter a{
   pointer-events:auto!important;
 }
}

/* V36 - Satış ekranı ürün alanı: masaüstünde 5 sütun */
@media (min-width:1321px){
  .pos-products .product-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}
@media (min-width:1051px) and (max-width:1320px){
  .pos-products .product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media (min-width:761px) and (max-width:1050px){
  .pos-products .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* V37 - Satış ekranında Sepet + Ürün Grupları ekranda sabit */
@media (min-width: 1051px){
  .pos-cart,
  .pos-groups{
    position: sticky !important;
    top: 92px !important;
    align-self: start !important;
    max-height: calc(100vh - 108px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .pos-cart::-webkit-scrollbar,
  .pos-groups::-webkit-scrollbar{width:6px}
  .pos-cart::-webkit-scrollbar-thumb,
  .pos-groups::-webkit-scrollbar-thumb{background:#cbd8d0;border-radius:10px}
}
/* Tablet/telefon düzeninde sticky kapalı: doğal akış korunur */
@media (max-width: 1050px){
  .pos-cart,.pos-groups{
    position: static !important;
    top:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

@media (min-width: 1280px) and (max-width: 1399px) and (max-height: 820px){
  /* Sepet ve ürün grupları görünür alanda sabit kalır */
  .pos-cart,
  .pos-groups{
    position: sticky !important;
    top: 76px !important;
    max-height: calc(100vh - 88px) !important;
    overflow-y: auto !important;
    align-self: start !important;
  }

  .pos-products .product-grid{
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap: 8px !important;
  }

  .pos-products .product{
    min-width: 0 !important;
    padding: 9px !important;
  }

  .pos-products .product-name{
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .pos-products .product-price{
    font-size: 12px !important;
  }

  /* Ana satış kolonlarının boşluklarını azalt */
  .pos-shell,
  .pos-layout{
    gap: 10px !important;
  }
}

@media (min-width:1280px) and (max-width:1399px) and (max-height:820px){
  .pos-layout{
    align-items:start !important;
  }

  .pos-cart,
  .pos-groups,
  .pos-products{
    align-self:start !important;
    margin-top:0 !important;
  }

  /* Sticky kolonların başlangıç noktası aynı */
  .pos-cart,
  .pos-groups{
    top:76px !important;
  }

  /* Kolon içindeki ilk kart/başlıkların ekstra üst boşluğunu kaldır */
  .pos-cart > :first-child,
  .pos-groups > :first-child,
  .pos-products > :first-child{
    margin-top:0 !important;
  }
}

/* V43.1 - Satış ekranı: gerçek yapısal başlık düzenlemesi */
.sales-main .sales-content{padding-top:18px!important}
.sales-cart-title{
 position:relative!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 min-height:42px!important;
 margin-bottom:10px!important;
}
.sales-cart-title h3{
 margin:0!important;
 width:100%!important;
 text-align:center!important;
 padding:0 44px!important;
}
.sales-cart-title .sales-cart-menu{
 display:grid!important;
 position:absolute!important;
 left:0!important;
 top:50%!important;
 transform:translateY(-50%)!important;
 margin:0!important;
 z-index:4!important;
}

/* V44 - Satış ekranı ürün alanı kendi içinde kaydırılır */
@media (min-width:1051px){
  .pos-products{
    max-height:calc(100vh - 36px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    padding-right:6px!important;
  }
  .pos-products::-webkit-scrollbar{width:7px}
  .pos-products::-webkit-scrollbar-track{background:transparent}
  .pos-products::-webkit-scrollbar-thumb{background:#c8d6ce;border-radius:10px}
  .pos-products::-webkit-scrollbar-thumb:hover{background:#aebfb5}
}
@media (min-width:1280px) and (max-width:1399px) and (max-height:820px){
  .pos-products{
    height:calc(100vh - 36px)!important;
    max-height:calc(100vh - 36px)!important;
    overflow-y:auto!important;
  }
}
@media (max-width:1050px){
  .pos-products{height:auto!important;max-height:none!important;overflow:visible!important;padding-right:0!important}
}





/* V47 - Sepette eklenen ürünler alanı kendi içinde kayar */
@media (min-width:1051px){
  .pos-cart{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  /* Sepet başlığı ve alt ödeme/toplam bölümleri sabit; ürün listesi kayar */
  .pos-cart #cartItems,
  .pos-cart .cart-items,
  .pos-cart #cart,
  .pos-cart .cart-list,
  .pos-cart .sepet-items{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
    scrollbar-gutter:stable!important;
    padding-right:5px!important;
  }

  .pos-cart #cartItems::-webkit-scrollbar,
  .pos-cart .cart-items::-webkit-scrollbar,
  .pos-cart #cart::-webkit-scrollbar,
  .pos-cart .cart-list::-webkit-scrollbar,
  .pos-cart .sepet-items::-webkit-scrollbar{width:7px}

  .pos-cart #cartItems::-webkit-scrollbar-thumb,
  .pos-cart .cart-items::-webkit-scrollbar-thumb,
  .pos-cart #cart::-webkit-scrollbar-thumb,
  .pos-cart .cart-list::-webkit-scrollbar-thumb,
  .pos-cart .sepet-items::-webkit-scrollbar-thumb{
    background:#c8d6ce;border-radius:10px;
  }
}

@media (min-width:1280px) and (max-width:1399px) and (max-height:820px){
  .pos-layout.pos-layout-cart-left > .pos-cart{
    overflow:hidden!important;
  }
}

/* V48 - Manager Dashboard: Acil Sat / SKT / Personel Bildirimleri scroll */
.v48-dashboard-scroll-card{
  max-height:330px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-gutter:stable!important;
}
.v48-dashboard-scroll-card::-webkit-scrollbar{width:7px}
.v48-dashboard-scroll-card::-webkit-scrollbar-track{background:transparent}
.v48-dashboard-scroll-card::-webkit-scrollbar-thumb{background:#c8d6ce;border-radius:10px}
.v48-dashboard-scroll-card::-webkit-scrollbar-thumb:hover{background:#aebfb5}
.v48-dashboard-scroll-card .v48-scroll-head{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  background:inherit!important;
}

/* V51 - Sepette 5 ürün görünür, 6. üründen itibaren liste kayar */
@media (min-width:1051px){
  .pos-cart{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  .pos-cart #cart.cart-lines{
    /* Yaklaşık 5 standart sepet satırı */
    flex:0 1 auto!important;
    min-height:0!important;
    max-height:285px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
    scrollbar-gutter:stable!important;
    padding-right:5px!important;
  }

  .pos-cart #cart.cart-lines::-webkit-scrollbar{width:7px}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-track{background:transparent}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-thumb{
    background:#c8d6ce;
    border-radius:10px;
  }
}

@media (min-width:1280px) and (max-width:1399px) and (max-height:820px){
  .pos-cart #cart.cart-lines{
    max-height:285px!important;
    overflow-y:auto!important;
  }
}

/* V52 - Sepet alanında scrollbar YOK */
@media (min-width:1051px){
  .pos-cart{
    overflow:hidden!important;
  }

  .pos-cart #cart,
  .pos-cart #cart.cart-lines,
  .pos-cart .cart-items,
  .pos-cart .cart-list,
  .pos-cart .sepet-items{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-y:visible!important;
    overflow-x:visible!important;
    padding-right:0!important;
    scrollbar-width:none!important;
  }

  .pos-cart #cart::-webkit-scrollbar,
  .pos-cart .cart-items::-webkit-scrollbar,
  .pos-cart .cart-list::-webkit-scrollbar,
  .pos-cart .sepet-items::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }
}

/* V53 - Satış ekranı: Ek İndirim alanını kompaktlaştır */
@media (min-width:1051px){
  .pos-cart .discount-box,
  .pos-cart .discount-area,
  .pos-cart .extra-discount,
  .pos-cart .cart-discount{
    padding:8px 10px!important;
    margin-top:8px!important;
    margin-bottom:8px!important;
    gap:6px!important;
  }

  .pos-cart .discount-box label,
  .pos-cart .discount-area label,
  .pos-cart .extra-discount label,
  .pos-cart .cart-discount label{
    margin-bottom:3px!important;
    font-size:10px!important;
  }

  .pos-cart .discount-box input,
  .pos-cart .discount-box select,
  .pos-cart .discount-area input,
  .pos-cart .discount-area select,
  .pos-cart .extra-discount input,
  .pos-cart .extra-discount select,
  .pos-cart .cart-discount input,
  .pos-cart .cart-discount select{
    min-height:34px!important;
    height:34px!important;
    padding:5px 8px!important;
  }
}

.pos-cart .v53-discount-compact{
  padding:8px 10px!important;
  margin-top:8px!important;
  margin-bottom:8px!important;
}
.pos-cart .v53-discount-compact input,
.pos-cart .v53-discount-compact select{
  min-height:34px!important;height:34px!important;padding:5px 8px!important;
}

/* V54 - Sepet boyutu DEĞİŞMEZ; yalnızca eklenen ürünlerin içi kayar */
@media (min-width:1051px){
  .pos-cart{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  /* Mevcut sepet yüksekliğini değiştirmiyoruz.
     #cart mevcut kullanılabilir alanı doldurur ve içeride scroll olur. */
  .pos-cart #cart.cart-lines{
    flex:1 1 0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
    scrollbar-gutter:stable!important;
    padding-right:5px!important;
  }

  .pos-cart #cart.cart-lines::-webkit-scrollbar{width:7px}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-track{background:transparent}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-thumb{
    background:#c8d6ce;
    border-radius:10px;
  }
  .pos-cart #cart.cart-lines::-webkit-scrollbar-thumb:hover{
    background:#aebfb5;
  }
}

@media (min-width:1280px) and (max-width:1399px) and (max-height:820px){
  .pos-layout.pos-layout-cart-left > .pos-cart{
    height:100%!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  .pos-cart #cart.cart-lines{
    flex:1 1 0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
  }
}

@supports not (height:100dvh){
  

/* =========================================================
   V59 - Satış ekranını tarayıcının görünür alanına otomatik sığdır
   ========================================================= */
html:has(.sales-main),
body:has(.sales-main){
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  overflow:hidden!important;
}

.sales-main{
  box-sizing:border-box!important;
  width:100%!important;
  height:100dvh!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}

.sales-content{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}

.sales-content > .pos-layout{
  flex:1 1 0!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}

/* Kolonların toplamı viewport'u aşmasın */
.pos-layout.pos-layout-cart-left{
  grid-template-columns:
    clamp(260px,22vw,300px)
    clamp(130px,12vw,165px)
    minmax(0,1fr)!important;
}

.pos-cart,
.pos-group-filter,
.pos-products{
  min-width:0!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}

/* Sepette yalnız ürün listesi kayar */
.pos-cart{
  display:flex!important;
  flex-direction:column!important;
}
.pos-cart #cart.cart-lines{
  flex:1 1 0!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* Ürün grupları gerektiğinde kendi içinde kayar */
.pos-group-filter{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* Ürünler paneli viewport içinde kalır */
.pos-products{
  display:flex!important;
  flex-direction:column!important;
}
.pos-products .products-grid,
.pos-products .product-grid,
.pos-products .products-list{
  flex:1 1 0!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* Dar/yüksekliği az tarayıcı pencerelerinde boşlukları otomatik azalt */
@media (max-width:1400px), (max-height:800px){
  .sales-content{
    padding:clamp(6px,1vh,12px)!important;
  }
  .pos-layout{
    gap:clamp(6px,.7vw,10px)!important;
  }
}

@media (min-width:1200px) and (max-width:1399px) and (max-height:750px){
  .pos-layout.pos-layout-cart-left{
    grid-template-columns:290px 155px minmax(0,1fr)!important;
  }
}

/* dvh desteklemeyen tarayıcılar */
@supports not (height:100dvh){
  .sales-main{height:100vh!important}
}

/* dvh desteği olmayan tarayıcı */
@supports not (height:100dvh){
  

/* V61 - Ölçeklendirme tamamen kapatıldı */
.sales-main{
  zoom:1!important;
  width:100%!important;
  height:100dvh!important;
  max-width:100%!important;
}
.sales-content{
  width:100%!important;
  height:100%!important;
}
@supports not (height:100dvh){
  .sales-main{height:100vh!important}
}

/* =========================================================
   V62 - Sepette ürünler tekrar görünür + 6 üründen sonra scroll
   ========================================================= */
@media (min-width:1051px){
  .pos-cart{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  .pos-cart .sales-cart-title{
    flex:0 0 auto!important;
  }

  /* Ürün listesi sıfıra çökmesin. 6 standart ürün satırı görünür. */
  .pos-cart #cart.cart-lines{
    display:block!important;
    flex:0 1 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:342px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    scrollbar-width:thin!important;
    padding-right:5px!important;
  }

  .pos-cart #cart.cart-lines::-webkit-scrollbar{width:7px}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-track{background:transparent}
  .pos-cart #cart.cart-lines::-webkit-scrollbar-thumb{
    background:#c8d6ce;
    border-radius:10px;
  }

  /* Sepet altındaki indirim/toplam/ödeme alanları görünür kalır */
  .pos-cart > :not(#cart):not(.sales-cart-title){
    flex-shrink:0!important;
  }
}

@media (min-width:1200px) and (max-width:1399px) and (max-height:850px){
  .pos-cart #cart.cart-lines{
    max-height:342px!important;
    overflow-y:auto!important;
  }
}

/* V63 - Sepet alanı standart yükseklik */
@media (min-width:1051px){
  .pos-cart{
    height:620px!important;
    min-height:620px!important;
    max-height:620px!important;
    align-self:flex-start!important;
    overflow:hidden!important;
  }

  /* Sepette ürün listesi: 6 ürün sonrası iç scroll */
  .pos-cart #cart.cart-lines{
    max-height:342px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* Tarayıcı iç yüksekliği 620px'den küçükse taşmayı önle */
@media (min-width:1051px) and (max-height:680px){
  .pos-cart{
    height:calc(100dvh - 20px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 20px)!important;
  }
}

/* V64 - Sepet alanını daha geniş ve kullanışlı yap */
@media (min-width:1051px){
  /* Sol sepet kolonunu genişlet */
  .pos-layout.pos-layout-cart-left{
    grid-template-columns:
      clamp(340px,27vw,390px)
      clamp(145px,12vw,165px)
      minmax(0,1fr)!important;
  }

  /* Sepet dış kutusu standart fakat daha büyük */
  .pos-cart{
    width:100%!important;
    height:650px!important;
    min-height:650px!important;
    max-height:650px!important;
  }

  /* 6 ürün görünümü + sonrasında scroll */
  .pos-cart #cart.cart-lines{
    max-height:365px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* Kısa tarayıcı yüksekliğinde taşmayı önle */
@media (min-width:1051px) and (max-height:710px){
  .pos-cart{
    height:calc(100dvh - 18px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 18px)!important;
  }
}

/* V65 - Sepette ürünlerin bulunduğu alanı yükselt */
@media (min-width:1051px){
  .pos-cart #cart.cart-lines{
    height:430px!important;
    min-height:430px!important;
    max-height:430px!important;
    flex:0 0 430px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* V66 - Sepette eklenen ürünlerin alanı sabit 200px */
@media (min-width:1051px){
  .pos-cart #cart.cart-lines{
    height:200px!important;
    min-height:200px!important;
    max-height:200px!important;
    flex:0 0 200px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* V67 - Sepette eklenen ürünlerin alanı sabit 120px */
@media (min-width:1051px){
  .pos-cart #cart.cart-lines{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
    flex:0 0 120px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* V68 - Ek İndirim ödeme butonunun altında açılır panel */
.pos-cart .extra-discount-toggle{
  width:100%!important;
  margin-top:8px!important;
  min-height:38px!important;
  padding:8px 12px!important;
  font-weight:800!important;
}
.pos-cart .extra-discount-toggle.active{
  opacity:.92;
}
.pos-cart .extra-discount-panel{
  margin-top:8px!important;
  padding:9px!important;
  flex:0 0 auto!important;
}
.pos-cart .extra-discount-panel[hidden]{
  display:none!important;
}

/* V69 - Sepette eklenen ürünlerin alanı 190px */
@media (min-width:1051px){
  .pos-cart #cart.cart-lines{
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    flex:0 0 250px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* V70 - İade / İptal ekranı: Satış Sonrası bölümü iç scroll */
.v70-after-sales-scroll{
  max-height:520px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-gutter:stable!important;
}
.v70-after-sales-scroll::-webkit-scrollbar{width:8px}
.v70-after-sales-scroll::-webkit-scrollbar-track{background:transparent}
.v70-after-sales-scroll::-webkit-scrollbar-thumb{
  background:#c8d6ce;
  border-radius:10px;
}
.v70-after-sales-scroll > h1:first-child,
.v70-after-sales-scroll > h2:first-child,
.v70-after-sales-scroll > h3:first-child,
.v70-after-sales-scroll > h4:first-child{
  position:sticky;
  top:0;
  z-index:2;
  background:inherit;
}
@media (max-height:750px){
  .v70-after-sales-scroll{max-height:430px!important}
}

/* V74 - 1366x768 için özel optimizasyon/ölçekleme kullanılmaz.
   Bu çözünürlük normal masaüstü responsive kurallarıyla çalışır. */

/* V75 - Açılır sol menü scroll */
#ubtSidebar{
  max-height:100dvh!important;
  overflow:hidden!important;
}
#ubtSidebar .sidebar-top{
  flex:0 0 auto;
}
#ubtSidebar nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-gutter:stable;
  padding-right:5px;
}
#ubtSidebar nav::-webkit-scrollbar{width:7px}
#ubtSidebar nav::-webkit-scrollbar-track{background:transparent}
#ubtSidebar nav::-webkit-scrollbar-thumb{
  background:var(--ubt-border);
  border-radius:10px;
}
#ubtSidebar .logout{
  flex:0 0 auto;
}

/* V76 - Yan menü gerçek scroll fix */
#ubtSidebar{
  height:100vh!important;
  max-height:100vh!important;
  min-height:0!important;
  position:sticky;
  top:0;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#ubtSidebar .sidebar-top{
  flex:0 0 auto!important;
}
#ubtSidebar > nav{
  display:block!important;
  flex:1 1 0!important;
  min-height:0!important;
  height:0!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  padding-right:6px!important;
  scrollbar-width:auto!important;
  scrollbar-color:var(--ubt-muted) transparent;
}
#ubtSidebar > nav > a{
  display:block!important;
  margin-bottom:6px!important;
}
#ubtSidebar > nav::-webkit-scrollbar{
  width:9px!important;
  display:block!important;
}
#ubtSidebar > nav::-webkit-scrollbar-track{
  background:transparent!important;
}
#ubtSidebar > nav::-webkit-scrollbar-thumb{
  background:var(--ubt-muted)!important;
  border-radius:10px!important;
}
#ubtSidebar > .logout{
  flex:0 0 auto!important;
  margin-top:8px!important;
}
@media(max-width:900px){
  #ubtSidebar{
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    height:100dvh!important;
    max-height:100dvh!important;
  }
}

/* V77 - ÖDEME AL ile EK İNDİRİM butonu arası 15px */
.pos-cart .extra-discount-toggle{
  margin-top:15px!important;
}

/* V78 - Sepet ürün alanı TÜM çözünürlüklerde sabit 190px */
.pos-cart #cart.cart-lines{
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  flex:0 0 250px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* V79 - 190px sepet ürün alanı: 1366x768 + 1920x1080 ve tüm masaüstü çözünürlüklerde görünür */
.pos-cart{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:visible!important;
}
.pos-cart .sales-cart-title{
  flex:0 0 auto!important;
}
.pos-cart #cart.cart-lines{
  display:block!important;
  position:relative!important;
  visibility:visible!important;
  opacity:1!important;
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  flex:0 0 250px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
.pos-cart > :not(#cart):not(.sales-cart-title){
  flex-shrink:0!important;
}
/* Büyük ekranlarda eski yükseklik/flex kuralları sepet ürün alanını ezmesin */
@media (min-width:1400px){
  .pos-cart{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  .pos-cart #cart.cart-lines{
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    flex-basis:190px!important;
  }
}

}
}

/* V83 - Sepet ürün alanı tüm çözünürlüklerde 190px */
.sales-content .pos-layout .pos-cart{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
.sales-content .pos-layout .pos-cart #cart.cart-lines{
  display:block!important;
  width:100%!important;
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  flex:0 0 250px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  visibility:visible!important;
  opacity:1!important;
  box-sizing:border-box!important;
}

/* V85 - Düzenle açılır alanında stok miktarı */
.inline-edit-form{min-width:260px!important}
.inline-edit-form label{display:flex!important;flex-direction:column!important;gap:4px!important;font-size:12px!important;font-weight:700!important}
.inline-edit-form label input,.inline-edit-form label select{width:100%!important}

/* V86 - Ürün Düzenle modal panel */
.product-edit-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:24px}
.product-edit-modal.is-open{display:flex}
.product-edit-backdrop{position:absolute;inset:0;background:rgba(9,20,35,.58);backdrop-filter:blur(2px)}
.product-edit-panel{position:relative;z-index:1;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow-y:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:24px}
.product-edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.product-edit-head h2{margin:3px 0 0;font-size:24px}
.product-edit-close{border:0;background:#eef2f6;width:38px;height:38px;border-radius:10px;font-size:25px;line-height:1;cursor:pointer}
.product-edit-form{display:grid;gap:15px}
.product-edit-form label{display:grid;gap:7px;font-weight:800;font-size:13px}
.product-edit-form input,.product-edit-form select{width:100%;min-height:44px;border:1px solid #cfd7df;border-radius:10px;padding:10px 12px;background:#fff}
.product-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.product-edit-note{padding:11px 13px;border-radius:10px;background:#f4f7fa;font-size:12px;line-height:1.45}
.product-edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
body.modal-open{overflow:hidden!important}
@media(max-width:600px){.product-edit-grid{grid-template-columns:1fr}.product-edit-panel{padding:18px}.product-edit-actions{flex-direction:column-reverse}.product-edit-actions .btn{width:100%}}

/* V87 - Son Stok Girişleri alanı scroll */
.recent-stock-scroll{
  max-height:420px;
  overflow-y:auto;
  overflow-x:auto;
  border-radius:12px;
}
.recent-stock-scroll table{
  margin:0;
}
.recent-stock-scroll thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:inherit;
}
@media (max-height:800px){
  .recent-stock-scroll{
    max-height:300px;
  }
}

/* V88 - Sepet ürün alanı 250px */
.sales-content .pos-layout .pos-cart #cart.cart-lines{
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  flex:0 0 250px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* V90 - Ürün Grubu Düzenle modal pencere */
.product-group-edit-modal{
  position:fixed;
  inset:0;
  z-index:10060;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.product-group-edit-modal.is-open{display:flex}
.product-group-edit-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,18,32,.60);
  backdrop-filter:blur(2px);
}
.product-group-edit-panel{
  position:relative;
  z-index:1;
  width:min(500px,calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow-y:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  padding:24px;
}
.product-group-edit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}
.product-group-edit-head h2{margin:4px 0 0;font-size:24px}
.product-group-edit-close{
  border:0;
  background:#eef2f6;
  width:38px;
  height:38px;
  border-radius:10px;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.product-group-edit-form{
  display:grid;
  gap:16px;
}
.product-group-edit-form label{
  display:grid;
  gap:7px;
  font-size:13px;
  font-weight:800;
}
.product-group-edit-form input{
  width:100%;
  min-height:44px;
  border:1px solid #cfd7df;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.product-group-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:4px;
}
body.modal-open{overflow:hidden!important}
@media(max-width:600px){
  .product-group-edit-panel{padding:18px}
  .product-group-edit-actions{flex-direction:column-reverse}
  .product-group-edit-actions .btn{width:100%}
}

/* V102 - Yeni gerçek satış ekranı */
.sales-main{background:#f4f8f7!important}.sales-content{padding:16px!important;overflow:hidden!important}
.pos-v102{height:calc(100dvh - 32px)!important;display:grid!important;grid-template-columns:minmax(340px,29%) minmax(165px,13%) minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important}
.pos-v102 .pos-cart,.pos-v102 .pos-group-filter,.pos-v102 .pos-products{height:100%!important;min-height:0!important;background:#fff!important;border:1px solid #e3e9e7!important;border-radius:18px!important;box-shadow:0 9px 28px rgba(28,55,46,.05)!important}
.pos-v102 .pos-cart{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
.pos-v102 .sales-cart-title{height:62px!important;min-height:62px!important;display:grid!important;grid-template-columns:44px 1fr 44px!important;align-items:center!important;padding:0 13px!important;border-bottom:1px solid #edf1ef!important}
.pos-v102 .sales-cart-title h3{text-align:center!important;margin:0!important;font-size:22px!important}.cart-clear-btn{width:38px;height:38px;border:0;border-radius:10px;background:#fff;color:#ef4444;font-size:17px;cursor:pointer}
.pos-v102 #cart.cart-lines{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding:11px!important;display:grid!important;align-content:start!important;gap:8px!important}
.pos-v102 .cart-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:9px!important;align-items:center!important;padding:12px!important;border:1px solid #e5ece9!important;border-radius:13px!important;background:#fff!important}.pos-v102 .cart-line.has-gift{background:#f3fbf6!important;border-color:#bfe5ce!important}.pos-v102 .cart-product-info small{display:block;margin-top:4px;color:#788680}.gift-badge{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:10px;background:#dff6e8;color:#087d43;font-size:10px;font-weight:900}
.pos-v102 .summary{flex:0 0 auto!important;padding:10px 15px 6px!important;border-top:1px solid #edf1ef!important}.pos-v102 .summary>div{padding:5px 1px!important}.pos-v102 .summary .grand{margin-top:6px!important;padding:13px 14px!important;border-radius:12px!important;background:#eaf9f0!important;color:#078746!important}.pos-v102 .summary .grand strong{font-size:25px!important}
.pos-v102 .pay-btn{margin:8px 15px 0!important;height:52px!important;min-height:52px!important;border-radius:12px!important;font-size:17px!important}.pos-v102 .extra-discount-toggle{margin:9px 15px 14px!important;height:46px!important;min-height:46px!important;background:#fff!important;color:#24352e!important;border:1px solid #d7e0dc!important;border-radius:11px!important}
.pos-v102 .pos-group-filter{display:flex!important;flex-direction:column!important;padding:12px 10px!important;overflow-y:auto!important;width:auto!important;visibility:visible!important;opacity:1!important}.pos-v102 .pos-group-filter-head{padding:3px 6px 10px!important}.pos-v102 .pos-group-btn{min-height:50px!important;border:1px solid #e2e8e5!important;border-radius:10px!important;margin-bottom:7px!important;padding:0 10px!important}.pos-v102 .pos-group-btn.active{background:#08a95f!important;border-color:#08a95f!important;color:#fff!important}
.pos-v102 .pos-products{display:flex!important;flex-direction:column!important;overflow:hidden!important}.pos-v102 .toolbar{height:62px!important;min-height:62px!important;padding:0 13px!important;border-bottom:1px solid #edf1ef!important}.pos-v102 .toolbar input{height:40px!important;border-radius:10px!important}.pos-v102 .product-grid{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:11px!important;display:grid!important;grid-template-columns:repeat(5,minmax(125px,1fr))!important;gap:9px!important;align-content:start!important}.pos-v102 .product{min-height:120px!important;border:1px solid #e2e9e6!important;border-radius:13px!important;background:#fff!important;padding:12px!important;text-align:left!important;display:flex!important;flex-direction:column!important;box-shadow:none!important}.pos-v102 .product p{margin-top:auto!important;margin-bottom:8px!important;font-size:18px!important;font-weight:900!important}
.v102-discount-card{width:min(560px,calc(100vw - 30px))!important}.v102-discount-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.v102-discount-tabs button{height:43px;border:1px solid #dfe6e3;border-radius:10px;background:#fff;font-weight:800;cursor:pointer}.v102-discount-tabs button.active{background:#08a95f;color:#fff;border-color:#08a95f}.v102-discount-pane{display:none;gap:12px}.v102-discount-pane.active{display:grid}.v102-gift-list{display:grid;gap:8px;max-height:270px;overflow-y:auto}.v102-gift-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e1e8e5;border-radius:11px}.v102-gift-item small{display:block;color:#7a8882;margin-top:3px}.v102-gift-qty{display:flex;align-items:center;border:1px solid #dce4e1;border-radius:9px;overflow:hidden}.v102-gift-qty button{width:32px;height:34px;border:0;background:#f7f9f8;font-size:18px;cursor:pointer}.v102-gift-qty input{width:45px;height:34px;border:0!important;border-left:1px solid #e2e8e5!important;border-right:1px solid #e2e8e5!important;border-radius:0!important;padding:0!important;text-align:center!important;font-weight:900!important}.v102-discount-card .modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}
@media(max-width:1500px){.pos-v102{grid-template-columns:350px 165px minmax(0,1fr)!important}.pos-v102 .product-grid{grid-template-columns:repeat(4,minmax(120px,1fr))!important}}@media(max-width:1100px){.sales-content{overflow:auto!important}.pos-v102{height:auto!important;grid-template-columns:1fr!important}.pos-v102 .pos-cart{min-height:640px!important}.pos-v102 .pos-group-filter{max-height:300px!important}.pos-v102 .pos-products{min-height:650px!important}.pos-v102 .product-grid{grid-template-columns:repeat(3,minmax(120px,1fr))!important}}

/* V103 - Yeni satış ekranı görsel boyut / 1366x768 tarayıcı uyumu */
html:has(.pos-v102),body:has(.pos-v102){
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  overflow:hidden!important;
  zoom:1!important;
}
body:has(.pos-v102) #ubtApp{
  min-width:0!important;
  width:100%!important;
}
body:has(.pos-v102) .sales-main{
  width:100%!important;
  min-width:0!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
body:has(.pos-v102) .sales-content{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:12px!important;
  overflow:hidden!important;
}
body:has(.pos-v102) .pos-layout.pos-v102{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  height:calc(100dvh - 24px)!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:360px 180px minmax(0,1fr)!important;
  gap:12px!important;
  overflow:hidden!important;
}
body:has(.pos-v102) .pos-v102 > .pos-cart,
body:has(.pos-v102) .pos-v102 > .pos-group-filter,
body:has(.pos-v102) .pos-v102 > .pos-products{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
}
body:has(.pos-v102) .pos-v102 > .pos-cart{
  display:flex!important;
  flex-direction:column!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title{
  flex:0 0 58px!important;
  height:58px!important;
  min-height:58px!important;
  grid-template-columns:42px minmax(0,1fr) 42px!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title h3{
  display:block!important;
  width:auto!important;
  overflow:visible!important;
  white-space:nowrap!important;
  font-size:22px!important;
  line-height:1.2!important;
}
body:has(.pos-v102) .pos-v102 #cart.cart-lines{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
}
body:has(.pos-v102) .pos-v102 .summary{
  flex:0 0 auto!important;
  background:#fff!important;
}
body:has(.pos-v102) .pos-v102 .summary>div{
  font-size:14px!important;
}
body:has(.pos-v102) .pos-v102 .summary .grand{
  min-height:55px!important;
}
body:has(.pos-v102) .pos-v102 .summary .grand span{
  font-size:17px!important;
}
body:has(.pos-v102) .pos-v102 .summary .grand strong{
  font-size:25px!important;
}
body:has(.pos-v102) .pos-v102 .pay-btn{
  flex:0 0 50px!important;
  height:50px!important;
  min-height:50px!important;
  margin:8px 14px 0!important;
}
body:has(.pos-v102) .pos-v102 .extra-discount-toggle{
  flex:0 0 44px!important;
  height:44px!important;
  min-height:44px!important;
  margin:8px 14px 12px!important;
}
body:has(.pos-v102) .pos-v102 > .pos-group-filter{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:11px 9px!important;
}
body:has(.pos-v102) .pos-v102 .pos-group-filter-head{
  flex:0 0 auto!important;
}
body:has(.pos-v102) .pos-v102 .pos-group-filter-head strong{
  font-size:18px!important;
}
body:has(.pos-v102) .pos-v102 .pos-group-btn{
  flex:0 0 48px!important;
  min-height:48px!important;
  height:48px!important;
  font-size:14px!important;
}
body:has(.pos-v102) .pos-v102 > .pos-products{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body:has(.pos-v102) .pos-v102 .toolbar{
  flex:0 0 58px!important;
  height:58px!important;
  min-height:58px!important;
}
body:has(.pos-v102) .pos-v102 .toolbar h3{
  font-size:21px!important;
}
body:has(.pos-v102) .pos-v102 .toolbar input{
  width:min(310px,42%)!important;
  min-width:190px!important;
}
body:has(.pos-v102) .pos-v102 .product-grid{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  grid-template-columns:repeat(4,minmax(145px,1fr))!important;
  gap:10px!important;
  padding:10px!important;
}
body:has(.pos-v102) .pos-v102 .product{
  min-height:130px!important;
  height:auto!important;
  padding:13px!important;
  font-size:14px!important;
}
body:has(.pos-v102) .pos-v102 .product strong{
  font-size:15px!important;
  line-height:1.25!important;
}
body:has(.pos-v102) .pos-v102 .product .muted{
  font-size:12px!important;
}
body:has(.pos-v102) .pos-v102 .product p{
  font-size:19px!important;
}
body:has(.pos-v102) .pos-v102 .product .badge{
  font-size:11px!important;
}

/* 1600px+ tarayıcılarda 5 sütun */
@media (min-width:1600px){
  body:has(.pos-v102) .pos-layout.pos-v102{
    grid-template-columns:390px 190px minmax(0,1fr)!important;
  }
  body:has(.pos-v102) .pos-v102 .product-grid{
    grid-template-columns:repeat(5,minmax(150px,1fr))!important;
  }
}

/* 1200-1399px arası: özellikle 1366x768 */
@media (min-width:1200px) and (max-width:1399px){
  body:has(.pos-v102) .sales-content{padding:10px!important}
  body:has(.pos-v102) .pos-layout.pos-v102{
    height:calc(100dvh - 20px)!important;
    grid-template-columns:335px 165px minmax(0,1fr)!important;
    gap:10px!important;
  }
  body:has(.pos-v102) .pos-v102 .product-grid{
    grid-template-columns:repeat(4,minmax(130px,1fr))!important;
    gap:8px!important;
    padding:8px!important;
  }
  body:has(.pos-v102) .pos-v102 .product{
    min-height:118px!important;
    padding:11px!important;
  }
}

/* Kısa tarayıcı yüksekliğinde alt sepet alanı kaybolmasın */
@media (min-width:1100px) and (max-height:720px){
  body:has(.pos-v102) .pos-v102 .sales-cart-title{
    flex-basis:52px!important;height:52px!important;min-height:52px!important;
  }
  body:has(.pos-v102) .pos-v102 .summary{
    padding:6px 12px 4px!important;
  }
  body:has(.pos-v102) .pos-v102 .summary>div{
    padding:3px 1px!important;
  }
  body:has(.pos-v102) .pos-v102 .summary .grand{
    min-height:48px!important;padding:9px 12px!important;
  }
  body:has(.pos-v102) .pos-v102 .pay-btn{
    flex-basis:46px!important;height:46px!important;min-height:46px!important;
  }
  body:has(.pos-v102) .pos-v102 .extra-discount-toggle{
    flex-basis:40px!important;height:40px!important;min-height:40px!important;
  }
  body:has(.pos-v102) .pos-v102 .product{
    min-height:108px!important;
  }
}


/* V104 - Sepet başlığı ortalama ve Tümünü Sil sağ hizalama düzeltmesi */
body:has(.pos-v102) .pos-v102 .sales-cart-title{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:58px!important;
  height:58px!important;
  padding:0 14px!important;
  margin-bottom:10px!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title h3{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:100%!important;
  margin:0!important;
  text-align:center!important;
  font-size:22px!important;
  line-height:1.15!important;
  padding:0 128px 0 72px!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title .sales-cart-menu{
  position:absolute!important;
  left:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  display:grid!important;
  place-items:center!important;
  z-index:4!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title .cart-clear-btn{
  position:absolute!important;
  right:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  min-width:112px!important;
  width:auto!important;
  height:38px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #fde2e2!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#ef4444!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1!important;
  box-shadow:0 2px 10px rgba(239,68,68,.08)!important;
  z-index:4!important;
}
body:has(.pos-v102) .pos-v102 .sales-cart-title .cart-clear-btn .icon,
body:has(.pos-v102) .pos-v102 .sales-cart-title .cart-clear-btn .label{display:inline-flex!important;align-items:center!important;}

@media (min-width:1200px) and (max-width:1399px){
  body:has(.pos-v102) .pos-v102 .sales-cart-title h3{padding:0 120px 0 68px!important;}
  body:has(.pos-v102) .pos-v102 .sales-cart-title .cart-clear-btn{min-width:104px!important;padding:0 10px!important;font-size:12px!important;}
}


/* V105 - Sepet özet yazı renkleri siyah */
body:has(.pos-v102) .pos-v102 .summary > div:not(.grand) span,
body:has(.pos-v102) .pos-v102 .summary > div:not(.grand) strong{
  color:#000!important;
}
