/* Teklif Oluştur — reuses .card/.head/.body/.table-wrap/.form-row/button/.actions
   and the --navy/--teal/--teal2/--blue/--danger/--line/--bg tokens already defined
   in index.html's :root, so the new tab matches the panel's existing look. */

.tq-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tq-tab {
  background: #fff;
  color: var(--navy);
  border: 1px solid #deded5;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tq-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tq-cart-badge {
  background: var(--brand-accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tq-panel {
  display: none;
}
.tq-panel.active {
  display: block;
}

.tq-section-note {
  margin: 0 0 12px;
  color: #626457;
  font-size: 13px;
  line-height: 1.5;
}

.tq-item-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #deded5;
  border-radius: 8px;
  background: #deded5;
}
.tq-item-form .actions {
  margin-top: 4px;
}

.tq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tq-card .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tq-supplier {
  margin: 0;
  font-size: 12.5px;
  color: #deded5;
}
.tq-supplier em {
  color: #deded5;
  font-style: normal;
}

.tq-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.tq-stat {
  border-radius: 7px;
  padding: 6px 8px;
}
.tq-stat span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tq-stat b {
  font-size: 14px;
}
.tq-stat.cost {
  background: #deded5;
}
.tq-stat.cost span {
  color: var(--danger);
}
.tq-stat.sale {
  background: #deded5;
}
.tq-stat.sale span {
  color: var(--blue);
}
.tq-stat.profit {
  background: #deded5;
}
.tq-stat.profit span {
  color: #deded5;
}

.tq-variants {
  padding-top: 8px;
  border-top: 1px dashed #deded5;
}
.tq-variants-label {
  display: block;
  font-size: 11px;
  color: #626457;
  margin-bottom: 6px;
}
.tq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #deded5;
  border-radius: 999px;
  padding: 3px 4px 3px 9px;
  font-size: 11.5px;
  color: var(--ink);
}
.tq-chip button {
  background: none;
  border: 0;
  color: #deded5;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.tq-chip button:hover {
  color: var(--danger);
}
.tq-inline-add {
  display: flex;
  gap: 6px;
}
.tq-inline-add input {
  flex: 1;
  padding: 7px 8px;
  font-size: 12.5px;
}

.tq-card-foot {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #deded5;
}
.tq-qty {
  width: 58px;
  text-align: center;
  padding: 8px 6px;
}
.tq-add-btn {
  flex: 1;
}
.tq-add-btn.added {
  background: #deded5;
}
.tq-card-admin {
  display: flex;
  gap: 8px;
}
.tq-card-admin button {
  flex: 1;
}

.tq-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .tq-quote-grid {
    grid-template-columns: 1fr;
  }
}

.tq-viewtoggle {
  display: flex;
  border: 1px solid #deded5;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 14px;
}
.tq-viewtoggle button {
  flex: 1;
  background: #fff;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  padding: 9px 8px;
  font-size: 12.5px;
}
.tq-viewtoggle button.active {
  background: var(--navy);
  color: #fff;
}
.tq-quote-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.tq-quote-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tq-totals {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 14px;
  border-top: 1px solid #deded5;
  background: #deded5;
}
.tq-totals .tcell {
  text-align: right;
}
.tq-totals .tcell span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #626457;
}
.tq-totals .tcell b {
  font-size: 15px;
}
.tq-totals .tcell.profit b {
  color: #deded5;
}
.tq-totals .tcell.margin b {
  color: var(--brand-accent-dark);
}

.tq-sheet {
  background: #fff;
  border: 1px solid #deded5;
  border-radius: 8px;
  padding: 20px 22px;
}
.tq-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.tq-sheet-brand {
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
}
.tq-sheet-brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #626457;
}
.tq-sheet-meta {
  text-align: right;
  font-size: 11.5px;
  color: #626457;
}
.tq-sheet-meta b {
  color: var(--ink);
}
.tq-sheet-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.tq-sheet-parties span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #626457;
  margin-bottom: 2px;
}
.tq-sheet-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.tq-grand-total {
  background: #deded5;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: right;
  min-width: 220px;
}
.tq-grand-total span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #626457;
}
.tq-grand-total b {
  display: block;
  font-size: 21px;
  color: var(--navy);
}
.tq-sheet-notes {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #deded5;
  font-size: 11px;
  color: #626457;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tq-saved {
  margin-top: 18px;
}
.tq-saved h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--navy);
}

#tqCard{margin:20px 0;padding:20px;background:var(--soft);border:1px solid var(--line);border-radius:12px}#tqCard [hidden]{display:none!important}.tq-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.tq-form label{display:flex;flex-direction:column;gap:5px}#tqCard .tq-tab.active{background:var(--brand-accent);color:var(--ink)}#tqCard input,#tqCard select{max-width:100%}#tqCard .tq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}#quoteSales{margin:20px 0;padding:20px;background:var(--soft);border:1px solid var(--line);border-radius:12px}#quoteSales .quote-totals{display:flex;flex-wrap:wrap;gap:20px}#quoteSales article{padding:18px;background:var(--bg);flex:1;min-width:180px}#quoteSales strong{display:block;font-size:24px;margin-top:8px}@media(max-width:650px){.tq-form{grid-template-columns:1fr 1fr}#tqCard{padding:12px}.tq-tabs{flex-wrap:wrap}}

:root{--navy:#16130e;--ink:#16130e;--teal:#c9df58;--teal2:#c9df58;--blue:#221d15;--bg:#f5f5f2;--line:#cdc6b6;--soft:#fafafa;--danger:#221d15;--brand-accent:#c9df58}.top{background:#c9df58!important;color:#16130e!important}.top img{width:180px!important;height:90px!important;object-fit:cover!important;object-position:center!important;background:#fff}.tq-tab{border-color:#cdc6b6}.tq-tab.active{background:#c9df58;color:#16130e}.tq-product-card,.tq-sheet{color:#16130e}button{accent-color:#c9df58}

/* Logo sits directly on the brand background; preserve original artwork. */
#ppApp > .top .panel-home{grid-template-columns:180px minmax(0,1fr);gap:28px;isolation:isolate}
#ppApp > .top .panel-brand img{background:transparent!important;mix-blend-mode:multiply;filter:grayscale(1) contrast(1.2);width:180px!important;height:90px!important}
#ppApp > .top .panel-slogan{min-width:0;margin:0;grid-column:2}
@media(max-width:640px){
 #ppApp > .top .panel-home{grid-template-columns:1fr;gap:14px;justify-items:center}
 #ppApp > .top .panel-brand img{width:160px!important;height:80px!important;grid-column:1}
 #ppApp > .top .panel-slogan{grid-column:1;text-align:center}
}

/* Supplied transparent PNG, without the earlier white-background blend workaround. */
#ppApp > .top .panel-brand img{mix-blend-mode:normal!important;filter:none!important;background:transparent!important}
