:root {
  --bolci-brown-dark: #1f0f08;
  --bolci-brown-main: #341a10;
  --bolci-brown-light: #522e1f;
  --bolci-gold-main: #c5a059;
  --bolci-gold-light: #dfbf7e;
  --bolci-orange: #c45c26;
  --bolci-orange-dark: #9e4418;
  --bolci-cream: #faf7f2;
  --bolci-card-bg: #ffffff;
  --bolci-border: #e8dfd5;
  --bolci-text-dark: #2a211d;
  --bolci-success: #2e7d32;
  --bolci-error: #c62828;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(
    circle at 50% 0%,
    #ffffff 0%,
    var(--bolci-cream) 100%
  );
  color: var(--bolci-text-dark);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

html.kvkk-modal-open,
html.kvkk-modal-open body,
html.filter-sheet-open,
html.filter-sheet-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.kvkk-modal-open body,
html.filter-sheet-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.brand-header {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(1100px, 100%);
  min-width: 0;
}
.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-logo-text {
  font-family: "Cinzel", serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--bolci-brown-main);
}
.brand-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--bolci-gold-main);
  margin-top: 6px;
  text-transform: uppercase;
  max-width: 100%;
  padding: 0 8px;
  text-align: center;
}

.form-card {
  background: var(--bolci-card-bg);
  width: 100%;
  max-width: min(1100px, 100%);
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--bolci-border);
  box-shadow: 0 10px 30px rgba(52, 26, 16, 0.08);
  overflow-x: clip;
}

.card-top-bar {
  background: linear-gradient(
    135deg,
    var(--bolci-brown-dark),
    var(--bolci-brown-main)
  );
  padding: 16px 20px 20px;
  text-align: left;
  border-bottom: 3px solid var(--bolci-gold-main);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.card-top-bar h1 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  color: #fff;
  line-height: 1.3;
  overflow-wrap: anywhere;
  padding: 0;
  margin: 0;
}
.card-top-bar p {
  font-size: 14px;
  color: var(--bolci-gold-light);
  margin-top: 4px;
}

.page-heading-panel {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, auto) minmax(48px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-heading-copy {
  min-width: 0;
  text-align: center;
}

.page-heading-copy h1,
.page-heading-copy p {
  text-align: center;
}

.btn-page-logout {
  justify-self: end;
  flex-shrink: 0;
  appearance: none;
  background: #fff;
  border: none;
  color: var(--bolci-brown-main);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
}

.btn-page-logout:hover {
  background: #f3ede6;
}

.btn-back {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  flex-shrink: 0;
  margin: 0;
  background: #fff;
  border: none;
  color: #2a140c;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}
.btn-back-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.btn-back:hover {
  background: #fff;
  color: #1a0c08;
  filter: brightness(0.96);
}

.card-body {
  padding: 32px;
  min-width: 0;
  max-width: 100%;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 32px;
}
.form-card > * {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 600px) {
  .portal-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.portal-btn {
  background: var(--bolci-card-bg);
  border: 1px solid var(--bolci-border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.portal-btn:hover {
  transform: translateY(-4px);
  border-color: var(--bolci-gold-main);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.18);
}
.portal-icon {
  font-size: 44px;
}
.portal-title {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bolci-brown-main);
}
.portal-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: 16px;
  color: var(--bolci-brown-main);
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bolci-border);
}
.section-title:first-of-type {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 0;
}

.form-group {
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bolci-brown-main);
  margin-bottom: 6px;
}
.form-group label span.req {
  color: var(--bolci-error);
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
  background-color: #faf8f5;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: none;
  border-color: var(--bolci-gold-main);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.select-control {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23341A10%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px auto;
  padding-right: 36px;
}

.dynamic-section {
  display: none;
  background: #fdfbfa;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed var(--bolci-gold-light);
  margin-bottom: 16px;
}
.dynamic-section.active {
  display: block;
}

.verify-box {
  background: #f4f7f9;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.verify-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.btn-verify {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn-verify.success {
  background: var(--bolci-success);
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bolci-orange);
  background-image: linear-gradient(135deg, var(--bolci-orange), var(--bolci-orange-dark));
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-image 0.2s ease, filter 0.2s ease;
  margin-top: 10px;
}
.btn-submit:hover:not(:disabled) {
  background-color: var(--bolci-orange-dark);
  background-image: linear-gradient(135deg, #b4531f, #7a3210);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobil İyileştirmeleri (Responsive Breakpoints) */
@media (max-width: 640px) {
  .brand-logo-img {
    max-height: 42px;
  }
  .brand-tagline {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .card-top-bar {
    padding: 14px 16px 16px;
  }
  .card-top-bar h1 {
    font-size: 17px;
  }
  .btn-back {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
  .btn-back-icon {
    width: 22px;
    height: 22px;
  }
  .page-heading-panel {
    padding: 8px 10px;
    align-items: center;
  }
  .btn-page-logout {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .card-top-bar p {
    font-size: 12.5px;
  }
  .card-body {
    padding: 20px 16px;
  }
  .section-title {
    font-size: 15px;
    margin: 20px 0 14px 0;
  }
}

@media (max-width: 720px) {
  html,
  body {
    height: 100%;
    min-height: 100dvh;
  }
  body {
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .brand-header {
    margin-bottom: 0;
    padding: 10px 16px 8px;
    max-width: none;
  }
  .form-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .input-control,
  .select-control,
  .textarea-control {
    font-size: 16px;
  }
}

.form-notice {
  font-size: 13px;
  color: var(--bolci-error);
  margin-bottom: 16px;
}

.error-page-body {
  padding: 40px;
  text-align: center;
}

.error-page-body p {
  color: #666;
  margin-bottom: 20px;
}

.btn-back-portal {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.auth-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  padding: 0 8px;
}
.auth-bar[hidden] {
  display: none !important;
}

.auth-bar-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--bolci-brown-main);
  overflow-wrap: anywhere;
  min-width: 0;
}

.auth-bar-group {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bolci-cream);
  border: 1px solid var(--bolci-border);
  color: var(--bolci-brown-light);
  padding: 3px 8px;
  border-radius: 999px;
}

.auth-bar-logout {
  background: transparent;
  border: 1px solid var(--bolci-brown-main);
  color: var(--bolci-brown-main);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-bar-logout:hover {
  background: var(--bolci-brown-main);
  color: #fff;
}

.login-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bolci-brown-main);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--bolci-brown-main);
  cursor: pointer;
}

.login-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.feedback-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 12px;
}

.feedback-msg.is-error,
.login-error.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.feedback-msg.is-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.login-hint {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--bolci-border);
  font-size: 12.5px;
  color: #775f53;
}

.login-hint ul {
  margin-top: 8px;
  padding-left: 18px;
}

.login-hint li {
  margin-bottom: 4px;
}

.login-hint code {
  background: #f3ede6;
  padding: 1px 5px;
  border-radius: 4px;
}

.portal-user-badge {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bolci-brown-light);
}

.portal-empty {
  text-align: center;
  color: #775f53;
  padding: 24px 0;
}

/* Portal ana sayfa */
.portal-home-wrap {
  padding: 32px 28px;
  min-width: 0;
  max-width: 100%;
}

.portal-intro {
  text-align: center;
  margin-bottom: 28px;
}

.portal-intro h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--bolci-brown-main);
  margin-bottom: 6px;
}

.portal-intro p {
  font-size: 14px;
  color: #775f53;
}

.category-heading {
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bolci-gold-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bolci-border);
}

.category-heading:first-of-type {
  margin-top: 0;
}

.forms-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 720px) {
  .forms-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-item-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  font-family: inherit;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--bolci-border);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 1px 2px rgba(52, 26, 16, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.form-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--bolci-gold-main);
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ee 100%);
  box-shadow: 0 10px 24px rgba(52, 26, 16, 0.12);
}

.form-item-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(52, 26, 16, 0.1);
}

.form-item-card:focus {
  outline: none;
}

.form-item-card:focus-visible {
  border-color: var(--bolci-gold-main);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.35);
}

.form-item-icon {
  font-size: 26px;
  line-height: 1;
  padding: 10px;
  background: #faf8f5;
  border: 1px solid var(--bolci-border);
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bolci-brown-main);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.form-item-icon .bi {
  font-size: 1em;
  line-height: 1;
}

.form-item-card:hover .form-item-icon {
  background: #fff;
  border-color: var(--bolci-gold-light);
  transform: scale(1.06);
}

.form-item-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  overflow-wrap: anywhere;
}

.form-item-desc {
  font-size: 12.5px;
  color: #6d625d;
  line-height: 1.4;
}

.form-item-go {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bolci-brown-main);
  background: #f3ede6;
  transition: background 0.18s, color 0.18s;
}

.form-item-go svg {
  display: block;
}

.form-item-card:hover .form-item-go {
  background: var(--bolci-brown-main);
  color: #fff;
}

@media (min-width: 721px) {
  .form-item-go {
    width: 22px;
    height: 22px;
    background: transparent;
    color: #c4b5a8;
  }
  .form-item-go svg {
    width: 16px;
    height: 16px;
  }
  .form-item-card:hover .form-item-go {
    background: transparent;
    color: var(--bolci-brown-main);
  }
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bolci-brown-dark);
  color: #fff;
  border: 1px solid var(--bolci-gold-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
  box-sizing: border-box;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .portal-home-wrap {
    padding: 20px 14px;
  }
  .portal-intro {
    margin-bottom: 20px;
  }
  .portal-intro h2 {
    font-size: 18px;
  }
  .portal-intro p {
    font-size: 13px;
  }
  .forms-portal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-item-card {
    padding: 14px 12px;
  }
  .form-item-icon {
    font-size: 22px;
    padding: 8px;
  }
  .form-item-title {
    font-size: 14px;
  }
  .form-item-desc {
    font-size: 12px;
  }
}

/* =========================================================
   FORM OLUŞTURMA & CANLI TIMELINE YÖNETİM STİLLERİ
   ========================================================= */

.staff-management-wrap {
  padding: 24px;
  min-width: 0;
  max-width: 100%;
}

.staff-section-card {
  background: #ffffff;
  border: 1px solid var(--bolci-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(52, 26, 16, 0.04);
}

.staff-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bolci-border);
}

.staff-section-header.between {
  justify-content: space-between;
  flex-wrap: wrap;
}

.staff-section-header h2 {
  font-family: "Cinzel", serif;
  font-size: 16px;
  color: var(--bolci-brown-main);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.step-badge {
  background: var(--bolci-brown-main);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.generated-link-card {
  margin-top: 20px;
  padding: 18px;
  background: #faf7f2;
  border: 1px solid var(--bolci-gold-main);
  border-radius: 8px;
  animation: kvkkFadeIn 0.3s ease;
}

.link-success-badge {
  color: var(--bolci-orange-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.link-desc {
  font-size: 12.5px;
  color: #1f2937;
  margin-bottom: 12px;
}

.link-copy-row {
  display: flex;
  position: relative;
  align-items: stretch;
}

.link-copy-row .input-control {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: #fff;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  padding-right: 92px;
}

.btn-copy-infield {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy-infield:hover {
  background: var(--bolci-brown-light);
}

.btn-copy-infield.is-copied {
  background: var(--bolci-orange);
}

.btn-copy-action {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 0 16px;
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-copy-action:hover {
  background: var(--bolci-brown-light);
}

.btn-whatsapp-action {
  background: #25d366;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}

.btn-whatsapp-action:hover {
  background: #128c7e;
}

.share-subject {
  font-family: "Cinzel", serif;
  color: var(--bolci-brown-main);
  margin: 8px 0 10px;
  font-size: 22px;
}

.share-status {
  color: #6d625d;
  font-size: 13px;
  margin: 8px 0 0;
}

.share-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.btn-share-sms,
.btn-share-mail {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  padding: 0 12px;
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-share-sms {
  background: #2563eb;
}

.btn-share-mail {
  background: #7c3aed;
}

.btn-share-sms:disabled,
.btn-share-mail:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-refresh-history {
  background: #faf7f2;
  border: 1px solid var(--bolci-border);
  color: var(--bolci-brown-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-refresh-history:hover {
  background: var(--bolci-gold-main);
  color: #fff;
  border-color: var(--bolci-gold-main);
}

.history-table-container {
  overflow-x: auto;
  margin-top: 10px;
  max-width: 100%;
}

/* =========================================================
   GEÇMİŞ FORM LİSTESİ ARAMA ÇUBUĞU & TABLO BAŞLIK FİLTRELERİ
   ========================================================= */

.history-search-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(180deg, #fcfaf7 0%, #f7f1ea 100%);
  border: 1px solid var(--bolci-border);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.history-toolbar-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-toolbar-days {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.history-filter-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.list-filter-pill {
  background: #fff;
  border: 1px solid var(--bolci-border);
  border-radius: 12px;
  padding: 7px 4px 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  min-width: 0;
  width: 100%;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}

.list-filter-pill .pill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-filter-pill .pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.list-filter-pill .th-title {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.list-filter-pill.active {
  background: var(--bolci-brown-main);
  border-color: var(--bolci-brown-main);
  color: #fff;
}

.list-filter-pill.active .th-arrow {
  color: #f5e6c8;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  color: #8c766b;
  pointer-events: none;
  transition: color 0.15s;
}

.search-input {
  width: 100%;
  padding-left: 36px !important;
  padding-right: 32px !important;
  height: 40px;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--bolci-border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(52, 26, 16, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-wrapper.is-focus .search-input,
.search-input:focus {
  outline: none;
  border-color: var(--bolci-gold-main);
  box-shadow: 0 0 0 3px rgba(196, 149, 74, 0.18);
}

.search-input-wrapper.is-focus .search-icon,
.search-input-wrapper.is-filled .search-icon {
  color: var(--bolci-brown-main);
}

.search-input-wrapper.is-filled .search-input {
  border-color: var(--bolci-brown-main);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  background: #f3ede6;
  border: none;
  font-size: 12px;
  color: #775f53;
  cursor: pointer;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  line-height: 22px;
}

.btn-clear-search:hover {
  background: #fee2e2;
  color: #ef4444;
}

.popover-custom-date-box {
  padding: 10px 10px 6px 10px;
  border-top: 1px dashed var(--bolci-border);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popover-custom-date-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #775f53;
}

.popover-date-input-row {
  display: flex;
  gap: 6px;
}

.popover-date-input {
  flex: 1;
  padding: 10px 10px;
  font-size: 16px;
  min-height: 44px;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}

.btn-apply-custom-date {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-apply-custom-date:hover {
  background: var(--bolci-brown-light);
}

.search-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--bolci-gold-main);
  color: var(--bolci-brown-main);
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-remove-filter {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.btn-remove-filter:hover {
  color: #ef4444;
}

.btn-clear-all-filters {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-clear-all-filters:hover {
  background: #fecaca;
}

.filter-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--bolci-brown-light);
  background: #fff;
  border: 1px solid var(--bolci-border);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tablo Başlıkları İçindeki Tıklanabilir Filtre Butonları */
.th-filter-trigger {
  background: transparent;
  border: 1px dashed transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.th-filter-trigger:hover {
  background: #f3ede6;
  border-color: var(--bolci-border);
  color: var(--bolci-brown-main);
}

.th-filter-trigger.active {
  background: var(--bolci-cream);
  border-color: var(--bolci-gold-main);
  color: var(--bolci-brown-main);
}

.list-filter-pill.th-filter-trigger.active {
  background: var(--bolci-brown-main);
  border-color: var(--bolci-brown-main);
  color: #fff;
}

.list-filter-pill.th-filter-trigger.active .th-arrow {
  color: #f5e6c8;
}

.th-arrow {
  font-size: 11px;
  color: var(--bolci-gold-main);
  transition: transform 0.2s;
}

.th-active-dot {
  color: var(--bolci-gold-main);
  font-size: 10px;
}

/* Filtre seçim ekranı */
.filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(31, 15, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
  box-sizing: border-box;
}

.filter-sheet-backdrop.is-open {
  display: flex !important;
}

.filter-sheet-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  max-height: 100dvh;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: kvkkFadeIn 0.18s ease-out;
}

.filter-sheet-dialog .popover-header {
  flex-shrink: 0;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  font-size: 15px;
}

.filter-sheet-dialog .btn-popover-close {
  font-size: 26px;
  width: 36px;
  height: 36px;
}

@media (min-width: 720px) {
  .filter-sheet-backdrop {
    align-items: center;
    padding: 28px;
  }
  .filter-sheet-dialog {
    height: auto;
    width: 100%;
    max-width: 420px;
    max-height: min(88dvh, 680px);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(31, 15, 8, 0.35);
  }
}

.popover-header {
  background: linear-gradient(135deg, var(--bolci-brown-dark), var(--bolci-brown-main));
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-popover-close {
  background: transparent;
  border: none;
  color: var(--bolci-gold-light);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.popover-body {
  padding: 10px 10px calc(16px + env(safe-area-inset-bottom));
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popover-option-btn {
  background: transparent;
  border: none;
  padding: 14px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  color: var(--bolci-brown-main);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  font-family: inherit;
}

.popover-option-btn:hover {
  background: #faf5ee;
}

.popover-option-btn.selected {
  background: #f5ebe0;
  font-weight: 700;
  color: var(--bolci-brown-dark);
}

.opt-icon {
  font-size: 14px;
}

.opt-text {
  flex: 1;
  min-width: 0;
}

.opt-text-split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.opt-day-name.is-today {
  font-weight: 800;
}

.opt-day-date {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  color: #6d625d;
}

.popover-option-btn.selected .opt-day-date {
  color: var(--bolci-brown-main);
}

.opt-count {
  font-size: 11px;
  background: #f3ede6;
  color: #775f53;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.opt-check {
  color: var(--bolci-success);
  font-weight: 700;
  margin-left: 2px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.history-table th {
  background: #faf8f5;
  color: var(--bolci-brown-main);
  padding: 10px 12px;
  border-bottom: 2px solid var(--bolci-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bolci-border);
  vertical-align: middle;
}

.history-row:hover {
  background: #fdfbf7;
}

.inv-subject {
  font-size: 13.5px;
  color: var(--bolci-brown-main);
}

.inv-token-code {
  font-size: 11px;
  color: #8c766b;
  margin-top: 2px;
}

.inv-token-code code {
  background: #f3ede6;
  padding: 1px 4px;
  border-radius: 4px;
}

.inv-creator {
  font-size: 11px;
  color: #8c766b;
  margin-top: 2px;
}

.history-table th.col-date,
.history-table td.col-date {
  min-width: 220px;
  width: 1%;
  white-space: nowrap;
}

.inv-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  white-space: nowrap;
}

.inv-customer-detail {
  font-size: 11.5px;
  color: #15803d;
  font-weight: 600;
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.status-created {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.status-opened {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.status-in_progress {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.status-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.status-expired,
.status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.history-actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-tbl-timeline {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tbl-timeline:hover {
  background: var(--bolci-brown-light);
}

.btn-tbl-copy {
  background: #fff;
  border: 1px solid var(--bolci-border);
  color: var(--bolci-brown-main);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-tbl-detail {
  background: var(--bolci-brown-main);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(52, 26, 16, 0.18);
}

.btn-tbl-detail:hover {
  background: var(--bolci-brown-light);
}

.history-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: none;
}

.history-card-list--compact {
  gap: 6px;
}

.history-expired-heading {
  margin: 16px 0 8px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8b82;
}

.history-card {
  background: #fff;
  border: 1px solid var(--bolci-border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  box-shadow: 0 1px 3px rgba(52, 26, 16, 0.06);
}

.history-card:hover {
  border-color: var(--bolci-gold-main);
  box-shadow: 0 6px 18px rgba(52, 26, 16, 0.08);
}

.history-card:focus {
  outline: none;
}

.history-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 149, 74, 0.28);
}

.history-card-who {
  min-width: 0;
}

.history-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bolci-brown-main);
  word-break: break-word;
}

.history-card-extra {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #8c766b;
}

.history-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin-top: 8px;
  font-size: 12px;
  color: #8c766b;
  line-height: 1.4;
}

.history-card-id {
  font-variant-numeric: tabular-nums;
}

.history-card-dot {
  margin: 0 6px;
  color: #c4b5a8;
}

.history-card-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0eae3;
}

.history-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  background: #f3ede6;
  color: var(--bolci-brown-main);
}

.history-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4b5a8;
  flex-shrink: 0;
}

.history-status.status-created {
  background: #fef9c3;
  color: #854d0e;
}

.history-status.status-created .history-status-dot {
  background: #eab308;
}

.history-status.status-opened {
  background: #e0f2fe;
  color: #0369a1;
}

.history-status.status-opened .history-status-dot {
  background: #0ea5e9;
}

.history-status.status-in_progress {
  background: #f3e8ff;
  color: #6b21a8;
}

.history-status.status-in_progress .history-status-dot {
  background: #a855f7;
}

.history-status.status-awaiting_code {
  background: #ffedd5;
  color: #9a3412;
}

.history-status.status-awaiting_code .history-status-dot {
  background: #f97316;
}

.history-status.status-completed {
  background: #dcfce7;
  color: #15803d;
}

.history-status.status-completed .history-status-dot {
  background: #22c55e;
}

.history-status.status-expired,
.history-status.status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
}

.history-status.status-expired .history-status-dot,
.history-status.status-cancelled .history-status-dot {
  background: #9ca3af;
}

.history-card .btn-tbl-detail {
  width: 100%;
  min-height: 44px;
  margin-left: 0;
}

@media (min-width: 721px) {
  .history-card {
    padding: 16px 18px;
  }

  .history-card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .history-card .btn-tbl-detail {
    width: auto;
    min-height: 40px;
    min-width: 108px;
    flex-shrink: 0;
  }
}

.history-card.history-card--compact {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f7f5f3;
  box-shadow: none;
}

.history-card--compact .history-card-who {
  flex: 1 1 auto;
  min-width: 0;
}

.history-card--compact .history-card-title {
  font-size: 14px;
  font-weight: 700;
}

.history-card.history-card--compact:hover {
  box-shadow: none;
}

.history-card--compact .history-status {
  padding: 4px 10px 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.history-card--compact .history-status-dot {
  width: 6px;
  height: 6px;
}

.history-card--compact .history-card-meta {
  margin-top: 0;
  justify-content: flex-end;
  text-align: right;
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .staff-section-card.history-section {
    padding: 12px 0 8px;
    margin-bottom: 8px;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }

  .history-section .staff-section-header {
    padding: 0 2px 8px;
    margin-bottom: 10px;
  }

  .history-search-bar {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(52, 26, 16, 0.05);
  }

  .history-table-container {
    margin-top: 8px;
    overflow: visible;
  }

  .history-card-list {
    gap: 8px;
  }

  .history-card {
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: none;
  }

  .history-card-title {
    font-size: 15px;
  }

  .history-card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .history-card .btn-tbl-detail {
    width: auto;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .history-card.history-card--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    padding: 10px 12px;
  }

  .history-card--compact .history-card-who {
    grid-column: 1;
    grid-row: 1;
  }

  .history-card--compact .history-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .history-card--compact .history-card-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    text-align: left;
  }
}

.history-loading,
.history-empty,
.history-error {
  padding: 24px;
  text-align: center;
  color: #775f53;
  font-size: 13px;
}

/* =========================================================
   SANİYE SANİYE TIMELINE MODAL STİLLERİ
   ========================================================= */

.timeline-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(31, 15, 8, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  animation: kvkkFadeIn 0.2s ease-out;
}

.timeline-modal-backdrop.is-open {
  display: flex !important;
  z-index: 200000;
}

.share-record-dialog {
  max-width: min(560px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
}

.share-record-modal-body {
  padding: 16px 18px 20px;
  overflow-x: hidden;
}

.share-record-modal-body .staff-section-card,
.share-record-modal-body .share-block {
  margin-bottom: 14px;
}

.share-record-modal-body .share-block:last-child {
  margin-bottom: 0;
}

.share-block {
  background: #fff;
  border: 1px solid var(--bolci-border);
  border-radius: 10px;
  padding: 14px 14px 12px;
}

.share-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.share-block-head h2 {
  margin: 0;
  font-size: 14px;
  color: var(--bolci-brown-main);
}

.share-soon-hint {
  margin-top: 10px;
  margin-bottom: 0;
}

.share-empty {
  margin: 0;
  padding: 8px 0;
  color: #8c766b;
  font-size: 13px;
}

.share-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.share-top-meta {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #8c766b;
}

.share-recipient {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #faf7f3;
  border-radius: 8px;
}

.share-recipient-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8c766b;
  margin-bottom: 8px;
}

.share-recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.share-recipient-grid dt {
  font-size: 11px;
  font-weight: 700;
  color: #8c766b;
  margin-bottom: 2px;
}

.share-recipient-grid dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bolci-text-dark);
  overflow-wrap: anywhere;
}

.share-meta-subject {
  font-size: 16px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.share-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
}

.share-meta-grid dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8c766b;
  margin-bottom: 2px;
}

.share-meta-grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--bolci-text-dark);
  overflow-wrap: anywhere;
}

.share-meta-span {
  grid-column: 1 / -1;
}

#shareOtpBlock {
  margin-top: 8px;
}

.share-otp-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.share-otp-row .input-control {
  width: 100%;
  max-width: none;
  min-width: 0;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-align: center;
}

.share-otp-row-lg {
  margin-top: 12px;
}

.share-otp-row-lg .input-control {
  min-height: 52px;
  font-size: 22px;
}

.share-otp-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.share-otp-actions .btn-copy-action {
  flex: 1;
  height: 48px;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

.share-otp-channel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bolci-border);
}

.share-otp-channel:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.share-otp-channel h3 {
  margin: 0;
  font-size: 14px;
  color: var(--bolci-brown-main);
}

.otp-channel-tag {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}

.share-otp-ttl {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bolci-brown-main);
  font-variant-numeric: tabular-nums;
}

.share-otp-ttl.is-expired {
  color: var(--bolci-error);
  font-size: 15px;
  letter-spacing: 0;
}

.share-done-card {
  background: #faf8f5;
  border: 2px solid var(--bolci-gold-main);
  border-radius: 12px;
  padding: 22px 18px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.share-done-card h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 22px;
  color: var(--bolci-brown-main);
  line-height: 1.3;
}

.share-done-card p {
  margin: 0 auto 8px;
  max-width: 36em;
  color: #6d625d;
  font-size: 14px;
  line-height: 1.45;
}

.share-done-check {
  margin: 0 0 8px;
  font-size: 42px;
  color: var(--bolci-success);
  font-weight: 700;
  line-height: 1;
}

.btn-share-close-lg {
  margin-top: 18px;
  font-size: 18px;
  padding: 18px;
}

.customer-done-body {
  text-align: center;
  padding: 40px 20px;
}

.customer-done-title {
  font-family: "Cinzel", serif;
  color: var(--bolci-brown-main);
  margin-bottom: 8px;
}

.customer-done-sub {
  color: #6d625d;
  margin: 0 auto 20px;
  max-width: 480px;
}

.customer-done-hint {
  color: #8c766b;
  font-size: 12.5px;
  margin: 10px 0 24px;
}

.btn-customer-close {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.status-awaiting_code {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

@media (max-width: 520px) {
  .share-recipient-grid,
  .share-meta-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  max-height: 85dvh;
  border-radius: 12px;
  border: 1px solid var(--bolci-gold-main);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.timeline-modal-header {
  background: linear-gradient(135deg, var(--bolci-brown-dark), var(--bolci-brown-main));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--bolci-gold-main);
  flex-shrink: 0;
}

.timeline-modal-header h3 {
  font-family: "Cinzel", serif;
  color: #fff;
  font-size: 15px;
  margin: 0;
}

.btn-close-timeline {
  background: transparent;
  border: none;
  color: var(--bolci-gold-light);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.timeline-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13px;
}

.timeline-stepper {
  position: relative;
  padding-left: 20px;
}

.timeline-stepper::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--bolci-border);
}

.timeline-step-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-step-item:last-child {
  margin-bottom: 0;
}

.timeline-step-marker {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bolci-gold-main);
}

.marker-gold {
  background: var(--bolci-gold-main);
}

.marker-purple {
  background: #9333ea;
  box-shadow: 0 0 0 2px #9333ea;
}

.marker-green {
  background: #16a34a;
  box-shadow: 0 0 0 2px #16a34a;
}

.timeline-step-content {
  background: #faf8f5;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.timeline-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-step-title {
  font-weight: 700;
  color: var(--bolci-brown-main);
}

.timeline-step-time {
  font-size: 11.5px;
  color: #8c766b;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-step-desc {
  font-size: 12px;
  color: #4b5563;
  margin-top: 4px;
  line-height: 1.4;
}

.timeline-step-actor {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

/* =========================================================
   MÜŞTERİ / ALICI FORM DOLDURMA KARTLARI (READONLY SUMMARY)
   ========================================================= */

.customer-fill-wrap {
  padding: 24px;
  min-width: 0;
  max-width: 100%;
}

.readonly-summary-card {
  background: #faf7f2;
  border: 1px solid var(--bolci-border);
  border-left: 4px solid var(--bolci-gold-main);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
}

.readonly-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bolci-border);
}

.readonly-summary-header h3 {
  font-family: "Cinzel", serif;
  font-size: 15px;
  color: var(--bolci-brown-main);
  margin: 0;
}

.readonly-summary-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
  min-width: 0;
}

.readonly-field-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.readonly-field-label {
  font-size: 11.5px;
  color: #8c766b;
  font-weight: 600;
}

.readonly-field-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  overflow-wrap: anywhere;
}

.readonly-summary-note {
  font-size: 11.5px;
  color: #775f53;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--bolci-border);
}

.completed-summary-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.customer-verified-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: #166534;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .staff-management-wrap,
  .customer-fill-wrap {
    padding: 16px 12px;
  }
  .staff-section-card {
    padding: 14px;
  }
  .timeline-modal-backdrop {
    padding: 10px;
  }
  .timeline-modal-body {
    padding: 14px;
  }
  .timeline-step-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.mgmt-form-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgmt-form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #faf8f5;
  border: 1px solid var(--bolci-border);
  border-radius: 12px;
}

.mgmt-form-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.mgmt-form-card-info {
  min-width: 0;
}

.mgmt-form-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  line-height: 1.3;
}

.mgmt-form-card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6d625d;
  line-height: 1.4;
}

.mgmt-form-card-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .mgmt-form-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mgmt-form-card-actions {
    justify-content: flex-end;
  }
}

.mgmt-form-meta {
  margin-top: 6px;
  font-size: 11.5px;
  color: #8c766b;
}

.mgmt-form-meta code {
  background: #f3ede6;
  padding: 1px 5px;
  border-radius: 4px;
}

.mgmt-verify-toggles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.mgmt-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bolci-brown-main);
  cursor: pointer;
}

.mgmt-check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--bolci-brown-main);
}

.field-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #8c766b;
  line-height: 1.4;
}

.mgmt-field-row {
  background: #faf8f5;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.mgmt-field-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--bolci-brown-main);
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.mgmt-field-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-template {
  border: 1px solid var(--bolci-border);
  background: #fff;
  color: var(--bolci-brown-main);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-save-template:hover {
  border-color: var(--bolci-gold-main);
  background: #fffaf3;
}

.mgmt-field-add-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mgmt-field-add-bar .select-control {
  min-width: 180px;
  width: auto;
  max-width: 260px;
  flex: 1 1 180px;
}

.template-chip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
  background: #faf8f5;
}

.mgmt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mgmt-tab {
  background: #faf8f5;
  border: 1px solid var(--bolci-border);
  color: var(--bolci-brown-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.mgmt-tab.active {
  background: var(--bolci-brown-main);
  color: #fff;
  border-color: var(--bolci-brown-main);
}

.mgmt-editor-box {
  background: #faf8f5;
  border: 1px dashed var(--bolci-gold-main);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.turnstile-wrapper-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.turnstile-wrapper-box.is-verified {
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.turnstile-wrapper-box iframe,
.cf-turnstile {
  max-width: 100%;
}
.consent-agreements-wrap {
  padding: 16px;
  background: #faf7f2;
  border: 1px solid var(--bolci-border);
  border-radius: 8px;
}
.consent-agreements-wrap .consent-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bolci-brown-main);
  margin-bottom: 12px;
}
.consent-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 13px;
  color: #4a3d36;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.consent-checkbox-item input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--bolci-brown-main);
  flex-shrink: 0;
}
.consent-kvkk-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8c766b;
  line-height: 1.4;
}
.consent-tag-req {
  color: var(--bolci-error);
  font-weight: 700;
}
.consent-link-btn {
  background: none;
  border: none;
  color: var(--bolci-brown-main);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  display: inline;
}
.staff-otp-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.staff-otp-row .input-control {
  max-width: 140px;
  letter-spacing: 2px;
  text-align: center;
}

.icon-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-picker-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--bolci-border);
  border-radius: 10px;
  background: #faf8f5;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.icon-picker-trigger:hover,
.icon-picker-trigger:focus-visible {
  border-color: var(--bolci-gold-main, #c5a059);
  outline: none;
}

.icon-picker-preview {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--bolci-brown-main);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--bolci-border);
  flex-shrink: 0;
}

.icon-picker-current-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.icon-picker-current-meta strong {
  font-size: 14px;
  color: var(--bolci-brown-main);
}

.icon-picker-current-meta code {
  font-size: 12px;
  color: #6d625d;
}

.icon-picker-trigger-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--bolci-brown-main);
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--bolci-border);
}

.icon-picker-modal[hidden] {
  display: none !important;
}

.icon-picker-dialog {
  max-width: min(560px, 100%);
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 4px;
}

.icon-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--bolci-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--bolci-brown-main);
  font: inherit;
}

.icon-pick .bi {
  font-size: 22px;
  line-height: 1;
}

.icon-pick span {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #6d625d;
}

.icon-pick:hover,
.icon-pick.is-selected {
  border-color: var(--bolci-gold-main, #c5a059);
  background: #fffaf3;
}

.icon-pick.is-selected {
  box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.22);
}

