/* ═══════════════════════════════════════════════════
   POZ LİSTESİ – Workspace Redesign
   ═══════════════════════════════════════════════════ */

body { background: #f5f7f4; }

/* ── Hero ── */
.poz-hero {
  background: radial-gradient(circle at 84% 5%, #277e5d 0, #123a35 38%, #0c2634 100%);
  color: #fff;
  padding: 72px 0 60px;
}
.poz-hero h1 {
  font: 800 clamp(32px, 4.5vw, 56px)/1.08 var(--serif);
  letter-spacing: -.06em;
  margin: 0;
}
.poz-hero h1 em { color: #99d9b7; font-style: normal; }
.hero-copy {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}
.hero-copy p {
  max-width: 560px;
  color: #c8d8d4;
  line-height: 1.65;
  font-size: 15px;
}
.hero-stat {
  min-width: 200px;
  border-left: 1px solid #ffffff38;
  padding: 11px 0 11px 28px;
}
.hero-stat b, .hero-stat span, .hero-stat small { display: block; }
.hero-stat b { font: 800 44px var(--serif); color: #f2a05e; }
.hero-stat span { font-weight: 700; }
.hero-stat small { color: #abcabf; font-size: 10px; margin-top: 8px; }

/* ── Workspace ── */
.poz-workspace { padding: 40px 0 80px; }
.workspace-layout {
  max-width: 860px;
  margin: 0 auto;
  display: block;
  align-items: start;
}

/* Panel headers */
.ws-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ws-panel-header h2 {
  font: 800 22px var(--serif);
  color: var(--navy);
  letter-spacing: -.03em;
}
.ws-panel-header > div { min-width:0; }
.ws-panel-help { margin:4px 0 0; color:#71817c; font-size:12px; }
.ws-panel-header small {
  background: var(--green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
}

/* ── Search Panel ── */
.ws-search-panel {
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px #153b2b0a;
}
.ws-search-box {
  display: flex;
  align-items: center;
  border: 2px solid #e0e8e2;
  border-radius: 12px;
  padding: 4px 12px;
  transition: border-color .2s;
}
.ws-search-box:focus-within { border-color: var(--green); }
.ws-search-box svg { color: var(--green); flex-shrink: 0; }
.ws-search-box input {
  flex: 1;
  height: 46px;
  border: 0;
  outline: 0;
  font: 500 14px var(--sans);
  padding: 0 10px;
  background: transparent;
}
.ws-clear {
  border: 0;
  background: #eff5f1;
  color: #50645e;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.ws-clear:hover { background: #dce8df; }

/* Filters */
.ws-filters {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
}
.ws-filter-details { margin:12px 0 14px; }
.ws-filter-details summary { cursor:pointer; color:#21805d; font-size:11px; font-weight:800; user-select:none; }
.ws-filter-details[open] summary { margin-bottom:10px; }
.ws-filters select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #dce6df;
  border-radius: 10px;
  background: #fff;
  color: #405650;
  font-size: 12px;
  font-weight: 600;
}
.ws-reset {
  border: 1px solid #dce6df;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  transition: .2s;
}
.ws-reset:hover { background: #eff7f1; }

/* Quick tags */
.ws-quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ws-quick-tags button {
  border: 1px solid #e0e8e2;
  border-radius: 20px;
  background: #f8faf8;
  color: #50645e;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 600;
  transition: .2s;
}
.ws-quick-tags button:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Results list */
.ws-results {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8c8 transparent;
}
.ws-results::-webkit-scrollbar { width: 6px; }
.ws-results::-webkit-scrollbar-thumb { background: #c8d8c8; border-radius: 3px; }

.poz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e8ede9;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  transition: .2s;
  cursor: pointer;
}
.poz-row:hover {
  border-color: #7cb99d;
  background: #f6faf7;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #153b2b0d;
}
.poz-row .pr-info { flex: 1; min-width: 0; }
.poz-row .pr-poz {
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .04em;
}
.poz-row .pr-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poz-row .pr-cat {
  font-size: 10px;
  color: #71817c;
  margin-top: 2px;
}
.poz-row .pr-right {
  text-align: right;
  flex-shrink: 0;
}
.poz-row .pr-price {
  font: 700 14px var(--serif);
  color: var(--navy);
  display: block;
}
.poz-row .pr-unit {
  font-size: 10px;
  color: #71817c;
}
.poz-row .pr-add {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  transition: .2s;
  flex-shrink: 0;
}
.poz-row .pr-add:hover {
  background: #1a6b4e;
  transform: scale(1.05);
}

/* Result note */
.ws-result-note {
  font-size: 11px;
  color: #71817c;
  text-align: center;
  margin: 12px 0 0;
}

/* Empty state */
.ws-empty {
  text-align: center;
  padding: 50px 20px;
}
.ws-empty svg { margin-bottom: 12px; }
.ws-empty b { display: block; color: var(--navy); font-size: 15px; }
.ws-empty p { font-size: 12px; color: #71817c; margin-top: 6px; }

/* ── My List Panel ── */
.ws-my-list {
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px #153b2b0a;
  position: static;
  margin-top:16px;
  overflow:hidden;
}
.ws-my-list > summary { list-style:none; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color:var(--navy); font:800 15px var(--sans); }
.ws-my-list > summary::-webkit-details-marker { display:none; }
.ws-list-summary span { display:flex; align-items:center; gap:8px; }
.ws-list-summary b { display:grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:20px; background:#e9f5ed; color:#21805d; font-size:11px; }
.ws-list-summary small { color:#21805d; font:800 11px var(--sans); }
.ws-my-list[open] > summary { border-bottom:1px solid #e0e8e2; }
.ws-my-list[open] .ws-list-summary small { font-size:0; }
.ws-my-list[open] .ws-list-summary small::after { content:'Gizle'; font:800 11px var(--sans); }
.ws-list-content { padding:20px 24px 24px; }
.ws-list-actions {
  display: flex;
  gap: 8px;
}
.ws-btn-ghost {
  border: 1px solid #e0e8e2;
  border-radius: 10px;
  background: #fff;
  color: #71817c;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: .2s;
}
.ws-btn-ghost:hover { color: #d14040; border-color: #d14040; }
.ws-btn-export {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: .2s;
}
.ws-btn-export:hover { background: #1a6b4e; transform: translateY(-1px); }
.ws-btn-custom {
  border: 1px solid #b9d8c4;
  border-radius: 10px;
  background: #eff8f1;
  color: #176b4b;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: .2s;
}
.ws-btn-custom:hover { background: #dff2e5; border-color: var(--green); }

/* Empty list */
.ws-list-empty {
  text-align: center;
  padding: 60px 20px;
}
.ws-list-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f4f8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ws-list-empty b { display: block; color: var(--navy); font-size: 16px; }
.ws-list-empty p { font-size: 12px; color: #71817c; margin-top: 8px; line-height: 1.6; }

/* List items */
.ws-list-items {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8c8 transparent;
}
.ws-list-items::-webkit-scrollbar { width: 6px; }
.ws-list-items::-webkit-scrollbar-thumb { background: #c8d8c8; border-radius: 3px; }

.ws-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #edf2ee;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fafcfa;
  transition: .2s;
  animation: fadeSlideIn .3s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.ws-item:hover { border-color: #c8ddd0; }
.ws-item .wi-info { min-width: 0; }
.ws-item .wi-poz {
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .04em;
}
.ws-item .wi-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-item .wi-meta {
  font-size: 10px;
  color: #71817c;
  margin-top: 2px;
}
.ws-item .wi-qty-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ws-item .wi-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #dce6df;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.ws-item .wi-qty-btn:hover { background: #eef5ef; }
.ws-item .wi-qty-val {
  width: 52px;
  text-align: center;
  border: 1px solid #dce6df;
  border-radius: 6px;
  padding: 4px;
  font: 600 13px var(--sans);
  color: var(--navy);
  outline: none;
}
.ws-item .wi-qty-val:focus { border-color: var(--green); }
.ws-item .wi-right { text-align: right; }
.ws-item .wi-subtotal {
  font: 700 13px var(--serif);
  color: var(--navy);
  display: block;
}
.ws-item .wi-remove {
  border: 0;
  background: transparent;
  color: #c0c8c4;
  font-size: 16px;
  margin-top: 4px;
  transition: .2s;
}
.ws-item .wi-remove:hover { color: #d14040; }

/* Footer totals */
.ws-list-footer {
  border-top: 2px solid #e8ede9;
  margin-top: 16px;
  padding-top: 16px;
}
.ws-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #50645e;
}
.ws-total-row b { color: var(--navy); font-size: 14px; }
.ws-grand-total {
  border-top: 1px solid #e8ede9;
  margin-top: 8px;
  padding-top: 12px;
}
.ws-grand-total span { font-weight: 700; color: var(--navy); font-size: 15px; }
.ws-grand-total b {
  font: 800 22px var(--serif);
  color: var(--green);
}

/* ── Quantity Modal ── */
.qty-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 38, 52, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}
.qty-modal.active { opacity: 1; visibility: visible; }
.qty-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: min(420px, 92vw);
  box-shadow: 0 24px 60px #071d2c50;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: .3s;
}
.qty-modal.active .qty-modal-content { transform: translateY(0) scale(1); }
.qty-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #71817c;
  transition: .2s;
}
.qty-modal-close:hover { color: var(--navy); }
.qty-modal-content h3 {
  font: 800 20px var(--serif);
  color: var(--navy);
  margin: 0 0 4px;
}
.qty-poz-no {
  font-size: 11px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .05em;
  margin: 0;
}
.qty-info-row {
  display: flex;
  justify-content: space-between;
  background: #f4f8f5;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.qty-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #435250;
  margin-bottom: 16px;
}
.qty-label input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e8e2;
  border-radius: 10px;
  font: 600 18px var(--sans);
  color: var(--navy);
  outline: none;
  margin-top: 8px;
  transition: border-color .2s;
}
.qty-label input:focus { border-color: var(--green); }
.qty-subtotal {
  text-align: center;
  font-size: 14px;
  color: #50645e;
  margin-bottom: 20px;
}
.qty-subtotal b {
  font: 800 24px var(--serif);
  color: var(--green);
  display: block;
  margin-top: 4px;
}
.qty-add-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  border-radius: 12px;
}
.custom-item-content { width: min(500px, 92vw); }
.custom-item-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.custom-item-grid .full { grid-column:1 / -1; }
.custom-item-grid .qty-label { margin-bottom:13px; }
.custom-item-grid .qty-label small { color:#87938e; font-size:10px; font-weight:500; }
.custom-item-grid .qty-label input { font-size:14px; padding:11px 12px; }

/* ── CTA ── */
.poz-cta { background: var(--navy); color: #fff; padding: 43px 0; }
.poz-cta .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.poz-cta h2 { font-size: 24px; color: #fff; }
.poz-cta .eyebrow { margin-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 1050px) {
  .ws-my-list { position: static; }
}
@media (max-width: 650px) {
  .poz-hero { padding: 45px 0 35px; }
  .hero-copy { display: block; }
  .hero-stat {
    border-left: 0;
    border-top: 1px solid #ffffff38;
    margin-top: 20px;
    padding: 14px 0 0;
  }
  .ws-search-panel { padding: 16px; border-radius: 12px; }
  .ws-my-list { border-radius:12px; }
  .ws-list-content { padding:16px; }
  .ws-filters { flex-wrap: wrap; }
  .poz-row { flex-wrap: wrap; }
  .poz-row .pr-add { width: 100%; justify-content: center; margin-top: 4px; }
  .ws-list-actions { flex-wrap: wrap; }
  .ws-item { grid-template-columns: 1fr; gap: 10px; }
  .ws-item .wi-right { text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .poz-cta .shell { display: block; }
  .poz-cta .btn { margin-top: 18px; }
  .custom-item-grid { grid-template-columns:1fr; }
  .custom-item-grid .full { grid-column:auto; }
}
