.customers-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ARAMA */
.cust-search-wrap {
  width: 100%;
  max-width: 480px;
}

.cust-search {
  width: 100%;
  height: 44px;
  border: 1px solid #d6c8b4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fdf9f3 0%, #f6efe3 100%);
  color: #20180c;
  font-family: inherit;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cust-search:focus {
  border-color: #c8943c;
  box-shadow: 0 0 0 2px rgba(200, 148, 60, 0.1);
}

.cust-search::placeholder {
  color: #b0a08a;
}

/* LİSTE */
.cust-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cust-empty,
.cust-loading {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: #9e8e76;
}

.cust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s;
}

.cust-row:last-child {
  border-bottom: none;
}

.cust-row:hover {
  background: rgba(255,255,255,0.5);
}

.cust-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8dcc8 0%, #d8c8b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #6e5530;
  flex-shrink: 0;
}

.cust-row-info {
  flex: 1;
  min-width: 0;
}

.cust-row-name {
  font-size: 14px;
  font-weight: 700;
  color: #20180c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-row-sub {
  font-size: 11px;
  color: #9e8e76;
  margin-top: 2px;
}

.cust-row-arrow {
  font-size: 16px;
  color: #c0ad94;
  flex-shrink: 0;
}

/* DRAWER */
.cust-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 12, 4, 0.3);
}

.cust-backdrop.open {
  display: block;
}

.cust-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  z-index: 201;
  background: linear-gradient(180deg, #faf5ed 0%, #f2e9da 100%);
  border-left: 1px solid #ddd0bb;
  box-shadow: -12px 0 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.cust-drawer.open {
  transform: translateX(0);
}

/* DRAWER HEAD */
.cust-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e4d9c8;
  flex-shrink: 0;
}

.cust-drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8dcc8 0%, #d8c8b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #6e5530;
  flex-shrink: 0;
}

.cust-drawer-info {
  flex: 1;
  min-width: 0;
}

.cust-drawer-name {
  font-size: 15px;
  font-weight: 800;
  color: #20180c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-drawer-meta {
  font-size: 11px;
  color: #9e8e76;
  margin-top: 2px;
}

.cust-drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #8e7a60;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cust-drawer-close:hover {
  background: rgba(0,0,0,0.06);
}

/* ÖZET */
.cust-ozet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #e4d9c8;
  flex-shrink: 0;
}

.cust-ozet-item {
  padding: 12px 0;
  text-align: center;
  border-right: 1px solid #e4d9c8;
}

.cust-ozet-item:last-child {
  border-right: none;
}

.cust-ozet-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9e8e76;
}

.cust-ozet-val {
  font-size: 15px;
  font-weight: 800;
  color: #20180c;
  margin-top: 4px;
}

.cust-val-green {
  color: #2d6e1a;
}

.cust-val-red {
  color: #7a2413;
}

/* SATIŞ LİSTESİ */
.cust-satis-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cust-satis-card {
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cust-satis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cust-satis-urun {
  font-size: 13px;
  font-weight: 700;
  color: #20180c;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-satis-tarih {
  font-size: 11px;
  color: #9e8e76;
  flex-shrink: 0;
}

.cust-satis-kaynak {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.cust-satis-kaynak.gecmis {
  background: rgba(200, 148, 60, 0.15);
  color: #7a5520;
}

.cust-satis-kaynak.normal {
  background: rgba(100, 180, 80, 0.15);
  color: #2d6e1a;
}

.cust-satis-nums {
  display: flex;
  gap: 14px;
}

.cust-satis-num {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cust-satis-num-label {
  font-size: 10px;
  color: #9e8e76;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cust-satis-num-val {
  font-size: 13px;
  font-weight: 700;
  color: #20180c;
}

.cust-satis-num-val.red {
  color: #7a2413;
}

.cust-satis-not {
  font-size: 11px;
  color: #8e7a60;
  font-style: italic;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 5px;
}

.cust-no-satis {
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #9e8e76;
}

@media (max-width: 480px) {
  .cust-drawer {
    width: 100vw;
  }
}

/* ===== KOYU TEMA ===== */
body.dark .cust-search {
  background: linear-gradient(180deg, #2a2218 0%, #221c14 100%);
  border-color: #3a3028;
  color: #e0d4c0;
}
body.dark .cust-search::placeholder { color: #6a5a48; }
body.dark .cust-search:focus { border-color: #c8943c; }
body.dark .cust-empty, body.dark .cust-loading { color: #6a5a48; }
body.dark .cust-row { border-color: rgba(255,255,255,0.06); }
body.dark .cust-row:hover { background: rgba(255,255,255,0.05); }
body.dark .cust-row-avatar { background: linear-gradient(180deg, #3a3020 0%, #2e2618 100%); color: #c8943c; }
body.dark .cust-row-name { color: #e0d4c0; }
body.dark .cust-row-sub { color: #6a5a48; }
body.dark .cust-row-arrow { color: #5a4a38; }
body.dark .cust-drawer {
  background: linear-gradient(180deg, #252018 0%, #1e1810 100%);
  border-color: #3a3028;
}
body.dark .cust-drawer-head { border-color: #3a3028; }
body.dark .cust-drawer-avatar { background: linear-gradient(180deg, #3a3020 0%, #2e2618 100%); color: #c8943c; }
body.dark .cust-drawer-name { color: #e0d4c0; }
body.dark .cust-drawer-meta { color: #6a5a48; }
body.dark .cust-drawer-close { color: #8a7a68; }
body.dark .cust-drawer-close:hover { background: rgba(255,255,255,0.06); }
body.dark .cust-ozet-row { border-color: #3a3028; }
body.dark .cust-ozet-item { border-color: #3a3028; }
body.dark .cust-ozet-label { color: #6a5a48; }
body.dark .cust-ozet-val { color: #e0d4c0; }
body.dark .cust-val-green { color: #7ecf5a; }
body.dark .cust-val-red { color: #e8725a; }
body.dark .cust-satis-card { background: rgba(255,255,255,0.04); }
body.dark .cust-satis-urun { color: #e0d4c0; }
body.dark .cust-satis-tarih { color: #6a5a48; }
body.dark .cust-satis-kaynak.gecmis { background: rgba(200,148,60,0.15); color: #c8943c; }
body.dark .cust-satis-kaynak.normal { background: rgba(100,180,80,0.15); color: #7ecf5a; }
body.dark .cust-satis-num-label { color: #6a5a48; }
body.dark .cust-satis-num-val { color: #e0d4c0; }
body.dark .cust-satis-num-val.red { color: #e8725a; }
body.dark .cust-satis-not { color: #7a6a58; border-color: rgba(255,255,255,0.06); }
body.dark .cust-no-satis { color: #6a5a48; }
