*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:#0f172a;background:#f5f7fb}.login-page{min-height:100vh;background:radial-gradient(circle at top left,#fb923c,transparent 25%),linear-gradient(135deg,#030712,#111827);display:grid;place-items:center;padding:24px}.login-shell{width:min(1120px,100%);display:grid;grid-template-columns:1.2fr .85fr;gap:26px;align-items:center}.login-copy{color:white;padding:40px}.login-copy span{display:inline-flex;background:rgba(255,255,255,.12);padding:10px 16px;border-radius:999px;font-weight:900}.login-copy h1{font-size:clamp(42px,6vw,72px);line-height:.96;margin:30px 0 20px}.login-copy p{font-size:22px;color:#cbd5e1;max-width:620px}.login-card{background:white;border-radius:32px;padding:38px;box-shadow:0 30px 90px rgba(0,0,0,.35)}.mark{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#f97316,#ea580c);color:white;display:grid;place-items:center;font-weight:950}.login-card h2{font-size:34px;margin:24px 0}.alert,.notice{padding:15px 17px;border-radius:16px;margin:18px 0;font-weight:800}.alert,.err{background:#fee2e2;color:#991b1b}.ok{background:#dcfce7;color:#166534}label{display:block;margin:17px 0 8px;font-weight:900;color:#334155}input,select{width:100%;padding:15px;border:1px solid #e5e7eb;border-radius:15px;font-size:15px;background:white}button{width:100%;border:0;margin-top:22px;padding:16px;border-radius:16px;background:linear-gradient(135deg,#f97316,#ea580c);color:white;font-weight:950;font-size:16px;cursor:pointer}.app{display:flex;min-height:100vh}.sidebar{width:285px;background:#07111f;color:white;padding:24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{font-size:28px;font-weight:950;margin-bottom:28px}nav{display:flex;flex-direction:column;gap:8px;flex:1}.sidebar a{color:#cbd5e1;text-decoration:none;padding:13px 15px;border-radius:15px;font-weight:800}.sidebar a.active,.sidebar a:hover{background:linear-gradient(135deg,#f97316,#ea580c);color:white}.logout{background:rgba(255,255,255,.08)}.content{flex:1;padding:32px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px}.crumb{color:#ea580c;font-weight:950}.topbar h1{font-size:42px;margin:8px 0}.profile{background:white;padding:17px 20px;border-radius:22px;box-shadow:0 10px 35px rgba(15,23,42,.08);text-align:right}.profile span{display:block;color:#64748b;margin-top:5px}.cards{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:18px;margin-top:30px}.card,.panel{background:white;border-radius:26px;box-shadow:0 12px 42px rgba(15,23,42,.08)}.card{padding:24px}.card span{color:#64748b;font-weight:900}.card strong{display:block;font-size:30px;margin-top:13px}.panel{padding:24px;margin-top:24px}.panel.narrow{max-width:760px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-head h2{margin:0}.panel-head a{color:#ea580c;font-weight:900;text-decoration:none}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:15px;border-bottom:1px solid #eef2f7;vertical-align:middle}th{font-size:12px;text-transform:uppercase;color:#64748b;letter-spacing:.05em}.status{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff7ed;color:#ea580c;font-weight:950}.status.active,.status.served,.status.paid,.status.ready{background:#dcfce7;color:#166534}.status.cancelled{background:#fee2e2;color:#991b1b}.grid-two{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}.form{margin-top:24px}.hero{margin-top:28px;background:linear-gradient(135deg,#111827,#020617);color:white;border-radius:30px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero.full{width:100%}.hero h2{font-size:30px;margin:0 0 10px}.hero p{color:#cbd5e1;margin:0}.hero span{white-space:nowrap;background:#ffedd5;color:#ea580c;border-radius:999px;padding:12px 18px;font-weight:900}.inline{display:flex;gap:8px;align-items:center}.inline select{min-width:130px}.mini-btn{margin:0;padding:9px 12px;border-radius:12px;font-size:13px;background:#111827}.mini-btn.danger{background:#991b1b}.table-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.table-card{background:white;border-radius:26px;padding:24px;box-shadow:0 12px 42px rgba(15,23,42,.08);border:2px solid transparent}.table-card.busy{border-color:#fb923c}.table-card.reserved{border-color:#64748b}.table-card span{text-transform:uppercase;color:#64748b;font-weight:900;font-size:12px}.table-card h2{font-size:30px;margin:8px 0}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.row-actions form{flex:1;min-width:70px}.kitchen-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:28px}.kitchen-card{background:#111827;color:white;border-radius:28px;padding:26px;box-shadow:0 18px 50px rgba(15,23,42,.18)}.kitchen-card span{color:#fdba74;font-weight:900}.kitchen-card h2{font-size:32px;margin:12px 0}.kitchen-card p,.kitchen-card li{color:#cbd5e1}.info-list{display:grid;gap:12px}.info-list div{padding:16px;border-radius:16px;background:#f8fafc}.info-list span{display:block;color:#64748b;font-weight:800;margin-bottom:6px}.info-list strong{font-size:18px}code{font-size:12px;background:#f1f5f9;padding:6px 8px;border-radius:8px}.qr-page{min-height:100vh;display:grid;place-items:center;background:#f5f7fb;padding:20px}.qr-card{background:white;border-radius:28px;padding:34px;box-shadow:0 12px 42px rgba(15,23,42,.08);max-width:520px}@media(max-width:1100px){.login-shell{grid-template-columns:1fr}.login-copy{padding:20px}.app{display:block}.sidebar{position:relative;width:100%;height:auto}.cards,.kitchen-grid,.table-grid{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}.topbar{display:block}.profile{text-align:left;margin-top:18px}}@media(max-width:640px){.cards,.kitchen-grid,.table-grid{grid-template-columns:1fr}.content{padding:20px}.topbar h1{font-size:32px}.login-card{padding:28px}.login-copy h1{font-size:40px}.login-copy p{font-size:18px}.hero{display:block}.inline{display:block}.inline button{margin-top:8px}}

/* v5 mobile premium patch */
@media(max-width:768px){
body{font-size:15px}
.sidebar{padding:14px}
.content{padding:14px}
.card,.panel,.widget{border-radius:18px}
table{display:block;overflow-x:auto;white-space:nowrap}
.btn,button{min-height:46px}
input,select,textarea{min-height:44px;font-size:16px}
.topbar{padding:10px 0}
.topbar h1{font-size:26px}
.login-shell{gap:14px}
.login-copy h1{font-size:32px;line-height:1.15}
.login-card,.box{padding:22px}
}
@media(max-width:480px){
.cards,.table-grid,.kitchen-grid{grid-template-columns:1fr!important}
.login-copy{padding:8px}
.login-copy h1{font-size:28px}
}

/* v5.1 product mobile fix */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.products-layout{align-items:start}
.product-forms{min-width:0}
.products-panel{min-width:0}
@media(max-width:768px){
  .products-layout{display:block}
  .product-forms{display:grid;grid-template-columns:1fr;gap:14px}
  .product-form{margin-top:14px;padding:18px;border-radius:22px}
  .product-form h2{font-size:22px;margin:0 0 14px}
  .form-row{grid-template-columns:1fr 1fr;gap:10px}
  .products-panel{padding:18px;margin-top:16px;border-radius:22px}
  .products-panel .panel-head{margin-bottom:10px}
  .products-table{overflow:visible}
  .products-table table{min-width:0;width:100%;display:block;white-space:normal}
  .products-table thead{display:none}
  .products-table tbody{display:grid;gap:12px}
  .products-table tr{display:block;background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:12px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
  .products-table td{display:flex;justify-content:space-between;gap:14px;align-items:center;border:0;padding:8px 4px;text-align:right;font-weight:850;word-break:break-word}
  .products-table td::before{content:attr(data-label);color:#64748b;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;text-align:left;flex:0 0 88px}
  .products-table td:first-child{font-size:16px;color:#0f172a}
  .products-table td:last-child{padding-top:12px;border-top:1px solid #e5e7eb}
  .products-table td:last-child form{width:100%}
  .products-table td:last-child .mini-btn{width:100%;min-height:42px}
}
@media(max-width:420px){
  .form-row{grid-template-columns:1fr}
  .product-form,.products-panel{padding:16px}
}

/* v6 masa / adisyon / kasa mobile premium */
.link-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:12px;background:linear-gradient(135deg,#f97316,#ea580c);color:white;font-weight:950;padding:9px 12px;font-size:13px;min-height:37px}.money{font-size:24px;font-weight:950;margin:12px 0 4px;color:#0f172a}.tables-layout{grid-template-columns:320px 1fr}.orders-shell{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start;margin-top:24px}.order-create{position:sticky;top:24px}.order-lines{display:grid;gap:12px}.order-line{background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:12px}.order-line label{margin-top:0}.order-line input{margin-top:8px}.orders-main{min-width:0}.order-detail{margin-top:0;margin-bottom:22px}.big-total{font-size:34px;color:#ea580c;white-space:nowrap}.mobile-items{display:grid;gap:12px;margin:16px 0}.mobile-items article{display:grid;grid-template-columns:1fr auto auto auto;gap:12px;align-items:center;background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:14px}.mobile-items span{color:#64748b;font-weight:800}.mobile-items b{font-size:18px}.mobile-items form button{margin:0}.add-item-row,.pay-row{display:grid;grid-template-columns:1fr 110px 110px;gap:10px;align-items:end;margin-top:14px}.pay-row{grid-template-columns:1fr 1fr}.add-item-row button,.pay-row button{margin:0}.mini-btn.pay{background:linear-gradient(135deg,#16a34a,#15803d)}.order-list{display:grid;gap:12px}.order-card{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:14px}.order-card a{text-decoration:none;color:#0f172a;display:grid;gap:5px}.order-card a span{color:#64748b;font-weight:800}.order-card b{font-size:18px}.order-card em{font-style:normal}.status.preparing{background:#dbeafe;color:#1d4ed8}.status.new{background:#ffedd5;color:#c2410c}.status.empty{background:#dcfce7;color:#166534}.status.busy{background:#ffedd5;color:#c2410c}.status.reserved{background:#e2e8f0;color:#334155}
@media(max-width:1100px){.tables-layout,.orders-shell{grid-template-columns:1fr}.order-create{position:relative;top:auto}.add-item-row,.pay-row{grid-template-columns:1fr}.mobile-items article{grid-template-columns:1fr}.mobile-items article form{width:100%}.mobile-items article form button{width:100%}.order-card{grid-template-columns:1fr}.big-total{font-size:28px}.link-btn{width:100%}.row-actions form{min-width:0}.row-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.row-actions .link-btn{grid-column:1/-1}.table-card{padding:18px}.order-create,.order-detail{border-radius:22px}}
@media(max-width:640px){.orders-shell{margin-top:14px}.order-create h2,.order-detail h2{font-size:22px}.order-line{padding:10px}.table-card h2{font-size:26px}.money{font-size:22px}.cards{gap:12px}.card strong{font-size:24px}.panel-head{display:block}.panel-head .big-total{display:block;margin-top:10px}.order-card{padding:12px}.add-item-row select,.pay-row select{min-height:48px}}

/* v7 menü & kategori sistemi */
.menu-manager{display:grid;grid-template-columns:340px 1fr;gap:22px;align-items:start;margin-top:24px}.category-panel{position:sticky;top:24px}.compact-form{background:#f8fafc;border:1px solid #eef2f7;border-radius:20px;padding:14px;margin-bottom:16px}.compact-form label{margin-top:10px}.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.cat-pill{display:inline-flex;align-items:center;gap:7px;text-decoration:none;background:#f8fafc;color:#334155;border:1px solid #e5e7eb;border-radius:999px;padding:10px 13px;font-weight:950}.cat-pill.active{background:linear-gradient(135deg,#f97316,#ea580c);color:white;border-color:transparent}.cat-pill b{background:rgba(15,23,42,.08);padding:2px 7px;border-radius:999px}.category-list{display:grid;gap:10px}.category-edit{display:grid;grid-template-columns:1.4fr 70px 92px;gap:8px;background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:10px}.category-edit input,.category-edit select{padding:10px;border-radius:12px}.category-edit .mini-btn{grid-column:1/-1}.ghost-danger{background:#fee2e2!important;color:#991b1b!important}.muted{color:#64748b;font-weight:850}.products-side{min-width:0}.product-form-v7{margin-top:0}.badge-soft{display:inline-flex;background:#ffedd5;color:#ea580c;border-radius:999px;padding:8px 12px;font-weight:950}.form-grid-v7{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.form-grid-v7.small{grid-template-columns:1.2fr 1fr .7fr .7fr .55fr .75fr;align-items:center}.form-grid-v7.small input,.form-grid-v7.small select{padding:11px;border-radius:12px}.product-cards-v7{display:grid;gap:12px}.product-card-v7{background:#f8fafc;border:1px solid #e5e7eb;border-radius:22px;padding:14px;display:grid;gap:10px}.product-card-v7.passive{opacity:.68;border-style:dashed}.product-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.product-card-head strong{font-size:18px}.product-card-head span{font-weight:950;color:#ea580c}.product-card-v7 form{display:grid;gap:10px}.product-card-v7 .mini-btn,.delete-product-v7 .mini-btn{margin:0}.delete-product-v7{margin-top:6px}.products-panel-v7{margin-top:18px}
@media(max-width:1100px){.menu-manager{grid-template-columns:1fr}.category-panel{position:relative;top:auto}.form-grid-v7,.form-grid-v7.small{grid-template-columns:1fr 1fr}.category-edit{grid-template-columns:1fr 70px 92px}.product-card-head{align-items:flex-start}.product-card-v7{border-radius:20px}}
@media(max-width:640px){.menu-manager{gap:14px;margin-top:14px}.category-panel,.product-form-v7,.products-panel-v7{padding:18px;border-radius:22px}.compact-form{padding:12px}.category-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:6px}.cat-pill{white-space:nowrap}.category-edit{grid-template-columns:1fr;gap:8px}.form-grid-v7,.form-grid-v7.small{grid-template-columns:1fr}.product-card-head{display:block}.product-card-head span{display:inline-flex;margin-top:7px}.product-card-v7{padding:13px}.product-form-v7 .panel-head,.products-panel-v7 .panel-head{display:flex}.badge-soft{font-size:12px;padding:7px 10px}.product-card-v7 input,.product-card-v7 select{min-height:44px}.delete-product-v7 .mini-btn{width:100%}}
/* v7.1 operation locks */
.lock-note{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:12px;background:#fff3cd;color:#8a5a00;font-size:12px;font-weight:800;white-space:nowrap}
@media(max-width:720px){.lock-note{width:100%;white-space:normal;text-align:center}.row-actions{gap:8px}}

/* v7.2 - Product/category field labels clarity fix */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:12px;font-weight:950;color:#64748b;letter-spacing:.02em;margin:0}.field input,.field select{width:100%;box-sizing:border-box}.labeled-grid{align-items:end}.full-field{margin-top:0}.labeled-category{align-items:end}.category-edit.labeled-category{grid-template-columns:1.4fr 76px 100px}.category-edit.labeled-category .field input,.category-edit.labeled-category .field select{padding:10px;border-radius:12px}.product-card-v7 .field label{padding-left:2px}.product-card-v7 .form-grid-v7.small input,.product-card-v7 .form-grid-v7.small select{padding:11px;border-radius:12px}.product-card-v7 .full-field input{min-height:44px}
@media(max-width:1100px){.category-edit.labeled-category{grid-template-columns:1fr 76px 100px}.form-grid-v7.small.labeled-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.category-edit.labeled-category,.form-grid-v7.small.labeled-grid{grid-template-columns:1fr}.field label{font-size:13px}.product-card-v7 .field input,.product-card-v7 .field select{min-height:46px}.full-field{margin-top:2px}}


/* v7.3 product edit alignment fix */
.product-card-v7 .form-grid-v7.small.labeled-grid{
  grid-template-columns:minmax(180px,1.45fr) minmax(150px,1.2fr) minmax(110px,.85fr) minmax(110px,.85fr) minmax(86px,.65fr) minmax(120px,.9fr);
  gap:14px;
  align-items:end;
}
.product-card-v7 .field label{
  min-height:22px;
  display:flex;
  align-items:flex-end;
  white-space:nowrap;
  line-height:1.05;
}
.product-card-v7 .field input,
.product-card-v7 .field select{
  height:52px;
  min-height:52px;
}
.product-card-v7 .full-field label{
  min-height:20px;
}
.product-card-v7 .mini-btn,
.delete-product-v7 .mini-btn{
  min-height:46px;
}
@media(max-width:980px){
  .product-card-v7 .form-grid-v7.small.labeled-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .product-card-v7 .form-grid-v7.small.labeled-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .product-card-v7 .field label{
    min-height:auto;
  }
  .product-card-v7 .field input,
  .product-card-v7 .field select{
    height:48px;
    min-height:48px;
  }
}

/* v7.4 - no overflow product cards/pages fix */
html, body { max-width: 100%; overflow-x: hidden; }
.app, .content, .panel, .products-side, .products-panel-v7, .product-card-v7, .menu-manager { min-width: 0; max-width: 100%; }
.content { overflow-x: hidden; }
.product-card-v7 { overflow: hidden; }
.product-card-v7 form, .delete-product-v7 { min-width: 0; max-width: 100%; }
.product-card-v7 .form-grid-v7.small.labeled-grid{
  width:100%;
  max-width:100%;
  grid-template-columns:1.45fr 1.2fr .85fr .85fr .65fr .9fr;
  gap:12px;
}
.product-card-v7 .field{min-width:0;max-width:100%;}
.product-card-v7 .field label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.product-card-v7 .field input,
.product-card-v7 .field select{min-width:0;max-width:100%;width:100%;}
.product-card-v7 .full-field{width:100%;max-width:100%;}
.product-card-v7 .mini-btn,
.delete-product-v7 .mini-btn{width:100%;max-width:100%;}
.product-card-head{min-width:0;}
.product-card-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(max-width:1280px){
  .menu-manager{grid-template-columns:320px minmax(0,1fr);gap:18px;}
  .product-card-v7 .form-grid-v7.small.labeled-grid{grid-template-columns:1fr 1fr 1fr;}
}
@media(max-width:1100px){
  .menu-manager{grid-template-columns:1fr;}
  .product-card-v7 .form-grid-v7.small.labeled-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .product-card-v7 .form-grid-v7.small.labeled-grid{grid-template-columns:1fr;}
  .product-card-head strong{white-space:normal;}
}

/* v7.5 - Desktop sidebar fixed full-height fix */
@media (min-width:1101px){
  .app{
    display:block;
    min-height:100vh;
  }
  .sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:285px;
    height:100vh;
    min-height:100vh;
    overflow-y:auto;
    z-index:50;
  }
  .content{
    margin-left:285px;
    width:calc(100% - 285px);
    min-height:100vh;
  }
}
@media (max-width:1100px){
  .app{display:block;}
  .sidebar{
    position:relative;
    left:auto;
    top:auto;
    bottom:auto;
    width:100%;
    height:auto;
    min-height:auto;
    overflow:visible;
  }
  .content{
    margin-left:0;
    width:100%;
  }
}

/* v8 - garson / sipariş operasyon akışı */
.v8-orders .order-create{max-height:calc(100vh - 48px);overflow:auto;scrollbar-width:thin;}
.v8-line{display:grid;gap:10px;}
.qty-note{display:grid;grid-template-columns:92px 1fr;gap:10px;}
.waiter-box{margin-top:16px;background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:14px;display:grid;gap:8px;}
.waiter-box h3{margin:0 0 4px;font-size:16px;color:#9a3412;}
.waiter-box p{margin:0;background:#fff;border-radius:14px;padding:10px;display:grid;gap:4px;}
.waiter-box span{color:#64748b;font-weight:800;font-size:13px;}
.v8-actions-top{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 16px;}
.v8-actions-top form,.qty-actions form,.kitchen-buttons form{margin:0;}
.v8-actions-top .mini-btn{width:100%;margin:0;min-height:46px;}
.kitchen-send{background:linear-gradient(135deg,#f97316,#ea580c)!important;}
.waiter-call{background:linear-gradient(135deg,#334155,#0f172a)!important;}
.v8-items article{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;}
.v8-items .item-main{display:grid;gap:4px;min-width:0;}
.v8-items .item-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.v8-items small{display:inline-flex;background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 8px;font-weight:900;font-size:12px;width:max-content;max-width:100%;}
.qty-actions{display:flex;gap:6px;align-items:center;}
.qty-actions .qty-btn{width:42px;height:42px;min-height:42px;padding:0;margin:0;font-size:22px;line-height:1;border-radius:13px;}
.note-form{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 90px;gap:8px;margin:0!important;}
.note-form input{min-height:44px;}
.delete-item{grid-column:1/-1;margin:0!important;}
.delete-item .mini-btn{width:100%;margin:0;}
.v8-add{grid-template-columns:minmax(0,1fr) 90px minmax(160px,.65fr) 110px;align-items:end;}
.v8-add input,.v8-add select{min-width:0;}
.v8-kitchen .kitchen-card ul li{display:grid;gap:4px;margin-bottom:8px;}
.v8-kitchen .kitchen-card ul li small{display:block;color:#c2410c;background:#ffedd5;border-radius:12px;padding:6px 8px;font-weight:900;}
.kitchen-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;}
.kitchen-buttons .mini-btn{width:100%;margin:0;min-height:44px;}
@media(max-width:1100px){
  .v8-orders .order-create{max-height:none;overflow:visible;}
  .v8-add{grid-template-columns:1fr 90px;}
  .v8-add input[name="item_note"],.v8-add button{grid-column:1/-1;}
  .v8-items article{grid-template-columns:1fr;}
  .qty-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .qty-actions .qty-btn{width:100%;}
}
@media(max-width:640px){
  .qty-note{grid-template-columns:1fr;}
  .v8-actions-top{grid-template-columns:1fr;}
  .note-form{grid-template-columns:1fr;}
  .v8-add{grid-template-columns:1fr;}
  .kitchen-buttons{grid-template-columns:1fr;}
  .v8-items .item-main strong{white-space:normal;}
}

/* V8.1 - Premium mutfak durum butonları */
.premium-status-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.premium-status-buttons form{margin:0;min-width:0;}
.premium-status-buttons .kitchen-state-btn{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:52px;
  margin:0;
  padding:14px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:15px;
  font-weight:950;
  line-height:1.15;
  box-shadow:0 12px 28px rgba(2,6,23,.22);
  transform:translateZ(0);
}
.premium-status-buttons .kitchen-state-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0));
  pointer-events:none;
}
.premium-status-buttons .kitchen-state-btn span{position:relative;z-index:1;}
.premium-status-buttons .kitchen-state-btn:hover{filter:brightness(1.06);transform:translateY(-1px);}
.premium-status-buttons .state-preparing{background:linear-gradient(135deg,#fb923c,#ea580c);}
.premium-status-buttons .state-ready{background:linear-gradient(135deg,#22c55e,#15803d);}
.premium-status-buttons .state-served{background:linear-gradient(135deg,#2563eb,#1e3a8a);}
.premium-status-buttons .kitchen-state-btn.is-active{
  outline:3px solid rgba(255,255,255,.45);
  box-shadow:0 0 0 4px rgba(249,115,22,.18),0 16px 34px rgba(2,6,23,.32);
}
.premium-status-buttons .kitchen-state-btn.is-active::after{
  content:"Aktif";
  position:absolute;
  right:10px;
  top:8px;
  z-index:2;
  font-size:10px;
  font-weight:950;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.24);
  color:#fff;
}
@media(max-width:760px){
  .premium-status-buttons{grid-template-columns:1fr;gap:10px;}
  .premium-status-buttons .kitchen-state-btn{min-height:50px;font-size:15px;}
}

/* v8.5 - Premium kolay adisyon UX */
.adisyon-v85{display:grid;grid-template-columns:260px minmax(0,1fr) 360px;gap:18px;align-items:start;margin-top:24px;max-width:100%;min-width:0}.v85-tables,.v85-products{position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:auto;scrollbar-width:thin}.v85-table-list{display:grid;gap:10px}.v85-table-card{display:block;text-decoration:none;color:#0f172a;background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.04);transition:.15s ease}.v85-table-card:hover,.v85-table-card.active{transform:translateY(-1px);border-color:#fb923c;background:#fff7ed}.v85-table-card.busy{border-color:#fb923c;background:#fff7ed}.v85-table-card.reserved{border-color:#94a3b8;background:#f8fafc}.v85-table-card span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;font-weight:950;letter-spacing:.04em}.v85-table-card b{display:block;font-size:19px;margin:5px 0}.v85-table-card em{font-style:normal;color:#ea580c;font-weight:950}.v85-center{min-width:0;max-width:100%}.v85-adisyon-card{margin-top:0;overflow:hidden}.v85-adisyon-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid #eef2f7}.v85-adisyon-head h2{font-size:30px;margin:6px 0}.v85-adisyon-head strong{font-size:34px;color:#ea580c;white-space:nowrap}.v85-action-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.v85-action-strip form{margin:0}.v85-action-strip button{width:100%;margin:0;min-height:48px}.v85-items{display:grid;gap:12px}.v85-items article{background:#f8fafc;border:1px solid #e5e7eb;border-radius:20px;padding:14px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(110px,.6fr) auto;gap:12px;align-items:center}.v85-item-title{min-width:0;display:grid;gap:6px}.v85-item-title b{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v85-item-title small{width:max-content;max-width:100%;background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 9px;font-weight:900;font-size:12px;overflow:hidden;text-overflow:ellipsis}.v85-item-price{display:grid;gap:4px;text-align:right}.v85-item-price span{color:#64748b;font-weight:850}.v85-item-price strong{font-size:19px}.v85-qty{display:flex;gap:6px;align-items:center}.v85-qty form{margin:0}.v85-qty .qty-btn{width:42px;height:42px;min-height:42px;padding:0;margin:0;font-size:22px;border-radius:13px}.v85-note{grid-column:1/-1;display:grid;grid-template-columns:1fr 90px;gap:8px;margin:0}.v85-note input{min-height:44px}.v85-note button{margin:0}.v85-bottom-pay{position:sticky;bottom:0;background:white;border-top:1px solid #eef2f7;margin:18px -24px -24px;padding:16px 24px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.v85-bottom-pay form{display:grid;grid-template-columns:1fr 130px;gap:8px;margin:0}.v85-bottom-pay button{margin:0}.v85-empty-state{margin-top:0;background:linear-gradient(135deg,#111827,#020617);color:white}.v85-empty-state p{color:#cbd5e1;font-weight:800}.v85-open-orders{margin-top:18px}.v85-products .panel-head,.v85-tables .panel-head{position:sticky;top:-24px;background:white;z-index:2;padding-top:4px}.v85-cat-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:10px;margin-bottom:12px}.v85-cat-tabs a{white-space:nowrap;text-decoration:none;color:#334155;background:#f1f5f9;border:1px solid #e5e7eb;border-radius:999px;padding:10px 13px;font-weight:950}.v85-cat-tabs a.active{background:linear-gradient(135deg,#f97316,#ea580c);color:white;border-color:transparent}.v85-product-grid{display:grid;grid-template-columns:1fr;gap:10px}.v85-product-card{margin:0}.v85-product-card button{margin:0;width:100%;min-height:88px;text-align:left;border-radius:20px;background:white;color:#0f172a;border:1px solid #e5e7eb;box-shadow:0 8px 22px rgba(15,23,42,.05);display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:14px}.v85-product-card button:hover{border-color:#fb923c;background:#fff7ed;transform:translateY(-1px)}.v85-product-card b{font-size:16px;line-height:1.15;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v85-product-card span{grid-column:1/2;color:#64748b;font-size:12px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v85-product-card strong{grid-row:1/3;grid-column:2/3;color:#ea580c;font-size:16px;white-space:nowrap}.v85-empty{padding:18px;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:900;text-align:center}.badge-soft{display:inline-flex;align-items:center;background:#fff7ed;color:#ea580c;border-radius:999px;padding:8px 12px;font-weight:950;font-size:12px;white-space:nowrap}
@media(max-width:1280px){.adisyon-v85{grid-template-columns:220px minmax(0,1fr) 320px;gap:14px}.v85-items article{grid-template-columns:1fr}.v85-item-price{text-align:left;grid-template-columns:1fr auto}.v85-qty{display:grid;grid-template-columns:1fr 1fr 1fr}.v85-qty .mini-btn{width:100%;margin:0}.v85-note{grid-template-columns:1fr}}
@media(max-width:1100px){.adisyon-v85{grid-template-columns:1fr}.v85-tables,.v85-products{position:relative;top:auto;max-height:none;overflow:visible}.v85-table-list{grid-template-columns:repeat(2,minmax(0,1fr))}.v85-products{order:2}.v85-center{order:1}.v85-tables{order:0}.v85-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v85-bottom-pay{position:relative;margin:18px 0 0;padding:14px 0 0}.v85-products .panel-head,.v85-tables .panel-head{position:relative;top:auto}}
@media(max-width:640px){.adisyon-v85{gap:12px;margin-top:14px}.v85-table-list,.v85-product-grid{grid-template-columns:1fr}.v85-adisyon-head{display:block}.v85-adisyon-head strong{display:block;margin-top:8px;font-size:30px}.v85-action-strip,.v85-bottom-pay{grid-template-columns:1fr}.v85-bottom-pay form{grid-template-columns:1fr}.v85-items article{padding:12px;border-radius:18px}.v85-product-card button{min-height:78px}.v85-cat-tabs{margin-left:-4px;margin-right:-4px}.v85-tables,.v85-products,.v85-adisyon-card,.v85-open-orders,.v85-empty-state{padding:18px;border-radius:22px}.v85-item-title b{white-space:normal}.v85-product-card b{white-space:normal}.order-card{grid-template-columns:1fr!important}}


/* v8.6 - Million dollar premium adisyon UX */
.adisyon-v86{display:grid;gap:18px;margin-top:22px;max-width:100%;min-width:0}.v86-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px;border-radius:30px;background:radial-gradient(circle at 20% 20%,rgba(251,146,60,.34),transparent 34%),linear-gradient(135deg,#0f172a,#020617);color:#fff;box-shadow:0 26px 70px rgba(2,6,23,.22)}.v86-hero h2{font-size:34px;letter-spacing:-.04em;margin:6px 0}.v86-hero p{margin:0;color:#cbd5e1;font-weight:800;max-width:720px}.v86-kicker{display:inline-flex;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:8px 12px;color:#fed7aa;font-weight:950;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.v86-total-chip{min-width:190px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:16px;text-align:right;backdrop-filter:blur(12px)}.v86-total-chip span{display:block;color:#cbd5e1;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.v86-total-chip strong{display:block;font-size:32px;margin-top:4px;color:#fff}.v86-table-rail{padding:16px 18px;border-radius:26px}.v86-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.v86-section-title b{font-size:18px}.v86-section-title span{color:#64748b;font-weight:850;font-size:13px}.v86-table-scroll{display:flex;gap:10px;overflow:auto;padding:2px 2px 8px;scrollbar-width:thin}.v86-table-pill{flex:0 0 158px;text-decoration:none;color:#0f172a;background:#f8fafc;border:1px solid #e5e7eb;border-radius:22px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05);transition:.15s ease}.v86-table-pill:hover,.v86-table-pill.active{transform:translateY(-1px);border-color:#f97316;background:#fff7ed;box-shadow:0 14px 28px rgba(249,115,22,.13)}.v86-table-pill.busy{background:#fff7ed;border-color:#fb923c}.v86-table-pill.reserved{background:#f8fafc;border-color:#94a3b8}.v86-table-pill span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;font-weight:950;letter-spacing:.05em}.v86-table-pill b{display:block;margin:5px 0;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v86-table-pill em{font-style:normal;color:#ea580c;font-weight:950}.v86-call-strip{display:flex;align-items:center;gap:10px;overflow:auto;border-radius:24px;background:#fff7ed;border-color:#fed7aa}.v86-call-strip b{color:#9a3412;white-space:nowrap}.v86-call-strip span{white-space:nowrap;background:#fff;border-radius:999px;padding:8px 12px;color:#9a3412;font-weight:900}.v86-workspace{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px;align-items:start}.v86-ticket,.v86-products{border-radius:30px;overflow:hidden}.v86-products{position:sticky;top:22px;max-height:calc(100vh - 44px);overflow:auto;scrollbar-width:thin}.v86-ticket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:1px solid #eef2f7}.v86-ticket-head h2{font-size:32px;letter-spacing:-.04em;margin:6px 0}.v86-ticket-head>strong{font-size:36px;color:#ea580c;white-space:nowrap}.v86-ticket-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 16px}.v86-ticket-actions form{margin:0}.v86-ticket-actions button{width:100%;min-height:50px;margin:0;border-radius:18px}.v86-items{display:grid;gap:12px}.v86-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:24px;padding:14px}.v86-item-main{display:grid;gap:5px;min-width:0}.v86-item-main b{font-size:18px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v86-item-main span{color:#64748b;font-weight:850}.v86-item-main small{width:max-content;max-width:100%;background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 9px;font-weight:900;font-size:12px;overflow:hidden;text-overflow:ellipsis}.v86-item-row>strong{font-size:20px;white-space:nowrap}.v86-qty-box{display:flex;gap:6px}.v86-qty-box form{margin:0}.v86-qty-box .qty-btn{width:44px;height:44px;min-height:44px;padding:0;margin:0;font-size:23px;border-radius:15px}.v86-note-line{grid-column:1/-1;display:grid;grid-template-columns:1fr 100px;gap:8px;margin:0}.v86-note-line input{min-height:46px;background:white}.v86-note-line button{margin:0}.v86-paybar{position:sticky;bottom:0;z-index:5;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid #eef2f7;margin:18px -24px -24px;padding:16px 24px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.v86-paybar form{display:grid;grid-template-columns:1fr 150px;gap:8px;margin:0}.v86-paybar button{margin:0;border-radius:16px}.v86-paybar .pay{background:linear-gradient(135deg,#16a34a,#15803d)!important}.v86-empty-ticket{min-height:420px;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at 50% 0,rgba(251,146,60,.18),transparent 36%),#f8fafc;border:1px dashed #cbd5e1;border-radius:28px;padding:28px}.v86-empty-ticket h2{font-size:32px;margin:0 0 8px;letter-spacing:-.04em}.v86-empty-ticket p{color:#64748b;font-weight:850;max-width:460px;margin:0 auto 14px}.v86-empty-ticket span{display:inline-flex;justify-self:center;background:#fff7ed;color:#ea580c;border-radius:999px;padding:10px 14px;font-weight:950}.v86-products-head{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}.v86-products-head h2{margin:0;font-size:24px}.v86-products-head span{color:#64748b;font-weight:850}.v86-products-head input{height:50px;border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;font-size:16px}.v86-cat-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:10px;margin-bottom:12px}.v86-cat-tabs a{white-space:nowrap;text-decoration:none;color:#334155;background:#f1f5f9;border:1px solid #e5e7eb;border-radius:999px;padding:10px 13px;font-weight:950}.v86-cat-tabs a.active{background:linear-gradient(135deg,#f97316,#ea580c);color:white;border-color:transparent}.v86-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v86-product-card{margin:0;min-width:0}.v86-product-card button{position:relative;overflow:hidden;margin:0;width:100%;min-height:112px;text-align:left;border-radius:24px;background:#fff;color:#0f172a;border:1px solid #e5e7eb;box-shadow:0 10px 24px rgba(15,23,42,.06);display:grid;gap:6px;padding:15px;transition:.15s ease}.v86-product-card button:hover{transform:translateY(-1px);border-color:#fb923c;background:#fff7ed;box-shadow:0 18px 34px rgba(249,115,22,.14)}.v86-product-card span{color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v86-product-card b{font-size:16px;line-height:1.15;letter-spacing:-.02em;min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.v86-product-card strong{color:#ea580c;font-size:18px;align-self:end}.v86-empty-box{padding:20px;border-radius:22px;background:#f8fafc;color:#64748b;font-weight:900;text-align:center}.v86-open-orders{border-radius:28px}.adisyon-v86 .order-card{border-radius:18px}
@media(max-width:1380px){.v86-workspace{grid-template-columns:minmax(0,1fr) 360px}.v86-product-grid{grid-template-columns:1fr}.v86-item-row{grid-template-columns:1fr auto}.v86-qty-box{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr}.v86-qty-box .mini-btn{width:100%}.v86-item-main b{white-space:normal}}
@media(max-width:1100px){.v86-workspace{grid-template-columns:1fr}.v86-products{position:relative;top:auto;max-height:none;order:-1}.v86-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v86-paybar{position:relative;margin:18px 0 0;padding:14px 0 0}.v86-hero{align-items:flex-start}.v86-total-chip{text-align:left}}
@media(max-width:720px){.adisyon-v86{gap:12px;margin-top:14px}.v86-hero{display:grid;padding:20px;border-radius:24px}.v86-hero h2{font-size:28px}.v86-total-chip{width:100%;min-width:0}.v86-table-rail,.v86-ticket,.v86-products,.v86-open-orders{padding:16px;border-radius:22px}.v86-table-pill{flex-basis:136px}.v86-ticket-head{display:grid}.v86-ticket-head>strong{font-size:32px}.v86-ticket-actions,.v86-paybar{grid-template-columns:1fr}.v86-paybar form,.v86-note-line{grid-template-columns:1fr}.v86-product-grid{grid-template-columns:1fr}.v86-product-card button{min-height:86px}.v86-item-row{grid-template-columns:1fr}.v86-item-row>strong{font-size:22px}.v86-call-strip{display:grid}.v86-call-strip span{white-space:normal}.v86-empty-ticket{min-height:300px}.v86-empty-ticket h2{font-size:26px}.v86-section-title{display:grid;gap:3px}.v86-ticket-head h2{font-size:28px}}


/* v9.1 POS Elite - masalar -> adisyon akışı */
.elite-page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-top:24px;background:linear-gradient(135deg,#111827,#020617);color:#fff;border-radius:30px;padding:28px;box-shadow:0 24px 70px rgba(15,23,42,.18)}
.elite-page-head span{color:#fdba74;font-weight:950}.elite-page-head h2{font-size:42px;margin:5px 0}.elite-page-head p{margin:0;color:#cbd5e1}.elite-add-table{display:grid;grid-template-columns:220px 130px;gap:10px;align-items:end}.elite-add-table input{height:54px}.elite-add-table button{margin:0;height:54px}.elite-table-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.elite-table-tabs button{width:auto;margin:0;background:#fff;color:#0f172a;border:1px solid #e5e7eb;padding:13px 18px;box-shadow:0 8px 25px rgba(15,23,42,.06)}.elite-table-tabs button.active{background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;border-color:transparent}.elite-table-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:18px}.elite-table-card{background:#151a23;color:white;border-radius:24px;overflow:hidden;box-shadow:0 18px 55px rgba(15,23,42,.16);border:2px solid transparent}.elite-table-card.empty{background:linear-gradient(135deg,#111827,#1f2937)}.elite-table-card.busy{background:linear-gradient(135deg,#7c2d12,#ea580c);border-color:#fdba74}.elite-table-card.reserved{background:linear-gradient(135deg,#334155,#0f172a);border-color:#94a3b8}.elite-table-main{display:block;color:white;text-decoration:none;padding:24px;min-height:175px}.elite-table-top{display:flex;justify-content:space-between;gap:12px}.elite-table-top span{background:rgba(255,255,255,.14);padding:8px 12px;border-radius:999px;font-weight:950}.elite-table-top b{color:#fff}.elite-table-card h3{font-size:34px;margin:28px 0 8px}.elite-table-card p{margin:0;color:#e5e7eb;font-weight:800}.elite-table-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:rgba(255,255,255,.08)}.elite-table-actions form{margin:0}.elite-table-actions .mini-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;text-decoration:none}.elite-table-actions .open{background:#fff!important;color:#111827!important}.elite-table-actions .reserve{background:#f59e0b!important}.elite-table-actions .clear{background:#334155!important}.elite-lock{grid-column:1/-1;background:#fff7ed;color:#9a3412;border-radius:13px;padding:11px;text-align:center;font-weight:950}
.pos-elite{margin:-12px -8px 0}.pos-topbar{display:grid;grid-template-columns:150px minmax(220px,1fr) 180px;gap:12px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:10px;box-shadow:0 10px 35px rgba(15,23,42,.06)}.pos-back,.pos-table-name{height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#f8fafc;color:#111827;text-decoration:none;font-weight:950}.pos-search{height:54px;border:1px solid #e5e7eb;border-radius:16px;display:flex;align-items:center;gap:10px;padding:0 16px}.pos-search span{font-size:28px;color:#64748b}.pos-search input{border:0;padding:0;min-height:auto}.pos-shell{display:grid;grid-template-columns:180px minmax(0,1fr) 410px;gap:14px;margin-top:14px;min-height:calc(100vh - 160px)}.pos-cats{background:#fff;border-radius:24px;padding:12px;box-shadow:0 12px 42px rgba(15,23,42,.08);display:grid;align-content:start;gap:10px;max-height:calc(100vh - 145px);overflow:auto}.pos-cat{display:grid;place-items:center;text-align:center;gap:8px;min-height:105px;border-radius:18px;color:#111827;text-decoration:none;background:#f8fafc;border:2px solid transparent;font-weight:950}.pos-cat strong{font-size:30px;background:linear-gradient(135deg,#22c55e,#06b6d4);color:#fff;border-radius:16px;min-width:70px;height:50px;display:grid;place-items:center;text-shadow:0 2px 8px rgba(0,0,0,.22)}.pos-cat.active{border-color:#f97316;background:#fff7ed}.pos-cat.active strong{background:linear-gradient(135deg,#f97316,#ea580c)}.pos-products{background:#fff;border-radius:24px;padding:18px;box-shadow:0 12px 42px rgba(15,23,42,.08);min-width:0}.pos-products-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px}.pos-product{margin:0}.pos-product button{margin:0;width:100%;height:128px;border-radius:20px;text-align:left;padding:16px;background:linear-gradient(135deg,#1f2937,#111827);box-shadow:0 14px 35px rgba(15,23,42,.16);display:flex;flex-direction:column;justify-content:space-between}.pos-product span{font-size:12px;color:#fdba74;text-transform:uppercase}.pos-product b{font-size:19px;color:white;line-height:1.15}.pos-product strong{font-size:18px;color:#fff}.pos-ticket{background:#fff;border-radius:24px;box-shadow:0 12px 42px rgba(15,23,42,.08);display:flex;flex-direction:column;min-width:0;overflow:hidden}.pos-ticket-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid #eef2f7}.pos-ticket-head span{font-weight:950;color:#64748b}.pos-ticket-head h2{margin:4px 0 0;font-size:24px}.pos-ticket-head b{font-size:13px;background:#f1f5f9;border-radius:999px;padding:9px 12px}.pos-ticket-items{padding:14px;display:grid;gap:12px;overflow:auto;max-height:calc(100vh - 390px)}.pos-ticket-item{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:10px}.pos-ticket-item div b{display:block;font-size:16px}.pos-ticket-item div span{display:block;color:#64748b;font-weight:850;margin-top:4px}.pos-ticket-item em{display:inline-flex;margin-top:6px;background:#ffedd5;color:#9a3412;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:900}.pos-item-actions{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:8px}.pos-item-actions form{margin:0}.pos-item-actions button,.pos-note button{margin:0;min-height:38px;padding:8px;border-radius:12px;background:#111827}.pos-item-actions .danger{background:#991b1b}.pos-note{grid-column:1/-1;display:grid;grid-template-columns:1fr 44px;gap:8px;margin:0}.pos-note input{min-height:42px}.pos-total{margin-top:auto;border-top:1px solid #eef2f7;padding:18px;display:flex;align-items:center;justify-content:space-between}.pos-total span{font-weight:950;color:#64748b}.pos-total strong{font-size:34px;color:#ea580c}.pos-bottom-actions{padding:0 14px 14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.pos-bottom-actions form{margin:0}.pos-bottom-actions button,.pos-bottom-actions a{margin:0;min-height:54px;border-radius:15px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:950}.pos-bottom-actions select{min-height:46px;margin-bottom:8px}.pos-bottom-actions .kitchen{background:#111827}.pos-bottom-actions .pay{background:linear-gradient(135deg,#16a34a,#15803d)}.pos-bottom-actions .cancel{background:#fee2e2;color:#991b1b}.pos-bottom-actions .print{background:#f1f5f9;color:#111827}.pos-ticket-empty,.pos-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:20px;padding:20px;text-align:center;color:#64748b;font-weight:900}.pos-ticket-empty.big{margin:18px}.cancel.full{margin:18px;background:#f1f5f9;color:#111827;border-radius:16px;min-height:54px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:950}
@media(max-width:1350px){.elite-table-grid{grid-template-columns:repeat(3,1fr)}.pos-shell{grid-template-columns:150px minmax(0,1fr) 360px}.pos-products-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.elite-page-head{display:block}.elite-add-table{margin-top:16px;grid-template-columns:1fr}.elite-table-grid{grid-template-columns:repeat(2,1fr)}.pos-topbar{grid-template-columns:1fr}.pos-shell{grid-template-columns:1fr}.pos-cats{grid-auto-flow:column;grid-auto-columns:125px;overflow:auto;max-height:none}.pos-cat{min-height:95px}.pos-ticket{order:-1}.pos-ticket-items{max-height:none}.pos-products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.elite-page-head{padding:20px;border-radius:24px}.elite-page-head h2{font-size:32px}.elite-table-grid{grid-template-columns:1fr}.elite-table-actions{grid-template-columns:1fr}.pos-elite{margin:0}.pos-products-grid{grid-template-columns:1fr 1fr;gap:10px}.pos-products,.pos-ticket,.pos-cats{border-radius:18px;padding:10px}.pos-product button{height:112px;padding:13px}.pos-product b{font-size:16px}.pos-bottom-actions{grid-template-columns:1fr}.pos-ticket-head{display:block}.pos-total strong{font-size:28px}}


/* KDSoft v10 Premium Product Manager */
.product-pro{display:grid;gap:18px}
.product-hero{border-radius:32px;padding:28px;background:linear-gradient(135deg,#0f172a,#111827 52%,#fb923c);color:#fff;display:flex;justify-content:space-between;gap:18px;align-items:end;box-shadow:0 22px 60px rgba(15,23,42,.18)}
.product-hero span,.form-title span{display:inline-flex;font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.75;font-weight:800}
.product-hero h2{font-size:42px;line-height:1;margin:8px 0}.product-hero p{max-width:620px;color:rgba(255,255,255,.78);margin:0}
.product-stats{display:grid;grid-template-columns:repeat(3,110px);gap:10px}.product-stats article{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:16px;text-align:center;backdrop-filter:blur(12px)}.product-stats b{font-size:28px;display:block}.product-stats small{opacity:.76}
.product-layout{display:grid;grid-template-columns:310px 1fr;gap:18px;align-items:start}.product-side,.product-main{display:grid;gap:16px}
.pro-card{background:#fff;border:1px solid #e5e7eb;border-radius:26px;padding:18px;box-shadow:0 14px 40px rgba(15,23,42,.06)}.pro-card h3{margin:0 0 14px}
.compact-form{display:grid;gap:10px}.compact-form label,.product-form-grid label{font-size:12px;font-weight:800;color:#64748b;display:grid;gap:7px}
.compact-form input,.product-form-grid input,.product-form-grid select,.product-search input,.inline-edit input,.inline-edit select,.product-edit input,.product-edit select{width:100%;border:1px solid #e5e7eb;background:#f8fafc;border-radius:14px;padding:12px 13px;outline:none;font-weight:700}
.primary-btn,.product-search button,.soft-btn{border:0;border-radius:15px;padding:12px 16px;background:#fb923c;color:#111827;font-weight:900;cursor:pointer;text-align:center}.soft-btn{background:#111827;color:#fff;text-decoration:none}
.mini-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.mini-head h3{margin:0}.mini-head a{font-weight:800;color:#fb923c}
.cat-row{border:1px solid #edf2f7;border-radius:18px;padding:10px;margin-top:9px;background:#fbfdff}.cat-row summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:900}.cat-row summary a{color:#111827}.cat-row summary span{background:#111827;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px}.inline-edit{display:grid;gap:8px;margin-top:10px}.inline-edit button,.delete-line button,.delete-product button{border:0;border-radius:12px;padding:10px;background:#111827;color:#fff;font-weight:800}.delete-line button,.delete-product button{background:#fee2e2;color:#991b1b;width:100%;margin-top:8px}.muted{color:#64748b}
.product-add{padding:22px}.form-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.form-title h3{font-size:26px;margin:4px 0 0}
.product-form-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.product-form-grid label{grid-column:span 2}.product-form-grid .wide{grid-column:span 3}.upload-box{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:18px;padding:15px;cursor:pointer}.upload-box input{display:none}.upload-box strong{font-size:15px;color:#111827}.upload-box small{color:#64748b}
.product-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.product-search{display:flex;gap:8px;flex:1}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:26px;overflow:hidden;box-shadow:0 14px 34px rgba(15,23,42,.06);display:flex;flex-direction:column}.product-img{height:155px;background:linear-gradient(135deg,#111827,#334155);display:grid;place-items:center;color:#fff;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-img span{width:68px;height:68px;border-radius:22px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-weight:1000;font-size:24px}
.product-info{padding:15px;display:grid;gap:8px}.product-info span{font-size:12px;font-weight:900;color:#fb923c}.product-info h3{margin:0;font-size:19px}.product-info p{margin:0;color:#64748b;min-height:20px}.product-info div{display:flex;justify-content:space-between;gap:8px;align-items:center}.product-info b{font-size:20px}.product-info em{font-style:normal;background:#f1f5f9;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900;color:#475569}
.product-edit{border-top:1px solid #eef2f7;padding:12px 15px}.product-edit summary{cursor:pointer;font-weight:900;color:#111827}.product-edit form{display:grid;gap:9px;margin-top:10px}.product-edit .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mini-upload{border:1px dashed #cbd5e1;border-radius:14px;padding:10px;font-size:12px;font-weight:900;color:#64748b}.mini-upload input{padding:8px;margin-top:6px}.empty-products{grid-column:1/-1;text-align:center;padding:40px}
@media(max-width:1050px){.product-hero{display:block}.product-stats{grid-template-columns:repeat(3,1fr);margin-top:18px}.product-layout{grid-template-columns:1fr}.product-form-grid{grid-template-columns:1fr 1fr}.product-form-grid label,.product-form-grid .wide{grid-column:span 1}}
@media(max-width:640px){.product-hero{border-radius:24px;padding:22px}.product-hero h2{font-size:32px}.product-stats{grid-template-columns:1fr 1fr 1fr}.product-stats article{padding:12px}.product-stats b{font-size:22px}.form-title{display:grid}.form-title .primary-btn{width:100%}.product-form-grid{grid-template-columns:1fr}.product-toolbar{display:grid}.product-search{display:grid}.product-grid{grid-template-columns:1fr}.product-img{height:190px}}


/* KDSoft v10 Ultra Premium Product & Category Studio */
.pm-shell{display:grid;gap:18px}
.pm-hero{position:relative;overflow:hidden;border-radius:34px;padding:30px;background:
 radial-gradient(circle at 12% 0%,rgba(251,146,60,.55),transparent 34%),
 radial-gradient(circle at 100% 0%,rgba(59,130,246,.32),transparent 32%),
 linear-gradient(135deg,#020617,#111827 58%,#1e293b);color:white;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:end;box-shadow:0 24px 70px rgba(2,6,23,.22)}
.pm-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:280px;height:280px;background:rgba(255,255,255,.08);border-radius:999px;filter:blur(2px)}
.pm-hero-copy{position:relative;z-index:1}.pm-kicker,.pm-create-head span,.pm-list-head span,.pm-panel-title span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:950;color:#fb923c}
.pm-hero h2{font-size:clamp(32px,4vw,52px);line-height:.95;margin:9px 0 12px}.pm-hero p{margin:0;color:rgba(255,255,255,.76);max-width:680px;font-size:15px}
.pm-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,118px);gap:10px}.pm-metrics article{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);backdrop-filter:blur(14px);border-radius:22px;padding:17px;text-align:center}.pm-metrics small{display:block;color:rgba(255,255,255,.7);font-size:11px;font-weight:800}.pm-metrics b{font-size:30px;line-height:1.1;display:block;margin-top:5px}
.pm-tabs{display:flex;gap:10px;overflow:auto;padding:4px 2px 7px;scrollbar-width:none}.pm-tabs::-webkit-scrollbar{display:none}.pm-tabs a{white-space:nowrap;border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:11px 15px;color:#334155;font-weight:900;box-shadow:0 8px 24px rgba(15,23,42,.05)}.pm-tabs a.active{background:#111827;color:#fff;border-color:#111827}.pm-tabs em{font-style:normal;margin-left:7px;background:rgba(251,146,60,.18);color:#fb923c;border-radius:999px;padding:3px 7px;font-size:11px}
.pm-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:start}.pm-left,.pm-right{display:grid;gap:16px}.pm-panel{background:rgba(255,255,255,.94);border:1px solid #e5e7eb;border-radius:28px;padding:18px;box-shadow:0 18px 44px rgba(15,23,42,.07)}
.pm-quick{padding:0;overflow:hidden}.pm-quick>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:42px 1fr;gap:10px;padding:17px 18px;align-items:center}.pm-quick>summary::-webkit-details-marker{display:none}.pm-quick>summary span{width:42px;height:42px;border-radius:16px;background:#111827;color:#fff;display:grid;place-items:center;font-size:22px}.pm-quick>summary b{font-size:18px}.pm-quick>summary small{grid-column:2;color:#64748b;margin-top:-8px}.pm-quick .pm-form{padding:0 18px 18px}
.pm-form,.pm-edit-form{display:grid;gap:11px}.pm-form label,.pm-edit-form label,.pm-field{font-size:12px;font-weight:950;color:#64748b;display:grid;gap:7px}.pm-form input,.pm-edit-form input,.pm-edit-form select,.pm-field input,.pm-field select,.pm-search input{width:100%;border:1px solid #e5e7eb;background:#f8fafc;border-radius:16px;padding:13px 14px;outline:none;color:#111827;font-weight:850;transition:.18s}.pm-form input:focus,.pm-edit-form input:focus,.pm-edit-form select:focus,.pm-field input:focus,.pm-field select:focus,.pm-search input:focus{border-color:#fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.12);background:#fff}
.pm-primary,.pm-save-big,.pm-search button{border:0;border-radius:16px;background:linear-gradient(135deg,#fb923c,#f97316);color:#111827;font-weight:1000;padding:13px 16px;cursor:pointer;box-shadow:0 13px 26px rgba(249,115,22,.22)}.pm-primary:active,.pm-save-big:active,.pm-search button:active{transform:translateY(1px)}
.pm-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pm-panel-title h3{margin:4px 0 0;font-size:20px}.pm-panel-title a{font-weight:900;color:#fb923c}
.pm-category-list{display:grid;gap:10px}.pm-category{border:1px solid #edf2f7;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fafc);overflow:hidden}.pm-category>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;padding:13px}.pm-category>summary::-webkit-details-marker{display:none}.pm-category>summary a{display:grid;color:#111827}.pm-category>summary b{font-size:15px}.pm-category>summary small{color:#64748b;margin-top:3px}.pm-category>summary span{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:1000}.pm-category>summary span.on{background:#dcfce7;color:#166534}.pm-category>summary span.off{background:#fee2e2;color:#991b1b}.pm-category .pm-edit-form{padding:0 13px 13px}
.pm-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pm-danger-form{padding:0 13px 13px}.pm-danger-form button{width:100%;border:0;border-radius:15px;padding:12px;background:#fff1f2;color:#9f1239;font-weight:1000;cursor:pointer}.pm-empty-mini{border:1px dashed #cbd5e1;border-radius:20px;padding:18px;color:#64748b;text-align:center}
.pm-product-create{padding:0;overflow:hidden}.pm-create-form{padding:22px}.pm-create-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.pm-create-head h3{font-size:30px;margin:5px 0}.pm-create-head p{margin:0;color:#64748b}.pm-save-big{font-size:15px;padding:15px 22px;white-space:nowrap}
.pm-create-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.pm-field{grid-column:span 2}.pm-field.big{grid-column:span 3}.pm-field.wide,.pm-upload.wide{grid-column:span 3}.pm-upload{border:1px dashed #cbd5e1;background:linear-gradient(180deg,#f8fafc,#fff);border-radius:22px;padding:18px;cursor:pointer;display:grid;place-items:center;text-align:center;min-height:92px}.pm-upload input{display:none}.pm-upload span{font-size:28px}.pm-upload b{font-size:16px;color:#111827;margin-top:4px}.pm-upload small{color:#64748b;margin-top:3px}
.pm-list-head{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:15px 17px;box-shadow:0 12px 30px rgba(15,23,42,.05)}.pm-list-head h3{margin:4px 0 0;font-size:22px}.pm-search{display:flex;gap:9px;align-items:center;min-width:min(520px,100%)}.pm-search input{min-width:240px}.pm-search a{border-radius:16px;background:#111827;color:#fff;font-weight:1000;padding:13px 15px;text-decoration:none}
.pm-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:15px}.pm-product-card{background:#fff;border:1px solid #e5e7eb;border-radius:30px;overflow:hidden;box-shadow:0 18px 42px rgba(15,23,42,.07);display:flex;flex-direction:column;min-width:0}.pm-product-photo{height:170px;background:radial-gradient(circle at 20% 0%,#fb923c,#111827 55%);display:grid;place-items:center;position:relative;overflow:hidden}.pm-product-photo img{width:100%;height:100%;object-fit:cover}.pm-product-photo>span{width:76px;height:76px;border-radius:26px;background:rgba(255,255,255,.15);color:#fff;display:grid;place-items:center;font-size:27px;font-weight:1000;border:1px solid rgba(255,255,255,.18)}.pm-product-photo em{position:absolute;top:12px;right:12px;font-style:normal;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:1000;box-shadow:0 8px 20px rgba(0,0,0,.15)}.pm-product-photo em.active{background:#dcfce7;color:#166534}.pm-product-photo em.passive{background:#fee2e2;color:#991b1b}
.pm-product-body{padding:16px;display:grid;gap:8px}.pm-product-body small{color:#fb923c;font-weight:1000;text-transform:uppercase;letter-spacing:.05em}.pm-product-body h3{margin:0;font-size:20px;line-height:1.15}.pm-product-body p{margin:0;color:#64748b;min-height:38px}.pm-price-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.pm-price-row b{font-size:22px}.pm-price-row span{background:#f1f5f9;color:#475569;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:1000}
.pm-product-editor{border-top:1px solid #eef2f7;padding:13px 16px}.pm-product-editor>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-weight:1000;color:#111827}.pm-product-editor>summary::-webkit-details-marker{display:none}.pm-product-editor[open]>summary b{transform:rotate(180deg)}.pm-product-editor .pm-edit-form{margin-top:13px}.pm-mini-upload{border:1px dashed #cbd5e1;border-radius:16px;padding:12px;background:#f8fafc}.pm-mini-upload input{padding:8px;margin-top:6px}.pm-empty-products{text-align:center;padding:44px;grid-column:1/-1}.pm-empty-products h3{margin:0 0 8px}.pm-empty-products p{margin:0;color:#64748b}
@media(max-width:1180px){.pm-hero{grid-template-columns:1fr}.pm-metrics{grid-template-columns:repeat(4,1fr)}.pm-layout{grid-template-columns:1fr}.pm-left{grid-template-columns:1fr 1fr}.pm-category-list{max-height:460px;overflow:auto;padding-right:4px}}
@media(max-width:760px){.pm-hero{border-radius:26px;padding:23px}.pm-metrics{grid-template-columns:1fr 1fr}.pm-layout,.pm-left{grid-template-columns:1fr}.pm-create-head{display:grid}.pm-save-big{width:100%}.pm-create-grid{grid-template-columns:1fr}.pm-field,.pm-field.big,.pm-field.wide,.pm-upload.wide{grid-column:span 1}.pm-list-head{display:grid}.pm-search{display:grid;min-width:0}.pm-search input{min-width:0}.pm-products{grid-template-columns:1fr}.pm-two{grid-template-columns:1fr}.pm-product-photo{height:210px}.pm-tabs{margin-left:-4px;margin-right:-4px}}


/* KDSoft POS product image cards */
.pos-product button{overflow:hidden;position:relative;padding:0!important;display:grid!important;grid-template-rows:118px 1fr;height:205px!important;text-align:left!important;background:#fff!important;border:1px solid #e5e7eb!important;color:#111827!important;box-shadow:0 14px 34px rgba(15,23,42,.08)!important}
.pos-product-photo{height:118px;background:linear-gradient(135deg,#111827,#334155);display:grid;place-items:center;overflow:hidden}
.pos-product-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}
.pos-product-photo em{width:58px;height:58px;border-radius:20px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center;color:#fff;font-style:normal;font-weight:1000;font-size:20px}
.pos-product-meta{padding:12px;display:grid;gap:5px;min-width:0}
.pos-product-meta span{font-size:11px!important;color:#fb923c!important;font-weight:1000!important;text-transform:uppercase;letter-spacing:.04em}
.pos-product-meta b{font-size:16px!important;line-height:1.15!important;color:#111827!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-product-meta strong{font-size:18px!important;color:#111827!important;margin-top:2px}
.pos-product button:hover .pos-product-photo img{transform:scale(1.05)}
@media(max-width:640px){.pos-product button{height:178px!important;grid-template-rows:96px 1fr}.pos-product-photo{height:96px}.pos-product-meta{padding:10px}.pos-product-meta b{font-size:14px!important}.pos-product-meta strong{font-size:16px!important}}


/* KDSoft REAL premium POS cards override */
.pos-products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:16px!important;align-content:start}
.pos-product{display:block!important}
.pos-product button{height:270px!important;grid-template-rows:170px 1fr!important;border-radius:26px!important;padding:0!important;border:1px solid #e8edf5!important;background:#fff!important;box-shadow:0 18px 38px rgba(15,23,42,.09)!important;transition:.18s ease!important}
.pos-product button:hover{transform:translateY(-3px);box-shadow:0 24px 46px rgba(15,23,42,.14)!important}
.pos-product-photo{height:170px!important;padding:10px!important;background:#f8fafc!important}
.pos-product-photo img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:20px!important;box-shadow:0 10px 22px rgba(0,0,0,.10)}
.pos-product-photo em{width:72px!important;height:72px!important;border-radius:24px!important;font-size:24px!important;background:linear-gradient(135deg,#111827,#334155)!important}
.pos-product-meta{padding:14px 14px 16px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:8px!important}
.pos-product-meta span{font-size:11px!important;color:#f97316!important;font-weight:1000!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.pos-product-meta b{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;white-space:normal!important;line-height:1.18!important;font-size:18px!important;font-weight:1000!important;color:#0f172a!important;min-height:42px!important}
.pos-product-meta strong{margin-top:auto!important;font-size:24px!important;font-weight:1000!important;color:#ea580c!important}
@media(max-width:640px){
 .pos-products-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
 .pos-product button{height:235px!important;grid-template-rows:130px 1fr!important;border-radius:22px!important}
 .pos-product-photo{height:130px!important;padding:8px!important}
 .pos-product-photo img{border-radius:16px!important}
 .pos-product-meta{padding:10px 10px 12px!important}
 .pos-product-meta b{font-size:15px!important;min-height:36px!important}
 .pos-product-meta strong{font-size:20px!important}
}


/* KDSoft compact POS cards */
.pos-products-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:12px!important}
.pos-product button{height:168px!important;grid-template-rows:88px 1fr!important;border-radius:18px!important}
.pos-product-photo{height:88px!important;padding:6px!important}
.pos-product-photo img{border-radius:12px!important}
.pos-product-photo em{width:46px!important;height:46px!important;border-radius:14px!important;font-size:16px!important}
.pos-product-meta{padding:8px 9px 10px!important;gap:4px!important}
.pos-product-meta span{font-size:9px!important}
.pos-product-meta b{font-size:13px!important;min-height:28px!important;-webkit-line-clamp:2!important}
.pos-product-meta strong{font-size:16px!important;color:#ea580c!important}
@media(max-width:640px){
 .pos-products-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
 .pos-product button{height:156px!important;grid-template-rows:78px 1fr!important}
 .pos-product-photo{height:78px!important}
 .pos-product-meta b{font-size:12px!important}
 .pos-product-meta strong{font-size:15px!important}
}


/* KDSoft v11 Premium Category Images */
.pm-cat-upload{border:1px dashed #cbd5e1;background:linear-gradient(180deg,#f8fafc,#fff);border-radius:18px;padding:13px;display:grid;place-items:center;text-align:center;gap:4px;cursor:pointer;color:#111827}
.pm-cat-upload input{display:none}
.pm-cat-upload span{font-size:24px}.pm-cat-upload b{font-size:13px;font-weight:1000}.pm-cat-upload small{font-size:11px;color:#64748b;font-weight:800}.pm-cat-upload.mini{padding:10px;min-height:72px}
.pm-cat-title{display:grid!important;grid-template-columns:44px 1fr!important;column-gap:10px!important;align-items:center!important}
.pm-cat-title i{grid-row:1/3;width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,#111827,#334155);color:#fff;display:grid;place-items:center;font-style:normal;font-weight:1000;overflow:hidden;box-shadow:0 10px 20px rgba(15,23,42,.12)}
.pm-cat-title i img{width:100%;height:100%;object-fit:cover}
.pm-cat-title b,.pm-cat-title small{grid-column:2}
.pos-cat strong{overflow:hidden!important}
.pos-cat strong img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;border-radius:inherit!important}
.pos-cat.active strong img{filter:saturate(1.08) contrast(1.04)}
@media(max-width:1050px){.pm-cat-title{grid-template-columns:40px 1fr!important}.pm-cat-title i{width:40px;height:40px;border-radius:14px}}


/* KDSoft v12 Premium 80mm Receipt System */
.receipt-actions{grid-template-columns:1fr!important}
.pay-print-form{display:grid!important;gap:9px!important;background:#f8fafc!important;border:1px solid #e5e7eb!important;border-radius:18px!important;padding:10px!important}
.pay-print-form select{width:100%;border:1px solid #e5e7eb;border-radius:14px;padding:11px;background:#fff;font-weight:900}
.auto-print-check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:900;color:#475569}
.auto-print-check input{width:16px;height:16px;accent-color:#f97316}
.receipt-print-link{text-align:center;background:#111827!important;color:#fff!important;border-radius:15px!important;padding:13px!important;font-weight:1000!important;text-decoration:none!important}
.receipt-page{display:grid;place-items:start center;gap:18px;padding:8px 0 40px}
.receipt-toolbar{width:min(520px,100%);display:flex;gap:10px;justify-content:center;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:12px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.receipt-toolbar a,.receipt-toolbar button{border:0;border-radius:15px;padding:12px 14px;background:#111827;color:#fff;text-decoration:none;font-weight:1000;cursor:pointer}.receipt-toolbar button{background:#f97316;color:#111827}
.thermal-receipt{width:302px;background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:20px;padding:14px 13px;box-shadow:0 22px 60px rgba(15,23,42,.16);font-family:Arial,Helvetica,sans-serif}
.receipt-head{text-align:center}.receipt-head h1{font-size:19px;line-height:1.1;margin:0 0 6px;font-weight:1000;text-transform:uppercase}.receipt-head p{margin:2px 0;font-size:11px;color:#334155}
.receipt-line{border-top:1px dashed #111827;margin:10px 0}
.receipt-meta{display:grid;gap:5px}.receipt-meta div{display:flex;justify-content:space-between;gap:8px;font-size:11px}.receipt-meta span{color:#64748b}.receipt-meta b{text-align:right}
.receipt-items{width:100%;border-collapse:collapse}.receipt-items th{font-size:11px;text-align:left;border-bottom:1px solid #111827;padding:0 0 5px}.receipt-items th:nth-child(2),.receipt-items th:nth-child(3){text-align:right}.receipt-items td{vertical-align:top;padding:7px 0;border-bottom:1px dashed #cbd5e1;font-size:11px}.receipt-items td:nth-child(2),.receipt-items td:nth-child(3){text-align:right;white-space:nowrap}.receipt-items strong{display:block;font-size:12px;line-height:1.15}.receipt-items small{display:block;color:#64748b;margin-top:2px}.receipt-items em{display:block;font-style:normal;color:#ea580c;margin-top:2px}
.receipt-total{display:flex;justify-content:space-between;align-items:center;gap:10px}.receipt-total span{font-size:13px;font-weight:1000}.receipt-total strong{font-size:22px;font-weight:1000}
.receipt-footer{text-align:center;margin-top:12px}.receipt-footer p{font-size:12px;margin:0 0 5px;font-weight:800}.receipt-footer small{font-size:10px;color:#64748b}
@media print{
 @page{size:80mm auto;margin:0}
 html,body{width:80mm!important;background:#fff!important;margin:0!important;padding:0!important}
 body *{visibility:hidden!important}
 .thermal-receipt,.thermal-receipt *{visibility:visible!important}
 .thermal-receipt{position:absolute!important;left:0!important;top:0!important;width:80mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:4mm 3mm!important;margin:0!important;color:#000!important}
 .no-print,.sidebar,.topbar,.notice,.receipt-toolbar{display:none!important}
 .content{margin:0!important;padding:0!important}
 .receipt-page{display:block!important;padding:0!important}
 .receipt-head h1{font-size:16px!important}
 .receipt-items th,.receipt-items td,.receipt-meta div{font-size:10px!important}
 .receipt-total strong{font-size:18px!important}
}


/* KDSoft v12 thermal printer dark/readable fix */
.thermal-receipt{font-weight:700!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
.receipt-head h1{font-size:22px!important;font-weight:1000!important;letter-spacing:.4px!important;color:#000!important}
.receipt-head p,.receipt-meta div,.receipt-items td,.receipt-items th,.receipt-footer p{color:#000!important;font-weight:800!important}
.receipt-items strong{font-size:14px!important;font-weight:1000!important;color:#000!important}
.receipt-items small{font-size:12px!important;color:#000!important;font-weight:800!important}
.receipt-total span{font-size:15px!important;color:#000!important}
.receipt-total strong{font-size:27px!important;color:#000!important}
.receipt-line{border-top:2px dashed #000!important}

@media print{
 @page{size:80mm auto;margin:0!important}
 html,body{width:80mm!important;min-width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
 body{font-family:Arial,Helvetica,sans-serif!important;color:#000!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 body *{visibility:hidden!important}
 .thermal-receipt,.thermal-receipt *{visibility:visible!important}
 .thermal-receipt{
   position:absolute!important;
   left:0!important;
   top:0!important;
   width:74mm!important;
   min-width:74mm!important;
   max-width:74mm!important;
   margin:0!important;
   padding:2mm 3mm 3mm 3mm!important;
   border:0!important;
   border-radius:0!important;
   box-shadow:none!important;
   background:#fff!important;
   color:#000!important;
   font-size:13px!important;
   font-weight:800!important;
   transform:none!important;
 }
 .content,.receipt-page{display:block!important;margin:0!important;padding:0!important;width:80mm!important;min-width:80mm!important}
 .no-print,.sidebar,.topbar,.notice,.receipt-toolbar{display:none!important}
 .receipt-head{margin:0!important;padding:0!important;text-align:center!important}
 .receipt-head h1{font-size:19px!important;line-height:1.05!important;margin:0 0 2mm 0!important;font-weight:1000!important;color:#000!important}
 .receipt-head p{font-size:11px!important;line-height:1.15!important;margin:0!important;color:#000!important;font-weight:800!important}
 .receipt-line{border-top:1.6px dashed #000!important;margin:2mm 0!important}
 .receipt-meta{gap:1mm!important}
 .receipt-meta div{font-size:11.5px!important;line-height:1.15!important;color:#000!important;font-weight:850!important}
 .receipt-meta span{color:#000!important;font-weight:800!important}
 .receipt-meta b{color:#000!important;font-weight:1000!important}
 .receipt-items{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
 .receipt-items th{font-size:11px!important;color:#000!important;font-weight:1000!important;padding:0 0 1.5mm 0!important;border-bottom:1.4px solid #000!important}
 .receipt-items th:nth-child(1){width:47%!important}
 .receipt-items th:nth-child(2){width:20%!important;text-align:center!important}
 .receipt-items th:nth-child(3){width:33%!important;text-align:right!important}
 .receipt-items td{font-size:11.5px!important;line-height:1.15!important;color:#000!important;font-weight:850!important;padding:1.7mm 0!important;border-bottom:1px dashed #777!important}
 .receipt-items td:nth-child(2){text-align:center!important}
 .receipt-items td:nth-child(3){text-align:right!important;font-weight:1000!important}
 .receipt-items strong{font-size:13px!important;line-height:1.12!important;font-weight:1000!important;color:#000!important}
 .receipt-items small{font-size:10.5px!important;color:#000!important;font-weight:800!important}
 .receipt-items em{font-size:10px!important;color:#000!important;font-weight:800!important}
 .receipt-total{margin-top:1mm!important}
 .receipt-total span{font-size:14px!important;font-weight:1000!important;color:#000!important}
 .receipt-total strong{font-size:24px!important;font-weight:1000!important;color:#000!important}
 .receipt-footer{margin-top:3mm!important;text-align:center!important}
 .receipt-footer p{font-size:12px!important;font-weight:1000!important;color:#000!important;margin:0 0 1mm 0!important}
 .receipt-footer small{font-size:9px!important;color:#000!important;font-weight:800!important}
}

.print-hint{display:flex;align-items:center;color:#64748b;font-size:12px;font-weight:800;padding:0 8px}.receipt-toolbar{flex-wrap:wrap}


/* KDSoft v13 QR admin */
.qr-admin-page{display:grid;gap:18px}.qr-admin-hero{background:linear-gradient(135deg,#020617,#111827 60%,#fb923c);color:#fff;border-radius:32px;padding:26px;display:flex;justify-content:space-between;gap:18px;align-items:end;box-shadow:0 22px 60px rgba(15,23,42,.18)}.qr-admin-hero span{color:#fb923c;font-weight:1000;letter-spacing:.14em;text-transform:uppercase;font-size:12px}.qr-admin-hero h2{font-size:42px;margin:8px 0}.qr-admin-hero p{margin:0;color:rgba(255,255,255,.75)}.qr-admin-hero a{background:#fff;color:#111827;border-radius:16px;padding:13px 16px;text-decoration:none;font-weight:1000;white-space:nowrap}.qr-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.qr-admin-card{background:#fff;border:1px solid #e5e7eb;border-radius:26px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.06);display:grid;gap:12px}.qr-admin-card span{font-size:11px;color:#fb923c;font-weight:1000;text-transform:uppercase}.qr-admin-card h3{margin:4px 0 0;font-size:22px}.qr-admin-card code{background:#f8fafc;border:1px solid #e5e7eb;border-radius:15px;padding:12px;font-size:11px;overflow:auto}.qr-admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.qr-admin-actions a,.qr-admin-actions button{border:0;border-radius:14px;padding:12px;text-align:center;text-decoration:none;background:#111827;color:#fff;font-weight:1000;cursor:pointer}.qr-admin-actions button{background:#fb923c;color:#111827}@media(max-width:700px){.qr-admin-hero{display:grid}.qr-admin-hero h2{font-size:32px}.qr-admin-actions{grid-template-columns:1fr}}

/* KDSoft v15 auto print settings */
.settings-form{display:grid;gap:14px;margin-top:12px}.settings-form label{display:grid;gap:7px;color:#334155;font-weight:900}.settings-form input,.settings-form textarea{width:100%;border:1px solid #e5e7eb;border-radius:16px;padding:13px 14px;background:#f8fafc;color:#0f172a;font-weight:800;outline:none}.settings-form input:focus,.settings-form textarea:focus{border-color:#fb923c;background:#fff;box-shadow:0 0 0 4px rgba(251,146,60,.12)}.settings-form .auto-print-check{display:flex;align-items:center;gap:10px;background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:14px;color:#9a3412}.settings-form .auto-print-check input{width:auto}.muted{color:#64748b;font-size:13px;font-weight:800;line-height:1.5}
