/* Sayfaya özel ek stiller — app.css'i tamamlar (kargo, ÖKC formları vb.) */

.business-panel {
  padding: 16px;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25);
}

.business-panel-head {
  margin-bottom: 12px;
}

.business-panel-head h2 {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-panel-head .muted {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.business-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-list > li {
  border-bottom: 1px solid #f1f5f9;
}

.business-list > li:last-child {
  border-bottom: 0;
}

.business-list-main {
  min-width: 0;
}

.business-list-main strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

.business-list-main p {
  margin: 2px 0 0;
  color: #475569;
  font-size: 12px;
}

.business-list-date {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}

.business-list-action {
  flex: 0 0 auto;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
}

.cargo-search {
  margin-bottom: 12px;
}

.cargo-search input,
.okc-filter > input {
  border-color: #e2e8f0;
  background: rgba(248, 250, 252, 0.7);
}

.cargo-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.cargo-list .cargo-passive {
  color: #b45309;
}

.cargo-prepare-panel {
  max-width: 576px;
  margin-right: auto;
  margin-left: auto;
}

.cargo-prepare-form > label {
  font-size: 14px;
  font-weight: 500;
}

.cargo-prepare-form textarea {
  min-height: 88px;
}

.okc-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.okc-type-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: #f0fdfa;
  padding: 12px 16px;
  color: #134e4a;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.okc-type-grid a:hover {
  background: #ccfbf1;
}

.okc-filter-grid,
.okc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.okc-filter-grid {
  margin-top: 12px;
}

.okc-filter-grid label {
  margin-bottom: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.okc-filter .actions {
  margin-bottom: 0;
}

.okc-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  color: inherit;
  text-decoration: none;
}

.okc-list > li > a:hover {
  background: #f8fafc;
}

.okc-entry-form {
  display: grid;
  gap: 16px;
}

.okc-entry-form .card {
  margin-bottom: 0;
}

.okc-field {
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.okc-field.wide {
  grid-column: 1 / -1;
}

.okc-field input,
.okc-field textarea {
  margin-top: 2px;
  border-color: #e2e8f0;
  background: rgba(248, 250, 252, 0.7);
  padding: 12px 14px;
}

.okc-field.readonly input,
.okc-field.readonly textarea {
  cursor: default;
  background: #f1f5f9;
  color: #334155;
}

.okc-check {
  margin-bottom: 8px;
}

.okc-check:last-child {
  margin-bottom: 0;
}

.okc-photo-hint {
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  padding: 14px 16px;
  color: #451a03;
}

.okc-photo-hint p {
  margin: 0;
}

.okc-photo-hint ul {
  margin: 8px 0;
  padding-left: 18px;
}

.okc-photo-hint .muted {
  margin-top: 8px;
  color: rgba(120, 53, 15, 0.72);
  font-size: 12px;
}

.okc-photo-list {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.okc-photo-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.okc-photo-card img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #f8fafc;
}

.okc-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.okc-photo-actions .btn,
.okc-photo-actions .okc-photo-del {
  min-height: 44px;
  flex: 1 1 auto;
}

.okc-photo-count {
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.okc-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.okc-photo-grid:empty {
  display: none;
}

.okc-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  object-fit: cover;
}

.okc-upload {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.okc-photo-grid:not(:empty) + .okc-upload,
.okc-photo-count + .okc-upload {
  margin-top: 4px;
}

.okc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 32px;
}

.okc-form-actions > * {
  min-height: 52px;
}

.okc-save {
  background: #0f766e;
  font-size: 16px;
}

.okc-save:hover {
  background: #115e59;
}

.okc-save-print {
  font-size: 16px;
}

.okc-delete {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.okc-delete:hover {
  background: #ffe4e6;
}

.stock-badge {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.stock-badge.low {
  background: #fffbeb;
  color: #92400e;
}

.stock-badge.empty {
  background: #fff1f2;
  color: #9f1239;
}

.part-stock-now {
  margin-bottom: 12px;
}

.part-stock-value {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.part-stock-form {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.part-move-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.part-move-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
  padding: 12px;
}

.part-move-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.part-move-head .delta.plus {
  color: #047857;
}

.part-move-head .delta.minus {
  color: #be123c;
}

.part-move-grid {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.part-move-grid dt {
  color: #64748b;
  font-size: 12px;
}

.part-move-grid dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: #1e293b;
}

.part-move-grid .wide {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .part-move-grid {
    grid-template-columns: 1fr;
  }
}

.cargo-settings-panel {
  margin-top: 16px;
}

.cargo-logo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.cargo-logo-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
  padding: 12px;
}

.cargo-logo-preview {
  display: block;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}

.cargo-passive {
  margin: 4px 0 0;
  color: #b45309;
  font-size: 12px;
}

@media (max-width: 700px) {
  .cargo-logo-grid {
    grid-template-columns: 1fr;
  }
}

.handover-staff {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.handover-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 8px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  background: #f8fafc;
}

.handover-cat {
  margin: 8px 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.handover-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-weight: 400;
  cursor: default;
}

.handover-name {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.handover-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12px;
  color: #64748b;
}

.handover-qty input {
  width: 64px;
  min-height: 40px;
  margin: 0;
  text-align: center;
}

.cargo-print-root {
  min-height: 100dvh;
  padding: 16px 12px 24px;
}

.cargo-print-tools {
  max-width: 768px;
  margin: 0 auto 12px;
}

.cargo-print-tools .alert,
.cargo-print-tools .actions {
  margin-bottom: 0;
}

.cargo-sheet {
  width: 165mm;
  max-width: 100%;
  margin: 0 auto 24px;
  box-sizing: border-box;
  background: #fff;
  padding: 8mm 9mm 9mm;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.cargo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 6px;
  min-height: 48px;
}

.cargo-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.cargo-logo.left {
  justify-content: flex-start;
}

.cargo-logo.right {
  justify-content: flex-end;
}

/* Sabit yükseklik: her iki logo aynı görsel ağırlıkta */
.cargo-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 100%;
  object-fit: contain;
}

/* Erginay şeridi ince; biraz büyütülerek Karpos ile dengelenir */
.cargo-logo.left img {
  height: 48px;
  max-width: 240px;
  transform: scale(1.12);
  transform-origin: left center;
  object-position: left center;
}

.cargo-logo.right img {
  height: 42px;
  max-width: 190px;
  object-position: right center;
}

.cargo-logo-text {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.cargo-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.cargo-prepaid-wrap {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  text-align: left;
}

.cargo-prepaid-badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 2px solid #111;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: left;
}

.cargo-prepaid-check {
  margin-top: 12px;
}

.cargo-block {
  margin-bottom: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 8px 10px;
}

.cargo-block.accent {
  border-color: #0ea5e9;
  background: #f8fafc;
}

.cargo-block h2 {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cargo-value {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.cargo-value.big {
  font-size: 17px;
}

.cargo-code {
  margin: 6px 0 0;
  font-size: 13px;
}

.cargo-code strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.cargo-note {
  margin: 6px 0 0;
  color: #334155;
  font-size: 12px;
}

.cargo-line {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.3;
}

.cargo-label {
  display: block;
  margin-bottom: 1px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cargo-address {
  display: block;
  font-size: 13px;
  white-space: pre-wrap;
}

/* ---------- Renk alanı (servis durumları) ---------- */

.color-field {
  display: grid;
  gap: 8px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-row .color-pick {
  width: 56px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.color-row .color-hex {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: rgba(248, 250, 252, 0.7);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  text-transform: uppercase;
}

.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

/* Ayar listesindeki bilgi hücresi */
td .badge,
td .muted {
  margin-right: 6px;
}

/* ---------- Servis detayı (tickets/[id]) ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.detail-panel > h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-panel .panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-panel .panel-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
}

.detail-row dt {
  color: #64748b;
}

.detail-row dd {
  margin: 0;
  color: #1e293b;
}

.detail-row dd.strong {
  font-weight: 500;
  color: #0f172a;
}

.detail-block + .detail-block {
  margin-top: 14px;
}

.detail-block-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-box {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  color: #0f172a;
  white-space: pre-wrap;
}

.detail-inline-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.detail-inline-form > .btn,
.detail-panel > form > .btn:not(.block) {
  justify-self: start;
}

.detail-signer {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.sign-preview {
  max-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.detail-field {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.detail-field > span {
  display: block;
  margin-bottom: 6px;
}

.detail-field input,
.detail-field textarea,
.detail-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: rgba(248, 250, 252, 0.7);
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
}

/* Katlanabilir panel */
.collapse-card {
  padding: 0;
}

.collapse-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.collapse-card > summary::-webkit-details-marker {
  display: none;
}

.sum-text .t {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.sum-text .d {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.collapse-badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.collapse-card > summary .sign,
.discount-card > summary .sign,
.collect-card > summary .sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.collapse-card > summary .sign::before,
.discount-card > summary .sign::before,
.collect-card > summary .sign::before {
  content: "+";
}

.collapse-card[open] > summary .sign::before,
.discount-card[open] > summary .sign::before,
.collect-card[open] > summary .sign::before {
  content: "−";
}

.collapse-body {
  padding: 0 16px 16px;
}

/* Tahsilat özeti */
.sum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.7);
}

.sum-grid dt {
  font-size: 12px;
  color: #64748b;
}

.sum-grid dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.sum-grid dd.big {
  font-size: 18px;
  font-weight: 700;
}

.sum-grid .neg {
  color: #be123c;
}

.money-side .linklike,
.money-side .linklike.danger {
  color: #64748b;
  white-space: nowrap;
}

.sum-grid .pos {
  color: #047857;
}

.note-box,
.warn-box,
.ok-box {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  color: #334155;
}

.warn-box {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.ok-box {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.note-box .t,
.ok-box .t {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.ok-box .t {
  color: #065f46;
}

.note-box .d,
.ok-box .d {
  display: block;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.ok-text {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #047857;
}

.warranty-box {
  margin-bottom: 16px;
}

/* Dokunmatik seçim listeleri */
.choice-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.choice-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.choice-list.scroll {
  max-height: 288px;
  overflow-y: auto;
  padding-right: 4px;
}

.choice-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: #f0f9ff;
}

.choice.off {
  opacity: 0.5;
}

.choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Parça / ödeme satırları */
.money-list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  list-style: none;
  overflow: hidden;
}

.money-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
}

.money-list > li + li {
  border-top: 1px solid #f1f5f9;
}

.money-main .t {
  margin: 0;
  font-weight: 500;
  color: #0f172a;
}

.money-main .d {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.money-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.money-side .amount {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.money-side .linklike {
  margin-left: 2px;
}

/* İndirim / tahsilat kutuları */
.discount-card,
.collect-card {
  margin-bottom: 16px;
  border: 2px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
}

.collect-card {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.discount-card > summary,
.collect-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.discount-card > summary::-webkit-details-marker,
.collect-card > summary::-webkit-details-marker {
  display: none;
}

.discount-card > form,
.collect-card > .collect-body {
  padding: 12px;
  border-top: 1px solid #fde68a;
}

.collect-card > .collect-body {
  border-top-color: #bae6fd;
}

/* details olmadan açık tahsilat kutusu */
.collect-card > .collect-body:first-child {
  border-top: 0;
}

.btn.amber {
  background: #d97706;
}

.btn.amber:hover {
  background: #b45309;
}

.btn.ghost-green {
  border: 1px solid #6ee7b7;
  background: #ecfdf5;
  color: #065f46;
}

.btn.block {
  width: 100%;
  justify-content: center;
}

/* Fotoğraf hücresi ve video */
.photo-cell {
  position: relative;
}

.photo-del {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.video-preview {
  width: 100%;
  max-height: 288px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
}

/* Durum geçmişi */
.log-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.7);
  font-size: 14px;
}

.log-title {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  font-size: 12px;
}

.log-grid dt {
  color: #64748b;
}

.log-grid dd {
  margin: 0;
  font-weight: 500;
  color: #1e293b;
}

.log-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 850px) {
  .detail-grid,
  .sum-grid,
  .log-grid,
  .choice-pair {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .okc-type-grid,
  .okc-filter-grid,
  .okc-form-grid {
    grid-template-columns: 1fr;
  }

  .okc-field.wide {
    grid-column: auto;
  }

  .cargo-list > li,
  .okc-list > li > a {
    align-items: stretch;
    flex-direction: column;
  }

  .cargo-list > li > .btn,
  .okc-form-actions > * {
    width: 100%;
  }

  .business-list-action {
    align-self: flex-start;
  }

  .cargo-print-root {
    padding: 8px 6px 16px;
  }

  .cargo-sheet {
    padding: 14px 12px;
  }

  .cargo-logo.left img {
    height: 40px;
    max-width: 200px;
  }

  .cargo-logo.right img {
    height: 36px;
    max-width: 150px;
  }
}

/* ---------- Tek kolonlu form paneli (müşteri, ayar formları) ---------- */

.form-panel {
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
}

.form-field {
  margin-bottom: 14px;
}

.form-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.vehicle-settings-form .vehicle-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 14px;
}

.vehicle-settings-form .vehicle-form-grid .form-field {
  margin-bottom: 0;
}

.vehicle-settings-form .vehicle-form-grid input {
  width: 100%;
}

.vehicle-settings-form .vehicle-form-options {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr 1fr;
  gap: 14px 16px;
  align-items: stretch;
}

.vehicle-settings-form .vehicle-form-options .form-field {
  margin-bottom: 0;
}

.vehicle-settings-form .vehicle-check {
  margin: 0;
  height: 100%;
  align-items: center;
}

.vehicle-settings-form .actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vehicle-km-summary {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .vehicle-settings-form .vehicle-form-grid,
  .vehicle-settings-form .vehicle-form-options {
    grid-template-columns: 1fr;
  }
}

.user-settings-form .user-perm-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.user-settings-form .user-perm-panel h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.user-settings-form .user-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
}

.user-settings-form .user-perm-check {
  margin: 0;
  min-height: 48px;
  align-items: center;
}

/* Teklif ürünleri: ad / kategori büyük-küçük harf serbest */
.quote-product-settings-form input[type="text"],
.quote-product-settings-form input:not([type]),
.quote-product-settings-form textarea,
.quote-product-settings-form datalist,
.quote-product-settings-form .suggest-field input {
  text-transform: none !important;
}

.quote-product-settings-form input::placeholder {
  text-transform: none !important;
}

.customer-types-warning {
  margin: 0;
  font-size: 14px;
  color: #b45309;
}

.customer-form .actions {
  margin-bottom: 0;
}

.danger-form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.actions.center {
  justify-content: center;
  margin-bottom: 0;
}

.detail-row.wide {
  grid-column: 1 / -1;
}

.link-strong {
  font-weight: 600;
  color: #0369a1;
}

.text-success {
  color: #047857;
  font-weight: 600;
}

.cell-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.cell-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  max-width: 260px;
  color: #475569;
}

/* ---------- Müşteri detayındaki servis kartları (telefon) ---------- */

.ticket-mini-list {
  display: grid;
  gap: 12px;
}

.ticket-mini {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.ticket-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-mini .no {
  margin: 0;
  font-weight: 700;
  color: #0369a1;
}

.ticket-mini .device {
  margin: 4px 0 0;
  font-size: 14px;
  color: #334155;
}

.ticket-mini .sn,
.ticket-mini .mini-foot {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.ticket-mini .complaint {
  margin: 8px 0 0;
  font-size: 14px;
  color: #475569;
}

.ticket-mini .mini-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.ticket-mini .mini-note.ok {
  color: #047857;
  font-weight: 600;
}

/* ---------- Notlar / hatırlatmalar ---------- */

.notes-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.reminder-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.6);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.reminder-toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.reminder-when {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: rgba(254, 252, 232, 0.7);
  padding: 12px;
  margin-bottom: 12px;
}

.reminder-when label {
  margin-bottom: 0;
}

.note-due-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.note-due {
  border: 2px solid #fda4af;
  border-radius: 16px;
  background: #fff1f2;
  padding: 14px;
}

.note-due .tag {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #be123c;
}

.note-due .title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #881337;
}

.note-due .body {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
  color: #9f1239;
}

.note-due .when {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #be123c;
}

.note-due form {
  margin: 0;
}

.note-text {
  min-width: 0;
  flex: 1 1 220px;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-list li {
  border-top: 1px solid #f1f5f9;
  padding: 12px 0;
}

.note-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.note-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.note-title {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.note-body {
  margin: 2px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
  color: #475569;
}

.note-when {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.note-when.due {
  color: #be123c;
}

.note-when.done,
.note-when.plain {
  color: #94a3b8;
  font-weight: 500;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-actions form {
  margin: 0;
}

/* ---------- Ayarlar ana ekranı ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  color: inherit;
  text-decoration: none;
  min-height: 0;
}

.settings-card:hover {
  border-color: #7dd3fc;
  background: rgba(240, 249, 255, 0.5);
}

.settings-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.settings-card small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}

/* ---------- Ayar listeleri (teknik şartname, koşullar) ---------- */

.settings-item-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.settings-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.5);
  padding: 16px;
}

.settings-item form {
  margin: 0;
}

.settings-item form + form {
  margin-top: 8px;
}

.settings-new {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
}

.settings-new-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.check-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.soft-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

/* ---------- Veri temizleme ---------- */

.clear-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.clear-stat {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.clear-stat p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.clear-stat b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #0f172a;
}

.clear-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quote-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Logo kutuları (kabul/teslim ve teklif ayarları) ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.logo-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.6);
  padding: 12px;
}

.logo-box > p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.logo-box img {
  display: block;
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
}

.logo-box small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.logo-box .check-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 500;
}

.logo-box .check-inline input {
  width: 18px;
  height: 18px;
}

.logo-box .check-inline.danger-text {
  color: #be123c;
}

/* ---------- Fiyat modu / seçenek kutuları ---------- */

.mode-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(240, 249, 255, 0.4);
  padding: 14px;
  margin: 0 0 16px;
}

.mode-fieldset legend {
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.mode-fieldset .hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
}

.mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-option {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

.mode-option b {
  display: block;
}

.mode-option small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

/* ---------- Teklif formu ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quote-grid .wide {
  grid-column: 1 / -1;
}

.quote-section-title {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.quote-composer {
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
}

.quote-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quote-composer-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0c4a6e;
}

.quote-composer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quote-composer-grid .wide {
  grid-column: 1 / -1;
}

.quote-composer-grid label {
  margin-bottom: 0;
}

.quote-gift {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding-bottom: 10px;
  font-weight: 500;
}

.quote-price-note {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}

.quote-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.quote-items .head {
  background: #f8fafc;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.quote-items li.item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding: 12px 14px;
}

.quote-items .desc {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  font-size: 16px;
  text-transform: none;
}

.quote-items .gift-tag {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
}

.quote-items .meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
  text-transform: none;
}

.quote-items .row-actions {
  display: flex;
  gap: 8px;
}

.quote-empty {
  margin: 12px 0 0;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 14px;
  color: #64748b;
}

.quote-discount {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  margin-top: 16px;
}

.quote-discount h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.quote-discount .hint {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #64748b;
}

.quote-discount-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-discount-buttons button {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.quote-discount-buttons button.on {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}

.quote-totals {
  margin: 14px 0 0;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  font-size: 14px;
}

.quote-totals div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.quote-totals .discount {
  color: #be123c;
}

.quote-totals .final {
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 700;
  color: #0f172a;
}

/* ---------- Teklif listesi ve detayı ---------- */

.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding: 12px 0;
}

.quote-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.quote-row-main {
  min-width: 0;
  flex: 1 1 240px;
}

.quote-row-main .who {
  margin: 2px 0 0;
  font-size: 14px;
  color: #475569;
}

.quote-row-main .extra {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.quote-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quote-row-actions form {
  margin: 0;
}

.quote-row-actions .total {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.quote-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.quote-summary {
  margin: 0;
  font-size: 14px;
}

.quote-summary .sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.quote-summary dt {
  color: #64748b;
}

.quote-summary dd {
  margin: 0;
  text-align: right;
}

.quote-summary .discount {
  color: #be123c;
}

.quote-summary .final {
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 700;
  color: #0f172a;
}

/* ---------- Ürün seçici (tam ekran, 3 adım) ---------- */

.pick-trigger {
  width: 100%;
  border: 2px dashed #7dd3fc;
  border-radius: 12px;
  background: #f0f9ff;
  padding: 16px 18px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: #0c4a6e;
}

.pick-trigger:hover {
  background: #e0f2fe;
}

.picked-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #7dd3fc;
  border-radius: 12px;
  background: #f0f9ff;
  padding: 14px 16px;
  text-transform: none;
}

.picked-product .name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #082f49;
  text-transform: none;
}

.picked-product .path {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
  text-transform: none;
}

.link-button {
  min-height: 0;
  padding: 0;
  background: none;
  color: #475569;
  font-size: 15px;
  text-decoration: underline;
}

.link-button:hover {
  background: none;
  color: #0f172a;
}

.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  /* Kategori / ürün adları girildiği gibi (büyük-küçük harf) görünsün */
  text-transform: none !important;
}

.picker-overlay input,
.picker-overlay textarea,
.picker-overlay select,
.picker-overlay button,
.picker-overlay ::placeholder {
  text-transform: none !important;
}

.picker-head {
  flex-shrink: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.picker-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.picker-head-row .btn {
  min-height: 48px;
  font-size: 16px;
  padding: 12px 18px;
}

.picker-title {
  min-width: 0;
}

.picker-title .step {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0369a1;
}

.picker-title .name {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-transform: none;
}

.picker-progress {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.picker-progress span {
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: #e2e8f0;
}

.picker-progress span.on {
  background: #0284c7;
}

.picker-search {
  margin-top: 14px;
  min-height: 52px;
  border: 2px solid #bae6fd;
  background: rgba(240, 249, 255, 0.5);
  font-size: 18px;
  padding: 14px 16px;
}

.picker-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.picker-section {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.picker-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 17px;
  color: #64748b;
}

.picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.picker-list li + li {
  border-top: 1px solid #f1f5f9;
}

.picker-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-radius: 0;
  background: #fff;
  padding: 18px 20px;
  text-align: left;
  color: #0f172a;
  font-size: 18px;
}

.picker-list button:hover {
  background: #f0f9ff;
}

.picker-list .t {
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.picker-list .t small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
  text-transform: none;
}

.picker-list .c {
  flex-shrink: 0;
  border-radius: 999px;
  background: #e0f2fe;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #075985;
}

.picker-list .pick {
  flex-shrink: 0;
  border-radius: 10px;
  background: #0284c7;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* Ürün satırı: kategoriden farklı — sol şerit + Seç rozeti */
.picker-list-products button.is-product {
  align-items: flex-start;
  background: #fff;
  border-left: 4px solid #0284c7;
}

.picker-list-products button.is-product .t {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}

.picker-list-products button.is-product:hover {
  background: #f0f9ff;
}

@media (max-width: 900px) {
  .quote-detail-layout {
    grid-template-columns: 1fr;
  }

  .notes-layout,
  .settings-grid,
  .logo-grid,
  .quote-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .quote-composer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clear-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clear-cards,
  .quote-grid.three {
    grid-template-columns: 1fr;
  }

  .reminder-when {
    grid-template-columns: 1fr;
  }

  .cell-clamp {
    max-width: none;
  }
}

@media print {
  .cargo-print-body {
    background: #fff;
  }

  .cargo-print-root {
    padding: 0;
  }

  .cargo-sheet {
    width: 165mm;
    margin: 0;
    padding: 7mm 8mm;
    box-shadow: none;
  }

  .cargo-logo.left img {
    height: 46px;
    max-width: 230px;
  }

  .cargo-logo.right img {
    height: 40px;
    max-width: 180px;
  }

  @page {
    size: A4;
    margin: 10mm;
  }
}

.uncollected-count {
  margin: 0 0 10px;
  font-size: 15px;
  color: #334155;
}

.uncollected-count strong {
  font-size: 18px;
  color: #0f172a;
}

.uncollected-table .table-wrap table {
  min-width: 720px;
}

.uncollected-table .table-wrap th:nth-child(1),
.uncollected-table .table-wrap td:nth-child(1) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.uncollected-table .table-wrap th:nth-child(3),
.uncollected-table .table-wrap td:nth-child(3) {
  white-space: nowrap;
}

.uncollected-phone {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.row-links form {
  display: inline;
  margin: 0;
}

.row-links button.link-danger {
  border: 0;
  background: none;
  padding: 0;
  color: #be123c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.uncollected-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.uncollected-serial {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.uncollected-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.uncollected-card .customer-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.call-timer-box {
  margin-bottom: 16px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: #f0f9ff;
  padding: 16px 18px;
}

.call-timer-box.live {
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.call-timer-box.done {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.call-timer-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.call-timer {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.call-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.call-state.hazir {
  background: #e2e8f0;
  color: #334155;
}

.call-state.devam {
  background: #d1fae5;
  color: #047857;
}

.call-state.bitti {
  background: #e0f2fe;
  color: #075985;
}

.call-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.call-card.devam {
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.call-duration-cell {
  color: #155e75;
  white-space: nowrap;
}

.call-table .table-wrap table {
  min-width: 1080px;
}

.call-table .table-wrap td:nth-child(5),
.call-table .table-wrap td:nth-child(6),
.call-table .table-wrap td:nth-child(7),
.call-table .table-wrap td:last-child,
.call-table .table-wrap th:last-child {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

input.readonly-field {
  background: #f1f5f9;
  color: #0f172a;
  cursor: default;
}

.call-incoming {
  margin: 4px 0 16px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: #f0f9ff;
  padding: 14px 16px;
}

.call-incoming-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #0c4a6e;
}

.call-incoming .muted {
  margin: 0 0 12px;
}

.call-start-wrap {
  margin-top: 8px;
}

.call-start-wrap .btn {
  width: 100%;
}

.call-notes.locked {
  opacity: 0.55;
  pointer-events: none;
}

.call-notes.locked textarea {
  background: #f1f5f9;
  color: #64748b;
}

/* ÖKC tahsilat — detay sayfası (yazdırma ekranında yok) */
.okc-pay-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.okc-pay-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: #334155;
}

.okc-pay-form {
  margin-bottom: 14px;
}

.okc-pay-methods-block {
  margin-bottom: 14px;
}

.okc-pay-panel .okc-pay-methods {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.okc-pay-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.okc-pay-fields .detail-field {
  margin: 0;
}

.okc-pay-submit {
  min-height: 48px;
  align-self: end;
}

@media (max-width: 720px) {
  .okc-pay-fields {
    grid-template-columns: 1fr;
  }

  .okc-pay-submit {
    width: 100%;
  }
}

/* ---------- Dosya indirme merkezi ---------- */

.dl-body {
  background: #f8fafc;
  min-height: 100dvh;
}

.dl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.dl-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dl-brand strong {
  font-size: 15px;
  color: #0f172a;
}

.dl-brand span {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dl-main {
  padding-top: 16px;
  padding-bottom: 40px;
}

.dl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.dl-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dl-tabs a.on {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0369a1;
}

.dl-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dl-file-row:last-child {
  border-bottom: 0;
}

.dl-file-main {
  min-width: 0;
}

.dl-file-main strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.dl-file-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.dl-upload-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 640px) {
  .dl-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-file-row .btn {
    width: 100%;
  }
}

.dl-file-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  max-height: 220px;
  overflow: auto;
}
.dl-file-preview p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #334155;
}
.dl-file-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-file-preview li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
  color: #0f172a;
}
.dl-file-preview li:last-child { border-bottom: 0; }
.dl-file-preview small { color: #64748b; white-space: nowrap; }
.dl-progress {
  margin-top: 12px;
}
.dl-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.dl-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.15s ease;
}
.dl-progress-text {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
}
