@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,800&display=swap");

:root{
  --kp-bg:#eef2f7;
  --kp-card:#ffffff;
  --kp-text:#1f2937;
  --kp-muted:#7b8794;
  --kp-primary:#2f80ed;
  --kp-primary-dark:#1c64d1;
  --kp-sidebar:#1f2d3d;
  --kp-sidebar-2:#182433;
  --kp-border:#e6eaf0;
}

*{box-sizing:border-box}
body{margin:0;background:var(--kp-bg);font-size:14px;color:var(--kp-text);font-family:Arial, Helvetica, sans-serif}

.kp-shell{min-height:100vh;display:flex}
.kp-sidebar{width:260px;background:linear-gradient(180deg,var(--kp-sidebar),var(--kp-sidebar-2));color:#fff;position:fixed;left:0;top:0;bottom:0;z-index:30;overflow-y:auto;box-shadow:8px 0 24px rgba(15,23,42,.14)}
.kp-brand{height:72px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.kp-brand-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#3b82f6,#22c55e);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff}
.kp-brand-title{font-size:18px;font-weight:800;line-height:1}
.kp-brand-sub{font-size:12px;color:#b8c1ce;margin-top:3px}
.kp-menu-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8fa2b8;margin:18px 22px 8px}
.kp-menu{padding:0 12px 22px}
.kp-menu a{display:flex;align-items:center;gap:10px;color:#d7dee8;text-decoration:none;padding:10px 12px;border-radius:10px;margin:3px 0;font-weight:600}
.kp-menu a:hover{background:rgba(255,255,255,.08);color:#fff}

.kp-main{margin-left:260px;width:calc(100% - 260px);min-height:100vh}
.kp-topbar{height:72px;background:#fff;border-bottom:1px solid var(--kp-border);display:flex;align-items:center;gap:14px;padding:0 22px;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.kp-menu-btn{border:0;background:#f1f5f9;color:#0f172a;border-radius:10px;width:40px;height:40px;font-size:20px;display:none}
.kp-page-title{font-weight:800;font-size:18px}
.kp-page-sub{font-size:12px;color:var(--kp-muted)}
.kp-top-actions{margin-left:auto;display:flex;gap:8px}
.kp-content{padding:22px}

.kp-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.kp-card{background:var(--kp-card);border:1px solid var(--kp-border);border-radius:16px;padding:16px;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.kp-stat-card{background:#fff;border:1px solid var(--kp-border);border-radius:16px;padding:18px;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.table{white-space:nowrap}
.table thead th{color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--kp-border)}
.btn-xs{--bs-btn-padding-y:.12rem;--bs-btn-padding-x:.35rem;--bs-btn-font-size:.72rem}
.price-input{width:95px}.mini-input{width:55px}.tab-input{width:95px}
.actions{display:flex;gap:4px;align-items:center}

.item-icon-sm{width:34px;height:34px;object-fit:contain;border-radius:8px;background:#111827;padding:3px;border:1px solid rgba(255,255,255,.2)}
.item-icon-lg{width:58px;height:58px;object-fit:contain;border-radius:12px;background:#111827;padding:5px;border:1px solid #d4d9e1}
.item-edit-card{display:flex;gap:14px;align-items:flex-start}
.item-icon-wrap{flex:0 0 auto}
.item-edit-form{flex:1}

.kp-login-body{min-height:100vh;background:linear-gradient(145deg,#172033,#0b1220);display:flex;align-items:center;justify-content:center;padding:22px}
.kp-login-wrap{width:min(420px,92vw)}
.kp-login-card{background:#fff;border-radius:22px;padding:30px;box-shadow:0 18px 60px rgba(0,0,0,.28)}
.kp-login-logo{width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,#3b82f6,#22c55e);display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff;font-size:22px;margin-bottom:16px}
.kp-login-card h3{font-weight:900;margin:0}
.kp-login-card p{color:#64748b;margin-bottom:20px}

@media(max-width:992px){
  .kp-sidebar{transform:translateX(-100%);transition:.2s}
  .kp-sidebar.show{transform:translateX(0)}
  .kp-main{margin-left:0;width:100%}
  .kp-menu-btn{display:block}
}
@media(max-width:768px){
  body{font-size:13px}
  .kp-content{padding:14px}
  .kp-card{padding:12px;border-radius:14px}
  h4{font-size:18px}
  .table{font-size:12px}
  .price-input{width:82px}.tab-input{width:82px}
  .kp-top-actions .btn-outline-secondary{display:none}
  .item-edit-card{flex-direction:column}
}


/* V5 FixedPlus benzeri düzenlemeler */
body{font-family:"Montserrat",Arial,sans-serif;background:#f3f5f7;color:#575962}
.kp-sidebar{background:#263238;background-image:url('/static/theme/img/pattern.png');background-repeat:repeat}
.kp-brand{background:#263238;border-bottom:1px solid rgba(255,255,255,.08)}
.kp-brand-img{width:42px;height:42px;object-fit:contain}
.nav-profile{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.08)}
.nav-profile img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.profile-name{font-weight:700;color:#fff}
.profile-role{font-size:12px;color:#b6c1ca}
.kp-menu a{font-weight:500;border-left:3px solid transparent}
.kp-menu a:hover{border-left-color:#4b71fa;background:rgba(75,113,250,.14)}
.kp-topbar{box-shadow:0 2px 18px rgba(0,0,0,.06)}
.kp-card{border-radius:4px;border:0;box-shadow:0 2px 14px rgba(0,0,0,.06)}
.kp-page-head h4{font-weight:700;color:#263238}
.section-title{font-weight:700;color:#263238;margin-bottom:12px;text-transform:uppercase;font-size:13px;letter-spacing:.04em}
.stat-box{background:#fff;border-radius:4px;padding:18px;display:flex;align-items:center;gap:12px;box-shadow:0 2px 14px rgba(0,0,0,.06);border-left:4px solid #4b71fa;min-height:92px}
.stat-box .stat-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2ff;font-size:20px}
.stat-title{font-size:12px;color:#8b95a1;text-transform:uppercase;font-weight:600}
.stat-value{font-size:24px;font-weight:800;color:#263238;line-height:1.2}
.stat-box.green{border-left-color:#7bcb4d}.stat-box.green .stat-icon{background:#effbe8}
.stat-box.orange{border-left-color:#ffb22b}.stat-box.orange .stat-icon{background:#fff7e8}
.stat-box.purple{border-left-color:#7460ee}.stat-box.purple .stat-icon{background:#f1efff}
.stat-box.red{border-left-color:#f4516c}.stat-box.red .stat-icon{background:#fff0f3}
.stat-box.cyan{border-left-color:#36a3f7}.stat-box.cyan .stat-icon{background:#eaf6ff}
.mini-metric{background:#f8fafc;border:1px solid #edf1f5;border-radius:4px;padding:12px}
.mini-metric span{font-size:12px;color:#8b95a1;font-weight:600;text-transform:uppercase}
.mini-metric b{display:block;font-size:20px;margin:5px 0;color:#263238}
.dashboard-pattern{background:#263238;background-image:url('/static/theme/img/pattern.png');color:#dce4ec;border-radius:4px;padding:18px;font-weight:500}
.quick-links{display:grid;gap:8px}
.quick-links a{display:block;background:#f8fafc;border:1px solid #edf1f5;border-radius:4px;padding:10px 12px;text-decoration:none;color:#575962;font-weight:600}
.quick-links a:hover{background:#4b71fa;color:white}
.tab-filter-bar{display:flex;flex-wrap:wrap;gap:8px;background:#fff;border-radius:4px;padding:10px;box-shadow:0 2px 14px rgba(0,0,0,.06)}
.tab-pill{display:inline-flex;align-items:center;padding:7px 12px;border-radius:4px;border:1px solid #e5e9f0;color:#575962;text-decoration:none;font-weight:600;font-size:13px}
.tab-pill:hover,.tab-pill.active{background:#4b71fa;color:#fff;border-color:#4b71fa}
.tab-select{min-width:130px}
.item-icon-xl{width:72px;height:72px;object-fit:contain;border-radius:8px;background:#111827;padding:6px;border:1px solid #d4d9e1}
input[type=file].form-control-sm{font-size:12px}

@media(max-width:768px){
  .tab-filter-bar{overflow-x:auto;flex-wrap:nowrap}
  .tab-pill{white-space:nowrap}
  .stat-box{min-height:78px;padding:12px}
  .stat-value{font-size:20px}
}

.finance-card{background:#fff;border-radius:8px;padding:18px;text-align:center;box-shadow:0 2px 14px rgba(0,0,0,.06);min-height:86px}
.finance-title{font-size:12px;color:#64748b;margin-bottom:7px;font-weight:500}
.finance-value{font-size:22px;font-weight:800;line-height:1.2}
.finance-value.dark{color:#0f172a}.finance-value.green{color:#009a62}.finance-value.orange{color:#f59e0b}.finance-value.red{color:#dc2626}
@media(max-width:768px){.finance-value{font-size:18px}.finance-card{padding:14px}}


/* V7 SELL Pazar masaüstü program görünümü */
.compact-head{margin-bottom:8px}
.dash-add-bar,.dash-filter-bar{background:#fff;border-radius:8px;padding:10px;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.dash-add-form,.dash-filter-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.add-label,.filter-label{font-weight:700;color:#0f172a;white-space:nowrap}
.add-item{width:220px}.add-select{width:110px}.add-level{width:85px}.add-amount{width:65px}.add-price{width:110px}.add-button{width:82px}.tax-check{display:flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap}
.dash-filter-form select{width:auto;min-width:130px}.date-kind{min-width:85px!important}.date-input{width:150px}.table-search{margin-left:auto;max-width:220px}
.status-pills{display:flex;background:#9aa3ad;border-radius:5px;overflow:hidden}
.status-pills a{color:#fff;text-decoration:none;padding:6px 10px;font-weight:600;font-size:12px}
.status-pills a.active,.status-pills a:hover{background:#3b82f6;color:#fff}
.dash-table-wrap{background:#fff;border:1px solid #9ca3af;max-height:58vh;overflow:auto}
.dash-table{width:100%;border-collapse:collapse;font-size:12px;color:#003db5}
.dash-table thead{position:sticky;top:0;background:#f8fafc;z-index:2}
.dash-table th{padding:5px 8px;border-bottom:1px solid #b8c0ca;color:#25364d;font-weight:800;white-space:nowrap}
.dash-table td{padding:5px 8px;border-bottom:1px solid #e5e7eb;white-space:nowrap;vertical-align:middle}
.row-pazarda{background:#d7e9ff}.row-stokta{background:#fff}.row-satildi{background:#eef2f7}.group-row{background:#3b82f6!important;color:#fff}
.group-row td{border-bottom:1px solid #2b6fd6}.group-count{color:#fff;font-weight:700}.tree-toggle{border:0;background:transparent;color:inherit;font-size:14px}
.child-row{background:#f7fbff}
.child-edit-line{display:flex;align-items:center;gap:8px;padding:4px 6px}.row-edit-form,.row-inline-form{display:flex;align-items:center;gap:6px;margin:0}.row-inline-form{display:contents}
.status-chip{display:inline-block;min-width:80px}
.sell-bottom-actions{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.btn-purple{background:#8b5cf6;color:#fff}.btn-purple:hover{background:#7c3aed;color:#fff}
.btn-indigo{background:#6366f1;color:#fff}.btn-indigo:hover{background:#4f46e5;color:#fff}
.btn-violet{background:#7c3aed;color:#fff}.btn-violet:hover{background:#6d28d9;color:#fff}
@media(max-width:992px){.dash-table-wrap{max-height:none}.table-search{margin-left:0}.add-item{width:100%}.dash-add-form>*{flex:1 1 auto}.status-pills{overflow-x:auto}}


/* V7.2 Popup ve satır seçimi */
.row-clickable{cursor:pointer}
.row-clickable.row-selected td,
.child-row.row-selected td{outline:1px solid rgba(37,99,235,.55);background:#bcd7ff!important}
.group-row.group-selected{background:#2563eb!important}
.popup-selected{background:#f1f5f9;border-radius:8px;padding:10px;font-weight:700;color:#1e293b;margin-bottom:12px}
.kp-popup{border-radius:14px;border:0;box-shadow:0 18px 55px rgba(15,23,42,.25)}

.sold-dialog{max-width:452px}
.sold-content{border-radius:0;border:1px solid #b9c0ca;min-height:560px}
.sold-header{border-bottom:0;position:relative;padding-top:34px}
.sold-header .btn-close{position:absolute;right:16px;top:16px}
.sold-header h5{font-weight:800;color:#0f172a;font-size:16px}
.sold-subtitle{font-weight:800;color:#0f172a}
.sold-body{text-align:center;padding:10px 30px}
.sold-label{font-weight:700;color:#64748b;font-size:13px;margin-bottom:16px}
.sold-tabs{display:flex;border-radius:5px;overflow:hidden;background:#9aa3ad;margin-bottom:14px}
.sold-tab{border:0;flex:1;padding:8px;background:#9aa3ad;color:#fff;font-weight:600}
.sold-tab.active{background:#3b82f6}
.sold-info{background:#f1f5f9;border-radius:10px;padding:14px 18px;color:#64748b;font-size:12px;margin-bottom:22px}
.sold-field-label{display:block;color:#64748b;font-weight:700;font-size:13px;margin:12px 0 6px}
.sold-field-label small{font-weight:500}
.sold-input{max-width:200px;margin:0 auto;text-align:center;font-weight:700}
.sold-green{color:#00a65a;font-weight:800;font-size:12px;margin-top:10px}
.sold-tax{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;font-weight:700}
.sold-tax input{width:24px;height:24px;accent-color:#3b82f6}
.sold-footer{border-top:0;display:flex;gap:10px;padding:10px 30px 28px}
.sold-footer .btn{flex:1}

@media(max-width:768px){
  .sold-dialog{max-width:95vw;margin:10px auto}
  .sold-content{min-height:auto}
}


/* V7.3 filtre/date/selection */
.group-row{background:#d7e9ff!important;color:#003db5!important;font-weight:800}
.group-row td{border-bottom:1px solid #b8d7ff!important}
.group-row.group-selected,.group-row.row-selected{background:#bcd7ff!important;color:#003db5!important}
.tree-toggle{color:#003db5}
.date-popup-btn{min-width:150px;border:1px solid #d8dee8;background:#e5e7eb;color:#1f2937}
.date-dialog{max-width:720px}
.date-content{border-radius:8px;border:0}
.date-body{display:flex;gap:24px;position:relative;padding:28px 24px}
.date-close{position:absolute;right:18px;top:14px;border:0;background:#e5e7eb;width:32px;height:32px;border-radius:6px;font-size:20px}
.date-presets{width:190px;max-height:455px;overflow-y:auto;border-right:6px solid #8d8d8d;padding-right:18px}
.date-presets-title{font-weight:800;font-size:12px;margin:8px 0 16px;color:#0f172a}
.date-radio{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:14px;color:#0f172a}
.date-radio input{width:22px;height:22px;accent-color:#3b82f6}
.date-picker-panel{flex:1}
.date-picker-panel h5{font-size:16px;font-weight:800;margin-bottom:14px}
.calendar-pair{display:flex;gap:28px}
.calendar-box{width:230px}
.calendar-title{text-align:center;font-weight:800;margin:4px 0 14px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;text-align:center;font-size:13px}
.calendar-head{color:#64748b;font-size:11px}
.calendar-day{border:0;background:transparent;border-radius:6px;padding:4px;color:#0f172a}
.calendar-day:hover,.calendar-day.active{background:#3b82f6;color:#fff}
.calendar-day.muted{color:#cbd5e1}
.date-range-footer{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:28px}
.compare-check{display:flex;gap:8px;align-items:center;margin-right:8px}
.compare-check input{width:24px;height:24px}
.date-mini{width:120px;display:inline-block;margin-left:6px}
.date-note{font-size:11px;color:#64748b;margin-top:14px}
.date-actions{display:flex;justify-content:flex-end;gap:20px;margin-top:-10px}
@media(max-width:768px){
  .date-body{flex-direction:column}
  .date-presets{width:100%;border-right:0;border-bottom:4px solid #8d8d8d;max-height:180px}
  .calendar-pair{flex-direction:column}
  .calendar-box{width:100%}
}


/* V7.4 partial market/transfer/edit */
.group-row{background:#d7e9ff!important;color:#003db5!important;font-weight:800}
.group-row td{border-bottom:1px solid #b8d7ff!important}
.group-row.group-selected,.group-row.row-selected{background:#bcd7ff!important;color:#003db5!important}
.dash-table th:nth-child(7),.dash-table td:nth-child(7){font-weight:700}
.v74-note{font-size:11px;color:#64748b}


/* V7.5 SELL Pazar tablo renkleri / hizalama / otomatik kayıt */
.dash-table .group-count{
  color:#0047bd !important;
  background:rgba(255,255,255,.55);
  padding:2px 5px;
  border-radius:4px;
  font-weight:800;
}
.dash-table .row-pazarda td{
  background:#d7e9ff !important;
  color:#0047bd !important;
}
.dash-table .row-stokta td{
  background:#ffffff !important;
  color:#1f2937 !important;
}
.dash-table .row-satildi td{
  background:#dcfce7 !important;
  color:#166534 !important;
}
.dash-table .group-row td{
  font-weight:800 !important;
}
.dash-table .group-row.group-selected td,
.dash-table .row-selected td{
  background:#bcd7ff !important;
}
.profit-pos{
  color:#009a62 !important;
  font-weight:800;
}
.profit-neg{
  color:#dc2626 !important;
  font-weight:900;
}
.auto-save-input{
  min-width:76px;
}
.auto-save-input.saving{
  outline:2px solid #f59e0b;
}
.auto-save-input.saved{
  outline:2px solid #22c55e;
}
.auto-save-input.save-error{
  outline:2px solid #ef4444;
}
.dash-table td[data-cell="tax"],
.dash-table td[data-cell="net"],
.dash-table td[data-cell="margin"]{
  text-align:left;
  min-width:90px;
}


/* V7.5.1 autosave visual */
.auto-save-input{
  transition:outline-color .15s ease, background-color .15s ease;
}


/* V7.6: Inline düzenleme kapalı, fiyat sağ tık kopyala, grup bold düzeltme */
.dash-table .group-row td{
  font-weight:500 !important;
}
.dash-table .group-row .grp-bold,
.dash-table .group-row .server-col,
.dash-table .server-col{
  font-weight:800 !important;
}
.dash-table .group-count{
  color:#0047bd !important;
  background:rgba(255,255,255,.65);
  padding:2px 6px;
  border-radius:4px;
  font-weight:800 !important;
}
.copy-price{
  cursor:context-menu;
  user-select:text;
  font-weight:700;
}
.copy-price:hover{
  background:rgba(59,130,246,.16)!important;
  outline:1px dashed rgba(37,99,235,.45);
}
.price-copy-menu{
  position:fixed;
  display:none;
  z-index:99999;
  background:#111827;
  color:#fff;
  padding:8px 14px;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 10px 28px rgba(15,23,42,.35);
  cursor:pointer;
}
.price-copy-menu.show{
  display:block;
}


/* V7.7: Satılmış zarar eden tekil/alt kayıtlar kırmızı */
.dash-table .row-zarar td{
  background:#fee2e2 !important;
  color:#991b1b !important;
}
.dash-table .row-zarar .server-col{
  font-weight:800 !important;
}
.dash-table .row-zarar .profit-neg,
.dash-table .row-zarar td[data-cell="net"],
.dash-table .row-zarar td[data-cell="margin"]{
  color:#dc2626 !important;
  font-weight:900 !important;
}


/* V7.8: Grup etiket arka planı ve bold kolon düzeni */
.dash-table .group-count{
  background:transparent !important;
  padding:0 !important;
  border-radius:0 !important;
  color:#0047bd !important;
  font-weight:800 !important;
}

.dash-table td{
  font-weight:500 !important;
}

.dash-table td.grp-bold,
.dash-table td.server-col,
.dash-table td[data-cell="net"],
.dash-table .group-row td:nth-child(2),
.dash-table .group-row td:nth-child(3),
.dash-table .group-row td:nth-child(7),
.dash-table .group-row td:nth-child(15),
.dash-table tr:not(.group-row) td:nth-child(2),
.dash-table tr:not(.group-row) td:nth-child(3),
.dash-table tr:not(.group-row) td:nth-child(7),
.dash-table tr:not(.group-row) td:nth-child(15){
  font-weight:800 !important;
}

.dash-table .group-row td{
  font-weight:500 !important;
}

.dash-table .group-row td.grp-bold,
.dash-table .group-row td.server-col,
.dash-table .group-row td:nth-child(15){
  font-weight:800 !important;
}

.edit-single-field.d-none{
  display:none !important;
}


/* V7.9: Düzenle popup fiyat alanı geniş ve yan yana */
.edit-dialog-wide{
  max-width:780px;
}
.edit-popup-content{
  border-radius:16px;
}
.edit-meta-grid .form-select,
.edit-select{
  height:42px;
  font-weight:700;
}
.edit-price-panel{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:16px;
  margin-top:6px;
}
.edit-price-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:12px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.edit-price-label{
  display:block;
  font-size:13px;
  font-weight:800;
  color:#475569;
  margin-bottom:7px;
}
.edit-price-input{
  height:48px;
  font-size:19px;
  font-weight:900;
  text-align:center;
  border-radius:9px;
}
.edit-sell-col.group-wide{
  flex:0 0 100%;
  max-width:100%;
}
.edit-sell-col.group-wide .edit-price-input{
  height:54px;
  font-size:21px;
}
.edit-tax-row{
  margin-top:14px;
}
.edit-footer{
  gap:10px;
}
.edit-footer .btn{
  min-width:130px;
}
@media(max-width:768px){
  .edit-dialog-wide{
    max-width:96vw;
    margin:10px auto;
  }
  .edit-price-input{
    height:46px;
    font-size:17px;
  }
}


/* V7.9.1: Düzenle popup normal boyut, fiyatlar yan yana */
.edit-dialog-normal{
  max-width:500px;
}
.edit-dialog-wide{
  max-width:500px !important;
}
.edit-popup-content{
  border-radius:12px;
}
.edit-price-panel{
  padding:12px;
  border-radius:10px;
}
.edit-price-title{
  margin-bottom:10px;
  font-size:13px;
}
.edit-price-label{
  font-size:12px;
  margin-bottom:5px;
}
.edit-price-input{
  height:38px !important;
  font-size:15px !important;
  font-weight:800;
  text-align:center;
  border-radius:7px;
}
.edit-sell-col.group-wide{
  flex:0 0 100% !important;
  max-width:100% !important;
}
.edit-sell-col.group-wide .edit-price-input{
  height:42px !important;
  font-size:17px !important;
}
.edit-footer .btn{
  min-width:90px;
}
@media(max-width:576px){
  .edit-dialog-normal{
    max-width:96vw;
    margin:10px auto;
  }
  #editBuyCol.col-6,
  #editSellCol.col-6{
    flex:0 0 50%;
    max-width:50%;
  }
  .edit-price-input{
    font-size:14px !important;
  }
}


/* V7.9.2: Fiyat inputları server/karakter gibi tam genişlikte, popup normal boyutta */
.edit-dialog-normal{
  max-width:500px;
}
.edit-price-panel{
  padding:12px;
  border-radius:10px;
}
.edit-price-panel .row{
  width:100%;
  margin-left:0;
  margin-right:0;
}
.edit-price-panel .col-6,
.edit-price-panel .col-12{
  padding-left:4px;
  padding-right:4px;
}
.edit-price-input.price-input,
#editBuy,
#editSell{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:38px !important;
  font-size:15px !important;
  font-weight:800;
  text-align:left;
  border-radius:7px;
}
.edit-sell-col.group-wide{
  flex:0 0 100% !important;
  max-width:100% !important;
}
.edit-sell-col.group-wide .edit-price-input{
  width:100% !important;
  height:42px !important;
  font-size:17px !important;
}
.edit-select{
  width:100% !important;
}
@media(max-width:576px){
  #editBuyCol.col-6,
  #editSellCol.col-6{
    flex:0 0 50%;
    max-width:50%;
  }
}


/* V8.0 Alınabilecek İtemler - masaüstü program görünümü */
.analysis-head{margin-bottom:10px}
.analysis-add-bar{background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.analysis-add-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.analysis-add-form label.small{font-size:11px;color:#596579;display:block;margin-bottom:3px}
.add-analysis-item{width:310px}.add-mini-btn{width:38px}.add-level{width:100px}.add-fav{width:82px}.add-amount{width:90px}.add-price{width:130px}.add-tab{width:170px}
.analysis-tabbar{display:flex;background:#9aa3ad;border-radius:5px;overflow:hidden}
.analysis-tabbar a{flex:1;text-align:center;color:#fff;text-decoration:none;padding:7px 10px;font-weight:600;font-size:13px;border-right:1px solid rgba(255,255,255,.25)}
.analysis-tabbar a.active,.analysis-tabbar a:hover{background:#3b82f6;color:#fff}
.analysis-table-wrap{background:#fff;border:1px solid #9ca3af;max-height:60vh;overflow:auto}
.analysis-table{width:100%;border-collapse:collapse;font-size:12px;color:#009879}
.analysis-table thead{position:sticky;top:0;background:#f8fafc;z-index:2}
.analysis-table th{padding:6px 8px;border-bottom:1px solid #b8c0ca;color:#25364d;font-weight:800;white-space:nowrap}
.analysis-table td{padding:5px 8px;border-bottom:1px solid #d7eadf;white-space:nowrap;vertical-align:middle;font-weight:500}
.analysis-row-profit td{background:#e9fbf2;color:#009879}
.analysis-row-loss td{background:#ffecec;color:#e11d48}
.analysis-row-click.row-selected td{background:#3b82f6!important;color:#fff!important}
.analysis-bold{font-weight:900!important}
.ana-status.on{font-weight:700;color:#009879}
.ana-status.off{font-weight:700;color:#5f6875}
.analysis-bottom-actions{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.analysis-scan-bar{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
.analysis-scan-bar input{width:90px}
.bought-popup .form-control,.bought-popup .form-select{height:40px;font-weight:700}
@media(max-width:992px){
  .analysis-add-form>*{flex:1 1 auto}
  .add-analysis-item{width:100%}
  .analysis-tabbar{overflow-x:auto}
  .analysis-tabbar a{min-width:140px}
}


/* V8.2 Analysis Şablon Düzenle popup */
.analysis-edit-dialog{
  max-width:390px;
}
.analysis-edit-popup{
  border-radius:12px;
}
.analysis-edit-body{
  text-align:center;
  padding:20px 34px;
}
.analysis-edit-item-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:18px;
}
.analysis-edit-label{
  display:block;
  color:#596579;
  font-size:13px;
  font-weight:600;
  text-align:center;
  margin-bottom:5px;
}
.analysis-edit-control{
  height:36px;
  font-weight:700;
  text-align:left;
}
.analysis-edit-body .price-input{
  width:100% !important;
  max-width:100% !important;
}
.analysis-api-filter-title{
  color:#4f6388;
  font-size:11px;
  margin:22px 0 12px;
}
.analysis-edit-tax{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:16px;
  font-weight:800;
}
.analysis-edit-tax input{
  width:24px;
  height:24px;
  accent-color:#3b82f6;
}
.analysis-edit-footer{
  justify-content:center;
  gap:10px;
}
.analysis-edit-footer .btn{
  min-width:120px;
}


/* V8.3: İtem Alındı popup masaüstü Stoka Aktar stilinde */
.bought-dialog{
  max-width:420px;
}
.bought-popup-v83{
  border-radius:12px;
}
.bought-header{
  border-bottom:0;
  padding-top:22px;
  position:relative;
}
.bought-header .btn-close{
  position:absolute;
  right:16px;
  top:16px;
}
.bought-header h5{
  font-size:16px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:2px;
}
.bought-subtitle{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
}
.bought-body{
  padding:14px 34px 18px;
  text-align:center;
}
.bought-selected{
  text-align:left;
  margin-bottom:14px;
}
.bought-label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#596579;
  margin:9px 0 5px;
}
.bought-control{
  height:36px;
  font-weight:800;
  max-width:230px;
  margin:0 auto;
}
.bought-price-panel{
  margin-top:14px;
  text-align:left;
}
.bought-price-panel .price-input,
.bought-price-panel .edit-price-input{
  width:100% !important;
  max-width:100% !important;
  height:40px !important;
  font-size:15px !important;
  font-weight:900;
}
.bought-check{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:13px;
  font-weight:800;
  color:#334155;
}
.bought-check input{
  width:24px;
  height:24px;
  accent-color:#3b82f6;
}
.bought-footer{
  justify-content:center;
  gap:10px;
  padding-bottom:18px;
}
.bought-footer .btn{
  min-width:135px;
}
@media(max-width:576px){
  .bought-dialog{
    max-width:96vw;
    margin:10px auto;
  }
  .bought-body{
    padding-left:18px;
    padding-right:18px;
  }
}


/* V8.4: Alınabilecek İtemler 100% ekran sığdırma */
body{
  overflow-x:hidden;
}

.analysis-head{
  margin-bottom:6px !important;
}
.analysis-head h4{
  font-size:22px !important;
  margin-bottom:2px !important;
}
.analysis-head .small{
  font-size:12px !important;
}

.analysis-add-bar{
  padding:8px 12px !important;
  margin-bottom:8px !important;
  overflow-x:auto;
  overflow-y:hidden;
}
.analysis-add-form{
  flex-wrap:nowrap !important;
  gap:7px !important;
  align-items:end !important;
  min-width:max-content;
}
.analysis-add-form label.small{
  margin-bottom:2px !important;
  font-size:10px !important;
  white-space:nowrap;
}
.analysis-add-form .form-control,
.analysis-add-form .form-select,
.analysis-add-form .btn{
  height:32px !important;
  font-size:12px !important;
  padding-top:4px !important;
  padding-bottom:4px !important;
}
.add-analysis-item{width:260px !important;}
.add-mini-btn{width:34px !important;min-width:34px !important;}
.add-level{width:96px !important;}
.add-fav{width:80px !important;}
.add-amount{width:82px !important;}
.add-price{width:122px !important;}
.add-tab{width:170px !important;}

.analysis-tabbar{
  margin-bottom:7px !important;
}
.analysis-tabbar a{
  padding:6px 8px !important;
  font-size:12px !important;
}

.analysis-table-wrap{
  max-height:calc(100vh - 405px) !important;
  min-height:320px;
}
.analysis-table{
  font-size:11px !important;
}
.analysis-table th{
  padding:5px 7px !important;
  line-height:1.1 !important;
}
.analysis-table td{
  padding:4px 7px !important;
  line-height:1.15 !important;
}
.analysis-table .item-icon-sm{
  width:30px !important;
  height:30px !important;
}

.analysis-bottom-actions{
  margin-top:8px !important;
  gap:8px !important;
}
.analysis-bottom-actions .btn{
  height:32px !important;
  padding:4px 12px !important;
  font-size:12px !important;
  white-space:nowrap;
}

.analysis-scan-bar{
  margin-top:7px !important;
  gap:7px !important;
  font-size:12px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  padding-bottom:4px;
}
.analysis-scan-bar input{
  width:78px !important;
  height:30px !important;
  font-size:12px !important;
}
.analysis-scan-bar .btn{
  height:30px !important;
  font-size:12px !important;
  padding:3px 10px !important;
}
.analysis-scan-bar .tax-check{
  white-space:nowrap;
  margin-bottom:0 !important;
}

@media(max-height:820px){
  .analysis-table-wrap{
    max-height:calc(100vh - 380px) !important;
    min-height:280px;
  }
  .analysis-head h4{
    font-size:20px !important;
  }
  .analysis-add-bar{
    padding:6px 10px !important;
  }
  .analysis-bottom-actions .btn{
    height:30px !important;
    padding:3px 10px !important;
  }
}

@media(max-width:1280px){
  .add-analysis-item{width:220px !important;}
  .add-price{width:110px !important;}
  .add-tab{width:150px !important;}
}


/* V8.5 Yan PC Gönder popup */
.yan-plan-dialog{
  max-width:1040px;
}
.yan-plan-popup{
  border-radius:14px;
}
.yan-plan-table-wrap{
  max-height:560px;
  overflow:auto;
  border-radius:10px;
}
.yan-plan-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 6px;
  font-size:13px;
}
.yan-plan-table th{
  color:#31435f;
  font-weight:800;
  padding:6px 10px;
  text-align:left;
}
.yan-plan-table td{
  background:#fff;
  padding:8px 10px;
  vertical-align:middle;
}
.yan-plan-table tr:nth-child(even) td{
  background:#e8f2ff;
}
.yan-plan-table tr td:first-child{
  border-radius:8px 0 0 8px;
}
.yan-plan-table tr td:last-child{
  border-radius:0 8px 8px 0;
}
.yan-check{
  width:28px;
  height:28px;
  accent-color:#3b82f6;
}
.yan-item-name{
  font-weight:800;
  color:#0f172a;
}
.yan-fav{
  color:#556987;
  white-space:nowrap;
}
.yan-price{
  color:#009879;
  font-weight:900;
  white-space:nowrap;
}
.yan-slot-select{
  max-width:180px;
  height:36px;
  font-weight:700;
}
@media(max-width:768px){
  .yan-plan-dialog{
    max-width:96vw;
    margin:10px auto;
  }
  .yan-plan-table{
    min-width:760px;
  }
}


/* V8.6 Yan PC kutu görünümü + Sekmeleri Yönet */
.yan-slot-main{
  display:block;
  margin-top:2px;
  font-size:11px;
  font-weight:800;
  color:#2563eb;
  white-space:nowrap;
}
.analysis-row-loss .yan-slot-main{
  color:#dc2626;
}
.tabs-add-form{
  display:flex;
  gap:8px;
  align-items:center;
}
.tabs-add-form input:first-child{
  flex:1;
}
.tabs-order-input{
  width:90px !important;
}
.tabs-manage-table input{
  font-weight:700;
}
.tabs-actions{
  white-space:nowrap;
}
@media(max-width:768px){
  .tabs-add-form{
    flex-direction:column;
    align-items:stretch;
  }
  .tabs-order-input{
    width:100% !important;
  }
}


/* V8.6.2 Sekme duplicate fix */
.tabs-top-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.tabs-top-actions .tabs-add-form{
  flex:1;
  margin-bottom:0 !important;
}
@media(max-width:768px){
  .tabs-top-actions{
    flex-direction:column;
    align-items:stretch;
  }
}


/* V8.6.3: Shift seçimde yazı seçilmesini engelle */
.analysis-table,
.analysis-table td,
.analysis-table th,
.dash-table,
.dash-table td,
.dash-table th{
  user-select:none;
}
.copy-price{
  user-select:text;
}


/* V8.6.4: SELL Pazar ve Alınabilecek seçili satır rengi */
.dash-table tr.row-selected td,
.dash-table tr.group-selected td,
.analysis-table tr.row-selected td{
  background:#3b82f6 !important;
  color:#ffffff !important;
  border-color:#2563eb !important;
}

.dash-table tr.row-selected td *,
.dash-table tr.group-selected td *,
.analysis-table tr.row-selected td *{
  color:#ffffff !important;
}

.dash-table tr.row-selected .profit-pos,
.dash-table tr.row-selected .profit-neg,
.dash-table tr.group-selected .profit-pos,
.dash-table tr.group-selected .profit-neg,
.analysis-table tr.row-selected .profit-pos,
.analysis-table tr.row-selected .profit-neg{
  color:#ffffff !important;
}

.dash-table tr.row-selected .item-icon-sm,
.dash-table tr.group-selected .item-icon-sm,
.analysis-table tr.row-selected .item-icon-sm{
  filter:none !important;
}

.dash-table,
.analysis-table{
  user-select:none;
}

.copy-price{
  user-select:text;
}


/* V8.6.5: SELL Pazar grup satırı seçili rengi kesin override */
table.dash-table tr.group-row.row-selected > td,
table.dash-table tr.group-row.group-selected > td,
table.dash-table tr.group-row[data-selected="1"] > td,
table.dash-table tr.group-row:has(.group-check:checked) > td{
  background:#3b82f6 !important;
  color:#ffffff !important;
  border-color:#2563eb !important;
}

table.dash-table tr.group-row.row-selected > td *,
table.dash-table tr.group-row.group-selected > td *,
table.dash-table tr.group-row[data-selected="1"] > td *,
table.dash-table tr.group-row:has(.group-check:checked) > td *{
  color:#ffffff !important;
}

table.dash-table tr.group-row.row-selected .group-count,
table.dash-table tr.group-row.group-selected .group-count,
table.dash-table tr.group-row[data-selected="1"] .group-count,
table.dash-table tr.group-row:has(.group-check:checked) .group-count{
  color:#ffffff !important;
  background:transparent !important;
}

table.dash-table tr.group-row.row-selected .server-col,
table.dash-table tr.group-row.group-selected .server-col,
table.dash-table tr.group-row[data-selected="1"] .server-col,
table.dash-table tr.group-row:has(.group-check:checked) .server-col{
  color:#ffffff !important;
  font-weight:900 !important;
}


/* V8.7 İtem Teklif Merkezi */
.offer-page{font-size:13px}
.offer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.offer-top-panel{background:#fff;border-radius:14px;padding:14px;box-shadow:0 2px 12px rgba(0,0,0,.04);margin-bottom:12px}
.offer-scan-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.offer-field label{display:block;font-size:11px;font-weight:800;color:#5c6c86;margin-bottom:4px}
.offer-field .form-control,.offer-field .form-select{height:36px;font-weight:700}
.offer-item-field input{width:260px}.offer-field{min-width:120px}.offer-small{min-width:90px}.offer-count{min-width:80px}.offer-mini-btn{width:38px;height:36px}.offer-poison{display:flex;gap:8px;align-items:center;font-weight:800;margin-bottom:7px}.offer-poison input{width:24px;height:24px}.offer-scan-btn{height:38px;min-width:160px}
.offer-actions{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}.offer-actions .btn{min-width:130px;font-weight:700}
.btn-purple{background:#7c3aed;color:#fff}.btn-purple:hover{background:#6d28d9;color:#fff}
.offer-summary-grid{display:grid;grid-template-columns:repeat(9,minmax(120px,1fr));gap:10px;margin-bottom:12px}.offer-card{background:#fff;border-radius:12px;padding:14px;min-height:92px;box-shadow:0 2px 12px rgba(0,0,0,.04)}.offer-card-title{font-size:11px;font-weight:800;color:#63728b;text-align:center;margin-bottom:10px}.offer-card-value{font-size:18px;font-weight:900;text-align:center;white-space:nowrap}.small-value{font-size:14px;text-align:left}.offer-risk{font-weight:900;font-size:16px;text-align:center;white-space:nowrap}.risk-high{color:#dc2626}.risk-low{color:#d97706}.risk-ok{color:#059669}.risk-muted{color:#64748b}
.offer-detail-panel{background:#fff;border-radius:10px;padding:0 0 16px;max-height:56vh;overflow:auto}.offer-tabs{text-align:center;position:sticky;top:0;background:#fff;padding-top:4px}.offer-tabs button{border:0;border-radius:4px;background:#9aa3ad;color:#fff;font-weight:700;padding:4px 10px}.offer-tabs button.active{background:#3b82f6}.offer-section{padding:38px 34px}.offer-section h5{font-weight:900}.offer-global-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.offer-global-cards div,.server-metrics div{background:#eaf3ff;border-radius:10px;padding:14px;text-align:center}.offer-global-cards span,.server-metrics span{display:block;font-size:11px;color:#63728b;font-weight:800;margin-bottom:8px}.offer-global-cards b,.server-metrics b{color:#009879;font-size:14px}.offer-server-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.offer-server-card{border:1px solid #d8e1ee;border-radius:12px;padding:14px}.server-title{font-size:20px;color:#3b82f6;font-weight:900;display:flex;justify-content:space-between}.server-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.server-nicks{font-size:12px;color:#5d6e89}
.offer-template-modal{background:#f4f7fb}.offer-template-dialog .modal-header{background:#f4f7fb}.set-builder-top{background:#fff;border-radius:12px;padding:12px;display:flex;gap:9px;align-items:end;flex-wrap:wrap}.set-builder-top .field label{display:block;font-size:11px;font-weight:800;color:#5c6c86}.set-builder-top .field input,.set-builder-top .field select{height:34px;font-size:13px}.set-builder-top .field{min-width:150px}.set-builder-top .field.small{min-width:70px}.set-builder-top .mini{width:34px}.set-builder-note{font-size:12px;color:#4c5f7d;margin:12px 0}.set-builder-layout{display:grid;grid-template-columns:1fr 230px;gap:16px}.set-table-wrap{background:#fff;border-radius:10px;border:1px solid #d5dbe5;min-height:520px;overflow:auto}.set-builder-table{width:100%;border-collapse:collapse}.set-builder-table th{background:#f8fafc;color:#26364d;font-weight:900;padding:8px}.set-builder-table td{padding:7px;border-bottom:1px solid #e5e7eb}.set-builder-table input{height:30px;font-size:12px}.set-summary{background:#fff;border-radius:12px;padding:16px}.set-summary h5{font-weight:900}.summary-box{background:#eaf3ff;border-radius:10px;padding:13px;text-align:center;margin-bottom:8px}.summary-box span{display:block;font-size:11px;color:#63728b;font-weight:800}.summary-box b{font-size:15px;color:#009879}
@media(max-width:1400px){.offer-summary-grid{grid-template-columns:repeat(3,1fr)}.offer-server-grid{grid-template-columns:1fr}.server-metrics{grid-template-columns:repeat(3,1fr)}.offer-global-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.set-builder-layout{grid-template-columns:1fr}.offer-scan-form{flex-direction:column;align-items:stretch}.offer-item-field input{width:100%}.offer-summary-grid{grid-template-columns:1fr}.offer-detail-panel{max-height:none}}


/* V8.8 global item dropdown */
.kp-item-dropdown-menu{
  position:fixed;
  z-index:99999;
  background:#ffffff;
  border:1px solid #cbd5e1;
  border-radius:8px;
  box-shadow:0 14px 34px rgba(15,23,42,.22);
  max-height:480px; /* yaklaşık 15 item */
  overflow-y:auto;
  padding:5px;
}
.kp-item-dropdown-row{
  display:block;
  width:100%;
  border:0;
  background:#fff;
  color:#0f172a;
  text-align:left;
  padding:7px 10px;
  border-radius:6px;
  font-size:13px;
  font-weight:700;
}
.kp-item-dropdown-row:hover{
  background:#e8f2ff;
  color:#0b5ed7;
}
.kp-item-picker-btn{
  min-width:34px;
}
.dash-add-form .kp-item-picker-btn{
  height:31px;
}
.offer-tabs button.active{
  background:#3b82f6 !important;
  color:#fff !important;
}
.offer-raw-table th{
  color:#26364d;
  font-weight:900;
}
.offer-raw-table td{
  vertical-align:middle;
}
.offer-history-table th{
  color:#26364d;
  font-weight:900;
}
.offer-history-actions{
  white-space:nowrap;
}
.offer-status{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#e2e8f0;
  color:#334155;
}
.offer-status-Onaylandı{
  background:#dcfce7;
  color:#15803d;
}
.offer-status-Onaylanmadı{
  background:#fee2e2;
  color:#dc2626;
}
.offer-give-popup .price-input{
  font-weight:900;
}
@media(max-width:768px){
  .kp-item-dropdown-menu{
    max-height:360px;
  }
}


/* V8.8.2 Seti Düzenle tablo butonu */
.set-edit-table th{
  color:#26364d;
  font-weight:900;
}
.set-edit-table td{
  vertical-align:middle;
}
.set-edit-table .btn{
  white-space:nowrap;
}


/* V8.9 İtem Teklif detaylarının masaüstü programa yaklaştırılması */
.offer-detail-panel{
  max-height:64vh !important;
}
.offer-nick-line{
  color:#526784;
  font-size:12px;
  margin:10px 0 26px;
}
.server-detail-card{
  border:1px solid #d8e1ee;
  border-radius:14px;
  padding:14px;
  margin-bottom:16px;
  background:#fff;
}
.server-detail-card .server-title{
  color:#3b82f6;
  font-size:20px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
}
.server-detail-card .server-title span:nth-child(2){
  color:#3b82f6;
}
.server-detail-card .server-title .offer-risk{
  margin-left:auto;
}
.server-detail-top{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  background:#eaf3ff;
  border-radius:10px;
  padding:12px;
  margin:10px 0 14px;
}
.server-detail-top div{
  text-align:center;
}
.server-detail-top span{
  display:block;
  color:#63728b;
  font-weight:800;
  font-size:11px;
  margin-bottom:8px;
}
.server-detail-top b{
  color:#009879;
  font-weight:900;
}
.server-first5-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.first5-box{
  background:#eaf3ff;
  border-radius:10px;
  padding:12px;
}
.first5-box h6{
  color:#009879;
  font-weight:900;
  margin-bottom:10px;
}
.first5-box:nth-child(2) h6{
  color:#2563eb;
}
.first5-row{
  display:grid;
  grid-template-columns:40px 110px 1fr;
  gap:8px;
  padding:5px 0;
  font-size:12px;
}
.first5-row b{
  color:#009879;
}
.first5-box:nth-child(2) .first5-row b{
  color:#2563eb;
}
.offer-raw-program-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.offer-raw-program-table th{
  background:#f8fafc;
  color:#26364d;
  font-weight:900;
  padding:7px 8px;
  border:1px solid #cbd5e1;
  white-space:nowrap;
}
.offer-raw-program-table td{
  padding:6px 8px;
  border:1px solid #d7eadf;
  white-space:nowrap;
}
.raw-group-row td{
  background:#dbeafe !important;
  color:#0b4abf !important;
  font-weight:800;
}
.raw-profit-row td{
  background:#e9fbf2;
  color:#009879;
}
.raw-loss-row td{
  background:#ffecec;
  color:#dc2626;
}
.raw-offer-section{
  padding:20px 12px !important;
}
@media(max-width:1100px){
  .server-detail-top{grid-template-columns:repeat(2,1fr)}
  .server-first5-grid{grid-template-columns:1fr}
}


/* V8.10: Fiyat input genişlikleri ve kart taşma fix */
.offer-top-panel .offer-field input.price-input,
.offer-top-panel .offer-field input[name="min_price"],
.offer-top-panel .offer-field input[name="max_price"],
.offer-top-panel .offer-small input.price-input{
  min-width:135px !important;
  width:135px !important;
  max-width:none !important;
}

.offer-top-panel .offer-field{
  min-width:auto !important;
}

.offer-card{
  overflow:hidden;
}

.offer-card-value{
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.18;
  font-size:16px !important;
}

.offer-card-value.text-success,
.offer-card-value.text-primary,
.offer-card-value.text-warning{
  max-width:100%;
}

.offer-summary-grid{
  grid-template-columns:repeat(9,minmax(125px,1fr)) !important;
}

.offer-global-cards b{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.2;
}

.server-metrics b,
.server-detail-top b{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  display:block;
  line-height:1.2;
}

.set-builder-top .field input.price-input,
.set-builder-top .field input#setMin,
.set-builder-top .field input#setMax,
.set-builder-top .field input#setSell,
.set-builder-top .field input#setBuy{
  min-width:145px !important;
  width:145px !important;
  max-width:none !important;
}

.set-builder-top .field{
  min-width:auto !important;
}

input.price-input{
  min-width:110px;
  font-weight:800;
}

.analysis-add-form input.price-input,
.dash-add-form input.price-input{
  min-width:115px !important;
}

.bought-price-panel input.price-input,
.edit-price-panel input.price-input,
.analysis-edit-body input.price-input{
  min-width:160px !important;
  width:100% !important;
}

@media(max-width:1500px){
  .offer-summary-grid{
    grid-template-columns:repeat(3,minmax(180px,1fr)) !important;
  }
  .offer-card-value{
    font-size:15px !important;
  }
}

@media(max-width:900px){
  .offer-summary-grid{
    grid-template-columns:1fr !important;
  }
}


/* V8.11 Teklif kâr payı açıklama */
.offer-formula-note{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:10px;
  padding:9px 12px;
  margin:8px 0 22px;
  font-size:12px;
  font-weight:700;
}
.offer-formula-note b{
  color:#7c2d12;
}

/* V8.14 İtem Veri Analiz API durum + toplu güncelleme */
.api-status-card{border-left:4px solid #22c55e;}
.api-status-box{border:1px solid #d8e1ef;background:#f8fafc;border-radius:8px;padding:10px 12px;min-height:42px;font-size:13px;color:#334155;}
.api-status-box.compact{padding:7px 9px;min-height:32px;}
.api-ok{background:#ecfdf5;border:1px solid #86efac;color:#166534;border-radius:8px;padding:8px 10px;}
.api-bad{background:#fff1f2;border:1px solid #fda4af;color:#9f1239;border-radius:8px;padding:8px 10px;}
.api-ok-inline{color:#15803d;font-weight:800;}
.api-bad-inline{color:#be123c;font-weight:800;}
.api-analysis-actions{background:#fff;border:1px solid #d8e1ef;border-radius:10px;padding:10px 12px;}
.api-analysis-table-wrap{max-height:68vh;}
.api-analysis-table td,.api-analysis-table th{font-size:12px;}
.api-analysis-row{cursor:pointer;}
.api-analysis-row:hover td{filter:brightness(.97);}
.api-preview-wrap{max-height:420px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;}
.api-preview-table thead{position:sticky;top:0;background:#f8fafc;z-index:1;}
.api-active-check{display:flex;align-items:center;gap:8px;font-weight:700;color:#334155;}
@media (max-width: 768px){
  .api-analysis-actions .btn{width:100%;}
  .api-analysis-table-wrap{max-height:62vh;}
}

/* V8.16 İtem Veri Analiz - Windows program tarzı fiyat güncelleme sihirbazı */
.api-wizard-dialog{max-width:1208px;}
.api-wizard-modal{border-radius:8px;overflow:hidden;background:#f3f6fb;}
.api-wizard-header{background:#f7f8fa;border-bottom:1px solid #cbd5e1;padding:8px 12px;}
.api-wizard-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:4px;background:#1985ff;color:#fff;font-size:11px;font-weight:800;}
.api-wizard-body{padding:10px 12px;background:#f2f5fa;}
.api-wizard-toolbar{display:flex;align-items:center;gap:14px;background:#fff;border-radius:9px;padding:8px 10px;margin-bottom:12px;}
.api-wizard-field{display:flex;align-items:center;gap:8px;}
.api-wizard-field label{font-size:12px;font-weight:800;color:#0f172a;white-space:nowrap;margin:0;}
.api-wizard-field select{width:120px;}
.api-wizard-field input{width:120px;font-weight:700;}
.api-wizard-scan{margin-left:auto;min-width:142px;font-weight:800;}
.api-wizard-tabs{display:flex;gap:0;margin-bottom:12px;background:#969fa6;border-radius:4px;overflow:hidden;}
.api-wizard-tab{flex:1;border:0;background:#969fa6;color:#fff;font-size:12px;padding:5px 8px;line-height:1.2;}
.api-wizard-tab.active{background:#2f80ed;color:#fff;font-weight:800;}
.api-wizard-tab:hover{filter:brightness(.96);}
.api-wizard-table-wrap{height:542px;max-height:62vh;overflow:auto;background:#fff;border:1px solid #9ca3af;}
.api-wizard-table{width:100%;border-collapse:collapse;font-size:12px;color:#00133a;}
.api-wizard-table thead{position:sticky;top:0;z-index:2;background:#f8fafc;}
.api-wizard-table th{padding:6px 8px;border-bottom:1px solid #e2e8f0;text-align:center;font-weight:800;color:#334155;white-space:nowrap;}
.api-wizard-table td{padding:8px 8px;text-align:center;border-bottom:0;white-space:nowrap;vertical-align:middle;}
.api-wizard-table tr:hover td{background:#eef6ff;}
.api-wizard-table tr.selected td{background:#dbeafe!important;outline:1px solid rgba(37,99,235,.15);}
.api-wizard-table tr.scanned-ok.selected td{background:#d1fae5!important;}
.api-wizard-icon-cell{display:flex;align-items:center;gap:7px;justify-content:flex-start;text-align:left!important;min-width:120px;}
.api-wizard-name{min-width:210px;text-align:center;font-weight:500;}
.api-wizard-api-price,.api-wizard-new-price{font-weight:800;}
.api-wait-inline{color:#0f172a;font-weight:500;}
.api-wizard-footer{display:flex;align-items:center;justify-content:space-between;background:#eef2f8;border-top:1px solid #cbd5e1;padding:10px 12px;}
.api-wizard-note{font-size:11px;line-height:1.2;color:#ff0000;text-align:left;}
@media (max-width: 768px){
  .api-wizard-toolbar{align-items:stretch;flex-direction:column;gap:8px;}
  .api-wizard-field{justify-content:space-between;}
  .api-wizard-field select,.api-wizard-field input{width:55%;}
  .api-wizard-scan{width:100%;margin-left:0;}
  .api-wizard-tabs{overflow:auto;}
  .api-wizard-tab{min-width:130px;}
  .api-wizard-footer{align-items:stretch;flex-direction:column;gap:8px;}
  .api-wizard-footer .btn{width:100%;}
}
.api-analysis-start-panel{border:1px solid #d8e1ef;background:#fff;border-radius:10px;padding:12px 14px;}
.api-wizard-group-caret{font-size:13px;color:#0f172a;line-height:1;}
.api-wizard-group-count{font-size:12px;color:#00133a;font-weight:700;}

/* V8.18 İtem Veri Analiz - API ana filtreleme ve sonuç tablosu */
.api-main-filter-card{border:1px solid #d8e1ef;background:#fff;border-radius:10px;padding:10px 12px;}
.api-main-filter-form{display:flex;flex-direction:column;gap:9px;}
.api-main-filter-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.api-main-filter-row select,.api-main-filter-row input{height:29px;font-size:12px;}
.api-filter-server{width:120px;}
.api-filter-item{width:180px;}
.api-filter-order{width:132px;}
.api-filter-limit{width:100px;}
.api-filter-plus{width:82px;}
.api-filter-mini{width:55px;}
.api-filter-price{width:92px;}
.api-filter-label{font-size:12px;font-weight:600;color:#0f172a;margin:0;white-space:nowrap;}
.api-filter-check{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#0f172a;margin:0;white-space:nowrap;}
.api-filter-check input{width:23px;height:23px;accent-color:#2563eb;}
.api-type-toggle{display:inline-flex;border-radius:6px;overflow:hidden;background:#9aa1a8;padding:2px;gap:2px;height:30px;align-items:center;}
.api-type-btn{border:0;background:transparent;color:#fff;font-size:12px;padding:4px 8px;border-radius:4px;line-height:1;font-weight:600;}
.api-type-btn.active{background:#2f80ed;color:#fff;box-shadow:0 1px 2px rgba(15,23,42,.15);}
.api-fetch-btn{margin-left:auto;min-width:140px;font-weight:800;height:29px;}
.api-market-result-table td,.api-market-result-table th{text-align:center;vertical-align:middle;}
.api-market-result-table td:nth-child(2),.api-market-result-table th:nth-child(2){text-align:left;}
.api-market-row:hover td{background:#f1f7ff;}
.ana-status.sell{font-weight:700;color:#2563eb;}
@media (max-width: 992px){
  .api-filter-server,.api-filter-item,.api-filter-order,.api-filter-limit,.api-filter-plus,.api-filter-mini,.api-filter-price{width:100%;}
  .api-type-toggle{width:100%;height:auto;}
  .api-type-btn{flex:1;padding:8px;}
  .api-fetch-btn{width:100%;margin-left:0;}
  .api-main-filter-row{align-items:stretch;}
  .api-filter-check{width:100%;}
}

/* V8.22 Yan PC Kontrol merkezi */
.yanpc-page{color:#001b45}
.yanpc-title-row{display:flex;align-items:center;gap:14px;margin:4px 0 14px}
.yanpc-title-icon{width:26px;height:22px;display:flex;align-items:center;justify-content:center;color:#001b45;font-size:18px}
.yanpc-toolbar,.yanpc-assign-bar{background:#fff;border-radius:8px;padding:8px 10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-shadow:0 2px 12px rgba(15,23,42,.03);margin-bottom:10px}
.yanpc-toolbar .btn{min-width:140px;font-weight:700;border:0}
.yanpc-toolbar .btn-primary{background:#3b82f6}
.yanpc-toolbar .btn-success{background:#10b981}
.yanpc-toolbar .btn-danger{background:#ef4444}
.yanpc-toolbar .btn-warning{background:#f59e0b}
.yanpc-assign-label,.yanpc-control-label{font-weight:800;color:#001b45;white-space:nowrap}
.yanpc-select{width:130px;min-width:130px}
.yanpc-select-wide{width:170px;min-width:170px}
.yanpc-control-input{width:62px;min-width:62px;font-weight:700;text-align:center}
.yanpc-assign-btn{margin-left:auto;min-width:140px;font-weight:700}
.yanpc-switch{display:flex;align-items:center;gap:8px;margin:0 8px 0 4px;white-space:nowrap;color:#001b45;font-size:12px;font-weight:600}
.yanpc-switch input{display:none}
.yanpc-switch span{position:relative;width:34px;height:18px;background:#8b95a1;border-radius:999px;display:inline-block;transition:.2s}
.yanpc-switch span:before{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;left:2px;top:2px;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.yanpc-switch input:checked + span{background:#3b82f6}
.yanpc-switch input:checked + span:before{left:18px}
.yanpc-panel{background:#fff;border-radius:8px;padding:6px;min-height:460px;box-shadow:0 2px 12px rgba(15,23,42,.03)}
.yanpc-panel-title{font-weight:800;color:#001b45;margin:8px 4px 12px}
.yanpc-table-wrap{border:1px solid #a3a3a3;max-height:58vh;overflow:auto;background:#fff}
.yanpc-log-wrap{min-height:390px}
.yanpc-table{width:100%;border-collapse:collapse;font-size:12px;color:#00204d}
.yanpc-table thead{position:sticky;top:0;background:#f8fafc;z-index:2}
.yanpc-table th{padding:5px 8px;border-bottom:1px solid #b8c0ca;color:#25364d;font-weight:800;text-align:center;white-space:nowrap}
.yanpc-table td{padding:8px 8px;border-bottom:1px solid #eef2f7;white-space:nowrap;text-align:center;vertical-align:middle}
.yanpc-table tbody tr:nth-child(odd) td{background:#fbfdff}
.yanpc-row{cursor:pointer}
.yanpc-row:hover td,.yanpc-row.selected td{background:#dbeafe!important;color:#003b91}
.yanpc-status{display:inline-block;padding:2px 7px;border-radius:999px;background:#e5e7eb;color:#374151;font-weight:700;min-width:54px}
.yanpc-status.idle,.yanpc-status.online,.yanpc-status.running{background:#dcfce7;color:#166534}
.yanpc-status.offline{background:#fee2e2;color:#991b1b}
.yanpc-log-table td{text-align:left;white-space:normal;vertical-align:top}
.yanpc-log-table td:first-child,.yanpc-log-table td:nth-child(2){white-space:nowrap;text-align:center}
@media(max-width:1200px){.yanpc-toolbar .btn{min-width:120px}.yanpc-assign-btn{margin-left:0}.yanpc-panel{min-height:auto}}
@media(max-width:768px){.yanpc-toolbar .btn,.yanpc-select,.yanpc-select-wide,.yanpc-assign-btn{width:100%;min-width:100%}.yanpc-switch{width:100%}.yanpc-table-wrap{max-height:none}.yanpc-title-row h4{font-size:18px}}


.yanpc-live-pill{display:inline-flex;align-items:center;margin-left:auto;padding:4px 10px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:800}
.yanpc-live-pill.ok{background:#dcfce7;color:#166534}.yanpc-live-pill.warn{background:#fef3c7;color:#92400e}
.yanpc-conn{display:inline-block;padding:2px 8px;border-radius:999px;font-weight:800;min-width:58px;background:#fee2e2;color:#991b1b}
.yanpc-conn.online{background:#dcfce7;color:#166534}.yanpc-conn.offline{background:#fee2e2;color:#991b1b}

/* V8.28 Panel Ayarları */
.kp-menu a.active{
  background: rgba(59,130,246,.18);
  color:#fff;
  border-left:3px solid #3b82f6;
}
.panel-menu-table input.form-control-sm{min-width:54px;}
.user-edit-box{
  border:1px solid rgba(15,23,42,.10);
  background:#f8fafc;
  border-radius:12px;
  padding:12px;
}


/* V8.29 Dashboard raporlama görünümü */
.dash-head-modern{margin-bottom:16px}
.dashboard-hero{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;background:linear-gradient(135deg,#182433,#263238);border-radius:10px;padding:18px;color:#fff;box-shadow:0 8px 28px rgba(15,23,42,.16)}
.hero-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#b6c1ca;font-weight:700}.hero-value{font-size:38px;line-height:1;font-weight:900;color:#22c55e;margin:8px 0}.hero-sub{color:#dbe4ee;font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hero-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.hero-mini{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:12px}.hero-mini span{display:block;color:#b6c1ca;font-size:11px;text-transform:uppercase;font-weight:700}.hero-mini b{display:block;font-size:20px;margin-top:4px;color:#fff}.insight-card{background:linear-gradient(180deg,#fff,#f8fafc)}.best-item-box{display:flex;gap:14px;align-items:center;background:#f8fafc;border:1px solid #edf1f5;border-radius:10px;padding:14px}.best-icon{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff7e8;font-size:28px}.best-name{font-weight:900;color:#263238;font-size:19px}.best-profit{font-weight:900;color:#009a62;font-size:24px}.mini-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.mini-stat-grid div,.system-grid div{background:#fff;border:1px solid #edf1f5;border-radius:8px;padding:10px}.mini-stat-grid span,.system-grid span{display:block;color:#8b95a1;font-size:11px;text-transform:uppercase;font-weight:700}.mini-stat-grid b,.system-grid b{display:block;font-size:20px;color:#263238}.trend-bars{display:flex;flex-direction:column;gap:13px}.trend-row{display:grid;grid-template-columns:58px 1fr 120px;gap:10px;align-items:center}.trend-label{font-weight:800;color:#64748b;font-size:12px}.trend-track{height:16px;background:#eef2f7;border-radius:30px;overflow:hidden}.trend-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#22c55e);border-radius:30px}.trend-fill.loss{background:linear-gradient(90deg,#fb7185,#ef4444)}.trend-value{text-align:right;font-weight:800}.rank-row{display:grid;grid-template-columns:minmax(180px,1fr) 160px 110px;gap:10px;align-items:center;border-bottom:1px solid #edf1f5;padding:10px 0}.rank-row:last-child{border-bottom:0}.rank-main b{display:block;color:#263238}.rank-main span{display:block;color:#8b95a1;font-size:12px}.rank-bar{height:9px;background:#eef2f7;border-radius:12px;overflow:hidden}.rank-bar div{height:100%;background:#22c55e;border-radius:12px}.rank-row.danger .rank-bar div{background:#ef4444}.rank-value{text-align:right;font-weight:900}.mini-bar-row{margin-bottom:13px}.mini-bar-row:last-child{margin-bottom:0}.mini-bar-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.mini-bar-title b{font-size:13px;color:#263238}.mini-bar-title span{font-weight:800}.mini-meta{font-size:11px;color:#8b95a1;margin:2px 0 5px}.mini-bar{height:8px;background:#eef2f7;border-radius:12px;overflow:hidden}.mini-bar div{height:100%;background:#4b71fa;border-radius:12px}.mini-bar div.loss{background:#ef4444}.mini-bar.orange div{background:#f59e0b}.empty-dash{background:#f8fafc;border:1px dashed #d8dee8;border-radius:8px;padding:18px;text-align:center;color:#8b95a1;font-weight:600}.empty-dash.success{color:#009a62;background:#f0fdf4;border-color:#bbf7d0}.dashboard-mini-table{font-size:12px}.dash-log-msg{max-width:430px;overflow:hidden;text-overflow:ellipsis}.system-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.dashboard-note{background:#f8fafc;border-left:4px solid #4b71fa;border-radius:4px;padding:10px;color:#64748b;font-size:12px}
@media(max-width:1200px){.dashboard-hero{grid-template-columns:1fr}.rank-row{grid-template-columns:1fr}.rank-value{text-align:left}.rank-bar{width:100%}}
@media(max-width:768px){.hero-value{font-size:28px}.hero-grid,.mini-stat-grid,.system-grid{grid-template-columns:1fr}.trend-row{grid-template-columns:48px 1fr;gap:8px}.trend-value{grid-column:2;text-align:left}.dashboard-hero{padding:14px}.best-item-box{align-items:flex-start}.rank-row{gap:6px}}

/* V8.30 Dashboard başlangıç kasa düzenleme */
.cash-edit-card{position:relative;overflow:hidden}
.cash-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}
.cash-title-row span{margin:0!important}
.cash-edit-btn{font-size:10px!important;line-height:1!important;padding:4px 7px!important;border-radius:7px!important;font-weight:800!important;color:#1f2937!important}
.hero-mini small{display:block;margin-top:4px;color:#cbd5e1;font-size:11px;font-weight:600}
.cash-preview-box{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cash-preview-box>div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:9px;padding:10px}
.cash-preview-box span{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase}
.cash-preview-box b{display:block;color:#111827;font-size:16px;margin-top:3px}
@media(max-width:768px){.cash-preview-box{grid-template-columns:1fr}.hero-grid{grid-template-columns:1fr}}

/* V8.35 - Popup fiyat input genişlik düzeltmesi
   Genel .price-input küçük tablolarda dar kalıyor. Sadece popup/modallarda
   tam genişlik veriyoruz ki 100.000.000 gibi değerler kesilmeden görünsün. */
#scFilterModal input.price-input,
#manualPriceModal input.price-input {
  width: 100% !important;
  min-width: 260px !important;
  max-width: 100% !important;
  font-size: 15px;
  font-weight: 800;
}

#scFilterModal .sc-filter-box,
#manualPriceModal .modal-body {
  overflow: visible;
}

#apiManualModal input.price-input,
#apiManualModal #apiManualApiBuy,
#apiManualModal #apiManualApiSell {
  width: 100% !important;
  min-width: 160px !important;
  max-width: 100% !important;
  font-size: 15px;
  font-weight: 800;
}

#apiManualModal .form-control,
#apiManualModal .form-select {
  min-height: 36px;
}

@media (max-width: 576px) {
  #scFilterModal input.price-input,
  #manualPriceModal input.price-input,
  #apiManualModal input.price-input,
  #apiManualModal #apiManualApiBuy,
  #apiManualModal #apiManualApiSell {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* V8.36 - Genel mobil responsive düzenleme
   SELL Pazar ve Pazar SC özel masaüstü görünümleri korunur; diğer sayfalar mobilde taşmadan kullanılır. */
html, body{
  max-width:100%;
}
.kp-sidebar-backdrop{
  display:none;
}
.kp-search-top{
  min-width:0;
}
.kp-page-title,
.kp-page-sub{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:992px){
  .kp-sidebar{
    width:285px;
    max-width:86vw;
    transform:translateX(-105%);
    transition:transform .22s ease;
  }
  .kp-sidebar.show{
    transform:translateX(0);
  }
  .kp-sidebar-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.46);
    z-index:25;
  }
  .kp-sidebar.show + .kp-sidebar-backdrop{
    display:block;
  }
  .kp-main{
    margin-left:0;
    width:100%;
    min-width:0;
  }
  .kp-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
  }
  .kp-content{
    width:100%;
    max-width:100vw;
    overflow-x:hidden;
  }
}

@media(max-width:768px){
  .kp-topbar{
    min-height:64px;
    height:auto;
    padding:10px 12px;
    gap:10px;
  }
  .kp-page-title{
    font-size:15px;
  }
  .kp-page-sub{
    font-size:11px;
  }
  .kp-top-actions{
    gap:5px;
  }
  .kp-top-actions .btn{
    padding:.25rem .45rem;
    font-size:11px;
  }
  .kp-content{
    padding:12px 10px;
  }

  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-page-head,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .offer-head,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .yanpc-title-row{
    align-items:stretch !important;
    flex-direction:column;
    gap:10px;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-page-head .d-flex,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-page-head form,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .offer-head .d-flex{
    width:100%;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-page-head .btn,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .offer-head .btn{
    flex:1 1 auto;
    min-width:0;
  }

  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-card{
    padding:12px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-card > .table:not(.dashboard-mini-table),
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .kp-card table.table:not(.dashboard-mini-table){
    min-width:680px;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .table-responsive{
    border-radius:8px;
    -webkit-overflow-scrolling:touch;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .table-responsive table{
    min-width:680px;
  }

  /* Alınabilecek İtemler mobil kullanım: form ve alt aksiyonlar taşmadan kayar. */
  body.page-analysis-page .analysis-add-bar{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  body.page-analysis-page .analysis-add-form{
    min-width:980px !important;
    flex-wrap:nowrap !important;
  }
  body.page-analysis-page .analysis-tabbar{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    flex-wrap:nowrap;
  }
  body.page-analysis-page .analysis-tabbar a{
    min-width:135px;
    flex:0 0 auto;
  }
  body.page-analysis-page .analysis-table-wrap{
    overflow:auto;
    max-height:none !important;
    min-height:360px;
    -webkit-overflow-scrolling:touch;
  }
  body.page-analysis-page .analysis-table{
    min-width:1180px;
  }
  body.page-analysis-page .analysis-bottom-actions,
  body.page-analysis-page .analysis-scan-bar{
    overflow-x:auto;
    flex-wrap:nowrap !important;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  body.page-analysis-page .analysis-bottom-actions .btn{
    flex:0 0 auto;
  }

  /* İtem Veri Analiz ve API ayarları */
  body.page-api-analysis-page .api-main-filter-row,
  body.page-api-settings-page .row{
    gap:8px;
  }
  body.page-api-analysis-page .api-market-result-table,
  body.page-api-analysis-page .api-analysis-table{
    min-width:960px;
  }
  body.page-api-analysis-page .api-wizard-dialog{
    max-width:96vw;
    margin:8px auto;
  }
  body.page-api-analysis-page .api-wizard-table{
    min-width:1040px;
  }

  /* Yan PC Kontrol */
  body.page-yanpc-page .yanpc-toolbar,
  body.page-yanpc-page .yanpc-assign-bar{
    align-items:stretch;
  }
  body.page-yanpc-page .yanpc-grid{
    --bs-gutter-y: .75rem;
  }
  body.page-yanpc-page .yanpc-table{
    min-width:880px;
  }
  body.page-yanpc-page .yanpc-log-table{
    min-width:720px;
  }

  /* Panel Ayarları / kullanıcı yönetimi */
  body.page-panel-settings-page .d-flex.justify-content-between{
    align-items:stretch !important;
    flex-direction:column;
    gap:8px;
  }
  body.page-panel-settings-page .panel-menu-table{
    min-width:720px;
  }
  body.page-panel-settings-page .user-edit-box{
    padding:10px;
  }

  /* İtem Teklif Merkezi */
  body.page-item-offer-page .offer-top-panel,
  body.page-item-offer-page .offer-detail-panel{
    overflow-x:auto;
  }
  body.page-item-offer-page .offer-summary-grid{
    grid-template-columns:1fr !important;
  }
  body.page-item-offer-page .server-detail-top,
  body.page-item-offer-page .server-first5-grid,
  body.page-item-offer-page .offer-global-cards,
  body.page-item-offer-page .server-metrics{
    grid-template-columns:1fr !important;
  }
  body.page-item-offer-page .offer-raw-program-table,
  body.page-item-offer-page .offer-raw-table,
  body.page-item-offer-page .offer-history-table{
    min-width:900px;
  }
  body.page-item-offer-page .set-builder-table,
  body.page-item-offer-page .set-edit-table{
    min-width:760px;
  }

  /* Dashboard */
  body.page-dashboard .dashboard-hero{
    grid-template-columns:1fr;
  }
  body.page-dashboard .hero-grid,
  body.page-dashboard .mini-stat-grid,
  body.page-dashboard .system-grid,
  body.page-dashboard .cash-preview-box{
    grid-template-columns:1fr !important;
  }
  body.page-dashboard .stat-box{
    min-height:72px;
  }
  body.page-dashboard .dashboard-mini-table{
    min-width:640px;
  }
}

@media(max-width:576px){
  .kp-topbar{
    align-items:flex-start;
  }
  .kp-search-top{
    flex:1 1 calc(100% - 52px);
  }
  .kp-top-actions{
    width:100%;
    justify-content:flex-end;
    margin-left:0;
  }
  .kp-content{
    padding:10px 8px;
  }
  .kp-card,
  .kp-stat-card,
  .finance-card,
  .offer-card,
  .stat-box{
    border-radius:10px;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) .btn{
    white-space:normal;
  }
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) input.form-control,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) select.form-select,
  body:not(.page-sell-pazar-page):not(.page-pazar-sc-page) textarea.form-control{
    max-width:100%;
  }

  body.page-price-history-page .kp-page-head form,
  body.page-price-history-page .d-flex form{
    width:100%;
    flex-direction:column;
  }
  body.page-price-history-page .d-flex form .btn,
  body.page-price-history-page .d-flex form .form-control{
    width:100%;
  }

  body.page-characters-page .kp-card form,
  body.page-items-page .kp-card form,
  body.page-api-settings-page .kp-card form{
    max-width:100%;
  }

  .modal-dialog:not(.sold-dialog):not(.bought-dialog){
    max-width:96vw;
    margin:8px auto;
  }
}


/* V8.38: item adı ve fiyat sağ tık kopyalama alanları */
.copy-text,
.copy-price{
  cursor: copy;
  user-select: text;
}
.copy-text:hover,
.copy-price:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* V8.43: Analysis SELL manual popup price fields larger */
.analysis-sell-manual-dialog{
  max-width:980px;
}
.analysis-sell-manual-popup{
  border-radius:16px;
}
.analysis-sell-manual-body{
  padding:20px 28px 26px;
}
.analysis-sell-manual-body label.small.fw-bold{
  font-size:13px !important;
  color:#475569;
  margin-bottom:6px;
}
.analysis-sell-manual-body .form-control,
.analysis-sell-manual-body .form-select{
  min-height:52px;
  font-size:20px;
  font-weight:700;
  padding:10px 14px;
}
.analysis-sell-manual-body .price-input{
  min-width:240px !important;
  width:100% !important;
  font-size:28px !important;
  letter-spacing:0.2px;
}
.analysis-sell-manual-body .row.g-3{
  --bs-gutter-y: 1.1rem;
}
@media (max-width: 991.98px){
  .analysis-sell-manual-dialog{max-width:95vw;}
  .analysis-sell-manual-body{padding:16px 18px 20px;}
  .analysis-sell-manual-body .form-control,
  .analysis-sell-manual-body .form-select{font-size:18px; min-height:48px;}
  .analysis-sell-manual-body .price-input{font-size:24px !important; min-width:100% !important;}
}

/* V8.51 Smart report / badges */
.decision-badge,.age-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.decision-badge.good{background:#dcfce7;color:#166534}
.decision-badge.warn{background:#fef3c7;color:#92400e}
.decision-badge.bad{background:#fee2e2;color:#991b1b}
.decision-badge.muted{background:#e5e7eb;color:#374151}
.age-badge.age-ok{background:#ecfdf5;color:#047857}
.age-badge.age-mid{background:#fef9c3;color:#854d0e}
.age-badge.age-warn{background:#ffedd5;color:#9a3412}
.age-badge.age-danger{background:#fee2e2;color:#991b1b}
.smart-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;margin-bottom:14px}
.smart-card{background:#fff;border-radius:14px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.06);border:1px solid #e5e7eb}
.smart-card .label{font-size:11px;color:#64748b;font-weight:800;text-transform:uppercase}
.smart-card .value{font-size:24px;font-weight:900;color:#0f172a}
.smart-section{background:#fff;border-radius:14px;border:1px solid #e5e7eb;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:14px;margin-bottom:14px}
.smart-section h5{font-weight:900;margin-bottom:10px}
.smart-table{width:100%;font-size:12px;white-space:nowrap}
.smart-table th{background:#f8fafc;color:#334155;font-weight:900;border-bottom:1px solid #e2e8f0;padding:8px}
.smart-table td{border-bottom:1px solid #eef2f7;padding:7px 8px}
.smart-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:1100px){.smart-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.smart-two{grid-template-columns:1fr}}
@media(max-width:640px){.smart-grid{grid-template-columns:1fr}.smart-section{overflow-x:auto}}

/* V8.55 Gelişmiş Karar Motoru */
.decision-badge.strong{background:#d1fae5;color:#065f46;border:1px solid #34d399}
.decision-badge.risk{background:#ffedd5;color:#9a3412;border:1px solid #fb923c}
