:root {
  --bg: #eef2ef;
  --bg-soft: #e4ebe6;
  --card: #fafbf9;
  --text: #1a2e24;
  --text-on-green: #f4f8f5;
  --muted: #5c6f64;
  --line: #d4ddd7;
  /* Nord Frost */
  --frost-0: #8fbcbb;
  --frost-1: #88c0d0;
  --frost-2: #81a1c1;
  --frost-3: #384f6c;
  --green-deep: var(--frost-3);
  --green-mid: var(--frost-2);
  --green-soft: var(--frost-1);
  --green-light: var(--frost-0);
  --green-pale: #d4e4ef;
  --green-tint: #eaf0f6;
  --green-gradient: linear-gradient(155deg, #384f6c 0%, #81a1c1 48%, #88c0d0 100%);
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 8px 28px rgba(42, 69, 56, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

body.calc-view-active .shell {
  max-width: 1280px;
}

body.calc-view-active {
  scrollbar-gutter: stable;
}

@media (min-width: 1000px) {
  body:has(#view_stock:not(.hidden)) .shell,
  body:has(#view_orders:not(.hidden)) .shell,
  body:has(#view_quotes:not(.hidden)) .shell,
  body:has(#view_order_edit:not(.hidden)) .shell,
  body:has(#view_notifications:not(.hidden)) .shell {
    max-width: none;
    width: 100%;
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
  }

  body:has(#view_stock:not(.hidden)) .card,
  body:has(#view_orders:not(.hidden)) .card,
  body:has(#view_quotes:not(.hidden)) .card,
  body:has(#view_order_edit:not(.hidden)) .card:not(.order-edit-card),
  body:has(#view_notifications:not(.hidden)) .notify-card {
    width: 100%;
  }
}

.app-view.hidden {
  display: none !important;
}

/* —— Ana ekran (profesyonel panel) —— */
body:has(#view_home:not(.hidden)) .shell {
  max-width: 720px;
}

.home-pro {
  padding-bottom: 0.75rem;
}

.home-pro .home-hero {
  margin: 0 0 1.25rem;
  padding: 1.5rem 0 0.5rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
}

.home-pro .home-logo {
  width: 112px;
  height: 112px;
}

.home-pro .home-app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
}

.home-pro .home-hero .lead {
  color: var(--muted);
}

.home-pro .menu-grid-app {
  max-width: 680px;
  margin: 0 auto 1.35rem;
  gap: 0.7rem;
}

.home-pro .menu-tile {
  border-radius: 16px;
  padding: 1.1rem 0.6rem 1rem;
  box-shadow: 0 2px 10px rgba(42, 69, 56, 0.07);
}

.menu-tile-quote {
  border-color: rgba(42, 69, 56, 0.22);
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.menu-tile-quote .menu-icon {
  background: rgba(42, 69, 56, 0.1);
  color: var(--green-deep);
}

.menu-tile-muted {
  background: #f8faf9;
}

.menu-tile-muted .menu-icon {
  background: #e8eeeb;
  color: var(--muted);
}

.home-dashboard {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(42, 69, 56, 0.06);
}

.home-dashboard-head {
  margin-bottom: 0.95rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.home-dashboard-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.home-dashboard-sub {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-pro .dash-panel {
  max-width: none;
  margin: 0;
}

.home-pro .stat-card {
  border-radius: 14px;
}

.home-pro .period-grid {
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .home-pro .menu-grid-app {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .home-pro .menu-tile .menu-desc {
    display: none;
  }

  .home-pro .menu-tile {
    padding: 0.95rem 0.5rem;
  }
}

/* —— Ana menü (ortak) —— */
.home-hero {
  text-align: center;
  padding: 2rem 1rem 1.75rem;
  margin: 0 -1rem 0.75rem;
  background: var(--green-gradient);
  border-radius: 0 0 32px 32px;
  color: var(--text-on-green);
  box-shadow: var(--shadow);
}

.home-logo {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.home-app-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-green);
}

.home-hero .eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 248, 245, 0.72);
}

.home-hero h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-hero .lead {
  margin: 0.55rem auto 0;
  max-width: 22rem;
  font-size: 0.9rem;
  color: rgba(244, 248, 245, 0.82);
  line-height: 1.5;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.35rem 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.menu-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(42, 69, 56, 0.12);
  border-color: var(--green-pale);
}

.menu-tile:active {
  transform: translateY(0);
}

.menu-tile-accent {
  border-color: var(--green-pale);
  background: linear-gradient(180deg, #fff 0%, var(--green-tint) 100%);
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-mid);
}

.menu-tile-accent .menu-icon {
  background: var(--green-mid);
  color: var(--text-on-green);
}

.menu-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.menu-desc {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.foot-home {
  margin-top: 0;
  justify-content: center;
  gap: 1.5rem;
}

/* —— Ana ekran istatistik —— */
.menu-grid-home-top {
  margin: 0 auto 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 520px) {
  .menu-grid-home-top {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 760px) {
  .menu-grid-home-top {
    grid-template-columns: repeat(6, 1fr);
    max-width: 980px;
  }
}

.dash-panel {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.stat-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.stat-row-main {
  grid-template-columns: repeat(3, 1fr);
}

.stat-row-tops {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0.85rem;
}

.stat-card-top {
  background: linear-gradient(180deg, #fff 0%, #f6faf8 100%);
}

.stat-card-top:disabled {
  cursor: default;
  opacity: 0.72;
}

.stat-card-top:disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.stat-value-kod {
  font-size: 1.15rem;
  word-break: break-word;
}

.frame-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
  margin: 1rem 0;
}

.frame-detail-grid dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.frame-detail-grid dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--text);
}

.stat-row-alert.hidden {
  display: none !important;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card-accent {
  border-color: var(--green-pale);
  background: linear-gradient(180deg, #fff 0%, var(--green-tint) 100%);
}

.stat-card-warn {
  border-color: #e8c4c4;
  background: linear-gradient(180deg, #fff 0%, #fdf5f5 100%);
}

.stat-card-warn .stat-value {
  color: #9f3d3d;
}

.stat-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  margin: 0.2rem 0 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  line-height: 1.1;
}

.stat-hint {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.stat-card-btn {
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.stat-card-btn:hover {
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 70, 50, 0.08);
}

.stat-card-btn:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 2px;
}

.period-list li.period-click {
  cursor: pointer;
  border-radius: 6px;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  transition: background 0.12s;
}

.period-list li.period-click:hover,
.period-list li.period-click:focus-visible {
  background: var(--green-tint);
  outline: none;
}

.period-list li.period-click:hover strong,
.period-list li.period-click:focus-visible strong {
  color: var(--green-mid);
}

.ac-field {
  display: block;
}

.ac-wrap {
  position: relative;
  display: block;
}

.ac-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 50, 35, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.ac-list li {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ac-list li:first-child {
  border-top: none;
}

.ac-list li strong {
  display: block;
  color: var(--green-deep);
  font-weight: 600;
}

.ac-list li span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.1rem;
}

.ac-list li:hover,
.ac-list li.ac-active {
  background: var(--green-tint);
}

.orders-table .btn-link,
.order-list-actions .btn-link {
  font-size: inherit;
  padding: 0;
  margin-left: 0.35rem;
}

.order-list li {
  align-items: center;
}

.order-list-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.order-edit-card .form-section-title {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.order-edit-card .form-section-title:first-of-type {
  margin-top: 0;
}

#view_order_edit .order-edit-card {
  position: relative;
  z-index: 1;
}

.order-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0.45rem max(0.35rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.order-edit-modal.hidden {
  display: none !important;
}

.order-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 27, 0.48);
  backdrop-filter: blur(4px);
}

.order-edit-modal .order-edit-card {
  width: min(100%, 1180px);
  max-width: min(1180px, calc(100vw - 0.9rem));
  max-height: calc(100dvh - 0.7rem);
  height: calc(100dvh - 0.7rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(196, 211, 201, 0.9);
  border-radius: 14px;
  background: #f8faf7;
  box-shadow: 0 28px 90px rgba(15, 32, 23, 0.32);
  margin: 0 auto;
  padding: 0;
}

#view_order_edit.order-edit-modal .order-edit-card {
  width: min(100%, 1180px);
  max-width: min(1180px, calc(100vw - 0.9rem));
  margin: 0 auto;
}

.edit-modal-body-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 0.45rem;
}

.edit-order-edit-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem 0.45rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f3f7f4 0%, #eef4ef 100%);
}

.edit-order-edit-foot-btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.edit-order-edit-foot .btn {
  width: auto;
  margin: 0;
  min-width: 6.5rem;
}

.edit-order-edit-foot .err,
.edit-order-edit-foot .ok {
  margin: 0;
  font-size: 0.72rem;
}

.edit-modal-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ef 100%);
}

.edit-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.edit-modal-head h2 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.1;
}

.modal-close-btn {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

#view_order_edit .edit-modal-head .hint {
  margin: 0;
  font-size: 0.62rem;
}

#view_order_edit .hint {
  margin: 0 0 0.14rem;
  font-size: 0.66rem;
}

#view_order_edit .form-section-title {
  margin: 0 0 0.28rem;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid rgba(207, 221, 211, 0.75);
  font-size: 0.66rem;
  color: var(--green-deep);
}

#view_order_edit label {
  margin-bottom: 0.14rem;
  font-size: 0.61rem;
  line-height: 1.2;
}

#view_order_edit input,
#view_order_edit select,
#view_order_edit textarea {
  margin-top: 0.08rem;
  padding: 0.22rem 0.34rem;
  border-radius: 6px;
  font-size: 0.72rem;
}

#view_order_edit textarea {
  min-height: 1.55rem;
}

#view_order_edit #edit_cerceve_not {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  max-height: 11rem;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  vertical-align: top;
}

#view_order_edit .row.two {
  gap: 0.28rem 0.4rem;
}

#view_order_edit .mat-row {
  gap: 0.16rem 0.3rem;
  margin-bottom: 0.12rem;
}

#view_order_edit .mat-row .check-inline {
  padding-bottom: 0.2rem;
  font-size: 0.64rem;
}

#view_order_edit .field-full {
  margin-bottom: 0.12rem;
}

#view_order_edit .edit-meta-row {
  margin: 0.12rem 0;
}

#view_order_edit .meta {
  margin: 0;
  font-size: 0.66rem;
}

#view_order_edit .btn {
  padding: 0.3rem 0.6rem;
  min-height: 1.55rem;
}

@media (min-width: 900px) {
  #view_order_edit:not(.edit-single-cerceve) .order-edit-card {
    max-width: min(900px, calc(100vw - 2rem));
    margin: 0 auto;
  }

  #view_order_edit .row.two,
  #view_order_edit .row.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.28rem 0.4rem;
  }

  #view_order_edit .edit-panel .row.two,
  #view_order_edit .edit-panel .row.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.12rem 0.26rem;
  }

  #view_order_edit .mat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  #view_order_edit .edit-panel-details .mat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edit-modal-head {
    padding: 0.45rem 0.65rem;
  }

  .edit-modal-head h2 {
    font-size: 1.08rem;
  }

  #view_order_edit .edit-modal-head .hint {
    font-size: 0.76rem;
  }

  .edit-modal-grid {
    gap: 0.85rem;
  }

  .edit-panel {
    padding: 0.85rem;
    gap: 0.42rem;
  }

  #view_order_edit .form-section-title {
    font-size: 0.72rem;
    margin: 0.12rem 0 0.25rem;
  }

  #view_order_edit label {
    font-size: 0.74rem;
    margin-bottom: 0.22rem;
  }

  #view_order_edit input,
  #view_order_edit select,
  #view_order_edit textarea {
    margin-top: 0.12rem;
    padding: 0.42rem 0.5rem;
    border-radius: 8px;
    font-size: 0.86rem;
  }

  #view_order_edit .edit-panel .row.two,
  #view_order_edit .edit-panel .row.four {
    gap: 0.34rem 0.5rem;
  }

  .edit-order-compact {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .edit-frame-preview {
    max-width: 142px;
  }

  #view_order_edit .frame-preview-label {
    font-size: 0.66rem;
    margin-bottom: 0.18rem;
  }

  #edit_m_adres {
    min-height: clamp(4rem, 12vh, 5.8rem);
  }

  #edit_cerceve_not {
    min-height: clamp(4.5rem, 14vh, 7.5rem);
  }

  #view_order_edit .meta,
  #view_order_edit .hint {
    font-size: 0.76rem;
  }

  #view_order_edit .btn {
    min-height: 2.1rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 899px) {
  .row.four,
  .row.five,
  .row.six,
  .row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .row.four,
  .row.five,
  .row.six,
  .row.three,
  #view_order_edit .row.four {
    grid-template-columns: 1fr;
  }
}

.edit-meta-row {
  align-items: center;
  margin: 0.35rem 0;
}

.edit-modal-top-row {
  display: contents;
}

.edit-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 0.4rem;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.edit-compact-grid {
  display: grid;
  gap: 0.22rem 0.35rem;
  align-items: end;
}

.edit-compact-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .edit-compact-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #view_order_edit.edit-multi-table-only .edit-panel-musteri .edit-compact-4,
  #view_order_edit.edit-multi-table-only .edit-pro-fatura-details .edit-compact-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#view_order_edit .edit-subsection-title {
  margin-top: 0.45rem;
}

.edit-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(207, 221, 211, 0.95);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 59, 45, 0.05);
  overflow: hidden;
}

.edit-panel-details .hint {
  margin-top: 0.35rem !important;
}

.edit-panel-details .btn {
  width: 100%;
}

#view_order_edit .edit-panel .row.four,
#view_order_edit .edit-panel .row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem 0.26rem;
}

#view_order_edit .edit-panel-details .mat-row,
#view_order_edit .edit-panel-details .edit-line-olcu-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

#view_order_edit .edit-panel-details .check-inline {
  justify-content: flex-start;
}

.edit-order-compact {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.34rem;
  align-items: start;
  margin-bottom: 0.08rem;
}

.edit-order-compact:has(.edit-preview-wrap.hidden),
.edit-order-compact:not(:has(.edit-preview-wrap)) {
  grid-template-columns: minmax(0, 1fr);
}

.edit-order-fields {
  min-width: 0;
  width: 100%;
}

.edit-order-ozet-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(61, 122, 82, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6faf7 0%, #eef4ef 100%);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.edit-order-ozet-card strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.88rem;
  color: var(--green-deep);
}

.edit-order-ozet-card .edit-ozet-kalan strong {
  color: #b42318;
}

.edit-order-block {
  margin-bottom: 0.35rem;
}

.edit-order-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.4rem;
  align-items: end;
}

.edit-order-field-label {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.61rem;
  font-weight: 600;
  color: var(--muted);
}

.edit-order-durum-field {
  min-width: 0;
}

.edit-durum-badge {
  display: flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(207, 221, 211, 0.95);
  border-radius: 6px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
}

.edit-tahsil-details {
  margin-top: 0.2rem;
  border: 1px solid rgba(207, 221, 211, 0.85);
  border-radius: 8px;
  background: #fafcf9;
}

.edit-tahsil-details > summary {
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-mid);
  cursor: pointer;
  list-style: none;
}

.edit-tahsil-details > summary::-webkit-details-marker {
  display: none;
}

.edit-tahsil-details > summary::after {
  content: " ▾";
  font-size: 0.75rem;
}

.edit-tahsil-details[open] > summary::after {
  content: " ▴";
}

.edit-tahsil-details .edit-tahsil-block {
  padding: 0 0.5rem 0.45rem;
  border-top: 0;
  margin-top: 0;
}

.edit-order-eser-hint {
  margin: 0 0 0.35rem;
}

#view_order_edit .edit-order-fields .row {
  margin-bottom: 0;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green-mid);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--green-deep);
}

.orders-page-card {
  overflow-x: auto;
  padding: 0.65rem 0.75rem;
}

.orders-table-wrap {
  margin-top: 0.25rem;
  overflow-x: auto;
}

#view_quotes .orders-page-card {
  padding: 0.85rem 1rem 1rem;
}

#view_quotes .orders-table-wrap {
  margin-top: 0.35rem;
}

#view_quotes .orders-table {
  font-size: 0.8rem;
  min-width: min(880px, 100%);
}

#view_quotes .orders-table th,
#view_quotes .orders-table td {
  padding: 0.42rem 0.55rem;
}

#view_quotes .orders-table td:nth-child(2),
#view_quotes .orders-table td:nth-child(4) {
  max-width: 11rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

#view_quotes .orders-table td:nth-child(3) {
  max-width: 9rem;
  white-space: nowrap;
}

#view_quotes .orders-table td:nth-child(7) {
  max-width: 10rem;
  white-space: normal;
}

#view_quotes .order-list-btns {
  white-space: normal;
  min-width: 7.5rem;
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.orders-filter-tabs,
.orders-view-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.orders-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.orders-pill.active,
.orders-pill:hover {
  border-color: var(--green-mid);
  background: var(--green-mid);
  color: #fff;
}

.orders-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.45rem;
}

.order-info-card {
  display: grid;
  grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 38, 28, 0.07);
}

.order-card-preview {
  min-height: 130px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f9fbf7, #eef4ee);
  overflow: hidden;
}

.order-card-preview .frame-preview {
  width: 100%;
  height: auto;
  min-height: 0;
}

.order-card-preview--multi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.order-card-preview--multi .order-card-preview-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(42, 69, 56, 0.12);
  background: #fff;
}

.order-card-preview--multi .order-card-preview-label {
  flex-shrink: 0;
  padding: 0.12rem 0.3rem 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-mid);
  line-height: 1.2;
}

.order-card-preview--multi .order-card-preview-frame {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-card-preview--multi .order-card-preview-frame.frame-preview {
  min-height: 0;
}

.order-card-preview--multi .frame-preview-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 3.35rem;
  object-fit: contain;
}

.quote-order-link {
  margin: 0.15rem 0 0;
}

/* Teklifler kart ızgarası — ayrıntılar quotes-screen.css */

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 38, 28, 0.07);
}

.quote-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.quote-card-head-text {
  min-width: 0;
  flex: 1;
}

.quote-card-head h3 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
  word-break: break-word;
}

.quote-card-tarih {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-gorsel-strip {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quote-gorsel-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-gorsel-grup-baslik {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-gorsel-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.quote-gorsel-item {
  flex: 0 0 auto;
  width: min(168px, 42vw);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f8f6;
}

.quote-gorsel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2ee;
}

.quote-gorsel-opt figcaption {
  padding: 0.35rem 0.45rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-deep);
  word-break: break-word;
}

.quote-gorsel-opt figcaption em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

.quote-gorsel-selected {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(42, 69, 56, 0.22);
}

.quote-gorsel-not-selected img {
  opacity: 0.45;
  filter: grayscale(0.4);
}

.quote-gorsel-opt img.quote-img-missing {
  object-fit: contain;
  background: #eef2ee;
}

.quote-gorsel-opt {
  position: relative;
}

.quote-opt-secim-rozet {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  pointer-events: none;
}

.quote-musteri-secim-banner {
  margin: 0 0 0.85rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(42, 69, 56, 0.2);
  background: linear-gradient(180deg, #f4f8f5 0%, #eef4ef 100%);
}

.quote-musteri-secim-etiket {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.quote-musteri-secim-metin {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.quote-secim-ayrac {
  color: var(--muted);
  font-weight: 400;
}

.quote-musteri-secim-ipucu {
  margin: 0.45rem 0 0 0;
  font-size: 0.75rem;
}

.quote-list-secim {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--green-deep);
  font-weight: 600;
}

.quote-card-actions .quote-prune-btn {
  border-color: var(--line);
}

.quote-gorsel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 0.5rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}

.quote-gorsel-bos {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--green-tint);
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}

.quote-card-ozet {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.quote-card-ozet strong {
  font-size: 1.15rem;
  color: var(--green-deep);
}

.quote-card-line {
  margin: 0;
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.quote-card-line > span:first-child {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quote-card-line > span:last-child {
  word-break: break-word;
}

.quote-card-not > span:last-child {
  font-weight: 500;
}

.quote-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.quote-card-actions .btn {
  width: auto;
  min-width: 5.5rem;
  margin-top: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.quote-card-actions .quote-edit-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--green-deep);
}

.quote-card-editing {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(26, 77, 46, 0.12);
}

.quote-edit-banner {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #eef6f0;
  border: 1px solid #c5dcc9;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #1a4d2e;
  line-height: 1.45;
}

.quote-gorsel-opt.quote-gorsel-editable {
  cursor: pointer;
  position: relative;
}

.quote-gorsel-opt.quote-gorsel-editable:hover {
  border-color: var(--green);
}

.quote-opt-toolbar {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  justify-content: center;
}

.quote-opt-toolbar .btn-link {
  font-size: 0.72rem;
  padding: 0.15rem 0.35rem;
}

.quote-opt-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.quote-opt-del:hover {
  background: #a33;
}

.quote-card-actions .quote-edit-btn.active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.action-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  max-width: min(92vw, 28rem);
  padding: 0.65rem 1.1rem;
  background: #1a4d2e;
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.action-toast.hidden {
  display: none !important;
}

.quote-opt-modal .quote-opt-modal-card {
  width: min(920px, calc(100vw - 1rem));
  max-height: calc(100dvh - 0.85rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-opt-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.35rem 0.75rem 0.5rem;
}

.quote-opt-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .quote-opt-layout {
    grid-template-columns: 1fr;
  }
}

.quote-opt-preview-col {
  position: sticky;
  top: 0;
}

.quote-opt-preview {
  min-height: 100px;
  max-height: min(26vh, 200px);
  background: #f5f2ec;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-opt-layout {
  gap: 0.65rem;
  max-height: 100%;
  overflow: hidden;
}

.quote-opt-modal .finance-modal-foot {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.4rem 0.75rem;
}

.quote-opt-preview .frame-preview-svg {
  width: 100%;
  height: auto;
  display: block;
}

.quote-opt-fiyat-line {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.quote-opt-fiyat-line strong {
  font-size: 1.2rem;
  color: var(--green-deep);
}

.quote-opt-fiyat-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: normal;
  color: #666;
}

.quote-opt-eser-hint {
  margin: 0 0 0.65rem;
}

.quote-opt-section {
  margin-bottom: 0.85rem;
}

.quote-opt-section-title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quote-opt-sr {
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #888;
  font-size: 0.75rem;
}

.quote-opt-picker-grid {
  max-height: 11rem;
}

.quote-opt-picker-grid-sm {
  max-height: 8rem;
}

.quote-opt-select-fallback {
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.quote-opt-more {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.65rem 0.65rem;
  background: #faf9f7;
}

.quote-opt-more summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-deep);
  padding: 0.25rem 0;
}

.quote-opt-more-inner {
  padding-top: 0.5rem;
}

.quote-opt-more-inner .field {
  margin-bottom: 0.55rem;
}

.order-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: flex-start;
}

.order-id {
  display: inline-flex;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.order-card-head h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
}

.order-card-head p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.order-status {
  flex: 0 0 auto;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-status-bekliyor {
  background: #eef2f6;
  color: #4a5f72;
}

.order-status-hazirlaniyor {
  background: #e3f2fb;
  color: #145a82;
}

.order-status-hazir {
  background: #e8f6ea;
  color: #1f5c2c;
}

.order-status-teslim {
  background: #f0ebf8;
  color: #4a3868;
}

.order-status-iptal {
  background: #fdeeee;
  color: #8f3a3a;
}

.order-asama-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.22rem;
  width: 100%;
}

.order-asama-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.26rem 0.12rem;
  border-radius: 7px;
  border: 1px solid rgba(180, 198, 186, 0.85);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-asama-hazirlaniyor.is-done,
.order-asama-hazirlaniyor.is-active {
  background: #e3f2fb;
  border-color: #8ec5ea;
  color: #145a82;
}

.order-asama-hazir.is-done,
.order-asama-hazir.is-active {
  background: #e8f6ea;
  border-color: #8ecf9a;
  color: #1f5c2c;
}

.order-asama-teslim_edildi.is-done,
.order-asama-teslim_edildi.is-active {
  background: #f0ebf8;
  border-color: #c0aed8;
  color: #4a3868;
}

.order-asama-step.is-active {
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(61, 122, 82, 0.28);
}

.order-asama-step.is-done:not(.is-active) {
  opacity: 0.88;
}

.order-asama-step.is-pending {
  background: #f6f8f7;
  color: #8a9690;
  border-color: #dde5e0;
}

.order-asama-track .order-card-durum-btn {
  width: auto;
  max-width: none;
  margin-top: 0;
  padding: 0.28rem 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  font-family: inherit;
}

.order-asama-track .order-card-durum-btn:disabled {
  cursor: default;
  opacity: 0.72;
  filter: saturate(0.55);
}

.order-asama-track .order-card-durum-btn.durum-adim-busy {
  opacity: 0.7;
  pointer-events: none;
}

.order-asama-track .order-card-durum-btn:not(:disabled):hover {
  filter: brightness(0.97);
}

.order-asama-iptal {
  margin: 0;
  padding: 0.28rem 0.45rem;
  border-radius: 7px;
  background: #fdeeee;
  color: #8f3a3a;
  font-size: 0.68rem;
  font-weight: 700;
}

.order-list-durum .order-asama-track {
  margin-bottom: 0.2rem;
}

.order-list-durum .table-sub {
  display: block;
  margin-top: 0.12rem;
}

.order-card-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.16rem;
  margin: 0;
}

.order-card-facts div {
  min-width: 0;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  padding: 0.24rem 0;
  border-bottom: 1px solid rgba(207, 221, 211, 0.65);
}

.order-card-facts div:last-child {
  border-bottom: 0;
}

.order-card-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-card-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card-facts span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.order-card-actions {
  margin-top: 0.15rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.order-card-actions .btn {
  width: auto;
  min-width: 5.5rem;
  margin-top: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
}

.btn-danger {
  background: #fff;
  border-color: #c45c5c;
  color: #9f3d3d;
}

.btn-danger:hover {
  background: #fff5f5;
  border-color: #a84848;
  color: #7a2e2e;
}

.order-list-btns {
  white-space: nowrap;
}

.order-list-btns .order-delete-btn {
  margin-left: 0.35rem;
  color: #9f3d3d;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1760;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.confirm-modal.hidden {
  display: none !important;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 18, 0.55);
  backdrop-filter: blur(3px);
}

.confirm-modal-card {
  position: relative;
  width: min(400px, calc(100vw - 1rem));
  max-height: calc(100dvh - 0.85rem);
  overflow: hidden;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(20, 34, 27, 0.25);
}

.confirm-modal-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--green-deep);
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.confirm-modal-actions .btn {
  width: auto;
  margin-top: 0;
  min-width: 5.5rem;
}

#durum_bildirim_modal.confirm-modal--durum {
  z-index: 1900;
}

.confirm-modal--durum .confirm-modal-card {
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.confirm-modal--durum .confirm-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: #eaf0f6;
  color: #384f6c;
}

.confirm-modal--durum .confirm-modal-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 650;
  color: #1a2332;
}

.confirm-modal-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.confirm-modal-sub {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.confirm-modal-actions--split {
  justify-content: stretch;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.confirm-modal-actions--split .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.48rem 0.75rem;
  font-size: 0.86rem;
}

@media (max-width: 999px) and (min-width: 721px) {
  .orders-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.2;
}

.orders-table th,
.orders-table td {
  padding: 0.24rem 0.36rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.orders-table th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  position: sticky;
  top: 0;
}

.orders-table td:nth-child(3),
.orders-table td:nth-child(2) {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-table .table-sub {
  display: inline-block;
  margin-top: 0.08rem;
  font-size: 0.64rem;
  color: var(--muted);
}

.stock-card {
  padding: 0.75rem;
}

.stock-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.stock-type {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stock-type.active,
.stock-type:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.stock-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.stock-search {
  flex: 1 1 22rem;
  max-width: 34rem;
  margin-bottom: 0;
}

.stock-section {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.stock-section .form-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--green-mid);
}

.stock-table {
  font-size: 0.72rem;
}

.stock-table th,
.stock-table td {
  padding: 0.22rem 0.34rem;
}

.stock-empty {
  color: var(--muted);
  text-align: center !important;
}

.stock-warn {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #fff1d6;
  color: #8a4b00;
  font-size: 0.64rem;
  font-weight: 700;
}

.paspartu-stock-overview {
  display: grid;
  gap: 0.7rem;
  margin: 0.5rem 0 0.75rem;
}

.paspartu-summary-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--green-pale);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-tint), #fff);
}

.paspartu-summary-card strong {
  color: var(--green-deep);
  font-size: 0.9rem;
}

.paspartu-summary-card span {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.4;
}

.paspartu-group-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.paspartu-group-card {
  display: grid;
  gap: 0.22rem;
  justify-items: center;
  min-height: 112px;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.paspartu-group-card:hover,
.paspartu-group-card.active {
  border-color: var(--green-mid);
  box-shadow: 0 10px 22px rgba(45, 102, 82, 0.12);
  transform: translateY(-1px);
}

.paspartu-group-card.active {
  background: var(--green-tint);
}

.paspartu-group-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 10px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.paspartu-group-icon.has-image {
  overflow: visible;
  background: #fff;
  border: 0;
  padding: 0;
}

.paspartu-group-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.paspartu-group-card strong {
  font-size: 0.82rem;
  color: var(--green-deep);
}

.paspartu-group-card small,
.paspartu-group-card span {
  font-size: 0.68rem;
  color: var(--muted);
}

.paspartu-grup-fiyat {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--green-tint);
}

.paspartu-grup-fiyat-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
}

.paspartu-grup-fiyat-inner > div:first-child {
  flex: 1 1 220px;
  min-width: 200px;
}

.paspartu-grup-fiyat-fields {
  flex: 2 1 360px;
  margin: 0;
}

.paspartu-grup-fiyat .warn-text {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #b45309;
}

.stock-slip-thumb {
  display: block;
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.stock-slip-thumb-empty {
  display: inline-block;
}

.stock-group-row td {
  background: var(--green-tint);
  font-weight: 700;
}

.stock-group-row td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stock-group-toggle {
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.stock-child-row td:first-child {
  padding-left: 1.15rem;
}

.paspartu-color-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.paspartu-color-dot {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(39, 61, 49, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.stock-form {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  width: min(920px, calc(100vw - 2rem));
  max-height: min(88vh, 760px);
  overflow: auto;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--green-pale);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(26, 46, 36, 0.28);
}

.stock-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(20, 34, 27, 0.38);
  backdrop-filter: blur(2px);
}

.stock-form label {
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.stock-form input,
.stock-form select {
  margin-top: 0.16rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  font-size: 0.84rem;
}

.stock-form-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  align-items: center;
}

.stock-form-actions-end {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
}

.stock-image-editor {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.65rem;
  align-items: center;
  margin: 0.45rem 0 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.stock-image-preview {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  overflow: hidden;
  background: #fff;
}

.stock-image-preview img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.stock-image-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stock-image-actions .hint {
  flex-basis: 100%;
  margin: 0;
}

.stock-movement-panel {
  margin-top: 0.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.stock-movement-panel h4 {
  margin: 0 0 0.35rem;
}

.stock-movement-panel ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text);
}

.quote-detail-box {
  margin: 0.55rem 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.quote-detail-box ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.setup-test-result {
  margin-top: 0.7rem;
  line-height: 1.45;
}

.setup-test-result ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.mobile-form-section {
  display: none;
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .order-edit-modal {
    padding: 0.45rem 0.45rem calc(4.5rem + env(safe-area-inset-bottom, 0px));
    align-items: start;
  }

  .order-edit-modal .order-edit-card {
    width: calc(100vw - 0.9rem);
    max-height: calc(100dvh - 5.4rem - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    margin-top: 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .edit-modal-grid {
    grid-template-columns: 1fr;
  }

  #view_order_edit .edit-panel-line-home .edit-panel-details {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  #view_order_edit .edit-panel-line-home .edit-panel-details .btn {
    position: sticky;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    box-shadow: 0 10px 24px rgba(42, 69, 56, 0.2);
  }

  #edit_line_modal .edit-panel-details {
    padding-bottom: 0;
  }

  .orders-toolbar {
    align-items: stretch;
  }

  .orders-filter-tabs,
  .orders-view-tabs {
    width: 100%;
  }

  .orders-pill {
    flex: 1 1 auto;
    padding: 0.34rem 0.5rem;
    font-size: 0.72rem;
  }

  .edit-order-compact {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.45rem;
  }

  .edit-frame-preview {
    max-width: 86px;
  }

  .orders-card-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.35rem;
  }

  .orders-page-card {
    padding: 0.45rem 0.5rem 0.55rem;
  }

  .order-info-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(18, 38, 28, 0.06);
  }

  .order-card-preview {
    width: 100%;
    min-height: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    overflow: hidden;
  }

  .order-card-preview:not(.order-card-preview--multi) {
    max-height: none;
  }

  .order-card-preview:not(.order-card-preview--multi) > .frame-preview-svg,
  .order-card-preview:not(.order-card-preview--multi) .frame-preview .frame-preview-svg {
    width: 100%;
    height: auto;
    max-height: 108px;
  }

  .order-card-preview:not(.order-card-preview--multi) .frame-preview {
    width: 100%;
    min-height: 0;
    max-height: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .order-card-preview--multi {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 0.35rem;
    padding: 0.3rem;
    -webkit-overflow-scrolling: touch;
  }

  .order-card-preview--multi .order-card-preview-item {
    flex: 0 0 5.25rem;
    width: 5.25rem;
    min-height: auto;
  }

  .order-card-preview--multi .order-card-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }

  .order-card-preview--multi .frame-preview-svg {
    width: 100%;
    height: auto;
    max-height: 4.5rem;
  }

  .order-card-main {
    gap: 0.35rem;
  }

  .order-card-head {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .order-card-head h3 {
    font-size: 0.875rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .order-card-head p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .order-status {
    font-size: 0.68rem;
    padding: 0.16rem 0.42rem;
  }

  .order-asama-track {
    gap: 0.18rem;
  }

  .order-asama-step,
  .order-asama-track .order-card-durum-btn {
    font-size: 0.62rem;
    padding: 0.22rem 0.1rem;
  }

  .order-card-lines {
    margin: 0.15rem 0 0.3rem;
    padding: 0.28rem 0.38rem;
    font-size: 0.74rem;
  }

  .order-card-lines li {
    padding: 0.2rem 0;
    line-height: 1.35;
  }

  .order-card-facts {
    gap: 0.08rem;
  }

  .order-card-facts div {
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: 0.3rem;
    padding: 0.14rem 0;
  }

  .order-card-facts dt {
    font-size: 0.58rem;
  }

  .order-card-facts dd {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .order-card-facts div:nth-child(5) {
    grid-column: auto;
  }

  .order-card-actions {
    margin-top: 0.05rem;
    gap: 0.35rem;
  }

  .order-card-actions .btn {
    min-width: 0;
    padding: 0.34rem 0.65rem;
    font-size: 0.74rem;
  }

  .stock-toolbar {
    display: block;
  }
  .stock-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .paspartu-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-image-editor {
    grid-template-columns: 1fr;
  }
  .stock-form {
    width: calc(100vw - 1rem);
    max-height: 92vh;
    padding: 0.65rem;
  }
  .mobile-form-section {
    display: block;
  }
}

.orders-table tbody tr:hover {
  background: var(--green-tint);
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.period-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}

.period-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.period-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.period-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-top: 1px solid var(--line);
}

.period-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.period-list span {
  color: var(--muted);
}

.period-list strong {
  color: var(--green-deep);
  font-weight: 600;
}

/* —— Uygulama üst başlığı —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header,
.subnav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 -1rem 0.65rem;
  padding: 0.45rem 1rem;
  padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
  background: transparent;
  border: none;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header.hidden,
.subnav.hidden {
  display: none !important;
}

.app-header-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.app-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(42, 69, 56, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  color: var(--green-deep);
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(42, 69, 56, 0.08);
}

.app-header-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.app-header-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--green-soft);
  box-shadow: 0 4px 14px rgba(42, 69, 56, 0.12);
}

.app-header-btn:active {
  transform: scale(0.94);
}

.app-header-title,
.subnav-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

.card-narrow {
  max-width: 400px;
  margin: 1rem auto 0;
}

.login-card .login-foot-hint code {
  font-size: 0.72rem;
  word-break: break-all;
}

.login-err {
  margin-top: 0.65rem;
}

.pricing-rules-section {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.pricing-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.45rem 0 0.5rem;
}

.pricing-rule-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  align-items: end;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.pricing-rule-row .pricing-rule-field {
  margin: 0;
  font-size: 0.72rem;
}

.pricing-rule-row .pricing-rule-field input,
.pricing-rule-row .pricing-rule-field select {
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

.pricing-rule-sil {
  grid-column: 1 / -1;
  justify-self: end;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding: 0.2rem 0.55rem;
  line-height: 1.2;
}

.pricing-rule-ekle {
  width: auto;
  max-width: max-content;
  margin-top: 0.15rem;
}

.pricing-ozet-wrap {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--green-tint);
  border: 1px solid var(--green-pale);
}

.gy-upload-hint {
  margin: 0.5rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--green-tint);
  border: 1px solid var(--green-pale);
  color: var(--green-deep);
  font-size: 0.8rem;
  line-height: 1.45;
}

.pricing-ozet {
  margin: 0.35rem 0 0;
  white-space: pre-line;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--green-deep);
}

.launch-pricing-body .form-section-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.82rem;
}

.launch-pricing-body .form-section-title:first-child {
  margin-top: 0;
}

@media (min-width: 640px) {
  .pricing-rule-row {
    grid-template-columns: 1.1fr 1.1fr 0.9fr 0.75fr 0.75fr auto;
    align-items: end;
  }

  .pricing-rule-sil {
    grid-column: auto;
    align-self: center;
  }
}

.app-header-user {
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.app-header-user-btn.app-header-btn--open {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--green-soft);
  box-shadow: 0 4px 14px rgba(42, 69, 56, 0.14);
}

.app-header-user-pop {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 1.5rem));
  padding: 0.65rem 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(42, 69, 56, 0.14);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(42, 69, 56, 0.16);
  backdrop-filter: blur(10px);
}

.app-header-user-pop-head {
  padding: 0.35rem 0.55rem 0.55rem;
  border-bottom: 1px solid rgba(42, 69, 56, 0.1);
  margin-bottom: 0.35rem;
}

.app-header-user-atolye {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.3;
  word-break: break-word;
}

.app-header-user-email {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #666);
  line-height: 1.35;
  word-break: break-all;
}

.app-header-user-logout {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #9a2b2b;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.app-header-user-logout:hover {
  background: rgba(154, 43, 43, 0.08);
}

.panel-user-guest,
.panel-user-signed {
  display: block;
}

.panel-user-guest.hidden,
.panel-user-signed.hidden {
  display: none !important;
}

.panel-user-guest-lead {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-deep);
}

.panel-user-guest-hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--muted, #666);
  line-height: 1.35;
}

.panel-user-field {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #666);
}

.panel-user-field input {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
}

.panel-user-err {
  margin: 0 0 8px;
  font-size: 0.78rem;
}

.app-header-user-action {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbf9;
  color: var(--green-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.app-header-user-action:hover {
  background: var(--green-tint);
  border-color: var(--green-soft);
}

.app-header-user-action.primary {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
  text-align: center;
}

.app-header-user-action.primary:hover {
  filter: brightness(1.05);
}

.app-header-user-pop {
  min-width: 240px;
}

/* Küçük araç çubuğu butonları form genişliğini almasın */
.btn.btn-sm {
  width: auto;
  max-width: max-content;
  margin-top: 0;
}

.badge-soon {
  text-align: center;
  margin-top: 1rem !important;
  padding: 0.5rem;
  background: var(--green-tint);
  border-radius: 10px;
  color: var(--green-mid) !important;
}

.view-import-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}
.compact-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.view-import-jump {
  margin: 0;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: center;
}
.view-import-jump [aria-hidden="true"] {
  color: var(--muted, #888);
}

/* —— Kompakt form sayfaları (içe aktar, ayarlar) —— */
.compact-form-view {
  max-width: 52rem;
}
.compact-form-view .card,
.compact-form-view .catalog-card {
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
}
.compact-form-view .view-import-head {
  margin-top: 0;
  padding: 0.5rem 0.75rem;
}
.compact-form-view .card h2,
.compact-form-view .form-section-title {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
}
.compact-form-view .hint,
.compact-form-view .compact-hint {
  margin: 0.15rem 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
}
.compact-form-view label {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
}
.compact-form-view input,
.compact-form-view select,
.compact-form-view textarea {
  margin-top: 0.12rem;
  padding: 0.32rem 0.48rem;
  font-size: 0.84rem;
  border-radius: 8px;
}
.compact-form-view .dense-row {
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}
.compact-form-view .compact-grid.compact-span-2,
.compact-form-view .compact-span-2 {
  grid-column: span 2;
}
.compact-form-view .compact-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem 0.5rem;
  margin: 0.25rem 0 0.15rem;
}
.compact-form-view .compact-toolbar .file-label,
.compact-form-view .compact-file {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 18rem;
  margin: 0;
}
.compact-form-view .compact-toolbar .file-label input[type="file"],
.compact-form-view .compact-file input[type="file"] {
  margin-top: 0.12rem;
  font-size: 0.78rem;
}
.compact-form-view .compact-toolbar .btn,
.compact-form-view .compact-actions .btn {
  width: auto;
  margin: 0;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.compact-form-view .compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.compact-form-view .gorsel-upload-block.compact-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line, #e5e7eb);
}
.compact-form-view .gorsel-upload-block.compact-inline .gorsel-strip-preview {
  max-height: 2.5rem;
  margin: 0;
}
.compact-form-view .gorsel-upload-block.compact-inline .ok {
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
}
.compact-form-view .detay-onizleme {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  min-height: 0;
}
.compact-form-view .detay-stok-metre {
  margin: 0.1rem 0 0.25rem;
  font-size: 0.75rem;
}
.compact-form-view .price-list-preview-wrap {
  margin-top: 0.45rem;
  max-height: 280px;
}
.compact-form-view .ok,
.compact-form-view .err {
  margin-top: 0.35rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.78rem;
}
html.design-gentelella .compact-form-view .card {
  padding: 0.55rem 0.75rem;
}
html.design-gentelella .compact-form-view .card h2 {
  margin-bottom: 0.3rem;
}
html.design-gentelella .compact-form-view label {
  margin-bottom: 0.25rem;
}
html.design-gentelella .compact-form-view input,
html.design-gentelella .compact-form-view select,
html.design-gentelella .compact-form-view textarea {
  padding: 0.32rem 0.48rem;
  font-size: 0.84rem;
}
html.design-gentelella .compact-form-view .btn,
html.design-gentelella .compact-form-view .card > .btn.primary:only-of-type,
html.design-gentelella .compact-form-view .form-card > .btn:not(.btn-sm) {
  width: auto;
  min-height: 2rem;
  margin-top: 0;
}
html.design-gentelella .compact-form-view .compact-toolbar .btn {
  min-height: 2rem;
}

@media (max-width: 640px) {
  .compact-form-view .compact-span-2 {
    grid-column: span 1;
  }
  .compact-form-view .row.four.dense-row,
  .compact-form-view .row.three.dense-row {
    grid-template-columns: 1fr 1fr;
  }
}

.price-list-preview-wrap {
  margin-top: 0.75rem;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
}
.price-list-preview-table {
  width: 100%;
  font-size: 0.88rem;
}
.price-list-preview-table th,
.price-list-preview-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.price-list-aksiyon--yeni { color: var(--green-mid, #2d6a4f); }
.price-list-aksiyon--guncelle { color: #b45309; }
.price-list-aksiyon--atla { color: #6b7280; }

/* —— Üst bant (eski hesap sayfası) —— */
.hero {
  margin: 0 -1rem 1.25rem;
  padding: 1.75rem 1.25rem 2rem;
  background: var(--green-gradient);
  border-radius: 0 0 28px 28px;
  color: var(--text-on-green);
  box-shadow: var(--shadow);
}

.hero .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 248, 245, 0.75);
}

.hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: rgba(244, 248, 245, 0.85);
  max-width: 36rem;
}

.grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1.12fr 0.88fr;
}

body.calc-view-active .grid {
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, 0.95fr);
  align-items: start;
}

.calc-mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0.55rem;
  border: 1px solid #dbe5dd;
  border-radius: 12px;
  background: #fff;
}

.calc-chip {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.34rem 0.6rem;
  cursor: default;
}

.calc-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.calc-subchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: -0.2rem 0 0.75rem;
  padding: 0 0.55rem;
}

.calc-subchips.hidden {
  display: none !important;
}

.calc-subchip {
  font-size: 0.7rem;
  padding: 0.3rem 0.55rem;
}

.calc-subchips-paspartu {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.65rem 0 0.75rem;
  padding: 0.55rem;
  border: 1px solid #dbe5dd;
  border-radius: 12px;
  background: #fff;
}

.calc-subchips-paspartu .calc-subchips-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.calc-paspartu-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.55rem;
}

.calc-paspartu-inline .field {
  flex: 1 1 8rem;
  min-width: 0;
  margin: 0;
}

.calc-paspartu-inline .field-sm {
  flex: 0 1 5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.form-card h2.sub {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.mat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.55rem 0.35rem;
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  background: #fff;
}

.mat-row .field {
  flex: 1 1 8.5rem;
  min-width: 0;
  margin-bottom: 0;
}

.mat-row .field-sm {
  flex: 0 1 5.5rem;
}

.mat-row .check-inline {
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0;
}

.mat-row .check-inline input {
  width: auto;
  margin: 0;
  accent-color: var(--green-mid);
}

.frame-picker {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--green-pale);
}

.picker-card {
  margin-top: 0.8rem;
  padding: 0.7rem;
  border: 1px solid #dbe5dd;
  border-radius: 14px;
  background: #fff;
}

.picker-tabs-wrap {
  margin-bottom: 0.5rem;
}

.picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.picker-cerceve-filters,
.picker-cerceve-renk-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0;
}

.picker-cerceve-filters.hidden,
.picker-cerceve-renk-filters.hidden {
  display: none !important;
}

.picker-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}

.picker-filter:hover {
  border-color: var(--green-soft);
  color: var(--green-deep);
}

.picker-filter.active {
  background: var(--green-tint);
  border-color: var(--green-mid);
  color: var(--green-deep);
}

.picker-renk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.45rem 0.2rem 0.28rem;
}

.picker-renk-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.picker-renk-chip.active .picker-renk-swatch {
  box-shadow: 0 0 0 2px var(--green-mid);
}

.frame-picker-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.picker-tab {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fbf9;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.picker-tab.active {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}

.picker-panel {
  display: none;
}

.picker-panel.active {
  display: block;
}

.calc-step-hidden {
  display: none !important;
}

.frame-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.frame-picker-head .form-section-title {
  margin: 0;
  font-size: 0.66rem;
}

.frame-picker-head .hint {
  margin: 0;
  font-size: 0.66rem;
  white-space: nowrap;
}

.picker-group-hint {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.frame-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: 0.35rem;
  max-height: 21.6rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 0.15rem 0.15rem 0.25rem;
}

.frame-pick {
  display: grid;
  gap: 0.18rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}

.frame-pick:hover,
.frame-pick.active {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 2px rgba(61, 99, 82, 0.14);
}

.frame-pick-img {
  display: block;
  height: 2.05rem;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #d6c6a8, #8f7654);
}

.frame-pick-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.gorsel-protected,
.gorsel-protected-img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gorsel-protected .frame-pick-img {
  position: relative;
}

.gorsel-protected .frame-pick-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -32deg,
    rgba(255, 255, 255, 0) 0 18px,
    rgba(255, 255, 255, 0.07) 18px 19px
  );
}

.frame-preview-wrap {
  position: relative;
}

.fp-eser-persist {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
}

.fp-eser-persist.hidden {
  display: none !important;
}

.fp-glass-layer {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
}

.fp-glass-layer.hidden {
  display: none !important;
}

/* Düz cam — belirgin yansıma bandı (karşı / üst ortam) */
.fp-glass-layer.fp-glass-duz {
  background:
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.16) 16%,
      rgba(255, 255, 255, 0) 34%
    ),
    linear-gradient(
      328deg,
      rgba(190, 210, 230, 0.2) 0%,
      rgba(190, 210, 230, 0) 32%
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Mat cam — çok hafif pus / düşük yansıma */
.fp-glass-layer.fp-glass-mat {
  background: rgba(248, 250, 252, 0.055);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  .fp-glass-layer.fp-glass-duz {
    animation: fp-glass-sheen 10s ease-in-out infinite;
  }
}

@keyframes fp-glass-sheen {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

#cerceve_onizleme .fp-frame-host {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.frame-preview-wrap.gorsel-protected .preview-watermark-inframe {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.frame-preview-wrap.gorsel-protected.watermark-capture-flash .preview-watermark-inframe {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 25;
  max-width: 92%;
}

.frame-preview-wrap.gorsel-protected.watermark-capture-flash .preview-watermark-inframe .preview-watermark-logo {
  opacity: 0.72;
  width: min(52%, 4.25rem);
  max-height: 3rem;
}

.frame-preview-wrap.gorsel-protected.watermark-capture-flash .preview-watermark-inframe .preview-watermark-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.62rem, 2.8vw, 0.82rem);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.frame-preview-wrap.gorsel-protected.watermark-capture-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: repeating-linear-gradient(
    -28deg,
    rgba(255, 255, 255, 0) 0 42px,
    rgba(255, 255, 255, 0.07) 42px 43px
  );
}

.frame-preview-wrap.gorsel-protected .fp-eser-persist {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.calc-view-active #calc_summary .frame-preview,
#cerceve_onizleme.frame-preview {
  position: relative;
}

.frame-preview-art-ui {
  position: absolute;
  z-index: 6;
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
}

/* Fotoğraf yok: ikonlar ortada, bilgi altında, filigran en altta */
.frame-preview-wrap:not(.has-eser-photo) .frame-preview-art-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.preview-watermark-inframe {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: 86%;
  pointer-events: none;
  z-index: 1;
}

.preview-watermark-inframe .preview-watermark-logo {
  display: block;
  width: min(42%, 2.75rem);
  max-width: 100%;
  height: auto;
  max-height: 2.25rem;
  object-fit: contain;
  opacity: 0.32;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.preview-watermark-inframe .preview-watermark-label {
  font-size: clamp(0.48rem, 2.2vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  word-break: break-word;
}

.frame-preview-art-ui .eser-foto-actions-preview {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0;
  gap: 0.6rem;
  transform: none;
  pointer-events: auto;
  flex-shrink: 0;
}

.frame-preview-wrap.has-eser-photo .frame-preview-art-ui {
  display: block;
  padding: 0;
}

.frame-preview-wrap.has-eser-photo .frame-preview-art-ui .eser-foto-actions-preview,
.frame-preview-wrap.has-eser-photo #eser_foto_kamera,
.frame-preview-wrap.has-eser-photo #eser_foto_dosya {
  display: none !important;
}

.frame-preview-wrap:not(.has-eser-photo) #eser_foto_kaldir,
.frame-preview-wrap.has-eser-photo #eser_foto_kaldir.is-hidden {
  display: none !important;
}

.frame-preview-wrap.has-eser-photo #preview_frame_actions .preview-frame-action-rm:not(.is-hidden) {
  display: inline-flex !important;
}

.preview-frame-actions {
  position: absolute;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  pointer-events: auto;
  margin: 0;
  padding: 0;
}

.preview-frame-actions.is-hidden {
  display: none !important;
  pointer-events: none;
}

.preview-frame-action {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem;
  min-height: 2.15rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c62828 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.preview-frame-action::before {
  display: none !important;
}

.preview-frame-action:hover,
.preview-frame-action:focus-visible {
  background: #b71c1c !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  transform: scale(1.04);
}

.preview-frame-action .eser-foto-icon-svg-sm {
  width: 1.05rem !important;
  height: 1.05rem !important;
  transform: none !important;
  filter: none !important;
  stroke: #fff;
}

.preview-frame-action:hover .eser-foto-icon-svg-sm,
.preview-frame-action:focus-visible .eser-foto-icon-svg-sm {
  transform: none !important;
}

.preview-frame-action-fav::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(12, 14, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  z-index: 12;
}

.preview-frame-action-fav:hover::after,
.preview-frame-action-fav:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.preview-frame-action-rm::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(12, 14, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  z-index: 12;
}

.preview-frame-action-rm:hover::after,
.preview-frame-action-rm:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.preview-frame-action-fav.is-saved .eser-foto-fav-icon {
  fill: #fff;
  stroke: #fff;
}

.preview-frame-action-fav.needs-login {
  color: #fff;
}

.preview-frame-action.is-hidden {
  display: none !important;
  pointer-events: none;
}

.begendiklerim-block {
  margin-top: 0.65rem;
}

.begendiklerim-hint {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

.begendiklerim-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
}

.begendiklerim-item {
  position: relative;
  flex: 0 0 auto;
  width: 4.6rem;
  scroll-snap-align: start;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.begendiklerim-item:hover,
.begendiklerim-item:focus-visible {
  border-color: rgba(240, 107, 122, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.begendiklerim-item.is-active {
  border-color: #f06b7a;
}

.begendiklerim-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #2a3036;
}

.begendiklerim-item figcaption {
  display: block;
  padding: 0.2rem 0.25rem 0.28rem;
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.begendiklerim-item-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.1rem;
  height: 1.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.82);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.begendiklerim-item:hover .begendiklerim-item-rm,
.begendiklerim-item:focus-within .begendiklerim-item-rm {
  opacity: 1;
}

body.calc-view-active #calc_summary .frame-preview-wrap {
  position: relative;
  overflow: visible;
}

.begendiklerim-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.begendiklerim-block-head .begendiklerim-hint {
  margin: 0;
  flex: 1 1 auto;
}

.begendiklerim-open-page {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.btn.calc-save-not-ready {
  opacity: 0.62;
}

.app-sidebar-badge {
  margin-left: auto;
  min-width: 1.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(240, 107, 122, 0.22);
  color: #ffb8c2;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.begendiklerim-page-card {
  max-width: 980px;
  margin: 0 auto;
}

.begendiklerim-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.begendiklerim-page-head h2 {
  margin: 0 0 0.25rem;
}

.begendiklerim-page-empty {
  margin: 0.5rem 0 0;
}

.begendiklerim-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.begendiklerim-page-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
}

.begendiklerim-page-item.is-active {
  border-color: #f06b7a;
}

.begendiklerim-page-load {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.begendiklerim-page-load img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #2a3036;
}

.begendiklerim-page-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.5rem;
  color: #f06b7a;
  background: #2a3036;
}

.begendiklerim-page-meta {
  padding: 0.45rem 0.5rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.3;
}

.begendiklerim-page-meta strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.76rem;
}

.begendiklerim-page-meta span {
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.begendiklerim-page-rm {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.82);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.frame-preview-art-ui .eser-foto-icon-btn {
  width: clamp(2.35rem, 11vw, 2.85rem);
  height: clamp(2.35rem, 11vw, 2.85rem);
}

.frame-preview-art-ui .eser-foto-icon-svg {
  width: 1.55rem;
  height: 1.55rem;
}

.frame-preview-art-ui .eser-foto-icon-svg-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.eser-foto-status-inframe {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 0.2rem;
  text-align: center;
  font-size: clamp(0.58rem, 2.4vw, 0.74rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  max-width: 92%;
  pointer-events: none;
}

.eser-foto-status-inframe.err {
  color: #fecaca;
}

.frame-preview-wrap.has-eser-photo .eser-foto-status-inframe:not(.err) {
  display: none;
}

.frame-preview-wrap.gorsel-protected {
  position: relative;
}

.preview-watermark-overlay {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 72%;
  pointer-events: none;
}

.preview-watermark-logo {
  display: block;
  width: min(34%, 5.5rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.1;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.preview-watermark-label {
  font-size: clamp(0.58rem, 1.6vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.11);
  background: transparent;
  text-shadow: none;
}

.frame-preview-wrap.gorsel-protected .frame-preview,
.frame-preview-wrap.gorsel-protected .frame-preview-svg {
  pointer-events: auto;
}

.frame-pick-img-empty {
  background: repeating-linear-gradient(45deg, #d8c8a8 0 7px, #bda782 7px 14px);
}

.frame-pick-img-swatch {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.frame-pick-kod {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
}

.frame-pick.calc-guest-unlock-all {
  border-style: dashed;
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.frame-pick.calc-guest-unlock-all .calc-guest-unlock-all-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--green-deep);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.frame-pick.calc-guest-unlock-all .frame-pick-kod {
  font-size: 0.58rem;
  line-height: 1.2;
  white-space: normal;
  font-weight: 600;
}

.field-full {
  display: block;
  margin-bottom: 0.65rem;
}

textarea {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  resize: vertical;
  min-height: 2.6rem;
}

textarea:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(61, 99, 82, 0.15);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.col { min-width: 0; }

.check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.check input {
  width: auto;
  margin: 0;
  accent-color: var(--green-mid);
}

.indent { margin-bottom: 0.55rem; }
.hidden { display: none !important; }

.hint {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-code-combo {
  position: relative;
  width: 100%;
  margin-top: 0.28rem;
}

.catalog-code-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.catalog-code-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-code-input:focus {
  outline: none;
  border-color: var(--green-mid, #3d6b52);
  box-shadow: 0 0 0 2px rgba(46, 125, 79, 0.22);
}

.catalog-code-dropdown {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 11.5rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(20, 40, 28, 0.14);
}

.catalog-code-dropdown.hidden {
  display: none !important;
}

.catalog-code-dropdown-item {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
  gap: 0.35rem;
  width: 100%;
  padding: 0.32rem 0.45rem;
  border: none;
  border-bottom: 1px solid #eef2ee;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.catalog-code-dropdown-item:last-child {
  border-bottom: none;
}

.catalog-code-dropdown-item:hover,
.catalog-code-dropdown-item.is-active {
  background: #eef6f0;
}

.catalog-code-dropdown-kod {
  font-weight: 700;
  color: #1e4a32;
}

.catalog-code-dropdown-label {
  color: #4a5c52;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-code-dropdown-empty {
  padding: 0.4rem 0.5rem;
  font-size: 0.72rem;
  color: #6a7a70;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(61, 99, 82, 0.15);
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.row.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.row.five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.row.six {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.row.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.dense-row > label {
  min-width: 0;
}

.detay-stok-metre {
  margin: 0.15rem 0 0.5rem;
  font-weight: 500;
  color: var(--green-mid);
}

.detay-onizleme {
  margin: 0.65rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--green-mid);
  line-height: 1.45;
  min-height: 1.25rem;
}

.catalog-card {
  margin-top: 0.85rem;
}

.file-label input[type="file"] {
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  border: none;
  font-size: 0.85rem;
}

.btn {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.62rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--green-mid);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--green-deep);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--green-tint);
}

.btn:active { transform: scale(0.99); }

.btn.primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--text-on-green);
  box-shadow: 0 4px 14px rgba(56, 79, 108, 0.22);
}

.btn.primary:hover {
  background: #4a6280;
  border-color: #4a6280;
}

/* —— Sonuç kartı —— */
.summary {
  background: linear-gradient(180deg, #fafbf9 0%, var(--green-tint) 100%);
  border-color: var(--green-pale);
}

body.calc-view-active #calc_summary.summary {
  --preview-stage-label: #a8b2bc;
  --preview-stage-hint: #9aa5b0;
  --preview-icon: #e8f5ec;
  --preview-icon-hover: #ffffff;
  --summary-text: #d0d6dc;
  --summary-muted: #9aa5b0;
  --summary-accent: #9fd4b8;
  --summary-price: #f5f8f6;
  --summary-line: rgba(255, 255, 255, 0.11);
  background: linear-gradient(165deg, #3a4046 0%, #2f3439 45%, #25292e 100%);
  border-color: #434b54;
  color: var(--summary-muted);
  box-shadow: 0 10px 32px rgba(12, 15, 18, 0.28);
}

body.calc-view-active .summary {
  padding: 1.25rem 1.3rem;
  order: 1;
}

body.calc-view-active #calc_summary .eyebrow {
  color: var(--summary-accent);
}

.quote-modal-card {
  --summary-text: #d0d6dc;
  --summary-muted: #9aa5b0;
  --summary-accent: #9fd4b8;
  --summary-price: #f5f8f6;
  --summary-line: rgba(255, 255, 255, 0.11);
}

.quote-modal-card .price {
  color: var(--summary-price);
}

.quote-modal-card .meta {
  color: var(--summary-muted);
}

.quote-modal-card #indirim_ozet {
  color: var(--summary-accent);
}

.quote-modal-card #not_ozet {
  color: var(--summary-text);
}

.quote-modal-card .lines {
  color: var(--summary-muted);
}

.quote-modal-card .lines li {
  border-top-color: var(--summary-line);
}

.quote-modal-card .lines li span {
  color: var(--summary-text);
}

.quote-modal-card .lines li strong {
  color: var(--summary-price);
}

.quote-modal-card .quote-detail-box {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--summary-text);
}

.quote-modal-card .quote-detail-box strong {
  color: var(--summary-price);
  font-weight: 600;
}

.quote-modal-card .quote-detail-box ul {
  color: var(--summary-muted);
}

.quote-modal-card .save-block {
  border-top-color: var(--summary-line);
}

.quote-modal-card .save-block .form-section-title {
  color: var(--summary-accent);
}

.quote-modal-card .save-block label {
  color: #b8c4cc;
}

.quote-modal-card .save-block .hint {
  color: var(--summary-muted);
}

.quote-modal-card .save-block input,
.quote-modal-card .save-block select,
.quote-modal-card .save-block textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #b8c4cc;
  color: var(--text);
}

.quote-modal-card .save-block input::placeholder,
.quote-modal-card .save-block textarea::placeholder {
  color: #7a8a82;
}

.quote-modal-card .save-block .btn {
  background: linear-gradient(155deg, #4a8f6a 0%, #5fa880 100%);
  border-color: #6fbf92;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.quote-modal-card .save-block .btn:hover {
  background: linear-gradient(155deg, #56a078 0%, #6eb892 100%);
  border-color: #7ec99f;
  color: #fff;
}

.quote-modal-card .ok {
  color: var(--summary-accent);
}

.quote-reopen {
  margin: 0.5rem 0 0;
  text-align: center;
}

.quote-reopen-btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(159, 212, 184, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--summary-accent, #9fd4b8);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quote-reopen-btn:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(159, 212, 184, 0.7);
}

/* —— Modallar: tek ekrana sığar (dış kaydırma yok) —— */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.app-modal.hidden {
  display: none !important;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 18, 0.62);
  backdrop-filter: blur(5px);
}

.app-modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 420px);
  max-height: calc(100dvh - 0.85rem);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.app-modal-card-wide {
  width: min(96vw, 920px);
}

.app-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--summary-line, var(--line));
}

.app-modal-head-text {
  min-width: 0;
}

.app-modal-head h2,
.app-modal-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-modal-head .hint {
  margin: 0.1rem 0 0;
  font-size: 0.65rem;
  line-height: 1.25;
}

.app-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.45rem 0.65rem;
}

.app-modal-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-top: 1px solid var(--summary-line, var(--line));
}

.app-modal-foot .btn {
  width: auto;
  margin: 0;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* —— Panel form modalları (kullanıcı / hesabım): açık tema, okunaklı etiketler —— */
.panel-form-modal .app-modal-backdrop {
  background: rgba(15, 23, 20, 0.55);
  backdrop-filter: blur(8px);
}

.panel-form-modal .panel-form-card {
  width: min(96vw, 480px);
  background: #ffffff;
  color: #1a2e26;
  border: 1px solid rgba(46, 97, 74, 0.18);
  box-shadow:
    0 24px 48px rgba(12, 28, 22, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.panel-form-modal .panel-form-head {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e4ebe6;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.panel-form-modal .panel-form-head h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #143528;
  letter-spacing: -0.02em;
}

.panel-form-modal .panel-form-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5a6f66;
}

.panel-form-modal .panel-form-close {
  color: #3d5c4f;
  background: #eef4f0;
  border: 1px solid #d5e3db;
}

.panel-form-modal .panel-form-body {
  overflow-y: auto;
  padding: 1rem 1.15rem 1.1rem;
  background: #ffffff;
}

.panel-form-modal .panel-field {
  margin-bottom: 1rem;
}

.panel-form-modal .panel-field:last-of-type {
  margin-bottom: 0.35rem;
}

.panel-form-modal .panel-field-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2d4a3e;
}

.panel-form-modal .panel-field-required {
  color: #b54a4a;
  font-weight: 800;
  text-transform: none;
}

.panel-form-modal .panel-field-hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b7f76;
}

.panel-form-modal .panel-field-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1a2e26;
  background: #f9fbfa;
  border: 1px solid #c8d9d0;
  border-radius: 10px;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.panel-form-modal .panel-field-input::placeholder {
  color: #8a9d94;
  opacity: 1;
}

.panel-form-modal .panel-field-input:hover {
  border-color: #9fb5a8;
}

.panel-form-modal .panel-field-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #3d7a5c;
  box-shadow: 0 0 0 3px rgba(61, 122, 92, 0.2);
}

.panel-form-modal .panel-field-check {
  padding: 0.65rem 0.75rem;
  background: #f4f8f6;
  border: 1px solid #dce8e2;
  border-radius: 10px;
}

.panel-form-modal .panel-check-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a2e26;
  cursor: pointer;
}

.panel-form-modal .panel-check-label input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #2e6b4f;
}

.panel-form-modal .panel-field-check .panel-field-hint {
  margin: 0.4rem 0 0 1.6rem;
}

.panel-form-modal .panel-form-ok,
.panel-form-modal .panel-form-err {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.panel-form-modal .panel-form-ok {
  color: #1e5638;
  background: #e8f5ee;
  border: 1px solid #b8dcc8;
}

.panel-form-modal .panel-form-err {
  color: #8f2f2f;
  background: #fdf0f0;
  border: 1px solid #e8bcbc;
}

.panel-form-modal .panel-form-foot {
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid #e4ebe6;
  background: #f7faf8;
}

.panel-form-modal .panel-form-foot .btn.primary {
  min-width: 6.5rem;
  font-weight: 600;
}

/* Kullanıcılar sayfası */
.users-page-card {
  border: 1px solid rgba(46, 97, 74, 0.14);
  box-shadow: 0 8px 28px rgba(20, 40, 30, 0.06);
}

.users-page-head h2 {
  margin: 0 0 0.35rem;
}

.users-page-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.users-session-badge {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d4a3e;
  background: #eef6f1;
  border: 1px solid #c5ddd0;
  border-radius: 999px;
}

.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0.75rem;
}

.users-footer-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.app-modal-foot-spacer {
  flex: 1;
}

.notify-inline-list {
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 0.5rem 0.65rem;
}

.notify-inline-list-item {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.notify-inline-list-item:last-child {
  border-bottom: 0;
}

.email-log-item {
  padding: 0.55rem 0;
}

.email-log-item + .email-log-item {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.email-log-head {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
}

.email-log-meta {
  margin: 0.12rem 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.email-log-meta span {
  color: var(--muted, #5a6b63);
  font-weight: 600;
}

.email-log-body {
  margin-top: 0.45rem;
}

.email-log-body-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5a6b63);
  margin-bottom: 0.2rem;
}

.email-log-body-text {
  margin: 0;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 97, 74, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow: auto;
}

.email-log-body-missing {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

.email-log-err {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #b42318;
}

.form-section-title-sm {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.btn-compact {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.save-block-compact label {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
}

.save-block-compact input,
.save-block-compact select,
.save-block-compact textarea {
  padding: 0.28rem 0.4rem;
  font-size: 0.78rem;
}

.save-block-compact .row.four,
.save-block-compact .row.five,
.save-block-compact .row.two {
  gap: 0.28rem;
}

.save-block-compact label {
  margin-bottom: 0.2rem;
}

.field-compact input {
  padding: 0.28rem 0.4rem;
  font-size: 0.78rem;
}

.quote-modal {
  z-index: 1750;
}

.quote-modal-card {
  background: linear-gradient(165deg, #3a4046 0%, #2f3439 45%, #25292e 100%);
  border: 1px solid #434b54;
  color: var(--summary-muted);
}

.quote-modal-head {
  border-bottom-color: var(--summary-line);
  background: linear-gradient(165deg, #3a4046 0%, #2f3439 100%);
}

.quote-modal-head h2 {
  color: var(--summary-price);
}

.quote-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 0.55rem;
  height: 100%;
  min-height: 0;
}

.quote-modal-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quote-modal-col-ozet {
  padding-right: 0.45rem;
  border-right: 1px solid var(--summary-line);
}

.quote-ozet-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--summary-price);
}

.quote-manuel-fiyat {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.quote-manuel-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quote-manuel-toplam-input {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.quote-manuel-not {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
}

.quote-ozet-meta {
  margin: 0.12rem 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
}

.lines-compact {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.lines-compact li {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.18rem 0;
  border-top: 1px solid var(--summary-line);
  font-size: 0.68rem;
  line-height: 1.25;
}

.lines-compact li span {
  color: var(--summary-text);
}

.lines-compact li strong {
  color: var(--summary-price);
  white-space: nowrap;
}

.quote-hesap-fold {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--summary-muted);
}

.quote-hesap-fold summary {
  cursor: pointer;
  color: var(--summary-accent);
  font-weight: 600;
  list-style: none;
}

.quote-hesap-fold summary::-webkit-details-marker {
  display: none;
}

.quote-detail-compact {
  margin-top: 0.25rem;
  padding: 0.35rem 0.45rem;
  max-height: 5.5rem;
  overflow: auto;
  font-size: 0.65rem;
  line-height: 1.3;
}

.quote-detail-compact ul {
  margin: 0;
  padding-left: 0.9rem;
}

.quote-modal-body.app-modal-body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.quote-modal-col-main {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.quote-modal-col-main .save-block-compact,
.quote-modal-col-main .quote-email-block {
  border-top: none;
  margin: 0;
  padding: 0;
}

#quote_modal:not(.teklif-send-mode) #quote_email_block {
  display: none !important;
}

.quote-email-block {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--summary-line);
}

.quote-email-block .hint {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
}

.quote-cart-list-compact {
  max-height: 4.5rem;
  overflow: auto;
}

.quote-modal-foot {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
}

.quote-modal.teklif-send-mode .quote-modal-grid {
  grid-template-columns: 1fr;
}

.quote-modal.teklif-send-mode .quote-modal-col-ozet {
  display: none !important;
}

.quote-modal.teklif-send-mode .quote-modal-col-main {
  border: none;
  overflow: visible;
}

@media (max-width: 760px) {
  .app-modal-card-wide {
    width: min(98vw, 100%);
  }

  #quote_modal .quote-modal-card {
    max-height: calc(100dvh - 0.5rem);
    width: min(100vw, 100%);
    border-radius: 12px 12px 0 0;
  }

  .quote-modal-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .quote-modal-col-ozet {
    padding-right: 0;
    padding-bottom: 0.4rem;
    border-right: none;
    border-bottom: 1px solid var(--summary-line);
    flex: 0 0 auto;
  }

  /* Mobilde tek sütun: gövde kaydırılsın; alt alan (adres vb.) erişilebilir olsun */
  .quote-modal-col-main {
    overflow: visible;
  }

  #quote_modal .quote-modal-body.app-modal-body {
    padding-bottom: 0.75rem;
  }

  #quote_modal .save-block-compact {
    padding-bottom: 0.25rem;
  }

  .quote-modal-card .quote-customer-row,
  .save-block-compact .row.four {
    grid-template-columns: 1fr 1fr;
  }
}

body.calc-view-active #calc_summary .frame-preview-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

body.calc-view-active .form-card {
  order: 2;
  background: #f6f8f6;
  border-color: #d8e2da;
}

@media (min-width: 721px) {
  body.calc-view-active .summary {
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
  }
}

.summary .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.summary .price {
  margin: 0.1rem 0 0.25rem;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}

.cerceve-aciklama {
  margin: 0 0 0.35rem;
}

.frame-preview-wrap {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.frame-preview-wrap.preview-pulse {
  animation: none;
}

.frame-preview-wrap.preview-assemble::after {
  content: none;
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  .frame-preview-svg.fp-assemble-active .fp-rail {
    opacity: 0;
    animation: fp-rail-lock 0.5s cubic-bezier(0.34, 1.12, 0.64, 1) forwards;
  }

  .frame-preview-svg.fp-assemble-active .fp-rail-outer.fp-rail-top {
    transform: translateY(-20%) scale(0.9);
    transform-box: fill-box;
    transform-origin: 50% 0%;
  }

  .frame-preview-svg.fp-assemble-active .fp-rail-outer.fp-rail-right {
    transform: translateX(20%) scale(0.9);
    transform-box: fill-box;
    transform-origin: 100% 50%;
  }

  .frame-preview-svg.fp-assemble-active .fp-rail-outer.fp-rail-bottom {
    transform: translateY(20%) scale(0.9);
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }

  .frame-preview-svg.fp-assemble-active .fp-rail-outer.fp-rail-left {
    transform: translateX(-20%) scale(0.9);
    transform-box: fill-box;
    transform-origin: 0% 50%;
  }

  .frame-preview-svg.fp-assemble-simul.fp-assemble-active .fp-rail-outer.fp-rail-top {
    transform: translateY(-12%) scale(0.82);
  }

  .frame-preview-svg.fp-assemble-simul.fp-assemble-active .fp-rail-outer.fp-rail-right {
    transform: translateX(12%) scale(0.82);
  }

  .frame-preview-svg.fp-assemble-simul.fp-assemble-active .fp-rail-outer.fp-rail-bottom {
    transform: translateY(12%) scale(0.82);
  }

  .frame-preview-svg.fp-assemble-simul.fp-assemble-active .fp-rail-outer.fp-rail-left {
    transform: translateX(-12%) scale(0.82);
  }

  .frame-preview-svg.fp-assemble-active .fp-assemble-inner .fp-rail-inner.fp-rail-top {
    transform: translateY(-14%) scale(0.92);
    transform-box: fill-box;
    transform-origin: 50% 0%;
  }

  .frame-preview-svg.fp-assemble-active .fp-assemble-inner .fp-rail-inner.fp-rail-right {
    transform: translateX(14%) scale(0.92);
    transform-box: fill-box;
    transform-origin: 100% 50%;
  }

  .frame-preview-svg.fp-assemble-active .fp-assemble-inner .fp-rail-inner.fp-rail-bottom {
    transform: translateY(14%) scale(0.92);
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }

  .frame-preview-svg.fp-assemble-active .fp-assemble-inner .fp-rail-inner.fp-rail-left {
    transform: translateX(-14%) scale(0.92);
    transform-box: fill-box;
    transform-origin: 0% 50%;
  }

  .frame-preview-svg.fp-assemble-active .fp-assemble-core {
    opacity: 0;
    transform: scale(0.93);
    transform-box: fill-box;
    transform-origin: center;
    animation: fp-core-reveal 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes fp-rail-lock {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }
  }

  @keyframes fp-core-reveal {
    0% {
      opacity: 0;
      transform: scale(0.93);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
}

@media print {
  .frame-preview-wrap.gorsel-protected .preview-watermark-inframe {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999 !important;
  }

  .frame-preview-wrap.gorsel-protected .preview-watermark-inframe .preview-watermark-logo {
    opacity: 0.85 !important;
  }

  .frame-preview-wrap.gorsel-protected .preview-watermark-inframe .preview-watermark-label {
    color: rgba(0, 0, 0, 0.75) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-preview-wrap.preview-assemble::after {
    animation: none;
  }
}

@keyframes preview-pulse {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 4px 18px rgba(20, 24, 28, 0.12),
      0 0 0 0 rgba(120, 200, 160, 0.45);
  }
  70% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 4px 18px rgba(20, 24, 28, 0.12),
      0 0 0 12px rgba(120, 200, 160, 0);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 4px 18px rgba(20, 24, 28, 0.12),
      0 0 0 0 rgba(120, 200, 160, 0);
  }
}

body.calc-view-active #calc_summary .frame-preview-wrap.preview-pulse {
  animation: none;
}

@keyframes preview-pulse-calc {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 200, 160, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(120, 200, 160, 0);
  }
  100% {
    box-shadow: none;
  }
}

body.calc-view-active .frame-preview-wrap {
  padding: 0.85rem 0.9rem 0.8rem;
}

@media (min-width: 721px) {
  body.calc-view-active .frame-preview-wrap {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
  }
}

.frame-preview-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preview-stage-label, var(--muted));
}

.frame-preview-wrap .eser-foto-status {
  color: var(--preview-stage-hint);
}

.frame-preview-wrap .eser-foto-status.err {
  color: #f0a8a8;
}

.frame-preview-wrap .eser-foto-icon-btn {
  color: var(--preview-icon);
}

.frame-preview-wrap .eser-foto-icon-btn:hover,
.frame-preview-wrap .eser-foto-icon-btn:focus-visible {
  color: var(--preview-icon-hover);
}

.frame-preview-wrap .eser-foto-icon-btn::before {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.frame-preview-wrap .eser-foto-icon-btn:hover::before,
.frame-preview-wrap .eser-foto-icon-btn:focus-visible::before {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.frame-preview-wrap .eser-foto-icon-svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.frame-preview-wrap .eser-foto-icon-btn:hover .eser-foto-icon-svg,
.frame-preview-wrap .eser-foto-icon-btn:focus-visible .eser-foto-icon-svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.frame-preview-wrap .eser-foto-icon-btn-ghost {
  color: #e8b4b4;
}

.frame-preview-wrap .eser-foto-icon-btn-ghost:hover,
.frame-preview-wrap .eser-foto-icon-btn-ghost:focus-visible {
  color: #ffd4d4;
}

.frame-preview-wrap:not(.has-eser-photo) .eser-foto-icon-btn::before {
  opacity: 0.82;
  background: rgba(22, 26, 30, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(0.96);
}

.frame-preview-wrap:not(.has-eser-photo) .eser-foto-icon-btn:hover::before,
.frame-preview-wrap:not(.has-eser-photo) .eser-foto-icon-btn:focus-visible::before {
  opacity: 1;
  background: rgba(22, 26, 30, 0.68);
}

.frame-preview {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  line-height: 0;
}

.edit-preview-wrap {
  margin: 0;
  padding: 0.35rem;
  background: linear-gradient(180deg, #fdfbf6 0%, #f3efe8 100%);
  border: 1px solid #ded6c9;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.edit-frame-preview {
  max-width: 78px;
}

#view_order_edit .frame-preview-label {
  margin-bottom: 0.06rem;
  font-size: 0.52rem;
}

body.calc-view-active .frame-preview {
  max-width: min(680px, 100%);
}

@media (min-width: 721px) {
  body.calc-view-active .frame-preview {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.calc-view-active .frame-preview-svg {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 340px);
  }
}

.gorsel-strip-preview {
  display: block;
  max-width: 100%;
  max-height: 56px;
  margin: 0 0 0.5rem;
  border: 1px solid var(--line, #e0dcd4);
  border-radius: 4px;
}

.gorsel-upload-block {
  margin: 0.75rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line, #e8e4dc);
}

.gorsel-bulk-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  max-height: 220px;
  overflow-y: auto;
}

.gorsel-bulk-ok {
  color: var(--green-mid, #2d6a4f);
  margin-bottom: 0.25rem;
}

.gorsel-bulk-skip {
  color: #a04040;
  margin-bottom: 0.25rem;
}

.gy-dropzone {
  margin: 0.5rem 0 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px dashed var(--line, #d8d4cc);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.gy-dropzone-bulk {
  padding: 1.35rem 1.1rem;
}

.gy-dropzone-active {
  border-color: var(--green-mid, #2d6a4f);
  background: rgba(45, 106, 79, 0.06);
}

.gy-drop-hint {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep, #1b4332);
}

.gy-drop-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--green-mid, #2d6a4f);
}

.gy-dropzone .file-label {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
}

.gy-dropzone .file-label input[type="file"] {
  margin-top: 0.25rem;
}

.gy-page-cols {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0 1.5rem;
  align-items: start;
}

.gy-page-intro {
  margin-bottom: 0.85rem;
}

.gy-page-intro-left h2,
.gy-page-intro-right .gy-gallery-heading {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  line-height: 1.35;
}

.gy-page-intro-left .hint,
.gy-page-intro-right .hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.gy-page-body {
  gap: 1rem 1.5rem;
  align-items: stretch;
}

.gy-page-upload {
  min-width: 0;
}

.gy-page-upload .gy-upload-note {
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.gy-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.gy-upload-actions .btn {
  width: 100%;
  justify-content: center;
}

.gy-page-gallery {
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gy-gallery-section {
  margin: 0;
  padding: 0;
  border: none;
}

.gy-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
}

.gy-page-gallery .stock-search {
  flex: 1 1 10rem;
  min-width: 0;
}

.gy-gallery-filter {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

.gy-gallery-grid {
  flex: 1 1 auto;
  max-height: min(70vh, 42rem);
  padding: 0.75rem;
  border: 1px solid var(--line, #d8d4cc);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.gy-gallery-card {
  cursor: default;
  pointer-events: none;
}

.gy-gallery-card .frame-pick-img {
  height: 3rem;
}

@media (max-width: 900px) {
  .gy-page-cols,
  .gy-page-intro {
    grid-template-columns: 1fr;
  }

  .gy-page-intro {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .gy-upload-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gy-upload-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .gy-gallery-grid {
    max-height: 24rem;
  }
}

.eser-foto-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.75rem;
}

.eser-foto-actions-preview {
  margin: 0.5rem 0 0.35rem;
}

/* Eski konumlandırma — yalnızca sipariş düzenleme önizlemeleri (calc ekranı .frame-preview-art-ui kullanır) */
.edit-eser-foto-wrap:not(:has(.frame-preview-art-ui)) .eser-foto-actions-preview,
.frame-preview-wrap:not(:has(.frame-preview-art-ui)):not(.has-eser-photo) .eser-foto-actions-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  transform: translate(-50%, -50%);
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.edit-eser-foto-wrap:not(:has(.frame-preview-art-ui)):not(.has-eser-photo) .edit-eser-foto-kaldir,
.frame-preview-wrap:not(:has(.frame-preview-art-ui)):not(.has-eser-photo) #eser_foto_kaldir {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.edit-eser-foto-wrap:not(:has(.frame-preview-art-ui)).has-eser-photo .eser-foto-actions-preview,
.frame-preview-wrap:not(:has(.frame-preview-art-ui)).has-eser-photo .eser-foto-actions-preview {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 3;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.eser-foto-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--green-deep);
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.eser-foto-icon-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(42, 69, 56, 0.1);
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.28s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    background 0.28s ease;
  z-index: 0;
  pointer-events: none;
}

.eser-foto-icon-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 3px 8px rgba(42, 69, 56, 0.22));
}

.eser-foto-icon-svg-sm {
  width: 2.15rem;
  height: 2.15rem;
}

.eser-foto-icon-btn:hover,
.eser-foto-icon-btn:focus-visible {
  color: #0a3522;
  outline: none;
}

.eser-foto-icon-btn:hover::before,
.eser-foto-icon-btn:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(26, 92, 58, 0.16);
}

.eser-foto-icon-btn:hover .eser-foto-icon-svg,
.eser-foto-icon-btn:focus-visible .eser-foto-icon-svg {
  transform: translateY(-8px) scale(1.12);
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.98)) drop-shadow(0 8px 14px rgba(26, 92, 58, 0.28));
}

#eser_foto_kamera:hover .eser-foto-icon-svg,
#eser_foto_kamera:focus-visible .eser-foto-icon-svg {
  transform: translateY(-9px) translateX(-4px) rotate(-10deg) scale(1.14);
}

#eser_foto_dosya:hover .eser-foto-icon-svg,
#eser_foto_dosya:focus-visible .eser-foto-icon-svg {
  transform: translateY(-9px) translateX(4px) rotate(10deg) scale(1.14);
}

#eser_foto_kaldir:hover .eser-foto-icon-svg,
#eser_foto_kaldir:focus-visible .eser-foto-icon-svg {
  transform: translateY(-6px) rotate(90deg) scale(1.1);
}

.eser-foto-icon-btn:active .eser-foto-icon-svg {
  transform: translateY(-2px) scale(0.94) !important;
  transition-duration: 0.12s;
}

.eser-foto-icon-btn-ghost {
  color: #8b4040;
}

.eser-foto-icon-btn-ghost:hover,
.eser-foto-icon-btn-ghost:focus-visible {
  color: #6b2e2e;
}

@media (prefers-reduced-motion: reduce) {
  .eser-foto-icon-btn::before,
  .eser-foto-icon-svg {
    transition: none;
  }
  .eser-foto-icon-btn:hover .eser-foto-icon-svg,
  .eser-foto-icon-btn:focus-visible .eser-foto-icon-svg,
  #eser_foto_kamera:hover .eser-foto-icon-svg,
  #eser_foto_dosya:hover .eser-foto-icon-svg,
  #eser_foto_kaldir:hover .eser-foto-icon-svg {
    transform: none;
  }
}

.eser-foto-status {
  margin: 0.25rem 0 0;
  text-align: center;
}

#eser_foto_kaynak,
#eser_foto_kamera_kaynak {
  display: none !important;
}

.eser-foto-preview {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 0 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line, #e0dcd4);
  object-fit: contain;
  background: #f5f2ec;
}

.eser-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eser-crop-modal.hidden {
  display: none !important;
}

.eser-crop-panel {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.eser-crop-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.eser-crop-stage-wrap {
  margin: 0.75rem 0;
  background: #f0ede6;
  border-radius: 10px;
  padding: 0.5rem;
}

.eser-crop-stage {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: move;
  user-select: none;
}

.eser-crop-zoom {
  display: block;
  margin: 0.5rem 0 0;
}

.eser-crop-zoom input {
  width: 100%;
}

.eser-scan-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.eser-scan-modal.hidden {
  display: none !important;
}

body.eser-scan-open {
  overflow: hidden;
}

.eser-scan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 24, 0.55);
}

.eser-scan-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(580px, calc(100vw - 1rem));
  max-height: calc(100dvh - 0.85rem);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  padding: 0.55rem 0.75rem 0.65rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.eser-scan-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.eser-scan-panel .hint {
  font-size: 0.68rem;
  margin: 0;
  flex-shrink: 0;
}

.eser-scan-stage-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0.35rem 0;
  background: #f0ede6;
  border-radius: 10px;
  padding: 0.35rem;
}

.eser-scan-stage {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

.eser-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.eser-scan-actions .btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 7rem;
  margin-top: 0;
}

.eser-cam-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eser-cam-modal.hidden {
  display: none !important;
}

.eser-cam-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.eser-cam-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.eser-cam-video-wrap {
  margin: 0.75rem 0;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.eser-cam-video {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #111;
}

.eser-cam-err {
  color: #a04040;
}

.frame-preview-svg {
  width: 100%;
  height: auto;
  display: block;
}

.app-logo-mark {
  object-fit: contain;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

#view_welcome .welcome-brand-logos--app,
#view_login .login-brand-logos--app {
  margin-bottom: 1.1rem;
}

.welcome-brand-app-logo,
.login-brand-app-logo {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  image-rendering: auto;
}

html.design-pro #view_launch .launch-logo.app-logo-mark,
html.design-gentelella #view_launch .launch-logo.app-logo-mark,
html.design-legacy #view_launch .launch-logo.app-logo-mark,
.launch-logo.app-logo-mark {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

html.design-pro #view_home .home-logo.app-logo-mark,
html.design-gentelella #view_home .home-logo.app-logo-mark,
html.design-legacy #view_home .home-logo.app-logo-mark {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.setup-logo.app-logo-mark {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

html.design-gentelella .app-sidebar-brand-logo-img.app-logo-mark {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cerceve-detay {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-mid);
  line-height: 1.45;
}

.cerceve-detay:last-child {
  margin-bottom: 0.5rem;
}

.cerceve-ozet {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-mid);
  line-height: 1.35;
}

.meta {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.lines li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}

.lines li strong {
  color: var(--green-deep);
  font-weight: 600;
}

.err {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #9f3d3d;
}

.app-global-err {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff6f6;
  border: 1px solid #e4bcbc;
  font-weight: 500;
  line-height: 1.35;
}

.app-global-err[hidden] {
  display: none !important;
}

.ok {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--green-mid);
  font-weight: 500;
}

.save-block {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--green-pale);
}

.save-block .form-section-title {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.save-block .form-section-title:first-child {
  margin-top: 0;
}

.save-block .field-sm {
  max-width: 8rem;
  margin-top: 0.35rem;
}

.save-block label {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.save-block input,
.save-block select,
.save-block textarea {
  margin-top: 0.16rem;
  padding: 0.34rem 0.45rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.save-block textarea {
  min-height: 2.1rem;
}

.save-block .field-full {
  margin-bottom: 0.35rem;
}

.save-block .hint {
  margin: 0.05rem 0 0.35rem;
  font-size: 0.66rem;
  line-height: 1.25;
}

#indirim_ozet {
  color: var(--green-mid);
  font-weight: 500;
}

.orders-card {
  margin-top: 0.85rem;
}

.orders-card h2 {
  margin: 0 0 0.5rem;
}

.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.order-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.order-list li span {
  color: var(--muted);
  flex: 1;
  min-width: 0;
}

.order-list li strong {
  color: var(--green-deep);
  white-space: nowrap;
}

.foot {
  margin-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.foot a {
  color: var(--green-mid);
  font-weight: 500;
  text-decoration: none;
}

.foot a:hover { text-decoration: underline; }

/* Açılış ekranı */
.launch-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  background: linear-gradient(165deg, var(--green-tint) 0%, var(--bg) 50%);
}

.launch-shell {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.launch-hero {
  margin-bottom: 2rem;
}

.launch-logo {
  display: block;
  margin: 0 auto 1rem;
}

.launch-logo:not(.app-logo-mark) {
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(30, 70, 50, 0.12);
}

.launch-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}

.launch-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.launch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.launch-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.launch-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.launch-manual {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(42, 69, 56, 0.12);
  text-align: left;
}

.launch-manual-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.launch-manual-lead {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.launch-popup-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.launch-popup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(18, 38, 28, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.launch-popup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 38, 28, 0.1);
  border-color: var(--green-pale);
}

.launch-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.launch-popup-icon-co { background: var(--green-tint); color: var(--green-deep); }
.launch-popup-icon-ce { background: #e8f5ea; color: #1d6b32; }
.launch-popup-icon-pa { background: #f3efe8; color: #6b5a3a; }
.launch-popup-icon-cm { background: #e8eef8; color: #2a5080; }
.launch-popup-icon-sl { background: #f0eef8; color: #4a3d80; }
.launch-popup-icon-pr { background: #fff6e8; color: #9a6b12; }
.launch-popup-icon-em { background: #e8eef8; color: #2a5080; }

/* Açılış popup — kaydırma yok, içerik karta sığar */
.launch-modal.finance-modal {
  padding: 0.5rem;
  overflow: hidden;
}

.launch-modal .finance-modal-card {
  display: flex;
  flex-direction: column;
  max-width: min(96vw, 520px);
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
}

.launch-modal .finance-modal-card-wide:not(.launch-pricing-card) {
  max-width: min(96vw, 600px);
}

.launch-templates-card.finance-modal-card-wide {
  max-width: min(98vw, 1100px);
  width: min(98vw, 1100px);
  max-height: calc(100dvh - 1rem);
  min-height: min(88dvh, 780px);
}

.launch-tpl-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  overflow: hidden;
}

.launch-tpl-edit {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.launch-tpl-preview-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding-left: 0.5rem;
}

.launch-tpl-preview-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-deep);
  flex-shrink: 0;
}

.launch-email-preview {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef2ef;
}

@media (max-width: 900px) {
  .notify-tpl-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .notify-tpl-edit-col {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .notify-tpl-preview-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
    min-height: 280px;
  }

  .notify-tpl-preview-col #notify_email_preview {
    min-height: min(45vh, 360px);
  }
}

@media (max-width: 720px) {
  .launch-tpl-split {
    grid-template-columns: 1fr;
  }
  .launch-tpl-preview-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.35rem;
    min-height: 140px;
  }
}

.launch-modal .finance-modal-head {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
}

.launch-modal .finance-modal-head h3 {
  font-size: 0.92rem;
}

.launch-modal-body-fit {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.launch-modal-body-fit .hint {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.25;
}

.launch-modal-body-fit label {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
}

.launch-modal-body-fit input,
.launch-modal-body-fit textarea,
.launch-modal-body-fit select {
  font-size: 0.8rem;
  padding: 0.32rem 0.45rem;
}

.launch-modal-body-fit textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.35;
}

.launch-modal-grid {
  gap: 0.35rem 0.5rem;
  margin-top: 0;
}

.launch-logo-compact {
  margin-top: 0.15rem;
}

.launch-logo-compact .form-section-title {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
}

.launch-logo-compact .setup-logo-grid {
  gap: 0.4rem;
}

.launch-logo-compact .setup-logo-slot {
  padding: 0.45rem;
}

.launch-logo-compact .setup-logo-preview {
  max-height: 44px;
  margin-bottom: 0.35rem;
}

.launch-logo-compact .setup-logo-slot-title {
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
}

.launch-modal-rows {
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.launch-modal-rows label {
  margin-bottom: 0;
}

.launch-modal-actions-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  gap: 0.4rem;
}

.launch-modal-actions-foot .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.launch-modal-msg {
  margin: 0;
  font-size: 0.72rem;
}

.launch-modal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

.launch-tpl-toggle {
  margin: 0;
  font-size: 0.75rem;
}

.btn-link-sm {
  font-size: 0.72rem;
}

.launch-tpl-hint-oneline {
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launch-tpl-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  flex-shrink: 0;
}

.launch-tpl-tab {
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f5;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.launch-tpl-tab.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

.launch-tpl-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.launch-tpl-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.launch-tpl-panel label {
  margin-bottom: 0.15rem;
}

.launch-tpl-panel textarea {
  flex: 1;
  min-height: 2.6rem;
  max-height: 4.5rem;
}

/* E-posta şablonları — okunaklı, geniş düzen */
.launch-templates-card .launch-modal-head h3 {
  font-size: 1.15rem;
}

.launch-templates-card .launch-modal-body-fit {
  padding: 0.75rem 1rem 0.85rem;
  gap: 0.55rem;
}

.launch-templates-card .launch-modal-body-fit .hint,
.launch-templates-card .launch-tpl-hint-readable {
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.launch-templates-card .launch-modal-body-fit label {
  font-size: 0.88rem;
}

.launch-templates-card .launch-modal-body-fit input,
.launch-templates-card .launch-modal-body-fit textarea {
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
}

.launch-templates-card .launch-tpl-toggle {
  font-size: 0.88rem;
}

.launch-templates-card .btn-link-sm {
  font-size: 0.85rem;
}

.launch-templates-card .launch-tpl-split {
  min-height: min(62vh, 540px);
  gap: 0.85rem;
}

.launch-templates-card .launch-tpl-preview-col {
  padding-left: 0.85rem;
}

.launch-templates-card .launch-tpl-preview-label {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.launch-templates-card .launch-tpl-tab {
  font-size: 0.82rem;
  padding: 0.5rem 0.35rem;
}

.launch-templates-card .launch-tpl-panel {
  justify-content: flex-start;
  gap: 0.45rem;
}

.launch-templates-card .launch-tpl-panel label {
  margin-bottom: 0.25rem;
}

.launch-templates-card .launch-tpl-panel textarea {
  min-height: 11rem;
  max-height: none;
  resize: vertical;
  overflow: auto;
  line-height: 1.5;
}

.launch-templates-card .launch-email-preview {
  min-height: min(52vh, 480px);
}

.launch-templates-card .launch-modal-actions-foot {
  flex-direction: row;
  justify-content: flex-end;
}

.launch-templates-card .launch-modal-actions-foot .btn {
  flex: 0 1 auto;
  min-width: 7rem;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
}

@media (max-width: 720px) {
  .launch-templates-card.finance-modal-card-wide {
    width: 96vw;
    min-height: 0;
  }

  .launch-templates-card .launch-tpl-split {
    min-height: 0;
  }

  .launch-templates-card .launch-tpl-panel textarea {
    min-height: 8rem;
  }

  .launch-templates-card .launch-email-preview {
    min-height: 220px;
  }

  .launch-templates-card .launch-modal-actions-foot {
    flex-direction: column;
  }

  .launch-templates-card .launch-modal-actions-foot .btn {
    width: 100%;
  }
}

.launch-prod-fields .row {
  margin-bottom: 0.28rem;
  gap: 0.35rem 0.5rem;
}

.launch-popup-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.launch-popup-meta {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 380px) {
  .launch-popup-cards {
    grid-template-columns: 1fr;
  }
}

/* İlk kurulum */
.setup-view {
  min-height: 100vh;
  background: linear-gradient(165deg, var(--green-tint) 0%, var(--bg) 45%);
  padding: 1.5rem 1rem 2.5rem;
}

.setup-shell {
  max-width: 760px;
  margin: 0 auto;
}

.setup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  justify-content: center;
}

.setup-steps > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-step-dot {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.setup-step-dot:hover,
.setup-step-dot:focus-visible {
  border-color: var(--green-pale);
  color: var(--green-deep);
}

.setup-step-dot.active {
  color: var(--green-deep);
  background: #fff;
  border-color: var(--green-pale);
}

.setup-step-dot.done {
  color: var(--green-mid);
}

.setup-pricing-guide {
  margin: 0 0 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  color: #1e3a5f;
}

.setup-pricing-guide-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
}

.setup-pricing-guide-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.setup-pricing-guide-list li + li {
  margin-top: 0.35rem;
}

.setup-pricing-guide-example {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #bfdbfe;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #0f172a;
}

.setup-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.setup-logo {
  display: block;
  margin: 0 auto 0.75rem;
}

.setup-logo:not(.app-logo-mark) {
  border-radius: 20px;
}

.setup-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.45rem;
  color: var(--green-deep);
}

.setup-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.setup-btn-wide {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
}

.setup-actions {
  margin-bottom: 1rem;
  text-align: center;
}

.setup-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.setup-catalog-card {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.setup-catalog-card.loaded {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.setup-catalog-card strong {
  display: block;
  font-size: 0.78rem;
}

.setup-catalog-card span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.setup-import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.setup-import-card {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.setup-import-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.setup-import-card .btn,
.setup-import-card .file-label {
  width: 100%;
  margin-top: 0.45rem;
}

.setup-file {
  margin-top: 0.75rem;
}

.setup-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.setup-nav .btn.setup-nav-needs-catalog {
  opacity: 0.72;
  box-shadow: none;
}

.setup-nav .btn.setup-nav-needs-catalog:hover,
.setup-nav .btn.setup-nav-needs-catalog:focus-visible {
  opacity: 1;
}

#setup_catalog_ozet.setup-catalog-ozet-warn {
  color: #9a3412;
  font-weight: 600;
}

.setup-plan-lock-banner {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #7c2d12;
}

.setup-plan-lock-banner.hidden {
  display: none !important;
}

.setup-plan-lock-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #9a3412;
}

.setup-plan-lock-body,
.setup-plan-lock-cta {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.setup-plan-lock-cta {
  margin-top: 0.65rem;
  color: #431407;
}

.setup-import-grid.setup-import-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.25);
}

#setup_sample_xlsx.is-disabled-link {
  pointer-events: none;
  opacity: 0.55;
  text-decoration: none;
}

.setup-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.setup-fieldset legend {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 0.35rem;
}

.setup-fieldset .check-inline {
  display: block;
  margin: 0.35rem 0;
}

.setup-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.8rem;
  margin-top: 0.85rem;
}

.setup-user-grid label {
  min-width: 0;
}

.setup-user-grid .field-full {
  grid-column: 1 / -1;
}

.setup-logo-block {
  margin-top: 1rem;
}

.setup-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.65rem;
}

.setup-logo-slot {
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafcfb;
}

.setup-logo-slot-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
}

.muted-inline {
  font-weight: 400;
  color: var(--muted);
}

.setup-logo-preview {
  display: block;
  max-width: 100%;
  max-height: 72px;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.setup-logo-remove {
  margin-top: 0.35rem;
}

.setup-logo-ok,
.setup-logo-err {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .setup-logo-grid {
    grid-template-columns: 1fr;
  }
}

body:has(#view_notifications:not(.hidden)) .shell {
  max-width: min(96vw, 1520px);
}

.notify-card {
  max-width: none;
  width: 100%;
  margin: 0;
}

.notify-tpl-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr);
  gap: 1.25rem 1.75rem;
  align-items: stretch;
  margin: 0.65rem 0 1rem;
  min-height: min(78vh, 820px);
}

.notify-tpl-edit-col {
  min-height: 0;
  max-height: min(78vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}

.notify-tpl-preview-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.notify-tpl-preview-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-deep);
  flex-shrink: 0;
}

.notify-tpl-preview-col .notify-email-preview,
.notify-tpl-preview-col #notify_email_preview {
  flex: 1;
  min-height: min(74vh, 780px);
  height: 100%;
  width: 100%;
}

@media (min-width: 1200px) {
  body:has(#view_notifications:not(.hidden)) .shell {
    max-width: min(94vw, 1680px);
  }

  .notify-tpl-split {
    grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.2fr);
    gap: 1.5rem 2rem;
    min-height: min(80vh, 860px);
  }

  .notify-tpl-edit-col {
    max-height: min(80vh, 860px);
  }

  .notify-tpl-preview-col #notify_email_preview {
    min-height: min(76vh, 820px);
  }
}

.notify-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.65rem 0 1rem;
}

.notify-template-block {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf9;
}

.notify-template-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}

.notify-template-block label {
  display: block;
  margin: 0.35rem 0;
  font-size: 0.78rem;
}

.notify-template-block textarea,
.notify-template-block .field-full-input {
  width: 100%;
  margin-top: 0.2rem;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notify-check {
  align-self: end;
  padding-bottom: 0.35rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green-mid);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

@media (max-width: 720px) {
  .setup-catalog-grid,
  .setup-import-grid,
  .setup-user-grid {
    grid-template-columns: 1fr;
  }

  .setup-user-grid .field-full {
    grid-column: auto;
  }
  .grid { grid-template-columns: 1fr; }
  body.calc-view-active .shell {
    max-width: 100%;
    padding: 0 0.75rem 1.5rem;
    overflow-x: hidden;
  }
  body.calc-view-active .grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  body.calc-view-active .summary {
    order: -1;
  }
  body.calc-view-active .form-card {
    order: 0;
  }
  #cerceve_onizleme_wrap {
    scroll-margin-top: 3.75rem;
  }
  #save_block {
    scroll-margin-top: 3.75rem;
  }
  body.calc-view-active .calc-mobile-hide,
  body.calc-view-active .calc-form-title {
    display: none !important;
  }
  body.calc-view-active .eser-foto-status:not(.err):not(.eser-foto-status-inframe) {
    display: none !important;
  }
  body.calc-view-active #quote_reopen_wrap.hidden {
    display: none !important;
  }
  body.calc-view-active .frame-preview-wrap {
    margin-bottom: 0.35rem;
  }
  body.calc-view-active .mobile-form-section {
    display: none;
  }
  .calc-subchips:not(.calc-subchips-paspartu) {
    margin: -0.35rem 0 0.65rem;
    padding-bottom: 0.55rem;
  }
  .calc-subchips-paspartu {
    margin: 0.55rem 0 0.65rem;
  }
  .calc-subchip {
    font-size: 0.66rem;
    padding: 0.28rem 0.48rem;
  }
  .calc-mode-chips {
    gap: 0.32rem;
  }
  .calc-chip {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }
  .mat-row {
    padding: 0.4rem 0.4rem 0.2rem;
  }
  body.calc-view-active .card {
    min-width: 0;
    padding: 1rem;
  }
  body.calc-view-active .frame-preview-wrap {
    padding: 0.4rem 0.35rem;
  }
  body.calc-view-active .frame-preview {
    max-width: 100%;
  }
  .eser-foto-icon-btn {
    width: 3.65rem;
    height: 3.65rem;
  }
  .eser-foto-icon-svg {
    width: 2.25rem;
    height: 2.25rem;
  }
  .frame-preview-wrap:not(.has-eser-photo) .eser-foto-actions-preview {
    gap: 1.15rem;
  }
  .cols { grid-template-columns: 1fr; }
  .hero { border-radius: 0 0 20px 20px; }
  .home-hero { border-radius: 0 0 24px 24px; padding-top: 2rem; }
  .menu-grid { grid-template-columns: 1fr; max-width: 280px; }
  .stat-row-main,
  .stat-row-tops,
  .period-grid { grid-template-columns: 1fr; }
  .frame-detail-grid { grid-template-columns: 1fr; }
  .menu-tile { flex-direction: row; padding: 1rem 1.15rem; text-align: left; gap: 0.85rem; }
  .menu-icon { margin-bottom: 0; flex-shrink: 0; width: 2.75rem; height: 2.75rem; }
  .menu-tile > span:not(.menu-icon) { align-items: flex-start; }
  .menu-label, .menu-desc { display: block; }
}

.siparis-kayit-banner {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(72, 187, 120, 0.12);
  border: 1px solid rgba(72, 187, 120, 0.35);
  text-align: center;
}
#siparise_cerceve_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
#siparise_cerceve_wrap.hidden {
  display: none;
}
.quote-cart-block {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.quote-cart-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.quote-cart-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.quote-cart-list li:last-child {
  border-bottom: none;
}
.quote-cart-eser-head {
  list-style: none;
  padding: 10px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--border, #e8e4de);
  font-size: 0.92rem;
}
.quote-cart-eser-head:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.quote-cart-opt {
  padding-left: 8px;
}
.quote-teklif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.calc-price-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
  margin: 12px 0 8px;
  padding: 12px 14px;
  background: var(--green-tint, #f0f7f2);
  border: 1px solid var(--green-pale, #d4e8da);
  border-radius: 8px;
}

.calc-live-price-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.35rem;
}

.calc-live-price-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #666);
  margin-bottom: 2px;
}

.calc-live-price {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep, #1a3d2e);
  line-height: 1.25;
  min-height: 1.35em;
  min-width: 10.5ch;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.calc-live-price.is-loading {
  opacity: 0.88;
}

.calc-live-olcu {
  display: block;
  min-height: 1.25em;
  margin-top: 2px;
  font-size: 0.82rem;
}

.calc-live-olcu.is-empty {
  visibility: hidden;
}

.calc-cerceve-maliyet {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #666);
}

.calc-fiyat-breakdown-btn {
  display: block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-mid, #3d6b52);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.calc-fiyat-breakdown-btn:hover {
  color: var(--green-deep, #1a3d2e);
}

.calc-fiyat-breakdown-btn.hidden {
  display: none;
}

.calc-fiyat-breakdown-card {
  max-width: 34rem;
}

.calc-fiyat-breakdown-card .panel-form-body {
  max-height: min(78dvh, 640px);
  overflow-y: auto;
}

.calc-fiyat-breakdown-card .edit-profil-kesim-oneri {
  margin-top: 0.75rem;
}

.calc-fiyat-breakdown-foot {
  margin-top: 0.5rem;
}

.calc-fiyat-breakdown-table tr.row-ozet td {
  font-weight: 600;
  background: var(--green-tint, #f0f7f2);
}

.calc-cerceve-maliyet .calc-maliyet-detay {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  opacity: 0.92;
}

.calc-price-row .btn.primary {
  flex: 0 0 auto;
  min-width: 10rem;
  max-width: 48%;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .calc-price-row {
    flex-wrap: wrap;
  }

  .calc-price-row .btn.primary {
    max-width: 100%;
    width: 100%;
  }
}

body.calc-view-active .calc-price-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.calc-view-active .calc-live-price-label,
body.calc-view-active .calc-live-olcu {
  color: #9aa5b0;
}

body.calc-view-active .calc-live-price {
  color: var(--green-deep, #1a3d2e);
}

.teklif-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.teklif-prompt-modal.hidden {
  display: none;
}

.teklif-prompt-card {
  position: relative;
  z-index: 1;
  max-width: min(420px, calc(100vw - 1rem));
  max-height: calc(100dvh - 0.85rem);
  overflow: hidden;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border, #e5e2dd);
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.teklif-prompt-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.teklif-prompt-msg {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}

.teklif-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.quote-modal.teklif-send-mode .quote-calc-only {
  display: none !important;
}

.quote-modal.teklif-send-mode .teklif-send-only-block {
  display: block !important;
}

.quote-modal.teklif-send-mode .quote-modal-body {
  display: flex;
  flex-direction: column;
}

.quote-modal.teklif-send-mode #quote_cart_block {
  order: 0;
}

.quote-modal.teklif-send-mode #save_block {
  order: 1;
}

.quote-modal.teklif-send-mode #quote_email_block {
  order: 2;
}

.quote-modal.teklif-send-mode .save-block .teklif-hide-on-send {
  display: none !important;
}
.quote-cart-remove {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
}
.quote-modal.teklif-send-mode .quote-email-block {
  margin: 0 0 0.35rem;
  padding: 0 0 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quote-modal.teklif-send-mode .quote-email-block .hint {
  margin: 0 0 0.35rem;
}
.quote-modal.teklif-send-mode .quote-email-block input {
  margin-top: 0.15rem;
}
.quote-modal.teklif-send-mode .quote-email-block .btn {
  margin-top: 0.35rem;
}
.quote-modal.teklif-send-mode .quote-email-block .ok {
  margin-top: 0.3rem;
}
.launch-tpl-quote-hint,
.notify-template-quote .hint {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}
.notify-template-quote code {
  font-size: 0.85em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.setup-email-toggle {
  display: block;
  margin: 0.75rem 0 1rem;
}
.email-test-row {
  align-items: flex-end;
}
.email-test-actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.15rem;
}
.card .btn-link {
  background: none;
  border: none;
  color: var(--accent, #63b3ed);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.order-card-lines {
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--green-tint);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  max-height: none;
  overflow: visible;
}
.order-card-lines li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  color: var(--text);
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.order-card-lines li:last-child {
  border-bottom: none;
}
.order-line-no {
  color: var(--green-mid);
  font-weight: 700;
}
.orders-table .order-card-lines {
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
}

.order-info-card .order-card-facts dd {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}

@media (min-width: 721px) {
  #view_orders .order-card-preview--multi {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
    justify-content: flex-start;
    scroll-padding: 0.2rem 0;
  }
}
/* Sipariş düzenle — çerçeve tablosu */
.edit-lines-panel-full {
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.edit-lines-panel-full.hidden {
  display: none !important;
}
.edit-lines-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0 0.1rem;
}
.edit-lines-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep, #1e3d2f);
}
.edit-lines-sub {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: #5a6b62;
}
.edit-lines-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.edit-panel-line-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.edit-panel-line-title-row .form-section-title {
  margin-bottom: 0;
}
.edit-lines-pill {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--green-deep, #1e3d2f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.edit-lines-table-wrap {
  overflow: auto;
  max-height: min(240px, 34vh);
  border: 1px solid rgba(207, 221, 211, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 59, 45, 0.06);
}
.edit-lines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.edit-lines-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4ef;
}
.edit-lines-table th {
  padding: 0.45rem 0.55rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4a5c52;
  border-bottom: 1px solid rgba(207, 221, 211, 0.9);
  white-space: nowrap;
}
.edit-lines-table td {
  padding: 0.4rem 0.55rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(230, 238, 232, 0.95);
}
.edit-lines-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.edit-lines-row:hover {
  background: #f4f9f5;
}
.edit-lines-row.is-selected {
  background: #e8f3ea;
  box-shadow: inset 3px 0 0 var(--green, #3d7a52);
}
.edit-lines-row.is-selected td {
  border-bottom-color: rgba(61, 122, 82, 0.15);
}
.edit-lines-table .col-no {
  width: 2rem;
  color: #6b7d72;
  font-weight: 600;
  text-align: center;
}
.edit-lines-table .col-thumb {
  width: 4.75rem;
  padding-right: 0.65rem;
}
.edit-line-thumb {
  width: 4.25rem;
  height: 3.2rem;
  border-radius: 6px;
  overflow: hidden;
  background: #2c2c2c;
  margin: 0 auto;
}
.edit-line-thumb .frame-preview {
  width: 100%;
  height: 100%;
  max-width: none;
}
.edit-lines-table .col-profile {
  min-width: 5.5rem;
  padding-left: 0.15rem;
}
.edit-line-kod {
  display: block;
  font-weight: 600;
  color: #1a2e22;
}
.edit-line-eser {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: #6b7d72;
}
.edit-lines-table .col-size {
  min-width: 5.5rem;
}
.edit-line-olcu {
  display: block;
  font-weight: 500;
}
.edit-line-dis {
  display: block;
  font-size: 0.65rem;
  color: #6b7d72;
}
.edit-lines-table .col-qty {
  width: 2.75rem;
  text-align: center;
  font-weight: 600;
}
.edit-lines-table .col-price {
  width: 5.5rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  color: var(--green-deep, #1e3d2f);
}
.edit-lines-table .col-act {
  width: 7.5rem;
  text-align: right;
}
.edit-line-btns {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}
#view_order_edit .btn-xs {
  padding: 0.22rem 0.45rem;
  font-size: 0.62rem;
  border-radius: 6px;
  line-height: 1.2;
}
#view_order_edit .btn-danger-ghost {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.25);
}
#view_order_edit .btn-danger-ghost:hover {
  background: #fef3f2;
  border-color: rgba(180, 35, 24, 0.4);
}
.edit-line-selected-hint {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #eef4ef;
  font-size: 0.68rem;
  color: #3a4d42;
  line-height: 1.35;
}
.edit-line-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--green-deep, #1e3d2f);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
#view_order_edit.edit-has-lines .edit-panel-details {
  border-color: rgba(61, 122, 82, 0.35);
  box-shadow: 0 8px 24px rgba(34, 59, 45, 0.08);
}
#view_order_edit.edit-line-open .edit-panel-details {
  background: #fff;
}

/* Tek çerçeveli sipariş — yatay panel şeridi (çerçeve | müşteri | maliyet) */
#view_order_edit.edit-single-cerceve.order-edit-modal {
  align-items: flex-start;
  justify-content: center;
  padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
}

/* Kart tam ekran yüksekliğinde kalmasın (genel .order-edit-card height kuralını geçersiz kılar) */
#view_order_edit.edit-single-cerceve.order-edit-modal > .order-edit-card {
  width: min(100%, 1680px);
  max-width: min(1680px, calc(100vw - 0.9rem));
  height: fit-content;
  max-height: calc(100dvh - 0.85rem);
  overflow-x: auto;
  overflow-y: auto;
  align-self: center;
}

#view_order_edit.edit-single-cerceve .edit-lines-panel-full {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-modal-body-wrap {
  flex: 0 0 auto;
  min-height: unset;
  max-height: none;
  overflow: visible;
  padding-bottom: 0.25rem;
}

#view_order_edit.edit-single-cerceve .edit-modal-grid {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
  align-items: stretch;
}

#view_order_edit.edit-single-cerceve .edit-modal-col-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

#view_order_edit.edit-single-cerceve .edit-modal-col-right,
#view_order_edit.edit-single-cerceve .edit-panel-line-home {
  min-width: 0;
}

#view_order_edit.edit-single-cerceve .edit-panel {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(34, 59, 45, 0.05);
  overflow: visible;
  min-height: min-content;
}

#view_order_edit.edit-single-cerceve .edit-panel .form-section-title {
  margin-bottom: 0.18rem;
  padding-bottom: 0.12rem;
}

#view_order_edit.edit-single-cerceve .edit-panel-musteri .edit-subsection-title {
  margin-top: 0.3rem;
}

#view_order_edit.edit-single-cerceve .edit-compact-4,
#view_order_edit.edit-single-cerceve .edit-panel-musteri .edit-compact-4,
#view_order_edit.edit-single-cerceve .edit-pro-fatura-details .edit-compact-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 820px) {
  #view_order_edit.edit-single-cerceve .edit-panel-musteri .edit-compact-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#view_order_edit.edit-single-cerceve .edit-order-compact {
  display: block;
  margin-bottom: 0;
}

#view_order_edit.edit-single-cerceve .edit-preview-wrap {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-order-ozet-card {
  margin-bottom: 0.4rem;
}

#view_order_edit.edit-single-cerceve .edit-tahsil-list {
  max-height: 5.5rem;
  overflow-y: auto;
}

#view_order_edit.edit-single-cerceve .edit-durum-actions-hint {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-pos-akis {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-order-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.4rem;
}

#view_order_edit.edit-single-cerceve .edit-panel-line-home .edit-panel-details {
  padding: 0.5rem 0.6rem;
  gap: 0.3rem;
}

#view_order_edit.edit-single-cerceve #edit_panel_line {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#view_order_edit.edit-single-cerceve #edit_line_hint {
  display: none;
}

#view_order_edit.edit-single-cerceve .edit-single-line-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

#view_order_edit.edit-single-cerceve .edit-single-line-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

#view_order_edit.edit-single-cerceve .edit-single-line-top .edit-line-olcu-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem 0.35rem;
  margin: 0;
}

#view_order_edit.edit-single-cerceve .edit-single-line-body .line-edit-preview-wrap {
  position: static;
  align-self: stretch;
  max-width: none;
  width: 100%;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(207, 221, 211, 0.9);
  border-radius: 8px;
  background: #f4f7f5;
  box-sizing: border-box;
}

#view_order_edit.edit-single-cerceve .edit-single-line-body .frame-preview-label {
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
}

#view_order_edit.edit-single-cerceve #edit_inline_eser_foto_wrap {
  width: 100%;
  max-width: none;
}

#view_order_edit.edit-single-cerceve #edit_inline_cerceve_onizleme {
  width: 100%;
  max-width: min(100%, 260px);
  min-height: 0;
  margin: 0 auto;
}

#view_order_edit.edit-single-cerceve #edit_inline_cerceve_onizleme .frame-preview-svg {
  width: 100%;
  height: auto;
  max-height: 12rem;
  display: block;
  margin: 0 auto;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields > * {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .edit-line-eser-field {
  margin: 0;
}

#view_order_edit.edit-single-cerceve #edit_adet_hint,
#view_order_edit.edit-single-cerceve .edit-order-eser-hint {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-fiyat-breakdown {
  width: 100%;
  margin-top: 0;
}

.edit-fiyat-breakdown {
  padding: 0.45rem 0.5rem;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}

.edit-fiyat-breakdown-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.edit-fiyat-breakdown-meta {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}

.edit-fiyat-breakdown-table-wrap {
  overflow-x: auto;
}

.edit-fiyat-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}

.edit-fiyat-col-kalem {
  width: 38%;
}

.edit-fiyat-col-miktar {
  width: 22%;
}

.edit-fiyat-col-maliyet {
  width: 20%;
}

.edit-fiyat-col-satis {
  width: 20%;
}

.edit-fiyat-breakdown.edit-fiyat-maliyet-off .edit-fiyat-col-maliyet {
  display: none;
}

.edit-fiyat-breakdown.edit-fiyat-maliyet-off .edit-fiyat-col-kalem {
  width: 48%;
}

.edit-fiyat-breakdown.edit-fiyat-maliyet-off .edit-fiyat-col-miktar {
  width: 26%;
}

.edit-fiyat-breakdown.edit-fiyat-maliyet-off .edit-fiyat-col-satis {
  width: 26%;
}

.edit-fiyat-breakdown-table th,
.edit-fiyat-breakdown-table td {
  padding: 0.32rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid #e8ece8;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-fiyat-breakdown-table td:first-child {
  white-space: normal;
  word-break: break-word;
}

.edit-fiyat-breakdown-table th.num,
.edit-fiyat-breakdown-table td.num {
  text-align: right;
  white-space: nowrap;
}

.edit-fiyat-breakdown-table tfoot td {
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.edit-fiyat-kod {
  color: var(--muted, #666);
  font-size: 0.7rem;
}

.edit-fiyat-breakdown-yaklasik {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

.profil-kesim-oneri {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.profil-kesim-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.profil-kesim-not {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  line-height: 1.4;
}

.profil-kesim-profil + .profil-kesim-profil {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e2e8f0;
}

.profil-kesim-profil-head {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
}

.profil-kesim-parca {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
}

.profil-kesim-boylar {
  margin: 0 0 0.35rem;
  padding-left: 1.15rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
}

.profil-kesim-ozet {
  margin: 0;
  font-size: 0.72rem;
  color: #1e293b;
}

.edit-fiyat-breakdown-hint {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
}

.edit-fiyat-breakdown.edit-fiyat-maliyet-off .edit-fiyat-breakdown-hint {
  display: none;
}

.edit-fiyat-satis-input {
  width: 5.75rem;
  max-width: 100%;
  padding: 0.18rem 0.3rem;
  font-size: 0.78rem;
  text-align: right;
  border: 1px solid #c5d4ca;
  border-radius: 6px;
  background: #fff;
}

.edit-fiyat-editable .edit-fiyat-satis-input:focus {
  outline: 2px solid rgba(46, 125, 79, 0.35);
  border-color: var(--green-mid, #3d6b52);
}

.edit-fiyat-manuel {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8a5a12;
  background: #fff3d6;
  border-radius: 3px;
  vertical-align: middle;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.35rem;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

#view_order_edit.edit-single-cerceve .edit-panel-details .mat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row .field,
#view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row .field-sm {
  margin: 0;
  min-width: 0;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row .check-inline {
  margin: 0 0 0.18rem;
  white-space: nowrap;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row > label.hidden {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .edit-line-not-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: 0.3rem;
  align-items: end;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields > .hint {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-single-line-fields .btn,
#view_order_edit.edit-single-cerceve .edit-single-line-fields .ok,
#view_order_edit.edit-single-cerceve .edit-single-line-fields .err {
  display: none !important;
}

#view_order_edit.edit-single-cerceve .edit-modal-head {
  padding: 0.38rem 0.5rem;
}

/* Çoklu çerçeve popup: panel içi önizleme gizli (dış önizleme kullanılır) */
#edit_line_modal .edit-line-panel-preview {
  display: none !important;
}

#edit_line_modal .edit-single-line-body {
  display: block;
  min-width: 0;
}

#edit_line_modal .edit-panel-line-title-row {
  display: none !important;
}

#edit_line_modal .edit-single-line-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem 0.28rem;
  align-items: end;
  min-width: 0;
}

#edit_line_modal .edit-single-line-fields .edit-line-olcu-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem 0.32rem;
}

#edit_line_modal .edit-single-line-fields .edit-line-eser-field {
  grid-column: 1 / -1;
}

#edit_line_modal .edit-single-line-fields .mat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem 0.28rem;
  align-items: end;
  padding: 0;
  border: none;
  background: transparent;
}

#edit_line_modal .edit-single-line-fields .edit-line-not-row {
  grid-column: 1 / -1;
}

#edit_line_modal .edit-single-line-fields .btn,
#edit_line_modal .edit-single-line-fields .ok,
#edit_line_modal .edit-single-line-fields .err {
  display: none !important;
}

@media (min-width: 900px) {
  #view_order_edit.edit-single-cerceve #edit_m_adres {
    min-height: 1.6rem;
  }
}

@media (max-width: 899px) {
  #view_order_edit.edit-single-cerceve .edit-modal-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "editLeft"
      "editRight";
  }
}

@media (max-width: 720px) {
  #view_order_edit.edit-single-cerceve .order-edit-card {
    width: calc(100vw - 0.9rem);
    max-width: calc(100vw - 0.9rem);
  }

  #view_order_edit.edit-single-cerceve .edit-single-line-body .line-edit-preview-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: none;
  }

  #view_order_edit.edit-single-cerceve .edit-single-line-fields .mat-row {
    grid-template-columns: 1fr;
  }

  #view_order_edit.edit-single-cerceve .edit-single-line-fields .edit-line-not-row {
    grid-template-columns: 1fr;
  }
}

.edit-order-durum-strip {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(207, 221, 211, 0.9);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcf9, #f3f7f4);
}

.edit-order-durum-caption {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.edit-durum-goster-inline {
  font-weight: 700;
  color: var(--green-deep);
}

#view_order_edit.edit-multi-table-only .edit-order-durum-strip {
  display: block;
}

#view_order_edit.edit-multi-table-only .edit-order-durum-strip.hidden {
  display: none;
}

#view_order_edit.edit-multi-table-only .edit-durum-slot-panel {
  display: none;
}

#view_order_edit.edit-multi-table-only .edit-order-durum-strip .edit-durum-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#view_order_edit.edit-multi-table-only .edit-order-durum-strip .edit-durum-actions-hint {
  margin-bottom: 0.3rem;
}

#view_order_edit.edit-multi-table-only .edit-modal-grid {
  display: none;
}

#view_order_edit.edit-multi-table-only.edit-show-meta .edit-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#view_order_edit.edit-multi-table-only .edit-panel-line-home {
  display: none !important;
}

#view_order_edit.edit-multi-table-only .order-edit-card {
  width: min(1320px, calc(100vw - 0.9rem)) !important;
  max-width: min(1320px, calc(100vw - 0.9rem)) !important;
  overflow: hidden;
}

#view_order_edit.edit-multi-table-only .edit-modal-body-wrap {
  overflow-x: hidden;
  overflow-y: auto;
}

#view_order_edit.edit-multi-table-only .edit-lines-panel-full {
  flex: 0 0 auto;
  min-height: 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#view_order_edit.edit-multi-table-only .edit-order-durum-strip {
  flex-shrink: 0;
  margin-bottom: 0.3rem;
  padding: 0.35rem 0.45rem;
}

#view_order_edit.edit-multi-table-only .edit-lines-head {
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

#view_order_edit.edit-multi-table-only .edit-lines-table-wrap {
  flex: 0 0 auto;
  min-height: 8rem;
  max-height: min(52vh, calc(100dvh - 15rem));
  overflow: auto;
}

#view_order_edit.edit-multi-table-only .edit-lines-table {
  table-layout: fixed;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-no {
  width: 4%;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-thumb {
  width: 12%;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-profile {
  width: 18%;
  min-width: 0;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-size {
  width: 16%;
  min-width: 0;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-qty {
  width: 8%;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-price {
  width: 14%;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-uretim {
  width: 14%;
}

.edit-line-hazir-toggle {
  width: auto;
  margin-top: 0;
  padding: 0.22rem 0.4rem;
  font-size: 0.65rem;
  border-radius: 999px;
  background: #f0f3f1;
  border-color: #c5d5c8;
  color: #5a6b62;
}

.edit-line-hazir-toggle.is-hazir {
  background: #e8f6ea;
  border-color: #8ecf9a;
  color: #1f5c2c;
  font-weight: 700;
}

.edit-line-hazir-btn {
  width: auto;
  margin-top: 0;
  background: #e8f6ea;
  border-color: #8ecf9a;
  color: #1f5c2c;
}

.edit-line-hazir-btn.edit-line-hazir-btn-active {
  background: #fff;
  border-color: #6a9a72;
}

.edit-cerceve-uretim-ozet {
  font-weight: 600;
  color: var(--green-deep);
}

.edit-line-uretim-hint {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
}

.line-edit-foot-btns {
  flex-wrap: wrap;
}

#view_order_edit.edit-multi-table-only .edit-lines-table .col-act {
  width: 14%;
}

#view_order_edit.edit-multi-table-only .edit-line-kod,
#view_order_edit.edit-multi-table-only .edit-line-olcu,
#view_order_edit.edit-multi-table-only .edit-line-dis,
#view_order_edit.edit-multi-table-only .edit-line-eser {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view_order_edit.edit-multi-table-only .edit-line-btns {
  flex-wrap: nowrap;
  gap: 0.2rem;
}

body:has(#view_order_edit.edit-multi-table-only:not(.hidden)) #view_order_edit.order-edit-modal .order-edit-card {
  width: min(1080px, calc(100vw - 1.5rem)) !important;
  max-width: min(1080px, calc(100vw - 1.5rem)) !important;
}

/* Sipariş düzenle — çerçeve listesi (mobil kart düzeni) */
@media (max-width: 720px) {
  #view_order_edit.edit-has-lines .edit-modal-head {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.45rem;
  }

  #view_order_edit.edit-has-lines .edit-pro-head-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  #view_order_edit.edit-has-lines .edit-modal-head-actions {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
  }

  #view_order_edit.edit-has-lines .edit-modal-head-actions .btn-sm {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }

  #view_order_edit.edit-has-lines .edit-lines-head {
    align-items: flex-start;
  }

  #view_order_edit.edit-has-lines .edit-lines-table-wrap {
    overflow: visible;
    max-height: none;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  #view_order_edit.edit-has-lines .edit-lines-table {
    table-layout: auto;
  }

  #view_order_edit.edit-has-lines .edit-lines-table thead {
    display: none;
  }

  #view_order_edit.edit-has-lines .edit-lines-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  #view_order_edit.edit-has-lines .edit-lines-row {
    display: grid;
    grid-template-columns: 1.5rem 4.75rem minmax(0, 1fr) auto;
    grid-template-areas:
      "no thumb profile price"
      "no thumb size  price"
      "no thumb qty   actions";
    gap: 0.15rem 0.4rem;
    align-items: center;
    padding: 0.55rem 0.45rem;
    border: 1px solid rgba(207, 221, 211, 0.95);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(34, 59, 45, 0.06);
  }

  #view_order_edit.edit-has-lines .edit-lines-row td {
    display: block;
    padding: 0;
    border: none;
    width: auto !important;
    min-width: 0;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-no {
    grid-area: no;
    align-self: start;
    padding-top: 0.2rem;
    font-size: 0.7rem;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-thumb {
    grid-area: thumb;
    align-self: center;
  }

  #view_order_edit.edit-has-lines .edit-line-thumb {
    width: 4.75rem;
    height: 3.55rem;
    margin: 0;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-profile {
    grid-area: profile;
    min-width: 0;
    align-self: end;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-size {
    grid-area: size;
    min-width: 0;
    align-self: start;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-qty {
    grid-area: qty;
    text-align: left;
    font-size: 0.68rem;
    color: #5a6b62;
    align-self: center;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-qty::before {
    content: "Adet: ";
    font-weight: 600;
    color: #3a4d42;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-price {
    grid-area: price;
    grid-row: 1 / 3;
    text-align: right;
    font-size: 0.78rem;
    align-self: start;
    padding-top: 0.05rem;
    white-space: nowrap;
  }

  #view_order_edit.edit-has-lines .edit-lines-row .col-act {
    grid-area: actions;
    text-align: right;
    align-self: end;
  }

  #view_order_edit.edit-has-lines .edit-line-kod,
  #view_order_edit.edit-has-lines .edit-line-olcu,
  #view_order_edit.edit-has-lines .edit-line-dis,
  #view_order_edit.edit-has-lines .edit-line-eser {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  #view_order_edit.edit-has-lines .edit-line-btns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
    min-width: 4.6rem;
  }

  #view_order_edit.edit-has-lines .edit-line-btns .btn-xs {
    width: 100%;
    padding: 0.28rem 0.4rem;
    font-size: 0.65rem;
  }

  #view_order_edit.edit-multi-table-only .order-edit-card {
    width: calc(100vw - 0.7rem) !important;
    max-width: calc(100vw - 0.7rem) !important;
    padding: 0.5rem 0.55rem 0.65rem;
    max-height: calc(100dvh - 0.75rem);
  }

  body:has(#view_order_edit.edit-multi-table-only:not(.hidden)) #view_order_edit.order-edit-modal .order-edit-card {
    width: calc(100vw - 0.7rem) !important;
    max-width: calc(100vw - 0.7rem) !important;
  }
}

.edit-meta-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.edit-meta-footer.hidden {
  display: none !important;
}

.line-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1950;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.line-edit-modal.hidden {
  display: none !important;
}

.line-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 18, 0.55);
  backdrop-filter: blur(3px);
}

.line-edit-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 1rem)) !important;
  min-width: 0;
  flex: 0 0 auto;
  max-height: calc(100vh - 0.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.65rem 0.55rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 32, 23, 0.3);
}

body:has(#view_order_edit:not(.hidden)) #edit_line_modal.line-edit-modal .line-edit-card {
  width: min(920px, calc(100vw - 1rem)) !important;
  max-width: min(920px, calc(100vw - 1rem)) !important;
}

.line-edit-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.28rem 0.5rem;
  align-items: start;
  min-height: 0;
  flex: 0 1 auto;
  overflow: visible;
}

.line-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.line-edit-head h3 {
  margin: 0;
  font-size: 0.9rem;
}

.line-edit-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  position: static;
}

#edit_line_modal .frame-preview-label {
  font-size: 0.62rem;
  margin-bottom: 0.12rem;
}

#edit_line_modal .edit-frame-preview {
  width: 100%;
  max-width: 112px;
  min-height: 0;
  margin: 0 auto;
}

#edit_line_modal .edit-frame-preview .frame-preview-svg {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 118px;
  display: block;
}

#edit_line_modal .line-edit-form-wrap {
  max-height: none;
  overflow: visible;
  min-width: 0;
  min-height: 0;
}

#edit_line_modal #edit_panel_line.edit-panel-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

#edit_line_modal .edit-line-selected-hint {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  padding: 0.22rem 0.4rem;
  font-size: 0.7rem;
}

#edit_line_modal .edit-line-olcu-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem 0.32rem;
}

#edit_line_modal .edit-line-eser-field {
  grid-column: 1 / -1;
}

#edit_line_modal #edit_adet_hint,
#edit_line_modal .edit-panel-details > .hint:not(.edit-line-selected-hint):not(.edit-fiyat-breakdown-hint):not(.edit-fiyat-breakdown-meta):not(.edit-fiyat-breakdown-yaklasik) {
  display: none !important;
}

#edit_line_modal .line-edit-form-wrap .line-edit-body.edit-single-line-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem 0.28rem;
  align-items: end;
}

#edit_line_modal .line-edit-form-wrap .edit-single-line-fields {
  grid-column: 1 / -1;
}

#edit_line_modal .line-edit-form-wrap .edit-single-line-top {
  display: contents;
}

#edit_line_modal .line-edit-form-wrap .edit-line-olcu-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem 0.28rem;
}

#edit_line_modal .edit-fiyat-breakdown {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.32rem 0.38rem;
  flex-shrink: 0;
  clear: both;
  position: relative;
  z-index: 0;
}

#edit_line_modal .edit-fiyat-breakdown-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.35rem;
  margin-bottom: 0.2rem;
}

#edit_line_modal .edit-fiyat-breakdown-title {
  margin: 0;
  font-size: 0.76rem;
}

#edit_line_modal .edit-fiyat-breakdown-meta {
  margin: 0;
  font-size: 0.65rem;
}

#edit_line_modal .edit-fiyat-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 10.75rem);
  gap: 0.35rem 0.45rem;
  align-items: start;
}

#edit_line_modal .edit-fiyat-breakdown-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#edit_line_modal .edit-fiyat-breakdown-table {
  font-size: 0.68rem;
}

#edit_line_modal .edit-fiyat-breakdown-table th,
#edit_line_modal .edit-fiyat-breakdown-table td {
  padding: 0.14rem 0.22rem;
}

#edit_line_modal .edit-fiyat-breakdown-table tfoot td {
  background: #f0f5f1;
  font-weight: 600;
}

#edit_line_modal .edit-fiyat-toplam-panel {
  padding: 0.28rem 0.35rem;
  background: #fff;
  border: 1px solid #c5d4ca;
  border-radius: 8px;
  font-size: 0.72rem;
}

#edit_line_modal .edit-fiyat-hesaplanan {
  margin: 0 0 0.28rem;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  color: #4a5c52;
}

#edit_line_modal .edit-fiyat-hesaplanan strong {
  color: #1e4a32;
  font-weight: 700;
}

#edit_line_modal .edit-fiyat-manuel-label {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
}

#edit_line_modal .edit-fiyat-manuel-toplam-input {
  width: 100%;
  margin-top: 0.12rem;
  padding: 0.28rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  border: 1px solid #8ab39a;
  border-radius: 6px;
}

#edit_line_modal .edit-fiyat-manuel-not {
  margin: 0.22rem 0 0;
  font-size: 0.65rem;
  line-height: 1.3;
  color: #8a5a12;
}

#edit_line_modal .edit-fiyat-breakdown-yaklasik {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
}

.edit-fiyat-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 11rem);
  gap: 0.4rem 0.5rem;
  align-items: start;
}

.edit-fiyat-breakdown-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.4rem;
  margin-bottom: 0.25rem;
}

.edit-fiyat-toplam-panel {
  padding: 0.35rem 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
}

.edit-fiyat-hesaplanan {
  margin: 0 0 0.3rem;
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
}

.edit-fiyat-manuel-label {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 0.72rem;
}

.edit-fiyat-manuel-toplam-input {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.3rem 0.4rem;
  text-align: right;
  border: 1px solid #c5d4ca;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.edit-fiyat-manuel-not {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: #8a5a12;
}

#edit_line_modal .edit-fiyat-breakdown.hidden {
  display: none !important;
}

#edit_line_modal .edit-fiyat-breakdown:not(.hidden) {
  display: block;
}

#edit_line_modal .line-edit-form-wrap .line-edit-body.edit-single-line-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.edit-line-fiyat-ozet {
  margin: 0.2rem 0 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e4a32;
  background: #e8f3ec;
  border: 1px solid #b8d4c4;
  border-radius: 8px;
}

.edit-line-fiyat-ozet.hidden {
  display: none !important;
}

.edit-line-manuel-fiyat {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.55rem;
  background: #f6faf7;
  border: 1px solid #c5d4ca;
  border-radius: 8px;
}

.edit-line-manuel-fiyat-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a4a38;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
}

.edit-line-manuel-fiyat-hesap {
  font-weight: 400;
  font-size: 0.72rem;
  color: #5a6d62;
}

.edit-line-manuel-fiyat-row {
  margin: 0;
}

.edit-line-manuel-fiyat-hint {
  margin: 0.28rem 0 0;
  font-size: 0.68rem;
}

#edit_line_modal .edit-line-manuel-fiyat {
  grid-column: 1 / -1;
}

#edit_line_modal .edit-panel-details .mat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem 0.32rem;
  align-items: end;
  padding: 0;
  border: none;
  background: transparent;
}

#edit_line_modal .edit-panel-details .mat-row > label.check-inline {
  align-self: end;
  margin-bottom: 0.18rem;
}

#edit_line_modal .edit-line-not-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  gap: 0.28rem 0.4rem;
  align-items: end;
}

#edit_line_modal #edit_cerceve_not {
  min-height: 3rem;
  max-height: 9rem;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

#edit_line_modal .edit-panel-details label {
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
}

#edit_line_modal .edit-panel-details input,
#edit_line_modal .edit-panel-details select,
#edit_line_modal .edit-panel-details textarea {
  margin-top: 0.08rem;
  padding: 0.32rem 0.42rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

#edit_line_modal .edit-panel-details .mat-row > label.hidden {
  display: none !important;
}

#edit_line_modal .edit-panel-details > .form-section-title,
#edit_line_modal .edit-panel-details #edit_kaydet,
#edit_line_modal .edit-panel-details #edit_ok,
#edit_line_modal .edit-panel-details #edit_hata {
  display: none !important;
}

#edit_line_modal .edit-panel-details .btn {
  position: static !important;
  bottom: auto !important;
  box-shadow: none !important;
}

.line-edit-foot {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8faf7;
  position: relative;
  z-index: 3;
}

#edit_line_modal .edit-line-uretim-hint {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  max-width: none;
}

#edit_line_modal .line-edit-foot-hazir {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  min-height: 1.65rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.74rem;
}

.line-edit-foot-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  width: 100%;
}

.line-edit-foot-btns .btn {
  min-width: 0;
  width: 100%;
  min-height: 1.95rem;
  font-size: 0.78rem;
}

#edit_line_modal .modal-close-btn {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .line-edit-modal {
    padding: 0.35rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: stretch;
  }

  .line-edit-card,
  body:has(#view_order_edit:not(.hidden)) #edit_line_modal.line-edit-modal .line-edit-card {
    width: calc(100vw - 0.7rem) !important;
    max-width: calc(100vw - 0.7rem) !important;
    max-height: calc(100dvh - 0.7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.55rem 0.65rem 0;
  }

  .line-edit-head {
    flex-shrink: 0;
  }

  .line-edit-body {
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
  }

  .line-edit-preview-wrap {
    position: static;
    top: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  #edit_line_modal .edit-frame-preview {
    max-width: min(210px, 78vw);
    min-height: 0;
  }

  #edit_line_modal .edit-frame-preview .frame-preview-svg {
    min-height: 0;
  }

  #edit_line_modal .edit-panel-details {
    grid-template-columns: 1fr;
    padding-bottom: 0.35rem;
  }

  #edit_line_modal .edit-panel-details .btn {
    position: static !important;
    bottom: auto !important;
    box-shadow: none !important;
  }

  #edit_line_modal .edit-line-olcu-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #edit_line_modal .edit-line-olcu-row > label:last-child {
    grid-column: 1 / -1;
  }

  #edit_line_modal .edit-panel-details .mat-row {
    grid-template-columns: 1fr;
  }

  #edit_line_modal .edit-line-not-row {
    grid-template-columns: 1fr;
  }

  .line-edit-foot {
    flex-shrink: 0;
    position: static;
    margin: 0 -0.65rem;
    padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: #f8faf7;
    border-top: 1px solid var(--line);
    z-index: 2;
  }

  .line-edit-foot-btns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  #view_order_edit.edit-has-lines .edit-lines-table .col-act .btn-xs {
    padding: 0.2rem 0.35rem;
    font-size: 0.58rem;
  }
}

.slip-konum-bar {
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(207, 221, 211, 0.9);
  border-radius: 8px;
  background: #f6faf7;
}

.slip-konum-bar label {
  margin: 0;
}

.slip-konum-bar .slip-konum-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}

.calc-paspartu-inline .slip-konum-bar {
  flex: 1 1 100%;
  min-width: 12rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.edit-durum-goster {
  display: block;
  margin-top: 0.2rem;
  padding: 0.28rem 0.42rem;
  border-radius: 6px;
  background: #eef4ef;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
}

.edit-durum-actions {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(207, 221, 211, 0.85);
}

.edit-durum-actions-hint {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
}

.edit-durum-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.edit-kargo-row {
  margin-top: 0.4rem;
}

#view_order_edit .edit-kargo-btn.btn {
  width: 100%;
  margin-top: 0;
  font-size: 0.74rem;
  padding: 0.42rem 0.65rem;
  border-color: var(--line);
  background: #fff;
  color: var(--green-deep);
}

#view_order_edit .edit-kargo-btn.btn:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

#view_order_edit .edit-durum-btn.btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-top: 0;
  font-size: 0.72rem;
  padding: 0.38rem 0.45rem;
  line-height: 1.2;
  white-space: nowrap;
}

.edit-durum-btn[data-durum-step="hazirlaniyor"] {
  background: #e3f2fb;
  border-color: #8ec5ea;
  color: #145a82;
}

.edit-durum-btn[data-durum-step="hazir"] {
  background: #e8f6ea;
  border-color: #8ecf9a;
  color: #1f5c2c;
}

.edit-durum-btn[data-durum-step="teslim_edildi"] {
  background: #f0ebf8;
  border-color: #c0aed8;
  color: #4a3868;
}

.edit-durum-btn.durum-adim-active:not(:disabled) {
  box-shadow: 0 0 0 2px rgba(61, 122, 82, 0.35);
  font-weight: 700;
}

.edit-durum-btn.durum-adim-pending:not(:disabled):hover {
  filter: brightness(0.97);
}

.edit-durum-btn.durum-adim-busy {
  opacity: 0.7;
  pointer-events: none;
}

.edit-durum-btn.durum-adim-done,
.edit-durum-btn:disabled {
  opacity: 0.72;
  cursor: default;
  filter: saturate(0.55);
  box-shadow: none;
}

.edit-durum-btn.durum-adim-resend,
.order-asama-step.durum-adim-resend {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--oe-accent, #384f6c) 45%, transparent);
  cursor: pointer;
}

.edit-durum-btn.durum-adim-resend:not(:disabled):hover,
.order-asama-step.durum-adim-resend:not(:disabled):hover {
  filter: brightness(1.04);
}

.edit-durum-btn.durum-adim-bildirim-bekliyor,
.order-asama-step.durum-adim-bildirim-bekliyor {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent, #5b6cff) 55%, transparent);
  cursor: pointer;
}

.order-asama-step.durum-adim-bildirim-bekliyor:not(:disabled):hover {
  filter: brightness(1.05);
}

#edit_durum_bildirim {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Sipariş düzenle — önizleme tam ekran */
.edit-frame-preview-zoom {
  cursor: zoom-in;
  border-radius: 8px;
  outline: none;
}

.edit-frame-preview-zoom:hover,
.edit-frame-preview-zoom:focus-visible,
.order-card-preview-zoom:hover,
.order-card-preview-zoom:focus-visible {
  box-shadow: 0 0 0 2px rgba(61, 122, 82, 0.45);
}

.order-card-preview-zoom {
  cursor: zoom-in;
  outline: none;
}

.order-card-preview--multi .order-card-preview-item:has(.order-card-preview-zoom:hover) {
  border-color: rgba(61, 122, 82, 0.35);
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.preview-lightbox.hidden {
  display: none !important;
}

.preview-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.9);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.preview-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: min(96vw, 760px);
  max-height: 96vh;
  width: 100%;
}

.preview-lightbox-close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
}

.preview-lightbox-frame {
  width: 100%;
  max-width: min(96vw, 720px);
  max-height: calc(96vh - 3rem);
  margin: 0 auto;
  padding: 0.75rem;
  background: linear-gradient(180deg, #fdfbf6 0%, #f3efe8 100%);
  border: 1px solid #ded6c9;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: auto;
  line-height: 0;
}

.preview-lightbox-frame .frame-preview-svg {
  width: 100%;
  height: auto;
  max-height: calc(96vh - 4.5rem);
  display: block;
}

.preview-lightbox-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  text-align: center;
}

.stat-row-finance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card-finance {
  cursor: default;
}

.stat-card-finance .stat-hint strong {
  color: var(--green-deep);
}

.finance-page-card {
  padding: 0.85rem 0.95rem 1rem;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(18, 38, 28, 0.08);
}

.finance-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.finance-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.finance-page-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.finance-period-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef6ef, #e2efe4);
  border: 1px solid #b8d8be;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.65rem 0 0.75rem;
}

.finance-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 4.5rem;
}

.finance-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.finance-kpi-income .finance-kpi-icon {
  background: #e8f5ea;
  color: #1d6b32;
}

.finance-kpi-expense .finance-kpi-icon {
  background: #fdeeee;
  color: #a83232;
}

.finance-kpi-net {
  background: linear-gradient(145deg, #f3faf4 0%, #e8f3ea 100%);
  border-color: #b8d8be;
}

.finance-kpi-net .finance-kpi-icon {
  background: var(--green-mid);
  color: #fff;
}

.finance-kpi-ciro {
  background: #faf9f6;
}

.finance-kpi-ciro .finance-kpi-icon {
  background: #efe9df;
  color: #6b5a42;
}

.finance-kpi-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.finance-kpi-value {
  margin: 0.12rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.15;
}

.finance-kpi-value-sm {
  font-size: 0.95rem;
}

.finance-kpi-negative {
  color: #b42318;
}

.finance-flow-card {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdfc 0%, #f6faf7 100%);
}

.finance-flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.finance-flow-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-deep);
}

.finance-flow-net {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-deep);
}

.finance-flow-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8ece9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.finance-flow-seg {
  min-width: 2%;
  transition: width 0.35s ease;
}

.finance-flow-income {
  background: linear-gradient(90deg, #3d9a56, #5cb874);
}

.finance-flow-expense {
  background: linear-gradient(90deg, #d66a6a, #e88a8a);
}

.finance-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.finance-flow-legend strong {
  color: var(--text);
  margin-left: 0.2rem;
}

.finance-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.finance-dot-income {
  background: #3d9a56;
}

.finance-dot-expense {
  background: #d66a6a;
}

.finance-secondary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.finance-stat-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.74rem;
}

.finance-stat-chip-warn {
  border-color: #e8d4a8;
  background: #fffbf3;
}

.finance-stat-chip-pos {
  border-color: #b8d4e8;
  background: #f4f9fd;
}

.finance-stat-chip-pos .finance-stat-chip-value {
  color: #2a5080;
}

.finance-stat-chip-ok {
  border-color: #b8d8be;
  background: #f3faf4;
}

.finance-stat-chip-ok .finance-stat-chip-value {
  color: #1d6b32;
}

.finance-kpi-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.15rem;
}

.fin-pos-bekliyor {
  background: #eef4fc;
  color: #2a5080;
}

.fin-pos-gecen {
  background: #e8f5ea;
  color: #1d6b32;
}

.finance-list-guide {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: #f8fbf9;
  border-radius: 8px;
  border: 1px solid rgba(207, 221, 211, 0.8);
}

.finance-list-guide strong {
  color: var(--green-deep);
}

.fin-badge-wait {
  background: #f3f0e8;
  color: #6b5a42;
}

.fin-badge-ok {
  background: #e8f5ea;
  color: #1d6b32;
}

.fin-badge-part {
  background: #eef4fc;
  color: #2a5080;
}

.fin-badge-manuel {
  background: #f0ebe3;
  color: #5a4a38;
}

.fin-col-upcoming-date strong {
  color: #2a5080;
  font-weight: 800;
}

.fin-upcoming-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef4fc;
  color: #2a5080;
  font-size: 0.68rem;
  font-weight: 700;
}

.finance-table-upcoming tbody tr {
  background: linear-gradient(90deg, #fafcfe 0%, #fff 100%);
}

.fin-odeme-ozet {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.12rem;
}

.quote-odeme-hint {
  margin: -0.25rem 0 0.45rem;
}

.finance-stat-chip-label {
  color: var(--muted);
  font-weight: 600;
}

.finance-stat-chip-value {
  font-weight: 800;
  color: #9a6b12;
}

.finance-stat-chip-hint {
  color: var(--muted);
  font-size: 0.68rem;
}

.finance-cat-section {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(207, 221, 211, 0.9);
  background: #fff;
}

.finance-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-cat-row + .finance-cat-row {
  margin-top: 0.45rem;
}

.finance-cat-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.finance-cat-track {
  height: 6px;
  border-radius: 999px;
  background: #edf2ee;
  overflow: hidden;
}

.finance-cat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c45c5c, #e07a7a);
  transition: width 0.3s ease;
}

.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(207, 221, 211, 0.65);
}

.finance-tab {
  border: none;
  background: transparent;
  border-radius: 8px 8px 0 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  position: relative;
}

.finance-tab:hover {
  color: var(--green-deep);
  background: rgba(237, 246, 239, 0.8);
}

.finance-tab.active {
  color: var(--green-deep);
  background: #edf6ef;
}

.finance-tab.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -0.47rem;
  height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
}

.finance-panel-head {
  margin-bottom: 0.45rem;
}

.finance-panel-head-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finance-panel-ozet {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-deep);
}

.finance-panel-head-split .btn-sm {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
}

.finance-expense-drawer {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed #b8d8be;
  background: #f8fcf9;
}

.finance-form-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.finance-form-actions .btn {
  width: auto;
  margin-top: 0;
}

.finance-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.finance-table-pro thead th {
  background: #f3f8f4;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.finance-table-pro tbody tr:nth-child(even) {
  background: #fafcfa;
}

.finance-table-pro tbody tr:hover {
  background: #f0f7f1;
}

.finance-empty {
  margin: 0.75rem 0 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: #fafcfa;
}

.fin-col-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fin-col-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fin-amount-pos {
  color: #1d6b32;
}

.fin-amount-neg {
  color: #a83232;
}

.fin-amount-warn {
  color: #9a6b12;
}

.fin-col-muted {
  color: var(--muted);
}

.fin-col-note {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.74rem;
}

.fin-order-tag {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: #edf4ee;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.fin-cat-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fdeeee;
  color: #8b3030;
  font-size: 0.7rem;
  font-weight: 700;
}

.fin-badge {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: #edf2ee;
  color: var(--green-deep);
}

.fin-badge-nakit {
  background: #e8f5ea;
  color: #1d6b32;
}

.fin-badge-kart {
  background: #e8eef8;
  color: #2a5080;
}

.fin-badge-havale {
  background: #f3efe8;
  color: #6b5a42;
}

.finance-table .fin-row-act {
  white-space: nowrap;
}

.fin-quick-pay {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.25rem;
}

.fin-row-act .fin-quick-input {
  width: 4.75rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

.fin-row-act .btn {
  width: auto;
  margin-top: 0;
  padding: 0.28rem 0.5rem;
  font-size: 0.68rem;
}

.finance-pos-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #b8d4e8;
  background: linear-gradient(135deg, #f4f9fd 0%, #eef6fc 100%);
}

.finance-pos-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: #2a5080;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.finance-pos-banner-text strong {
  display: block;
  font-size: 0.88rem;
  color: #2a5080;
}

.finance-pos-badge-live {
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e8f5ea;
  color: #1d6b32;
  font-size: 0.65rem;
  font-weight: 800;
}

.edit-tahsil-pos-block {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed #9ec4e0;
  background: #f6fafd;
}

.edit-pos-cihaz {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2a5080;
}

.btn-pos {
  background: linear-gradient(180deg, #3a6ea5 0%, #2a5080 100%);
  border-color: #2a5080;
  color: #fff;
}

.btn-pos:hover {
  filter: brightness(1.06);
}

.edit-pos-akis {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
}

.fin-pos-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #e8eef8;
  color: #2a5080;
  font-size: 0.68rem;
  font-weight: 700;
}

.fin-col-pos,
.fin-col-slip {
  font-size: 0.72rem;
}

/* —— Kasa v2: sade özet + popup kartlar —— */
.finance-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.25rem 0 1.5rem;
}

.finance-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.finance-topbar .finance-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-deep);
}

.finance-topbar .finance-page-sub {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.finance-period-pills {
  display: flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 12px;
  background: #edf2ee;
  border: 1px solid var(--line);
}

.finance-period-pills .finance-period {
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.finance-period-pills .finance-period.active {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 2px 8px rgba(18, 38, 28, 0.08);
}

.finance-dashboard {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.finance-hero-card {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3faf4 0%, #e8f3ea 55%, #fff 100%);
  border: 1px solid #b8d8be;
  box-shadow: 0 12px 32px rgba(18, 38, 28, 0.06);
}

.finance-hero-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.finance-hero-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.finance-hero-value {
  margin: 0.2rem 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.1;
}

.finance-hero-value.finance-hero-negative {
  color: #b42318;
}

.finance-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.finance-hero-meta strong {
  color: var(--text);
  margin-left: 0.2rem;
}

.finance-hero-breakdown {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  color: var(--green-deep);
}

.finance-hero-detail-btn {
  margin-top: 0.55rem;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-mid);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.finance-popup-cards {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.finance-popup-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(18, 38, 28, 0.05);
}

.finance-popup-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(18, 38, 28, 0.1);
}

.finance-popup-icon {
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 900;
}

.finance-popup-pos .finance-popup-icon {
  background: #2a5080;
  color: #fff;
}

.finance-popup-ok .finance-popup-icon {
  background: #e8f5ea;
  color: #1d6b32;
}

.finance-popup-warn .finance-popup-icon {
  background: #fff6e8;
  color: #9a6b12;
}

.finance-popup-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.finance-popup-value {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-deep);
  align-self: center;
}

.finance-popup-warn .finance-popup-value {
  color: #9a6b12;
}

.finance-popup-pos .finance-popup-value {
  color: #2a5080;
}

.finance-popup-hint {
  font-size: 0.65rem;
  color: var(--muted);
}

.finance-list-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.75rem 0.85rem;
  box-shadow: 0 10px 28px rgba(18, 38, 28, 0.06);
}

.finance-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.finance-seg-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: #f4f7f5;
  border-radius: 10px;
}

.finance-seg-tab {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.38rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.finance-seg-tab.active {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 6px rgba(18, 38, 28, 0.08);
}

.finance-add-btn {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.finance-list-ozet {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green-deep);
}

.finance-table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(207, 221, 211, 0.8);
}

.finance-table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.finance-table-compact thead th {
  padding: 0.45rem 0.55rem;
  text-align: left;
  background: #f6faf7;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.finance-table-compact tbody td {
  padding: 0.42rem 0.55rem;
  border-bottom: 1px solid rgba(207, 221, 211, 0.45);
}

.finance-table-compact tbody tr:last-child td {
  border-bottom: none;
}

.finance-table-compact tbody tr:hover {
  background: #fafcfa;
}

.finance-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.finance-modal.hidden {
  display: none;
}

.finance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 18, 0.45);
  backdrop-filter: blur(3px);
}

.finance-modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 0.85rem);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.finance-modal-card-wide {
  max-width: 480px;
}

.finance-modal-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.finance-modal-head h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--green-deep);
}

.finance-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.65rem 0.85rem;
}

.launch-modal .finance-modal-body.launch-modal-body-fit {
  overflow-y: auto;
}

.finance-modal-body label {
  display: block;
  margin-bottom: 0.55rem;
}

.finance-modal-lead {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-deep);
}

.finance-modal-dl {
  margin: 0.75rem 0 0;
}

.finance-modal-dl > div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(207, 221, 211, 0.5);
  font-size: 0.8rem;
}

.finance-modal-dl dt {
  color: var(--muted);
  font-weight: 600;
}

.finance-modal-dl dd {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.finance-modal-foot {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.finance-modal-foot .btn {
  width: auto;
  margin: 0;
}

.finance-ozet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.finance-ozet-item {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  font-size: 0.72rem;
}

.finance-ozet-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.finance-ozet-item strong {
  font-size: 0.9rem;
  color: var(--green-deep);
}

.finance-ozet-item.finance-ozet-highlight {
  grid-column: 1 / -1;
  background: #eef6ef;
  border-color: #b8d8be;
}

.finance-ozet-note {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
}

@media (max-width: 720px) {
  .finance-dashboard {
    grid-template-columns: 1fr;
  }

  .finance-popup-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .finance-popup-pos {
    grid-column: 1 / -1;
  }

  .finance-hero-value {
    font-size: 1.65rem;
  }

  .finance-ozet-grid {
    grid-template-columns: 1fr;
  }
}

.edit-tahsil-block {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(207, 221, 211, 0.85);
}

.edit-tahsil-list {
  margin: 0.25rem 0 0.45rem;
  padding: 0;
  list-style: none;
}

.edit-tahsil-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(207, 221, 211, 0.5);
  font-size: 0.74rem;
}

.edit-tahsil-ozet {
  grid-column: 1 / -1;
  margin: 0;
}

.edit-tahsil-form-row .edit-tahsil-add-wrap {
  display: flex;
  align-items: flex-end;
}

.edit-tahsil-form-row .edit-tahsil-add-wrap .btn {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 720px) {
  .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-page-head {
    flex-direction: column;
  }

  .finance-flow-legend {
    flex-direction: column;
    gap: 0.35rem;
  }

  .fin-col-note {
    max-width: 6rem;
  }

  .fin-quick-pay {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
  }

  .stat-row-finance {
    grid-template-columns: 1fr;
  }
}

/* Müşteriler */
.customers-page-card {
  padding: 0.75rem 0.85rem;
}

.customers-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.customers-search-wrap {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.customers-search-wrap input {
  width: 100%;
  margin: 0;
}

.customers-toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.customer-card {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 38, 28, 0.06);
}

.customer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.customer-card-head h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--green-deep);
}

.customer-card-badge {
  flex-shrink: 0;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #e8f4eb;
  color: var(--green-deep);
  font-size: 0.65rem;
  font-weight: 700;
}

.customer-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.customer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.customer-card-actions .btn {
  width: auto;
  margin: 0;
}

.customers-view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.customers-view-toggle .customers-view-btn {
  border: none;
  border-radius: 0;
  margin: 0;
  background: #fff;
  color: var(--text);
}

.customers-view-toggle .customers-view-btn.active {
  background: #e8f3ec;
  color: #1e4a32;
  font-weight: 600;
}

.customers-list-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.customers-table th,
.customers-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.customers-table th.num,
.customers-table td.num {
  text-align: right;
  white-space: nowrap;
}

.customers-table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a5c52;
  background: #f5f8f6;
}

.customers-table tbody tr:hover {
  background: #fafcf9;
}

.customers-td-name {
  font-weight: 600;
  min-width: 8rem;
}

.customers-td-actions {
  white-space: nowrap;
}

.customers-td-actions .btn {
  margin: 0.1rem 0.15rem 0.1rem 0;
}

@media (max-width: 720px) {
  .customers-toolbar-btns {
    flex-wrap: wrap;
  }

  .customers-table {
    font-size: 0.76rem;
  }
}

.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 1850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.4rem, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.customer-modal.hidden {
  display: none !important;
}

.customer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 27, 0.48);
  backdrop-filter: blur(4px);
}

.customer-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.customer-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.customer-modal-head h2 {
  margin: 0;
  font-size: 1rem;
}

.customer-modal-body {
  padding: 0.65rem 0 0.5rem;
}

.customer-modal-extra {
  margin: 0.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem 0.5rem;
}

.customer-modal-extra summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted, #666);
  padding: 0.25rem 0.15rem;
  user-select: none;
}

.customer-modal-extra[open] summary {
  margin-bottom: 0.45rem;
}

.customer-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.customer-modal-foot .btn {
  width: auto;
  margin: 0;
}

.legacy-kademeler-wrap {
  margin: 0.35rem 0 0.5rem;
}

/* Fiyat çarpanları — yatay sekmeler */
.legacy-kademeler-host {
  width: 100%;
}

.legacy-kademeler-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.legacy-kademeler-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.legacy-kademeler-tab {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  margin-bottom: -1px;
  background: #f4f6f4;
  color: var(--muted, #555);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.legacy-kademeler-tab:hover {
  background: #e8ece8;
  color: var(--text, #1a1a1a);
}

.legacy-kademeler-tab.active {
  background: #fff;
  color: var(--text, #1a1a1a);
  border-color: var(--line);
  box-shadow: 0 -1px 0 #fff;
  z-index: 1;
}

.legacy-kademeler-panels {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  background: #fff;
  padding: 0.65rem 0.75rem 0.5rem;
}

.legacy-kademeler-panel-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  line-height: 1.35;
}

.legacy-kademeler-intro {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted, #555);
  background: #f6f8f6;
  border-radius: 6px;
  border-left: 3px solid var(--accent, #2d6a4f);
}

.legacy-kademeler-section-title {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #333);
}

.legacy-kademeler-section-title:first-of-type {
  margin-top: 0.15rem;
}

.legacy-kademeler-section-hint {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted, #666);
}

.legacy-kademeler-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.legacy-kademeler-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #333);
}

.legacy-kademeler-field-hint {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--muted, #777);
  min-height: 1.9em;
}

/* Eşik + çarpan yan yana (kademe satırları) */
.legacy-kademeler-kademe-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.legacy-kademeler-kademe-head,
.legacy-kademeler-kademe-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
}

.legacy-kademeler-kademe-table--cam .legacy-kademeler-kademe-head,
.legacy-kademeler-kademe-table--cam .legacy-kademeler-kademe-row {
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.legacy-kademeler-kademe-head {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #666);
  padding: 0 0 0.35rem;
  border-bottom: 1px solid var(--line);
}

.legacy-kademeler-kademe-head span {
  padding: 0 0.15rem;
}

.legacy-kademeler-kademe-row {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f2f0;
}

.legacy-kademeler-kademe-row:last-child {
  border-bottom: none;
}

.legacy-kademeler-kademe-no {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent, #2d6a4f);
}

.legacy-kademeler-kademe-cell {
  min-width: 0;
}

.legacy-kademeler-field--empty .legacy-kademeler-empty-cell {
  margin-top: 0.1rem;
  padding: 0.4rem 0.45rem;
  font-size: 0.92rem;
  color: var(--muted, #999);
  background: #f8f9f8;
  border: 1px dashed var(--line);
  border-radius: 6px;
  text-align: center;
}

@media (max-width: 720px) {
  .legacy-kademeler-kademe-table--cam {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legacy-kademeler-kademe-table--cam .legacy-kademeler-kademe-head,
  .legacy-kademeler-kademe-table--cam .legacy-kademeler-kademe-row {
    min-width: 36rem;
  }
}

.legacy-kademeler-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
}

.legacy-kademeler-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-kademeler-grid input {
  font-size: 0.92rem;
  padding: 0.35rem 0.45rem;
  margin-top: 0.1rem;
}

/* Eski accordion (setup vb. yedek) */
.legacy-kademeler-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.5rem 0.35rem;
}

.legacy-kademeler-group summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.2rem 0;
  list-style-position: outside;
}

/* Fiyat çarpanları modal — geniş */
.launch-pricing-card.finance-modal-card-wide {
  max-width: min(98vw, 1080px);
  width: min(98vw, 1080px);
  max-height: calc(100dvh - 1rem);
  min-height: min(78dvh, 720px);
}

.launch-pricing-card .finance-modal-body.launch-pricing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 0.65rem 0.85rem 0.75rem;
}

.launch-pricing-body .legacy-kademeler-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0.25rem 0 0.35rem;
}

.launch-pricing-body .legacy-kademeler-host {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.launch-pricing-body .legacy-kademeler-tabs {
  flex: 1;
  min-height: 12rem;
}

.launch-pricing-body .legacy-kademeler-panels {
  overflow-y: auto;
  max-height: min(52vh, 480px);
}

.launch-pricing-body .pricing-rules-section,
.launch-pricing-body .pricing-ozet-wrap {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .launch-pricing-card.finance-modal-card-wide {
    width: 98vw;
    min-height: 0;
  }

  .legacy-kademeler-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-kademeler-tab {
    min-width: calc(50% - 0.25rem);
    flex: 1 1 calc(50% - 0.25rem);
  }
}

input.input-invalid,
textarea.input-invalid,
select.input-invalid {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.25);
}

.payment-settings-card .payment-callback-url {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
  word-break: break-all;
}

.payment-settings-phase-hint {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.billing-plans-lead {
  margin: 0 0 1rem;
  color: var(--muted, #555);
  line-height: 1.45;
  font-size: 0.95rem;
}

.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.billing-plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  padding: 1rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.billing-plan-card:hover {
  border-color: #9eb8d9;
}

.billing-plan-card.active {
  border-color: var(--accent, #2a7ae4);
  box-shadow: 0 0 0 2px rgba(42, 122, 228, 0.15);
}

.billing-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.billing-plan-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.billing-plan-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.billing-plan-card-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.35;
}

.billing-plan-card-snippet {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #666);
  line-height: 1.4;
}

.billing-plan-card-features {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.45;
}

.billing-plan-card-features li + li {
  margin-top: 0.2rem;
}

.billing-compare-card {
  margin-bottom: 1rem;
}

.billing-compare-desc,
.billing-compare-ideal {
  margin: 0 0 0.75rem;
  line-height: 1.5;
  color: #333;
}

.billing-compare-ideal {
  font-size: 0.9rem;
  color: var(--muted, #555);
  font-style: italic;
}

.billing-feature-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  line-height: 1.45;
}

.billing-plans {
  margin-bottom: 1rem;
}

.billing-plans .finance-popup-card {
  cursor: pointer;
  text-align: left;
  align-items: flex-start;
}

.billing-plans .finance-popup-hint {
  white-space: normal;
  line-height: 1.35;
}

.billing-plans .finance-popup-card.active {
  outline: 2px solid var(--accent, #2a7ae4);
  outline-offset: 2px;
}

.billing-pay-card .billing-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.billing-havale-block {
  border-top: 1px solid var(--border, #e0e0e0);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.billing-bank-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.billing-bank-dl dt {
  font-size: 0.8rem;
  color: var(--muted, #666);
}

.billing-bank-dl dd {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.billing-pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.billing-pending-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
}

.billing-ok {
  color: #1b5e20;
}

.subscription-banner .btn-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.platform-trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #f0c36d;
  background: linear-gradient(135deg, #fff8e8 0%, #fff3d6 100%);
  color: #5c4a1a;
}

.platform-trial-banner.hidden {
  display: none !important;
}

.platform-trial-banner-text {
  margin: 0;
  flex: 1 1 16rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

.subscription-banner {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e0a8a8;
  background: #fff5f5;
  color: #8b1a1a;
}

.menu-tile-billing {
  border-color: #f0c36d;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 40%);
}

.email-field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}
